1 2019-12-12 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
4 of execution of function call parameters.
6 2019-12-12 Vineet Gupta <vgupta@synopsys.com>
8 * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
9 helps codegen generate exceptions even for quiet NaN.
10 * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
11 (get_arc_condition_code): Likewise.
12 (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
13 * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
14 * config/arc/predicates.md (proper_comparison_operator): Likewise.
15 * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
16 (cmpdf_fpu_trap): Likewise.
18 2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
20 * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
21 (cstoredi4): Use TARGET_HARD_FLOAT.
23 2019-12-11 Jakub Jelinek <jakub@redhat.com>
25 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
26 entry from -O3 or later section to -O2 or later section.
27 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
28 option is enabled by default at -O2+ rather than just at -O3.
31 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
32 vect_internal_def, use oprnd1 as is, without trying to cast it.
35 2019-12-11 Martin Sebor <msebor@redhat.com>
37 * builtins.c (compute_objsize): Add an argument and set it to offset
39 * builtins.h (compute_objsize): Add an argument.
40 * tree-object-size.c (addr_object_size): Add an argument and set it
41 to offset into destination.
42 (compute_builtin_object_size): Same.
43 * tree-object-size.h (compute_builtin_object_size): Add an argument.
44 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
45 to offset into destination.
46 (maybe_warn_overflow): New function.
47 (handle_store): Call maybe_warn_overflow to issue warnings.
49 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
51 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
52 crtbegin_no_eh.o if building for the C language.
53 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
55 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
57 [fno-exceptions]: Use crtend_no_eh.o if building for any language
59 * config/msp430/t-msp430: Add -fno-exceptions multilib.
60 * doc/install.texi: Document --disable-no-exceptions multilib configure
62 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
64 2019-12-11 David Malcolm <dmalcolm@redhat.com>
66 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
67 (pretty_printer::clone): New vfunc implementation.
68 * pretty-print.h (format_postprocessor::clone): New pure vfunc
70 (pretty_printer::pretty_printer): New copy-ctor decl.
71 (pretty_printer::clone): New vfunc decl.
73 2019-12-11 David Malcolm <dmalcolm@redhat.com>
75 * function-tests.c (selftest::make_fndecl): Make non-static.
76 * selftest.h (selftest::make_fndecl): New decl.
78 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
81 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
82 multibyte input. Fix off-by-one-bug printing the last byte before a
84 (pp_character): Don't apply line wrapping in the middle of multibyte
86 (test_utf8): New test.
87 (pretty_print_c_tests): Call the new test.
89 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
91 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
93 (ALL_FPU_EXTERNAL): New fgroup.
95 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
96 +simd from architecture specification.
97 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
98 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
99 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
100 (isa_all_fpbits): New bitmap.
101 (arm_option_override): Initialize it.
102 (arm_configure_build_target): If the target isa does not have any
103 FP enabled, do not warn about mismatches in FP-related feature bits.
105 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
107 * real.c (struct arm_bfloat_half_format,
108 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
109 * real.h (arm_bfloat_half_format): New.
111 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
114 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
115 integer mask cmov when available even with TARGET_XOP.
117 2019-12-10 Jakub Jelinek <jakub@redhat.com>
119 PR tree-optimization/92891
120 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
123 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
125 PR rtl-optimization/92796
126 * lra-int.h (lra_risky_transformations_p): Rename to
127 check_and_force_assignment_correctness_p.
128 * lra-assigns.c: Ditto.
129 (lra_assign): Reset check_and_force_assignment_correctness_p.
130 * lra-constraints.c (lra_risky_transformations_p): Rename to
131 check_and_force_assignment_correctness_p.
132 (lra_constraints): Set up check_and_force_assignment_correctness_p
133 only for the 1st sub-pass.
134 * lra-eliminations.c (process_insn_for_elimination): Set up
135 check_and_force_assignment_correctness_p if the insn chnaged its
138 2019-12-10 Jakub Jelinek <jakub@redhat.com>
140 PR rtl-optimization/92882
141 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
142 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
146 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
147 than *jfunc->m_vr to intersect. Formatting fix.
150 * cfgexpand.c (add_stack_protection_conflicts): Change return type
151 from void to bool, return true if at least one stack_vars[i].decl
153 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
154 (expand_used_vars): Don't call stack_protect_decl_p, instead for
155 -fstack-protector-strong set gen_stack_protect_signal to true
156 if add_stack_protection_conflicts returned true. Formatting fixes.
157 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
158 out variables or variables not living on the stack don't count.
159 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
160 rather than > 8 byte.
162 * ipa-param-manipulation.c
163 (ipa_param_body_adjustments::register_replacement): Fix comment typo
165 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
167 (param_splitting_across_edge): Fix typo in dump message - accross
170 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
172 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
173 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
174 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
175 (expand_all_functions): First expand ordered section and then
177 * profile.c (compute_value_histograms): Error on out of range
180 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
182 * predict.c (compute_function_frequency): Check for presence of IPA
185 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
187 * varasm.c (default_function_section): Fix confused tests for
188 tp_first_run reordering.
190 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
192 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
193 allow SVE modes in GPRs.
195 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
197 * config/aarch64/iterators.md (vccore): New iterator.
198 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
200 (*vec_series<mode>_plus): Likewise.
202 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
204 * omp-low.c (scan_omp_for): Use clause location in warning.
206 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
208 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
209 (add_const_value_attribute): Likewise.
211 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
213 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
214 handling direct_slp_reduc, allow the PHI arguments to have
215 a different type from the vector elements.
217 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
219 * tree-vect-stmts.c (vectorizable_condition): Record the loop
220 masks required for extract-last reductions.
222 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
224 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
225 original scalar statement rather than a pattern statement.
226 (vectorizable_condition): Likewise, in the handling of extract-last
229 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
231 * tree-vect-loop.c (vectorizable_reduction): Don't use
232 EXTRACT_LAST_REDUCTION for chained reductions.
234 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
236 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
237 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
238 second demangled name.
240 2019-12-10 Jakub Jelinek <jakub@redhat.com>
242 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
244 2019-12-10 Martin Liska <mliska@suse.cz>
246 PR tree-optimization/92862
247 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
248 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
251 2019-12-09 David Malcolm <dmalcolm@redhat.com>
253 * gcc-rich-location.c
254 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
255 label_text ctor call with label_text::borrow.
256 * gcc-rich-location.h (text_range_label::get_text): Replace
257 label_text ctor called with false with label_text::borrow.
259 2019-12-09 David Malcolm <dmalcolm@redhat.com>
261 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
263 (selftest::test_diagnostic_show_locus_unknown_location): Remove
264 initial newline from expected outputs.
265 (selftest::test_one_liner_simple_caret): Likewise.
266 (selftest::test_one_liner_caret_and_range): Likewise.
267 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
268 (selftest::test_one_liner_fixit_insert_before): Likewise.
269 (selftest::test_one_liner_fixit_insert_after): Likewise.
270 (selftest::test_one_liner_fixit_remove): Likewise.
271 (selftest::test_one_liner_fixit_replace): Likewise.
272 (selftest::test_one_liner_fixit_replace_non_equal_range):
274 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
276 (selftest::test_one_liner_fixit_validation_adhoc_locations):
278 (selftest::test_one_liner_many_fixits_1): Likewise.
279 (selftest::test_one_liner_many_fixits_2): Likewise.
280 (selftest::test_one_liner_labels): Likewise.
281 (selftest::test_one_liner_simple_caret_utf8): Likewise.
282 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
283 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
285 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
286 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
287 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
288 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
289 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
291 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
293 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
295 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
296 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
297 (selftest::test_one_liner_labels_utf8): Likewise.
298 (selftest::test_add_location_if_nearby): Likewise.
299 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
300 (selftest::test_overlapped_fixit_printing): Likewise.
301 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
302 (selftest::test_overlapped_fixit_printing_2): Likewise.
303 (selftest::test_fixit_insert_containing_newline): Likewise.
304 (selftest::test_fixit_insert_containing_newline_2): Likewise.
305 (selftest::test_fixit_replace_containing_newline): Likewise.
306 (selftest::test_fixit_deletion_affecting_newline): Likewise.
307 (selftest::test_line_numbers_multiline_range): Likewise.
308 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
309 before call to diagnostic_show_locus.
310 (diagnostic_append_note): Likewise.
312 2019-12-09 Martin Sebor <msebor@redhat.com>
316 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
318 * hash-table.h (hash_table::expand): Use placement new to copy
319 construct objects in uninitialized storage.
320 (hash_table::empty_slow): Avoid invoking copy assignment on
321 uninitialized objects.
323 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
325 PR preprocessor/49973
326 * input.c (location_compute_display_column): New function to help with
327 multibyte awareness in diagnostics.
328 (test_cpp_utf8): New self-test.
329 (input_c_tests): Call the new test.
330 * input.h (location_compute_display_column): Declare.
331 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
332 to all classes and functions.
333 (enum column_unit): New enum.
334 (class exploc_with_display_col): New class.
335 (class layout_point): Convert m_column member to array m_columns[2].
336 (layout_range::contains_point): Add col_unit argument.
337 (test_layout_range_for_single_point): Pass new argument.
338 (test_layout_range_for_single_line): Likewise.
339 (test_layout_range_for_multiple_lines): Likewise.
340 (line_bounds::convert_to_display_cols): New function.
341 (layout::get_state_at_point): Add col_unit argument.
342 (make_range): Use empty filename rather than dummy filename.
343 (get_line_width_without_trailing_whitespace): Rename to...
344 (get_line_bytes_without_trailing_whitespace): ...this.
345 (test_get_line_width_without_trailing_whitespace): Rename to...
346 (test_get_line_bytes_without_trailing_whitespace): ...this.
347 (class layout): m_exploc changed to exploc_with_display_col from
348 plain expanded_location.
349 (layout::get_linenum_width): New accessor member function.
350 (layout::get_x_offset_display): Likewise.
351 (layout::calculate_linenum_width): New subroutine for the constuctor.
352 (layout::calculate_x_offset_display): Likewise.
353 (layout::layout): Use the new subroutines. Add multibyte awareness.
354 (layout::print_source_line): Add multibyte awareness.
355 (layout::print_line): Likewise.
356 (layout::print_annotation_line): Likewise.
357 (line_label::line_label): Likewise.
358 (layout::print_any_labels): Likewise.
359 (layout::annotation_line_showed_range_p): Likewise.
360 (get_printed_columns): Likewise.
361 (class line_label): Rename m_length to m_display_width.
362 (get_affected_columns): Rename to...
363 (get_affected_range): ...this; add col_unit argument and multibyte
365 (class correction): Add m_affected_bytes and m_display_cols
366 members. Rename m_len to m_byte_length for clarity. Add multibyte
367 awareness throughout.
368 (correction::insertion_p): Add multibyte awareness.
369 (correction::compute_display_cols): New function.
370 (correction::ensure_terminated): Use new member name m_byte_length.
371 (line_corrections::add_hint): Add multibyte awareness.
372 (layout::print_trailing_fixits): Likewise.
373 (layout::get_x_bound_for_row): Likewise.
374 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
375 with _utf8 suffix removed, testing multibyte awareness.
376 (test_one_liner_caret_and_range_utf8): Likewise.
377 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
378 (test_one_liner_fixit_insert_before_utf8): Likewise.
379 (test_one_liner_fixit_insert_after_utf8): Likewise.
380 (test_one_liner_fixit_remove_utf8): Likewise.
381 (test_one_liner_fixit_replace_utf8): Likewise.
382 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
383 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
384 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
385 (test_one_liner_many_fixits_1_utf8): Likewise.
386 (test_one_liner_many_fixits_2_utf8): Likewise.
387 (test_one_liner_labels_utf8): Likewise.
388 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
389 (test_overlapped_fixit_printing_utf8): Likewise.
390 (test_overlapped_fixit_printing): Adapt for changes to
391 get_affected_columns, get_printed_columns and class corrections.
392 (test_overlapped_fixit_printing_2): Likewise.
393 (test_linenum_sep): New constant.
394 (test_left_margin): Likewise.
395 (test_offset_impl): Helper function for new test.
396 (test_layout_x_offset_display_utf8): New test.
397 (diagnostic_show_locus_c_tests): Call new tests.
399 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
401 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
402 TYPE_CANONICAL from the element type only if it is true. Remove a few
403 obsolete lines and adjust recursive call.
404 (fld_process_array_type): Adjust call to build_array_type_1.
405 (build_array_type): Likewise.
406 (build_nonshared_array_type): Likewise.
408 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
410 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
411 %s to %o in asm output.
412 (gather<mode>_insn_2offsets<exec>): Likewise.
414 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
416 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
419 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
421 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
423 (unnamed define_insn_and_split): Delete.
424 (unnamed define_insn): Delete.
425 (unnamed define_insn): Delete.
426 (unnamed define_split): Delete.
428 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
430 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
433 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
436 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
437 dataflow luids once basic blocks have been reordered.
438 * haifa-sched.c (reemit_notes): Create df insn record for each
440 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
441 insn has an insn record before trying to use it.
443 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
445 * common/config/i386/i386-common.c
446 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
447 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
448 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
449 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
450 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
451 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
452 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
453 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
454 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
455 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
456 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
457 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
458 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
459 OPTION_MASK_ISA_AVX512BF16_UNSET,
460 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
461 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
462 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
463 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
464 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
465 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
466 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
467 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
468 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
469 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
470 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
471 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
472 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
473 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
474 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
475 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
476 OPTION_MASK_ISA_ENQCMD): Ditto.
477 * config/i386/i386-builtin.def
478 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
479 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
480 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
481 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
482 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
483 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
484 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
485 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
486 * config/i386/i386-c.c
487 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
488 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
489 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
490 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
491 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
492 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
493 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
494 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
495 OPTION_MASK_ISA_ENQCMD): Ditto.
496 * config/i386/i386-option.c: Ditto
497 * config/i386/i386.opt: Ditto..
498 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
499 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
500 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
501 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
502 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
503 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
504 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
505 TARGET_ISA_ENQCMD): Ditto.
507 2019-12-09 Sudakshina Das <sudi.das@arm.com>
508 Richard Sandiford <richard.sandiford@arm.com>
510 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
511 vect_model_simple_cost call on scalar_shift_arg.
513 2019-12-09 Jakub Jelinek <jakub@redhat.com>
515 PR tree-optimization/92834
516 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
517 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
519 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
521 PR tree-optimization/89007
522 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
523 target support available, generate code to distribute rshift over plus
526 2019-12-09 Martin Liska <mliska@suse.cz>
529 * cgraph.c (symbol_table_test::symbol_table_test): Fix
531 * cgraph.h (symtab_node::symtab_node): New constructor.
532 (cgraph_node::cgraph_node): Likewise.
533 (varpool_node::varpool_node): Likewise.
534 (symbol_table::allocate_cgraph_symbol): Use newly
536 (symbol_table::allocate_cgraph_symbol): Remove.
537 * cgraphunit.c (symtab_terminator): Likewise.
538 * varpool.c (varpool_node::create_empty): Use newly
541 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
545 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
546 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
547 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
548 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
549 * config/i386/i386.c (ix86_print_operand): New operand substitution.
550 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
552 (ix86_expand_sse_cmp): Relax condition for integer mask from
553 512-bit vector to all 128/256/512-bit vector. Delete code gen
554 for avx512f compare patterns since we have generic pattern now.
555 (ix86_expand_sse_movcc): Adjust condition and codegen for
557 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
558 when corresponding vector compare is available.
560 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
563 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
565 * config/nios2/linux.h (LINK_EH_SPEC): Define.
567 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
569 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
570 * cgraph.h (cgrpah_node): Likewise.
571 (tp_first_run_node_cmp): Deeclare.
572 * cgraphunit.c (node_cmp): Rename to ...
573 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
574 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
575 (expand_all_functions): Collect tp_first_run and normal functions to
576 two vectors so the other functions remain sorted. Do not check for
577 flag_profile_reorder_functions it is function local flag.
578 * profile.c (compute_value_histograms): Update tp_first_run printing.
580 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
582 * opts.c (common_handle_option): Do not clear ipa_reference for
585 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
587 * ipa-split.c (split_function): Preserve 0 tp_first_run.
589 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
591 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
594 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
596 PR tree-optimization/92860
597 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
600 2019-12-07 Marek Polacek <polacek@redhat.com>
602 PR c++/91678 - wrong error with decltype and location wrapper.
603 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
605 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
608 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
609 sure to pass a valid inner mode in calls to simplify_gen_subreg.
611 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
612 David Malcolm <dmalcolm@redhat.com>
613 Jakub Jelinek <jakub@redhat.com>
616 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
617 instead of ST sequence to terminate OSC 8 strings.
619 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
620 Vladimir Makarov <vmakarov@redhat.com>
622 PR rtl-optimization/92176
623 * lra.c (simplify_subreg_regno): Don't permit unconditional
624 changing mode for LRA too.
626 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
628 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
629 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
630 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
633 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
635 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
638 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
640 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
641 (VEC_1REG_ALT): Likewise.
642 (VEC_ALL1REG_MODE): New mode iterator.
643 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
644 (VEC_1REG_INT_ALT): Likewise.
645 (VEC_ALL1REG_INT_MODE): New mode interator.
646 (VEC_ALL1REG_INT_ALT): Likewise.
647 (VEC_REG_MODE): Remove V64QI and V64HI.
648 (VEC_ALLREG_MODE): New mode interator.
649 (vec_merge): Change to VEC_ALLREG_MODE.
650 (vec_merge_with_clobber): Likewise.
651 (vec_merge_with_vcc): Likewise.
652 (mov<mode>): Likewise.
653 (mov<mode>_unspec): Likewise.
654 (*mov<mode>): Change to VEC_ALL1REG_MODE.
655 (mov<mode>_exec): Likewise.
656 (*mov<mode>_exec_match): Likewise.
657 (mov<mode>_sgprbase): Likewise.
658 (reload_in<mode>): Change to VEC_ALLREG_MODE.
659 (reload_out<mode>): Likewise.
660 (scalar address splits): Likewise.
661 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
662 (vec_set<mode>): Change to VEC_ALLREG_MODE.
663 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
664 (vec_duplicate<mode><exec>): Likewise.
665 (vec_extract<mode><scalar_mode>): Likewise.
666 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
667 (gather_load<mode>): Likewise.
668 (gather<mode>_exec): Likewise.
669 (gather<mode>_expr<exec>): Likewise.
670 (gather<mode>_insn_1offset<exec>): Likewise.
671 (gather<mode>_insn_1offset_ds<exec>): Likewise.
672 (gather<mode>_insn_2offsets<exec>): Likewise.
673 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
674 (VEC_INT_MODE): Remove V64QI and V64HI.
675 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
676 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
678 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
679 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
680 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
681 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
682 (maskstore<mode>di): Likewise.
683 (mask_gather_load<mode>): Likewise.
684 (mov_from_lane63_<mode>): Likewise.
685 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
686 and V64HImode vectorization.
687 (gcn_related_vector_mode): New function.
688 (TARGET_VECTORIZE_RELATED_MODE): New define.
690 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
691 Kwok Cheung Yeung <kcy@codesourcery.com>
693 * omp-low.c (lower_omp_target): For optional arguments, deref once
694 more to obtain the type.
696 2019-12-06 Richard Biener <rguenther@suse.de>
698 * match.pd (nop_convert): Remove empty match. Use nop_convert?
701 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
703 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
704 for empty vectors. Avoid using ordered_remove and instead
705 shuffle the vector as we go.
707 2019-12-06 Richard Biener <rguenther@suse.de>
709 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
711 (expr::opt_grp): Add and initialize.
712 (lower_opt_convert): Rename to ...
713 (lower_opt): ... and work on opt_grp, simply switching operations
714 from being optional to being present or not.
715 (has_opt_convert): Rename to ...
716 (has_opt): ... and adjust.
717 (parser::parse_operation): Return the optional opt_grp,
718 remove special-casing of conditional operations and more generally
720 (parser::parse_expr): Stick on the parsed opt_grp and perform
722 (parser::parse_for): Remove now unnecessary code.
724 * doc/match-and-simplify.texi: Mention ? now works on all
725 unary operations and also match predicates.
727 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
729 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
730 functions, not inline clones.
732 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
734 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
736 2019-12-06 Richard Biener <rguenther@suse.de>
738 * genmatch.c (c_expr::gen_transform): Emit newlines from line
739 number changes rather than after every semicolon.
741 2019-12-06 Richard Biener <rguenther@suse.de>
743 PR tree-optimization/92819
744 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
745 into the last lane. For two-element vectors try inserting
746 into the last lane when inserting into the first fails.
748 2019-12-06 Jakub Jelinek <jakub@redhat.com>
750 * common.opt (fprofile-partial-training): Terminate description with
753 2019-12-05 Martin Sebor <msebor@redhat.com>
756 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
757 left uninitialized by get_addr_base_and_unit_offset on failure.
759 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
761 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
762 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
763 (detect_type_change): Likewise.
764 (detect_type_change_ssa): Likewise.
765 (ipa_analyze_virtual_call_uses): Update.
767 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
769 * config/nios2/linux.h (LINK_EH_SPEC): Define.
771 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
773 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
775 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
777 * cgraphclones.c (localize_profile): New function.
778 (cgraph_node::create_clone): Use it for partial profiles.
779 * common.opt (fprofile-partial-training): New flag.
780 * doc/invoke.texi (-fprofile-partial-training): Document.
781 * ipa-cp.c (update_profiling_info): For partial profiles do not
782 set function profile to zero.
783 * profile.c (compute_branch_probabilities): With partial profile
784 watch if edge count is zero and turn all probabilities to guessed.
785 (compute_branch_probabilities): For partial profiles do not apply
786 profile when entry count is zero.
787 * tree-profile.c (tree_profiling): Only do value_profile_transformations
788 when profile is read.
790 2019-12-05 Sudakshina Das <sudi.das@arm.com>
792 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
793 check from if condition.
795 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
797 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
798 and Fortran's optional arguments, unconditionally add the is-present
799 condition before the libgomp call.
801 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
804 * tree-core.h (OEP_BITWISE): New flag.
805 * fold-const.c (operand_compare::operand_equal_p): Handle it.
806 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
808 2019-12-05 Richard Biener <rguenther@suse.de>
811 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
812 heuristics on what don't care element to choose.
813 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
815 2019-12-05 Martin Liska <mliska@suse.cz>
817 PR gcov-profile/92817
818 * coverage.c (build_gcov_exit_decl): Remove superfluous
821 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
823 * config/msp430/msp430.md (cbranch<mode>4): Use
824 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
825 dest operand of CMP instruction.
826 (cbranchpsi4_real): Likewise.
827 (cbranchqi4_real): Likewise.
828 (cbranchhi4_real): Likewise.
829 (cbranchpsi4_reversed): Likewise.
830 (cbranchqi4_reversed): Likewise.
831 (cbranchhi4_reversed): Likewise.
833 2019-12-05 Richard Biener <rguenther@suse.de>
835 PR tree-optimization/92803
836 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
837 invariant vector construction.
839 2019-12-05 Martin Liska <mliska@suse.cz>
841 PR gcov-profile/91971
842 * coverage.c (coverage_init): Mangle full path
843 only when -fprofile-dir is used.
845 2019-12-05 Jakub Jelinek <jakub@redhat.com>
848 * config/i386/i386.md (movstrict<mode>): Move test for
849 TARGET_PARTIAL_REG_STALL and not optimizing for size from
850 expander's condition to the body - FAIL; in that case.
852 2019-12-03 Martin Sebor <msebor@redhat.com>
855 * builtins.c (gimple_call_alloc_size): New function.
856 (compute_objsize): Add argument. Call gimple_call_alloc_size.
857 Handle variable offsets and indices.
858 * builtins.h (gimple_call_alloc_size): Declare.
859 (compute_objsize): Add argument.
860 * gimple-ssa-warn-restrict.c: Remove assertions.
861 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
863 2019-12-04 Julian Brown <julian@codesourcery.com>
865 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
867 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
870 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
872 (altivec_overloaded_builtins): Move to rs6000-call.c.
873 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
875 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
876 (altivec_overloaded_builtins): Moved from rs6000-c.c.
877 (rs6000_common_init_builtins): Do no define builtins that overload
878 builtins that have been disabled.
880 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
882 * config/arm/arm.c (arm_option_override_internal):
883 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
885 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
887 * config/aarch64/aarch64.c
888 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
889 (thunderx_tunings): Likewise.
890 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
891 (thunderx2t99_tunings): Likewise.
892 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
893 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
895 2019-12-04 Richard Biener <rguenther@suse.de>
897 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
898 empty CTOR and memset partial-def registering. Take advantage
899 of fancy offset analysis in memset handling.
901 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
903 * fold-const.c (native_encode_vector_part): Handle
904 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
905 (native_decode_vector_tree): Delete, moving the bulk of the code to...
906 (native_interpret_vector_part): ...this new function. Use a pointer
907 and length instead of a vec<> and start index.
908 (native_interpret_vector): Use native_interpret_vector_part.
909 (fold_view_convert_vector_encoding): Likewise.
911 2019-12-04 Richard Biener <rguenther@suse.de>
913 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
914 non-constant defs in the most trivial way.
915 (vn_reference_lookup_3): Also push down SSA partial defs.
917 2019-12-04 Martin Liska <mliska@suse.cz>
919 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
920 Initialize count of newly created BB.
922 2019-12-04 Jakub Jelinek <jakub@redhat.com>
924 PR tree-optimization/92734
925 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
926 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
928 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
931 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
932 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
934 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
936 * ipa-fnsummary.c: Include tree-into-ssa.h.
937 (compute_fn_summary): Call update_ssa.
939 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
941 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
942 is set only for symbol in comdat group.
943 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
945 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
947 * cgraph.c: Include tree-into-ssa.h
948 (cgraph_node::get_body): Call update_ssa.
949 * cgraphunit.c (cgraph_node::expand): Likewise.
950 * lto-streamer-in.c (input_function): Do not call update_ssa.
952 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
954 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
955 an array element size if array_element_size is already an invariant.
956 Similarly don't gimplify and install a field offset if
957 component_ref_field_offset is already an invariant.
959 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
961 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
962 with POLY_INT_CST size is made to a fixed-size object, force the
963 object to live in memory.
965 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
967 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
970 2019-12-03 Richard Biener <rguenther@suse.de>
972 PR tree-optimization/92758
973 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
974 operation on uniform vectors.
976 2019-12-03 Richard Biener <rguenther@suse.de>
978 PR tree-optimization/92645
979 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
980 from or to a properly aligned register variable.
982 2019-12-03 Matthias Klose <doko@ubuntu.com>
984 * Makefile.in (SOURCES): Add doc/lto-dump.1.
985 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
986 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
988 2019-12-03 Richard Biener <rguenther@suse.de>
990 PR tree-optimization/92751
991 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
992 when a clobber ends up in the partial-def vector.
993 (vn_reference_lookup_3): Let clobbers be handled by the
994 assignment from CTOR handling.
996 2019-12-03 Jakub Jelinek <jakub@redhat.com>
998 PR tree-optimization/92734
999 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1000 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1003 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
1004 Jakub Jelinek <jakub@redhat.com>
1007 * config/i386/i386.md (peephole2 for *swap<mode>): Use
1008 general_reg_operand predicates instead of register_operand.
1010 2019-12-03 Richard Biener <rguenther@suse.de>
1012 PR tree-optimization/92645
1013 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1014 a full def of a vector via a BIT_INSERT_EXPR.
1016 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1018 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1020 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1023 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1026 * fold-const.c (fold_convertible_p): Check vector types more
1029 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1031 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1032 (aarch64_expand_mov_immediate): Use it when attempting to measure
1033 the length of an SVE vector.
1034 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1037 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1039 * config/aarch64/aarch64-sve-builtins.h
1040 (gimple_folder::force_vector): Declare.
1041 * config/aarch64/aarch64-sve-builtins.cc
1042 (gimple_folder::force_vector): New function.
1043 * config/aarch64/aarch64-sve-builtins-base.cc
1044 (svcmp_impl::fold): Likewise.
1045 (svdup_impl::fold): Handle svdup_z too.
1047 2019-12-02 Martin Liska <mliska@suse.cz>
1049 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1051 (debug_tree_odr_name): New.
1052 * ipa-utils.h (get_odr_name_for_type): New.
1054 2019-12-02 Richard Biener <rguenther@suse.de>
1056 PR tree-optimization/92742
1057 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1058 touch the def-type but verify it is consistent with the
1061 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1063 PR tree-optimization/92712
1064 * match.pd ((A * B) +- A -> (B +- 1) * A,
1065 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1066 even when we don't know anything about range of A, but do know
1067 something about range of B and the simplification won't introduce
1070 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1073 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1074 (ipa-cp-min-recursive-probability): Likewise.
1075 * params.opt (ipa-cp-max-recursive-depth): New.
1076 (ipa-cp-min-recursive-probability): Likewise.
1077 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1078 val_p and unlimited.
1079 (self_recursively_generated_p): New function.
1080 (get_val_across_arith_op): Likewise.
1081 (propagate_vals_across_arith_jfunc): Add constant propagation for
1082 self-recursive function.
1083 (incorporate_penalties): Do not penalize pure self-recursive function.
1084 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1085 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1086 (get_info_about_necessary_edges): Relax hotness check for edge to
1087 self-recursive function.
1088 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1090 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1094 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1095 objects of flexible types to be small if they have internal linkage
1096 or are declared extern.
1097 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1098 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1099 instead of the size of the object initializer.
1100 * tree.c (flexible_array_type_p): Move from C front end, and
1101 generalize to handle fields in non-C structures.
1102 * tree.h (flexible_array_type_p): Declare.
1104 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1106 * profile-count.h (profile_count::operator<): Use IPA value for
1108 (profile_count::operator>): Likewise.
1109 (profile_count::operator<=): Likewise.
1110 (profile_count::operator>=): Likewise.
1111 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1113 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1115 * ipa-inline.c (compute_max_insns): Return int64_t.
1116 (inline_small_functions): Simplify.
1118 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1120 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1123 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1125 * cgraph.h (symtab_node): Add symver flag.
1126 * cgraphunit.c (process_symver_attribute): New.
1127 (process_common_attributes): Use process_symver_attribute.
1128 * lto-cgraph.c (lto_output_node): Stream symver.
1129 (lto_output_varpool_node): Stream symver.
1130 (input_overwrite_node): Stream symver.
1131 (input_varpool_node): Stream symver.
1132 * output.h (do_assemble_symver): Decalre.
1133 * symtab.c (symtab_node::dump_base): Dump symver.
1134 (symtab_node::verify_base): Verify symver.
1135 (symtab_node::resolve_alias): Handle symver.
1136 * varasm.c (do_assemble_symver): New function.
1137 * varpool.c (varpool_node::assemble_aliases): Use it.
1138 * doc/extend.texi: (symver attribute): Document.
1139 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1141 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1143 * target.h (type_context_kind): New enum.
1144 (verify_type_context): Declare.
1145 * target.def (verify_type_context): New target hook.
1146 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1147 * doc/tm.texi: Regenerate.
1148 * tree.c (verify_type_context): New function.
1149 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1151 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1153 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1154 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1156 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1158 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1159 * cgraph.h (cgraph_node): Add unit_id and
1160 merged_extern_inline.
1161 (symbol_table): Add max_unit.
1162 (symbol_table::symbol_table): Initialize it.
1163 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1164 merged_comdat, merged_extern_inline.
1165 (cgraph_node::create_clone): Likewise.
1166 (cgraph_node::create_version_clone): Likewise.
1167 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1169 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1170 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1171 * ipa-inline.c (inline_small_functions): Likewise.
1172 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1173 copy merged_comdat and merged_extern_inline.
1174 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1175 merged_extern_inline and unit_id.
1176 (input_overwrite_node): Stream in these.
1177 (input_cgraph_1): Set unit_base.
1178 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1179 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1181 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1183 * gcc.c (process_command): Only warn about an ineffective `-x'
1184 option if any input files have actually been supplied.
1186 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1188 * doc/install.texi (Options specification): Remove the list of
1189 target library subdirectories supporting
1190 `--enable-version-specific-runtime-libs'. Document defaults for
1193 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1195 PR rtl-optimization/92283
1196 * lra.c (lra): Update reg notes after inheritance sub-pass and
1197 before constraint sub-pass.
1199 2019-11-29 Richard Biener <rguenther@suse.de>
1201 PR tree-optimization/91003
1202 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1203 operand number, avoid handling the non-condition operands of
1204 COND_EXPRs as comparisons.
1205 (vect_get_constant_vectors): Pass down the operand number.
1206 (vect_get_slp_defs): Likewise.
1208 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1210 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1211 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1212 VEC_COND_EXPR can trap.
1214 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1216 PR tree-optimization/92677
1217 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1218 to zero when dissolving a group of strided accesses.
1220 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1222 PR tree-optimization/92596
1223 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1225 (vectorizable_operation): Likewise, instead of relying on
1226 vect_get_mask_type_for_stmt to do this.
1227 (vect_get_vector_types_for_stmt): Always return a vector type
1228 immediately, rather than deferring the choice for boolean results.
1229 Use a vector mask type instead of a normal vector if
1230 vect_use_mask_type_p.
1231 (vect_get_mask_type_for_stmt): Delete.
1232 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1233 mask_producers argument and special boolean_type_node handling.
1234 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1235 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1236 (vect_determine_vectorization_factor): Update call accordingly.
1237 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1238 boolean_type_node handling.
1239 (vect_slp_analyze_node_operations_1): Likewise.
1241 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1243 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1244 (vect_use_mask_type_p): New function.
1245 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1246 mask precision to the pattern statement.
1247 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1248 and use it to initialize the new stmt's mask precision.
1249 (search_type_for_mask_1): Delete.
1250 (search_type_for_mask): Replace with...
1251 (integer_type_for_mask): ...this new function. Use the information
1252 cached in the stmt_vec_info.
1253 (vect_recog_bool_pattern): Update accordingly.
1254 (build_mask_conversion): Pass the scalar type associated with the
1255 mask type to append_pattern_def_seq.
1256 (vect_recog_mask_conversion_pattern): Likewise. Call
1257 integer_type_for_mask instead of search_type_for_mask.
1258 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1259 of search_type_for_mask.
1260 (possible_vector_mask_operation_p): New function.
1261 (vect_determine_mask_precision): Likewise.
1262 (vect_determine_stmt_precisions): Call it.
1264 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1266 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1267 the slp_tree parameter with a group size parameter.
1268 (vect_get_mask_type_for_stmt): Likewise.
1269 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1270 (vect_get_mask_type_for_stmt): Likewise.
1271 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1274 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1276 * tree-vect-stmts.c (vectorizable_operation): Punt early
1277 on codes that are handled elsewhere.
1279 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1281 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1282 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1283 operand to a boolean comparison is a natural vector mask,
1284 handle both operands like normal integers instead.
1286 2019-11-29 Richard Biener <rguenther@suse.de>
1288 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1289 out early for too large objects.
1291 2019-11-29 Martin Jambor <mjambor@suse.cz>
1294 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1295 the summary only if the summary exists.
1296 (find_more_scalar_values_for_callers_subset): Check node_dead in
1297 the summary only if the summary exists.
1298 (ipcp_store_bits_results): Ignore nodes without lattices.
1299 (ipcp_store_vr_results): Likewise.
1300 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1301 header files required by them.
1302 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1304 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1306 PR tree-optimization/92710
1307 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1308 vector mask arguments.
1310 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1312 * profile-count.c (profile_count::to_cgraph_frequency,
1313 profile_count::to_sreal_scale): Check for compaibility of counts.
1314 * profile-count.h (compatible_p): Make public; add checking for
1315 global0 versus global types.
1316 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1318 2019-11-29 Richard Biener <rguenther@suse.de>
1320 PR tree-optimization/92715
1321 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1322 out for uniform vectors and source vectors with less elements
1323 than the destination.
1325 2019-11-29 Martin Liska <mliska@suse.cz>
1328 * ipa-devirt.c (types_same_for_odr): Check for existence
1329 of TYPE_NAMEs first.
1331 2019-11-29 Richard Biener <rguenther@suse.de>
1333 PR tree-optimization/92704
1334 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1335 in loops performing only loads.
1337 2019-11-29 Julian Brown <julian@codesourcery.com>
1339 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1340 BT_DFLOAT128_PTR) Remove.
1341 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1342 TI_DFLOAT128_PTR_TYPE): Remove.
1343 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1344 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1345 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1346 dfloat128_ptr_type_node): Remove macros.
1348 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1350 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1352 (*movdi_internal64): Ditto.
1354 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1357 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1358 indexed_or_indirect_operand to be memory_operand.
1359 (bswap<mode>2_store for HSI): Ditto.
1360 (bswapdi2_load): Ditto.
1361 (bswapdi2_store): Ditto.
1363 2019-11-28 Martin Liska <mliska@suse.cz>
1366 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1367 headers for translation.
1369 2019-11-28 Martin Liska <mliska@suse.cz>
1372 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1375 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1377 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1380 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1382 * profile-count.c (profile_count::combine_with_ipa_count): Return
1383 uninitialized count if called on ininitialized count.
1385 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1387 * ipa-inline-transform.c (inline_transform): Scale profile before
1390 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1392 * profile-count.h (profile_count::max): Work on profiles of different
1394 (profile_count::apply_scale): Be sure that ret is not local or global0
1395 type if num is global.
1397 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1399 * profile-count.h (profile_count::max): Work on profiles of different
1401 (profile_count::apply_scale): Be sure that ret is not local or global0
1402 type if num is global.
1404 2019-11-28 Martin Jambor <mjambor@suse.cz>
1407 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1409 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1410 Removed trailig whitespace.
1412 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1414 * profile-count.h (profile_count::combine_with_ipa_count_within):
1416 * profile-count.c (profile_count::combine_with_ipa_count_within):
1418 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1421 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1423 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1424 of counters are done same way.
1426 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1428 * ipa-cp.c (update_profiling_info): Fix scaling.
1430 2019-11-28 Richard Biener <rguenther@suse.de>
1432 PR tree-optimization/92645
1433 * tree-inline.c (remap_gimple_stmt): When the return value
1434 is not wanted, elide GIMPLE_RETURN.
1436 2019-11-28 Richard Biener <rguenther@suse.de>
1438 PR tree-optimization/92645
1439 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1440 conversions inside a mode class. Remove restriction on
1441 preserving the element size.
1442 (simplify_vector_constructor): Deal with the above and for
1443 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1444 and VEC_PACK_TRUNC_EXPR.
1446 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1448 Must use push insn to pass varargs arguments of DFmode because
1449 otherwise the middle-end generates wrong code.
1452 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1454 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1456 PR tree-optimization/92691
1457 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1458 in function comment.
1459 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1460 calls, return !handle_printf_call rather than always returning true.
1461 (check_and_optimize_stmt): Describe return value meaning in function
1462 comment. Formatting fix.
1464 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1466 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1467 combination of globa0 and global counters..
1469 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1472 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1473 by VECTOR_UNIT_NONE_P instead.
1475 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1477 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1478 Refine VF to VF_AVX512VL.
1480 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1482 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1483 (movdi_internal64): Reformat.
1485 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1488 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1489 builtin if we don't have an actual type.
1490 (builtin_function_type): If the builtin function uses a DFP type
1491 and decimal float has been disabled, then return NULL_TREE.
1493 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1495 PR rtl-optimization/92510
1496 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1497 of comparison into a comparison with different mode if both imode and
1498 omode are scalar integral modes.
1500 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1502 PR rtl-optimization/90007
1503 * recog.c (constrain_operands): Permit hard registers too for
1504 memory when LRA is used.
1506 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1508 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1509 between Coldfire and regular m68k.
1510 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1512 2019-11-27 Richard Biener <rguenther@suse.de>
1514 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1515 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1516 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1517 * optabs-tree.c (supportable_convert_operation): Do not call
1518 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1519 * optabs-tree.h (supportable_convert_operation): Adjust.
1520 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1521 * doc/tm.texi: Regenerate.
1522 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1523 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1524 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1525 unused decl parameter and adjust.
1526 (vect_create_vectorized_promotion_stmts): Likewise.
1527 (vectorizable_conversion): Adjust.
1529 2019-11-27 Richard Biener <rguenther@suse.de>
1531 PR tree-optimization/92690
1532 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1533 converting elements not originally converted.
1535 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1538 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1539 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1540 mpfr_rnd_t instead of mp_rnd_t.
1541 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1542 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1543 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1544 Use mpfr_exp_t instead of mp_exp_t.
1545 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1546 MPFR_RNDx instead of GMP_RNDx.
1547 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1548 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1549 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1550 of mp_rnd_t and remove MPFR_RNDx poisoning.
1551 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1553 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1555 PR tree-optimization/91790
1556 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1557 DR for vect_setup_realignment when first_stmt_info is different
1558 from first_stmt_info_for_drptr.
1560 2019-11-27 Richard Biener <rguenther@suse.de>
1562 PR tree-optimization/92645
1563 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1564 CTORs with just a subset of the original vectors.
1566 2019-11-27 Richard Biener <rguenther@suse.de>
1569 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1570 edges and instead record blocks in bitmap.
1571 (gimple_expand_calls_inline): Adjust.
1572 (fold_marked_statements): Delay EH cleanup until all folding is
1574 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1577 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1579 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1581 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1584 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1587 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1589 2019-11-26 Martin Sebor <msebor@redhat.com>
1591 PR tree-optimization/92683
1592 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1593 inadvertently removed in a previous change. Rename local variable
1596 2019-11-26 Richard Biener <rguenther@suse.de>
1599 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1602 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1604 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1606 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1608 PR tree-optimization/92644
1609 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1610 next to INTEGER_CST checks.
1612 2019-11-26 Richard Biener <rguenther@suse.de>
1614 PR tree-optimization/92645
1615 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1616 do not build the operation from scalars if the operand is.
1618 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1620 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1621 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1624 2019-11-25 Martin Liska <mliska@suse.cz>
1626 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1627 up used dump message.
1629 2019-11-25 Martin Liska <mliska@suse.cz>
1632 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1633 too strict checking assert.
1635 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1638 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1639 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1640 error_mark_node if corresponding global tree node is NULL.
1641 * tree.c (build_common_tree_nodes): Do not initialize
1642 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1643 decimal floating-point not supported.
1645 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1647 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1650 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1652 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1653 Replace code for non-CONST_INT constants with gcc_unreachable.
1654 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1656 (CMPMODE): New mode_iterator.
1657 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1659 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1661 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1663 (bit test insns patterns): Use nonimmediate_operand, not
1664 register_operand, for source operands that allow memory in
1666 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1667 Use register_operand, not nonimmediate_operand, for the
1669 (DBCC): New mode_iterator.
1670 (dbcc peepholes): Use it to reduce duplication.
1671 (trap): Use const_true_rtx, not const1_rtx.
1672 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1673 from m68k_subword_comparison_operand and changed to handle
1677 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1679 (m68k_init_cc): New declaration.
1680 (m68k_output_compare_di, m68k_output_compare_si)
1681 (m68k_output_compare_hi, m68k_output_compare_qi)
1682 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1683 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1684 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1685 m68k_output_branch_float, m68k_output_branch_float_rev):
1687 (valid_dbcc_comparison_p_2, flags_in_68881)
1688 (output_btst): Remove declaration.
1689 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1690 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1691 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1692 (flags_compare_op0, flags_compare_op1, flags_operand1,
1693 flags_operand2, flags_valid): New static variables.
1694 (m68k_find_flags_value, m68k_init_cc): New functions.
1695 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1696 remember_compare_flags): New static functions.
1697 (output_dbcc_and_branch): New argument CODE. Use it, and add
1698 PLUS and MINUS to the possible codes. All callers changed.
1699 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1700 and INSN arguments, add CODE arg. Return the comparison code
1701 to use. All callers changed. Use CODE instead of
1702 next_insn_tests_no_inequality, and replace cc_status management
1703 with changing the return code.
1704 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1705 RTX_COMPARE or RTX_COMM_COMPARE.
1706 (output_move_simode, output_move_qimode): Call
1707 handle_flags_for_move.
1708 (notice_update_cc): Delete function.
1709 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1710 m68k_output_compare_hi, m68k_output_compare_qi,
1711 m68k_output_compare_fp, m68k_output_branch_integer,
1712 m68k_output_branch_integer_rev, m68k_output_scc,
1713 m68k_output_branch_float, m68k_output_branch_float_rev,
1714 m68k_output_scc_float): New functions.
1715 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1716 once at the start, and set flags_valid and flags_operand1 if the
1718 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1719 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1721 (CC_STATUS_INIT): Define.
1722 * config/m68k/m68k.md (flags_valid): New define_attr.
1723 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1724 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1725 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1726 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1727 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1728 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1729 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1730 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1731 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1732 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1733 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1734 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1735 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1736 ctrapqi4, conditional_trap): Delete patterns.
1737 (cbranchdi4_insn): New pattern.
1738 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1739 test high part only. When testing EQ or NE, generate beq0_di
1740 and bne0_di patterns directly.
1741 (cstoredi4): When testing LT or GE, test high part only.
1742 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1744 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1745 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1746 cmp2_cf_predicate): New define_mode_attrs.
1747 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1748 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1749 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1751 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1752 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1753 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1755 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1756 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1758 (BTST): New define_mode_iterator.
1759 (btst_predicate, btst_constraint, btst_range): New
1761 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1763 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1764 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1765 patterns): Set attr "flags_valid".
1766 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1767 management. Set attr "flags_valid".
1768 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1769 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1770 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1771 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1772 manual CC_STATUS management.
1773 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1774 unnamed strict_lowpart subhi and subqi patterns): Set attr
1776 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1777 Remove code to operate on address regs and assert the case
1779 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1780 manual CC_STATUS_INIT.
1781 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1782 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1783 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1784 one_cmplqi2, unnamed strict_lowpart patterns
1785 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1786 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1787 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1788 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1790 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1791 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1792 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1793 unnamed strict_low_part patterns for HI and
1794 QI versions): Set attr "flags_valid".
1795 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1796 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1797 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1798 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1799 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1800 (various unnamed peepholes): Adjust compare/branch sequences
1801 for new cbranch patterns.
1802 (dbcc peepholes): Likewise, and output the comparison here
1804 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1805 (fp_src_operand): Allow constant zero.
1806 (address_reg_operand): New predicate.
1808 * rtl.h (inequality_comparisons_p): Remove declaration.
1809 * recog.h (next_insn_tests_no_inequality): Likewise.
1810 * rtlanal.c (inequality_comparisons_p): Delete function.
1811 * recog.c (next_insn_tests_no_inequality): Likewise.
1813 2019-11-25 Richard Biener <rguenther@suse.de>
1815 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1816 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1817 properly re-building the visited hash-map for each lane.
1819 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1821 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1822 gcn_md_reorg): Remove unused variables.
1823 (gcn_emutls_var_init): Add missing (but unreachable) return
1825 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1826 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1827 an uninitialized variable.
1829 2019-11-25 Martin Jambor <mjambor@suse.cz>
1832 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1833 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1834 (cgraph_materialize_clone): Move removel from clone tree to the
1835 the new method and use it instead.
1836 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1837 bodies of clones, also remove it from the clone tree.
1839 2019-11-25 Martin Jambor <mjambor@suse.cz>
1842 * ipa-sra.c (process_isra_node_results): Put the new node to the
1843 same comdat group as the original node.
1845 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1847 Build double32 / long-double32 multilibs if needed.
1851 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1852 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1853 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1854 tm_defines and pass to genmultilib.awk.
1855 * config/avr/genmultilib.awk: Use these variables to add double32
1856 and / or long-double32 multilib(s) as needed.
1857 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1859 2019-11-25 Richard Biener <rguenther@suse.de>
1861 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1862 loop body, defaulted to NULL.
1863 (single_likely_exit): Add exit vector argument
1864 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1865 (number_of_iterations_exit): Likewise.
1866 (number_of_iterations_exit_assumptions): Likewise.
1867 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1869 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1870 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1871 Compute exit vector around call to single_likely_exit.
1872 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1873 loop body to loop_only_exit_p.
1874 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1876 (number_of_iterations_exit_assumptions): Get loop body from caller
1878 (number_of_iterations_exit): Pass through new loop body arg.
1879 (infer_loop_bounds_from_undefined): Get loop body from caller.
1880 (estimate_numbers_of_iterations): Compute loop body once.
1882 2019-11-25 Richard Biener <rguenther@suse.de>
1884 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1885 auto_bb_flag instead of an sbitmap for visited handling.
1887 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1889 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1891 (vector_fp_comparison_complex): Likewise.
1892 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1894 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1896 (vector_lt<mode> for VEC_F): Refactor with
1897 vector_fp_comparison_simple.
1898 (vector_le<mode> for VEC_F): Likewise.
1899 (vector_unge<mode> for VEC_F): Likewise.
1900 (vector_unle<mode> for VEC_F): Likewise.
1901 (vector_ne<mode> for VEC_F): Likewise.
1902 (vector_ungt<mode> for VEC_F): Likewise.
1903 (vector_unlt<mode> for VEC_F): Likewise.
1904 (vector_ltgt<mode> for VEC_F): Refactor with
1905 vector_fp_comparison_complex.
1906 (vector_ordered<mode> for VEC_F): Likewise.
1907 (vector_uneq<mode> for VEC_F): Likewise.
1908 (vector_unordered<mode> for VEC_F): Likewise.
1910 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1912 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1913 COMPARE, representing an overflow detection.
1915 * combine.c (combine_instructions): Record costs for jumps.
1917 * combine.c (can_combine_p): Allow autoinc in jumps.
1919 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1921 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1922 * doc/invoke.texi (max-inline-insns-single-O2,
1923 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1924 early-inlining-insns-O2): Remove documentation.
1925 * ipa-fnsummary.c (analyze_function_body,
1926 compute_fn_summary): Use opt_for_fn when accessing parameters.
1927 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1928 inline_insns_auto, can_inline_edge_by_limits_p,
1929 want_early_inline_function_p, big_speedup_p,
1930 want_inline_small_function_p, want_inline_self_recursive_call_p,
1931 recursive_inlining, compute_max_insns, inline_small_functions):
1933 * opts.c (default_options): Add -O3 defaults for
1934 OPT__param_early_inlining_insns_,
1935 OPT__param_inline_heuristics_hint_percent_,
1936 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1937 * params.opt (-param=early-inlining-insns-O2=,
1938 -param=inline-heuristics-hint-percent-O2=,
1939 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1940 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1941 -param=inline-min-speedup=, -param=inline-unit-growth=,
1942 -param=large-function-growth=, -param=large-stack-frame=,
1943 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1944 -param=max-inline-insns-recursive=,
1945 -param=max-inline-insns-recursive-auto=,
1946 -param=max-inline-insns-single=,
1947 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1948 -param=max-inline-recursive-depth=,
1949 -param=max-inline-recursive-depth-auto=,
1950 -param=min-inline-recursive-probability=,
1951 -param=partial-inlining-entry-probability=,
1952 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1953 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1956 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1958 * ipa-fnsummary.c: Fix comment typos.
1959 * ipa-ref.h: Likewise.
1960 * ipa-predicate.h: Likewise.
1961 * ipa-split.c: Likewise.
1962 * ipa-inline-analysis.c: Likewise.
1963 * ipa-predicate.c: Likewise.
1964 * ipa-devirt.c: Likewise.
1965 * ipa-icf.h: Likewise.
1966 * profile-count.c: Likewise.
1967 * ipa-icf.c: Likewise.
1968 (sem_function::equals_wpa): Fix typos in dump messages.
1969 * ipa-icf-gimple.h: Fix comment typos.
1970 * ipa-inline-transform.c: Likewise.
1971 * ipa-polymorphic-call.c: Likewise.
1972 * ipa-fnsummary.h: Likewise.
1973 * ipa-inline.c: Likewise.
1974 (dump_inline_stats): Fix typo in debug dump message.
1975 * profile-count.h: Fix comment typos.
1978 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1979 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1980 register_operand, force x into register before storing it into dest.
1984 * doc/extend.texi (attribute access): Fix a typo.
1986 PR rtl-optimization/92610
1987 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1988 cse_cfg_altered is set, even when tem is 0.
1989 (rest_of_handle_cse_after_global_opts): Likewise.
1991 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1994 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1995 tree_hash): Move to ...
1996 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1997 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1999 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2001 PR tree-optimization/92618
2002 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2003 containing the auto_vec and a tree.
2004 (undistribute_bitref_for_vector): Handle the case when element type
2005 of vec is not the same as type of the BIT_FIELD_REF. Formatting
2008 2019-11-22 Martin Sebor <msebor@redhat.com>
2011 * attribs.h (struct attr_access): New.
2012 * attribs.c (decl_attributes): Add an informational note.
2013 * builtins.c (check_access): Make extern. Consistently set no-warning
2014 after issuing a warning. Handle calls through function pointers. Set
2016 * builtins.h (check_access): Declare.
2017 * calls.c (rdwr_access_hash): New type.
2019 (init_attr_rdwr_indices): New function.
2020 (maybe_warn_rdwr_sizes): Same.
2021 (initialize_argument_information): Call init_attr_rdwr_indices.
2022 Call maybe_warn_rdwr_sizes.
2023 (get_size_range): Avoid null argument.
2024 * doc/extend.texi (attribute access): Document new attribute.
2026 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2028 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2029 (ACC_LDS_SIZE): Define.
2030 (OTHER_LDS_SIZE): Define.
2031 (LDS_SIZE): Redefine using above.
2032 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2034 2019-11-22 Martin Sebor <msebor@redhat.com>
2037 * builtins.c (check_nul_terminated_array): New function.
2038 (fold_builtin_0): Remove declaration.
2039 (fold_builtin_1): Same.
2040 (fold_builtin_2): Same.
2041 (fold_builtin_3): Same.
2042 (fold_builtin_strpbrk): Add argument.
2043 (fold_builtin_strspn): Same.
2044 (fold_builtin_strcspn): Same.
2045 (expand_builtin_strcat): Call it. Remove unused argument.
2046 (expand_builtin_stpncpy): Same.
2047 (expand_builtin_strncat): Same.
2048 (expand_builtin_strncpy): Same. Adjust indentation.
2049 (expand_builtin_strcmp): Same.
2050 (expand_builtin_strncmp): Same.
2051 (expand_builtin_fork_or_exec): Same.
2052 (expand_builtin): Handle more built-ins.
2053 (fold_builtin_2): Add argument.
2054 (fold_builtin_n): Make static. Add argument.
2055 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2056 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2057 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2058 (fold_call_stmt): Pass new argument to fold_builtin_n.
2059 * builtins.h: Correct a comment.
2060 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2061 check_nul_terminated_array.
2062 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2063 check_nul_terminated_array.
2064 (handle_builtin_strchr): Same.
2065 (handle_builtin_string_cmp): Same.
2067 2019-11-22 Martin Sebor <msebor@redhat.com>
2069 PR tree-optimization/92501
2070 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2071 handle unterminated arrays. Rename local variables for clarity.
2073 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2075 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2076 granulated_sgprs according to architecture.
2078 2019-11-22 Jan Hubicka <jh@suse.cz>
2080 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2081 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2082 (memory_block_pool::reduce_free_list): ... this one.
2083 (memory_block_pool::trim): New static function.
2084 * memory-block.h (memory_block_pool::freelist_size): New constant
2085 (memory_block_pool::clear_free_list): Rename to ...
2086 (memory_block_pool::reduce_free_list): ... this one.
2087 (memory_block_pool::trim): Declare.
2089 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2091 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2093 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2095 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2097 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2099 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2100 (bic_cmp0_noout): New pattern.
2101 (bic_cmp0): Likewise.
2102 (neg_scc_insn): Remove pattern.
2103 (not_scc_insn): Likewise.
2105 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2107 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2109 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2111 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2112 pedwarn instead of warning_at for fallthrough not preceding a case
2115 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2117 PR tree-optimization/92608
2118 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2121 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2123 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2125 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2126 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2127 special for FP comparisons that need a cror instruction eventually.
2128 (rs6000_emit_fp_cror): New function.
2129 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2130 instruction, for normal FP modes, with HONOR_NANS.
2131 (rs6000_emit_cbranch): Reformat.
2132 * config/rs6000/rs6000.md (fp_rev): New iterator.
2133 (fp_two): New iterator.
2134 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2135 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2136 *cbranch_2insn: New define_insn_and_split.
2138 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2140 PR tree-optimization/92526
2141 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2142 versioning for alignment if the accesses do not have a consistent
2143 mask, rather than asserting that the masks are consistent.
2145 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2147 PR tree-optimization/92595
2148 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2150 (vectorizable_store, vectorizable_load): Likewise.
2152 2019-11-21 Jan Hubicka <jh@suse.cz>
2154 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2155 (resolve_noninline_speculation, inline_small_functions): Avoid
2158 2019-11-21 Richard Biener <rguenther@suse.de>
2160 * lra.c (lra_insn_recog_data_pool): New.
2161 (free_insn_recog_data): Adjust.
2162 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2163 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2165 2019-11-21 Richard Biener <rguenther@suse.de>
2167 PR tree-optimization/92596
2168 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2170 2019-11-21 Jan Hubicka <jh@suse.cz>
2172 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2173 ready for some vectors to not be allocated.
2174 (evaluate_properties_for_edge): Document better; make
2175 known_vals and known_aggs caller allocated; avoid determining
2176 values of parameters which are not used.
2177 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2179 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2180 (do_estimate_edge_size): Likewise.
2181 (do_estimate_edge_hints): Likewise.
2182 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2183 values are not known.
2184 (ipa_release_agg_values): Add option to not release vector itself.
2185 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2187 2019-11-21 Richard Biener <rguenther@suse.de>
2189 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2190 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2191 (loop_iterator::loop_iterator): Adjust.
2192 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2193 (compute_dominance_frontiers): ... this. Hoist invariant
2194 get_immediate_dominator call.
2195 (compute_idf): Use a work-set instead of a work-list for more
2196 optimal iteration order and duplicate avoidance.
2197 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2198 the vector all the time, instead pre-allocate the vector only
2200 (delete_update_ssa): Simplify.
2201 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2203 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2205 PR tree-optimization/91355
2206 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2207 for early_bb scaled count with best_bb count comparison.
2209 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2211 * ipa-inline.c (edge_badness): Likewise.
2212 * lto-streamer.h (class lto_location_cache): Likewise.
2213 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2214 gratutious -> gratuitous.
2216 2019-11-21 Richard Biener <rguenther@suse.de>
2219 2019-09-17 Richard Biener <rguenther@suse.de>
2221 PR tree-optimization/91790
2222 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2223 use the correct DR for setting up realignment.
2225 2019-11-21 Richard Biener <rguenther@suse.de>
2227 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2228 (equiv_class_obstack): New.
2229 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2230 (perform_var_substitution): Initialize equiv_class_obstack.
2231 (free_var_substitution_info): Free equiv_class_obstack.
2233 2019-11-20 Jan Hubicka <jh@suse.cz>
2235 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2236 edge growth when callee function is very large.
2237 * ipa-inline.h (estimate_min_edge_growth): New.
2239 2019-11-20 Jan Hubicka <jh@suse.cz>
2241 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2242 negative time in calls summary; correct roundoff errors
2243 leading to negative times.
2244 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2246 (ipa_update_overall_fn_summary): Add RESET parameter.
2247 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2248 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2250 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2252 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2253 def types for two-operation SLP.
2255 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2258 * doc/sourcebuild.texi (vect_char_add): Document.
2260 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2262 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2263 * function.c (record_final_call): Record even calls that might
2264 have been in the cgraph.
2265 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2268 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2270 * configure.ac: Use https for gcc.gnu.org
2271 * configure: Regenerated.
2272 * doc/install.texi: Use https for gcc.gnu.org.
2273 * doc/sourcebuild.texi: Likewise.
2275 2019-11-20 Julian Brown <julian@codesourcery.com>
2277 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2279 2019-11-20 Jan Hubicka <jh@suse.cz>
2281 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2282 parameter and update call_size_time_table.
2283 (ipa_fn_summary::max_size_time_table_size): New constant.
2284 (estimate_calls_size_and_time_1): Break out from ...
2285 (estimate_calls_size_and_time): ... here; implement summary production.
2286 (summarize_calls_size_and_time): New function.
2287 (ipa_call_context::estimate_size_and_time): Bypass
2288 estimate_calls_size_and_time for leaf functions.
2289 (ipa_update_overall_fn_summary): Likewise.
2290 * ipa-fnsummary.h (call_size_time_table): New.
2291 (ipa_fn_summary::account_size_time): Update prototype.
2293 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2295 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2297 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2300 * common.opt (fcommon): Change init to 1.
2301 * doc/invoke.texi (-fcommon): Update documentation.
2303 2019-11-20 Jan Hubicka <jh@suse.cz>
2305 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2308 2019-11-20 Jan Hubicka <jh@suse.cz>
2310 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2311 Add allocator parameter.
2312 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2313 (fibonacci_heap<K,V>::m_allocator): New.
2314 (fibonacci_heap<K,V>::m_own_allocator): New.
2315 (fibonacci_heap<K,V>::insert): Use allocator.
2316 (fibonacci_heap<K,V>::extract_min): Likewise.
2317 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2319 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2321 * fibonacci_heap.c: Include alloc-pool
2322 (test_empty_heap): Initialize allocator.
2323 (test_union): Likewise.
2324 * bb-reorder.c: Include alloc-pool.h.
2325 * tracer.c: Inlclude alloc-pool.h.
2327 2019-11-20 Jan Hubicka <jh@suse.cz>
2329 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2330 Preallocate for 32 entries.
2331 (DFS::worklist): Likewise.
2332 (DFS::DFS): Do not initialize sccstack and worklist.
2333 (DFS::~DFS): Do not release sccstack.
2335 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2338 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2339 Handle UNORDERED if !HONOR_NANS.
2341 2019-11-20 Jan Hubicka <jh@suse.cz>
2343 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2344 (edge_badness): ... here.
2345 (inline_small_functions): Use monotonicity of badness calculation
2346 to avoid redundant updates.
2348 2019-11-20 Richard Biener <rguenther@suse.de>
2350 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2351 constructors we are actually analyzing.
2352 (vect_slp_check_for_constructors): Do not vectorize uniform
2353 constuctors, do not dump here.
2355 2019-11-20 Richard Biener <rguenther@suse.de>
2357 PR tree-optimization/92537
2358 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2359 vectorization validity check...
2360 (vect_slp_analyze_operations): ... here.
2362 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2364 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2365 (make_pass_arc_predicate_delay_insns): Likewise.
2366 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2367 method, remove clone.
2368 (class pass_arc_predicate_delay_insns): Likewise.
2369 (arc_init): Remove registering of ARC specific passes.
2370 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2371 * config/arc/arc-passes.def: New file.
2373 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2376 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2377 and has a mode that doesn't have corresponding integral type.
2380 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2381 clear opts->x_ix86_isa_flags{,2} here...
2382 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2383 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2386 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2388 (insert_clobbers_for_var): Fix a typo in function comment.
2390 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2391 Jakub Jelinek <jakub@redhat.com>
2394 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2395 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2398 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2400 Make 0-series device specs work with older versions of avr-gcc.
2403 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2404 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2405 <*link_pm_base_address>: Don't write spec.
2406 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2408 2019-11-20 Richard Biener <rguenther@suse.de>
2411 * builtins.c (compute_objsize): Deal with VLAs.
2413 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2415 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2417 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2419 (power9_sched_reorder2): Call new function.
2420 (rs6000_sched_reorder2): Likewise.
2422 2019-11-18 Jan Hubicka <jh@suse.cz>
2424 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2425 (estimate_calls_size_and_time): Update.
2427 2019-11-18 Jan Hubicka <jh@suse.cz>
2429 * ipa-inline.c (inlining_speedup): New function.
2430 (edge_badness): Use it.
2432 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2433 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2435 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2436 Mark as not having "likely" version.
2437 * config/mips/mips.md (insn_count): The simd_div instruction with
2438 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2439 (can_delay): Exclude simd_branch.
2440 (defile_delay *): Add simd_branch instructions.
2441 They have one regular delay slot.
2443 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2446 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2448 * cse.c (cse_insn): Delete no-op register moves too.
2449 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2450 Take a second comparison to control the value for NE.
2451 (mask_to_comparison): Handle unsigned comparisons.
2452 (simplify_logical_relational_operation): Likewise. Update call
2453 to comparison_to_mask. Handle AND if !HONOR_NANs.
2454 (simplify_binary_operation_1): Call the above for AND too.
2456 2019-11-19 Martin Liska <mliska@suse.cz>
2458 * toplev.c (general_init): Move the call...
2459 (toplev::main): ... here as we need init_options_struct
2462 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2465 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2468 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2470 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2471 (armv7-a): Likewise.
2472 (armv7ve): Likewise.
2474 2019-11-19 Richard Biener <rguenther@suse.de>
2476 PR tree-optimization/92581
2477 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2478 condition reduction chains gather all conditions involved
2479 for computing the index reduction vector.
2481 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2483 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2484 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2485 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2486 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2487 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2488 (aarch64_init_memtag_builtins): New.
2489 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2490 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2491 (aarch64_expand_builtin_memtag): New.
2492 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2493 (AARCH64_BUILTIN_SUBCODE): New macro.
2494 (aarch64_resolve_overloaded_memtag): New.
2495 (aarch64_resolve_overloaded_builtin_general): New. Call
2496 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2497 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2498 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2499 (aarch64_resolve_overloaded_builtin): Call
2500 aarch64_resolve_overloaded_builtin_general.
2501 * config/aarch64/aarch64-protos.h
2502 (aarch64_resolve_overloaded_builtin_general): New declaration.
2503 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2504 (TARGET_MEMTAG): Likewise.
2505 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2506 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2507 (irg, gmi, subp, addg, ldg, stg): New instructions.
2508 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2509 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2510 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2511 (__arm_mte_get_tag): Likewise.
2512 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2513 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2514 * config/arm/types.md (memtag): New.
2515 * doc/invoke.texi (-memtag): Update description.
2517 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2519 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2520 to define __GCC_ASM_FLAG_OUTPUTS__.
2521 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2522 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2523 depending on TARGET_THUMB1.
2524 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2526 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2529 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2532 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2533 operand is negative and one non-negative, compare the non-negative
2534 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2535 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2536 and s2 == 0, unless one of them is known to be negative. Remove
2537 tem2 variable, use tem where tem2 has been used before.
2539 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2541 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2543 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2545 PR tree-optimization/92557
2546 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2547 vmode rather than asserting it always is.
2549 2019-11-19 Richard Biener <rguenther@suse.de>
2551 PR tree-optimization/92554
2552 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2553 for the actual condition stmt and deal with sign-changes.
2555 2019-11-19 Richard Biener <rguenther@suse.de>
2557 PR tree-optimization/92555
2558 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2561 2019-11-19 Martin Liska <mliska@suse.cz>
2564 * config/riscv/riscv.c (riscv_address_insns): Initialize
2565 addr in order to remove boostrap -Wmaybe-uninitialized
2568 2019-11-18 Martin Sebor <msebor@redhat.com>
2570 PR tree-optimization/92493
2571 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2574 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2576 * cfgloop.c (get_loop_body_in_custom_order): New.
2577 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2578 * tree-loop-distribution.c (class loop_distribution): New.
2579 (bb_top_order_cmp): Remove.
2580 (bb_top_order_cmp_r): New.
2581 (create_rdg_vertices): Move into class loop_distribution.
2582 (stmts_from_loop): Same as above.
2583 (update_for_merge): Same as above.
2584 (partition_merge_into): Same as above.
2585 (get_data_dependence): Same as above.
2586 (data_dep_in_cycle_p): Same as above.
2587 (update_type_for_merge): Same as above.
2588 (build_rdg_partition_for-vertex): Same as above.
2589 (classify_builtin_ldst): Same as above.
2590 (classify_partition): Same as above.
2591 (share_memory_accesses): Same as above.
2592 (rdg_build_partitions): Same as above.
2593 (pg_add_dependence_edges): Same as above.
2594 (build_partition_graph): Same as above.
2595 (merge_dep_scc_partitions): Same as above.
2596 (break_alias_scc_partitions): Same as above.
2597 (finalize_partitions): Same as above.
2598 (distribute_loop): Same as above.
2599 (bb_top_order_init): New method
2600 (bb_top_order_destroy): New method.
2601 (get_bb_top_order_index_size): New method.
2602 (get_bb_top_order_index_index): New method.
2603 (get_bb_top_order_index_index): New method.
2604 (loop_distribution::execute): New method.
2605 (pass_loop_distribution::execute): Instantiate loop_distribution.
2607 2019-11-18 Jan Hubicka <jh@suse.cz>
2610 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2612 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2614 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2616 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2617 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2618 * doc/md.texi: Document them.
2619 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2621 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2622 * internal-fn.c (check_ptrs_direct): New macro.
2623 (expand_check_ptrs_optab_fn): Likewise.
2624 (direct_check_ptrs_optab_supported_p): Likewise.
2625 (internal_check_ptrs_fn_supported_p): New fuction.
2626 * tree-data-ref.c: Include internal-fn.h.
2627 (create_ifn_alias_checks): New function.
2628 (create_intersect_range_checks): Use it.
2629 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2630 (optab, cmp_op): Handle it.
2631 (raw_war, unspec): New int attributes.
2632 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2634 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2636 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2638 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2641 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2643 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2646 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2648 * cse.c (cse_insn): Delete no-op register moves too.
2649 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2650 Take a second comparison to control the value for NE.
2651 (mask_to_comparison): Handle unsigned comparisons.
2652 (simplify_logical_relational_operation): Likewise. Update call
2653 to comparison_to_mask. Handle AND if !HONOR_NANs.
2654 (simplify_binary_operation_1): Call the above for AND too.
2656 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2658 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2659 splitting the main code out into...
2660 (native_encode_vector_part): ...this new function.
2661 (native_decode_vector_tree): New function.
2662 (fold_view_convert_vector_encoding): Likewise.
2663 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2666 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2668 * tree-data-ref.c (create_intersect_range_checks_index): If the
2669 alias pair describes simple WAW and WAR dependencies, just check
2670 whether the first B access overlaps later A accesses.
2671 (create_waw_or_war_checks): New function that performs the same
2672 optimization on addresses.
2673 (create_intersect_range_checks): Call it.
2675 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2677 * lra-constraints.c (valid_address_p): Take the operand and a
2678 constraint as argument. If the operand is a MEM and the constraint
2679 is a memory constraint, check whether the eliminated form of the
2680 MEM already satisfies the constraint.
2681 (process_address_1): Update calls accordingly.
2683 2019-11-18 Tom Tromey <tromey@adacore.com>
2685 * doc/tm.texi: Rebuild.
2686 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2687 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2689 2019-11-18 Richard Biener <rguenther@suse.de>
2691 PR tree-optimization/92516
2692 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2693 argument, hoist bst_map creation/destruction to ...
2694 (vect_analyze_slp): ... here, forming a true graph with
2695 SLP instances being the entries.
2696 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2697 (vect_detect_hybrid_slp): Use one visited set for all
2699 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2700 to hash-sets of slp_tree.
2701 (vect_slp_analyze_operations): Likewise.
2702 (vect_bb_slp_scalar_cost): Remove wrapper.
2703 (vect_bb_vectorization_profitable_p): Use one visited set for
2705 (vect_schedule_slp_instance): Elide bst_map use.
2706 (vect_schedule_slp): Likewise.
2708 2019-11-18 Richard Biener <rguenther@suse.de>
2710 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2711 was vectorized with just external refs fail.
2713 2019-11-18 Martin Liska <mliska@suse.cz>
2716 * ipa-icf.c (sem_function::init): Unset m_checker
2717 at the end of the function.
2719 2019-11-18 Richard Biener <rguenther@suse.de>
2721 PR tree-optimization/92558
2722 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2723 reducting the width of a reduction vector def update new_phis.
2725 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2727 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2728 and s390*-*-linux-musl* targets.
2729 * configure: Regenerate.
2731 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2733 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2734 (MUSL_DYNAMIC_LINKER64): Define.
2736 2019-11-18 Martin Liska <mliska@suse.cz>
2738 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2739 message for an unknown counter.
2740 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2741 (dbg_cnt_process_opt): Remove unreachable code.
2743 2019-11-18 Martin Liska <mliska@suse.cz>
2746 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2747 Compare LHS types of NOP_EXPR.
2749 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2751 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2752 "initial_pass_name" argument -- by running "*clean_state" pass.
2753 Also free the "initial_pass_name" when done.
2755 2019-11-18 Richard Biener <rguenther@suse.de>
2757 PR rtl-optimization/92462
2758 * alias.c (find_base_term): Restrict the look through ANDs.
2759 (find_base_value): Likewise.
2761 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2763 Add support for AVR devices from the 0-series.
2766 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2767 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2768 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2769 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2770 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2771 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2772 for spec definitions.
2773 * doc/avr-mmcu.texi: Regenerate.
2775 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2778 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2779 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2780 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2781 (ix86_reassociation_width): Ditto.
2782 * config/i386/i386-options.c (ix86_option_override_internal):
2783 Replace TARGET_AVX128_OPTIAML with
2784 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2785 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2786 (TARGET_AVX128_OPTIMAL): Deleted.
2787 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2790 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2792 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2793 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2795 (cceq_rev_compare): Rename to...
2796 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2798 (define_split for <bd>tf_<mode>): Add SImode first argument to
2799 gen_cceq_ior_compare.
2801 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2803 * common/config/powerpcspe: Delete.
2805 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2807 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2808 output in UNSPEC_WRFFR.
2810 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2812 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2813 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2815 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2817 * tree-data-ref.c (create_intersect_range_checks_index)
2818 (create_intersect_range_checks): Print dump messages.
2820 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2822 * tree-data-ref.c (dump_alias_pair): New function.
2823 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2825 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2827 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2828 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2829 merging data references with different steps.
2830 (create_intersect_range_checks_index): Take a
2831 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2832 Bail out if DR_ALIAS_MIXED_STEPS is set.
2833 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2834 instead of two dr_with_seg_lens. Update call to
2835 create_intersect_range_checks_index.
2836 (create_runtime_alias_checks): Update call accordingly.
2838 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2840 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2841 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2842 (dr_with_seg_len_pair_t::sequencing): New enum.
2843 (dr_with_seg_len_pair_t::flags): New member variable.
2844 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2845 parameter and initialize the flags member variable.
2846 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2848 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2849 Ensure the two data references in an alias pair are in statement
2850 order, if there is a defined order.
2851 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2852 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2853 swapped the references in a dr_with_seg_len_pair_t. OR together
2854 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2855 try to restore the original dr_with_seg_len order, updating the
2856 flags if that fails.
2858 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2860 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2861 swapping the dr_as based on init values until we've decided
2862 whether to merge them.
2864 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2866 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2867 two accesses in each dr_with_seg_len_pair_t before trying to
2868 combine separate dr_with_seg_len_pair_ts.
2869 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2871 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2873 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2875 * config/aarch64/aarch64-sve.md
2876 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2877 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2878 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2879 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2880 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2881 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2882 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2884 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2885 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2886 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2887 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2889 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2891 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2892 (SVE_4HSI): New mode iterators.
2893 (ANY_EXTEND2): New code iterator.
2894 * config/aarch64/aarch64-sve.md
2895 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2897 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2898 ...this, handling extension to partial modes as well as full modes.
2899 Describe the extension as a predicated rather than unpredicated
2901 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2902 Likewise extend to...
2903 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2904 ...this, making the same adjustments.
2905 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2906 Likewise extend to...
2907 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2908 ...this, making the same adjustments.
2909 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2910 Likewise extend to...
2911 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2912 ...this, making the same adjustments.
2913 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2915 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2916 extension predicate.
2917 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2918 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2919 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2920 Describe the extension as a predicated rather than unpredicated
2922 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2923 Likewise. Canonicalize to a constant extension predicate.
2924 * config/aarch64/aarch64-sve-builtins-base.cc
2925 (svld1_gather_extend_impl::expand): Add an extra predicate for
2927 (svldff1_gather_extend_impl::expand): Likewise.
2929 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2931 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2933 * config/aarch64/aarch64-sve.md
2934 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2935 (gather_load<SVE_24:mode><v_int_container>): ...this.
2936 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2937 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2938 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2939 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2940 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2942 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2943 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2944 Allow the nominal extension predicate to be different from the
2946 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2947 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2949 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2951 * config/aarch64/aarch64-sve.md
2952 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2953 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2955 (aarch64_sve_adjust_stmt_cost): Call it.
2957 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2959 * config/aarch64/aarch64-sve.md
2960 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2961 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2962 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2964 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2965 ...this new pattern, handling extension to partial modes as well
2966 as full modes. Describe the extension as a predicated rather than
2967 unpredicated extension.
2968 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2969 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2970 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2972 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2973 ...this new pattern, handling extension to partial modes as well
2974 as full modes. Describe the extension as a predicated rather than
2975 unpredicated extension.
2976 * config/aarch64/aarch64-sve-builtins.cc
2977 (function_expander::use_contiguous_load_insn): Add an extra
2978 predicate for extending loads.
2979 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2980 (aarch64_sve_adjust_stmt_cost): Likewise.
2981 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2982 the cost of SVE vector stmts.
2984 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2986 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2987 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2988 * config/aarch64/aarch64-sve.md
2989 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2990 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2991 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2992 comment. Avoid new narrower_mask ambiguity.
2993 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2994 (*cond_uxt<mode>_2): Update comment.
2995 (*cond_uxt<mode>_any): Likewise.
2997 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2999 * config/aarch64/aarch64-modes.def: Define partial SVE vector
3001 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3003 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3004 new vector float modes.
3005 (aarch64_sve_container_bits): New function.
3006 (aarch64_sve_pred_mode): Likewise.
3007 (aarch64_get_mask_mode): Use it.
3008 (aarch64_sve_element_int_mode): Handle structure modes and partial
3010 (aarch64_sve_container_int_mode): New function.
3011 (aarch64_vectorize_related_mode): Return SVE modes when given
3012 SVE modes. Handle partial modes, taking the preferred number
3013 of units from the size of the given mode.
3014 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3016 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3017 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3018 (aarch64_split_sve_subreg_move): Use the mode form of
3019 aarch64_sve_pred_mode.
3020 (aarch64_secondary_reload): Handle partial modes in the same way
3021 as full big-endian vectors.
3022 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3023 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3024 merging with the Advanced SIMD modes. If two modes have the
3025 same size, try the Advanced SIMD mode first.
3026 (aarch64_simd_valid_immediate): Use the container rather than
3027 the element mode for INDEX constants.
3028 (aarch64_simd_vector_alignment): Make the alignment of partial
3029 SVE vector modes the same as their minimum size.
3030 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3031 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3032 (mov<SVE_ALL:mode>): ...this.
3033 (movmisalign<SVE_FULL:mode>): Extend to...
3034 (movmisalign<SVE_ALL:mode>): ...this.
3035 (*aarch64_sve_mov<mode>_le): Rename to...
3036 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3037 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3038 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3039 partial modes regardless of endianness.
3040 (aarch64_sve_reload_be): Rename to...
3041 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3042 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3043 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3044 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3045 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3046 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3047 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3048 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3049 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3050 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3051 (maskload<SVE_FULL:mode><vpred>): Extend to...
3052 (maskload<SVE_ALL:mode><vpred>): ...this.
3053 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3054 (maskstore<SVE_ALL:mode><vpred>): ...this.
3055 (vec_duplicate<SVE_FULL:mode>): Extend to...
3056 (vec_duplicate<SVE_ALL:mode>): ...this.
3057 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3058 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3059 (sve_ld1r<SVE_FULL:mode>): Extend to...
3060 (sve_ld1r<SVE_ALL:mode>): ...this.
3061 (vec_series<SVE_FULL_I:mode>): Extend to...
3062 (vec_series<SVE_I:mode>): ...this.
3063 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3064 (*vec_series<SVE_I:mode>_plus): ...this.
3065 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3066 new VPRED ambiguity.
3067 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3068 (add<SVE_FULL_I:mode>3): Extend to...
3069 (add<SVE_I:mode>3): ...this.
3070 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3071 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3072 (VPRED, vpred): Likewise.
3073 (Vctype): New iterator.
3074 (vw): Remove SVE modes.
3076 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3078 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3079 (SVE_PARTIAL_I): ...this.
3080 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3082 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3084 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3085 (SVE_FULL): ...this.
3086 (SVE_I): Rename to...
3087 (SVE_FULL_I): ...this.
3088 (SVE_F): Rename to...
3089 (SVE_FULL_F): ...this.
3090 (SVE_BHSI): Rename to...
3091 (SVE_FULL_BHSI): ...this.
3092 (SVE_HSD): Rename to...
3093 (SVE_FULL_HSD): ...this.
3094 (SVE_HSDI): Rename to...
3095 (SVE_FULL_HSDI): ...this.
3096 (SVE_HSF): Rename to...
3097 (SVE_FULL_HSF): ...this.
3098 (SVE_SD): Rename to...
3099 (SVE_FULL_SD): ...this.
3100 (SVE_SDI): Rename to...
3101 (SVE_FULL_SDI): ...this.
3102 (SVE_SDF): Rename to...
3103 (SVE_FULL_SDF): ...this.
3104 (SVE_S): Rename to...
3105 (SVE_FULL_S): ...this.
3106 (SVE_D): Rename to...
3107 (SVE_FULL_D): ...this.
3108 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3109 * config/aarch64/aarch64-sve2.md: Likewise.
3111 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3113 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3115 * doc/invoke.texi: Document it.
3116 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3117 By default, return VECT_COMPARE_COSTS for SVE.
3119 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3121 * target.h (VECT_COMPARE_COSTS): New constant.
3122 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3123 * doc/tm.texi: Regenerate.
3124 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3125 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3126 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3128 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3129 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3130 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3131 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3132 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3133 (_loop_vec_info::vec_inside_cost): New member variables.
3134 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3135 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3136 (vect_analyze_loop): When autovectorize_vector_modes returns
3137 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3138 vector mode and picking the one with the lowest cost.
3139 (vect_estimate_min_profitable_iters): Record the computed costs
3140 in the loop_vec_info.
3142 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3144 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3145 element type rather than an element mode.
3146 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3147 Use get_vectype_for_scalar_type to query the natural types
3148 for a given element type rather than basing everything on
3149 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3150 query to MAX_FIXED_MODE_SIZE.
3151 (duplicate_and_interleave): Update call accordingly.
3152 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3154 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3156 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3157 optional maximum nunits.
3158 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3160 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3161 (vect_get_mask_type_for_stmt): Likewise.
3162 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3163 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3164 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3165 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3166 to get an assumed vector type for data references.
3167 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3168 (vect_update_all_shared_vectypes): Likewise.
3169 (vect_build_slp_tree_1): Pass the group size to
3170 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3171 for BB vectorization.
3172 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3173 before building the vectof from scalars.
3174 (vect_analyze_slp_instance): Pass the group size to
3175 get_vectype_for_scalar_type.
3176 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3177 types for BB vectorization here; just handle the case in which
3178 we deferred the choice for booleans.
3179 (vect_get_constant_vectors): Pass the slp_tree to
3180 get_vectype_for_scalar_type.
3181 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3182 (vectorizable_call): Likewise.
3183 (vectorizable_simd_clone_call): Likewise.
3184 (vectorizable_conversion): Likewise.
3185 (vectorizable_shift): Likewise.
3186 (vectorizable_operation): Likewise.
3187 (vectorizable_comparison): Likewise.
3188 (vect_is_simple_cond): Take the slp_tree as argument and
3189 pass it to get_vectype_for_scalar_type.
3190 (vectorizable_condition): Update call accordingly.
3191 (get_vectype_for_scalar_type): Take a group_size argument.
3192 For BB vectorization, limit the the vector to that number
3193 of elements. Also define an overload that takes an slp_tree.
3194 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3195 pass it to get_vectype_for_scalar_type.
3196 (vect_get_vector_types_for_stmt): Add a group_size argument
3197 and pass it to get_vectype_for_scalar_type. Don't use the
3198 cached vector type for BB vectorization if a group size is given.
3199 Handle data references in that case.
3200 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3201 pass it to get_mask_type_for_scalar_type.
3203 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3205 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3207 (estimate_edge_time): Use it.
3208 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3209 ret_nonspec_time parameter.
3211 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3213 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3215 2019-11-15 Nick Clifton <nickc@redhat.com>
3216 Szabolcs Nagy <szabolcs.nagy@arm.com>
3219 * config/microblaze/microblaze.c (print_operand): Print value as long.
3221 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3223 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3226 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3228 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3229 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3231 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3233 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3234 (gcn_conditional_register_usage): Use constants in place of hard-coded
3236 (gcn_hsa_declare_function_name): Set lower bound for number of
3237 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3238 MAX_NORMAL_VGPR_COUNT.
3240 2019-11-15 Martin Jambor <mjambor@suse.cz>
3242 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3245 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3247 * config/gcn/gcn.c (default_requested_args): New.
3248 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3249 set with default_requested_args.
3250 (gcn_conditional_register_usage): Limit register usage of non-kernel
3251 functions. Reassign fixed registers if a non-standard set of args is
3253 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3255 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3258 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3259 aggregate jump function when inlined-to caller has no edge summary.
3261 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3263 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3265 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3267 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3269 (print_operand_address): Use v1 for zero vector offset.
3271 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3273 PR tree-optimization/92515
3274 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3275 types when converting a vector/scalar shift into a vector/vector one,
3276 using tree_nop_conversion_p instead of useless_type_conversion_p.
3277 Move the conversion code to the transform block.
3279 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3281 * read-rtl-function.c
3282 (function_reader::add_fixup_source_location): Take additional
3283 parameter of a column.
3284 (function_reader::maybe_read_location): Optionally parse column
3285 information and pass to add_fixup_source_location.
3287 2019-11-15 Richard Biener <rguenther@suse.de>
3289 PR tree-optimization/92512
3290 * tree-vect-loop.c (check_reduction_path): Fix operand index
3291 computability check. Add check for second use in COND_EXPRs.
3293 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3296 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3297 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3299 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3301 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3302 register class for VCC_LO and VCC_HI.
3303 (gcn_spill_class): Use SGPR_REGS to spill registers in
3304 VCC_CONDITIONAL_REG.
3306 2019-11-15 Richard Biener <rguenther@suse.de>
3308 PR tree-optimization/92324
3309 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3310 singedness of SLP reduction epilouge operations. Also reduce
3311 the vector width for SLP reductions before doing elementwise
3312 operations if possible.
3314 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3316 * passes.c (skip_pass): Set epilogue_completed if skipping the
3317 pro_and_epilogue pass.
3319 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3321 * passes.c (should_skip_pass_p): Always run "dfinish".
3323 2019-11-15 Richard Biener <rguenther@suse.de>
3325 * ipa-inline.c (inline_small_functions): Move assignment
3326 to next before call destroying edge.
3328 2019-11-15 Richard Biener <rguenther@suse.de>
3330 PR tree-optimization/92039
3331 PR tree-optimization/91975
3332 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3333 previous change, treat invariants consistently as non-constant.
3334 (tree_estimate_loop_size): Ternary ops with just the first op
3335 constant are not optimized away.
3337 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3339 * gimplify.c (gimplify_call_expr): Don't call
3340 omp_resolve_declare_variant after gimplification.
3341 * omp-general.c (omp_context_selector_matches): For isa that might
3342 match in some other function, defer if in declare simd function.
3343 (omp_context_compute_score): Don't look for " score" in construct
3344 trait set. Set *score to -1 if it can't ever match.
3345 (omp_resolve_declare_variant): If any variants need to be deferred,
3346 don't punt immediately, but compute scores of all variants and if
3347 ther eis a score winner that doesn't need to be deferred, return that.
3349 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3351 * ipa-comdats.c: Fix comments typo.
3352 * ipa-profile.c: Fix comments typo.
3353 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3354 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3355 (gimple_gen_ic_func_profiler): Likewise.
3356 (pass_ipa_tree_profile::gate): Fix comments typo.
3358 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3360 * ipa-inline.c (inline_small_functions): Update iterator of next.
3362 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3364 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3365 register is suitable for the mode.
3367 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3369 * range-op.h (range_operator::fold_range): Return a bool.
3370 * range-op.cc (range_operator::wi_fold): Assert supported type.
3371 (range_operator::fold_range): Assert supported type and return true.
3372 (operator_equal::fold_range): Return true.
3373 (operator_not_equal::fold_range): Same.
3374 (operator_lt::fold_range): Same.
3375 (operator_le::fold_range): Same.
3376 (operator_gt::fold_range): Same.
3377 (operator_ge::fold_range): Same.
3378 (operator_plus::op1_range): Adjust call to fold_range.
3379 (operator_plus::op2_range): Same.
3380 (operator_minus::op1_range): Same.
3381 (operator_minus::op2_range): Same.
3382 (operator_exact_divide::op1_range): Same.
3383 (operator_lshift::fold_range): Return true and adjust fold_range call.
3384 (operator_rshift::fold_range): Same.
3385 (operator_cast::fold_range): Return true.
3386 (operator_logical_and::fold_range): Same.
3387 (operator_logical_or::fold_range): Same.
3388 (operator_logical_not::fold_range): Same.
3389 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3390 (operator_bitwise_not::op1_range): Same.
3391 (operator_cst::fold_range): Return true.
3392 (operator_identity::fold_range): Return true.
3393 (operator_negate::fold_range): Return true and adjust fold_range call.
3394 (operator_addr_expr::fold_range): Return true.
3395 (operator_addr_expr::op1_range): Adjust call to fold_range.
3397 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3398 (range_fold_unary_symbolics_p): Same.
3400 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3402 PR tree-optimization/92506
3403 * range-op.cc (range_operator::fold_range): Start with range undefined.
3404 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3405 overflow is varying.
3407 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3409 * range-op.cc (*operator*::*range): Remove calls to
3410 range_intersect, range_invert, and range_union in favor of calling
3411 the in-place API methods.
3412 (range_tests): Same.
3413 * range.cc (range_intersect): Remove.
3414 (range_union): Remove.
3415 (range_invert): Remove.
3416 * range.h (range_intersect): Remove.
3417 (range_union): Remove.
3418 (range_intersect): Remove.
3420 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3422 PR rtl-optimization/92430
3423 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3424 (pass_jump_after_combine::execute): Perform jump threading
3427 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3428 Doug Rupp <rupp@adacore.com>
3429 Olivier Hainque <hainque@adacore.com>
3431 * config.gcc: Collapse the arm-vxworks entries into
3432 a single arm-wrs-vxworks7* one, bpabi based. Update
3433 the default cpu from arm8 to armv7-a
3434 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3435 we always use ARM_UNWIND_INFO.
3436 (DWARF2_UNWIND_INFO): Remove redefinition.
3437 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3438 (VXWORKS_PERSONALITY): Define, to "llvm".
3439 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3441 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3443 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3444 _VX_CPU instead of CPU and handle arm_arch8.
3446 2019-11-14 Doug Rupp <rupp@adacore.com>
3447 Olivier Hainque <hainque@adacore.com>
3448 Jerome Lambourg <lambourg@adacore.com>
3450 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3451 * config/aarch64/aarch64-vxworks.h: New file.
3452 * config/aarch64/t-aarch64-vxworks: New file.
3454 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3455 Olivier Hainque <hainque@adacore.com>
3457 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3458 definition, pointless with a VxWorks specific version
3460 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3461 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3462 New local macros, controlling the addition of vxworks specific
3463 crtstuff objects depending on the EH mechanism and kind of
3464 module being linked.
3465 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3467 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3468 Jerome Lambourg <lambourg@adacore.com>
3469 Olivier Hainque <hainque@adacore.com>
3471 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3472 common macro definitions, conveying VXWORKS7 or 64bit general
3473 variations. Add a block to set gcc_cv_initfini_array
3474 unconditionally to "yes" for VxWorks7.
3475 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3476 by default. Update some comments.
3477 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3478 default, to be added the end of VXWORKS_LIBS_RTP.
3479 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3480 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3482 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3483 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3484 to account for the now available TLS abilities.
3485 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3486 (VXWORKS_HAVE_TLS): Likewise.
3488 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3490 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3491 (vect_slp_convert_to_external): Likewise.
3492 (vect_slp_analyze_node_operations): If analysis fails, try building
3493 the node from scalars instead.
3495 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3497 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3498 between vector types.
3499 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3500 non-widening and non-narrowing path to handle standard
3501 conversion codes, if the target supports them.
3502 * expr.c (convert_move): Try using the extend and truncate optabs
3504 * optabs-tree.c (supportable_convert_operation): Likewise.
3505 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3506 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3507 (trunc<mode><Vnarrowq>2): New patterns.
3509 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3511 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3512 require vectype and nunits_vectype to have the same size;
3513 instead assert that nunits_vectype has at least as many
3514 elements as vectype. Don't compute a separate nunits_vectype
3515 if the scalar type is obviously the same as vectype's.
3516 Tweak dump messages.
3518 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3520 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3522 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3523 (TARGET_VECTORIZE_RELATED_MODE): Define.
3525 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3527 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3528 (vec_info::used_vector_mode): New member variable.
3529 (vect_chooses_same_modes_p): Declare.
3530 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3531 chosen vector mode in vec_info::used_vector_mode.
3532 (vect_chooses_same_modes_p): New function.
3533 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3534 the same vector statements multiple times.
3535 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3537 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3539 * machmode.h (opt_machine_mode::operator==): New function.
3540 (opt_machine_mode::operator!=): Likewise.
3541 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3542 (get_related_vectype_for_scalar_type): Delete.
3543 (get_vectype_for_scalar_type_and_size): Declare.
3544 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3545 whether analysis passed or failed, and with what vector modes.
3546 Use related_vector_mode to check whether trying a particular
3547 vector mode would be redundant with the autodetected mode,
3548 and print a dump message if we decide to skip it.
3549 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3550 (vect_create_epilog_for_reduction): Use
3551 get_related_vectype_for_scalar_type instead of
3552 get_vectype_for_scalar_type_and_size.
3553 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3555 (get_related_vectype_for_scalar_type): ...this new function.
3556 Take a starting/"prevailing" vector mode rather than a vector size.
3557 Take an optional nunits argument, with the same meaning as for
3558 related_vector_mode. Use related_vector_mode when not
3559 auto-detecting a mode, falling back to mode_for_vector if no
3561 (get_vectype_for_scalar_type): Update accordingly.
3562 (get_same_sized_vectype): Likewise.
3563 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3565 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3567 * tree-vect-stmts.c (vectorizable_call): Require the types
3568 to have the same size.
3570 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3572 * tree-vect-stmts.c (vectorizable_call): If an operand is
3573 constant or external, use get_vectype_for_scalar_type
3574 rather than get_same_sized_vectype to get its vector type.
3575 (vectorizable_conversion, vectorizable_shift): Likewise.
3576 (vectorizable_operation): Likewise.
3578 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3580 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3581 (vec_info::vector_mode): ...this new field.
3582 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3583 (vect_analyze_loop, vect_transform_loop): Likewise.
3584 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3585 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3586 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3587 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3588 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3590 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3592 * target.h (vector_sizes, auto_vector_sizes): Delete.
3593 (vector_modes, auto_vector_modes): New typedefs.
3594 * target.def (autovectorize_vector_sizes): Replace with...
3595 (autovectorize_vector_modes): ...this new hook.
3596 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3598 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3599 * doc/tm.texi: Regenerate.
3600 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3601 (default_autovectorize_vector_modes): New function.
3602 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3603 (default_autovectorize_vector_modes): New function.
3604 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3605 of autovectorize_vector_sizes. Use the number of units in the mode
3606 to calculate the maximum VF.
3607 * omp-low.c (omp_clause_aligned_alignment): Use
3608 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3609 Use a loop based on related_mode to iterate through all supported
3610 vector modes for a given scalar mode.
3611 * optabs-query.c (can_vec_mask_load_store_p): Use
3612 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3613 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3614 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3615 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3617 (aarch64_autovectorize_vector_modes): ...this new function.
3618 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3619 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3620 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3621 (arc_autovectorize_vector_modes): ...this new function.
3622 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3623 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3624 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3625 (arm_autovectorize_vector_modes): ...this new function.
3626 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3627 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3628 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3629 (ix86_autovectorize_vector_modes): ...this new function.
3630 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3631 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3632 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3633 (mips_autovectorize_vector_modes): ...this new function.
3634 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3635 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3637 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3639 * tree-vect-stmts.c (vectorizable_shift): Check the number
3640 of vector elements as well as the type mode when deciding
3641 whether an op1_vectype is compatible. Reuse the result of
3642 this check when generating vector statements.
3644 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3646 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3647 targetm.vectorize.preferred_simd_mode returns an integer mode,
3648 use mode_for_vector to decide what the vector type's mode
3649 should actually be. Use build_vector_type_for_mode instead
3650 of build_vector_type.
3652 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3654 * target.def (get_mask_mode): Take a vector mode itself as argument,
3655 instead of properties about the vector mode.
3656 * doc/tm.texi: Regenerate.
3657 * targhooks.h (default_get_mask_mode): Update to reflect new
3658 get_mode_mask interface.
3659 * targhooks.c (default_get_mask_mode): Likewise. Use
3660 related_int_vector_mode.
3661 * optabs-query.c (can_vec_mask_load_store_p): Update call
3663 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3664 first that the original mode really is a vector.
3665 * tree.c (build_truth_vector_type_for): Likewise.
3666 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3667 get_mode_mask interface.
3668 (aarch64_expand_sve_vcond): Update call accordingly.
3669 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3670 get_mode_mask interface.
3671 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3673 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3675 * tree.h (build_truth_vector_type): Delete.
3676 (build_same_sized_truth_vector_type): Likewise.
3677 * tree.c (build_truth_vector_type): Rename to...
3678 (build_truth_vector_type_for): ...this. Make static and take
3679 a vector type as argument.
3680 (truth_type_for): Update accordingly.
3681 (build_same_sized_truth_vector_type): Delete.
3682 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3683 instead of build_same_sized_truth_vector_type.
3684 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3685 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3686 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3687 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3688 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3689 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3690 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3691 (vectorizable_store, vectorizable_condition): Likewise.
3692 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3693 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3694 build_truth_vector_type.
3695 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3696 Use truth_type_for instead of build_same_sized_truth_vector_type.
3697 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3699 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3701 * tree.h (build_truth_vector_type_for_mode): Declare.
3702 * tree.c (build_truth_vector_type_for_mode): New function,
3704 (build_truth_vector_type): ...here.
3705 (build_opaque_vector_type): Fix head comment.
3706 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3708 (vect_halve_mask_nunits): Replace vec_info parameter with the
3709 mode of the new vector.
3710 (vect_double_mask_nunits): Likewise.
3711 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3712 (vect_double_mask_nunits): Likewise.
3713 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3714 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3715 to vect_halve_mask_nunits, getting the required mode from the unpack
3717 (vect_set_loop_condition_masked): Update call accordingly.
3718 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3719 parameter and update call to vect_double_mask_nunits.
3720 (vectorizable_conversion): Update call accordingly.
3721 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3722 (vectorizable_call): Update call accordingly.
3723 (supportable_widening_operation): Update call to
3724 vect_halve_mask_nunits.
3725 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3726 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3728 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3730 * machmode.h (mode_for_int_vector): Delete.
3731 (related_int_vector_mode): Declare.
3732 * stor-layout.c (mode_for_int_vector): Delete.
3733 (related_int_vector_mode): New function.
3734 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3735 instead of mode_for_int_vector.
3736 (expand_vec_perm_const): Likewise.
3737 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3738 (aarch64_evpc_sve_tbl): Likewise.
3739 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3740 (s390_expand_vcond): Likewise.
3742 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3744 * target.def (related_mode): New hook.
3745 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3746 * doc/tm.texi: Regenerate.
3747 * targhooks.h (default_vectorize_related_mode): Declare.
3748 * targhooks.c (default_vectorize_related_mode): New function.
3749 * machmode.h (related_vector_mode): Declare.
3750 * stor-layout.c (related_vector_mode): New function.
3751 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3752 * optabs-query.c (qimode_for_vec_perm): Likewise.
3753 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3754 (vectorizable_store, vectorizable_load): Likewise
3756 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3758 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3759 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3760 * config/arm/arm-c.c (arm_cpu_builtins): Define
3761 __GCC_ASM_FLAG_OUTPUTS__.
3762 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3763 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3764 Define __GCC_ASM_FLAG_OUTPUTS__.
3765 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3766 * doc/extend.texi (FlagOutputOperands): Add documentation
3767 for ARM and AArch64.
3769 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3770 * config/arm/predicates.md (nz_comparison_operator): Rename
3771 from noov_comparison_operator.
3772 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3773 (arm_gen_dicompare_reg): Likewise.
3774 (maybe_get_arm_condition_code): Likewise.
3775 (thumb1_final_prescan_insn): Likewise.
3776 (arm_emit_coreregs_64bit_shift): Likewise.
3777 * config/arm/arm.md (addsi3_compare0): Likewise.
3778 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3779 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3780 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3781 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3782 (*mulsi3addsi_compare0_scratch): Likewise.
3783 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3784 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3785 (*zeroextractsi_compare0_scratch): Likewise.
3786 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3787 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3788 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3789 (andsi_not_shiftsi_si_scc): Likewise.
3790 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3791 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3792 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3793 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3794 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3795 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3796 (return_addr_mask, *check_arch2): Likewise.
3797 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3798 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3799 (compare_scc splitters): Likewise.
3800 (movcond_addsi): Likewise.
3801 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3802 (*thumb2_addsi3_compare0_scratch): Likewise.
3803 (*thumb2_mulsi_short_compare0): Likewise.
3804 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3805 (compare peephole2s): Likewise.
3806 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3807 nz_comparison_operator names.
3808 (cbranchsi4_insn): Likewise.
3810 * config/arm/constraints.md (c): Use cc_register predicate.
3812 * config/aarch64/constraints.md (c): New constraint.
3814 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3816 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3817 ipa_merge_fn_summary_after_inlining): Micro optimize.
3819 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3821 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3823 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3825 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3826 (ipa_value_range_from_jfunc): New function.
3827 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3828 known_value_ranges parameter; use it to evalulate conditions.
3829 (evaluate_properties_for_edge): Compute known value ranges.
3830 (ipa_fn_summary_t::duplicate): Update use of
3831 evaluate_conditions_for_known_args.
3832 (estimate_ipcp_clone_size_and_time): Likewise.
3833 (ipa_merge_fn_summary_after_inlining): Likewise.
3834 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3836 2019-11-14 Martin Liska <mliska@suse.cz>
3838 * ipa-inline.c (want_inline_small_function_p): Use
3839 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3840 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3842 2019-11-14 Martin Liska <mliska@suse.cz>
3844 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3845 of a callee to get value of the param.
3846 * ipa-inline.c (inline_insns_auto): Use proper
3848 * opts.c (maybe_default_option): Do not overwrite param
3849 value if optimization level does not match. Note that
3850 params usually have default value set via Init() keyword.
3851 * params.opt: Remove -param=max-inline-insns-auto-O2.
3852 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3853 * doc/invoke.texi: Remove documentation of
3854 max-inline-insns-auto-O2.
3856 2019-11-14 Martin Liska <mliska@suse.cz>
3858 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3859 Do not initialize m_other_count.
3860 (switch_conversion::collect): Do not count m_default_count and
3861 m_other_count as we use frequencies for edges.
3862 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3864 2019-11-14 Martin Liska <mliska@suse.cz>
3867 * doc/invoke.texi: Document -fallocation-dce.
3869 2019-11-14 Martin Liska <mliska@suse.cz>
3872 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3873 PTA_ICELAKE_CLIENT which is later interited by
3874 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3876 2019-11-14 Martin Liska <mliska@suse.cz>
3878 * ipa-icf.c (sem_item_optimizer::execute): Save
3880 (sem_item_optimizer::parse_nonsingleton_classes):
3881 Return number of loaded symbols.
3882 (sem_item_optimizer::merge_classes): Print
3883 statistics about totally needed symbols.
3884 * ipa-icf.h (parse_nonsingleton_classes): Change return
3886 (merge_classes): Add one argument.
3888 2019-11-14 Martin Liska <mliska@suse.cz>
3890 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3891 func_checker::hash_operand by handling of FIELD_DECLs.
3893 2019-11-14 Martin Liska <mliska@suse.cz>
3895 * ipa-icf-gimple.h (func_checker::func_checker): Add
3896 default constructor.
3897 * ipa-icf.c (sem_function::init): Make operand_equal_p
3898 and hash_operand public.
3899 (sem_item::add_expr): Remove.
3900 (sem_item::add_type): Remove.
3901 (sem_function::hash_stmt): Use m_checker for hashing
3902 of GIMPLE statements.
3903 (sem_function::parse): Init with checker.
3904 (sem_variable::parse): Pass NULL as checker.
3905 (sem_item_optimizer::parse_funcs_and_vars):
3906 Pass checker to ::parse function.
3907 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3908 (sem_variable::parse): New function.
3909 (sem_variable::get_hash): Only return computed hash value.
3910 (sem_variable::init): Initialize hash of a variable.
3911 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3912 to couple of functions as a new argument.
3914 2019-11-14 Martin Liska <mliska@suse.cz>
3916 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3918 (func_checker::compare_gimple_assign): Likewise.
3920 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3922 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3923 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3924 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3926 * omp-general.c (omp_context_name_list_prop): New function.
3927 (omp_context_selector_matches): Use it. Return 0 if it returns
3929 (omp_context_selector_props_compare): Allow equivalency of an
3930 identifier and a string literal containing no embedded zeros.
3932 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3934 * range-op.cc (RANGE3): Remove.
3935 (range_tests): Remove all selftest that check for multi-ranges.
3936 Put tests in namespace selftest.
3937 * selftest.h: Move range_tests into namespace selftest.
3938 * value-range.h (class value_range): Unfriend range_tests.
3940 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3942 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3943 normalize_symbolics and normalize_addresses working in place.
3944 (range_fold_unary_symbolics_p): Same.
3945 (range_fold_unary_symbolics_p): Same.
3946 * value-range.cc (num_pairs): Same.
3947 (lower_bound): Same.
3948 (upper_bound): Same.
3950 (normalize_addresses): Same.
3951 (normalize_symbolics): Same.
3952 * value-range.h (normalize_symbolics): Same.
3953 (normalize_addresses): Same.
3955 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3958 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3959 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3960 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3961 (ipa_agg_jump_function): Remove member function equal_to.
3962 (ipa_agg_jump_function_p): Remove typedef.
3963 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3964 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3965 information for aggregate jump function.
3966 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3967 record last definition statement.
3968 (load_from_unmodified_param_or_agg): New function.
3969 (ipa_known_agg_contents_list): Add new field type and value, remove
3971 (build_agg_jump_func_from_list): Rename parameter const_count to
3972 value_count, build aggregate jump function from ipa_load_agg_data.
3973 (analyze_agg_content_value): New function.
3974 (extract_mem_content): Analyze memory store assignment to prepare
3975 information for aggregate jump function generation.
3976 (determine_known_aggregate_parts): Add new parameter fbi, remove
3977 parameter aa_walk_budeget_p.
3978 (update_jump_functions_after_inlining): Update aggregate jump function.
3979 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3980 (try_make_edge_direct_simple_call): Add new parameter new_root.
3981 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3983 (update_indirect_edges_after_inlining): Pass new argument to
3984 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3985 (ipa_write_jump_function): Write aggregate jump function to file.
3986 (ipa_read_jump_function): Read aggregate jump function from file.
3987 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3988 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3989 (ipa_agg_value_from_node): Likewise.
3990 (ipa_agg_value_set_from_jfunc): Likewise.
3991 (propagate_vals_across_arith_jfunc): Likewise.
3992 (propagate_aggregate_lattice): Likewise.
3993 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3994 (propagate_vals_across_pass_through): Call
3995 propagate_vals_across_arith_jfunc.
3996 (get_clone_agg_value): Move forward.
3997 (propagate_aggs_across_jump_function): Handle value propagation for
3998 aggregate jump function.
3999 (agg_jmp_p_vec_for_t_vec): Remove.
4000 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4001 with vec<ipa_agg_value>.
4002 (copy_plats_to_inter, intersect_with_plats): Likewise.
4003 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4004 (intersect_aggregate_with_edge): Likewise.
4005 (find_aggregate_values_for_callers_subset): Likewise.
4006 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4007 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4008 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4009 (gather_context_independent_values): Likewise.
4010 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4011 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4012 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4013 (evaluate_properties_for_edge): Likewise.
4014 (estimate_edge_devirt_benefit): Likewise.
4015 (estimate_edge_size_and_time): Likewise.
4016 (estimate_calls_size_and_time): Likewise.
4017 (ipa_call_context::ipa_call_context): Likewise.
4018 (estimate_ipcp_clone_size_and_time): Likewise.
4019 * ipa-fnsummary.h (ipa_call_context): Replace
4020 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4021 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4022 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4023 (do_estimate_edge_size): Likewise.
4024 (do_estimate_edge_hints): Likewise.
4026 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4028 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4031 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4033 * ipa-profile.c (check_argument_count): Check properly that e_info
4034 is non-NULL; do not check descriptors.
4036 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4038 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4039 check for ipa profiles.
4041 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4044 * ipa-prop.c (update_indirect_edges_after_inlining):
4045 Mark parameter as used.
4046 * ipa-inline.c (recursive_inlining): Reset node cache
4048 (inline_small_functions): Remove checking ifdef.
4049 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4052 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4055 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4057 (ipa_profile): Fix reversed test.
4059 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4061 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4062 (propagate_constants_topo): Fix typo.
4064 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4066 * Makefile.in (OBJS): Add value-range.o.
4067 (GTFILES): Add value-range.h.
4068 * gengtype.c (open_base_files): Add value-range.h to list of
4070 * tree-vrp.c: Move the following value_range related functions:
4071 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4072 constant_p, set_undefined, set_varying, may_contain_p,
4073 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4074 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4075 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4076 value_inside_range, ranges_from_anti_range, union_ranges,
4077 intersect_ranges, intersect_helper, union_helper, union_,
4078 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4079 upper_bound, contains_p, invert, intersect...
4080 * value-range.cc: ...to here.
4081 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4082 associated inline methods from here...
4083 * value-range.h: ...to here.
4085 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4087 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4088 instead of asserting its value.
4090 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4092 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4093 constructors and set methods so value_range_kind is the last
4094 argument and defaults to VR_RANGE.
4095 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4096 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4097 * ipa-prop.c (ipa_get_value_range): Same.
4098 (ipa_compute_jump_functions_for_edge): Same.
4099 * range-op.cc (value_range_from_overflowed_bounds): Same.
4100 (operator_cast::op1_range): Same.
4101 (range_tests): Same.
4102 * range.cc (range_nonzero): Same.
4103 * tree-ssanames.c (get_range_info): Same.
4104 * tree-vrp.c (value_range_equiv::set): Same.
4105 (value_range::value_range): Same.
4106 (value_range_equiv::value_range_equiv): Same.
4107 (value_range_equiv::update): Same.
4108 (value_range_equiv::deep_copy): Same.
4109 (value_range_equiv::move): Same.
4110 (value_range_equiv::set_undefined): Same.
4111 (value_range::set): Same.
4112 (value_range::set_nonzero): Same.
4113 (ranges_from_anti_range): Same.
4114 (extract_range_from_plus_minus_expr): Same.
4115 (value_range::intersect_helper): Same.
4116 (value_range_equiv::intersect): Same.
4117 (value_range::union_helper): Same.
4118 (value_range_equiv::union_): Same.
4119 (value_range::normalize_symbolics): Same.
4120 (value_range::invert): Same.
4121 (determine_value_range_1): Same.
4122 * tree-vrp.h (class value_range): Same.
4123 (class value_range_equiv): Same.
4124 * vr-values.c (set_value_range_to_nonnegative): Same.
4125 (set_value_range_to_truthvalue): Same.
4126 (vr_values::update_value_range): Same.
4127 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4128 (vr_values::extract_range_from_binary_expr): Same.
4129 (vr_values::extract_range_from_comparison): Same.
4130 (vr_values::extract_range_basic): Same.
4131 (vr_values::adjust_range_with_scev): Same.
4132 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4133 (vr_values::extract_range_from_phi_node): Same.
4135 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4137 * tree-dump.c (dequeue_and_dump): Print first tree operand
4138 for VIEW_CONVERT_EXPR.
4140 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4142 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4143 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4144 * real.c (get_max_float): Add norm_max argument.
4145 * real.h (get_max_float): Update prototype.
4146 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4149 2019-11-13 Martin Liska <mliska@suse.cz>
4151 * dbgcnt.c (test_sorted_dbg_counters): New.
4152 (dbgcnt_c_tests): Likewise.
4153 * selftest-run-tests.c (selftest::run_tests): Likewise.
4154 * selftest.h (dbgcnt_c_tests): Likewise.
4156 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4157 Martin Jambor <mjambor@suse.cz>
4160 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4161 (identify_dead_nodes): Likewise.
4163 2019-11-13 Martin Liska <mliska@suse.cz>
4165 * ipa-icf.c (sem_function::equals_private): Do not overuse
4166 push/pop_cfun functions.
4168 2019-11-13 Martin Liska <mliska@suse.cz>
4170 * common.opt: Document change of -fdbg-cnt option.
4171 * dbgcnt.c (DEBUG_COUNTER): Remove.
4172 (dbg_cnt_is_enabled): Remove.
4173 (dbg_cnt): Work with new intervals.
4174 (dbg_cnt_set_limit_by_index): Set to new
4176 (dbg_cnt_set_limit_by_name): Likewise.
4177 (dbg_cnt_process_single_pair): Process new format.
4178 (dbg_cnt_process_opt): Likewise.
4179 (dbg_cnt_list_all_counters): Likewise.
4180 * doc/invoke.texi: Document change of -fdbg-cnt option.
4183 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4185 * ipa-inline.c (ipa_inline): Check that function is defined before
4188 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4189 Julian Brown <julian@codesourcery.com>
4191 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4192 flag_worker_partitioning is not set.
4193 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4194 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4196 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4198 * config/gcn/gcn-run.c (heap_region): New global variable.
4199 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4200 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4201 (get_kernarg_region): Move contents to ....
4202 (get_memory_region): .... here.
4203 (get_heap_region): New function.
4204 (init_device): Initialize the heap_region.
4205 (device_malloc): Add region parameter.
4206 (struct kernargs): Move heap ....
4207 (heap): ... to global scope.
4208 (main): Allocate heap separate to kernargs.
4210 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4212 * ipa-prop.c (ipa_print_node_jump_functions,
4213 ipa_print_node_params): Print info about missing summaries.
4215 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4217 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4218 the cost of generating loop masks.
4220 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4222 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4224 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4225 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4226 (vect_transform_loop): Likewise.
4227 (vect_analyze_loop_costing): Don't take the cost of versioning
4228 into account for the static profitability threshold if it turns
4229 out that no versioning is needed.
4231 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4233 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4234 and target_option_default_node to get -fprofile-generate ctors working
4237 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4239 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4240 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4241 (vectorizable_assignment): Don't add a cost for nop conversions.
4242 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4244 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4246 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4248 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4249 number of ncopies as an additional argument.
4250 (vectorizable_conversion): Update call accordingly. Use "modifier"
4251 to check whether a conversion is between vectors with the same
4254 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4256 * config/aarch64/aarch64-sve-builtins-functions.h
4257 (unary_count::expand): Use aarch64_sve_int_mode instead of
4258 mode_for_int_vector.
4260 2019-11-13 Martin Liska <mliska@suse.cz>
4262 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4264 2019-11-13 Martin Liska <mliska@suse.cz>
4266 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4267 Remove call to finalize_options_struct.
4269 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4272 * config/avr/t-avr (avr-mcus): Do not depend on
4273 $(srcdir)/config/avr/t-multilib.
4275 2019-11-13 Richard Biener <rguenther@suse.de>
4277 PR tree-optimization/92473
4278 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4279 direct optab reduction in the correct type.
4281 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4283 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4284 hexadecimal literal.
4286 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4288 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4289 UNORDERED if !HONOR_NANS (DFmode).
4290 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4291 if !HONOR_NANS (<MODE>mode).
4293 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4295 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4296 (ipcp_verify_propagated_values): Likewise.
4297 (propagate_constants_across_call): Likewise.
4298 (propagate_constants_topo): Likewise.
4299 (ipcp_propagate_stage): Likewise.
4301 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4304 * ipa-profile.c (check_argument_count): Break out from ...;
4305 watch for missing summaries.
4306 (ipa_profile): Here.
4308 2019-11-12 Martin Sebor <msebor@redhat.com>
4310 PR tree-optimization/92412
4311 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4314 2019-11-12 Martin Sebor <msebor@redhat.com>
4317 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4318 (directive::argno): New member.
4319 (format_result::aliases, format_result::alias_count): New data members.
4320 (format_result::append_alias): New member function.
4321 (fmtresult::dst_offset): New data member.
4322 (pass_sprintf_length::call_info::dst_origin): New data member.
4323 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4324 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4325 (get_origin_and_offset): Same.
4326 (format_string): Call it.
4327 (format_directive): Call append_alias and set directive argument
4329 (maybe_warn_overlap): New function.
4330 (pass_sprintf_length::compute_format_length): Call it.
4331 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4332 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4334 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4336 PR rtl-optimization/92430
4337 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4338 dominance info at the beginning.
4340 2019-11-12 Richard Biener <rguenther@suse.de>
4342 PR tree-optimization/92460
4343 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4344 expression before gimplifying.
4346 2019-11-12 Richard Biener <rguenther@suse.de>
4348 PR tree-optimization/92461
4349 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4350 stmt after propagation.
4352 2019-11-12 Martin Liska <mliska@suse.cz>
4354 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4355 Use SET_OPTION_IF_UNSET.
4356 (ix86_option_override_internal): Likewise.
4357 * opts.c (default_options_optimization): Likewise.
4358 (finish_options): Likewise.
4359 (enable_fdo_optimizations): Likewise.
4360 (common_handle_option): Likewise.
4362 2019-11-12 Martin Liska <mliska@suse.cz>
4364 * common/common-target.def: Remove option_validate_param and
4365 option_default_params.
4366 * common/common-targhooks.c (default_option_validate_param):
4368 * common/common-targhooks.h (default_option_validate_param):
4370 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4371 Remove usage of this.
4372 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4373 (aarch64_option_validate_param): Likewise.
4374 (aarch64_option_default_params): Likewise
4375 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4376 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4377 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4378 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4379 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4380 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4381 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4382 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4383 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4384 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4385 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4387 * doc/tm.texi: Remove option_default_params and option_validate_param.
4388 * doc/tm.texi.in: Likewise.
4390 2019-11-12 Martin Liska <mliska@suse.cz>
4392 * common/common-target.def:
4393 Do not mention set_default_param_value
4394 and set_param_value.
4395 * doc/tm.texi: Likewise.
4397 2019-11-12 Martin Liska <mliska@suse.cz>
4399 * common.opt: Remove param_values.
4400 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4401 Remove finalize_options_struct.
4402 * gcc.c (driver::decode_argv): Do not call global_init_params
4404 (driver::finalize): Do not call params_c_finalize
4405 and finalize_options_struct.
4406 * opt-suggestions.c (option_proposer::get_completions): Remove
4407 special casing of params.
4408 (option_proposer::find_param_completions): Remove.
4409 (test_completion_partial_match): Update expected output.
4410 * opt-suggestions.h: Remove find_param_completions.
4411 * opts-common.c (add_misspelling_candidates): Add
4412 --param with a space.
4413 * opts.c (handle_param): Remove.
4414 (init_options_struct):. Remove init_options_struct and
4416 (finalize_options_struct): Remove.
4417 (common_handle_option): Use SET_OPTION_IF_UNSET.
4418 * opts.h (finalize_options_struct): Remove.
4419 * toplev.c (general_init): Do not call global_init_params.
4420 (toplev::finalize): Do not call params_c_finalize and
4421 finalize_options_struct.
4423 2019-11-12 Martin Liska <mliska@suse.cz>
4425 * Makefile.in: Remove PARAMS_H and params.list
4427 * params-enum.h: Remove.
4428 * params-list.h: Remove.
4429 * params-options.h: Remove.
4431 * params.def: Remove.
4433 * asan.c: Do not include params.h.
4434 * auto-profile.c: Likewise.
4435 * bb-reorder.c: Likewise.
4436 * builtins.c: Likewise.
4437 * cfgcleanup.c: Likewise.
4438 * cfgexpand.c: Likewise.
4439 * cfgloopanal.c: Likewise.
4440 * cgraph.c: Likewise.
4441 * combine.c: Likewise.
4442 * common/config/aarch64/aarch64-common.c: Likewise.
4443 * common/config/gcn/gcn-common.c: Likewise.
4444 * common/config/ia64/ia64-common.c: Likewise.
4445 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4446 * common/config/rs6000/rs6000-common.c: Likewise.
4447 * common/config/sh/sh-common.c: Likewise.
4448 * config/aarch64/aarch64.c: Likewise.
4449 * config/alpha/alpha.c: Likewise.
4450 * config/arm/arm.c: Likewise.
4451 * config/avr/avr.c: Likewise.
4452 * config/csky/csky.c: Likewise.
4453 * config/i386/i386-builtins.c: Likewise.
4454 * config/i386/i386-expand.c: Likewise.
4455 * config/i386/i386-features.c: Likewise.
4456 * config/i386/i386-options.c: Likewise.
4457 * config/i386/i386.c: Likewise.
4458 * config/ia64/ia64.c: Likewise.
4459 * config/rs6000/rs6000-logue.c: Likewise.
4460 * config/rs6000/rs6000.c: Likewise.
4461 * config/s390/s390.c: Likewise.
4462 * config/sparc/sparc.c: Likewise.
4463 * config/visium/visium.c: Likewise.
4464 * coverage.c: Likewise.
4465 * cprop.c: Likewise.
4467 * cselib.c: Likewise.
4469 * emit-rtl.c: Likewise.
4470 * explow.c: Likewise.
4471 * final.c: Likewise.
4472 * fold-const.c: Likewise.
4475 * ggc-common.c: Likewise.
4476 * ggc-page.c: Likewise.
4477 * gimple-loop-interchange.cc: Likewise.
4478 * gimple-loop-jam.c: Likewise.
4479 * gimple-loop-versioning.cc: Likewise.
4480 * gimple-ssa-split-paths.c: Likewise.
4481 * gimple-ssa-sprintf.c: Likewise.
4482 * gimple-ssa-store-merging.c: Likewise.
4483 * gimple-ssa-strength-reduction.c: Likewise.
4484 * gimple-ssa-warn-alloca.c: Likewise.
4485 * gimple-ssa-warn-restrict.c: Likewise.
4486 * graphite-isl-ast-to-gimple.c: Likewise.
4487 * graphite-optimize-isl.c: Likewise.
4488 * graphite-scop-detection.c: Likewise.
4489 * graphite-sese-to-poly.c: Likewise.
4490 * graphite.c: Likewise.
4491 * haifa-sched.c: Likewise.
4492 * hsa-gen.c: Likewise.
4493 * ifcvt.c: Likewise.
4494 * ipa-cp.c: Likewise.
4495 * ipa-fnsummary.c: Likewise.
4496 * ipa-inline-analysis.c: Likewise.
4497 * ipa-inline.c: Likewise.
4498 * ipa-polymorphic-call.c: Likewise.
4499 * ipa-profile.c: Likewise.
4500 * ipa-prop.c: Likewise.
4501 * ipa-split.c: Likewise.
4502 * ipa-sra.c: Likewise.
4503 * ira-build.c: Likewise.
4504 * ira-conflicts.c: Likewise.
4505 * loop-doloop.c: Likewise.
4506 * loop-invariant.c: Likewise.
4507 * loop-unroll.c: Likewise.
4508 * lra-assigns.c: Likewise.
4509 * lra-constraints.c: Likewise.
4510 * modulo-sched.c: Likewise.
4511 * opt-suggestions.c: Likewise.
4513 * postreload-gcse.c: Likewise.
4514 * predict.c: Likewise.
4515 * reload.c: Likewise.
4516 * reorg.c: Likewise.
4517 * resource.c: Likewise.
4518 * sanopt.c: Likewise.
4519 * sched-deps.c: Likewise.
4520 * sched-ebb.c: Likewise.
4521 * sched-rgn.c: Likewise.
4522 * sel-sched-ir.c: Likewise.
4523 * sel-sched.c: Likewise.
4524 * shrink-wrap.c: Likewise.
4526 * targhooks.c: Likewise.
4527 * toplev.c: Likewise.
4528 * tracer.c: Likewise.
4529 * trans-mem.c: Likewise.
4530 * tree-chrec.c: Likewise.
4531 * tree-data-ref.c: Likewise.
4532 * tree-if-conv.c: Likewise.
4533 * tree-inline.c: Likewise.
4534 * tree-loop-distribution.c: Likewise.
4535 * tree-parloops.c: Likewise.
4536 * tree-predcom.c: Likewise.
4537 * tree-profile.c: Likewise.
4538 * tree-scalar-evolution.c: Likewise.
4539 * tree-sra.c: Likewise.
4540 * tree-ssa-ccp.c: Likewise.
4541 * tree-ssa-dom.c: Likewise.
4542 * tree-ssa-dse.c: Likewise.
4543 * tree-ssa-ifcombine.c: Likewise.
4544 * tree-ssa-loop-ch.c: Likewise.
4545 * tree-ssa-loop-im.c: Likewise.
4546 * tree-ssa-loop-ivcanon.c: Likewise.
4547 * tree-ssa-loop-ivopts.c: Likewise.
4548 * tree-ssa-loop-manip.c: Likewise.
4549 * tree-ssa-loop-niter.c: Likewise.
4550 * tree-ssa-loop-prefetch.c: Likewise.
4551 * tree-ssa-loop-unswitch.c: Likewise.
4552 * tree-ssa-math-opts.c: Likewise.
4553 * tree-ssa-phiopt.c: Likewise.
4554 * tree-ssa-pre.c: Likewise.
4555 * tree-ssa-reassoc.c: Likewise.
4556 * tree-ssa-sccvn.c: Likewise.
4557 * tree-ssa-scopedtables.c: Likewise.
4558 * tree-ssa-sink.c: Likewise.
4559 * tree-ssa-strlen.c: Likewise.
4560 * tree-ssa-structalias.c: Likewise.
4561 * tree-ssa-tail-merge.c: Likewise.
4562 * tree-ssa-threadbackward.c: Likewise.
4563 * tree-ssa-threadedge.c: Likewise.
4564 * tree-ssa-uninit.c: Likewise.
4565 * tree-switch-conversion.c: Likewise.
4566 * tree-vect-data-refs.c: Likewise.
4567 * tree-vect-loop.c: Likewise.
4568 * tree-vect-slp.c: Likewise.
4569 * tree-vrp.c: Likewise.
4571 * value-prof.c: Likewise.
4572 * var-tracking.c: Likewise.
4574 2019-11-12 Martin Liska <mliska@suse.cz>
4576 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4577 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4579 (asan_sanitize_allocas_p): Likewise.
4580 (asan_emit_stack_protection): Likewise.
4581 (asan_protect_global): Likewise.
4582 (instrument_derefs): Likewise.
4583 (instrument_builtin_call): Likewise.
4584 (asan_expand_mark_ifn): Likewise.
4585 * auto-profile.c (auto_profile): Likewise.
4586 * bb-reorder.c (copy_bb_p): Likewise.
4587 (duplicate_computed_gotos): Likewise.
4588 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4589 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4590 (try_crossjump_bb): Likewise.
4591 * cfgexpand.c (defer_stack_allocation): Likewise.
4592 (stack_protect_classify_type): Likewise.
4593 (pass_expand::execute): Likewise.
4594 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4595 (estimate_reg_pressure_cost): Likewise.
4596 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4597 * combine.c (combine_instructions): Likewise.
4598 (record_value_for_reg): Likewise.
4599 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4600 (aarch64_option_default_params): Likewise.
4601 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4602 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4603 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4604 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4605 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4606 (aarch64_allocate_and_probe_stack_space): Likewise.
4607 (aarch64_expand_epilogue): Likewise.
4608 (aarch64_override_options_internal): Likewise.
4609 * config/alpha/alpha.c (alpha_option_override): Likewise.
4610 * config/arm/arm.c (arm_option_override): Likewise.
4611 (arm_valid_target_attribute_p): Likewise.
4612 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4613 * config/i386/i386.c (get_probe_interval): Likewise.
4614 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4615 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4616 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4617 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4618 (get_stack_clash_protection_guard_size): Likewise.
4619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4620 * config/s390/s390.c (allocate_stack_space): Likewise.
4621 (s390_emit_prologue): Likewise.
4622 (s390_option_override_internal): Likewise.
4623 * config/sparc/sparc.c (sparc_option_override): Likewise.
4624 * config/visium/visium.c (visium_option_override): Likewise.
4625 * coverage.c (get_coverage_counts): Likewise.
4626 (coverage_compute_profile_id): Likewise.
4627 (coverage_begin_function): Likewise.
4628 (coverage_end_function): Likewise.
4629 * cse.c (cse_find_path): Likewise.
4630 (cse_extended_basic_block): Likewise.
4631 (cse_main): Likewise.
4632 * cselib.c (cselib_invalidate_mem): Likewise.
4633 * dse.c (dse_step1): Likewise.
4634 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4635 (get_max_insn_count): Likewise.
4636 (make_debug_insn_raw): Likewise.
4637 (init_emit): Likewise.
4638 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4639 * final.c (compute_alignments): Likewise.
4640 * fold-const.c (fold_range_test): Likewise.
4641 (fold_truth_andor): Likewise.
4642 (tree_single_nonnegative_warnv_p): Likewise.
4643 (integer_valued_real_single_p): Likewise.
4644 * gcse.c (want_to_gcse_p): Likewise.
4645 (prune_insertions_deletions): Likewise.
4646 (hoist_code): Likewise.
4647 (gcse_or_cprop_is_too_expensive): Likewise.
4648 * ggc-common.c: Likewise.
4649 * ggc-page.c (ggc_collect): Likewise.
4650 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4651 (MAX_DATAREFS): Likewise.
4652 (OUTER_STRIDE_RATIO): Likewise.
4653 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4654 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4655 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4656 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4657 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4658 (imm_store_chain_info::output_merged_store): Likewise.
4659 (pass_store_merging::process_store): Likewise.
4660 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4661 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4662 (scop_to_isl_ast): Likewise.
4663 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4664 (optimize_isl): Likewise.
4665 * graphite-scop-detection.c (build_scops): Likewise.
4666 * haifa-sched.c (set_modulo_params): Likewise.
4667 (rank_for_schedule): Likewise.
4668 (model_add_to_worklist): Likewise.
4669 (model_promote_insn): Likewise.
4670 (model_choose_insn): Likewise.
4671 (queue_to_ready): Likewise.
4672 (autopref_multipass_dfa_lookahead_guard): Likewise.
4673 (schedule_block): Likewise.
4674 (sched_init): Likewise.
4675 * hsa-gen.c (init_prologue): Likewise.
4676 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4677 (cond_move_process_if_block): Likewise.
4678 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4679 (merge_agg_lats_step): Likewise.
4680 (devirtualization_time_bonus): Likewise.
4681 (hint_time_bonus): Likewise.
4682 (incorporate_penalties): Likewise.
4683 (good_cloning_opportunity_p): Likewise.
4684 (ipcp_propagate_stage): Likewise.
4685 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4686 (set_switch_stmt_execution_predicate): Likewise.
4687 (analyze_function_body): Likewise.
4688 (compute_fn_summary): Likewise.
4689 * ipa-inline-analysis.c (estimate_growth): Likewise.
4690 * ipa-inline.c (caller_growth_limits): Likewise.
4691 (inline_insns_single): Likewise.
4692 (inline_insns_auto): Likewise.
4693 (can_inline_edge_by_limits_p): Likewise.
4694 (want_early_inline_function_p): Likewise.
4695 (big_speedup_p): Likewise.
4696 (want_inline_small_function_p): Likewise.
4697 (want_inline_self_recursive_call_p): Likewise.
4698 (edge_badness): Likewise.
4699 (recursive_inlining): Likewise.
4700 (compute_max_insns): Likewise.
4701 (early_inliner): Likewise.
4702 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4703 * ipa-profile.c (ipa_profile): Likewise.
4704 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4705 (ipa_analyze_node): Likewise.
4706 (ipcp_transform_function): Likewise.
4707 * ipa-split.c (consider_split): Likewise.
4708 * ipa-sra.c (allocate_access): Likewise.
4709 (process_scan_results): Likewise.
4710 (ipa_sra_summarize_function): Likewise.
4711 (pull_accesses_from_callee): Likewise.
4712 * ira-build.c (loop_compare_func): Likewise.
4713 (mark_loops_for_removal): Likewise.
4714 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4715 * loop-doloop.c (doloop_optimize): Likewise.
4716 * loop-invariant.c (gain_for_invariant): Likewise.
4717 (move_loop_invariants): Likewise.
4718 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4719 (decide_unroll_runtime_iterations): Likewise.
4720 (decide_unroll_stupid): Likewise.
4721 (expand_var_during_unrolling): Likewise.
4722 * lra-assigns.c (spill_for): Likewise.
4723 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4724 * modulo-sched.c (sms_schedule): Likewise.
4725 (DFA_HISTORY): Likewise.
4726 * opts.c (default_options_optimization): Likewise.
4727 (finish_options): Likewise.
4728 (common_handle_option): Likewise.
4729 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4731 * predict.c (get_hot_bb_threshold): Likewise.
4732 (maybe_hot_count_p): Likewise.
4733 (probably_never_executed): Likewise.
4734 (predictable_edge_p): Likewise.
4735 (predict_loops): Likewise.
4736 (expr_expected_value_1): Likewise.
4737 (tree_predict_by_opcode): Likewise.
4738 (handle_missing_profiles): Likewise.
4739 * reload.c (find_equiv_reg): Likewise.
4740 * reorg.c (redundant_insn): Likewise.
4741 * resource.c (mark_target_live_regs): Likewise.
4742 (incr_ticks_for_insn): Likewise.
4743 * sanopt.c (pass_sanopt::execute): Likewise.
4744 * sched-deps.c (sched_analyze_1): Likewise.
4745 (sched_analyze_2): Likewise.
4746 (sched_analyze_insn): Likewise.
4747 (deps_analyze_insn): Likewise.
4748 * sched-ebb.c (schedule_ebbs): Likewise.
4749 * sched-rgn.c (find_single_block_region): Likewise.
4750 (too_large): Likewise.
4751 (haifa_find_rgns): Likewise.
4752 (extend_rgns): Likewise.
4753 (new_ready): Likewise.
4754 (schedule_region): Likewise.
4755 (sched_rgn_init): Likewise.
4756 * sel-sched-ir.c (make_region_from_loop): Likewise.
4757 * sel-sched-ir.h (MAX_WS): Likewise.
4758 * sel-sched.c (process_pipelined_exprs): Likewise.
4759 (sel_setup_region_sched_flags): Likewise.
4760 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4761 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4762 * toplev.c (print_version): Likewise.
4763 (process_options): Likewise.
4764 * tracer.c (tail_duplicate): Likewise.
4765 * trans-mem.c (tm_log_add): Likewise.
4766 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4767 * tree-data-ref.c (split_constant_offset): Likewise.
4768 (compute_all_dependences): Likewise.
4769 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4770 * tree-inline.c (remap_gimple_stmt): Likewise.
4771 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4772 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4773 (create_parallel_loop): Likewise.
4774 * tree-predcom.c (determine_unroll_factor): Likewise.
4775 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4776 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4777 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4778 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4779 (dse_optimize_redundant_stores): Likewise.
4780 (dse_classify_store): Likewise.
4781 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4782 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4783 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4784 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4785 (try_peel_loop): Likewise.
4786 (tree_unroll_loops_completely): Likewise.
4787 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4788 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4789 (MAX_CONSIDERED_GROUPS): Likewise.
4790 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4791 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4792 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4793 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4794 (L1_CACHE_SIZE_BYTES): Likewise.
4795 (L2_CACHE_SIZE_BYTES): Likewise.
4796 (should_issue_prefetch_p): Likewise.
4797 (schedule_prefetches): Likewise.
4798 (determine_unroll_factor): Likewise.
4799 (volume_of_references): Likewise.
4800 (add_subscript_strides): Likewise.
4801 (self_reuse_distance): Likewise.
4802 (mem_ref_count_reasonable_p): Likewise.
4803 (insn_to_prefetch_ratio_too_small_p): Likewise.
4804 (loop_prefetch_arrays): Likewise.
4805 (tree_ssa_prefetch_arrays): Likewise.
4806 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4807 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4808 (convert_mult_to_fma): Likewise.
4809 (math_opts_dom_walker::after_dom_children): Likewise.
4810 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4811 (hoist_adjacent_loads): Likewise.
4812 (gate_hoist_loads): Likewise.
4813 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4814 (compute_partial_antic_aux): Likewise.
4815 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4816 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4817 (vn_reference_lookup): Likewise.
4818 (do_rpo_vn): Likewise.
4819 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4820 * tree-ssa-sink.c (select_best_block): Likewise.
4821 * tree-ssa-strlen.c (new_stridx): Likewise.
4822 (new_addr_stridx): Likewise.
4823 (get_range_strlen_dynamic): Likewise.
4824 (class ssa_name_limit_t): Likewise.
4825 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4826 (create_variable_info_for_1): Likewise.
4827 (init_alias_vars): Likewise.
4828 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4829 (tail_merge_optimize): Likewise.
4830 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4831 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4832 (thread_jumps::find_jump_threads_backwards): Likewise.
4833 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4834 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4835 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4836 (jump_table_cluster::can_be_handled): Likewise.
4837 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4838 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4839 (param_switch_conversion_branch_ratio): Likewise.
4840 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4841 (vect_enhance_data_refs_alignment): Likewise.
4842 (vect_prune_runtime_alias_test_list): Likewise.
4843 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4844 (vect_get_datarefs_in_loop): Likewise.
4845 (vect_analyze_loop): Likewise.
4846 * tree-vect-slp.c (vect_slp_bb): Likewise.
4847 * tree-vectorizer.h: Likewise.
4848 * tree-vrp.c (find_switch_asserts): Likewise.
4849 (vrp_prop::check_mem_ref): Likewise.
4850 * tree.c (wide_int_to_tree_1): Likewise.
4851 (cache_integer_cst): Likewise.
4852 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4853 (reverse_op): Likewise.
4854 (vt_find_locations): Likewise.
4856 2019-11-12 Martin Liska <mliska@suse.cz>
4858 * Makefile.in: Include params.opt.
4859 * flag-types.h (enum parloops_schedule_type): Add
4860 parloops_schedule_type used in params.opt.
4861 * params.opt: New file.
4863 2019-11-12 Martin Liska <mliska@suse.cz>
4865 * common.opt: Remove --param and --param= options.
4866 * opt-functions.awk: Mark CL_PARAMS for options
4867 that have Param keyword.
4868 * opts-common.c (decode_cmdline_options_to_array):
4869 Replace --param key=value with --param=key=value.
4870 * opts.c (print_filtered_help): Remove special
4872 (print_specific_help): Update title for params.
4873 (common_handle_option): Do not handle OPT__param.
4874 opts.h (SET_OPTION_IF_UNSET): New macro.
4875 * doc/options.texi: Document Param keyword.
4877 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4878 Frederik Harwath <frederik@codesourcery.com>
4879 Thomas Schwinge <thomas@codesourcery.com>
4881 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4882 enumeration constant.
4883 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4884 (is_gimple_omp_offloaded): Likewise.
4885 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4886 constant. Adjust the value of ORT_NONE accordingly.
4887 (is_gimple_stmt): Handle OACC_SERIAL.
4888 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4889 (gomp_needs_data_present): Likewise.
4890 (gimplify_adjust_omp_clauses): Likewise.
4891 (gimplify_omp_workshare): Handle OACC_SERIAL.
4892 (gimplify_expr): Likewise.
4893 * omp-expand.c (expand_omp_target):
4894 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4895 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4896 * omp-low.c (is_oacc_parallel): Rename function to...
4897 (is_oacc_parallel_or_serial): ... this.
4898 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4899 (scan_sharing_clauses): Adjust accordingly.
4900 (scan_omp_for): Likewise.
4901 (lower_oacc_head_mark): Likewise.
4902 (convert_from_firstprivate_int): Likewise.
4903 (lower_omp_target): Likewise.
4904 (check_omp_nesting_restrictions): Handle
4905 GF_OMP_TARGET_KIND_OACC_SERIAL.
4906 (lower_oacc_reductions): Likewise.
4907 (lower_omp_target): Likewise.
4908 * tree.def (OACC_SERIAL): New tree code.
4909 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4911 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4913 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4916 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4917 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4919 PR tree-optimization/92452
4920 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4921 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4924 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4926 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4929 2019-11-12 Alan Modra <amodra@gmail.com>
4931 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4932 element of unspec vec.
4933 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4935 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4936 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4937 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4938 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4940 2019-11-12 Alan Modra <amodra@gmail.com>
4942 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4943 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4944 (IS_NOMARK_TLSGETADDR): Likewise.
4945 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4946 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4947 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4948 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4949 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4950 (rs6000_indirect_call_template_1): Likewise.
4951 (rs6000_pltseq_template): Likewise.
4952 (rs6000_opt_vars): Remove "tls-markers" entry.
4953 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4955 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4956 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4957 (pltseq_plt_pcrel<mode>): Likewise.
4958 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4959 (call_value_local64): Likewise.
4960 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4961 output and length attribute sub-expression.
4962 (call_value_nonlocal_sysv<mode>),
4963 (call_value_nonlocal_sysv_secure<mode>),
4964 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4965 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4966 (call_value_indirect_pcrel<mode>): Likewise.
4967 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4968 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4969 * configure: Regenerate.
4970 * config.in: Regenerate.
4972 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4974 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4975 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4976 address being a prefixed load/store.
4977 (stack_protect_testdi): Deal with either address being a prefixed
4980 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4983 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4984 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4987 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4989 PR tree-optimization/92420
4990 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4992 (get_group_load_store_type): Use it for reversed SLP accesses.
4994 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4996 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4998 (ipcp_transformation_t::duplicate): Break out from ...
4999 (ipa_node_params_t::duplicate): ... here; add copying of agg
5001 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5002 (ipcp_transformation_t): Add duplicate.
5004 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
5007 * doc/install.texi: Document that the minimum MPFR version is
5010 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5012 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5013 use new register constraint letters.
5015 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5017 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5018 as well, if interesting recover the symbol and re-legitimize the
5021 2019-11-11 Martin Liska <mliska@suse.cz>
5023 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5026 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5028 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5029 account when checking if there are enough iterations to vectorize
5032 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5033 Kwok Cheung Yeung <kcy@codesourcery.com>
5035 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5036 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5037 (LANG_HOOKS_DECLS): Rename also here.
5038 * langhooks.h (lang_hooks_for_decls): Rename
5039 omp_is_optional_argument to omp_check_optional_argument; take
5040 additional bool argument.
5041 * omp-general.h (omp_check_optional_argument): Likewise.
5042 * omp-general.h (omp_check_optional_argument): Likewise.
5043 * omp-low.c (lower_omp_target): Update calls; handle absent
5044 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5046 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5049 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5050 -fPIC and -shared the last to create offload image.
5052 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5054 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5057 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5058 (config.status): Use/depend on it.
5059 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5060 * configure: Regenerate.
5062 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5064 PR tree-optimization/88760
5065 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5066 * common/config/rs6000/rs6000-common.c
5067 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5068 Turn on -funroll-loops and -munroll-only-small-loops.
5069 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5070 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5071 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5072 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5073 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5074 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5076 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5078 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5079 Make scalar_load, vector_load, unaligned_load and
5080 vector_gather_load cost more to conform hardware latency and
5083 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5085 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5086 (MACHO_SYMBOL_LINKER_VIS_P): New.
5088 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5090 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5091 registers in eliminable_regset.
5093 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5095 * ipa-inline.c (compute_uninlined_call_time,
5096 compute_inlined_call_time): Take edge frequency as
5097 parameter rather than computing it by itself.
5098 (big_speedup_p, edge_badness): Manually CSE sreal
5099 frequency calculations.
5101 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5103 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5104 case where profiles are same.
5106 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5108 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5110 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5112 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5113 args summaries of inlined edge unless it holds info about
5114 described reference.
5116 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5118 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5119 (*movcc_internal1): Rename to...
5120 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5122 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5124 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5125 (cgraph_node::create_virtual_clone): Copy it.
5126 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5128 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5129 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5131 (propagate_constants_across_call): If callee is not analyzed, give up.
5132 (propagate_constants_topo): Lower to bottom latties of all callees of
5133 functions with ipa-cp disabled.
5134 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5135 (cgraph_edge_brings_value_p): Check for availability first.
5136 (create_specialized_node): Set ipcp_clone.
5137 (ipcp_store_bits_results): Check that info is present.
5138 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5140 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5141 conservative when callee summary is missing.
5142 (remap_edge_summaries): Lookup call summary only when needed.
5143 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5144 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5146 (ipa_analyze_node): Use get_create.
5147 (propagate_controlled_uses): Do not propagate when function is not
5149 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5150 (ipa_read_node_info): Use get_create.
5151 * ipa-prop.h (IPA_NODE_REF): Use get.
5152 (IPA_NODE_REF_GET_CREATE): New.
5154 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5156 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5159 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5161 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5162 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5163 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5164 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5166 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5168 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5169 capping the growth cumulated.
5170 (offline_size): Break out from ...
5171 (estimate_growth): ... here.
5172 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5174 (growth_likely_positive): Turn to ...
5175 (growth_positive_p): Re-implement.
5176 * ipa-inline.h (growth_likely_positive): Remove.
5177 (growth_positive_p): Declare.
5178 * ipa-inline.c (want_inline_small_function_p): Use
5180 (want_inline_function_to_all_callers_p): Likewise.
5182 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5184 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5185 calculation of min_size.
5186 (ipa_update_overall_fn_summary): Likewise.
5188 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5190 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5191 estimate_edge_devirt_benefit when not computing hints;
5192 do not compute time when not asked for.
5193 (estimate_calls_size_and_time): Pass NULL hints and time when
5194 these are not computed; do not evaluate hint predicates when these are
5196 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5199 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5201 PR tree-optimization/92401
5202 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5203 if res_op->code is an expression with code length 1.
5204 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5205 if res_op->code is an expression with code length 2.
5206 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5207 if res_op->code is an expression with code length 3.
5209 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5211 * config/darwin.c (machopic_mcount_stub_name): Validate the
5212 symbol stub name when it is created.
5213 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5216 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5218 * symtab.c: Fix comment typos.
5219 * cgraphunit.c: Likewise.
5220 * cgraph.h: Likewise.
5221 * cgraphclones.c: Likewise.
5222 * cgraph.c: Likewise.
5223 * varpool.c: Likewise.
5224 * tree-ssa-strlen.c: Likewise.
5225 * ipa-sra.c: Likewise.
5226 (scan_expr_access, check_all_callers_for_issues): Fix typo
5229 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5231 * config/darwin-protos.h: Add include quard.
5233 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5235 * range-op.h (range_operator::fold_range): Return result in a
5236 reference parameter instead of by value.
5237 (range_operator::wi_fold): Same.
5238 * range-op.cc (range_operator::wi_fold): Return result in a reference
5239 parameter instead of by value.
5240 (range_operator::fold_range): Same.
5241 (value_range_from_overflowed_bounds): Same.
5242 (value_range_with_overflow): Same
5243 (create_possibly_reversed_range): Same.
5244 (operator_equal::fold_range): Same.
5245 (operator_not_equal::fold_range): Same.
5246 (operator_lt::fold_range): Same.
5247 (operator_le::fold_range): Same.
5248 (operator_gt::fold_range): Same.
5249 (operator_ge::fold_range): Same.
5250 (operator_plus::wi_fold): Same.
5251 (operator_plus::op1_range): Change call to fold_range.
5252 (operator_plus::op2_range): Change call to fold_range.
5253 (operator_minus::wi_fold): Return result via reference parameter.
5254 (operator_minus::op1_range): Change call to fold_range.
5255 (operator_minus::op2_range): Change call to fold_range.
5256 (operator_min::wi_fold): Return result via reference parameter.
5257 (operator_max::wi_fold): Same.
5258 (cross_product_operator::wi_cross_product): Same.
5259 (operator_mult::wi_fold): Same.
5260 (operator_div::wi_fold): Same.
5261 (operator_div op_floor_div): Fix whitespace.
5262 (operator_exact_divide::op1_range): Change call to fold_range.
5263 (operator_lshift::fold_range): Return result via reference parameter.
5264 (operator_lshift::wi_fold): Same.
5265 (operator_rshift::fold_range): Same.
5266 (operator_rshift::wi_fold): Same.
5267 (operator_cast::fold_range): Same.
5268 (operator_cast::op1_range): Change calls to fold_range.
5269 (operator_logical_and::fold_range): Return result via reference.
5270 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5271 (operator_bitwise_and::wi_fold): Return result via reference.
5272 (operator_logical_or::fold_range): Same.
5273 (operator_bitwise_or::wi_fold): Same.
5274 (operator_bitwise_xor::wi_fold): Same.
5275 (operator_trunc_mod::wi_fold): Same.
5276 (operator_logical_not::fold_range): Same.
5277 (operator_bitwise_not::fold_range): Same.
5278 (operator_bitwise_not::op1_range): Change call to fold_range.
5279 (operator_cst::fold_range): Return result via reference.
5280 (operator_identity::fold_range): Same.
5281 (operator_abs::wi_fold): Same.
5282 (operator_absu::wi_fold): Same.
5283 (operator_negate::fold_range): Same.
5284 (operator_negate::op1_range): Change call to fold_range.
5285 (operator_addr_expr::fold_range): Return result via reference.
5286 (operator_addr_expr::op1_range): Change call to fold_range.
5287 (operator_pointer_plus::wi_fold): Return result via reference.
5288 (operator_pointer_min_max::wi_fold): Same.
5289 (operator_pointer_and::wi_fold): Same.
5290 (operator_pointer_or::wi_fold): Same.
5291 (range_op_handler): Change call to fold_range.
5293 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5295 (range_fold_unary_symbolics_p): Same.
5296 (range_fold_binary_expr): Same.
5297 (range_fold_unary_expr): Same.
5299 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5301 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5302 vector type as an argument rather than reading it from the
5304 (vect_create_epilog_for_reduction): Update accordingly.
5305 (vectorizable_reduction): Likewise.
5306 (vect_transform_cycle_phi): Likewise.
5308 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5310 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5311 the comparison codes that make sense for the mode used, and only the
5312 codes that can be done with a single branch instruction.
5314 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5316 PR tree-optimization/92351
5317 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5318 peeling the main loop for alignment, make sure to set the misalignment
5319 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5321 2019-11-08 Richard Biener <rguenther@suse.de>
5323 * dbgcnt.def (ivopts_loop): Add.
5324 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5325 ivopts_loop before optimizing a loop.
5327 2019-11-08 Richard Biener <rguenther@suse.de>
5330 * tree-inline.c (declare_return_variable): Properly handle
5331 type mismatches for the return slot.
5333 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5336 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5337 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5339 (got_helper_needed): New static variable.
5340 (output_load_pcrel_sym): New function.
5341 (get_pc_thunk_name): Remove after inlining...
5342 (load_got_register): ...here. Rework the initialization of the GOT
5343 register and of the GOT helper.
5344 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5345 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5346 helper must be emitted. Use output_asm_insn instead of fprintf.
5347 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5348 if optimization is enabled.
5349 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5350 by calling output_load_pcrel_sym.
5352 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5354 * tree-sra.c (create_access): Delay disqualifying the base
5355 for poly_int values until we know we have a base.
5357 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5359 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5360 for loops with SIMDUID set. Enable epilogue vectorization for loops
5361 with SIMDLEN set after finding a main loop with a VF that matches it.
5363 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5366 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5367 value only, return non-NULL if there is a single non-clobber
5368 constituent store even if there are constituent clobbers and return
5369 one of clobber constituent stores if all constituent stores are
5371 (split_group): Handle clobbers.
5372 (imm_store_chain_info::output_merged_store): When computing
5373 bzero_first, look after all clobbers at the start. Don't count
5374 clobber stmts in orig_num_stmts, except if the first orig store is
5375 a clobber covering the whole area and split_stores cover the whole
5376 area, consider equal number of stmts ok. Punt if split_stores
5377 contains only ->orig stores and their number plus number of original
5378 clobbers is equal to original number of stmts. For ->orig, look past
5379 clobbers in the constituent stores.
5380 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5382 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5384 (store_valid_for_store_merging_p): Allow clobber stmts.
5385 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5388 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5389 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5391 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5392 force creation of a unique data.stack_parm slot.
5394 2019-11-08 Richard Biener <rguenther@suse.de>
5396 * genmatch.c (expr::gen_transform): Use the resimplify
5397 member function instead of hard-coding the gimple_resimplifyN variant.
5398 (dt_simplify::gen_1): Likewise.
5400 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5402 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5405 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5407 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5408 instead of INTEGER_CST.
5410 2019-11-08 Richard Biener <rguenther@suse.de>
5412 PR tree-optimization/92324
5413 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5414 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5415 sign-conversions as necessary.
5416 (vectorizable_reduction): Reject conversions in the chain
5417 that are not sign-conversions, base analysis on a non-converting
5418 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5419 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5421 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5422 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5424 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5427 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5428 Fix a missing '-' when displaying these options in the
5431 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5433 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5435 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5437 * config/aarch64/aarch64-builtins.c
5438 (aarch64_builtin_vectorized_function): Remove bswap handling.
5440 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5442 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5443 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5444 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5445 Treat the vector types as indivisible.
5447 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5449 * optabs.def (gather_load_optab, mask_gather_load_optab)
5450 (scatter_store_optab, mask_scatter_store_optab): Turn into
5451 conversion optabs, with the offset mode given explicitly.
5452 * doc/md.texi: Update accordingly.
5453 * config/aarch64/aarch64-sve-builtins-base.cc
5454 (svld1_gather_impl::expand): Likewise.
5455 (svst1_scatter_impl::expand): Likewise.
5456 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5457 (expand_scatter_store_optab_fn): Likewise.
5458 (direct_gather_load_optab_supported_p): Likewise.
5459 (direct_scatter_store_optab_supported_p): Likewise.
5460 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5462 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5463 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5464 argument with the offset vector type. Require the two vector
5465 types to have the same number of elements but allow their element
5466 sizes to be different. Treat the optabs as conversion optabs.
5467 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5468 prototype accordingly.
5469 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5470 (supports_vec_convert_optab_p): ...this new function.
5471 (supports_vec_gather_load_p): Update accordingly.
5472 (supports_vec_scatter_store_p): Likewise.
5473 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5474 Replace the offset sign and bits parameters with a scalar type tree.
5475 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5476 Pass back the offset vector type instead of the scalar element type.
5477 Allow the offset to be wider than the memory elements. Search for
5478 an offset type that the target supports, stopping once we've
5479 reached the maximum of the element size and pointer size.
5480 Update call to internal_gather_scatter_fn_supported_p.
5481 (vect_check_gather_scatter): Update calls accordingly.
5482 When testing a new scale before knowing the final offset type,
5483 check whether the scale is supported for any signed or unsigned
5484 offset type. Check whether the target supports the source and
5485 target types of a conversion before deciding whether to look
5486 through the conversion. Record the chosen offset_vectype.
5487 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5488 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5489 directly from the gs_info's offset_vectype instead. Pass a zero
5490 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5491 * tree-vect-stmts.c (check_load_store_masking): Update call to
5492 internal_gather_scatter_fn_supported_p, passing the offset vector
5493 type recorded in the gs_info.
5494 (vect_truncate_gather_scatter_offset): Update call to
5495 vect_check_gather_scatter, leaving it to search for a valid
5497 (vect_use_strided_gather_scatters_p): Convert the offset to the
5498 element type of the gs_info's offset_vectype.
5499 (vect_get_gather_scatter_ops): Get the offset vector type directly
5501 (vect_get_strided_load_store_ops): Likewise.
5502 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5503 and IFN_MASK_GATHER_LOAD.
5504 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5505 (gather_load<mode><v_int_equiv>): ...this.
5506 (mask_gather_load<mode>): Rename to...
5507 (mask_gather_load<mode><v_int_equiv>): ...this.
5508 (scatter_store<mode>): Rename to...
5509 (scatter_store<mode><v_int_equiv>): ...this.
5510 (mask_scatter_store<mode>): Rename to...
5511 (mask_scatter_store<mode><v_int_equiv>): ...this.
5513 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5516 * config/rs6000/predicates.md
5517 (signed_or_equality_comparison_operator): New predicate.
5518 (unsigned_or_equality_comparison_operator): Likewise.
5519 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5520 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5521 * config/rs6000/vector.md
5522 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5523 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5524 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5525 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5526 vector modes and same-size integer vector modes.
5527 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5528 (vector_lt<mode> for VEC_F): New expand.
5529 (vector_le<mode> for VEC_F): Likewise.
5530 (vector_ne<mode> for VEC_F): Likewise.
5531 (vector_unge<mode> for VEC_F): Likewise.
5532 (vector_ungt<mode> for VEC_F): Likewise.
5533 (vector_unle<mode> for VEC_F): Likewise.
5534 (vector_unlt<mode> for VEC_F): Likewise.
5535 (vector_uneq<mode>): Expose name.
5536 (vector_ltgt<mode>): Likewise.
5537 (vector_unordered<mode>): Likewise.
5538 (vector_ordered<mode>): Likewise.
5540 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5543 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5544 Enhance ix86_expand_vector_init_concat.
5546 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5548 * doc/invoke.texi (-Wold-style-definition): Document () not being
5549 considered an old-style definition for C2x.
5551 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5553 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5555 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5556 insn patterns using ldcw instruction.
5557 (memory_barrier): Remove insn pattern using sync instruction.
5558 * config/pa/pa.opt (coherent-ldcw): New option.
5559 (ordered): New option.
5561 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5563 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5566 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5568 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5569 typo - mistmatch -> mismatch.
5570 * ipa-profile.c (ipa_profile): Likewise.
5571 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5572 - mistmatch -> mismatch.
5574 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5576 * simplify-rtx.c (comparison_to_mask): New function.
5577 (mask_to_comparison): New function.
5578 (simplify_logical_relational_operation): New function.
5579 (simplify_binary_operation_1): Call
5580 simplify_logical_relational_operation.
5582 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5585 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5586 modes for integer constants.
5588 2019-11-07 Jan Hubicka <jh@suse.cz>
5591 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5594 2019-11-07 Jan Hubicka <jh@suse.cz>
5596 * optc-save-gen.awk: Generate cl_target_option_free
5597 and cl_optimization_option_free.
5598 * opth-en.awk: Declare cl_target_option_free
5599 and cl_optimization_option_free.
5600 * tree.c (free_node): Use it.
5602 2019-11-06 Jan Hubicka <jh@suse.cz>
5604 * lto-streamer-in.c: Include alloc-pool.h.
5605 (freeing_string_slot_hasher): Remove.
5606 (string_slot_allocator): New object allocator.
5607 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5608 (file_name_obstack): New obstack.
5609 (canon_file_name): Allocate in obstack and allocator.
5610 (lto_reader_init): Initialize obstack and allocator.
5611 (lto_free_file_name_hash): New function.
5612 * lto-streamer.h (lto_free_file_name_hash): New.
5614 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5616 PR tree-optimization/89134
5617 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5618 * params.def: Add min-loop-cond-split-prob.
5619 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5620 outside checks on loop into the function.
5621 (split_info): New class.
5622 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5623 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5624 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5625 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5626 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5627 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5628 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5629 (split_loop_on_cond): Likewise.
5630 (tree_ssa_split_loops): Add loop split on conditional statement.
5632 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5634 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5637 2019-11-07 Richard Biener <rguenther@suse.de>
5639 PR tree-optimization/92405
5640 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5641 restrict lane-reducing ops to single stmt chains.
5643 2019-11-07 Martin Jambor <mjambor@suse.cz>
5646 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5647 * cgraph.h (gimple_check_call_matching_types): Remove
5648 * cgraph.c (gimple_check_call_args): Likewise.
5649 (gimple_check_call_matching_types): Likewise.
5650 (symbol_table::create_edge): Do not call
5651 gimple_check_call_matching_types.
5652 (cgraph_edge::make_direct): Likewise.
5653 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5654 * value-prof.h (check_ic_target): Remove.
5655 * value-prof.c (check_ic_target): Remove.
5656 (gimple_ic_transform): Do nat call check_ic_target.
5657 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5658 (afdo_indirect_call): Likewise.
5659 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5660 gimple_check_call_matching_types.
5661 * ipa-inline.c (early_inliner): Likewise.
5663 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5665 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5666 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5667 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5668 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5669 * config/arm/iterators.md (USSAT16): New int_iterator.
5670 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5672 * config/arm/predicates.md (ssat16_imm): New predicate.
5673 (usat16_imm): Likewise.
5674 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5676 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5678 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5680 (arm_<simd32_op>): New define_expands.
5681 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5682 __smuad, __smuadx): Define.
5683 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5684 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5685 (SIMD32_BINOP_Q): Likewise.
5686 (simd32_op): Handle the above.
5687 * config/arm/unspecs.md: Define unspecs for the above.
5689 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5691 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5692 * config/arm/arm.md (APSRGE_REGNUM): Define.
5693 (arm_<simd32_op>): New define_insn.
5694 (arm_sel): Likewise.
5695 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5696 (CALL_USED_REGISTERS): Likewise.
5697 (REG_ALLOC_ORDER): Likewise.
5698 (FIRST_PSEUDO_REGISTER): Update value.
5699 (ARM_GE_BITS_READ): Define.
5700 * config/arm/arm.c (arm_conditional_register_usage): Clear
5701 APSRGE_REGNUM from operand_reg_set.
5702 (arm_ge_bits_access): Define.
5703 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5705 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5706 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5707 FAIL if ARM_GE_BITS_READ.
5708 (*arm_add<mode>3): New define_insn.
5709 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5710 (*arm_sub<mode>3): New define_insn.
5711 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5712 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5714 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5715 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5716 (simd32_op): Handle the above.
5717 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5718 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5719 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5720 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5722 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5724 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5725 (arm_smlabb): New define_expand.
5726 (*maddhisi4tb): Rename to...
5727 (maddhisi4tb): ... This.
5728 (*maddhisi4tt): Rename to...
5729 (maddhisi4tt): ... This.
5730 (arm_smlatb_setq): New define_insn.
5731 (arm_smlatb): New define_expand.
5732 (arm_smlatt_setq): New define_insn.
5733 (arm_smlatt): New define_expand.
5734 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5735 (arm_<smlaw_op>): New define_expand.
5736 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5737 __smlawb, __smlawt): Define.
5738 * config/arm_acle_builtins.def: Define builtins for the above.
5739 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5740 (slaw_op): New int_attribute.
5741 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5743 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5745 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5746 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5747 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5748 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5749 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5750 (ss_op): New code_attr.
5752 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5754 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5755 * config/arm/arm.md (APSRQ_REGNUM): Define.
5756 (add_setq): New define_subst.
5757 (add_clobber_q_name): New define_subst_attr.
5758 (add_clobber_q_pred): Likewise.
5759 (maddhisi4): Change to define_expand. Split into mult and add if
5761 (arm_maddhisi4): New define_insn.
5762 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5763 (*maddhisi4tt): Likewise.
5764 (arm_ssat): New define_expand.
5765 (arm_usat): Likewise.
5766 (arm_get_apsr): New define_insn.
5767 (arm_set_apsr): Likewise.
5768 (arm_saturation_occurred): New define_expand.
5769 (arm_set_saturation): Likewise.
5770 (*satsi_<SAT:code>): Rename to...
5771 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5772 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5773 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5774 (CALL_USED_REGISTERS): Mark apsrq.
5775 (FIRST_PSEUDO_REGISTER): Update value.
5776 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5777 (machine_function): Add q_bit_access.
5778 (ARM_Q_BIT_READ): Define.
5779 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5780 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5782 (arm_q_bit_access): Define.
5783 * config/arm/arm-builtins.c: Include stringpool.h.
5784 (arm_sat_binop_imm_qualifiers,
5785 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5786 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5787 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5788 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5789 SET_SAT_QUALIFIERS): Likewise.
5790 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5791 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5792 Handle 0 argument expander.
5793 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5794 (arm_check_builtin_call): Define.
5795 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5796 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5797 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5798 (arm_q_bit_access): Likewise.
5799 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5800 __saturation_occurred, __set_saturation_occurred): Define.
5801 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5802 saturation_occurred, set_saturation_occurred.
5803 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5804 (UNSPEC_APSR_READ): Likewise.
5805 (VUNSPEC_APSR_WRITE): Likewise.
5806 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5807 (*arm_ssadd<mode>3): New define_insn.
5808 (sssub<mode>3): Convert to define_expand.
5809 (*arm_sssub<mode>3): New define_insn.
5810 (ssmulsa3): Convert to define_expand.
5811 (*arm_ssmulsa3): New define_insn.
5812 (usmulusa3): Convert to define_expand.
5813 (*arm_usmulusa3): New define_insn.
5814 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5815 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5816 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5818 2019-11-07 Martin Liska <mliska@suse.cz>
5821 * cgraph.c (delete_function_version): Clear global
5822 variable version_info_node if equal to deleted
5825 2019-11-07 Martin Liska <mliska@suse.cz>
5827 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5828 of CONSTRUCTOR_NO_CLEARING.
5829 (operand_compare::hash_operand): Likewise.
5831 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5833 Support 64-bit double and 64-bit long double configurations.
5836 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5837 --with-long-double=.
5838 * config/avr/t-multilib: Remove.
5839 * config/avr/t-avr: Output of genmultilib.awk is now fully
5840 dynamically generated and no more part of the repo.
5841 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5842 Pass them down to...
5843 * config/avr/genmultilib.awk: ...here and handle them.
5844 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5845 (-mlong-double=, avr_long_double). New option and var.
5846 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5847 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5848 Set default as requested by --with-double=
5849 (TARGET_HANDLE_OPTION): Define to this...
5850 (avr_handle_option): ...new hook worker.
5851 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5852 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5853 (avr_double_lib): New proto for spec function.
5854 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5855 (DRIVER_SELF_SPECS): Call %:double-lib.
5856 * config/avr/avr.c (avr_option_override): Assert
5857 sizeof(long double) >= sizeof(double) for the target.
5858 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5859 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5860 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5861 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5862 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5863 New built-in define depending on --with-double=, --with-long-double=.
5864 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5865 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5866 * doc/install.texi (Cross-Compiler-Specific Options)
5867 <--with-double=, --with-long-double=>: Doc.
5869 2019-11-07 Richard Biener <rguenther@suse.de>
5871 * dbgcnt.def (gimple_unroll): New.
5872 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5873 gimple_unroll debug counter before applying transform.
5874 (try_peel_loop): Likewise.
5876 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5878 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5879 frame pointer in multiple registers.
5880 (ira_setup_eliminable_regset): Setup eliminable_regset,
5881 ira_no_alloc_regs and regs_ever_live for frame pointer in
5884 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5886 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5889 2019-11-06 Jan Hubicka <jh@suse.cz>
5891 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5893 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5894 Do not silently ignore summary corruptions.
5896 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5898 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5899 the epilogue if there are peeled iterations for it to handle.
5901 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5903 * config/arc/arc.c (arc_split_ior): Add asserts.
5904 (arc_split_mov_const): Likewise.
5905 (arc_check_ior_const): Do not match known short immediate values.
5906 * config/arc/arc.md (movsi): Don't split predicated instructions
5909 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5911 * config/arc/arc.opt (mea): Update help string.
5912 * doc/invoke.texi(ARC): Update mea option info.
5914 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5916 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5917 (zero_extendqisi2_ac): Likewise.
5918 (zero_extendhisi2_i): Likewise.
5919 (extendqihi2_i): Likewise.
5920 (extendqisi2_ac): Likewise.
5921 (extendhisi2_i): Likewise.
5923 2019-11-06 Richard Biener <rguenther@suse.de>
5925 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5926 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5927 Simplify single_defuse_cycle condition.
5929 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5931 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5932 epilogue loop, make sure that the VF is small enough or that
5933 the epilogue loop can be fully-masked.
5935 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5937 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5938 loop when we've finished, rather than returning directly from
5939 the loop. Use a local variable to track whether we're still
5940 searching for the preferred simdlen. Make vect_epilogues
5941 record whether the next iteration should try to treat the
5942 loop as an epilogue.
5944 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5946 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5947 __arc_hard_float__, __ARC_HARD_FLOAT__,
5948 __arc_soft_float__, __ARC_SOFT_FLOAT__
5950 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5952 PR tree-optimization/92317
5953 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5954 update phi's with constant phi arguments.
5956 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5957 Alexandre Oliva <oliva@adacore.com>
5959 * common.opt (-fcallgraph-info[=]): New option.
5960 * doc/invoke.texi (Developer options): Document it.
5961 * opts.c (common_handle_option): Handle it.
5962 * builtins.c (expand_builtin_alloca): Record allocation if
5963 -fcallgraph-info=da.
5964 * calls.c (expand_call): If -fcallgraph-info, record the call.
5965 (emit_library_call_value_1): Likewise.
5966 * flag-types.h (enum callgraph_info_type): New type.
5967 * explow.c: Include stringpool.h.
5968 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5969 * function.c (allocate_stack_usage_info): New.
5970 (allocate_struct_function): Call it for -fcallgraph-info.
5971 (prepare_function_start): Call it otherwise.
5972 (record_final_call, record_dynamic_alloc): New.
5973 * function.h (struct callinfo_callee): New.
5974 (CALLEE_FROM_CGRAPH_P): New.
5975 (struct callinfo_dalloc): New.
5976 (struct stack_usage): Add callees and dallocs.
5977 (record_final_call, record_dynamic_alloc): Declare.
5978 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5979 object if -fcallgraph-info=da.
5980 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5981 * print-tree.h (print_decl_identifier): Declare.
5982 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5983 * print-tree.c: Include print-tree.h.
5984 (print_decl_identifier): New function.
5985 * toplev.c: Include print-tree.h.
5986 (callgraph_info_file): New global variable.
5987 (callgraph_info_external_printed): Likewise.
5988 (output_stack_usage): Rename to...
5989 (output_stack_usage_1): ... this. Make it static, add cf
5990 parameter. If -fcallgraph-info=su, print stack usage to cf.
5991 If -fstack-usage, use print_decl_identifier for
5993 (INDIRECT_CALL_NAME): New.
5994 (dump_final_node_vcg_start): New.
5995 (dump_final_callee_vcg, dump_final_node_vcg): New.
5996 (output_stack_usage): New.
5997 (lang_dependent_init): Open and start file if
5998 -fcallgraph-info. Allocated callgraph_info_external_printed.
5999 (finalize): If callgraph_info_file is not null, finish it,
6000 close it, and release callgraph_info_external_printed.
6002 2019-11-06 Gergö Barany <gergo@codesourcery.com>
6003 Frederik Harwath <frederik@codesourcery.com>
6004 Thomas Schwinge <thomas@codesourcery.com>
6006 * omp-low.c (struct omp_context): New fields
6007 local_reduction_clauses, outer_reduction_clauses.
6008 (new_omp_context): Initialize these.
6009 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6010 (scan_omp_for): Check reduction clauses for incorrect nesting.
6012 2019-11-06 Jakub Jelinek <jakub@redhat.com>
6015 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6016 operands with non-memory constraints.
6018 2019-11-05 Martin Sebor <msebor@redhat.com>
6020 PR tree-optimization/92373
6021 * tree.c (component_ref_size): Only consider initializers of objects
6022 of matching struct types.
6023 Return null for instances of interior zero-length arrays.
6025 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6027 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6029 2019-11-05 Jason Merrill <jason@redhat.com>
6031 PR tree-optimization/91825
6032 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6034 2019-11-05 Jim Wilson <jimw@sifive.com>
6037 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6038 optimize_insn_for_speed_p is true.
6040 2019-11-05 Martin Sebor <msebor@redhat.com>
6044 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6046 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6047 name and location for a temporary variable.
6049 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6051 * tree-vrp.c (value_range::value_range): Fix whitespace.
6052 (defined_ranges_p): Same.
6053 (range_fold_binary_symbolics_p): Same.
6054 (value_range::intersect_helper): Same.
6055 (value_range::union_helper): Same.
6056 * tree-vrp.h (range_fold_binary_expr): Same.
6058 2019-11-04 Martin Sebor <msebor@redhat.com>
6062 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6063 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6064 of message printed in a warning for empty arrays.
6065 (vrp_prop::check_mem_ref): Also handle function parameters and
6068 2019-11-05 Richard Biener <rguenther@suse.de>
6070 PR tree-optimization/92371
6071 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6072 on the original stmt of live stmts in the chain.
6073 (vectorizable_live_operation): Look at the original stmt when
6074 checking STMT_VINFO_REDUC_DEF.
6076 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6078 * gimple-fold.c, gimple-loop-versioning.cc,
6079 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6080 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6081 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6082 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6083 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6084 value_range_equiv, and value_range_base to value_range.
6086 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6088 * expr.c (build_personality_function): Fix generated type to
6089 match actual personality functions.
6091 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6093 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6094 enough bytes for the NULL character.
6096 2019-11-05 Richard Biener <rguenther@suse.de>
6098 PR tree-optimization/92280
6099 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6100 had a single use do not create a new CTOR.
6101 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6102 BIT_FIELD_REF of a CTOR via GENERIC.
6104 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6106 * config/s390/s390.c (s390_vector_alignment): Check if the value
6107 fits into uhwi before using it.
6109 2019-11-05 Martin Liska <mliska@suse.cz>
6111 * symbol-summary.h: Use ggc_delete.
6113 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6115 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6116 Change vec_perm field to 10.
6118 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6120 * doc/install.texi: Further fix syntax for html generation.
6122 2019-11-05 Martin Liska <mliska@suse.cz>
6124 * symbol-summary.h: Rename allocator to m_allocator and
6127 2019-11-05 Richard Biener <rguenther@suse.de>
6129 PR tree-optimization/92324
6130 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6131 all signed or unsigned operations.
6133 2019-11-05 Jan Hubicka <jh@suse.cz>
6135 * hsa-brig.c: Include alloc-pool.h
6136 * hsa-dump.c: Likewise.
6137 * hsa-gen.c: Likewise.
6138 * hse-regalloc.c: Likewise.
6139 * ipa-hsa.c: Likewise.
6140 * ipa-predicate.c: Likewise.
6141 * ipa-reference.c: Likewise.
6142 * ipa-sra.c: Likewise.
6143 * omp-expand.c: Likewise.
6144 * omp-general.c: Likewise.
6145 * omp-low.c: Likewise.
6146 * sumbol-summary.h (function_summary_base): Add allocator.
6147 (function_summary<T *>::function_summary): Update construction.
6148 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6149 (call_summary_base): Add allcator.
6150 (call_summary<T *>::call_summary): Update construction.
6151 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6153 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6155 PR tree-optimization/91945
6156 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6157 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6160 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6162 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6163 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6164 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6165 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6166 (vrp_set_zero_nonzero_bits): Move to...
6167 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6168 (vr_values::simplify_bit_ops_using_ranges): Rename
6169 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6171 2019-11-05 Martin Liska <mliska@suse.cz>
6174 * fold-const.c (operand_compare::hash_operand): Remove
6175 FIELD_DECL handling.
6177 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6179 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6180 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6183 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6185 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6186 properly handle symbolics.
6187 (range_compatible_p): Remove.
6189 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6191 * common.opt (-fabi-version): Document =14.
6192 * doc/invoke.texi (C++ Dialect Options): Likewise.
6194 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6196 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6198 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6200 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6201 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6202 gcn_omp_device_kind_arch_isa.
6203 * config/gcn/t-omp-device: New file.
6204 * configure.ac: Support gcn for omp_device_property.
6205 * configure: Regenerate.
6207 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6209 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6210 (vrp_val_max): Same.
6211 (vrp_val_is_min): Same.
6212 (vrp_val_is_max): Same.
6213 (value_range_base::nonzero_p): Remove last argument to
6215 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6216 (vrp_val_max): Same.
6217 (vrp_val_is_min): Same.
6218 (vrp_val_is_max): Same.
6219 (value_range_base::set_varying): Remove last argument to vrp_val*.
6220 (value_range_base::dump): Same.
6221 (value_range_base::set): Same.
6222 (value_range_base::normalize_symbolics): Same.
6223 (value_range_base::num_pairs): Same.
6224 (value_range_base::lower_bound): Same.
6225 (value_range_base::upper_bound): Same.
6226 (ranges_from_anti_range): Remove handle_pointers argument.
6227 (value_range_base::singleton_p): Remove last argument to
6228 ranges_from_anti_range.
6230 2019-11-04 Jan Hubicka <jh@suse.cz>
6232 * ipa-reference.c (init_function_info): Initialize
6233 info->global.statics_read.
6235 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6237 * tree-vrp.c (value_range_base::invert): Use constructors to build
6240 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6242 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6243 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6245 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6247 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6250 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6252 * tree-vrp.c (dump_assert_info): New.
6253 (dump_asserts_info): New.
6255 2019-11-04 Jan Hubicka <jh@suse.cz>
6257 * ipa-inline-transform.c: Include ipa-utils.h
6258 (inline_call): Set thunk_expansion flag.
6259 * ipa-utils.h (thunk_expansion): Declare.
6260 * ipa-devirt.c (thunk_expansion): New global var.
6261 (devirt_node_removal_hook): Do not invalidate cache while
6262 doing thunk expansion.
6264 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6266 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6268 2019-11-04 Martin Sebor <msebor@redhat.com>
6270 PR tree-optimization/92349
6271 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6272 memebers have constant sizes.
6274 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6276 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6278 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6279 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6282 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6284 * expr.c (store_constructor): Modify to handle single element vectors.
6285 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6287 (vect_slp_check_for_constructors): New function.
6288 (vect_slp_analyze_bb_1): Call new function to check for vector
6290 (vectorize_slp_instance_root_stmt): New function.
6291 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6293 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6295 2019-11-04 Richard Biener <rguenther@suse.de>
6297 PR tree-optimization/92345
6298 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6299 we produced a reduction chain.
6300 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6301 LOOP_VINFO_REDUCTIONS.
6303 2019-11-04 Jan Hubicka <jh@suse.cz>
6305 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6306 duplicate summaries.
6307 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6309 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6310 access call summaries.
6311 (dump_ipa_call_summary): Be ready for missing edge summaries.
6312 (analyze_function_body): Use get instead of get_create to access
6314 (estimate_calls_size_and_time): Do not access summaries of
6315 inlined edges; sanity check they are missing.
6316 (ipa_call_context::estimate_size_and_time): Use get instead
6317 of get_create to access node summary.
6318 (inline_update_callee_summaries): Do not update depth of
6320 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6322 (ipa_merge_fn_summary_after_inlining): Use get instead
6324 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6325 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6327 (initialize_growth_caches): Update.
6328 (do_estimate_edge_time): Remove redundant copy of context.
6329 (ipa_remove_from_growth_caches): New function.
6330 * ipa-inline.c (flatten_function): Update overall summary
6331 only when optimizing.
6332 (inline_to_all_callers): Update overall summary of function
6334 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6335 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6338 2019-11-04 Richard Biener <rguenther@suse.de>
6340 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6341 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6343 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6345 * ggc-common.c: Include system.h before malloc.h.
6347 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6349 * configure.ac: Pass --enable-obsolete=* and
6350 --enable-option-checking=* down to build configure, and fail
6351 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6352 * configure: Rebuild.
6353 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6354 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6356 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6358 * config.in: Regenerate.
6359 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6360 -mtiny-printf is used without GCC being configured with
6361 --enable-newlib-nano-formatted-io.
6362 * config/msp430/msp430.h (LINK_SPEC): Pass
6363 "--wrap puts --wrap printf" when -mtiny-printf is used.
6364 * config/msp430/msp430.opt: Document -mtiny-printf.
6365 * configure: Regenerate.
6366 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6367 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6368 --enable-newlib-nano-formatted-io is passed.
6369 * doc/invoke.texi: Document -mtiny-printf.
6371 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6373 * configure: Regenerate.
6375 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6377 * config/msp430/driver-msp430.c
6378 (msp430_get_linker_devices_include_path): New spec function.
6379 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6380 (extract_devices_dir_from_exec_prefix): New function.
6381 (extract_devices_dir_from_collect_gcc): New function.
6382 (msp430_check_env_var_for_devices): New function.
6383 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6384 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6385 devices.csv was not found using other methods.
6386 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6388 (msp430_dirname): Likewise.
6389 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6390 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6391 msp430_get_linker_devices_include_path.
6392 (TARGET_EXTRA_PRE_INCLUDES): Define.
6393 * doc/invoke.texi: Document new ways of searching for support files.
6395 2019-11-04 Richard Biener <rguenther@suse.de>
6397 PR tree-optimization/92301
6398 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6399 as required by epilogue generation
6401 2019-11-04 Martin Liska <mliska@suse.cz>
6404 * fold-const.c (operand_compare::hash_operand): Fix field
6405 hashing of CONSTRUCTOR.
6407 2019-11-04 Martin Liska <mliska@suse.cz>
6409 * ggc.h (ggc_delete): New function.
6410 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6411 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6412 (ipa_free_all_node_params): Likewise.
6413 * ipa-sra.c (ipa_sra_analysis): Likewise.
6415 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6417 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6418 set_switch_stmt_execution_predicate, compute_bb_predicates,
6419 will_be_nonconstant_expr_predicate,
6420 phi_result_unknown_predicate,
6421 analyze_function_body): Pass arround params summary.
6422 (ipa_call_context::duplicate_from): New comment;
6423 only duplicate useful values.
6424 (ipa_call_context::equal_to): Only compare useful values.
6425 (remap_edge_summaries): Pass params_summary.
6426 (remap_hint_predicate): Likewise.
6427 (ipa_merge_fn_summary_after_inlining): Likewise.
6428 (inline_read_section): Initialize params summary used flags.
6429 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6430 around param_summary.
6431 (add_condition): Initialized used params summary flags.
6432 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6433 (inline_param_summary::useless_p): New predicate.
6434 (remap_after_inlining, add_condition): Update prototype
6435 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6437 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6439 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6440 (ipa_analyze_virtual_call_uses): Likewise.
6441 (update_indirect_edges_after_inlining): Update param summaries.
6442 (ipa_print_node_params): Print used flags.
6443 (ipa_read_indirect_edge_info): Update param summareis.
6444 * ipa-prop.h (ipa_param_descriptor): Add
6445 used_by_ipa_predicates, used_by_indirect_call
6446 and used_by_polymorphic_call.
6447 (ipa_set_param_used_by_ipa_predicates,
6448 ipa_set_param_used_by_indirect_call,
6449 ipa_set_param_used_by_polymorphic_call,
6450 ipa_is_param_used_by_ipa_predicates,
6451 ipa_is_param_used_by_indirect_call,
6452 ipa_is_param_used_by_polymorphic_call): New inline functions.
6454 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6456 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6458 (ipa_call_context::release): Add ALL parameter.
6459 (ipa_call_context::equal_to): New member function.
6460 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6461 duplicate_form, release, equal_to and exists_p member functoins.
6462 * ipa-inline-analysis.c (node_context_cache_entry): New
6464 (node_context_summary): Likewise.
6465 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6466 node_context_clear): New static vars.
6467 (initialize_growth_caches): New function.
6468 (free_growth_caches): Also delete node_context_cache; output stats.
6469 (do_estimate_edge_time): Cache contexts.
6470 (reset_node_cache): New function.
6471 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6472 (inline_small_functions): Initialize growth caches.
6473 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6475 * ipa-predicate.h (inline_param_summary::equal_to): New.
6476 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6477 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6478 (ipa_agg_jump_function): Implement equal_to member function.
6480 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6482 * ipa-fnsummary.c (inline_read_section): Set vector size
6485 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6487 * ipa-fnsummary.c (ipa_call_context): New constructor.
6488 (estimate_node_size_and_time): Turn to ...
6489 (ipa_call_context::estimate_size_and_time): ... this one.
6490 (ipa_call_context::release): New.
6491 * ipa-fnsummary.h (ipa_call_context): New class.
6492 (estimate_node_size_and_time): Remove.
6493 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6494 do_estimate_edge_hints): Update.
6496 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6498 * config.in: Regenerate.
6499 * configure: Regenerate.
6500 * configure.ac: Check for mallinfo.
6501 * ggc-common.c: Include malloc.h if available;
6503 (report_heap_memory_use): New functoin.
6504 * ggc-page.c (ggc_grow): Do not print "start".
6505 * ggc.h (report_heap_memory_use): Declare.
6506 * pases.c (execute_one_pass): Report memory after IPA passes.
6507 (ipa_read_summaries_1): Likewise.
6508 (ipa_read_optimization_summaries_1): Likewise.
6510 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6512 * gimplify.h (omp_construct_selector_matches): Change return
6513 type to int, add a new SCORES argument.
6514 * gimplify.c (omp_construct_selector_matches): Likewise. If
6515 SCORES is non-NULL, compute scores of each construct.
6516 * omp-general.h (omp_get_context_selector): Declare.
6517 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6518 Adjust omp_construct_selector_matches callers.
6519 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6520 (omp_context_compute_score): New function.
6521 (omp_resolve_declare_variant): Compute scores and decide based on
6525 * configure.ac: Don't look for omp-device-properties files from
6526 installed offloading compilers. Instead add tmake_file snippets
6527 for configured offloading targets and use files they generate.
6528 * Makefile.in (install): Don't depend on
6529 install-omp-device-properties.
6530 (install-omp-device-properties): Remove goal.
6531 * config/i386/t-omp-device: New file.
6532 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6533 * config/nvptx/t-omp-device: New file.
6534 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6535 * configure: Regenerated.
6537 * omp-general.h (omp_context_selector_set_compare): Declare.
6538 * omp-general.c (omp_construct_simd_compare,
6539 omp_context_selector_props_compare, omp_context_selector_set_compare,
6540 omp_context_selector_compare): New functions.
6541 (omp_resolve_declare_variant): Prune variants that are strict subset
6544 2019-11-01 Martin Sebor <msebor@redhat.com>
6550 * doc/invoke.texi (-Wzero-length-bounds): Document.
6551 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6552 instead of a hand-rolled loop to avoid PR 92323.
6553 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6555 (vrp_prop::check_mem_ref): Handle declared struct objects.
6556 * tree.c (last_field): New function.
6557 (array_at_struct_end_p): Handle MEM_REF.
6558 (get_initializer_for): New helper.
6559 (component_ref_size): Add argument. Rename locals. Call
6560 get_initializer_for instead of fold_ctor_reference. Correct handling
6561 of flexible array members.
6562 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6564 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6566 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6567 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6568 UNSPEC_VSX_CVSPUXDS): Remove.
6569 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6570 (vsx_xvcvspdp_be): ... this. New. And...
6571 (vsx_xvcvspdp_le): ... this. New.
6572 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6573 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6574 (vsx_xvcv<su>xwdp_le): ... this. New.
6575 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6576 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6577 (vsx_xvcvsp<su>xds_le): ... this. New.
6579 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6581 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6582 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6583 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6584 UNSPEC_VSX_XVCVSPSXWS): Remove.
6585 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6586 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6588 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6590 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6591 (UNSPEC_VSX_XVCDPSP): Remove.
6592 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6593 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6595 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6597 * hooks.c (hook_tree_tree_bool_null): New.
6598 * hooks.h (hook_tree_tree_bool_null): Declare.
6599 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6600 (LANG_HOOKS_DECLS): Add it.
6601 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6602 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6603 (lower_omp_target): Handle Fortran array with descriptor in
6604 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6606 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6608 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6609 Assert that the type we store in abi_vector_types is its own
6611 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6613 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6615 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6616 from a CONST_INT address when TARGET_THUMB2.
6618 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6620 * config/arm/arm.md (add_not_cin): New insn.
6621 (add_not_shift_cin): Likewise.
6623 2019-10-31 Martin Liska <mliska@suse.cz>
6625 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6626 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6627 and compare_memory_operand.
6629 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6631 * configure.ac: Compute and substitute omp_device_properties and
6632 omp_device_property_deps.
6633 * Makefile.in (generated_files): Add omp-device-properties.h.
6634 (omp-general.o): Depend on omp-device-properties.h.
6635 (omp_device_properties): New make variable.
6636 (omp-device-properties.h, s-omp-device-properties-h,
6637 install-omp-device-properties): New goals.
6638 (install): Depend on install-omp-device-properties for accelerators.
6639 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6640 * target.h (enum omp_device_kind_arch_isa): New enum.
6641 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6643 * omp-general.c: Include omp-device-properties.h.
6644 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6645 colon instead of comma.
6646 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6648 (omp_context_selector_matches): Implement device set arch/isa
6649 selectors, improve device set kind selector handling.
6650 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6651 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6652 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6653 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6654 ix86_omp_device_kind_arch_isa.
6655 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6656 definition from ix86_target_string to file scope.
6657 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6659 (ix86_omp_device_kind_arch_isa): New function.
6660 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6661 isa_opts definitions to file scope.
6662 * config/i386/t-intelmic (omp-device-properties): New goal.
6663 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6664 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6665 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6666 nvptx_omp_device_kind_arch_isa.
6667 * configure: Regenerate.
6668 * doc/tm.texi: Regenerate.
6671 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6672 DECL_BUILT_IN in comment. Remove redundant ()s around return
6674 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6675 before calling fndecl_built_in_p.
6676 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6677 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6678 fndecl_built_in_p on it.
6680 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6682 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6684 2019-10-31 Martin Liska <mliska@suse.cz>
6686 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6687 of cgraph_local_info and use local_info_node instead.
6688 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6689 (bfin_function_ok_for_sibcall): Likewise.
6690 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6691 (must_reload_pic_reg_p): Likewise.
6693 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6696 * tree.h (type_initializer_zero_p): Remove.
6697 * tree.c (type_initializer_zero_p): Remove.
6699 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6701 * doc/invoke.texi (-Wshadow, -Wshadow=global
6702 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6704 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6706 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6707 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6708 and 'target exit data'.
6710 2019-10-30 Martin Jambor <mjambor@suse.cz>
6713 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6714 availability comparison.
6716 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6718 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6719 calls to __mspabi_mpy* functions.
6720 * config/msp430/msp430.md (mulhisi3): New define_expand.
6721 (umulhisi3): New define_expand.
6722 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6723 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6725 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6727 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6728 (msp430_check_plus_not_high_mem): New.
6729 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6730 might be in low memory.
6731 Indicate that a 16-bit absolute address is in lower memory.
6733 2019-10-30 Martin Jambor <mjambor@suse.cz>
6735 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6736 ultimate_alias_target.
6738 2019-10-30 Richard Biener <rguenther@suse.de>
6740 PR tree-optimization/92275
6741 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6742 Copy all loop-closed PHIs.
6744 2019-10-30 Martin Liska <mliska@suse.cz>
6746 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6747 const_tree as function argument.
6748 (func_checker::compare_decl): Likewise.
6749 (func_checker::operand_equal_p): Likewise.
6750 (func_checker::compare_variable_decl): Likewise.
6751 (func_checker::parse_labels): Likewise.
6752 * ipa-icf-gimple.h: Likewise.
6754 2019-10-30 Martin Liska <mliska@suse.cz>
6756 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6757 Do not compare alias sets. It's handled by operand_equal_p.
6759 2019-10-30 Martin Liska <mliska@suse.cz>
6761 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6762 initialize m_compare_polymorphic.
6763 (func_checker::compare_decl): Do not compare polymorphic types.
6764 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6765 * ipa-icf.c (sem_function::equals_private): Do not call
6766 compare_polymorphic_p.
6768 2019-10-30 Martin Liska <mliska@suse.cz>
6770 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6772 (func_checker::compare_memory_operand): Remove.
6773 (func_checker::compare_cst_or_decl): Remove.
6774 (func_checker::operand_equal_valueize): Do not handle
6776 (func_checker::compare_gimple_call): Call compare_operand.
6777 (func_checker::compare_gimple_assign): Likewise.
6778 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6779 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6780 * ipa-icf.h (icf_handled_component_p): Remove.
6782 2019-10-30 Martin Liska <mliska@suse.cz>
6784 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6785 (func_checker::compare_cst_or_decl): Remove handling
6787 (func_checker::compare_operand): Transform to ...
6788 (func_checker::operand_equal_p): ... this.
6789 * ipa-icf-gimple.h (class func_checker): Add
6790 operand_equal_p and hash_operand.
6791 * ipa-icf.c (sem_function::equals_private): Fix
6792 pushing and popping of cfun.
6794 2019-10-30 Martin Liska <mliska@suse.cz>
6796 * fold-const.c (operand_equal_p): Move to ...
6797 (operand_compare::operand_equal_p): ... here.
6798 (operand_compare::verify_hash_value): New.
6799 (add_expr): Move to ...
6800 (operand_compare::hash_operand): ... here.
6801 * fold-const.h (operand_equal_p): Move to the class.
6802 (class operand_compare): New.
6803 * tree.c (add_expr): Remove.
6805 2019-10-30 Martin Liska <mliska@suse.cz>
6807 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6808 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6810 2019-10-30 Martin Liska <mliska@suse.cz>
6814 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6815 from a first_clone in order to get proper LTO section
6817 (cgraph_node::get_untransformed_body):
6818 Use lto_get_section_data where symtab_node::order
6820 * cgraphclones.c (cgraph_node::find_replacement):
6821 Update also symbol order.
6822 * ipa-fnsummary.c (ipa_fn_summary_read):
6823 Use new function lto_get_summary_section_data.
6824 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6825 * ipa-icf.c (sem_item_optimizer::read_summary):
6827 * ipa-prop.c (ipa_prop_read_jump_functions):
6829 (ipcp_read_transformation_summaries): Likewise.
6830 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6831 * lto-cgraph.c (input_node): Add also order_base.
6832 (input_varpool_node): Likewise.
6833 (input_cgraph_1): Assign the order_base.
6834 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6835 * lto-opts.c (lto_write_options): Pass new argument.
6836 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6837 (lto_get_summary_section_data): New.
6838 (lto_get_raw_section_data): Add order argument.
6839 (lto_create_simple_input_block): Likewise.
6840 * lto-section-out.c (lto_destroy_simple_output_block):
6842 * lto-streamer-in.c (lto_input_toplevel_asms):
6843 Use lto_get_summary_section_data.
6844 (lto_input_mode_table): Likewise.
6845 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6846 (lto_output_toplevel_asms): Pass new argument.
6847 (copy_function_or_variable): Likewise.
6848 (produce_lto_section):Likewise.
6849 (produce_symtab): Likewise.
6850 (lto_write_mode_table): Likewise.
6851 (produce_asm_for_decls): Likewise.
6852 * lto-streamer.c (lto_get_section_name): Concat symbol name
6854 * lto-streamer.h (lto_get_section_data): Add order argument.
6855 (lto_get_summary_section_data): New.
6856 (lto_get_raw_section_data): Add order argument.
6857 (lto_get_section_name): Likewise.
6858 * varpool.c (varpool_node::get_constructor): Pass order argument.
6860 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6862 PR tree-optimization/92262
6863 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6864 ubase or cbase here.
6865 (remove_unused_ivs): Unshare comp before using it.
6867 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6869 * ipa-prop.c (update_jump_functions_after_inlining):
6870 Watch for missing summaries.
6872 2019-10-30 Richard Biener <rguenther@suse.de>
6874 PR tree-optimization/65930
6875 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6876 chains also allow a leading and trailing conversion.
6877 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6878 intermediate reduction chains.
6879 (vect_analyze_slp_instance): Likewise. Build a SLP
6880 node for a trailing conversion manually.
6882 2019-10-30 Martin Liska <mliska@suse.cz>
6884 * cgraph.c (cgraph_node::local_info): Transform to ...
6885 (cgraph_node::local_info_node): ... this.
6886 (cgraph_node::dump): Remove cgraph_local_info and
6887 put its fields directly into cgraph_node.
6888 (cgraph_node::get_availability): Likewise.
6889 (cgraph_node::make_local): Likewise.
6890 (cgraph_node::verify_node): Likewise.
6891 * cgraph.h (struct GTY): Likewise.
6892 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6893 (duplicate_thunk_for_node): Likewise.
6894 (cgraph_node::create_clone): Likewise.
6895 (cgraph_node::create_virtual_clone): Likewise.
6896 (cgraph_node::create_version_clone): Likewise.
6897 * cgraphunit.c (cgraph_node::reset): Likewise.
6898 (cgraph_node::finalize_function): Likewise.
6899 (cgraph_node::add_new_function): Likewise.
6900 (analyze_functions): Likewise.
6901 * combine.c (setup_incoming_promotions): Likewise.
6902 * config/i386/i386.c (ix86_function_regparm): Likewise.
6903 (ix86_function_sseregparm): Likewise.
6904 (init_cumulative_args): Likewise.
6905 * ipa-cp.c (determine_versionability): Likewise.
6906 (count_callers): Likewise.
6907 (set_single_call_flag): Likewise.
6908 (initialize_node_lattices): Likewise.
6909 (estimate_local_effects): Likewise.
6910 (create_specialized_node): Likewise.
6911 (identify_dead_nodes): Likewise.
6912 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6913 (ipa_fn_summary_generate): Likewise.
6914 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6915 (process_hsa_functions): Likewise.
6916 * ipa-icf.c (set_local): Likewise.
6917 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6918 * ipa-inline.c (speculation_useful_p): Likewise.
6919 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6920 (ipa_profile): Likewise.
6921 * ipa-split.c (split_function): Likewise.
6922 (execute_split_functions): Likewise.
6923 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6924 (ipa_sra_ipa_function_checks): Likewise.
6925 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6926 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6927 * lto-cgraph.c (lto_output_node): Likewise.
6928 (input_overwrite_node): Likewise.
6929 * multiple_target.c (expand_target_clones): Likewise.
6930 * omp-simd-clone.c (simd_clone_create): Likewise.
6931 * trans-mem.c (expand_call_tm): Likewise.
6932 (ipa_tm_mayenterirr_function): Likewise.
6933 (ipa_tm_diagnose_tm_safe): Likewise.
6934 (ipa_tm_diagnose_transaction): Likewise.
6935 (ipa_tm_create_version): Likewise.
6936 (ipa_tm_transform_calls_redirect): Likewise.
6937 (ipa_tm_execute): Likewise.
6938 * tree-inline.c (expand_call_inline): Likewise.
6940 2019-10-29 Martin Liska <mliska@suse.cz>
6942 * symbol-summary.h (function_summary): Pass memory location
6943 to underlaying hash_map (or vec).
6944 (V>::fast_function_summary): Likewise.
6946 2019-10-29 Martin Liska <mliska@suse.cz>
6948 * ggc.h (ggc_alloc_no_dtor): New function.
6949 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6950 destructor and ggc_free.
6951 (ipa_free_size_summary): Call delete instead
6953 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6954 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6955 (ipa_free_all_edge_args): Call destructor and ggc_free.
6956 (ipa_free_all_node_params): Likewise.
6957 (ipcp_free_transformation_sum): Likewise.
6958 * ipa-prop.h (ipa_check_create_node_params):
6959 Call new ggc_alloc_no_dtor.
6960 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6961 (ipa_sra_analysis): Call destructor and ggc_free.
6962 Replace release with delete operator.
6963 * symbol-summary.h (release): Remove ..
6964 (V>::~fast_function_summary): and move logic here.
6965 Likewise for other classes.
6967 2019-10-29 Richard Biener <rguenther@suse.de>
6969 PR tree-optimization/92260
6970 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6973 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6975 PR tree-optimization/88915
6976 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6977 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6978 and make the valueize function pointer also take a void pointer.
6979 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6980 around vn_valueize, to call it without a context.
6981 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6982 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6983 (~_loop_vec_info): Release epilogue_vinfos.
6984 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6985 number of iterations of epilogue.
6986 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6987 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6988 versioning threshold needed for main loop.
6989 (vect_analyze_loop): Likewise.
6990 (find_in_mapping): New helper function.
6991 (update_epilogue_loop_vinfo): New function.
6992 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6993 on main loop and call update_epilogue_loop_vinfo to update it.
6994 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6995 stmts on loop preheader edge.
6996 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6997 we decided to vectorize epilogues. Update epilogues NITERS and
6998 construct ADVANCE to update epilogues data references where needed.
6999 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7000 (vect_do_peeling, vect_update_inits_of_drs,
7001 determine_peel_for_niter, vect_analyze_loop): Add or update
7003 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7004 created loop_vec_info's for epilogues when available. Otherwise analyse
7005 epilogue separately.
7007 2019-10-29 Richard Biener <rguenther@suse.de>
7009 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7012 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7014 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7015 index for the COND_EXPR from stmt_info rather than reduc_info.
7017 2019-10-29 Richard Biener <rguenther@suse.de>
7019 PR tree-optimization/65930
7020 * tree-vect-loop.c (check_reduction_path): Relax single-use
7021 check allowing out-of-loop uses.
7022 (vect_is_simple_reduction): SLP reduction chains cannot have
7023 intermediate stmts used outside of the loop.
7024 (vect_create_epilog_for_reduction): The adjustment might need
7026 (vectorizable_reduction): Annotate live stmts of the reduction
7027 chain with STMT_VINFO_REDUC_DEF.
7028 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7030 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7032 * calls.c (pass_by_reference): Leave the target to decide whether
7033 POLY_INT_CST-sized arguments should be passed by value or reference,
7034 rather than forcing them to be passed by reference.
7035 (must_pass_in_stack_var_size): Likewise.
7036 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7037 V31_REGNUM to P15_REGNUM.
7038 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7039 Take an extra "silent_p" parameter, defaulting to false.
7040 (aarch64_sve::svbool_type_p): Declare.
7041 (aarch64_sve::nvectors_if_data_type): Likewise.
7042 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7043 (aarch64_frame::reg_offset): Turn into poly_int64s.
7044 (aarch64_frame::save_regs_size): Likewise.
7045 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7046 (aarch64_frame::sve_callee_adjust): Likewise.
7047 (aarch64_frame::spare_reg_reg): Likewise.
7048 (ARM_PCS_SVE): New arm_pcs value.
7049 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7050 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7051 (CUMULATIVE_ARGS::silent_p): Likewise.
7052 (BITS_PER_SVE_PRED): New macro.
7053 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7054 function. Reject aarch64_vector_pcs attributes on SVE functions.
7055 (aarch64_attribute_table): Use the above handler.
7056 (aarch64_sve_abi): New function.
7057 (aarch64_sve_argument_p): Likewise.
7058 (aarch64_returns_value_in_sve_regs_p): Likewise.
7059 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7060 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7061 descriptor for them.
7062 (aarch64_simd_decl_p): Delete.
7063 (aarch64_emit_cfi_for_reg_p): New function.
7064 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7065 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7066 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7067 as partly clobbered for the SVE PCS.
7068 (aarch64_function_ok_for_sibcall): Check whether the two functions
7069 use the same ABI, rather than checking specifically for whether
7070 they're aarch64_vector_pcs functions.
7071 (aarch64_pass_by_reference): Raise an error for attempts to pass
7072 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7073 if there are not enough free registers left, or if the argument is
7075 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7076 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7078 (aarch64_layout_arg): Take a function_arg_info rather than
7079 individual properties. Handle SVE predicates, vectors and tuples.
7080 Raise an error if they are passed to unprototyped functions.
7081 (aarch64_function_arg): If the silent_p flag is set, suppress the
7082 usual error about using float registers without TARGET_FLOAT.
7083 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7084 it in the cumulative_args structure. Initialize aapcs_nprn and
7085 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7086 error about using float registers without TARGET_FLOAT.
7087 If the silent_p flag is not set, also raise an error about
7088 using SVE functions when SVE is disabled.
7089 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7090 and call it for SVE functions too. Update aapcs_nprn similarly
7091 to the other register counts.
7092 (aarch64_layout_frame): If a big-endian function needs to save
7093 and restore Z8-Z15, search for a spare predicate that it can use.
7094 Store SVE predicates at the bottom of the register save area,
7095 followed by SVE vectors, then followed by the normal slots.
7096 Keep pointing the hard frame pointer at the base of the normal slots,
7097 above the SVE vectors. Update the various frame creation and
7098 tear-down strategies for the new layout, initializing the new
7099 sve_callee_adjust field. Add an additional layout for frames
7100 whose saved registers are all SVE registers.
7101 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7102 (aarch64_return_address_signing_enabled): Likewise.
7103 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7104 aarch64_reg_save_mode.
7105 (aarch64_adjust_sve_callee_save_base): New function.
7106 (aarch64_add_cfa_expression): Move earlier in file. Take the
7107 saved register as an rtx rather than a register number and use
7108 its mode for the MEM slot.
7109 (aarch64_save_callee_saves): Remove the mode argument and instead
7110 use aarch64_reg_save_mode to get the mode of each save slot.
7111 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7112 offsets. Allow GP offsets to be saved at a VL-based offset from
7113 the stack, handling this case using the frame pointer if available
7114 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7115 big-endian SVE functions; use normal moves for other SVE saves.
7116 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7117 returns true. Add explicit CFA notes when not storing via the
7118 stack pointer. Do not try to pair SVE saves.
7119 (aarch64_restore_callee_saves): Cope with poly_int64 register
7120 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7121 use normal moves for other SVE restores. Only add CFA restore notes
7122 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7124 (aarch64_get_separate_components): Always keep the first SVE save
7125 in the prologue if we need to use it as a stack probe. Don't allow
7126 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7127 Likewise the spare predicate register that they need. Update the
7128 offset calculation to account for the SVE save area. Use the
7129 appropriate range check for SVE LDR and STR instructions.
7130 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7131 (aarch64_process_components): Likewise. Update the offset
7132 calculation to account for the SVE save area. Only mark the
7133 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7134 Do not try to pair SVE saves.
7135 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7136 reg_offsets. When handling the final allocation, expect the
7137 first SVE register save to be part of the initial allocation
7138 and for it to act as a probe at SP. Account for the SVE callee
7139 save area in the dump information.
7140 (aarch64_expand_prologue): Update the frame diagram. Fold the
7141 SVE callee allocation into the initial allocation if stack clash
7142 protection is enabled. Use new variables to track the offset
7143 of the frame chain (and hard frame pointer) from the current
7144 stack pointer, and likewise the offset of the bottom of the
7145 register save area. Update calls to aarch64_save_callee_saves
7146 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7147 saving the FP&SIMD registers. Save the predicate registers.
7148 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7149 into account when setting the stack pointer from the frame pointer,
7150 and when deciding whether we can inherit the initial adjustment
7151 amount from the prologue. Restore the predicate registers after
7152 the vector registers, then apply sve_callee_adjust, then restore
7153 the general registers.
7154 (aarch64_secondary_reload): Don't use secondary SVE reloads
7156 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7157 (aarch64_short_vector_p): Return false for SVE types.
7158 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7159 at the start of the function. Return false for SVE types.
7160 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7162 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7163 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7164 to big-endian targets for bytewise moves.
7165 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7167 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7168 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7169 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7171 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7172 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7173 aarch64-sve-builtins-base.o to extra_objs. Add
7174 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7175 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7176 (aarch64-sve-builtins-shapes.o): Likewise.
7177 (aarch64-sve-builtins-base.o): New rules.
7178 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7179 (aarch64_resolve_overloaded_builtin): Likewise.
7180 (aarch64_check_builtin_call): Likewise.
7181 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7182 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7184 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7185 (aarch64_svprfop): New enum.
7186 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7187 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7188 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7189 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7190 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7191 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7192 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7193 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7194 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7195 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7196 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7197 (aarch64_sve::mangle_builtin_type): Likewise.
7198 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7199 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7200 (aarch64_sve::expand_builtin): Likewise.
7201 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7202 (aarch64_sve_int_mode): Likewise.
7203 (aarch64_ptrue_all_mode): New function.
7204 (aarch64_convert_sve_data_to_pred): Make public.
7205 (svprfop_token): New function.
7206 (aarch64_output_sve_prefetch): Likewise.
7207 (aarch64_fold_sve_cnt_pat): Likewise.
7208 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7209 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7210 instead of gen_while_ult.
7211 (aarch64_replace_reg_mode): Make public.
7212 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7213 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7214 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7215 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7216 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7217 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7218 (aarch64_sve_ptrue_svpattern_p): Likewise.
7219 (aarch64_sve_pred_valid_immediate): Check
7220 aarch64_sve_ptrue_svpattern_p.
7221 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7222 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7224 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7225 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7226 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7227 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7228 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7229 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7231 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7232 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7233 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7234 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7235 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7236 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7237 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7238 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7239 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7240 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7241 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7242 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7243 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7244 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7245 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7246 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7247 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7248 (Vesize): Handle partial vector modes.
7249 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7251 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7253 (s, paired_extend, inc_dec): New code attributes.
7254 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7255 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7256 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7257 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7258 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7259 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7261 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7262 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7263 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7264 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7265 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7266 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7267 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7268 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7269 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7270 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7271 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7272 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7273 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7274 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7275 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7276 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7278 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7279 (binqops_op, binqops_op_rev, last_op): New int attributes.
7280 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7281 (fn, ab): New int attributes.
7282 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7283 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7284 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7285 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7287 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7288 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7289 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7290 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7291 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7293 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7294 (brk_reg_con, brk_reg_opno): New int attributes.
7295 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7296 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7297 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7299 (max_elem_bits): New int attribute.
7300 (min_elem_bits): Handle UNSPEC_RBIT.
7301 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7302 TRUNCATE as well as SUBREG.
7303 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7304 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7305 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7306 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7307 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7308 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7309 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7310 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7311 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7312 (aarch64_gather_scale_operand_h): New predicates.
7313 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7314 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7315 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7316 (*aarch64_sve_reinterpret<mode>): Allow any source register
7317 instead of requiring an exact match.
7318 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7319 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7320 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7321 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7322 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7323 (aarch64_update_ffrt): New patterns.
7324 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7325 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7326 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7327 (@aarch64_ld<fn>f1<mode>): New patterns.
7328 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7329 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7330 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7331 (@aarch64_ldnt1<mode>): New patterns.
7332 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7333 the scalar part of the address.
7334 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7335 scalar part of the addresse and add an alternative for handling
7337 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7338 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7339 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7340 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7341 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7342 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7343 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7344 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7345 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7346 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7347 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7348 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7349 (@aarch64_sve_prefetch<mode>): New patterns.
7350 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7351 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7352 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7353 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7354 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7355 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7356 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7357 (@aarch64_stnt1<mode>): New patterns.
7358 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7359 the scalar part of the address.
7360 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7361 the scalar part of the addresse and add an alternative for handling
7363 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7364 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7365 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7366 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7367 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7368 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7370 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7371 (extract_last_<mode>): Generalize to...
7372 (@extract_<LAST:last_op>_<mode>): ...this.
7373 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7374 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7375 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7376 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7377 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7378 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7379 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7380 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7381 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7382 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7383 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7384 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7385 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7386 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7387 (*aarch64_adr_uxtw_unspec): Likewise.
7388 (*aarch64_adr_uxtw): Rename to...
7389 (*aarch64_adr_uxtw_and): ...this.
7390 (@aarch64_adr<mode>_shift): New expander.
7391 (*aarch64_adr_shift_sxtw): New pattern.
7392 (aarch64_<su>abd<mode>_3): Rename to...
7393 (@aarch64_pred_<su>abd<mode>): ...this.
7394 (<su>abd<mode>_3): Update accordingly.
7395 (@aarch64_cond_<su>abd<mode>): New expander.
7396 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7397 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7398 (*<su>mul<mode>3_highpart): Rename to...
7399 (@aarch64_pred_<optab><mode>): ...this.
7400 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7401 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7402 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7403 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7404 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7405 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7406 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7407 (*v<ASHIFT:optab><mode>3): Rename to...
7408 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7409 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7410 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7411 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7412 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7413 (@cond_asrd<mode>): New expander.
7414 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7415 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7416 (*sdiv_pow2<mode>3): Delete.
7417 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7418 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7419 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7420 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7421 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7422 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7423 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7424 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7425 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7426 (*add<SVE_F:mode>3): Rename to...
7427 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7429 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7430 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7431 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7432 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7433 (*sub<SVE_F:mode>3): Rename to...
7434 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7436 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7437 (*fabd<SVE_F:mode>3): Rename to...
7438 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7439 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7440 (*mul<SVE_F:mode>3): Rename to...
7441 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7443 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7444 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7446 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7447 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7448 (*<nlogical><PRED_ALL:mode>3): Rename to...
7449 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7450 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7451 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7452 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7453 (aarch64_pred_<logical_nn><mode>_z): ...this.
7454 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7455 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7456 (*fma<SVE_I:mode>4): Rename to...
7457 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7458 (*fnma<SVE_I:mode>4): Rename to...
7459 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7460 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7461 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7462 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7463 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7464 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7465 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7466 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7467 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7468 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7469 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7470 (@aarch64_sve_tmad<mode>): Likewise.
7471 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7472 (*aarch64_sel_dup<mode>): Rename to...
7473 (@aarch64_sel_dup<mode>): ...this.
7474 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7475 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7476 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7477 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7478 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7479 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7480 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7481 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7482 (*fcm<cmp_op><mode>): Rename to...
7483 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7484 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7485 (*fcmuo<mode>): Rename to...
7486 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7487 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7488 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7489 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7490 (fold_extract_last_<mode>): Generalize to...
7491 (@fold_extract_<last_op>_<mode>): ...this.
7492 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7493 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7494 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7495 DImode result explicit.
7496 (reduc_plus_scal_<mode>): Update accordingly.
7497 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7498 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7499 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7500 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7501 (*aarch64_sve_tbl<mode>): Rename to...
7502 (@aarch64_sve_tbl<mode>): ...this.
7503 (@aarch64_sve_compact<mode>): New pattern.
7504 (*aarch64_sve_dup_lane<mode>): Rename to...
7505 (@aarch64_sve_dup_lane<mode>): ...this.
7506 (@aarch64_sve_dupq_lane<mode>): New pattern.
7507 (@aarch64_sve_splice<mode>): Likewise.
7508 (aarch64_sve_<perm_insn><mode>): Rename to...
7509 (@aarch64_sve_<perm_insn><mode>): ...this.
7510 (*aarch64_sve_ext<mode>): Rename to...
7511 (@aarch64_sve_ext<mode>): ...this.
7512 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7513 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7515 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7516 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7518 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7520 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7521 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7522 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7523 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7525 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7526 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7528 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7529 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7530 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7532 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7533 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7534 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7535 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7536 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7538 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7539 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7540 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7541 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7542 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7543 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7544 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7545 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7546 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7547 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7548 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7549 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7550 (aarch64_sve_cnt_pat): Likewise.
7551 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7552 (*aarch64_sve_incsi_pat): Likewise.
7553 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7554 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7555 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7556 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7557 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7558 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7559 (*aarch64_sve_decsi_pat): Likewise.
7560 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7561 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7562 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7563 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7564 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7565 (@aarch64_pred_cntp<mode>): Likewise.
7566 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7568 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7569 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7570 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7572 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7574 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7575 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7576 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7577 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7578 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7579 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7580 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7582 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7583 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7584 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7586 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7588 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7590 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7591 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7593 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7594 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7596 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7597 * config/aarch64/arm_sve.h: New file.
7598 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7599 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7600 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7601 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7602 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7603 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7604 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7605 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7606 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7608 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7610 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7612 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7615 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7617 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7618 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7620 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7621 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7622 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7623 (aarch64_hard_regno_nregs): Handle the new register classes.
7624 (aarch64_hard_regno_mode_ok): Likewise.
7625 (aarch64_regno_regclass): Likewise.
7626 (aarch64_class_max_nregs): Likewise.
7627 (aarch64_register_move_cost): Likewise.
7628 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7629 as general register_operands.
7631 2019-10-29 Martin Liska <mliska@suse.cz>
7633 * ggc-common.c: One can't subtract unsigned types
7634 in compare function.
7636 2019-10-29 Martin Liska <mliska@suse.cz>
7638 * cgraphunit.c (symbol_table::compile): Pass
7639 title as dump_memory_report argument.
7640 * toplev.c (dump_memory_report): New argument.
7641 (finalize): Pass new argument.
7642 * toplev.h (dump_memory_report): Add argument.
7644 2019-10-29 Martin Liska <mliska@suse.cz>
7646 * ggc-common.c: Move Leak to the first column.
7648 2019-10-29 Martin Liska <mliska@suse.cz>
7650 * cgraphunit.c (symbol_table::compile): Remove argument
7651 for dump_memory_report.
7652 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7653 (compare_final): Remove in order to make report
7655 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7656 * mem-stats.h (mem_alloc_description::get_list):
7658 (mem_alloc_description::dump): Likewise here.
7659 * toplev.c (dump_memory_report): Remove final
7661 (finalize): Likewise.
7662 * toplev.h (dump_memory_report): Remove argument.
7664 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7666 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7667 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7668 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7669 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7672 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7674 * coretypes.h (string_int_pair): New typedef.
7675 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7676 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7677 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7679 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7681 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7682 (simulate_builtin_function_decl): Declare.
7683 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7684 (LANG_HOOKS_INITIALIZER): Include it.
7685 * langhooks.c (add_builtin_function_common): Rename to...
7686 (build_builtin_function): ...this. Add a location parameter and use
7687 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7689 (add_builtin_function): Update accordingly, passing the returned
7690 decl to the lang hook.
7691 (add_builtin_function_ext_scope): Likewise
7692 (simulate_builtin_function_decl): New function.
7694 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7696 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7697 example, use actual names of supported offload targets.
7700 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7702 2019-10-28 Martin Sebor <msebor@redhat.com>
7704 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7705 (handle_store): Pass argument to get_addr_stridx.
7707 2019-10-28 Martin Sebor <msebor@redhat.com>
7709 PR tree-optimization/92226
7710 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7711 the offset is in the open range outlined by SI's length.
7713 2019-10-28 Martin Sebor <msebor@redhat.com>
7716 * doc/cpp.texi (__has_builtin): Document.
7717 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7719 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7722 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7723 doubleword and low doubleword result of multiplication on
7726 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7727 pure qualifier to the built-in.
7728 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7730 (struct mips_builtin_description): Add is_pure flag.
7731 (mips_init_builtins): Mark built-in as pure if the flag in the
7732 corresponding mips_builtin_description struct is set.
7734 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7735 alternative which covers the floating-point input value. Also
7736 forbid the split of insert.d pattern for floating-point values.
7738 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7740 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7741 * config/riscv/riscv-sr.c: New file.
7742 * config/riscv/riscv.c (riscv_reorg): New function.
7743 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7744 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7745 (riscv_remove_unneeded_save_restore_calls): Declare.
7746 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7748 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7750 PR tree-optimization/92163
7751 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7752 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7753 before calling bitmap_set_bit.
7754 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7755 delete_dead_or_redundant_assignment.
7756 (dse_dom_walker::dse_optimize_stmt): Likewise.
7757 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7759 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7762 * tree-vect-stmts.c (vectorizable_condition): Support
7763 EXTRACT_LAST_REDUCTION with fully-masked loops.
7765 2019-10-28 Richard Biener <rguenther@suse.de>
7767 PR tree-optimization/92252
7768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7769 STMT_VINFO_REDUC_IDX when swapping operands.
7771 2019-10-28 Richard Biener <rguenther@suse.de>
7773 PR tree-optimization/92241
7774 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7775 we failed to update the reduction index do not use the pattern
7776 stmts for the reduction chain.
7777 (vectorizable_reduction): When the reduction chain is corrupt,
7779 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7780 fail to update the reduction chain.
7782 2019-10-28 Richard Biener <rguenther@suse.de>
7784 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7785 STMT_VINFO_REDUC_IDX from the actual stmt.
7786 (vect_transform_reduction): Likewise.
7787 (vectorizable_reduction): Compute the reduction chain length,
7788 do not recompute the reduction operand index. Remove no longer
7789 necessary restriction for condition reduction chains.
7791 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7794 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7795 condition for V2DImode.
7797 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7799 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7800 Remove %k operand modifier.
7801 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7803 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7805 PR rtl-optimization/92007
7806 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7807 call it after reload if hot/cold partitioning has been done.
7808 (class pass_postreload_jump): Rename to
7809 pass_jump_after_combine.
7810 (make_pass_postreload_jump): Rename to
7811 make_pass_jump_after_combine.
7812 * passes.def(pass_postreload_jump): Move before reload, rename
7813 to pass_jump_after_combine.
7814 * tree-pass.h (make_pass_postreload_jump): Rename to
7815 make_pass_jump_after_combine.
7817 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7820 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7821 for missing EDGE_REF
7822 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7824 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7826 PR tree-optimization/88760
7827 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7828 Enable -funroll-loops for -O2 and above.
7829 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7830 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7831 do not turn on web and rngreg implicitly, if the unroller is not
7834 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7836 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7839 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7841 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7842 * cgraph.h (cgraph_node::rtl_info): Likewise.
7844 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7846 * ipa-cp.c (propagate_constants_across_call): If args are not available
7847 just drop everything to varying.
7848 (find_aggregate_values_for_callers_subset): Watch for missing
7850 (find_more_scalar_values_for_callers_subs): Likewise.
7851 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7852 update_jump_functions_after_inlining, propagate_controlled_uses):
7853 Watch for missing summaries.
7854 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7856 (ipa_write_node_info): Watch for missing summaries.
7857 (ipa_read_edge_info): Create new ref.
7858 (ipa_edge_args_sum_t): Add remove.
7859 (IPA_EDGE_REF_GET_CREATE): New macro.
7860 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7862 (remap_edge_change_prob): Likewise.
7864 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7866 * ipa-inline-transform.c (inline_call): update function summaries
7867 after expanidng thunk.
7869 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7871 * ipa-icf.c (sem_function::merge): Update function summaries.
7872 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7874 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7876 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7877 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7878 operand already has scalar mode.
7879 (iptr): Remove SF/DF.
7881 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7884 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7885 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7888 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7890 * config/i386/sse.md
7891 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7892 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7893 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7894 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7895 <sse>_vmmaskcmp<mode>3):
7896 Change predicates from vector_operand to nonimmediate_operand,
7897 constraints xBm to xm, since scalar operations don't need
7898 memory address alignment.
7899 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7900 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7901 round_saeonly_nimm_predicate with
7902 round_saeonly_nimm_scalar_predicate.
7903 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7904 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7905 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7906 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7907 avx512f_vmfmadd_<mode>_mask3<round_name>,
7908 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7909 *avx512f_vmfmsub_<mode>_mask<round_name>,
7910 avx512f_vmfmsub_<mode>_mask3<round_name>,
7911 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7912 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7913 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7914 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7915 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7916 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7917 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7918 cvtusi2<ssescalarmodesuffix>32<round_name>,
7919 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7920 round_nimm_predicate with round_nimm_scalr_predicate.
7921 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7922 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7923 avx512er_vmrcp28<mode><round_saeonly_name>,
7924 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7925 ): Replace round_saeonly_nimm_predicate with
7926 round_saeonly_nimm_scalar_predicate.
7927 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7928 vector_operand with nonimmediate_operand.
7929 * config/i386/subst.md (round_scalar_nimm_predicate,
7930 round_saeonly_scalar_nimm_predicate): Replace
7931 vector_operand with nonimmediate_operand.
7933 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7936 * config/i386/i386.md (*rcpsf2_sse): Add
7937 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7938 (*rsqrtsf2_sse): Ditto.
7939 (*sqrt<mode>2_sse): Ditto.
7940 (sse4_1_round<mode>2): separate constraint vm, add
7941 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7942 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7944 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7946 (*sse_vmrsqrtv4sf2): Ditto.
7947 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7948 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7949 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7950 <iptr> pointer size modifier since vround support memory operand.
7952 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7955 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7958 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7959 Tobias Burnus <tobias@codesourcery.com>
7961 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7962 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7965 2019-10-25 Richard Biener <rguenther@suse.de>
7967 PR tree-optimization/92222
7968 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7969 (_slp_oprnd_info::second_pattern): Likewise.
7970 (_slp_oprnd_info::any_pattern): New.
7971 (vect_create_oprnd_info): Adjust.
7972 (vect_get_and_check_slp_defs): Compute whether any stmt is
7974 (vect_build_slp_tree_2): Avoid building up a node from scalars
7975 if any of the operand defs, not just the first, is in a pattern.
7977 2019-10-25 Richard Biener <rguenther@suse.de>
7979 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7980 swapping if we actually have to modify the IL on a shared stmt.
7981 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7982 because we no longer modify the IL.
7984 2019-10-25 Martin Liska <mliska@suse.cz>
7986 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7988 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7990 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7991 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7992 handled by vect_transform_reduction. Allow fully-masked loops
7993 to be used with reduction chains.
7994 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7995 operations in fully-masked loops.
7996 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7997 operations in fully-masked loops.
7999 2019-10-25 Richard Biener <rguenther@suse.de>
8001 * tree-vect-loop.c (vectorizable_reduction): Verify
8002 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8004 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8005 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8008 2019-10-24 Jakub Jelinek <jakub@redhat.com>
8010 * gimplify.h (omp_construct_selector_matches): Declare.
8011 * gimplify.c (struct gimplify_omp_ctx): Add code member.
8012 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8013 called function if needed for flag_openmp.
8014 (gimplify_scan_omp_clauses): Set ctx->code.
8015 (omp_construct_selector_matches): New function.
8016 * omp-general.h (omp_constructor_traits_to_codes,
8017 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8018 * omp-general.c (omp_constructor_traits_to_codes,
8019 omp_context_selector_matches, omp_resolve_declare_variant): New
8022 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8024 * config/rx/rx.c (rx_print_operand): Likewise.
8025 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8026 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8027 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8029 * genemit.c (emit_c_code): Likewise.
8030 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8032 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8034 * symbols-summary.h (fast_function_summary<T *, V>::release,
8035 fast_call_summary<T *, V>::release): Free m_vector.
8037 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8039 * cgraphunit.c (symbol_table::process_new_functions): Call
8040 ipa_free_size_summary.
8041 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8042 (devirtualization_time_bonus): Update.
8043 (ipcp_propagate_stage): Update.
8044 * ipa-fnsummary.c (ipa_size_summaries): New.
8045 (ipa_fn_summary_alloc): Alloc size summary.
8046 (dump_ipa_call_summary): Update.
8047 (ipa_dump_fn_summary): Update.
8048 (analyze_function_body): Update.
8049 (compute_fn_summary): Likewise.
8050 (ipa_get_stack_frame_offset): New function.
8051 (inline_update_callee_summaries): Do not update frame offsets.
8052 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8053 remove call and function summary.
8054 (ipa_update_overall_fn_summary): Update.
8055 (inline_read_section): Update.
8056 (ipa_fn_summary_write): Update.
8057 (ipa_free_fn_summary): Do not remove summaries.
8058 (ipa_free_size_summary): New.
8059 (release summary pass): Also run at WPA.
8060 * ipa-fnsummary.h (ipa_size_summary): Declare.
8061 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8062 estimated_self_stack_size.
8063 (ipa_size_summary_t): New type.
8064 (ipa_size_summaries): Declare.
8065 (ipa_free_size_summary): Declare.
8066 (ipa_get_stack_frame_offset): Declare.
8067 * ipa-icf.c (sem_function::merge): Update.
8068 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8069 (estimate_growth): Update.
8070 (growth_likely_positive): Update.
8071 (clone_inlined_nodes): Update.
8072 (inline_call): Update.
8073 * ipa-inline.c (caller_growth_limits): Update.
8074 (edge_badness): Update.
8075 (recursive_inlining): Update.
8076 (inline_small_functions): Update.
8077 (inline_to_all_callers_1): Update.
8078 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8080 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8082 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8083 (uavg<mode>3_ceil): ... This.
8084 (altivec_vavgs<VI_char>): Rename to...
8085 (avg<mode>3_ceil): ... This.
8086 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8087 VAVGUW, VAVGSW): Adjust.
8089 2019-10-24 Nathan Sidwell <nathan@acm.org>
8091 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8093 2019-10-24 Martin Liska <mliska@suse.cz>
8095 * symbol-summary.h (gt_pch_nx): Mark all functions
8096 with gcc_unreachable as we do not expect to be called.
8098 2019-10-24 Richard Biener <rguenther@suse.de>
8100 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8101 chains try harder with operand swapping and instead of
8102 putting a shifted chain into the reduction operands put
8103 a repetition of the final reduction op there as if we'd
8104 reassociate the expression.
8106 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8108 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8109 statics_not_read and statics_not_written to statics_read and
8110 statics_written respectively.
8111 (no_module_statics): New static var.
8112 (ipa_reference_get_not_read_global): Rename to ...
8113 (ipa_reference_get_read_global): ... this.
8114 (ipa_reference_get_not_written_global): Rename to ...
8115 (ipa_reference_get_written_global): ... this.
8116 (dump_static_vars_set_to_file): Dump no_module_statics.
8117 (copy_static_var_set): Add for propagation parameter.
8118 (ipa_init): Initialize no_module_statics.
8119 (ipa_ref_opt_summary_t::duplicate): Update.
8120 (ipa_ref_opt_summary_t::remove): Update.
8121 (propagate): Update.
8122 (write_node_summary_p): Look correctly for bitmap differences.
8123 (ipa_reference_write_optimization_summary): Update.
8124 (ipa_reference_read_optimization_summary): Update.
8126 (ipa_reference_get_not_read_global): Rename to ...
8127 (ipa_reference_get_read_global): ... this.
8128 (ipa_reference_get_not_written_global): Rename to ...
8129 (ipa_reference_get_written_global): ... this.
8130 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8131 (call_may_clobber_ref_p_1): Update.
8133 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8135 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8137 (msp430_hard_regno_nregs_with_padding): Remove.
8139 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8141 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8142 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8143 shift amount is between 1 and 4.
8144 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8147 2019-10-24 Richard Biener <rguenther@suse.de>
8149 PR tree-optimization/92205
8150 * tree-vect-loop.c (vectorizable_reduction): Restrict
8151 search for alternate vectype_in to lane-reducing patterns
8154 2019-10-24 Richard Biener <rguenther@suse.de>
8156 PR tree-optimization/92203
8157 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8158 Skip eliminating conversion stmts inserted by insertion.
8160 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8162 * config/s390/s390.c (s390_get_thread_pointer): Use
8163 gen_get_thread_pointer.
8164 (s390_expand_split_stack_prologue): Likewise.
8165 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8166 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8167 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8168 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8171 2019-10-24 Richard Biener <rguenther@suse.de>
8173 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8174 SLP discovery fails try to handle the reduction as part
8175 of SLP reduction discovery.
8177 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8179 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8181 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8182 attribute if it exists, rather than the insn size. If we use the
8183 insn size, adjust the size to remove the extra size that prefixed
8185 (rs6000_adjust_insn_length): New function.
8186 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8187 update the instruction sized if prefixed instructions are used.
8188 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8189 (non_prefixed_length attribute): Delete.
8190 (num_insns attribute): New insn attribute to return the number of
8192 (max_prefixed_insns attribute): New insn attribute to return the
8193 maximum number of prefixed instructions in an insn.
8194 (length attribute): Do not adjust for prefix instructions here,
8195 punt to ADJUST_INSN_LENGTH.
8196 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8197 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8198 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8199 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8200 max_prefixed_insns and num_insns.
8202 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8203 (movtd_64bit_nodm): Reformat.
8204 (mov<mode>_32bit): Reformat.
8205 (mov<mode>_softfloat): Reformat.
8206 (FMOVE128_GPR splitter): Reformat.
8207 (DIFD splitter): Reformat.
8208 (TI2 splitter): Reformat.
8209 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8210 bits of the offset for the memory address are non-zero, use PLWA
8211 if prefixed instructions are available.
8213 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8215 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8217 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8219 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8222 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8224 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8225 (cmp_symbol_files): New.
8226 (lto_output): Copy sections in file order.
8227 * lto-streamer.h (lto_file_decl_data): Add field order.
8229 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8231 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8232 * ipa-reference.c (reference_vars_map_t): new type.
8233 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8234 (ipa_reference_var_uid): Implement.
8235 (varpool_node_hooks): New static var.
8236 (varpool_removal_hook): New function.
8237 (is_improper): Do not check bitmap for id==-1
8238 (get_static_name): Update.
8239 (ipa_init): Initialize new datastructures.
8240 (analyze_function): Do not recompute ids.
8241 (propagate): Free reference_vars_to_consider.
8242 (stream_out_bitmap): Update.
8243 (ipa_reference_read_optimization_summary): Update.
8245 2019-10-23 qing zhao <qing.zhao@oracle.com>
8247 PR gcov-profile/91971
8248 * coverage.c (coverage_init): Mangle the full path of filename when
8249 filename is a absolute path.
8251 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8253 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8254 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8255 (msp430_has_hwmult): New.
8256 (msp430_output_labelref):
8257 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8258 * config/msp430/msp430.md (mulhisi3): Likewise.
8259 (umulhisi3): Likewise.
8260 (mulsidi3): Likewise.
8261 (umulsidi3): Likewise.
8263 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8266 * params.def (inline-heuristics-hint-percent): Set to 600.
8268 2019-10-23 Richard Biener <rguenther@suse.de>
8270 PR tree-optimization/65930
8271 * tree-vect-loop.c (check_reduction_path): Allow conversions
8272 that only change the sign.
8273 (vectorizable_reduction): Relax latch def stmts we handle further.
8275 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8278 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8279 (remove_unused_ivs): Use it instead of get_computation_at. When
8280 choosing best candidate, only consider candidates where
8281 get_debug_computation_at actually returns non-NULL.
8283 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8285 PR tree-optimization/92131
8286 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8287 range would be symbolic, drop to varying for any explicit overflow
8288 in the constant part or if neither range is a singleton.
8290 2019-10-23 Martin Liska <mliska@suse.cz>
8293 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8296 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8298 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8299 int_mode_for_mode rather than mode_for_int_vector for scalars.
8301 2019-10-23 Richard Biener <rguenther@suse.de>
8303 PR tree-optimization/92179
8304 * tree-vect-stmts.c (vectorizable_shift): For shift args
8305 that are all the same remove type restriction in the SLP case.
8306 Adjust SLP code to handle converting of the shift arg to
8307 only apply in case the modes are different.
8309 2019-10-23 Martin Liska <mliska@suse.cz>
8312 * ipa-inline.c (recursive_inlining): Do not print
8313 when curr->count is not initialized.
8315 2019-10-23 Richard Biener <rguenther@suse.de>
8317 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8318 op from scalars in case there's a constant operand in its
8321 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8323 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8324 against out of range max skip or log values.
8326 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8328 * cgraph.c (dump_graphviz): Change name to dump_name
8330 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8332 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8333 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8334 subtraction from a carry operation.
8336 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8338 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8340 2019-10-22 Richard Biener <rguenther@suse.de>
8342 PR tree-optimization/92173
8343 * tree-vect-loop.c (vectorizable_reduction): If
8344 vect_transform_reduction cannot handle code-generation try without
8345 the single-def-use-cycle optimization. Pass optab_vector to
8346 optab_for_tree_code to get vector shifts as that's what we'd
8349 2019-10-22 Michael Matz <matz@suse.de>
8352 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8353 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8354 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8356 2019-10-22 Richard Biener <rguenther@suse.de>
8358 PR tree-optimization/92173
8359 * tree-vect-loop.c (vectorizable_reduction): If
8360 vect_transform_reduction cannot handle code-generation try without
8361 the single-def-use-cycle optimization. Pass optab_vector to
8362 optab_for_tree_code to get vector shifts as that's what we'd
8365 2019-10-22 Martin Liska <mliska@suse.cz>
8367 * diagnostic-format-json.cc (json_from_expanded_location):
8368 Use json::integer_number.
8369 * gcov.c (output_intermediate_json_line): Use new
8370 json::integer_number.
8371 (output_json_intermediate_file): Likewise.
8372 * json.cc (number::print): Move to ...
8373 (float_number::print): ... this.
8374 (integer_number::print): New.
8375 (test_writing_numbers): Move to ...
8376 (test_writing_float_numbers): ... this.
8377 (test_writing_integer_numbers): New.
8378 (json_cc_tests): Register test_writing_integer_numbers.
8379 * json.h (class value): Add forward declaration
8380 for float_number and integer_number.
8381 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8382 (class number): Move to ...
8383 (class float_number): ... this.
8384 (class integer_number): New.
8385 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8386 Use json::integer_number.
8387 (optrecord_json_writer::location_to_json): Likewise.
8388 (optrecord_json_writer::profile_count_to_json): Likewise.
8389 (optrecord_json_writer::pass_to_json): Likewise.
8391 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8393 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8394 autodetected_vector_size rather than vector_size is zero.
8395 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8396 Set autodetected_vector_size immediately after calling
8397 vect_analyze_loop_2. Check for a fatal error before advancing
8400 2019-10-21 Jason Merrill <jason@redhat.com>
8402 * lock-and-run.sh: Check for process existence rather than timeout.
8404 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8406 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8407 widening multiplication.
8409 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8411 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8412 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8414 (subsi3_carryin_shift): Separate into register and constant controlled
8415 alternatives. Use shift_amount_operand for operand 4. Set shift
8416 attribute and simplify type attribute.
8417 (subsi3_carryin_shift_alt): Likewise.
8418 (rsbsi3_carryin_shift): Likewise.
8419 (rsbsi3_carryin_shift_alt): Likewise.
8420 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8421 and register controlled shifts into distinct alternatives.
8422 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8423 (andsi_not_shiftsi_si_scc): Likewise.
8424 (arm_cmpsi_negshiftsi_si): Likewise.
8425 (not_shiftsi): Remove redundant M constraint from alternative 1.
8426 (not_shiftsi_compare0): Likewise.
8427 (arm_cmpsi_insn): Remove redundant alternative 2.
8428 (cmpsi_shift_swp): Likewise.
8429 (sub_shiftsi): Likewise.
8430 (sub_shiftsi_compare0_scratch): Likewise.
8431 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8432 (thumb2_cmpsi_neg_shiftsi): Likewise.
8434 2019-10-21 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/92162
8437 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8438 STMT_VINFO_REDUC_IDX in reduc_info.
8439 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8441 2019-10-21 Richard Biener <rguenther@suse.de>
8443 * tree-vectorizer.h (_slp_tree::ops): New member.
8444 (SLP_TREE_SCALAR_OPS): New.
8445 (vect_get_slp_defs): Adjust prototype.
8446 * tree-vect-slp.c (vect_free_slp_tree): Release
8447 SLP_TREE_SCALAR_OPS.
8448 (vect_create_new_slp_node): Initialize it. New overload for
8449 initializing by an operands array.
8450 (_slp_oprnd_info::ops): New member.
8451 (vect_create_oprnd_info): Initialize it.
8452 (vect_free_oprnd_info): Release it.
8453 (vect_get_and_check_slp_defs): Populate the operands array.
8454 Do not swap operands in the IL when not necessary.
8455 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8456 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8457 swap operands in the operands array. Do not swap operands in
8459 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8460 (vect_gather_slp_loads): Fix.
8461 (vect_detect_hybrid_slp_stmts): Likewise.
8462 (vect_slp_analyze_node_operations_1): Search for a internal
8463 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8464 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8465 the def-type push/pop dance.
8466 (vect_get_constant_vectors): Compute number_of_vectors here.
8467 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8468 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8469 (vect_get_slp_defs): Simplify greatly.
8470 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8471 (vect_transform_reduction): Likewise.
8472 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8473 (vectorizable_call): Likewise.
8474 (vectorizable_operation): Likewise.
8475 (vectorizable_load): Likewise.
8476 (vectorizable_condition): Likewise.
8477 (vectorizable_comparison): Likewise.
8479 2019-10-21 Richard Biener <rguenther@suse.de>
8481 PR tree-optimization/92161
8482 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8485 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8487 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8488 (aarch64_rndr): New define_insn.
8489 (aarch64_rndrrs): Likewise.
8490 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8491 (TARGET_RNG): Likewise.
8492 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8494 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8495 Add fourth argument in prototype.
8496 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8497 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8498 (aarch64_init_rng_builtins): Define.
8499 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8500 (aarch64_expand_rng_builtin): Define.
8501 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8503 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8504 __ARM_FEATURE_RNG when TARGET_RNG.
8505 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8507 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8509 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8510 alignment is more restrictive.
8512 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8514 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8515 (vect_update_max_nunits): Update comment.
8516 (current_vector_size): Delete.
8517 * tree-vect-stmts.c (current_vector_size): Likewise.
8518 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8519 of current_vector_size.
8520 (get_mask_type_for_scalar_type): Likewise.
8521 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8522 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8523 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8524 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8525 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8526 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8528 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8530 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8531 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8532 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8535 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8537 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8538 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8539 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8541 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8543 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8545 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8547 (vect_set_loop_condition_masked): Update call accordingly.
8549 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8551 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8552 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8553 (simple_integer_narrowing): Update call accordingly.
8554 (vectorizable_conversion): Likewise.
8556 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8558 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8559 (vectorizable_call): Update call accordingly.
8561 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8563 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8564 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8565 (duplicate_and_interleave): Update call accordingly.
8566 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8568 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8570 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8571 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8572 (vect_get_constant_vectors): Update call accordingly.
8573 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8575 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8577 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8578 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8579 (vect_prologue_cost_for_slp_op): Update call accordingly.
8580 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8581 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8582 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8583 (get_mask_type_for_scalar_type): Likewise.
8584 (vect_get_vector_types_for_stmt): Likewise.
8585 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8586 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8587 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8588 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8589 (vect_split_statement, vect_convert_input): Likewise.
8590 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8591 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8592 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8593 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8594 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8595 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8596 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8597 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8598 (vect_recog_mask_conversion_pattern): Likewise.
8599 (vect_add_conversion_to_pattern): Likewise.
8600 (vect_recog_gather_scatter_pattern): Likewise.
8601 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8602 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8604 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8606 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8607 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8608 (vect_check_load_store_mask): Update call accordingly.
8609 (vect_get_mask_type_for_stmt): Likewise.
8610 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8611 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8612 (vect_convert_mask_for_vectype): Likewise.
8614 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8616 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8618 (vect_recog_dot_prod_pattern): Update call accordingly.
8619 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8620 (vect_recog_widen_sum_pattern): Likewise.
8622 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8624 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8625 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8626 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8629 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8631 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8632 get_vectype_for_scalar_type_and_size instead of
8633 get_vectype_for_scalar_type.
8635 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8637 * common.opt (-fcommon): Fix description.
8639 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8641 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8642 * config/i386/i386.c (ix86_pre_reload_split): New function.
8643 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8644 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8645 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8646 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8647 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8648 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8649 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8650 *<shift_insn><dwi>3_doubleword_mask,
8651 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8652 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8653 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8654 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8655 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8656 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8657 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8658 *avx2_<code>v8qiv8si2<mask_name>_2,
8659 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8660 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8661 *avx512f_<code>v8qiv8di2<mask_name>_2,
8662 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8663 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8664 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8665 sse4_2_pcmpistr): Likewise.
8667 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8669 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8670 now defaults to https.
8672 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8674 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8675 skip non-zero array accesses.
8677 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8679 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8680 and return a boolean success value. Move the allocation and
8681 initialization of the bb_vec_info to...
8682 (vect_slp_bb_region): ...here. Update call accordingly.
8683 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8684 than in vect_slp_analyze_bb_1.
8686 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8688 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8689 when processing the given datarefs for the first time and
8690 check_datarefs subsequently.
8691 (vect_slp_bb_region): New function, split out of...
8692 (vect_slp_bb): ...here. Don't recompute the region bounds and
8693 dataref sets when retrying with a different vector size.
8695 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8696 Uroš Bizjak <ubizjak@gmail.com>
8699 * config/i386/predicates.md (int_nonimmediate_operand): New special
8701 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8702 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8703 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8704 define_insn_and_split patterns.
8706 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8708 * config/rs6000/rs6000.md: Delete out--of-date comment about
8709 special-casing integer loads.
8711 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8713 * escaped_string.h (escaped_string): New header.
8714 * tree.c (escaped_string): Remove escaped_string class.
8716 2019-10-18 Martin Sebor <msebor@redhat.com>
8718 PR tree-optimization/92157
8719 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8720 compute_string_length to return a negative result.
8722 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8724 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8725 (negvsi3, negvdi3): Delete.
8726 (negdi2_compare): Delete.
8728 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8730 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8732 (subdi3_compare1): Delete pattern.
8733 (subvsi3_borrow): New insn pattern.
8734 (subvsi3_borrow_imm): Likewise.
8736 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8738 * config/arm/arm.md (subv<mode>4): Delete.
8739 (subvdi4): New expander pattern.
8740 (subvsi4): Likewise. Handle some immediate values.
8741 (subvsi3_intmin): New insn pattern.
8742 (subvsi3): Likewise.
8743 (subvsi3_imm1): Likewise.
8744 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8747 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8749 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8750 incoming operands. Early split the calculation into SImode
8752 (usubvsi3_borrow): New insn pattern.
8753 (usubvsi3_borrow_imm): Likewise.
8755 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8757 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8758 (usubvsi4): New pattern. Allow some immediate values for inputs.
8759 (usubvdi4): New pattern.
8761 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8763 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8764 or second operand of the PLUS inside a DImode equality test to be
8765 sign-extend when selecting CC_Vmode.
8766 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8768 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8770 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8771 (addsi3_cin_vout_0): Likewise.
8772 (adddi3_compareV): Delete.
8774 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8776 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8777 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8778 to transform this back into the summation version when that leads
8781 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8783 * config/arm/arm.md (addv<mode>4): Delete.
8784 (addvsi4): New pattern. Handle immediate values that the architecture
8786 (addvdi4): New pattern.
8787 (addsi3_compareV): Rename to ...
8788 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8789 and use COMPARE rather than NE.
8790 (addsi3_compareV_imm): New pattern.
8791 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8792 a signed-overflow check.
8794 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8796 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8797 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8799 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8800 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8802 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8804 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8805 (addsi3_cin_cout_imm_insn): Likewise.
8806 (adddi3_compareC): Delete insn.
8807 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8809 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8811 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8812 * (uaddv<mode>4): Delete expansion pattern.
8813 (uaddvsi4): New pattern.
8814 (uaddvdi4): Likewise.
8815 (addsi3_compareC): Delete pattern, change callers to use
8817 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8818 reduce the number of alternatives and re-work type attribute handling.
8819 (addsi3_compare_op2): Clean up constraints to reduce the number of
8820 alternatives and re-work type attribute handling.
8821 (compare_addsi2_op0): Likewise.
8822 (compare_addsi2_op1): Likewise.
8824 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8826 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8827 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8828 for DImode operands.
8829 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8830 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8832 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8833 (arm_cmpdi_unsigned): Delete.
8835 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8837 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8838 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8839 unchanged only if that will be cheaper.
8840 (arm_select_cc_mode): Recognize a swapped comparison that will
8841 be regenerated using RSBS or RSCS. Relax restriction on selecting
8843 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8845 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8847 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8849 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8850 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8852 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8854 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8855 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8857 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8858 of EQ, NE, LT, GE, LTU and GEU.
8859 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8860 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8861 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8862 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8863 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8865 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8867 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8869 (cstoredi4): Similarly, but for operand 3.
8870 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8871 canonicalization of unsigned compares with a constant on Arm.
8872 Prefer using const+1 and adjusting the comparison over swapping the
8873 operands whenever the original constant was not valid.
8874 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8876 (arm_validize_comparison): Do not force invalid DImode operands to
8879 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8881 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8882 return CC_Zmode if comparing against a constant where one word is
8884 (arm_gen_compare_reg): Split DImode handling to ...
8885 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8886 against simple constants.
8887 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8889 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8891 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8892 (rsbsi3_carryin_shift_alt): Likewise.
8894 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8896 * config/arm/arm.md (negscc_borrow): New pattern.
8897 (mov_negscc): Don't split if the insn would match negscc_borrow.
8898 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8899 (thumb2_mov_negscc_strict_it): Likewise.
8901 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8903 * config/arm/arm.c (arm_insn_cost): New function.
8904 (TARGET_INSN_COST): Override default definition.
8906 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8908 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8911 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8913 * config/arm/arm.c (strip_carry_operation): New function.
8914 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8917 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8919 * config/arm/predicates.md (arm_carry_operation): New special
8921 * config/arm/iterators.md (LTUGEU): Delete iterator.
8922 (cnb): Delete code attribute.
8923 (optab): Delete ltu and geu elements.
8924 * config/arm/arm.md (addsi3_carryin): Renamed from
8925 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8926 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8927 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8928 (addsi3_carryin_clobercc): Similarly.
8929 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8932 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8934 * config/arm/arm.md (arm_subdi3): Delete insn.
8935 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8937 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8939 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8940 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8941 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8943 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8944 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8946 (subdi3): Rewrite to early-expand the sub-operations.
8947 (rsb_im_compare): New pattern.
8949 (negdi2_insn): Delete.
8950 (arm_negsi2): Correct type attribute to alu_imm.
8951 (negsi2_0compare): New insn pattern.
8952 (negsi2_carryin): New insn pattern.
8954 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8956 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8959 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8961 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8962 to match canonical form.
8964 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8966 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8967 (extend<mode>di2): Likewise.
8969 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8971 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8972 * config/arm/arm.c (arm_decompose_di_binop): New function.
8973 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8974 If not generating Thumb-1 code, decompose the operation into 32-bit
8976 * add0si_carryin_<optab>: New pattern.
8978 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8980 * arm.md (adddi3): Only accept register operands.
8981 (arm_adddi3): Convert to simple insn with no split. Do not accept
8983 (adddi_sesidi_di): Delete patern.
8984 (adddi_zesidi_di): Likewise.
8985 (uaddv<mode>4): Use LTU as condition for branch.
8986 (adddi3_compareV): Convert to simple insn with no split.
8987 (addsi3_compareV_upper): Delete pattern.
8988 (adddi3_compareC): Convert to simple insn with no split. Correct
8989 flags setting expression.
8990 (addsi3_compareC_upper): Delete pattern.
8991 (addsi3_compareC): Correct flags setting expression.
8992 (subdi3_compare1): Convert to simple insn with no split.
8993 (subsi3_carryin_compare): Delete pattern.
8994 (arm_subdi3): Convert to simple insn with no split.
8995 (subdi_zesidi): Delete pattern.
8996 (subdi_di_sesidi): Delete pattern.
8997 (subdi_zesidi_di): Delete pattern.
8998 (subdi_sesidi_di): Delete pattern.
8999 (subdi_zesidi_zesidi): Delete pattern.
9000 (negvdi3): Use s_register_operand.
9001 (negdi2_compare): Convert to simple insn with no split.
9002 (negdi2_insn): Likewise.
9003 (negsi2_carryin_compare): Delete pattern.
9004 (negdi_zero_extendsidi): Delete pattern.
9005 (arm_cmpdi_insn): Convert to simple insn with no split.
9006 (negdi2): Don't call gen_negdi2_neon.
9007 * config/arm/neon.md (adddi3_neon): Delete pattern.
9008 (subdi3_neon): Delete pattern.
9009 (negdi2_neon): Delete pattern.
9010 (splits for negdi2_neon): Delete splits.
9012 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9015 * ggc-page.c (release_pages): Read g->alloc_size before free rather
9018 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
9020 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9021 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9022 new multilib variants and new mappings.
9024 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9027 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9029 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9030 Richard Sandiford <richard.sandiford@arm.com>
9033 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9034 and define hashmap traits for it.
9035 (loop_vec_info::scalar_cond_masked_set): New member.
9036 (vect_record_loop_mask): Adjust prototype.
9037 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9039 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9040 vect_record_loop_mask.
9041 (vectorizable_live_operation): Likewise.
9042 (vect_record_loop_mask): New param scalar_mask. Add entry
9043 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9044 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9045 Pass it as last arg to vect_record_loop_mask.
9046 (vectorizable_call): Pass scalar_mask as last arg to
9047 vect_record_loop_mask.
9048 (vectorizable_store): Likewise.
9049 (vectorizable_load): Likewise.
9050 (vectorizable_condition): Check if another part of vectorized code
9051 applies loop_mask to condition or to it's inverse, and if yes,
9052 apply loop_mask to result of vector comparison.
9054 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9056 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9058 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9060 PR tree-optimization/92056
9061 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9062 before calling compute_builtin_object_size.
9064 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9067 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9068 (movdi_low_st): Delete.
9069 * config/rs6000/rs6000.c
9070 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9071 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9072 * config/rs6000/rs6000.md (movsi_low): Delete.
9074 2019-10-17 Jason Merrill <jason@redhat.com>
9076 * gimplify.h (get_initialized_tmp_var): Add default argument to
9078 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9079 NULL post_p argument.
9080 * targhooks (std_gimplify_va_arg_expr): Likewise.
9082 2019-10-17 Richard Biener <rguenther@suse.de>
9084 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9085 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9086 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9087 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9088 * tree-vect-loop.c (vect_is_simple_reduction): Set
9089 STMT_VINFO_REDUC_CODE.
9090 (vectorizable_reduction): Remove dead and redundant code, use
9091 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9093 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9095 Fix breakage introduced by r276985.
9097 * config/avr/avr.c (avr_option_override): Remove set of
9098 PARAM_ALLOW_STORE_DATA_RACES.
9099 * common/config/avr/avr-common.c (avr_option_optimization_table)
9100 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9102 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9104 * config/i386/i386.h (processor_costs): Add clear_ratio.
9105 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9106 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9107 of 6 and move_ratio in all cost models.
9109 2019-10-17 Richard Biener <rguenther@suse.de>
9111 * tree-vect-loop.c (check_reduction_path): Compute reduction
9113 (vect_is_simple_reduction): Remove special-case of single-stmt
9114 reduction path detection.
9116 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9118 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9120 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9122 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9123 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9124 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9125 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9126 New combine patterns.
9127 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9129 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9131 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9133 * tree-vrp.c (value_range_base::dump): Display +INF for both
9134 pointers and integers when appropriate.
9136 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9138 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9139 when to use versioning threshold.
9141 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9143 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9144 outlined code from ...
9145 (vect_analyze_loop_2): ... here.
9147 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9149 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9150 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9151 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9153 2019-10-17 Richard Biener <rguenther@suse.de>
9155 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9156 (vect_is_simple_reduction): Move all validity checks ...
9157 (vectorizable_reduction): ... here. Compute whether we
9158 need a fold-left reduction here.
9159 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9160 both overloads, check needs_fold_left_reduction_p directly.
9161 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9163 2019-10-17 Richard Biener <rguenther@suse.de>
9165 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9166 TARGET_MEM_REF creation.
9168 2019-10-17 Richard Biener <rguenther@suse.de>
9170 PR tree-optimization/92129
9171 * tree-vect-loop.c (vectorizable_reduction): Also fail
9172 on GIMPLE_SINGLE_RHS.
9174 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9176 PR tree-optimization/92056
9177 * tree-object-size.c (cond_expr_object_size): Return early if then_
9178 processing resulted in unknown size.
9180 PR tree-optimization/92115
9181 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9182 temporary if it could trap.
9184 2019-10-17 Richard Biener <rguenther@suse.de>
9187 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9188 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9190 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9192 * tree-ssa-strlen.c (maybe_invalidate): Use
9193 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9195 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9196 Jim Wilson <jimw@sifive.com>
9198 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9199 regs to SIBCALL_REGS.
9200 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9201 passing regs to SIBCALL_REGS.
9203 2019-10-16 Martin Sebor <msebor@redhat.com>
9205 PR tree-optimization/83821
9206 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9207 the length of a string when available.
9208 (handle_builtin_memset) Add argument.
9209 (handle_store, strlen_check_and_optimize_call): Same.
9210 (check_and_optimize_stmt): Same. Pass it to callees.
9212 2019-10-16 Martin Sebor <msebor@redhat.com>
9214 PR tree-optimization/91996
9215 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9217 (compare_nonzero_chars): Add an overload.
9218 (count_nonzero_bytes): Add an argument. Call overload above.
9219 Handle non-constant lengths in some range.
9220 (handle_store): Add an argument.
9221 (check_and_optimize_stmt): Pass an argument to handle_store.
9223 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9225 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9227 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9229 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9230 operands which correspond to the same input-output register to
9231 have the same pseudo assigned to them.
9233 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9235 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9237 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9239 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9240 Apply reasonable limit to symbol offsets.
9242 2019-10-16 Richard Biener <rguenther@suse.de>
9244 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9245 (vect_is_simple_reduction): Delay checking to
9246 vectorizable_reduction and relax the checking.
9247 (vectorizable_reduction): Check we have a simple use. Check
9248 for bogus condition reductions.
9249 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9250 are looking at the last stmt in a pattern sequence when
9251 filling in backedge PHI values.
9253 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9254 Jiufu Guo <guojiufu@linux.ibm.com>
9257 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9258 the callee explicitly disables some isa_flags the caller is using.
9260 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9262 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9264 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9266 * genmodes.c (mode_data::order): New field.
9267 (blank_mode): Update accordingly.
9268 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9269 (make_vector_modes): Likewise.
9270 (VECTOR_MODES): Update use accordingly.
9271 (cmp_modes): Sort by the new order field ahead of sorting by size.
9272 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9273 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9274 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9275 (aarch64_classify_vector_mode): Handle the new partial modes.
9276 (aarch64_vl_bytes): New function.
9277 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9278 when counting the number of registers in an SVE mode.
9279 (aarch64_class_max_nregs): Likewise.
9280 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9282 (aarch64_classify_address): Treat partial vectors analogously
9284 (aarch64_print_address_internal): Consolidate the printing of
9285 MUL VL addresses, using aarch64_vl_bytes as the number of
9286 bytes represented by "VL".
9287 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9289 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9291 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9292 rather than known_lt when choosing frame layouts.
9294 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9296 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9297 that all the adjustments add up to the full frame size.
9298 Use crtl->outgoing_args_size directly as the final adjustment
9301 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9303 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9304 "frame" reference instead of always referring directly to
9305 "cfun->machine->frame".
9307 2019-10-16 Richard Biener <rguenther@suse.de>
9309 PR tree-optimization/92119
9310 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9311 against missing bswap lhs.
9313 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9316 * poly-int.h (constant_lower_bound_with_limit): New function.
9317 (constant_upper_bound_with_limit): Likewise.
9318 * doc/poly-int.texi: Document them.
9319 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9320 into the worst-case INTEGER_CST bounds.
9322 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9325 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9326 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9327 * ipa-predicat.h (struct expr_eval_op): New struct.
9328 (expr_eval_ops): New typedef.
9329 (struct condition): Add type and param_ops fields, remove size field.
9330 (add_condition): Replace size parameter with type parameter, add
9331 param_ops parameter.
9332 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9333 (predicate::add_clause): Add comparisons on type and param_ops.
9334 (dump_condition): Add debug dump for param_ops.
9335 (remap_after_inlining): Adjust call arguments to add_condition.
9336 (add_condition): Replace size parameter with type parameter, add
9337 param_ops parameter. Unshare constant value used in conditions.
9338 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9339 parameter expressions using param_ops.
9340 (decompose_param_expr): New function.
9341 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9342 to replace call to unmodified_parm_or_parm_agg_item.
9343 (set_switch_stmt_execution_predicate): Likewise.
9344 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9346 (inline_read_section): Read param_ops from summary stream.
9347 (ipa_fn_summary_write): Write param_ops to summary stream.
9349 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9351 PR rtl-optimization/92107
9352 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9355 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9357 * config/darwin.c: Update description of fix and continue.
9359 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9361 * config/darwin.c (darwin_binds_local_p): Update to call
9362 default_binds_local_p_3 () directly. amend comments.
9364 2019-10-15 Richard Biener <rguenther@suse.de>
9366 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9367 (tree_is_indexable): Use it.
9368 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9369 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9370 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9372 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9374 * config/msp430/msp430.md (zero_extendqipsi2): New.
9375 (zero_extendqisi2): Optimize case where src register and base dst
9376 register are the same.
9377 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9378 (zero_extendpsisi2): Optimize r->m case.
9379 Add unnamed insn patterns to catch insns combine searches for when
9380 optimizing pointer manipulation.
9382 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9384 * config/msp430/msp430.md: Group zero_extend* insns together.
9386 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9388 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9390 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9392 (msp430_subreg): Likewise.
9393 (msp430_split_addsi): Likewise.
9394 (msp430_print_operand_addr): Likewise.
9395 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9396 (USE_STORE_POST_INCREMENT): Define.
9397 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9398 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9399 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9400 (msp430_general_dst_operand): New.
9401 (msp430_general_dst_nonv_operand): New.
9402 (msp430_nonsubreg_operand): Remove.
9403 (msp430_nonsubreg_dst_operand): New.
9404 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9405 of defunct msp430_nonsubreg_operand.
9406 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9408 2019-10-15 Richard Biener <rguenther@suse.de>
9410 PR tree-optimization/91929
9411 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9412 (get_or_alloc_expr_for_name): Initialize it.
9413 (get_or_alloc_expr_for_constant): Likewise.
9414 (phi_translate_1): Copy it.
9415 (create_expression_by_pieces): Use the original location
9416 of the expression for the inserted stmt.
9417 (compute_avail): Record the location of the stmt for the
9418 expressions created.
9420 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9422 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9423 before using tree_to_uhwi.
9425 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9427 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9429 2019-10-15 Richard Biener <rguenther@suse.de>
9431 PR tree-optimization/92094
9432 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9433 do not adjust the reduction definition def type.
9434 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9435 defines the latch argument of the PHI.
9437 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9440 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9441 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9442 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9443 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9444 _mm_maskz_roundscale_round_sd): New intrinsics.
9445 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9446 __builtin_ia32_rndscales?_mask_round builtins instead of
9447 __builtin_ia32_rndscales?_round.
9448 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9449 __builtin_ia32_rndscalesd_round): Remove.
9450 (__builtin_ia32_rndscaless_mask_round,
9451 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9452 * config/i386/sse.md
9453 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9454 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9455 ... this, adjust and add subst atrributes to make it maskable.
9457 2019-10-15 Richard Biener <rguenther@suse.de>
9460 * common.opt (fallow-store-data-races): New.
9461 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9462 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9463 * doc/invoke.texi (fallow-store-data-races): Document.
9464 (--param allow-store-data-races): Remove docs.
9465 * opts.c (default_options_table): Enable -fallow-store-data-races
9467 (default_options_optimization): Do not enable --param
9468 allow-store-data-races at -Ofast.
9469 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9470 instead of PARAM_ALLOW_STORE_DATA_RACES.
9471 * tree-ssa-loop-im.c (execute_sm): Likewise.
9473 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9475 PR tree-optimization/92085
9476 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9477 instead of calling it unconditionally after
9478 delete_dead_or_redundant_assignment and fix indentation.
9480 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9482 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9484 (*fmsub<SDF:mode>4): Likewise.
9485 *fnmsub<SDF:mode>4): Likewise.
9486 (*fnmadd<SDF:mode>4): Likewise.
9488 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9490 * doc/tree-ssa.texi: Update renamed macro name.
9492 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9494 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9497 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9499 * config/darwin.c: Use unsigned ints for the picbase label
9500 counters, initialise the vars explicitly.
9501 (update_pic_label_number_if_needed): Move a variable declaration
9502 to where it's needed.
9503 (machopic_output_function_base_name): Use a more strict checking
9504 assert, and and unsigned int for the picbase label counter.
9505 (machopic_get_function_picbase): Likewise.
9507 2019-10-14 Richard Biener <rguenther@suse.de>
9510 * dse.c (scan_insn): Use param max_active_local_stores.
9511 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9512 based on optimization level.
9513 * loop-invariant.c (move_loop_invariants): Adjust
9514 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9515 * opts.c (default_options_optimization): Do not adjust
9516 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9517 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9519 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9521 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9523 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9525 * config/arm/arm.c (arm_option_override): Don't override sched
9528 2019-10-14 Richard Biener <rguenther@suse.de>
9530 PR tree-optimization/92069
9531 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9532 cycles do not set vect_nested_cycle on the latch definition.
9534 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9536 * function-abi.h (expr_callee_abi): Declare.
9537 * function-abi.cc (expr_callee_abi): New function.
9539 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9541 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9543 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9544 non-zero being represented as [1,MAX].
9546 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9548 * tree-sra.c (dump_access): Add missing braces.
9550 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9552 * config/darwin.c (machopic_indirection_name): Rework the
9553 function to emit linker-visible symbols only for indirections
9554 in the data section. Clean up the code and update comments.
9556 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9558 * config/darwin.c (machopic_indirect_data_reference): Remove
9561 2019-10-13 Nathan Sidwell <nathan@acm.org>
9563 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9565 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9567 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9570 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9572 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9573 so non-virutal are before virutals.
9574 (output_function): Avoid body modifications.
9576 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9578 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9579 %r22. Load function address before global pointer.
9580 (pa_attr_length_indirect_call): Adjust length of inline versions of
9582 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9583 before normal cases. Update inline $$dyncall sequences to preserve
9584 function descriptor address in register %r22.
9585 (TRAMPOLINE_CODE_SIZE): Adjust.
9586 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9587 register %r22 contains trampoline address.
9588 (pa_trampoline_init): Adjust offsets.
9589 (pa_trampoline_adjust_address): Likewise.
9590 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9592 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9595 * config/darwin.c (machopic_indirection): New field to flag
9596 non-lazy-symbol-pointers in the data section.
9597 (machopic_indirection_name): Compute if an indirection should
9598 appear in the data section.
9599 (machopic_output_data_section_indirection): New callback split
9600 from machopic_output_indirection.
9601 (machopic_output_stub_indirection): Likewise.
9602 (machopic_output_indirection): Retain the code for non-lazy
9603 symbol pointers in their regular section.
9604 (machopic_finish): Use the new callbacks to order the indirection
9607 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9609 * config/darwin-protos.h (machopic_finish): Delete.
9610 * config/darwin.c (machopic_finish): Make static.
9612 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9614 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9615 sections when building kernel extension code.
9617 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9619 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9622 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9624 * config/pa/pa.c (pa_option_override): Remove trailing comma
9627 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9630 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9631 <case VEC_COND_EXPR>: Return false with *handled = false.
9632 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9633 recursing on the first operand.
9634 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9635 instead of tree_could_trap_p.
9636 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9638 2019-10-11 Jim Wilson <jimw@sifive.com>
9640 PR rtl-optimization/91860
9641 * combine.c (subst): If new_rtx is a constant, also check for
9642 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9644 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9646 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9647 INTVAL when calling store_bit_field.
9649 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9651 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9654 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9656 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9657 vectorizable_live_operation.
9658 (vectorizable_live_operation): Adjust parameters.
9659 * tree-vect-stmts.c (vect_init_vector,
9660 vect_gen_widened_results_half): Fix typo in function comment.
9661 (can_vectorize_live_stmts): Adjust function comment.
9662 Adjust parameters. Adjust call to vectorizable_live_operation.
9663 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9664 (vect_transform_stmt): Adjust function comment. Adjust call to
9665 can_vectorize_live_stmts.
9666 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9668 2019-10-11 Richard Biener <rguenther@suse.de>
9670 PR tree-optimization/90883
9671 PR tree-optimization/91091
9672 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9673 alias-sets both for recording VN table entries and continuing
9674 walking after translating through copies. Handle same-sized
9675 reads from SSA names by returning the plain SSA name.
9676 (eliminate_dom_walker::eliminate_stmt): Properly handle
9677 non-size precision stores in redundant store elimination.
9679 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9681 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9682 (ggc_collect): Dump later to not interfere with release_page dump.
9683 (ggc_trim): New function.
9684 * ggc-none.c (ggc_trim): New.
9685 * ggc.h (ggc_trim): Declare.
9687 2019-10-11 Richard Biener <rguenther@suse.de>
9689 PR tree-optimization/92066
9690 PR tree-optimization/92046
9691 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9692 Fix bogus cost model check.
9694 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9696 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9697 (LANG_HOOKS_DECLS): Add it.
9698 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9699 update comment for omp_is_optional_argument.
9700 * omp-general.c (omp_is_allocatable_or_ptr): New.
9701 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9702 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9703 Fortran's optional arguments and allocatable/pointer scalars
9704 with use_device_addr.
9706 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9709 * config/s390/2827.md: Add new opcodes.
9710 * config/s390/2964.md: Likewise.
9711 * config/s390/3906.md: Likewise.
9712 * config/s390/8561.md: Likewise.
9713 * config/s390/s390-builtins.def (s390_vfchesb): Use
9714 the new vec_cmpgev4sf_quiet_nocc.
9715 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9716 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9717 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9718 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9719 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9720 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9721 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9722 * config/s390/s390-modes.def (CCSFPS): New mode.
9723 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9724 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9725 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9726 (s390_expand_vec_compare): Use non-signaling patterns where
9728 (s390_reverse_condition): Support CCSFPS.
9729 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9730 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9731 (asm_fcmp_op): Likewise.
9732 (*smaxv2df3_vx): Use pattern for quiet comparison.
9733 (*sminv2df3_vx): Likewise.
9734 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9735 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9736 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9737 (vec_cmplt<mode>_quiet_nocc): New expander.
9738 (vec_cmpge<mode>_quiet_nocc): New pattern.
9739 (vec_cmple<mode>_quiet_nocc): New expander.
9740 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9741 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9742 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9743 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9744 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9745 (vec_cmpungt<mode>): New expander.
9746 (vec_cmpunge<mode>): Likewise.
9747 (vec_cmpuneq<mode>): Use quiet patterns.
9748 (vec_cmpltgt<mode>): Allow only on z14+.
9749 (vec_cmpordered<mode>): Use quiet patterns.
9750 (vec_cmpunordered<mode>): Likewise.
9751 (VEC_CMP_EXPAND): Add ungt and unge.
9753 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9755 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9757 * lto-streamer-out.c: Include tree-dfa.h.
9758 (output_cfg): Do not use cfun.
9759 (lto_prepare_function_for_streaming): New.
9760 (output_function): Do not push cfun; do not initialize loop optimizer.
9761 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9762 * passes.c (ipa_write_summaries): Use it.
9763 (ipa_write_optimization_summaries): Do not modify bodies.
9764 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9765 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9766 * tree-ssa-dse.c (pass_dse::execute): Update use of
9767 renumber_gimple_stmt_uids.
9768 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9770 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9772 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9773 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9775 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9777 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9779 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9780 Also define DFP macros for these conditions.
9781 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9782 DEC128_SUBNORMAL_MIN): Do not define.
9783 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9784 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9786 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9787 Sandra Loosemore <sandra@codesourcery.com>
9790 * doc/lto.texi (IPA): Reference to the IPA passes.
9791 * doc/passes.texi (Pass manager): Add node IPA passes and
9792 description for each IPA pass.
9794 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9796 * ipa-reference.c: Do not include splay-tree.h
9797 (reference_vars_to_consider): Turn to hash map.
9798 (get_static_name, ipa_init, analyze_function, propagate,
9799 stream_out_bitmap, ipa_reference_write_optimization_summary,
9800 ipa_reference_write_optimization_summary): Update.
9802 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9804 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9806 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9808 * config/darwin.c: Lookup Objective C metadata and force indirection
9811 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9813 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9815 (mem_operand_gpr): Add check for prefixed addresses.
9816 (mem_operand_ds_form): Add check for prefixed addresses.
9817 (rs6000_legitimate_offset_address_p): If we support prefixed
9818 addresses, check for a 34-bit offset instead of 16-bit.
9819 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9820 Do not allow load/store with update if the address is prefixed.
9821 (rs6000_mode_dependent_address): If we support prefixed
9822 addresses, check for a 34-bit offset instead of 16-bit.
9824 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9827 * config/s390/vector.md (vcond_comparison_operator): New
9829 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9831 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9834 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9836 * configure.ac (--with-documentation-root-url): New option.
9837 * configure: Regenerate.
9838 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9839 option URL, add it as a new string field of the diagnostic option.
9840 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9841 (print_option_information): If get_option_url is non-NULL, call
9842 it, and if the result is non-NULL, potentially emit an escape
9843 sequence to markup the option text with the resulting URL.
9844 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9845 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9846 example of JSON output.
9847 * opts-diagnostic.h (get_option_url): New decl.
9848 * opts.c (get_option_url): New function.
9849 * toplev.c (general_init): Initialize the get_option_url callback.
9851 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9854 * common.opt (fdiagnostics-urls=): New option.
9855 (diagnostic-url.h): Add SourceInclude.
9856 (diagnostic_url_rule): New enum.
9857 * diagnostic-color.c: Include "diagnostic-url.h".
9858 (diagnostic_urls_enabled_p): New function.
9859 * diagnostic-url.h: New file.
9860 * diagnostic.c: Include "diagnostic-url.h".
9861 (diagnostic_urls_init): New function.
9862 * diagnostic.h (diagnostic_urls_init): New decl.
9863 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9864 -fdiagnostics-urls to the list.
9865 (-fdiagnostics-urls): New option.
9866 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9867 (driver::global_initializations): Call diagnostic_urls_init.
9868 * opts-global.c (init_options_once): Likewise.
9869 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9870 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9872 (pp_begin_url): New function.
9873 (pp_end_url): New function.
9874 (selftest::test_urls): New selftest.
9875 (selftest::pretty_print_c_tests): Call it.
9876 * pretty-print.h (pretty_printer::show_urls): New field.
9877 (pp_begin_url): New decl.
9878 (pp_end_url): New decl.
9880 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9883 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9885 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9888 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9889 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9890 also for TARGET_FPU_SH4_300.
9891 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9893 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9894 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9895 (*negsf2_i): Split into ...
9896 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9897 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9898 (**abssf2_i): Split into ...
9899 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9900 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9901 (*negdf2_i): Split into ...
9902 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9903 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9904 (**abssf2_i): Split into ...
9905 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9907 2019-10-10 Richard Biener <rguenther@suse.de>
9910 * opts.c (finish_options): Do not influence global --params
9911 from options that are adjustable per function.
9912 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9913 Apply --param adjustment based on active cost-model.
9914 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9915 further store-sinking when vectorization or if-conversion
9918 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9921 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9922 rather than ggc_alloc_cleared to alloc symbol table.
9923 * toplev.c (general_init): Likewise.
9924 * cgraph.h (symbol_table): Explicitly construct every field.
9926 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9928 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9930 * config.gcc: Add z15 as option for --with-arch and --with-tune
9932 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9933 error reporting for unsupported builtins.
9934 * config/s390/s390-opts.h (enum processor_type): Rename
9935 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9936 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9937 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9939 * config/s390/s390-builtins.def: Likewise.
9940 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9941 (s390_expand_builtin): Add missing check for unsupported builtins.
9942 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9943 (s390_rtx_costs): Likewise.
9944 (s390_get_sched_attrmask): Rename arch13 to z15.
9945 (s390_get_unit_mask): Likewise.
9946 (s390_is_fpd): Likewise.
9947 (s390_is_fxd): Likewise.
9948 * config/s390/s390.h (enum processor_flags): Likewise.
9949 * config/s390/s390.md: Likewise.
9950 * config/s390/vector.md: Likewise.
9951 * config/s390/vx-builtins.md: Likewise.
9952 * config/s390/s390.opt: Add z15 to processor_type value.
9954 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9957 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9959 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9960 ("split_stack_data", "split_stack_call")
9961 ("split_stack_call_<mode>", "split_stack_cond_call")
9962 ("split_stack_cond_call_<mode>"): Remove.
9963 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9965 * config/s390/s390.c (s390_output_split_stack_data): New function.
9966 (s390_expand_split_stack_prologue): Use the merged expander.
9968 2019-10-09 Martin Sebor <msebor@redhat.com>
9970 PR tree-optimization/90879
9971 * builtins.c (check_access): Avoid using maxbound when null.
9972 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9973 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9974 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9976 (get_range_strlen): Overwrite initial maxbound when non-null.
9977 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9979 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9980 (used_only_for_zero_equality): New function.
9981 (handle_builtin_memcmp): Call it.
9982 (determine_min_objsize): Return an integer instead of tree.
9983 (get_len_or_size, strxcmp_eqz_result): New functions.
9984 (maybe_warn_pointless_strcmp): New function.
9985 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9986 between a longer string and a smaller array.
9987 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9989 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9991 * config/darwin.c (darwin_override_options): Make the check for
9992 Objective-C ABI version more specific for 64bit code.
9994 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9996 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9997 indicate that the new symbol is an indirection.
9998 (machopic_indirect_call_target): Likewise.
9999 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10000 (MACHO_SYMBOL_INDIRECTION_P): New.
10001 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10003 2019-10-08 Jason Merrill <jason@redhat.com>
10005 * doc/invoke.texi: Document -fconcepts-ts.
10007 2019-10-09 Richard Biener <rguenther@suse.de>
10009 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10010 allow stmts other than GIMPLE_ASSIGN in nested cycles.
10012 2019-10-08 Richard Biener <rguenther@suse.de>
10014 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10015 (_stmt_vec_info::force_single_cycle): Likewise.
10016 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10017 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10018 * tree-vect-loop.c (vectorizable_reduction): Set
10019 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10020 (vect_transform_reduction): Use them to remove redundant code.
10021 (vect_transform_cycle_phi): Likewise.
10023 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10025 PR tree-optimization/90836
10026 * match.pd (popcount): New pattern.
10028 2019-10-08 Martin Sebor <msebor@redhat.com>
10030 PR middle-end/92026
10031 PR middle-end/92014
10032 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10033 again once nbytes has been set. Set the access size when not yet set.
10035 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10037 * config/darwin.c (machopic_select_section): Remove dead code for
10038 old Objective-C section selection method, replace with unreachable.
10040 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10042 * config/darwin.c (machopic_indirect_data_reference): Check for
10043 required indirections before making direct access to defined
10045 (machopic_output_indirection): Place the indirected pointes for
10046 required indirections into the non-lazy symbol pointers section.
10047 (darwin_encode_section_info):
10048 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10049 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10051 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10054 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10055 instead of ALL_SSE_REG to check if function call preserves some
10056 256-bit SSE registers.
10058 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10060 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10061 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10062 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10064 2019-10-08 Richard Biener <rguenther@suse.de>
10066 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10067 (_stmt_vec_info::is_reduc_info): Add.
10068 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10069 (vectorizable_condition): Remove.
10070 (vectorizable_shift): Likewise.
10071 (vectorizable_reduction): Adjust.
10072 (info_for_reduction): New.
10073 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10074 (vect_analyze_scalar_cycles_1): ... here.
10075 (vect_analyze_loop_operations): Adjust.
10076 (needs_fold_left_reduction_p): Simplify for single caller.
10077 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10078 for nested cycles not part of double reductions.
10079 (vect_model_reduction_cost): Pass in the reduction type.
10080 (info_for_reduction): New function.
10081 (vect_create_epilog_for_reduction): Use it, access reduction
10082 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10083 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10084 (vectorize_fold_left_reduction): Remove pointless assert.
10085 (vectorizable_reduction): Analyze the full reduction when
10086 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10087 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10088 stmt code-generation to vectorizable_* in most cases. Verify
10089 code-generation only for cases handled by
10090 vect_transform_reductuon.
10091 (vect_transform_reduction): Use info_for_reduction to get at
10092 reduction meta. Simplify.
10093 (vect_transform_cycle_phi): Likewise.
10094 (vectorizable_live_operation): Likewise.
10095 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10096 at the PHI node for STMT_VINFO_REDUC_TYPE.
10097 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10098 longer necessary code.
10099 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10100 (vectorizable_condition): Likewise. Get at reduction related
10101 info via info_for_reduction.
10102 (vect_analyze_stmt): Adjust.
10103 (vect_transform_stmt): Likewise.
10104 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10105 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10107 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10109 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10110 -fno-fp-int-builtin-inexact default for C2X.
10112 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10113 Richard Biener <rguenther@suse.de>
10115 PR tree-optimization/91532
10116 * tree-if-conv.c: Include tree-ssa-dse.h.
10117 (ifcvt_local_dce): Change param from bb to loop,
10118 and call dse_classify_store.
10119 (tree_if_conversion): Pass loop instead of loop->header as arg
10120 to ifcvt_local_dce.
10121 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10122 (delete_dead_or_redundant_assignment): Remove static qualifier from
10123 declaration, and add prototype in tree-ssa-dse.h.
10124 (dse_store_status): Move to tree-ssa-dse.h.
10125 (dse_classify_store): Remove static qualifier and add new tree param
10126 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10127 * tree-ssa-dse.h: New header.
10129 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10131 * config/darwin.c (machopic_output_indirection): Don't put
10132 hidden symbol indirections into the .data section, use the
10133 non-lazy symbol pointers section as normal.
10134 (darwin_encode_section_info): Record if a symbol is hidden.
10135 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10136 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10138 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10140 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10141 predicates instead of accessing bits directly.
10142 (machopic_indirect_call_target): Likewise.
10143 (machopic_output_indirection): Likewise.
10144 (darwin_encode_section_info): Improve description. Use renamed
10145 symbol flags. Use predicate macros for variables and functions.
10147 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10148 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10149 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10150 (MACHO_SYMBOL_VARIABLE_P): New.
10151 (MACHO_SYMBOL_DEFINED_P):New.
10152 (MACHO_SYMBOL_STATIC_P): New.
10153 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10154 (SYMBOL_FLAG_SUBT_DEP): New.
10155 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10157 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10159 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10160 (msp430_expand_epilogue): Likewise.
10161 * config/msp430/predicates.md: Likewise.
10162 * config/msp430/msp430.md: Likewise.
10163 Replace blocks of 8 spaces with tabs.
10165 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10167 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10168 * config/msp430/msp430.c (msp430_split_addsi): New.
10169 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10170 a block of C code for splitting addsi.
10172 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10174 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10175 ix86_expand_rounddf_32): Reorder functions.
10176 * config/i386/i386-protos.h: Update.
10178 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10180 * config.in: Regenerate.
10181 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10182 Add new "Yx" constraint.
10183 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10185 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10187 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10188 code/data region to be selected in the small memory model.
10189 (msp430_section_attr): Don't warn if the "section" and "lower"
10190 attributes are used together.
10191 (msp430_handle_generic_attribute): Likewise.
10192 (msp430_var_in_low_mem): New function.
10193 (TARGET_ENCODE_SECTION_INFO): Define.
10194 (msp430_encode_section_info): New function.
10195 (gen_prefix): Return early in the small memory model.
10196 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10197 ".lower" prefix if -m{code,data}-region=lower have been passed.
10198 (msp430_output_aligned_decl_common): Emit common symbols when
10199 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10201 (TARGET_ASM_FILE_END): Define.
10202 (msp430_file_end): New function.
10203 (msp430_do_not_relax_short_jumps): Allow relaxation when
10204 function will be in the lower region.
10205 (msp430_op_not_in_high_mem): New function.
10206 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10207 the 'X' operand selector.
10208 Clarify comment for 'x' operand selector.
10209 * config/msp430/msp430.h (LINK_SPEC): Propagate
10210 -m{code,data}-region to the linker via spec function
10211 msp430_propagate_region_opt.
10212 (msp430_propagate_region_opt): New prototype.
10213 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10214 (SYMBOL_FLAG_LOW_MEM): Define.
10215 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10217 (zero_extendqihi2): Fix operand number used by "%X" selector.
10218 (zero_extendqisi2): Likewise.
10219 (zero_extendhisi2): Likewise.
10220 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10222 (addqi3): Likewise.
10223 (addhi3): Likewise.
10224 (addsi3): Likewise.
10225 (addhi3_cy): Likewise.
10226 (addchi4_cy): Likewise.
10227 (subqi3): Likewise.
10228 (subhi3): Likewise.
10229 (subsi3): Likewise.
10230 (bic<mode>3): Likewise.
10231 (and<mode>3): Likewise.
10232 (ior<mode>3): Likewise.
10233 (xor<mode>3): Likewise.
10234 (slli_1): Add missing "%X" operand selector.
10235 (slll_1): Likewise.
10236 (slll_2): Likewise.
10237 (srai_1): Likewise.
10238 (sral_1): Likewise.
10239 (sral_2): Likewise.
10240 (srli_1): Likewise.
10241 (srll_1): Likewise.
10242 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10244 (cbranchhi4_real): Likewise.
10245 (cbranchqi4_reversed): Likewise.
10246 (cbranchhi4_reversed): Likewise.
10247 (*bitbranch<mode>4): Likewise.
10248 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10249 * config/msp430/msp430.opt (mcode-region=): Set default to
10250 MSP430_REGION_LOWER. Improve docstring.
10251 (mdata-region=): Likewise.
10252 (muse-lower-region-prefix): New option.
10253 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10254 mdata-region=none multilib.
10255 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10256 mdata-region=none multilib.
10257 MULTILIB_EXCEPTIONS: Remove.
10258 MULTILIB_REQUIRED: Define.
10259 * configure: Regenerate.
10260 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10261 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10262 * doc/extend.texi: Clarify comment for {upper,lower,either}
10263 function attributes.
10264 Add separate description for "lower" variable attribute.
10266 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10269 * optabs-tree.c (vcond_icode_p): New function.
10270 (vcond_eq_icode_p): Likewise.
10271 (expand_vec_cond_expr_p): Use vcond_icode_p and
10273 * optabs.c (can_vcond_compare_p): New function.
10274 * optabs.h (can_vcond_compare_p): Likewise.
10276 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10279 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10280 caller passes a non-trapping condition.
10281 (is_gimple_condexpr): Allow trapping conditions.
10282 (is_gimple_condexpr_1): New helper function.
10283 (is_gimple_condexpr_for_cond): New function, acts like old
10284 is_gimple_condexpr.
10285 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10286 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10287 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10288 * gimplify.c (gimplify_cond_expr): Use
10289 is_gimple_condexpr_for_cond.
10290 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10291 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10293 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10294 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10295 is_gimple_condexpr_for_cond, remove pointless tmp check
10296 (forward_propagate_into_cond): Remove pointless tmp check.
10298 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10300 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10301 match that of other gsi_next_* functions. Adjust the comment.
10302 (gsi_start_nonvirtual_phis): New function.
10303 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10304 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10306 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10308 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10309 setjmp situation here. Fix a verb's ending: "the exact variables or
10310 elements for which there are warnings depends" -> "... depend".
10312 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10314 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10316 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10318 * ipa-prop.c (ipa_vr::nonzero_p): New.
10319 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10321 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10322 * tree-vrp.c (range_has_numeric_bounds_p): New.
10323 (range_int_cst_p): Use range_has_numeric_bounds_p.
10324 (get_range_op_handler): New.
10325 (supported_types_p): New.
10326 (defined_ranges_p): New.
10327 (drop_undefines_to_varying): New.
10328 (range_fold_binary_symbolics_p): New.
10329 (range_fold_unary_symbolics_p): New.
10330 (range_fold_unary_expr): Extract out into above functions.
10331 (range_fold_binary_expr): Same.
10332 (value_range_base::normalize_addresses): New.
10333 (value_range_base::normalize_symbolics): Normalize addresses.
10334 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10336 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10338 * tree-vrp.c (value_range_base::singleton_p): Use
10339 value_range_base::num_pairs instead of vrp_val_is* to check
10340 if a range has one sub-range.
10342 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10344 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10345 DEF is not a true earlyclobber but is tied to a specific input
10346 operand, and so is effectively earlyclobber wrt inputs that have
10348 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10350 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10352 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10353 (pod_mode): Mark operators likewise.
10354 (scalar_int_mode): Mark non-default constructors and
10355 operators with CONSTEXPR.
10356 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10357 (fixed_size_mode): Likewise.
10359 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10362 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10363 and wrap the unspec_volatile in a parallel.
10364 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10365 the unspec_volatile.
10366 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10367 unspec_volatile to be wrapped in a parallel.
10368 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10369 (ix86_add_reg_usage_to_vzerouppers): New functions.
10370 (rest_of_handle_insert_vzeroupper): Use them to add register
10371 usage information to the vzeroupper instructions.
10373 2019-10-07 Richard Biener <rguenther@suse.de>
10375 PR tree-optimization/91975
10376 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10379 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10381 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10382 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10384 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10386 * config/darwin.c (darwin_override_options): Adjust objective-c
10387 ABI version error messages to avoid punctuation and contracted
10390 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10392 * ipa-inline.c: Fix type; compute size rather than self_size
10393 for size of caller function.
10395 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10398 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10399 choose const_data section for constants with relocations.
10400 (machopic_select_section): Pass relocation flag to
10401 darwin_rodata_section ().
10403 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10405 PR tree-optimization/91734
10406 * generic-match-head.c: Include fold-const-call.h.
10407 * match.pd (sqrt(x) cmp c): Check the boundary value and
10408 in case inexact computation of c*c affects comparison of the boundary,
10409 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10410 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10411 for -frounding-math. For c2, try the next smaller or larger floating
10412 point constant depending on comparison code and if it has the same
10413 sqrt as c2, use it instead of c2.
10415 2019-10-04 Martin Sebor <msebor@redhat.com>
10417 PR middle-end/91977
10418 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10419 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10420 uninitialized objects.
10422 2019-10-04 Martin Sebor <msebor@redhat.com>
10424 * builtins.c (compute_objsize): Add an argument.
10425 * tree-object-size.c (addr_object_size): Same.
10426 (compute_builtin_object_size): Same.
10427 * tree-object-size.h (compute_builtin_object): Same.
10429 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10431 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10433 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10435 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10437 2019-10-04 Martin Jambor <mjambor@suse.cz>
10439 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10440 fntype when switching to calling memcpy instead of memset.
10442 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10444 * hash-table.h (hash_table::empty_slow): Don't assign
10445 size_t values to int variables.
10447 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10449 * expr.c (convert_mode_scalar): Remove shadowing local var.
10450 (emit_block_move): Rename local vars.
10451 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10452 (emit_push_insn): Rename local vars.
10453 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10454 shadowing local vars.
10455 (store_constructor): Remove shadowing local vars. Rename local var.
10456 (store_field, expand_cond_expr_using_cmove,
10457 expand_expr_real_2): Remove shadowing local vars.
10458 (expand_expr_real_1,
10459 do_store_flag): Remove shadowing local vars. Rename local vars.
10461 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10463 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10465 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10467 * genmatch.c (commutate): Rename local var.
10468 (lower_cond): Reuse local var.
10469 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10470 dt_operand::gen, dt_operand::gen_gimple_expr,
10471 dt_simplify::gen): Add a param. Rename generated vars.
10472 (decision_tree::insert_operand,
10473 (capture_info::walk_match, capture_info::walk_result,
10474 capture_info::walk_c_expr): Rename local vars.
10475 (expr::gen_transform): Rename generated vars.
10476 Use snprintf. Rename local vars.
10477 (capture::gen_transform, dt_operand::get_name,
10478 dt_operand::gen_opname): Rename generated vars.
10479 (write_predicate): Adjust call to gen_kids.
10480 (parser::get_internal_capture_id): Rename generated vars.
10481 (parser::parse_expr): Rename local vars.
10482 (parser::parse_if): Remove local var.
10483 (parser::parse_pattern, add_operator): Rename local vars.
10485 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10487 * builtins.def (DEF_C2X_BUILTIN): New macro.
10488 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10489 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10490 (strndup): Use DEF_C2X_BUILTIN.
10491 * coretypes.h (enum function_class): Add function_c2x_misc.
10493 2019-10-04 Maya Rashish <coypu@sdf.org>
10495 * ira-color.c (update_costs_from_allocno): Call
10496 ira_init_register_move_cost_if_necessary.
10498 2019-10-04 Jeff Law <law@redhat.com>
10500 * config/h8300/h8300.md (cpymemsi): Disable.
10501 (movmd, movmd_internal_<mode>, movstr, movsd):
10502 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10503 (movmd splitter, movsd splitter): Likewise.
10505 * range-op.cc (range_tests): Avoid two tests when ints and
10506 shorts are the same size.
10508 2019-10-04 Richard Biener <rguenther@suse.de>
10511 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10514 2019-10-04 Richard Biener <rguenther@suse.de>
10516 PR tree-optimization/91982
10517 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10518 against EXTRACT_LAST_REDUCTION.
10519 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10521 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10523 * range-op.o (value_range_from_overflowed_bounds): Rename from
10524 adjust_overflow_bound.
10525 (value_range_with_overflow): Rename from
10526 create_range_with_overflow.
10527 (create_possibly_reversed_range): Adjusted for above renames.
10528 (operator_*::wi_fold): Same.
10529 (cross_product_operator::wi_cross_productor): Same.
10531 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10533 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10534 -Wshadow=compatible-local): Fix description.
10535 Add an example where -Wshadow=compatible-local does not
10538 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10540 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10542 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10543 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10545 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10547 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10548 can_move_by_pieces issue.
10550 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10553 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10554 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10555 is available and the user has not set one on the command line.
10557 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10560 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10561 instead of REGNO equality check on addr.reg.
10563 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10565 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10566 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10567 * doc/invoke.texi (inline-heuristics-hint-percent,
10568 inline-heuristics-hint-percent-O2): Document.
10569 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10571 (can_inline_edge_by_limits_p): Use it.
10573 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10575 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10576 to print CONST_DOUBLEs.
10578 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10580 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10581 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10582 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10584 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10586 * Makefile.in (OBJS): Add range.o and range-op.o.
10587 Remove wide-int-range.o.
10588 * function-tests.c (test_ranges): New.
10589 (function_tests_c_tests): Call test_ranges.
10590 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10591 range_fold_unary_expr instead of extract_range_from_unary_expr.
10592 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10593 * range-op.cc: New file.
10594 * range-op.h: New file.
10595 * range.cc: New file.
10596 * range.h: New file.
10597 * selftest.h (range_tests): New prototype.
10598 * ssa.h: Include range.h.
10599 * tree-vrp.c (value_range_base::value_range_base): New
10601 (value_range_base::singleton_p): Do not call
10602 ranges_from_anti_range until sure we will need to.
10603 (value_range_base::type): Rename gcc_assert to
10604 gcc_checking_assert.
10605 (vrp_val_is_max): New argument.
10606 (vrp_val_is_min): Same.
10607 (wide_int_range_set_zero_nonzero_bits): Move from
10609 (extract_range_into_wide_ints): Remove.
10610 (extract_range_from_multiplicative_op): Remove.
10611 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10612 from extract_range_from_binary_expr.
10613 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10614 from extract_range_from_binary_expr.
10615 (extract_range_from_binary_expr): Remove.
10616 (normalize_for_range_ops): New.
10617 (range_fold_binary_expr): New.
10618 (range_fold_unary_expr): New.
10619 (value_range_base::num_pairs): New.
10620 (value_range_base::lower_bound): New.
10621 (value_range_base::upper_bound): New.
10622 (value_range_base::upper_bound): New.
10623 (value_range_base::contains_p): New.
10624 (value_range_base::invert): New.
10625 (value_range_base::union_): New.
10626 (value_range_base::intersect): New.
10627 (range_compatible_p): New.
10628 (value_range_base::operator==): New.
10629 (determine_value_range_1): Call range_fold_*expr instead of
10630 extract_range_from_*expr.
10631 * tree-vrp.h (class value_range_base): Add new constructors.
10632 Add methods for union_, intersect, operator==, contains_p,
10633 num_pairs, lower_bound, upper_bound, invert.
10634 (vrp_val_is_min): Add handle_pointers argument.
10635 (vrp_val_is_max): Same.
10636 (extract_range_from_unary_expr): Remove.
10637 (extract_range_from_binary_expr): Remove.
10638 (range_fold_unary_expr): New.
10639 (range_fold_binary_expr): New.
10640 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10641 range_fold_binary_expr instead of extract_range_from_binary_expr.
10642 (vr_values::extract_range_basic): Same.
10643 (vr_values::extract_range_from_unary_expr): Call
10644 range_fold_unary_expr instead of extract_range_from_unary_expr.
10645 * wide-int-range.cc: Remove.
10646 * wide-int-range.h: Remove.
10648 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10650 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10651 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10652 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10653 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10656 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10658 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10659 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10660 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10661 * glimits.h: Likewise.
10663 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10665 PR rtl-optimization/91976
10666 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10667 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10668 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10670 2019-10-02 Martin Sebor <msebor@redhat.com>
10672 PR tree-optimization/80936
10673 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10675 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10677 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10678 instead of reg_class_contents[ALL_REGS].
10680 2019-09-30 Jason Merrill <jason@redhat.com>
10682 Add some hash_map_safe_* functions like vec_safe_*.
10683 * hash-map.h (default_hash_map_size): New variable.
10684 (create_ggc): Use it as default argument.
10685 (hash_map_maybe_create, hash_map_safe_get)
10686 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10688 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10690 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10691 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10692 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10693 (can_inline_edge_by_limits_p): Use it.
10694 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10695 (want_inline_small_function_p): Use O2 bounds.
10696 (edge_badness): LIkewise.
10697 * opts.c (default_options): Add OPT_finline_functions.
10698 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10699 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10701 * doc/invoke.texi (-finline-functions): Update documentation.
10702 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10703 inline-min-speedup-O2): Document.
10704 (early-inlining-insns-O2): Simplify docs.
10706 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10708 PR rtl-optimization/87047
10709 * ifcvt.c (average_cost): New static function. Use it...
10710 (noce_process_if_block): ... here.
10712 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10714 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10715 * config/rs6000/rs6000-string.c (expand_block_move): Add
10716 might_overlap parm.
10717 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10718 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10720 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10722 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10723 (expand_builtin_memcpy): Use might_overlap parm.
10724 (expand_builtin_mempcpy_args): Use might_overlap parm.
10725 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10726 (expand_builtin_memory_copy_args): Add might_overlap parm.
10727 * expr.c (emit_block_move_via_cpymem): Rename to
10728 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10729 or movmem optab as appropriate.
10730 (emit_block_move_hints): Add might_overlap parm, do the right
10731 thing for might_overlap==true.
10732 * expr.h (emit_block_move_hints): Update prototype.
10734 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10736 * tree-eh.h (unsplit_eh_edges): Declare.
10737 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10738 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10739 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10740 (struct store_immediate_info): Add lp_nr field.
10741 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10742 initialize lp_nr with it.
10743 (struct merged_store_group): Add lp_nr and only_constants fields.
10744 (merged_store_group::merged_store_group): Initialize them.
10745 (merged_store_group::can_be_merged_into): Deal with them.
10746 (pass_store_merging): Rename terminate_and_release_chain into
10747 terminate_and_process_chain.
10748 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10749 renaming and remove useless assertions.
10750 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10751 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10752 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10753 instead of always recomputing it and compare lp_nr.
10754 (imm_store_chain_info::output_merged_store): If the group is in an
10755 active EH region, register new stores if they can throw. Moreover,
10756 if the insertion has created new basic blocks, adjust the PHI nodes
10757 of the post landing pad.
10758 (imm_store_chain_info::output_merged_stores): If the original stores
10759 are in an active EH region, deregister them.
10760 (lhs_valid_for_store_merging_p): Prettify.
10761 (adjust_bit_pos): New function extracted from...
10762 (mem_valid_for_store_merging): ...here. Use it for the base address
10763 and also for the offset if it is the addition of a constant.
10764 (lp_nr_for_store): New function.
10765 (pass_store_merging::process_store): Change return type to bool.
10766 Call lp_nr_for_store to initialize the store info. Propagate the
10767 return status of various called functions to the return value.
10768 (store_valid_for_store_merging_p): New predicate.
10769 (enum basic_block_status): New enumeration.
10770 (get_status_for_store_merging): New function.
10771 (pass_store_merging::execute): If the function can throw and catch
10772 non-call exceptions, unsplit the EH edges on entry and clean up the
10773 CFG on exit if something changed. Call get_status_for_store_merging
10774 for every basic block and keep the chains open across basic blocks
10775 when possible. Terminate and process open chains at the end, if any.
10777 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10779 * reginfo.c (globalize_reg): Fix shadowed variable in
10780 function_abis walk.
10782 2019-10-02 Martin Jambor <mjambor@suse.cz>
10784 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10785 do not compute some stuff when set.
10786 (cgraph_node::create_edge): Likewise.
10787 (cgraph_node::create_indirect_edge): Renamed last parameter to
10788 coning_p and flipped its meaning, don't even calculate
10789 inline_failed when set.
10790 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10791 (symbol_table::::create_edge): Likewise.
10792 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10794 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10795 call graph edge creating functions.
10797 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10800 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10803 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10805 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10807 2019-10-02 Richard Biener <rguenther@suse.de>
10809 * tree-vectorizer.h (vect_transform_reduction): Declare.
10810 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10811 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10812 stmt transform to ...
10813 (vect_transform_reduction): ... this.
10815 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10817 * omp-low.c (lower_omp_target): Dereference optional argument
10818 to work with the right pointer.
10820 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10822 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10824 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10825 * langhooks.h (omp_is_optional_argument): New hook.
10826 * omp-general.c (omp_is_optional_argument): New.
10827 * omp-general.h (omp_is_optional_argument): New declaration.
10828 * omp-low.c (lower_omp_target): Create temporary for received value
10829 and take the address for new_var if the original variable was a
10830 DECL_BY_REFERENCE. Use size of referenced object when a
10831 pass-by-reference optional argument used as argument to firstprivate.
10833 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10835 PR tree-optimization/91940
10836 * tree-vect-patterns.c: Include tree-vector-builder.h and
10837 vec-perm-indices.h.
10838 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10839 unpromoting the argument back to uint16_t, or by converting into a
10840 rotate, or into shifts plus ior.
10842 2019-10-02 Richard Biener <rguenther@suse.de>
10844 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10846 (vect_transform_cycle_phi): Declare.
10847 * tree-vect-stmts.c (vect_transform_stmt): Call
10848 vect_transform_cycle_phi.
10849 * tree-vect-loop.c (vectorizable_reduction): Split out
10850 PHI transformation stage to ...
10851 (vect_transform_cycle_phi): ... here.
10853 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10855 PR middle-end/91957
10856 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10857 eliminable registers.
10858 (make_hard_regno_live): Likewise, and don't make them live.
10860 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10862 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10863 Call pp_emit_prefix.
10864 (layout::print_source_line): Likewise.
10865 (layout::start_annotation_line): Likewise.
10866 (diagnostic_show_locus): Remove call to temporarily clear the
10868 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10869 interaction of pp_set_prefix with rulers and fix-it hints.
10870 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10871 prefix when calling diagnostic_show_locus, rather than destroying
10873 (print_parseable_fixits): Temporarily clear prefix.
10874 * pretty-print.c (pp_format): Save and restore line_length, rather
10875 than assuming it is zero.
10876 (pp_output_formatted_text): Remove assertion that line_length is
10879 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10881 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10883 (nonoverlapping_refs_since_match_p): ... this; handle also
10885 (alias_stats): Update stats.
10886 (dump_alias_stats): Likewise.
10887 (cheap_array_ref_low_bound): New function.
10888 (aliasing_matching_component_refs_p): Add partial_overlap
10890 pass it to nonoverlapping_refs_since_match_p.
10891 (aliasing_component_refs_walk): Update call of
10892 aliasing_matching_component_refs_p
10893 (nonoverlapping_array_refs_p): New function.
10894 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10895 indirect_refs_may_alias_p): Update calls of
10896 nonoverlapping_refs_since_match_p.
10898 2019-10-01 Maya Rashish <coypu@sdf.org>
10901 * ira-color.c (allocno_copy_cost_saving): Call
10902 ira_init_register_move_cost_if_necessary.
10904 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10906 * Makefile.in (gnat_install_lib): New variable.
10907 * configure.ac: Substitute it.
10908 * configure: Regenerate.
10910 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10913 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10914 is matched with non-C++ type
10916 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10918 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10921 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10923 * doc/invoke.texi (early-inlining-insns-O2): Document.
10924 (early-inlining-insns): Update.
10925 * params.def (early-inlining-insns-O2): New bound.
10926 (early-inlining-insns): Update docs.
10927 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10929 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10932 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10933 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10934 a memory access insn.
10936 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10938 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10941 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10944 * config/s390/s390.c (s390_expand_vec_compare): Use
10945 gen_vec_cmpordered and gen_vec_cmpunordered.
10946 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10947 vec_unordered): Delete.
10948 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10949 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10950 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10951 (vec_cmp<code>): Generic dispatcher.
10953 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10956 * config/s390/vector.md (V_HW): Add V1TI in order to make
10957 vcond$a$b generate vcondv1tiv1tf.
10959 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10961 PR rtl-optimization/91948
10962 * ira-build.c (ira_create_allocno): Initialize
10963 ALLOCNO_CROSSED_CALLS_ABIS.
10964 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10965 than regno to ira_need_caller_save_p.
10967 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10969 * config/i386/i386-options.c
10970 (ix86_recompute_optlev_based_flags): New, moved out of...
10971 (ix86_option_override_internal): ... this. Call it.
10972 (ix86_override_options_after_change): Call it here too.
10975 * dwarf2out.c (override_type_for_decl_p): New.
10976 (gen_variable_die): Use it.
10978 2019-10-01 Richard Biener <rguenther@suse.de>
10980 * tree-vect-loop.c (vectorizable_reduction): Move variables
10981 to where they are used.
10983 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10985 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10986 (build_def_use): Use PC instead of CC0 in a comment.
10988 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10990 * rtl.def (CLOBBER_HIGH): Delete.
10991 * doc/rtl.texi (clobber_high): Remove documentation.
10992 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10993 (reg_is_clobbered_by_clobber_high): Delete.
10994 (gen_hard_reg_clobber_high): Likewise.
10995 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10996 * cfgexpand.c (expand_gimple_stmt): Likewise.
10997 * combine-stack-adj.c (single_set_for_csa): Likewise.
10998 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10999 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11000 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11001 * cse.c (invalidate_reg): Remove clobber_high parameter.
11002 (invalidate): Update call accordingly.
11003 (canonicalize_insn): Remove CLOBBER_HIGH handling.
11004 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11005 (count_reg_usage, insn_live_p): Likewise.
11006 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11007 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11008 (cselib_invalidate_rtx_note_stores): Update call accordingly.
11009 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11010 (cselib_invalidate_regno, cselib_process_insn): Likewise.
11011 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11012 (mark_nonreg_stores_2): Likewise.
11013 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11014 (df_get_call_refs): Likewise.
11015 * dwarf2out.c (mem_loc_descriptor): Likewise.
11016 * emit-rtl.c (verify_rtx_sharing): Likewise.
11017 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11018 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11019 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11020 * genemit.c (gen_exp, gen_insn): Likewise.
11021 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11022 * haifa-sched.c (haifa_classify_rtx): Likewise.
11023 * ira-build.c (create_insn_allocnos): Likewise.
11024 * ira-costs.c (scan_one_insn): Likewise.
11025 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11026 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11027 * jump.c (mark_jump_label_1): Likewise.
11028 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11029 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11031 (mark_not_eliminable): Likewise.
11032 * lra-lives.c (process_bb_lives): Likewise.
11033 * lra.c (new_insn_reg): Remove clobber_high parameter.
11034 (collect_non_operand_hard_regs): Likewise. Update call to new
11035 insn_reg. Remove CLOBBER_HIGH handling.
11036 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11037 to collect_non_operand_hard_regs.
11038 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11039 Update call to new_insn_reg.
11040 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11041 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11042 (move2add_note_store): Likewise.
11043 * print-rtl.c (print_pattern): Likewise.
11044 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11045 (if_test_bypass_p): Likewise.
11046 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11047 * reginfo.c (reg_scan_mark_refs): Likewise.
11048 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11049 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11050 (forget_old_reloads_1): Likewise.
11051 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11052 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11053 (dbr_schedule): Likewise.
11054 * resource.c (update_live_status, mark_referenced_resources)
11055 (mark_set_resources): Likewise.
11056 * rtl.c (copy_rtx): Likewise.
11057 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11058 (note_pattern_stores): Likewise.
11059 (reg_is_clobbered_by_clobber_high): Delete.
11060 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11061 CLOBBER_HIGH handling.
11063 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11066 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11067 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11068 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11069 Handle ARM_PCS_TLSDESC.
11070 (aarch64_tlsdesc_abi_id): New function.
11071 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11072 rtx instead of a list of clobbers and clobber_highs.
11073 (tlsdesc_small_<mode>): Update accordingly.
11075 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11077 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11078 extra callee_abi argument.
11079 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11080 Insert a CALLEE_ABI unspec into the call pattern as the second
11081 element in the PARALLEL.
11082 (aarch64_simd_call_p): Delete.
11083 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11084 the new CALLEE_ABI element of the PARALLEL.
11085 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11086 from the function type, if given.
11087 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11088 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11089 when passed the function_arg_info end marker.
11090 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11091 final argument of gen_sibcall.
11092 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11093 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11094 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11096 (call_value): Likewise operand 3.
11097 (sibcall): Likewise operand 2. Place the unspec before rather than
11099 (sibcall_value): Likewise operand 3.
11100 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11101 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11102 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11103 constraint strings.
11104 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11106 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11108 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11109 choose_hard_reg_mode.
11110 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11112 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11114 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11115 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11116 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11118 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11120 * diagnostic-show-locus.c (line_label::line_label): Initialize
11122 (line_label::comparator): Reverse the sort order by m_state_idx,
11123 so that when the list is walked backwards the labels appear in
11124 order of insertion into the rich_location.
11125 (line_label::m_has_vbar): New field.
11126 (layout::print_any_labels): When dealing with multiple labels at
11127 the same line and column, only print vertical bars for the one
11128 with the highest label_line.
11129 (selftest::test_one_liner_labels): Update test for multiple labels
11130 to expect the labels to be in the order of insertion into the
11131 rich_location. Add a test for many such labels, where the column
11132 numbers are out-of-order relative to the insertion order.
11134 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11136 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11137 (ix86_frame::expensive_count): Likewise.
11138 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11139 of use_fast_prologue_epilogue robust against incidental changes
11142 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11145 * config/s390/vector.md (vec_unordered<mode>): Call
11146 gen_vec_ordered<mode>.
11148 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11150 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11151 New pattern for ASRD.
11152 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11153 * internal-fn.def (IFN_DIV_POW2): New internal function.
11154 * optabs.def (sdiv_pow2_optab): New optab.
11155 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11156 Modify pattern to support new operation.
11157 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11158 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11159 Document new target selector.
11161 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11163 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11164 to test whether we're compiling a vector PCS function and to test
11165 whether the function needs to save a particular register.
11166 Remove the vector PCS handling of df_set_regs_ever_live.
11167 (aarch64_components_for_bb): Use crtl->abi to test whether
11168 the function needs to save a particular register.
11169 (aarch64_process_components): Use crtl->abi to test whether
11170 we're compiling a vector PCS function.
11171 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11172 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11174 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11176 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11178 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11179 whether the block calls a function that clobbers more registers
11180 than the current function is allowed to.
11181 (aarch64_use_simple_return_insn_p): Delete.
11182 * config/aarch64/aarch64.md (simple_return): Remove condition.
11184 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11186 * function-abi.h (function_abi_aggregator): New class.
11187 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11189 * ira.c (update_equiv_regs_prescan): New function. Call
11190 set_paradoxical_subreg here rather than...
11191 (update_equiv_regs): ...here.
11192 (ira): Call update_equiv_regs_prescan.
11194 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11196 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11198 (call_used_or_fixed_regs): Likewise.
11199 (call_used_or_fixed_reg_p): Likewise.
11200 * reginfo.c (regs_invalidated_by_call): New macro.
11202 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11204 * shrink-wrap.c: Include function-abi.h.
11205 (requires_stack_frame_p): Use crtl->abi to test whether the
11206 current function can use a register without saving it first.
11208 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11210 * sel-sched-ir.h (_def::crosses_call): Replace with...
11211 (_def::crossed_call_abis): ..this new field.
11212 (def_list_add): Take a mask of ABIs instead of a crosses_call
11214 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11215 of _def accordingly.
11216 * sel-sched.c: Include function-abi.h.
11217 (hard_regs_data::regs_for_call_clobbered): Delete.
11218 (reg_rename::crosses_call): Replace with...
11219 (reg_rename::crossed_call_abis): ...this new field.
11220 (fur_static_params::crosses_call): Replace with...
11221 (fur_static_params::crossed_call_abis): ...this new field.
11222 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11223 (init_hard_regs_data): Use crtl->abi to test which registers the
11224 current function would need to save before it uses them.
11225 (mark_unavailable_hard_regs): Update handling of call-clobbered
11226 registers, using call_clobbers_in_region to find out which registers
11227 might be call-clobbered (but without taking -fipa-ra into account
11228 for now). Remove separate handling of partially call-clobbered
11230 (verify_target_availability): Use crossed_call_abis instead of
11232 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11233 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11235 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11237 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11238 function to test whether a register is fully or partly clobbered.
11240 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11242 * rtlanal.c: Include function-abi.h.
11243 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11244 function and clobbers_reg_p to test whether the register
11246 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11247 to get the ABI of the called function and full_reg_clobbers to
11248 get the set of fully call-clobbered registers. Warn about the
11249 pitfalls of using this mode.
11251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11253 * reload.c: Include function-abi.h.
11254 (find_equiv_reg): Use clobbers_reg_p to test whether either
11255 of the equivalent registers is clobbered by a call.
11256 * reload1.c: Include function-abi.h.
11257 (reg_reloaded_call_part_clobbered): Delete.
11258 (reload): Use crtl->abi to test which registers would need
11259 saving in the prologue before use.
11260 (find_reg): Likewise.
11261 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11262 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11263 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11265 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11267 * regrename.h (du_head::call_clobber_mask): New field.
11268 (du_head::need_caller_save_reg): Replace with...
11269 (du_head::call_abis): ...this new field.
11270 * regrename.c: Include function-abi.h.
11271 (call_clobbered_in_chain_p): New function.
11272 (check_new_reg_p): Use crtl->abi when deciding whether a register
11273 is free for use after RA. Use call_clobbered_in_chain_p to test
11274 whether a candidate register would be clobbered by a call.
11275 (find_rename_reg): Don't add call-clobber conflicts here.
11276 (rename_chains): Check call_abis instead of need_caller_save_reg.
11277 (merge_chains): Update for changes to du_head.
11278 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11279 target. Record the ABI identifier in call_abis and the set of
11280 fully or partially clobbered registers in call_clobber_mask.
11281 Add fully-clobbered registers to hard_conflicts here rather
11282 than in find_rename_reg.
11283 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11284 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11285 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11287 * config/c6x/c6x.c: Likewise.
11289 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11291 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11292 mode of the register when deciding whether it is no longer
11293 available after a call.
11295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11297 * recog.c: Include function-abi.h.
11298 (peep2_find_free_register): Use crtl->abi when deciding whether
11299 a register is free for use after RA.
11301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11303 * postreload-gcse.c: Include regs.h and function-abi.h.
11304 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11305 call insn target. Conservatively assume that partially-clobbered
11306 registers are altered.
11308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11310 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11311 when deciding whether a register is free for use after RA.
11312 (reload_combine): Remove unnecessary use of fixed_reg_set.
11313 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11314 call insn target. Use reg_mode when testing whether a register
11315 is no longer available.
11317 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11319 * target.def (return_call_with_max_clobbers): Delete.
11320 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11321 * doc/tm.texi: Regenerate.
11322 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11323 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11324 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11325 (lra_reg::call_insn): Delete.
11326 * lra.c: Include function-abi.h.
11327 (initialize_lra_reg_info_element): Don't initialize the fields above.
11328 (lra): Use crtl->abi to test whether the current function needs to
11329 save a register in the prologue. Remove special pre-inheritance
11330 lra_create_live_ranges pass for flag_ipa_ra.
11331 * lra-assigns.c: Include function-abi.h
11332 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11333 function needs to save a register in the prologue.
11334 (lra_assign): Assert that registers aren't allocated to a
11335 conflicting register, rather than checking only for overlaps
11336 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11337 and for registers that are not live across a call.
11338 * lra-constraints.c (last_call_for_abi): New variable.
11339 (full_and_partial_call_clobbers): Likewise.
11340 (setup_next_usage_insn): Remove the register from
11341 full_and_partial_call_clobbers.
11342 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11343 whether the register needs a caller save.
11344 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11345 of call_used_or_fixed_regs.
11346 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11347 full_and_partial_call_clobbers.
11348 * lra-lives.c (check_pseudos_live_through_calls): Replace
11349 last_call_used_reg_set and call_insn arguments with an abi argument.
11350 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11351 as the set of conflicting registers.
11352 (calls_have_same_clobbers_p): Delete.
11353 (process_bb_lives): Track the ABI of the last call instead of an
11354 insn/HARD_REG_SET pair. Update calls to
11355 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11356 the set of registers that could be clobbered by an EH edge.
11357 Include partially-clobbered as well as fully-clobbered registers.
11358 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11359 * lra-remat.c: Include function-abi.h.
11360 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11361 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11362 registers and bitmap_view to combine them into dead_regs.
11363 (call_used_input_regno_present_p): Take a function_abi argument
11364 and use it to test whether a register is call-clobbered.
11365 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11366 call insn target. Update tje call to call_used_input_regno_present_p.
11367 (do_remat): Likewise.
11368 (lra_remat): Remove the initialization of call_used_regs_arr_len
11369 and call_used_regs_arr.
11371 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11373 * loop-iv.c: Include regs.h and function-abi.h.
11374 (simplify_using_initial_values): Use insn_callee_abi to get the
11375 ABI of the call insn target. Conservatively assume that
11376 partially-clobbered registers are altered.
11378 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11380 * function-abi.h (call_clobbers_in_region): Declare.
11381 (call_clobbered_in_region_p): New function.
11382 * function-abi.cc (call_clobbers_in_region): Likewise.
11383 * ira-int.h: Include function-abi.h.
11384 (ira_allocno::crossed_calls_abis): New field.
11385 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11386 (ira_need_caller_save_regs): New function.
11387 (ira_need_caller_save_p): Likewise.
11388 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11389 of call_used_or_fixed_regs.
11390 (do_reload): Use crtl->abi to test whether the current function
11391 needs to save a register in the prologue. Count registers that
11392 need to be saved rather than registers that don't.
11393 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11394 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11395 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11396 (propagate_some_info_from_allocno): Likewise.
11397 (copy_info_to_removed_store_destinations): Likewise.
11398 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11399 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11400 (ira_build): Use ira_need_caller_save_regs instead of
11401 call_used_or_fixed_regs.
11402 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11403 whether the current function would need to save a register
11405 (calculate_spill_cost): Likewise.
11406 (allocno_reload_assign): Use ira_need_caller_save_regs and
11407 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11408 * ira-conflicts.c (ira_build_conflicts): Use
11409 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11410 as the set of call-clobbered registers. Remove the
11411 call_used_or_fixed_regs mask from the calculation of
11412 temp_hard_reg_set and mask its use instead. Remove special
11413 handling of partially-clobbered registers.
11414 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11415 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11416 calculate the set of conflicting registers for calls that
11417 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11418 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11419 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11420 Use eh_edge_abi to calculate the set of registers that could
11421 be clobbered by an EH edge. Include partially-clobbered as
11422 well as fully-clobbered registers.
11424 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11426 * haifa-sched.c: Include function-abi.h.
11427 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11428 the function would need to save a register before using it.
11430 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11432 * gcse.c: Include function-abi.h.
11433 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11434 the call insn target. Invalidate partially call-clobbered
11435 registers as well as fully call-clobbered ones.
11437 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11439 * function.c (aggregate_value_p): Work out which ABI the
11440 function is using before testing which registers are at least
11441 partly preserved by a call.
11443 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11445 * early-remat.c: Include regs.h and function-abi.h.
11446 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11448 (early_remat::restrict_remat_for_unavail_regs): New function.
11449 (early_remat::restrict_remat_for_call): Likewise.
11450 (early_remat::process_block): Before calling emit_remat_insns
11451 for a previous call in the block, invalidate any candidates
11452 that would clobber call-preserved registers.
11453 (early_remat::emit_remat_insns_for_block): Likewise for the
11454 final call in a block. Do the same thing for live-in registers
11455 when calling emit_remat_insns at the head of a block.
11457 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11459 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11460 whether the current function needs to save at least part of a
11461 register before using it.
11462 (df_get_exit_block_use_set): Likewise for epilogue restores.
11464 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11466 * df-problems.c: Include regs.h and function-abi.h.
11467 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11468 sparse_invalidated_by_eh and dense_invalidated_by_call to
11469 dense_invalidated_by_eh.
11470 (df_print_bb_index): Update accordingly.
11471 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11472 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11473 that are clobbered by an EH edge. Clobber partially-clobbered
11474 registers as well as fully-clobbered ones.
11475 (df_md_confluence_n): Likewise.
11476 (df_rd_local_compute): Likewise. Update for changes to
11477 df_rd_problem_data.
11478 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11479 of registers that are clobbered by an EH edge. Includde partially-
11480 clobbered registers as well as fully-clobbered ones.
11482 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11484 * cselib.c (cselib_process_insn): If we know what mode a
11485 register was set in, check whether it is clobbered in that
11486 mode by a call. Only fall back to reg_raw_mode if that fails.
11488 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11490 * cse.c: Include regs.h and function-abi.h.
11491 (invalidate_for_call): Take the call insn as an argument.
11492 Use insn_callee_abi to get the ABI of the call and invalidate
11493 partially clobbered registers as well as fully clobbered ones.
11494 (cse_insn): Update call accordingly.
11496 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11498 * combine.c: Include function-abi.h.
11499 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11500 of the target of call insns. Invalidate partially-clobbered
11501 registers as well as fully-clobbered ones.
11503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11505 * cfgloopanal.c: Include regs.h and function-abi.h.
11506 (init_set_costs): Use default_function_abi to test whether
11507 a general register is call-clobbered.
11509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11511 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11512 instead of the call-clobbered sets.
11514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11516 * caller-save.c (setup_save_areas): Remove redundant |s of
11518 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11519 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11522 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11524 * rtl.h (predefined_function_abi): Declare.
11525 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11526 instead of a boolean call_save flag.
11527 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11529 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11530 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11531 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11532 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11533 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11534 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11535 * reginfo.c (init_reg_modes_target): Likewise.
11536 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11537 instead of a boolean call_save flag.
11538 * targhooks.c: Include function-abi.h.
11539 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11540 using eh_edge_abi to choose the mode.
11542 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11544 * target.def (hard_regno_call_part_clobbered): Take an ABI
11545 identifier instead of an rtx_insn.
11546 * doc/tm.texi: Regenerate.
11547 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11548 (hook_bool_uint_uint_mode_false): New function.
11549 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11550 (hook_bool_uint_uint_mode_false): New function.
11551 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11552 Take an ABI identifier instead of an rtx_insn.
11553 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11554 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11555 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11556 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11557 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11559 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11560 * cselib.c: Include function-abi.h.
11561 (cselib_process_insn): Update call to
11562 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11563 to get the appropriate ABI identifier.
11564 * function-abi.cc (predefined_function_abi::initialize): Update call
11565 to targetm.hard_regno_call_part_clobbered.
11566 * ira-conflicts.c (ira_build_conflicts): Likewise.
11567 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11568 * lra-constraints.c: Include function-abi.h.
11569 (need_for_call_save_p): Update call to
11570 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11571 to get the appropriate ABI identifier.
11572 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11573 * regcprop.c (copyprop_hardreg_forward_1): Update call
11574 to targetm.hard_regno_call_part_clobbered.
11575 * reginfo.c (choose_hard_reg_mode): Likewise.
11576 * regrename.c (check_new_reg_p): Likewise.
11577 * reload.c (find_equiv_reg): Likewise.
11578 * reload1.c (emit_reload_insns): Likewise.
11579 * sched-deps.c: Include function-abi.h.
11580 (deps_analyze_insn): Update call to
11581 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11582 to get the appropriate ABI identifier.
11583 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11584 call to targetm.hard_regno_call_part_clobbered.
11585 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11587 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11589 * config/i386/i386.c: Include function-abi.h.
11590 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11591 if they preserve some 256-bit or 512-bit SSE registers.
11593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11595 * target.def (insn_callee_abi): New hook.
11596 (remove_extra_call_preserved_regs): Delete.
11597 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11598 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11599 * doc/tm.texi: Regenerate.
11600 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11601 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11602 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11604 (aarch64_remove_extra_call_preserved_regs): Delete.
11605 (aarch64_insn_callee_abi): New function.
11606 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11607 (TARGET_INSN_CALLEE_ABI): New macro.
11608 * rtl.h (get_call_fndecl): Declare.
11609 (cgraph_rtl_info): Fix formatting. Tweak comment for
11610 function_used_regs. Remove function_used_regs_valid.
11611 * rtlanal.c (get_call_fndecl): Moved from final.c
11612 * function-abi.h (insn_callee_abi): Declare.
11613 (target_function_abi_info): Mention insn_callee_abi.
11614 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11615 way to get_call_reg_set_usage did.
11616 (insn_callee_abi): New function.
11617 * regs.h (get_call_reg_set_usage): Delete.
11618 * final.c: Include function-abi.h.
11619 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11620 function_used_regs before the main loop rather than afterwards.
11621 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11622 if function_used_regs ends up not being useful.
11623 (get_call_fndecl): Move to rtlanal.c
11624 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11625 * caller-save.c: Include function-abi.h.
11626 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11627 instead of get_call_reg_set_usage.
11628 * cfgcleanup.c: Include function-abi.h.
11629 (old_insns_match_p): Use insn_callee_abi instead of
11630 get_call_reg_set_usage.
11631 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11633 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11634 function_used_regs.
11635 * df-scan.c: Include function-abi.h.
11636 (df_get_call_refs): Use insn_callee_abi instead of
11637 get_call_reg_set_usage.
11638 * ira-lives.c: Include function-abi.h.
11639 (process_bb_node_lives): Use insn_callee_abi instead of
11640 get_call_reg_set_usage.
11641 * lra-lives.c: Include function-abi.h.
11642 (process_bb_lives): Use insn_callee_abi instead of
11643 get_call_reg_set_usage.
11644 * postreload.c: Include function-abi.h.
11645 (reload_combine): Use insn_callee_abi instead of
11646 get_call_reg_set_usage.
11647 * regcprop.c: Include function-abi.h.
11648 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11649 get_call_reg_set_usage.
11650 * resource.c: Include function-abi.h.
11651 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11652 instead of get_call_reg_set_usage.
11653 * var-tracking.c: Include function-abi.h.
11654 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11655 get_call_reg_set_usage.
11657 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11659 * target.def (fntype_abi): New target hook.
11660 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11661 * doc/tm.texi: Regenerate.
11662 * target.h (predefined_function_abi): Declare.
11663 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11665 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11666 * config/aarch64/aarch64.c: Include function-abi.h.
11667 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11668 (TARGET_FNTYPE_ABI): Define.
11670 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11672 * Makefile.in (OBJS): Add function-abi.o.
11673 (GTFILES): Add function-abi.h.
11674 * function-abi.cc: New file.
11675 * function-abi.h: Likewise.
11676 * emit-rtl.h (rtl_data::abi): New field.
11677 * function.c: Include function-abi.h.
11678 (prepare_function_start): Initialize crtl->abi.
11679 * read-rtl-function.c: Include regs.h and function-abi.h.
11680 (read_rtl_function_body): Initialize crtl->abi.
11681 (read_rtl_function_body_from_file_range): Likewise.
11682 * reginfo.c: Include function-abi.h.
11683 (init_reg_sets_1): Initialize default_function_abi.
11684 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11685 when making a register global.
11686 * target-globals.h (this_target_function_abi_info): Declare.
11687 (target_globals::function_abi_info): New field.
11688 (restore_target_globals): Copy it.
11689 * target-globals.c: Include function-abi.h.
11690 (default_target_globals): Initialize the function_abi_info field.
11691 (target_globals): Allocate it.
11692 (save_target_globals): Free it.
11694 2019-09-30 Nick Clifton <nickc@redhat.com>
11697 * config/frv/frv.c (frv_register_move_cost): Add break statements
11698 to avoid falling through to the wrong cases. Tidy code.
11700 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11702 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11703 For multi-registers modes, test how big each register part is.
11705 2019-09-30 Nick Clifton <nickc@redhat.com>
11708 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11709 (TARGET_ASM_SELECT_SECTION): Remove definition.
11710 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11712 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11714 * emit-rtl.c (init_raw_REG): New function.
11715 (gen_raw_REG): Use init_raw_REG.
11716 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11718 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11719 * rtl.h (rtx_init): New function.
11720 (rtx_alloca): New function.
11721 (init_raw_REG): New function.
11722 (alloca_raw_REG): New macro.
11724 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11726 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11727 (pcrel_local_address): Replace pcrel_address predicate, use the
11728 new function address_to_insn_form.
11729 (pcrel_external_address): Replace with new implementation using
11730 address_to_insn_form..
11731 (prefixed_mem_operand): Delete predicate which is now unused.
11732 (pcrel_external_mem_operand): Delete predicate which is now
11734 * config/rs6000/rs6000-protos.h (enum insn_form): New
11736 (enum non_prefixed_form): New enumeration.
11737 (address_to_insn_form): New declaration.
11738 (prefixed_load_p): New declaration.
11739 (prefixed_store_p): New declaration.
11740 (prefixed_paddi_p): New declaration.
11741 (rs6000_asm_output_opcode): New declaration.
11742 (rs6000_final_prescan_insn): Move declaration and update calling
11744 (address_is_prefixed): New helper inline function.
11745 * config/rs6000/rs6000.c(print_operand_address): Check for either
11746 PC-relative local symbols or PC-relative external symbols.
11747 (rs6000_emit_move): Support loading PC-relative addresses.
11748 (mode_supports_prefixed_address_p): Delete, no longer used.
11749 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11750 (address_to_insn_form): New function to decode an address format.
11751 (reg_to_non_prefixed): New function to identify what the
11752 non-prefixed memory instruction format is for a register.
11753 (prefixed_load_p): New function to identify prefixed loads.
11754 (prefixed_store_p): New function to identify prefixed stores.
11755 (prefixed_paddi_p): New function to identify prefixed load
11757 (next_insn_prefixed_p): New static state variable.
11758 (rs6000_final_prescan_insn): New function to determine if an insn
11759 uses a prefixed instruction.
11760 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11761 prefixed instruction.
11762 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11763 (ASM_OUTPUT_OPCODE): New target hook.
11764 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11765 prefixed instructions.
11766 (prefixed_length): New insn attribute for the size of prefixed
11768 (non_prefixed_length): New insn attribute for the size of
11769 non-prefixed instructions.
11770 (pcrel_local_addr): New insn to load up a local PC-relative
11772 (pcrel_extern_addr): New insn to load up an external PC-relative
11774 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11775 GPR and loading a 128-bit floating point type to a GPR.
11777 2019-09-30 Richard Biener <rguenther@suse.de>
11779 * gimple.c (gimple_get_lhs): For PHIs return the result.
11780 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11781 SLP instance as argument.
11782 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11783 double-reduction PHIs with vectorizable_lc_phi.
11784 (vect_analyze_loop_operations): Adjust.
11785 (vect_create_epilog_for_reduction): Remove all code not dealing
11786 with reduction LC PHI or epilogue generation.
11787 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11788 for live stmts of reductions.
11789 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11790 do not handle defs that are not vect_internal_def.
11791 (can_vectorize_live_stmts): Adjust.
11792 (vect_analyze_stmt): When the vectorized stmt defined a value
11793 used on backedges adjust the backedge uses of vectorized PHIs.
11795 2019-09-30 Martin Jambor <mjambor@suse.cz>
11798 * tree-inline.c (force_value_to_type): New function.
11799 (setup_one_parameter): Use force_value_to_type to convert type.
11800 * tree-inline.c (force_value_to_type): Declare.
11801 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11802 with register type mismatches.
11804 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11806 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11808 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11809 * config/rs6000/t-freebsd64: Make use of the above define and build
11810 the 32-bit libraries with secure-plt.
11812 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11815 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11816 gen_int_mode instead of GEN_INT.
11818 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11820 * config/darwin.c (gen_macho_low): Amend to include the mode
11822 (machopic_indirect_data_reference): Amend gen_macho_low call
11823 to include mode argument
11824 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11825 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11826 the macho_high expander and two define_insn entries.
11828 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11831 * optc-save-gen.awk: Fix up printing string option differences.
11833 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11835 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11836 vec_perm cost to 1 for non-Power7 VSX architectures.
11838 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11840 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11841 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11842 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11844 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11846 * config/darwin.c (gen_macho_high): Amend to include the mode
11848 (machopic_indirect_data_reference): Amend gen_macho_high call
11849 to include mode argument.
11850 (machopic_legitimize_pic_address): Likewise.
11851 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11852 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11853 the macho_high expander and two define_insn entries.
11855 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11858 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11860 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11863 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11864 std::string::compare instead of std::string::find.
11866 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11868 * configure: Regenerate.
11870 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11872 PR middle-end/91920
11873 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11874 variables as shared.
11876 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11878 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11879 replaces the expander and two define_insn entries.
11880 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11882 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11884 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11886 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11887 (fibonacci_heap::nodes): Likewise.
11888 (fibonacci_heap::min_key): Likewise.
11889 (fibonacci_heap::min): Likewise.
11891 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11893 * cgraph.c (cgraph_node::get_fun): Make const.
11894 * cgraph.h (cgraph_node::get_fun): Likewise.
11896 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11899 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11902 2019-09-27 Richard Biener <rguenther@suse.de>
11904 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11905 (STMT_VINFO_REDUC_FN): Likewise.
11906 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11907 STMT_VINFO_REDUC_FN.
11908 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11909 for condition reductions.
11910 (vect_create_epilog_for_reduction): Compute all required state
11911 from the stmt to be vectorized.
11912 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11913 invocation and remove then dead code. For single def-use chains
11914 record only a single vector stmt.
11916 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11918 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11919 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11920 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11921 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11922 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11923 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11924 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11925 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11926 (aarch64_general_builtin_rsqrt): Declare.
11927 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11929 (aarch64_mangle_builtin_type): Rename to...
11930 (aarch64_general_mangle_builtin_type): ...this.
11931 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11932 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11933 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11934 aarch64_general_add_builtin instead of add_builtin_function.
11935 (aarch64_init_builtins): Rename to...
11936 (aarch64_general_init_builtins): ...this. Use
11937 aarch64_general_add_builtin instead of add_builtin_function.
11938 (aarch64_builtin_decl): Rename to...
11939 (aarch64_general_builtin_decl): ...this and remove the unused
11941 (aarch64_expand_builtin): Rename to...
11942 (aarch64_general_expand_builtin): ...this and remove the unused
11944 (aarch64_builtin_rsqrt): Rename to...
11945 (aarch64_general_builtin_rsqrt): ...this.
11946 (aarch64_fold_builtin): Rename to...
11947 (aarch64_general_fold_builtin): ...this. Take the function subcode
11948 and return type as arguments. Remove the "ignored" argument.
11949 (aarch64_gimple_fold_builtin): Rename to...
11950 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11951 subcode and gcall as arguments, and return the new function call.
11952 * config/aarch64/aarch64.c (aarch64_init_builtins)
11953 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11954 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11955 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11956 instead of aarch64_builtin_rsqrt.
11957 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11958 instead of aarch64_mangle_builtin_type.
11960 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11962 * target.def (check_builtin_call): New target hook.
11963 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11964 * doc/tm.texi: Regenerate.
11966 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11968 PR tree-optimization/91909
11969 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11970 reduc_index parameter. When handling COND_REDUCTION, make sure
11971 that the reduction phi operand is in the correct arm of the
11973 (vectorizable_reduction): Pass reduc_index to the above.
11975 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11977 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11978 New combine pattern.
11980 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11982 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11983 loop instruction into new basic block before the loop when basic
11984 block that precedes the loop is empty.
11986 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11988 * function.c (gimplify_parameters): Use build_clobber function.
11989 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11990 * tree-inline.c (expand_call_inline): Likewise.
11991 * tree-sra.c (clobber_subtree): Likewise.
11992 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11993 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11994 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11995 lower_omp_target): Likewise.
11996 * omp-expand.c (expand_omp_for_generic): Likewise.
11997 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11999 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
12001 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12002 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12003 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12004 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12005 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12006 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12007 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12008 LD_ELEMREV_V16QI): Use the PURE attribute.
12010 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
12012 * config/rs6000/darwin.md: Replace the expanders for
12013 load_macho_picbase and reload_macho_picbase with use of '@'
12014 and <mode> in their respective define_insns.
12015 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12016 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12017 Pmode to gen_load_macho_picbase.
12018 * config/rs6000/rs6000.md: Likewise.
12020 2019-09-25 Richard Biener <rguenther@suse.de>
12022 PR tree-optimization/91896
12023 * tree-vect-loop.c (vectorizable_reduction): The single
12024 def-use cycle optimization cannot apply when there's more
12025 than one pattern stmt involved.
12027 2019-09-26 Richard Biener <rguenther@suse.de>
12029 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12030 loop-closed PHIs that are vect_internal_def.
12031 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12033 (vectorizable_lc_phi): New.
12034 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12035 (vect_transform_stmt): Likewise.
12036 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12037 (vectorizable_lc_phi): Declare.
12039 2019-09-26 Richard Biener <rguenther@suse.de>
12041 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12042 vectorizable_reduction for vect_double_reduction_def.
12043 (vect_transform_loop): Likewise.
12044 (vect_create_epilog_for_reduction): Move double-reduction
12045 PHI creation and preheader argument setting of PHIs ...
12046 (vectorizable_reduction): ... here. Also process
12047 vect_double_reduction_def PHIs, creating the vectorized
12048 PHI nodes, remembering the scalar adjustment computed for
12049 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12050 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12051 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12052 Initialize STMT_VINFO_REDUC_CODE.
12053 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12054 (_stmt_vec_info::reduc_code): Likewise.
12055 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12056 (STMT_VINFO_REDUC_CODE): Likewise.
12058 2019-09-26 Matt Turner <mattst88@gmail.com>
12061 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12062 (mtune=): Add Negative(mtune=).
12063 (mcpu=): Add Negative(mcpu=).
12064 * config/arm/arm.opt: Likewise.
12066 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12068 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12069 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12071 * config/arm/arm_acle.h: Define builtins for the above.
12072 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12073 (simd32_op): Handle the above.
12074 * config/arm/unspecs.md: Define unspecs for the above.
12076 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12078 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12079 (arm_<sup>xtb16): Likewise.
12080 (arm_usada8): Likewise.
12081 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12082 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12083 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12084 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12085 __sxtb16, __uxtab16, __uxtb16): Define.
12086 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12087 * config/arm/unspecs.md: Define unspecs for the above.
12088 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12089 (USXTB16): Likewise.
12090 (simd32_op): New int_attribute.
12091 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12092 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12094 2019-09-26 Martin Jambor <mjambor@suse.cz>
12096 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12099 2019-09-26 Martin Jambor <mjambor@suse.cz>
12101 * ipa-sra.c (process_scan_results): Fix continue condition.
12103 2019-09-26 Martin Liska <mliska@suse.cz>
12105 PR tree-optimization/91885
12106 * tree-vectorizer.c (try_vectorize_loop_1): Add
12107 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12109 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12111 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12112 aarch64_plus_immediate rather than aarch64_uimm12_shift
12113 to test for valid PLUS immediates.
12115 2019-09-25 Martin Jambor <mjambor@suse.cz>
12117 * tree-sra.c (no_accesses_p): Remove.
12118 (no_accesses_representant): Likewise.
12120 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12122 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12124 (vaba_s16): Likewise.
12125 (vaba_s32): Likewise.
12126 (vaba_u8): Likewise.
12127 (vaba_u16): Likewise.
12128 (vaba_u32): Likewise.
12129 (vabal_high_s8): Likewise.
12130 (vabal_high_s16): Likewise.
12131 (vabal_high_s32): Likewise.
12132 (vabal_high_u8): Likewise.
12133 (vabal_high_u16): Likewise.
12134 (vabal_high_u32): Likewise.
12135 (vabal_s8): Likewise.
12136 (vabal_s16): Likewise.
12137 (vabal_s32): Likewise.
12138 (vabal_u8): Likewise.
12139 (vabal_u16): Likewise.
12140 (vabal_u32): Likewise.
12141 (vabaq_s8): Likewise.
12142 (vabaq_s16): Likewise.
12143 (vabaq_s32): Likewise.
12144 (vabaq_u8): Likewise.
12145 (vabaq_u16): Likewise.
12146 (vabaq_u32): Likewise.
12147 (vabd_s8): Likewise.
12148 (vabd_s16): Likewise.
12149 (vabd_s32): Likewise.
12150 (vabd_u8): Likewise.
12151 (vabd_u16): Likewise.
12152 (vabd_u32): Likewise.
12153 (vabdl_high_s8): Likewise.
12154 (vabdl_high_s16): Likewise.
12155 (vabdl_high_s32): Likewise.
12156 (vabdl_high_u8): Likewise.
12157 (vabdl_high_u16): Likewise.
12158 (vabdl_high_u32): Likewise.
12159 (vabdl_s8): Likewise.
12160 (vabdl_s16): Likewise.
12161 (vabdl_s32): Likewise.
12162 (vabdl_u8): Likewise.
12163 (vabdl_u16): Likewise.
12164 (vabdl_u32): Likewise.
12165 (vabdq_s8): Likewise.
12166 (vabdq_s16): Likewise.
12167 (vabdq_s32): Likewise.
12168 (vabdq_u8): Likewise.
12169 (vabdq_u16): Likewise.
12170 (vabdq_u32): Likewise.
12171 (vaddlv_s8): Likewise.
12172 (vaddlv_s16): Likewise.
12173 (vaddlv_u8): Likewise.
12174 (vaddlv_u16): Likewise.
12175 (vaddlvq_s8): Likewise.
12176 (vaddlvq_s16): Likewise.
12177 (vaddlvq_s32): Likewise.
12178 (vaddlvq_u8): Likewise.
12179 (vaddlvq_u16): Likewise.
12180 (vaddlvq_u32): Likewise.
12181 (vcvtx_f32_f64): Likewise.
12182 (vcvtx_high_f32_f64): Likewise.
12183 (vcvtxd_f32_f64): Likewise.
12184 (vmla_n_f32): Likewise.
12185 (vmla_n_s16): Likewise.
12186 (vmla_n_s32): Likewise.
12187 (vmla_n_u16): Likewise.
12188 (vmla_n_u32): Likewise.
12189 (vmla_s8): Likewise.
12190 (vmla_s16): Likewise.
12191 (vmla_s32): Likewise.
12192 (vmla_u8): Likewise.
12193 (vmla_u16): Likewise.
12194 (vmla_u32): Likewise.
12195 (vmlal_high_n_s16): Likewise.
12196 (vmlal_high_n_s32): Likewise.
12197 (vmlal_high_n_u16): Likewise.
12198 (vmlal_high_n_u32): Likewise.
12199 (vmlal_high_s8): Likewise.
12200 (vmlal_high_s16): Likewise.
12201 (vmlal_high_s32): Likewise.
12202 (vmlal_high_u8): Likewise.
12203 (vmlal_high_u16): Likewise.
12204 (vmlal_high_u32): Likewise.
12205 (vmlal_n_s16): Likewise.
12206 (vmlal_n_s32): Likewise.
12207 (vmlal_n_u16): Likewise.
12208 (vmlal_n_u32): Likewise.
12209 (vmlal_s8): Likewise.
12210 (vmlal_s16): Likewise.
12211 (vmlal_s32): Likewise.
12212 (vmlal_u8): Likewise.
12213 (vmlal_u16): Likewise.
12214 (vmlal_u32): Likewise.
12215 (vmlaq_n_f32): Likewise.
12216 (vmlaq_n_s16): Likewise.
12217 (vmlaq_n_s32): Likewise.
12218 (vmlaq_n_u16): Likewise.
12219 (vmlaq_n_u32): Likewise.
12220 (vmlaq_s8): Likewise.
12221 (vmlaq_s16): Likewise.
12222 (vmlaq_s32): Likewise.
12223 (vmlaq_u8): Likewise.
12224 (vmlaq_u16): Likewise.
12225 (vmlaq_u32): Likewise.
12226 (vmls_n_f32): Likewise.
12227 (vmls_n_s16): Likewise.
12228 (vmls_n_s32): Likewise.
12229 (vmls_n_u16): Likewise.
12230 (vmls_n_u32): Likewise.
12231 (vmls_s8): Likewise.
12232 (vmls_s16): Likewise.
12233 (vmls_s32): Likewise.
12234 (vmls_u8): Likewise.
12235 (vmls_u16): Likewise.
12236 (vmls_u32): Likewise.
12237 (vmlsl_high_n_s16): Likewise.
12238 (vmlsl_high_n_s32): Likewise.
12239 (vmlsl_high_n_u16): Likewise.
12240 (vmlsl_high_n_u32): Likewise.
12241 (vmlsl_high_s8): Likewise.
12242 (vmlsl_high_s16): Likewise.
12243 (vmlsl_high_s32): Likewise.
12244 (vmlsl_high_u8): Likewise.
12245 (vmlsl_high_u16): Likewise.
12246 (vmlsl_high_u32): Likewise.
12247 (vmlsl_n_s16): Likewise.
12248 (vmlsl_n_s32): Likewise.
12249 (vmlsl_n_u16): Likewise.
12250 (vmlsl_n_u32): Likewise.
12251 (vmlsl_s8): Likewise.
12252 (vmlsl_s16): Likewise.
12253 (vmlsl_s32): Likewise.
12254 (vmlsl_u8): Likewise.
12255 (vmlsl_u16): Likewise.
12256 (vmlsl_u32): Likewise.
12257 (vmlsq_n_f32): Likewise.
12258 (vmlsq_n_s16): Likewise.
12259 (vmlsq_n_s32): Likewise.
12260 (vmlsq_n_u16): Likewise.
12261 (vmlsq_n_u32): Likewise.
12262 (vmlsq_s8): Likewise.
12263 (vmlsq_s16): Likewise.
12264 (vmlsq_s32): Likewise.
12265 (vmlsq_u8): Likewise.
12266 (vmlsq_u16): Likewise.
12267 (vmlsq_u32): Likewise.
12268 (vmovl_high_s8): Likewise.
12269 (vmovl_high_s16): Likewise.
12270 (vmovl_high_s32): Likewise.
12271 (vmovl_high_u8): Likewise.
12272 (vmovl_high_u16): Likewise.
12273 (vmovl_high_u32): Likewise.
12274 (vmovl_s8): Likewise.
12275 (vmovl_s16): Likewise.
12276 (vmovl_s32): Likewise.
12277 (vmovl_u8): Likewise.
12278 (vmovl_u16): Likewise.
12279 (vmovl_u32): Likewise.
12280 (vmovn_high_s16): Likewise.
12281 (vmovn_high_s32): Likewise.
12282 (vmovn_high_s64): Likewise.
12283 (vmovn_high_u16): Likewise.
12284 (vmovn_high_u32): Likewise.
12285 (vmovn_high_u64): Likewise.
12286 (vmovn_s16): Likewise.
12287 (vmovn_s32): Likewise.
12288 (vmovn_s64): Likewise.
12289 (vmovn_u16): Likewise.
12290 (vmovn_u32): Likewise.
12291 (vmovn_u64): Likewise.
12292 (vmull_high_n_s16): Likewise.
12293 (vmull_high_n_s32): Likewise.
12294 (vmull_high_n_u16): Likewise.
12295 (vmull_high_n_u32): Likewise.
12296 (vmull_high_p8): Likewise.
12297 (vmull_high_s8): Likewise.
12298 (vmull_high_s16): Likewise.
12299 (vmull_high_s32): Likewise.
12300 (vmull_high_u8): Likewise.
12301 (vmull_high_u16): Likewise.
12302 (vmull_high_u32): Likewise.
12303 (vmull_n_s16): Likewise.
12304 (vmull_n_s32): Likewise.
12305 (vmull_n_u16): Likewise.
12306 (vmull_n_u32): Likewise.
12307 (vmull_p8): Likewise.
12308 (vmull_s8): Likewise.
12309 (vmull_s16): Likewise.
12310 (vmull_s32): Likewise.
12311 (vmull_u8): Likewise.
12312 (vmull_u16): Likewise.
12313 (vmull_u32): Likewise.
12314 (vpadal_s8): Likewise.
12315 (vpadal_s16): Likewise.
12316 (vpadal_s32): Likewise.
12317 (vpadal_u8): Likewise.
12318 (vpadal_u16): Likewise.
12319 (vpadal_u32): Likewise.
12320 (vpadalq_s8): Likewise.
12321 (vpadalq_s16): Likewise.
12322 (vpadalq_s32): Likewise.
12323 (vpadalq_u8): Likewise.
12324 (vpadalq_u16): Likewise.
12325 (vpadalq_u32): Likewise.
12326 (vpaddl_s8): Likewise.
12327 (vpaddl_s16): Likewise.
12328 (vpaddl_s32): Likewise.
12329 (vpaddl_u8): Likewise.
12330 (vpaddl_u16): Likewise.
12331 (vpaddl_u32): Likewise.
12332 (vpaddlq_s8): Likewise.
12333 (vpaddlq_s16): Likewise.
12334 (vpaddlq_s32): Likewise.
12335 (vpaddlq_u8): Likewise.
12336 (vpaddlq_u16): Likewise.
12337 (vpaddlq_u32): Likewise.
12338 (vpaddq_s8): Likewise.
12339 (vpaddq_s16): Likewise.
12340 (vpaddq_s32): Likewise.
12341 (vpaddq_s64): Likewise.
12342 (vpaddq_u8): Likewise.
12343 (vpaddq_u16): Likewise.
12344 (vpaddq_u32): Likewise.
12345 (vpaddq_u64): Likewise.
12346 (vqdmulh_n_s16): Likewise.
12347 (vqdmulh_n_s32): Likewise.
12348 (vqdmulhq_n_s16): Likewise.
12349 (vqdmulhq_n_s32): Likewise.
12350 (vqmovn_high_s16): Likewise.
12351 (vqmovn_high_s32): Likewise.
12352 (vqmovn_high_s64): Likewise.
12353 (vqmovn_high_u16): Likewise.
12354 (vqmovn_high_u32): Likewise.
12355 (vqmovn_high_u64): Likewise.
12356 (vqmovun_high_s16): Likewise.
12357 (vqmovun_high_s32): Likewise.
12358 (vqmovun_high_s64): Likewise.
12359 (vqrdmulh_n_s16): Likewise.
12360 (vqrdmulh_n_s32): Likewise.
12361 (vqrdmulhq_n_s16): Likewise.
12362 (vqrdmulhq_n_s32): Likewise.
12363 (vrsqrte_u32): Likewise.
12364 (vrsqrteq_u32): Likewise.
12365 (vtst_p8): Likewise.
12366 (vtst_p16): Likewise.
12367 (vtst_p64): Likewise.
12368 (vtstq_p8): Likewise.
12369 (vtstq_p16): Likewise.
12370 (vtstq_p64): Likewise.
12371 (vaddlv_s32): Likewise.
12372 (vaddlv_u32): Likewise.
12373 (vqtbl1_p8): Likewise.
12374 (vqtbl1_s8): Likewise.
12375 (vqtbl1_u8): Likewise.
12376 (vqtbl1q_p8): Likewise.
12377 (vqtbl1q_s8): Likewise.
12378 (vqtbl1q_u8): Likewise.
12379 (vqtbx1_s8): Likewise.
12380 (vqtbx1_u8): Likewise.
12381 (vqtbx1_p8): Likewise.
12382 (vqtbx1q_s8): Likewise.
12383 (vqtbx1q_u8): Likewise.
12384 (vqtbx1q_p8): Likewise.
12385 (vtbl1_s8): Likewise.
12386 (vtbl1_u8): Likewise.
12387 (vtbl1_p8): Likewise.
12388 (vtbl2_s8): Likewise.
12389 (vtbl2_u8): Likewise.
12390 (vtbl2_p8): Likewise.
12391 (vtbl3_s8): Likewise.
12392 (vtbl3_u8): Likewise.
12393 (vtbl3_p8): Likewise.
12394 (vtbl4_s8): Likewise.
12395 (vtbl4_u8): Likewise.
12396 (vtbl4_p8): Likewise.
12397 (vtbx2_s8): Likewise.
12398 (vtbx2_u8): Likewise.
12399 (vtbx2_p8): Likewise.
12400 (vld1_f32): Likewise.
12401 (vld1_f64): Likewise.
12402 (vld1_p8): Likewise.
12403 (vld1_p16): Likewise.
12404 (vld1_p64): Likewise.
12405 (vld1_s8): Likewise.
12406 (vld1_s16): Likewise.
12407 (vld1_s32): Likewise.
12408 (vld1_s64): Likewise.
12409 (vld1_u8): Likewise.
12410 (vld1_u16): Likewise.
12411 (vld1_u32): Likewise.
12412 (vld1_u64): Likewise.
12413 (vld1q_f32): Likewise.
12414 (vld1q_f64): Likewise.
12415 (vld1q_p8): Likewise.
12416 (vld1q_p16): Likewise.
12417 (vld1q_p64): Likewise.
12418 (vld1q_s8): Likewise.
12419 (vld1q_s16): Likewise.
12420 (vld1q_s32): Likewise.
12421 (vld1q_s64): Likewise.
12422 (vld1q_u8): Likewise.
12423 (vld1q_u16): Likewise.
12424 (vld1q_u32): Likewise.
12425 (vld1q_u64): Likewise.
12426 (vpmax_s8): Likewise.
12427 (vpmax_s16): Likewise.
12428 (vpmax_s32): Likewise.
12429 (vpmax_u8): Likewise.
12430 (vpmax_u16): Likewise.
12431 (vpmax_u32): Likewise.
12432 (vpmaxq_s8): Likewise.
12433 (vpmaxq_s16): Likewise.
12434 (vpmaxq_s32): Likewise.
12435 (vpmaxq_u8): Likewise.
12436 (vpmaxq_u16): Likewise.
12437 (vpmaxq_u32): Likewise.
12438 (vpmax_f32): Likewise.
12439 (vpmaxq_f32): Likewise.
12440 (vpmaxq_f64): Likewise.
12441 (vpmaxqd_f64): Likewise.
12442 (vpmaxs_f32): Likewise.
12443 (vpmaxnm_f32): Likewise.
12444 (vpmaxnmq_f32): Likewise.
12445 (vpmaxnmq_f64): Likewise.
12446 (vpmaxnmqd_f64): Likewise.
12447 (vpmaxnms_f32): Likewise.
12448 (vpmin_s8): Likewise.
12449 (vpmin_s16): Likewise.
12450 (vpmin_s32): Likewise.
12451 (vpmin_u8): Likewise.
12452 (vpmin_u16): Likewise.
12453 (vpmin_u32): Likewise.
12454 (vpminq_s8): Likewise.
12455 (vpminq_s16): Likewise.
12456 (vpminq_s32): Likewise.
12457 (vpminq_u8): Likewise.
12458 (vpminq_u16): Likewise.
12459 (vpminq_u32): Likewise.
12460 (vpmin_f32): Likewise.
12461 (vpminq_f32): Likewise.
12462 (vpminq_f64): Likewise.
12463 (vpminqd_f64): Likewise.
12464 (vpmins_f32): Likewise.
12465 (vpminnm_f32): Likewise.
12466 (vpminnmq_f32): Likewise.
12467 (vpminnmq_f64): Likewise.
12468 (vpminnmqd_f64): Likewise.
12469 (vpminnms_f32): Likewise.
12470 (vmla_f32): Likewise.
12471 (vmlaq_f32): Likewise.
12472 (vmlaq_f64): Likewise.
12473 (vmls_f32): Likewise.
12474 (vmlsq_f32): Likewise.
12475 (vmlsq_f64): Likewise.
12476 (vqtbl2_s8): Likewise.
12477 (vqtbl2_u8): Likewise.
12478 (vqtbl2_p8): Likewise.
12479 (vqtbl2q_s8): Likewise.
12480 (vqtbl2q_u8): Likewise.
12481 (vqtbl2q_p8): Likewise.
12482 (vqtbl3_s8): Likewise.
12483 (vqtbl3_u8): Likewise.
12484 (vqtbl3_p8): Likewise.
12485 (vqtbl3q_s8): Likewise.
12486 (vqtbl3q_u8): Likewise.
12487 (vqtbl3q_p8): Likewise.
12488 (vqtbl4_s8): Likewise.
12489 (vqtbl4_u8): Likewise.
12490 (vqtbl4_p8): Likewise.
12491 (vqtbl4q_s8): Likewise.
12492 (vqtbl4q_u8): Likewise.
12493 (vqtbl4q_p8): Likewise.
12494 (vqtbx2_s8): Likewise.
12495 (vqtbx2_u8): Likewise.
12496 (vqtbx2_p8): Likewise.
12497 (vqtbx2q_s8): Likewise.
12498 (vqtbx2q_u8): Likewise.
12499 (vqtbx2q_p8): Likewise.
12500 (vqtbx3_s8): Likewise.
12501 (vqtbx3_u8): Likewise.
12502 (vqtbx3_p8): Likewise.
12503 (vqtbx3q_s8): Likewise.
12504 (vqtbx3q_u8): Likewise.
12505 (vqtbx3q_p8): Likewise.
12506 (vqtbx4_s8): Likewise.
12507 (vqtbx4_u8): Likewise.
12508 (vqtbx4_p8): Likewise.
12509 (vqtbx4q_s8): Likewise.
12510 (vqtbx4q_u8): Likewise.
12511 (vqtbx4q_p8): Likewise.
12512 (vrev16_p8): Likewise.
12513 (vrev16_s8): Likewise.
12514 (vrev16_u8): Likewise.
12515 (vrev16q_p8): Likewise.
12516 (vrev16q_s8): Likewise.
12517 (vrev16q_u8): Likewise.
12518 (vrev32_p8): Likewise.
12519 (vrev32_p16): Likewise.
12520 (vrev32_s8): Likewise.
12521 (vrev32_s16): Likewise.
12522 (vrev32_u8): Likewise.
12523 (vrev32_u16): Likewise.
12524 (vrev32q_p8): Likewise.
12525 (vrev32q_p16): Likewise.
12526 (vrev32q_s8): Likewise.
12527 (vrev32q_s16): Likewise.
12528 (vrev32q_u8): Likewise.
12529 (vrev32q_u16): Likewise.
12530 (vrev64_f32): Likewise.
12531 (vrev64_p8): Likewise.
12532 (vrev64_p16): Likewise.
12533 (vrev64_s8): Likewise.
12534 (vrev64_s16): Likewise.
12535 (vrev64_s32): Likewise.
12536 (vrev64_u8): Likewise.
12537 (vrev64_u16): Likewise.
12538 (vrev64_u32): Likewise.
12539 (vrev64q_f32): Likewise.
12540 (vrev64q_p8): Likewise.
12541 (vrev64q_p16): Likewise.
12542 (vrev64q_s8): Likewise.
12543 (vrev64q_s16): Likewise.
12544 (vrev64q_s32): Likewise.
12545 (vrev64q_u8): Likewise.
12546 (vrev64q_u16): Likewise.
12547 (vrev64q_u32): Likewise.
12548 (vsha1cq_u32): Likewise.
12549 (vsha1mq_u32): Likewise.
12550 (vsha1pq_u32): Likewise.
12551 (vsha1h_u32): Likewise.
12552 (vsha1su0q_u32): Likewise.
12553 (vsha1su1q_u32): Likewise.
12554 (vsha256hq_u32): Likewise.
12555 (vsha256h2q_u32): Likewise.
12556 (vsha256su0q_u32): Likewise.
12557 (vsha256su1q_u32): Likewise.
12558 (vmull_p64): Likewise.
12559 (vmull_high_p64): Likewise.
12560 (vsqrt_f32): Likewise.
12561 (vsqrtq_f32): Likewise.
12562 (vsqrt_f64): Likewise.
12563 (vsqrtq_f64): Likewise.
12564 (vst1_f32): Likewise.
12565 (vst1_f64): Likewise.
12566 (vst1_p8): Likewise.
12567 (vst1_p16): Likewise.
12568 (vst1_p64): Likewise.
12569 (vst1_s8): Likewise.
12570 (vst1_s16): Likewise.
12571 (vst1_s32): Likewise.
12572 (vst1_s64): Likewise.
12573 (vst1_u8): Likewise.
12574 (vst1_u16): Likewise.
12575 (vst1_u32): Likewise.
12576 (vst1_u64): Likewise.
12577 (vst1q_f32): Likewise.
12578 (vst1q_f64): Likewise.
12579 (vst1q_p8): Likewise.
12580 (vst1q_p16): Likewise.
12581 (vst1q_p64): Likewise.
12582 (vst1q_s8): Likewise.
12583 (vst1q_s16): Likewise.
12584 (vst1q_s32): Likewise.
12585 (vst1q_s64): Likewise.
12586 (vst1q_u8): Likewise.
12587 (vst1q_u16): Likewise.
12588 (vst1q_u32): Likewise.
12589 (vst1q_u64): Likewise.
12590 (vst1_s64_x2): Likewise.
12591 (vst1_u64_x2): Likewise.
12592 (vst1_f64_x2): Likewise.
12593 (vst1_s8_x2): Likewise.
12594 (vst1_p8_x2): Likewise.
12595 (vst1_s16_x2): Likewise.
12596 (vst1_p16_x2): Likewise.
12597 (vst1_s32_x2): Likewise.
12598 (vst1_u8_x2): Likewise.
12599 (vst1_u16_x2): Likewise.
12600 (vst1_u32_x2): Likewise.
12601 (vst1_f16_x2): Likewise.
12602 (vst1_f32_x2): Likewise.
12603 (vst1_p64_x2): Likewise.
12604 (vst1q_s8_x2): Likewise.
12605 (vst1q_p8_x2): Likewise.
12606 (vst1q_s16_x2): Likewise.
12607 (vst1q_p16_x2): Likewise.
12608 (vst1q_s32_x2): Likewise.
12609 (vst1q_s64_x2): Likewise.
12610 (vst1q_u8_x2): Likewise.
12611 (vst1q_u16_x2): Likewise.
12612 (vst1q_u32_x2): Likewise.
12613 (vst1q_u64_x2): Likewise.
12614 (vst1q_f16_x2): Likewise.
12615 (vst1q_f32_x2): Likewise.
12616 (vst1q_f64_x2): Likewise.
12617 (vst1q_p64_x2): Likewise.
12618 (vst1_s64_x3): Likewise.
12619 (vst1_u64_x3): Likewise.
12620 (vst1_f64_x3): Likewise.
12621 (vst1_s8_x3): Likewise.
12622 (vst1_p8_x3): Likewise.
12623 (vst1_s16_x3): Likewise.
12624 (vst1_p16_x3): Likewise.
12625 (vst1_s32_x3): Likewise.
12626 (vst1_u8_x3): Likewise.
12627 (vst1_u16_x3): Likewise.
12628 (vst1_u32_x3): Likewise.
12629 (vst1_f16_x3): Likewise.
12630 (vst1_f32_x3): Likewise.
12631 (vst1_p64_x3): Likewise.
12632 (vst1q_s8_x3): Likewise.
12633 (vst1q_p8_x3): Likewise.
12634 (vst1q_s16_x3): Likewise.
12635 (vst1q_p16_x3): Likewise.
12636 (vst1q_s32_x3): Likewise.
12637 (vst1q_s64_x3): Likewise.
12638 (vst1q_u8_x3): Likewise.
12639 (vst1q_u16_x3): Likewise.
12640 (vst1q_u32_x3): Likewise.
12641 (vst1q_u64_x3): Likewise.
12642 (vst1q_f16_x3): Likewise.
12643 (vst1q_f32_x3): Likewise.
12644 (vst1q_f64_x3): Likewise.
12645 (vst1q_p64_x3): Likewise.
12646 (vst2_s64): Likewise.
12647 (vst2_u64): Likewise.
12648 (vst2_f64): Likewise.
12649 (vst2_s8): Likewise.
12650 (vst2_p8): Likewise.
12651 (vst2_s16): Likewise.
12652 (vst2_p16): Likewise.
12653 (vst2_s32): Likewise.
12654 (vst2_u8): Likewise.
12655 (vst2_u16): Likewise.
12656 (vst2_u32): Likewise.
12657 (vst2_f16): Likewise.
12658 (vst2_f32): Likewise.
12659 (vst2_p64): Likewise.
12660 (vst2q_s8): Likewise.
12661 (vst2q_p8): Likewise.
12662 (vst2q_s16): Likewise.
12663 (vst2q_p16): Likewise.
12664 (vst2q_s32): Likewise.
12665 (vst2q_s64): Likewise.
12666 (vst2q_u8): Likewise.
12667 (vst2q_u16): Likewise.
12668 (vst2q_u32): Likewise.
12669 (vst2q_u64): Likewise.
12670 (vst2q_f16): Likewise.
12671 (vst2q_f32): Likewise.
12672 (vst2q_f64): Likewise.
12673 (vst2q_p64): Likewise.
12674 (vst3_s64): Likewise.
12675 (vst3_u64): Likewise.
12676 (vst3_f64): Likewise.
12677 (vst3_s8): Likewise.
12678 (vst3_p8): Likewise.
12679 (vst3_s16): Likewise.
12680 (vst3_p16): Likewise.
12681 (vst3_s32): Likewise.
12682 (vst3_u8): Likewise.
12683 (vst3_u16): Likewise.
12684 (vst3_u32): Likewise.
12685 (vst3_f16): Likewise.
12686 (vst3_f32): Likewise.
12687 (vst3_p64): Likewise.
12688 (vst3q_s8): Likewise.
12689 (vst3q_p8): Likewise.
12690 (vst3q_s16): Likewise.
12691 (vst3q_p16): Likewise.
12692 (vst3q_s32): Likewise.
12693 (vst3q_s64): Likewise.
12694 (vst3q_u8): Likewise.
12695 (vst3q_u16): Likewise.
12696 (vst3q_u32): Likewise.
12697 (vst3q_u64): Likewise.
12698 (vst3q_f16): Likewise.
12699 (vst3q_f32): Likewise.
12700 (vst3q_f64): Likewise.
12701 (vst3q_p64): Likewise.
12702 (vst4_s64): Likewise.
12703 (vst4_u64): Likewise.
12704 (vst4_f64): Likewise.
12705 (vst4_s8): Likewise.
12706 (vst4_p8): Likewise.
12707 (vst4_s16): Likewise.
12708 (vst4_p16): Likewise.
12709 (vst4_s32): Likewise.
12710 (vst4_u8): Likewise.
12711 (vst4_u16): Likewise.
12712 (vst4_u32): Likewise.
12713 (vst4_f16): Likewise.
12714 (vst4_f32): Likewise.
12715 (vst4_p64): Likewise.
12716 (vst4q_s8): Likewise.
12717 (vst4q_p8): Likewise.
12718 (vst4q_s16): Likewise.
12719 (vst4q_p16): Likewise.
12720 (vst4q_s32): Likewise.
12721 (vst4q_s64): Likewise.
12722 (vst4q_u8): Likewise.
12723 (vst4q_u16): Likewise.
12724 (vst4q_u32): Likewise.
12725 (vst4q_u64): Likewise.
12726 (vst4q_f16): Likewise.
12727 (vst4q_f32): Likewise.
12728 (vst4q_f64): Likewise.
12729 (vst4q_p64): Likewise.
12730 (vtbx4_s8): Likewise.
12731 (vtbx4_u8): Likewise.
12732 (vtbx4_p8): Likewise.
12733 (vtrn_f32): Likewise.
12734 (vtrn_p8): Likewise.
12735 (vtrn_p16): Likewise.
12736 (vtrn_s8): Likewise.
12737 (vtrn_s16): Likewise.
12738 (vtrn_s32): Likewise.
12739 (vtrn_u8): Likewise.
12740 (vtrn_u16): Likewise.
12741 (vtrn_u32): Likewise.
12742 (vtrnq_f32): Likewise.
12743 (vtrnq_p8): Likewise.
12744 (vtrnq_p16): Likewise.
12745 (vtrnq_s8): Likewise.
12746 (vtrnq_s16): Likewise.
12747 (vtrnq_s32): Likewise.
12748 (vtrnq_u8): Likewise.
12749 (vtrnq_u16): Likewise.
12750 (vtrnq_u32): Likewise.
12751 (vrsqrte_f16): Likewise.
12752 (vrsqrteq_f16): Likewise.
12753 (vsqrt_f16): Likewise.
12754 (vsqrtq_f16): Likewise.
12755 (vabd_f16): Likewise.
12756 (vabdq_f16): Likewise.
12757 (vpadd_f16): Likewise.
12758 (vpaddq_f16): Likewise.
12759 (vpmax_f16): Likewise.
12760 (vpmaxq_f16): Likewise.
12761 (vpmaxnm_f16): Likewise.
12762 (vpmaxnmq_f16): Likewise.
12763 (vpmin_f16): Likewise.
12764 (vpminq_f16): Likewise.
12765 (vpminnm_f16): Likewise.
12766 (vpminnmq_f16): Likewise.
12767 (vrsqrts_f16): Likewise.
12768 (vrsqrtsq_f16): Likewise.
12770 2019-09-25 Richard Biener <rguenther@suse.de>
12772 PR tree-optimization/91896
12773 * tree-vect-loop.c (vectorizable_reduction): The single
12774 def-use cycle optimization cannot apply when there's more
12775 than one pattern stmt involved.
12777 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12779 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12780 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12781 (reload_macho_picbase_<mode>): Likewise.
12783 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12785 * config/rs6000/rs6000.md: Move darwin.md include until
12786 after the definition of the mode iterators.
12788 2019-09-23 Martin Sebor <msebor@redhat.com>
12790 PR tree-optimization/91570
12791 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12792 non-constant minlen, maxlen and maxbound.
12794 2019-09-24 Richard Biener <rguenther@suse.de>
12796 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12798 (_stmt_vec_info::cond_reduc_code): ... this.
12799 (_stmt_vec_info::induc_cond_initial_val): Add.
12800 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12801 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12802 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12803 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12804 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12805 the reduction code.
12806 (vect_create_epilog_for_reduction): Drop special
12807 induction condition reduction params, pass in reduction code
12809 (vectorizable_reduction): Perform condition reduction kind
12810 selection only at analysis time. Adjust passing on state.
12812 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12814 * config/aarch64/aarch64.md (mov<mode>): Don't call
12815 aarch64_split_dimode_const_store on volatile MEM.
12817 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12819 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12820 Update hwcap string for fp16fml.
12822 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12824 PR middle-end/91866
12825 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12826 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12828 2019-09-24 Martin Liska <mliska@suse.cz>
12830 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12831 instead of if-elseif-elseif-...
12832 * gimple-expr.c (extract_ops_from_tree): Likewise.
12833 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12834 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12836 2019-09-24 Martin Jambor <mjambor@suse.cz>
12839 * ipa-param-manipulation.c (carry_over_param): Make a method of
12840 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12841 in case of a context mismatch.
12842 (ipa_param_body_adjustments::common_initialization): Adjust call to
12844 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12845 private method carry_over_param.
12847 2019-09-24 Martin Jambor <mjambor@suse.cz>
12850 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12852 2019-09-24 Richard Biener <rguenther@suse.de>
12854 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12857 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12859 * config/arm/t-arm (arm-builtins.o): Add dependency on
12860 arm_acle_builtins.def.
12862 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12865 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12866 canonical CONST_INTs. Use gen_rtvec.
12868 2019-09-23 Richard Biener <rguenther@suse.de>
12870 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12871 avoid adjusting by + 0 or * 1.
12872 (vect_create_epilog_for_reduction): Get reduction code only
12873 when necessary. Deal with adjustment_def only when necessary.
12875 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12877 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12880 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12883 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12886 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12888 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12889 code. Merge code blocks with common conditionals. Use declared
12890 macro instead of a magic number for PIC level.
12892 2019-09-21 Martin Sebor <msebor@redhat.com>
12894 PR middle-end/91830
12895 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12896 Simplify computation of the offset of the referenced subobject.
12898 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12900 * config/darwin.c (machopic_legitimize_pic_address): Check
12901 for lra not reload.
12903 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12905 * ira-conflicts.c (can_use_same_reg_p): New function.
12906 (process_reg_shuffles): Take an insn parameter. Ignore cases
12907 in which input operand op_num could seemingly never be allocated
12908 to the same register as the destination.
12909 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12911 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12913 * simplify-rtx.c (neg_const_int): Replace with...
12914 (neg_poly_int_rtx): ...this new function.
12915 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12916 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12917 (simplify_plus_minus): Likewise for constant terms here.
12919 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12921 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12922 HOST_WIDE_PRINT_UNSIGNED.
12924 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12926 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12929 2019-09-20 Maya Rashish <coypu@sdf.org>
12932 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12933 Define to speculation_safe_value_not_needed.
12935 2019-09-20 Richard Biener <rguenther@suse.de>
12936 Uros Bizjak <ubizjak@gmail.com>
12939 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12941 (general_scalar_chain::convert_op): Force not suitable memory
12942 operands to a register.
12944 2019-09-20 Richard Biener <rguenther@suse.de>
12946 PR tree-optimization/91821
12947 * tree-vect-loop.c (check_reduction_path): Check we can compute
12949 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12950 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12951 operands in canonical order.
12952 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12953 STMT_VINFO_REDUC_IDX.
12954 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12955 (STMT_VINFO_REDUC_IDX): Likewise.
12957 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12960 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12962 2019-09-20 Richard Biener <rguenther@suse.de>
12964 PR tree-optimization/91822
12965 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12967 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12968 for reduc_index in nested cycles, adjust vectorizable_condition
12970 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12972 (vect_analyze_stmt): Adjust.
12973 (vect_transform_stmt): Likewise.
12975 2019-09-20 Richard Biener <rguenther@suse.de>
12978 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12979 Ensure there's a sequence point between allocating the new register
12980 and passing a reference to a reg via regno_reg_rtx.
12982 2019-09-20 Martin Jambor <mjambor@suse.cz>
12984 * coretypes.h (cgraph_edge): Declare.
12985 * ipa-param-manipulation.c: Rewrite.
12986 * ipa-param-manipulation.h: Likewise.
12987 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12988 (OBJS): Added ipa-sra.o.
12989 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12990 and ref_p, added fields param_adjustments and performed_splits.
12991 (struct cgraph_clone_info): Remove ags_to_skip and
12992 combined_args_to_skip, new field param_adjustments.
12993 (cgraph_node::create_clone): Changed parameters to use
12994 ipa_param_adjustments.
12995 (cgraph_node::create_virtual_clone): Likewise.
12996 (cgraph_node::create_virtual_clone_with_body): Likewise.
12997 (tree_function_versioning): Likewise.
12998 (cgraph_build_function_type_skip_args): Removed.
12999 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13000 using ipa_param_adjustments.
13001 (clone_of_p): Likewise.
13002 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13003 (build_function_decl_skip_args): Likewise.
13004 (duplicate_thunk_for_node): Adjust parameters using
13005 ipa_param_body_adjustments, copy param_adjustments instead of
13007 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13008 (cgraph_node::create_virtual_clone): Likewise.
13009 (cgraph_node::create_version_clone_with_body): Likewise.
13010 (cgraph_materialize_clone): Likewise.
13011 (symbol_table::materialize_all_clones): Likewise.
13012 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13013 ipa_replace_map check.
13014 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13015 (initialize_node_lattices): Make aware that some parameters might have
13016 already been removed.
13017 (want_remove_some_param_p): New function.
13018 (create_specialized_node): Convert to using ipa_param_adjustments and
13019 deal with possibly pre-existing adjustments.
13020 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13021 (output_node_opt_summary): Do not stream removed fields. Stream
13022 parameter adjustments instead of argumetns to skip.
13023 (input_node_opt_summary): Likewise.
13024 (input_node_opt_summary): Likewise.
13025 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13026 * lto-streamer.h (lto_section_type): Likewise.
13027 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13029 (copy_decl_to_var): Declare.
13030 * tree-inline.c (update_clone_info): Do not remap old_tree.
13031 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13032 statements, walk all extra generated statements and remap their
13034 (redirect_all_calls): Add killed SSA names to a hash set.
13035 (remap_ssa_name): Do not remap killed SSA names.
13036 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13037 half of functionality moved to ipa_param_body_adjustments.
13038 (copy_decl_to_var): Make exported.
13039 (copy_body): Destroy killed_new_ssa_names hash set.
13040 (expand_call_inline): Remap performed splits.
13041 (update_clone_info): Likewise.
13042 (tree_function_versioning): Simplify tree_map processing. Updated to
13043 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13044 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13045 for the new interface.
13046 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13047 (simd_clone_compute_base_data_type): Likewise.
13048 (simd_clone_init_simd_arrays): Adjust for the new interface.
13049 (simd_clone_adjust_argument_types): Likewise.
13050 (struct modify_stmt_info): Likewise.
13051 (ipa_simd_modify_stmt_ops): Likewise.
13052 (ipa_simd_modify_function_body): Likewise.
13053 (simd_clone_adjust): Likewise.
13054 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13055 (type_internals_preclude_sra_p): Make public.
13056 * tree-sra.h: New file.
13057 * ipa-inline-transform.c (save_inline_function_body): Update to
13058 refelct new tree_function_versioning signature.
13059 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13060 ipa_param_adjustments to get current parameter indices.
13061 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13062 (ipcp_update_bits): Likewise.
13063 (ipcp_update_vr): Likewise.
13064 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13065 * ipa-sra.c: New file.
13066 * multiple_target.c (create_target_clone): Update to reflet new type
13067 of create_version_clone_with_body.
13068 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13069 tree_function_versioning.
13070 (modify_function): Update to reflect new type of
13071 tree_function_versioning.
13072 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13073 * passes.def: Remove old IPA-SRA and add new one.
13074 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13075 (make_pass_ipa_sra): Declare.
13076 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13078 * doc/invoke.texi (ipa-sra-max-replacements): New.
13080 2019-09-19 Martin Sebor <msebor@redhat.com>
13082 PR middle-end/91631
13083 * builtins.c (component_size): Correct trailing array computation,
13084 rename to component_ref_size and move...
13085 (compute_objsize): Adjust.
13086 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13087 (builtin_access::strict): Do not consider memmove.
13088 (builtin_access::write_off): New function.
13089 (builtin_memref::builtin_memref): Initialize refsize.
13090 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13092 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13094 (builtin_access::builtin_access): Initialize dstoff to destination
13095 refeence offset here instead of in maybe_diag_overlap. Adjust
13096 referencess even to unrelated objects. Adjust sizrange of bounded
13097 string functions to reflect bound. For strcat, adjust destination
13098 sizrange by that of source.
13099 (builtin_access::strcat_overlap): Adjust offsets and sizes
13100 to reflect the increase in destination sizrange above.
13101 (builtin_access::overlap): Do not set dstoff here but instead
13102 in builtin_access::builtin_access.
13103 (check_bounds_or_overlap): Use builtin_access::write_off.
13104 (maybe_diag_access_bounds): Add argument. Add informational notes.
13105 (dump_builtin_memref, dump_builtin_access): New functions.
13106 * tree.c (component_ref_size): ...to here.
13107 * tree.h (component_ref_size): Declare.
13108 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13109 nul in the size of the source string.
13111 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13114 * doc/cpp.texi: Document support for extended characters in
13116 * doc/cppopts.texi: Likewise.
13118 2019-09-19 Richard Biener <rguenther@suse.de>
13120 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13121 (check_reduction_path): New overload having the path as result.
13122 (vect_is_simple_reduction): From the detected reduction
13123 path build a SLP reduction chain if possible.
13125 2019-09-19 Richard Biener <rguenther@suse.de>
13128 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13129 Force operand to a register if it isn't nonimmediate_operand.
13131 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13133 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13134 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13135 (logical_op): Remove code attribute.
13136 (logical_OP): Likewise.
13138 2019-09-19 Martin Liska <mliska@suse.cz>
13140 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13141 Use proper casting.
13143 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13145 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13148 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13149 for NE comparison of TImode values.
13150 (aarch64_emit_load_exclusive): Add support for TImode.
13151 (aarch64_emit_store_exclusive): Likewise.
13152 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13153 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13154 Change iterator from ALLI to ALLI_TI.
13155 (@atomic_compare_and_swap<JUST_TI>): New.
13156 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13157 (aarch64_load_exclusive_pair): New.
13158 (aarch64_store_exclusive_pair): New.
13159 * config/aarch64/iterators.md (JUST_TI): New.
13161 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13162 strong_zero_p for aarch64_track_speculation; unify some code paths;
13163 use aarch64_gen_compare_reg instead of open-coding.
13165 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13166 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13167 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13168 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13169 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13170 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13171 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13172 (atomic_<atomic_op><ALLI>): Likewise.
13173 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13174 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13175 * doc/invoke.texi: Document -moutline-atomics.
13177 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13179 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13180 trivial predicate for condition branch.
13181 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13183 (compute_bb_predicates): Update predicate based on post-dominating
13185 (analyze_function_body): Calculate post-dominating information.
13187 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13189 * tree-vectorizer.h (vectorizable_condition): Take an int
13190 reduction index instead of a boolean flag.
13191 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13192 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13193 reductions if the reduction accumulator is the "then" rather
13194 than the "else" value.
13195 (vect_analyze_stmt): Update call accordingly.
13196 (vect_transform_stmt): Likewise.
13197 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13198 asserting that the index is > 0.
13200 2019-09-19 Martin Liska <mliska@suse.cz>
13202 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13203 (sort_congruence_classes_by_decl_uid): Likewise.
13204 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13206 (sem_item_optimizer::merge_classes): Likewise.
13208 2019-09-19 Richard Biener <rguenther@suse.de>
13210 PR tree-optimization/91812
13211 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13214 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13216 * defaults.h (TARGET_UNIT): New macro.
13217 (target_unit): New type.
13218 * rtl.h (native_encode_rtx, native_decode_rtx)
13219 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13220 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13221 * rtlanal.c (subreg_lsb_1): Delete.
13222 (subreg_size_lsb): New function.
13223 * simplify-rtx.c: Include rtx-vector-builder.h
13224 (simplify_immed_subreg): Delete.
13225 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13226 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13228 (simplify_subreg): Use them.
13229 (test_vector_subregs_modes, test_vector_subregs_repeating)
13230 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13231 (test_vector_subregs): New functions.
13232 (test_vector_ops): Call test_vector_subregs for integer vector
13233 modes with at least 2 elements.
13235 2019-09-19 Richard Biener <rguenther@suse.de>
13237 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13238 LOOP_VINFO_OPERANDS_SWAPPED.
13239 (parloops_is_simple_reduction): Likewise.
13240 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13241 initialize operands_swapped.
13242 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13243 (vect_is_slp_reduction): Do not swap operands.
13244 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13245 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13247 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13250 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13251 Add avx_partial_xmm_update.
13253 2019-09-18 Jim Wilson <jimw@sifive.com>
13256 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13257 (riscv_move_integer): Likewise.
13258 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13259 riscv_move_integer arg.
13260 (riscv_legitimize_move): Likewise.
13261 (riscv_force_temporary): New parameter in_splitter. Don't call
13263 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13265 (riscv_add_offset): Likewise.
13266 (riscv_split_symbol): New parameter in_splitter. Pass to
13267 riscv_force_temporary.
13268 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13270 (riscv_move_integer): New parameter in_splitter. New local
13271 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13273 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13274 riscv_split_symbol, and riscv_force_temporary args.
13275 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13276 riscv_move_integer arg.
13277 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13279 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13282 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13283 hard register store cost to 6.
13285 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13288 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13289 pseudo register store cost from 3 to 6 to make it the same as
13292 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13295 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13296 (one_cmpldi2): Likewise.
13297 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13298 of the constant parts is simple.
13299 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13300 (logical_op): Add new code attribute.
13301 (logical_OP): Likewise.
13302 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13303 (arm_iordi_operand): Add predicate.
13304 (arm_xordi_operand): Add predicate.
13306 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13308 * config/arm/arm.md (maddsidi4): Remove expander.
13309 (mulsidi3adddi): Remove pattern.
13310 (mulsidi3adddi_v6): Likewise.
13311 (mulsidi3_nov6): Likewise.
13312 (mulsidi3_v6): Likewise.
13313 (umulsidi3): Remove expander.
13314 (umulsidi3_nov6): Remove pattern.
13315 (umulsidi3_v6): Likewise.
13316 (umulsidi3adddi): Likewise.
13317 (umulsidi3adddi_v6): Likewise.
13318 (<Us>mulsidi3): Add combined expander.
13319 (<Us>maddsidi4): Likewise.
13320 (<US>mull): Add combined umull and smull pattern.
13321 (<US>mlal): Likewise.
13322 * config/arm/iterators.md (Us): Add new iterator.
13324 2019-09-18 Richard Biener <rguenther@suse.de>
13326 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13328 (vectorize_fold_left_reduction): Remove assert.
13329 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13330 operand in position 2. Remove assert.
13332 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13334 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13335 (smulsi3_highpart_nov6): Remove pattern.
13336 (smulsi3_highpart_v6): Likewise.
13337 (umulsi3_highpart): Likewise.
13338 (umulsi3_highpart_nov6): Likewise.
13339 (umulsi3_highpart_v6): Likewise.
13340 (<US>mull_high): Add new combined multiply pattern.
13342 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13344 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13345 (arm_mulsi3_v6): Likewise.
13346 (mulsi3addsi_v6): Likewise.
13347 (mulsi3subsi): Likewise.
13348 (mul): Add new multiply pattern.
13352 2019-09-18 Richard Biener <rguenther@suse.de>
13354 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13355 (parloops_valid_reduction_input_p): Copy from
13356 valid_reduction_input_p.
13357 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13358 (parloops_needs_fold_left_reduction_p): Copy from
13359 needs_fold_left_reduction_p.
13360 (parloops_is_simple_reduction): Copy from
13361 vect_is_simple_reduction.
13362 (parloops_force_simple_reduction): Copy from
13363 vect_force_simple_reduction.
13364 (gather_scalar_reductions): Adjust.
13365 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13366 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13368 2019-09-18 Richard Biener <rguenther@suse.de>
13370 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13371 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13373 (vect_create_epilog_for_reduction): Remove dead code.
13375 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13377 * varasm.c (assemble_real): Generate canonical const_ints.
13379 2019-09-18 Richard Biener <rguenther@suse.de>
13382 * lto-streamer-in.c (input_eh_regions): Move EH init to
13383 lto_materialize_function.
13384 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13387 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13389 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13392 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13394 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13395 of checking specifically for INTEGER_CST.
13397 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13399 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13400 sizes instead of uhwi sizes.
13402 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13404 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13405 (add_const_value_attribute): Handle CONST_POLY_INT.
13407 2019-09-18 Martin Liska <mliska@suse.cz>
13409 * dbgcnt.def (store_merging): New counter.
13410 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13411 Use it in store merging.
13413 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13415 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13417 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13418 * config/arm/arm.c (arm_sched_variable_issue): New function.
13419 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13421 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13423 * config/arm/types.md (no_reservation): New reservation.
13424 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13426 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13427 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13428 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13429 * config/arm/arm1020e.md (1020alu_op): Likewise.
13430 * config/arm/arm1026ejs.md (alu_op): Likewise.
13431 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13432 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13433 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13434 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13435 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13436 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13437 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13438 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13439 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13440 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13441 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13442 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13443 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13444 * config/arm/fa526.md (526_alu_op): Likewise.
13445 * config/arm/fa606te.md (606te_alu_op): Likewise.
13446 * config/arm/fa626te.md (626te_alu_op): Likewise.
13447 * config/arm/fa726te.md (726te_alu_op): Likewise.
13448 * config/arm/xgene1.md (xgene1_nop): Likewise.
13450 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13452 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13453 "no_insn" to "branch".
13455 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13457 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13459 2019-09-17 Richard Biener <rguenther@suse.de>
13462 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13463 was missing generate locations only once.
13465 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13468 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13470 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13471 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13472 for switch default case using range analysis information.
13474 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13477 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13478 mode attributed is supported by FDPIC.
13480 2019-09-17 Richard Biener <rguenther@suse.de>
13482 PR tree-optimization/91790
13483 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13484 use the correct DR for setting up realignment.
13486 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13489 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13490 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13491 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13492 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13494 2019-09-16 Jason Merrill <jason@redhat.com>
13496 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13498 2019-09-16 Martin Liska <mliska@suse.cz>
13500 * gimple-fold.c (or_comparisons_1): Remove rules moved
13502 * match.pd: ... here.
13504 2019-09-16 Martin Liska <mliska@suse.cz>
13506 * gimple-fold.c (or_comparisons_1): Remove rules
13508 * match.pd: ... here.
13510 2019-09-16 Martin Liska <mliska@suse.cz>
13512 * genmatch.c (dt_node::append_simplify): Do not print
13513 warning when we have duplicate patterns belonging
13514 to a same simplify rule.
13515 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13516 (maybe_fold_comparisons_from_match_pd): Handle
13517 tcc_comparison as a results.
13518 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13520 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13521 Qi Feng <ffengqi@linux.ibm.com>
13523 PR middle-end/88784
13524 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13525 (x > y && x == XXX_MIN): Optimize into 'false'.
13526 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13527 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13528 (x < y && x == XXX_MAX): Optimize into 'false'.
13529 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13530 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13531 (x <= y || x != XXX_MIN): Optimize into 'true'.
13532 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13533 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13534 (x >= y || x != XXX_MAX): Optimize into 'true'.
13535 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13537 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13538 Martin Liska <mliska@suse.cz>
13540 * gimple-fold.c (and_comparisons_1): Add type as first
13542 (and_var_with_comparison): Likewise.
13543 (and_var_with_comparison_1): Likewise.
13544 (or_comparisons_1): Likewise.
13545 (or_var_with_comparison): Likewise.
13546 (or_var_with_comparison_1): Likewise.
13547 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13548 (maybe_fold_or_comparisons): Likewise.
13549 (maybe_fold_comparisons_from_match_pd): New.
13550 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13551 (maybe_fold_or_comparisons): Likewise.
13552 * gimple.c (gimple_size): Make it public and add num_ops argument.
13553 (gimple_init): New function.
13554 (gimple_alloc): Call gimple_init.
13555 * gimple.h (gimple_size): New.
13556 (gimple_init): Likewise.
13557 * tree-if-conv.c (fold_or_predicates): Pass type.
13558 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13559 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13560 (optimize_vec_cond_expr): Likewise.
13561 (ovce_extract_ops): Return type of conditional expression.
13562 * tree-ssanames.c (init_ssa_name_imm_use): New.
13563 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13564 * tree-ssanames.h (init_ssa_name_imm_use): New.
13566 2019-09-16 Richard Biener <rguenther@suse.de>
13568 PR tree-optimization/91756
13569 PR tree-optimization/87132
13570 * tree-ssa-alias.h (enum translate_flags): New.
13571 (get_continuation_for_phi): Use it instead of simple bool flag.
13572 (walk_non_aliased_vuses): Likewise.
13573 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13574 (get_continuation_for_phi): When looking across backedges only
13575 disallow valueization.
13576 (walk_non_aliased_vuses): Adjust.
13577 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13580 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13582 PR middle-end/80791
13583 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13584 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13585 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13586 * target.def (have_count_reg_decr_p): New hook.
13587 (doloop_cost_for_generic): Likewise.
13588 (doloop_cost_for_address): Likewise.
13589 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13590 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13591 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13592 * doc/tm.texi: Regenerate.
13593 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13595 (record_group): Init doloop_p.
13596 (add_candidate_1): Add optional argument doloop, change the handlings
13598 (add_candidate): Likewise.
13599 (generic_predict_doloop_p): Update attribute.
13600 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13601 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13602 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13604 (get_computation_cost): Update for doloop IV cand extra cost.
13605 (determine_group_iv_cost_cond): Update for doloop IV cand.
13606 (determine_iv_cost): Likewise.
13607 (ivopts_estimate_reg_pressure): Likewise.
13608 (may_eliminate_iv): Update handlings for doloop IV cand.
13609 (add_iv_candidate_for_doloop): New function.
13610 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13611 (iv_ca_set_no_cp): Update for doloop IV cand.
13612 (iv_ca_set_cp): Likewise.
13613 (iv_ca_dump): Dump register cost.
13614 (find_doloop_use): New function.
13615 (analyze_and_mark_doloop_use): Likewise.
13616 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13618 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13620 PR middle-end/91708
13621 * cse.c (cse_insn): Do not replace anything with a
13624 2019-09-13 Ian Lance Taylor <iant@golang.org>
13626 * doc/invoke.texi (Optimize Options): Fix typo.
13628 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13630 PR tree-optimization/89386
13631 * config/i386/sse.md (smulhrs<mode>3): New expander.
13632 (smulhrsv4hi3): Ditto.
13634 2019-09-12 Richard Biener <rguenther@suse.de>
13636 PR tree-optimization/91750
13637 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13638 in the type of the evolution.
13640 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13642 PR tree-optimization/89386
13643 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13644 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13645 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13646 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13647 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13648 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13649 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13650 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13651 (su, r): Handle the unspecs above.
13652 (bt): New int attribute.
13653 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13654 * internal-fn.c (first_commutative_argument): Commutativity info for
13656 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13657 (umulhrs_optab): New optabs.
13658 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13659 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13660 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13662 (vect_vect_recog_func_ptrs): Add it.
13664 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13666 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13669 2019-09-11 Nathan Sidwell <nathan@acm.org>
13671 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13672 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13674 2019-09-11 Richard Biener <rguenther@suse.de>
13676 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13677 * lto-wrapper.c (merge_and_complain): Pick up -g.
13678 (append_compiler_options): Likewise.
13679 (run_gcc): Re-instantiate handling -g0 at link-time.
13680 * doc/invoke.texi (flto): Document debug info generation.
13682 2019-09-11 Richard Biener <rguenther@suse.de>
13684 PR tree-optimization/90387
13685 * vr-values.c (vr_values::extract_range_basic): After inlining
13686 simplify non-constant __builtin_constant_p to false.
13688 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13690 PR rtl-optimization/89795
13691 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13692 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13694 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13696 PR tree-optimization/91723
13697 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13698 instead of pointer equality when checking if argument vectypes are
13701 PR middle-end/91725
13702 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13703 of get_nonzero_bits, only call it for integral types.
13705 2019-09-11 Richard Biener <rguenther@suse.de>
13708 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13710 * match.pd: Add flag_unsafe_math_optimizations check
13711 before deciding on the widest type in a binary math operation.
13713 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13715 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13716 and CALL_REALLY_USED_REGISTERS must be defined, and that
13717 CALL_REALLY_USED_REGISTERS is preferred.
13718 * doc/tm.texi: Regenerate.
13719 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13720 (call_really_used_regs): Likewise.
13721 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13722 CALL_REALLY_USED_REGISTERS are defined.
13723 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13724 initial value if defined.
13725 (initial_call_really_used_regs): Delete.
13726 (saved_call_really_used_regs): Likewise.
13727 (CALL_REALLY_USED_REGNO_P): Likewise.
13728 (init_reg_sets): Remove handling of call_really_used_regs.
13729 (save_register_info, restore_register_info, globalize_reg): Likewise.
13730 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13731 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13732 outside operand_reg_set.
13733 (fix_register): Don't change call_used_regs if
13734 CALL_REALLY_USED_REGISTERS is defined.
13735 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13736 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13737 instead of call_really_used_regs.
13738 (csky_conditional_register_usage): Remove the old handling of
13739 call_used_regs and change the handling of call_really_used_regs
13740 to use call_used_regs instead.
13741 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13742 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13743 making a register fixed.
13744 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13745 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13746 instead of call_really_used_regs.
13747 (m32r_conditional_register_usage): Don't set call_used_regs when
13748 making a register fixed.
13749 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13750 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13751 instead of call_really_used_regs.
13752 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13753 (mips_cfun_call_saved_reg_p): Likewise.
13754 (mips_swap_registers): Remove the old handling of call_used_regs
13755 and change the handling of call_really_used_regs to use call_used_regs
13757 (mips_conditional_register_usage): Likewise.
13758 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13759 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13760 instead of call_really_used_regs.
13761 (mn10300_get_live_callee_saved_regs): Likewise.
13762 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13763 (mn10300_conditional_register_usage): Don't set call_used_regs when
13764 making a register fixed.
13765 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13766 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13767 Remove the old handling of call_used_regs and change the handling
13768 of call_really_used_regs to use call_used_regs instead.
13769 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13770 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13771 instead of call_really_used_regs.
13772 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13773 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13774 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13775 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13776 (s390_conditional_register_usage): Remove the old handling of
13777 call_used_regs and change the handling of call_really_used_regs
13778 to use call_used_regs instead.
13779 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13780 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13781 (sh_fix_range, reg_unused_after): Likewise.
13782 (sh_conditional_register_usage): Remove the old handling of
13783 call_used_regs and change the handling of call_really_used_regs
13784 to use call_used_regs instead.
13785 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13786 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13787 call_used_regs when making a register fixed.
13788 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13789 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13790 call_used_regs when making a register fixed.
13791 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13792 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13793 set call_used_regs when making a register fixed.
13794 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13795 * config/visium/visium.c (visium_conditional_register_usage): Remove
13796 the old handling of call_used_regs and change the handling of
13797 call_really_used_regs to use call_used_regs instead.
13799 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13801 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13802 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13803 * reginfo.c (call_used_regs): New macro.
13805 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13807 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13809 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13810 (bpf_expand_epilogue): Likewise.
13811 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13812 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13813 (ft32_expand_epilogue): Likewise.
13814 * config/i386/i386.c (ix86_save_reg): Likewise.
13815 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13816 (moxie_expand_epilogue): Likewise.
13817 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13818 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13819 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13821 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13823 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13824 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13825 instead of testing call_used_regs directly.
13826 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13827 (aarch64_components_for_bb): Likewise.
13828 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13829 * config/arc/arc.c (arc_must_save_register): Likewise.
13830 (arc_epilogue_uses): Likewise.
13831 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13832 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13833 (arm_compute_save_reg0_reg12_mask): Likewise.
13834 (arm_compute_save_core_reg_mask): Likewise.
13835 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13836 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13837 (cmse_nonsecure_entry_clear_before_return): Likewise.
13838 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13839 (arm_expand_epilogue): Likewise.
13840 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13841 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13842 (_reg_unused_after): Likewise.
13843 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13844 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13845 (add_to_reg, hwloop_optimize): Likewise.
13846 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13847 (bpf_expand_epilogue): Likewise.
13848 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13849 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13850 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13851 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13852 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13853 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13854 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13855 * config/frv/frv.c (frv_stack_info): Likewise.
13856 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13857 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13858 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13859 (move_callee_saved_registers): Likewise.
13860 * config/h8300/h8300.c (byte_reg): Likewise.
13861 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13862 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13863 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13864 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13865 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13866 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13867 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13868 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13869 * config/m32c/m32c.c (need_to_save): Likewise.
13870 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13871 * config/mcore/mcore.c (calc_live_regs): Likewise.
13872 * config/microblaze/microblaze.c (microblaze_must_save_register):
13874 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13875 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13876 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13877 (mmix_expand_epilogue): Likewise.
13878 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13879 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13880 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13881 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13882 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13883 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13884 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13885 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13886 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13887 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13888 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13889 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13890 * config/rl78/rl78.c (need_to_save): Likewise.
13891 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13892 (rs6000_stack_info, generate_set_vrsave): Likewise.
13893 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13894 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13895 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13896 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13897 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13898 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13899 (save_local_or_in_reg_p): Likewise.
13900 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13901 (xstormy16_epilogue_uses): Likewise.
13902 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13903 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13904 * config/v850/v850.c (compute_register_save_size): Likewise.
13905 * config/vax/vax.c (vax_expand_prologue): Likewise.
13906 * config/visium/visium.c (visium_save_reg_p): Likewise.
13907 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13908 * cselib.c (cselib_process_insn): Likewise.
13909 * df-scan.c (df_get_entry_block_def_set): Likewise.
13910 * function.c (aggregate_value_p): Likewise.
13911 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13912 * ira-lives.c (process_bb_node_lives): Likewise.
13913 * ira.c (do_reload): Likewise.
13914 * lra-lives.c (process_bb_lives): Likewise.
13915 * lra-remat.c (lra_remat): Likewise.
13916 * lra.c (lra): Likewise.
13917 * postreload.c (reload_combine_recognize_pattern): Likewise.
13918 (reload_cse_move2add): Likewise.
13919 * recog.c (peep2_find_free_register): Likewise.
13920 * regrename.c (check_new_reg_p): Likewise.
13921 * reload.c (find_equiv_reg): Likewise.
13922 * reload1.c (reload, find_reg): Likewise.
13923 * sel-sched.c (init_hard_regs_data): Likewise.
13925 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13927 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13928 regs_invalidated_by_call & ~fixed_reg_set instead of
13929 call_used_or_fixed_regs & ~fixed_reg_set.
13930 * config/sh/sh.c (output_stack_adjust): Likewise.
13932 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13934 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13935 (call_used_reg_set): Delete.
13936 (call_used_or_fixed_regs): New macro.
13937 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13938 of call_used_reg_set.
13939 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13940 instead of call_used_regs.
13941 (save_call_clobbered_regs): Likewise.
13942 * cfgcleanup.c (old_insns_match_p): Likewise.
13943 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13944 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13946 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13947 * config/sh/sh.c (output_stack_adjust): Likewise.
13948 * final.c (collect_fn_hard_reg_usage): Likewise.
13949 * ira-build.c (ira_build): Likewise.
13950 * ira-color.c (calculate_saved_nregs): Likewise.
13951 (allocno_reload_assign, calculate_spill_cost): Likewise.
13952 * ira-conflicts.c (ira_build_conflicts): Likewise.
13953 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13954 * ira-lives.c (process_bb_node_lives): Likewise.
13955 * ira.c (setup_reg_renumber): Likewise.
13956 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13957 * lra-constraints.c (need_for_call_save_p): Likewise.
13958 (need_for_split_p, inherit_in_ebb): Likewise.
13959 * lra-lives.c (process_bb_lives): Likewise.
13960 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13961 * postreload.c (reload_combine): Likewise.
13962 * regrename.c (find_rename_reg): Likewise.
13963 * reload1.c (reload_as_needed): Likewise.
13964 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13965 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13966 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13968 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13970 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13971 (no_caller_save_reg_set): Delete.
13972 * caller-save.c (init_caller_save): Don't initialize it.
13973 * ira-conflicts.c (ira_build_conflicts): Calculate
13974 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13976 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13978 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13979 (target_hard_regs::x_savable_regs): New field.
13980 (call_fixed_reg_set): Delete.
13981 (savable_regs): New macro,
13982 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13983 (init_reg_sets_1): Likewise. Initialize savable_regs.
13984 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13985 for all registers. Set savable_regs instead of call_fixed_reg_set.
13986 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13987 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13988 * config/sh/sh.c (output_stack_adjust): Likewise.
13990 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13992 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13993 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13994 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13996 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13998 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13999 * rtlanal.c (get_call_rtx_from): Likewise.
14000 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14001 than the pattern to get_call_rtx_from.
14002 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14003 an rtx_insn * instead of an rtx.
14004 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14006 2019-09-10 Martin Liska <mliska@suse.cz>
14008 * common.opt: Use newly added WarnRemoved.
14009 * config/aarch64/aarch64.opt: Likewise.
14010 * config/arm/arm.opt: Likewise.
14011 * config/i386/i386.opt: Likewise.
14012 * config/ia64/ia64.opt: Likewise.
14013 * config/rs6000/rs6000.opt: Likewise.
14014 * doc/options.texi: Document WarnRemoved properly.
14015 * dwarf2out.c (gen_producer_string): Handle renamed
14016 OPT_SPECIAL_warn_removed.
14017 * lto-opts.c (lto_write_options): Likewise.
14018 * lto-wrapper.c (merge_and_complain): Likewise.
14019 * opts-common.c (decode_cmdline_option): Likewise.
14020 (prune_options): Likewise.
14021 (read_cmdline_option): Likewise.
14022 (control_warning_option): Likewise.
14023 * opts.c (print_filtered_help): Likewise.
14024 * optc-gen.awk: Parse for WarnRemoved and make usage
14025 of Deprecated an error.
14026 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14028 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14030 * doc/install.texi: Fix syntax for html generation.
14032 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14034 PR middle-end/91680
14035 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14036 the shift type to type.
14038 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14040 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14042 (stack_protect_combined_test_insn): Likewise.
14044 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14045 Mickaël Guêné <mickael.guene@st.com>
14047 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14048 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14049 (load_tp_soft_fdpic): New pattern.
14050 (load_tp_soft): Disable in FDPIC mode.
14052 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14053 Mickaël Guêné <mickael.guene@st.com>
14055 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14056 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14057 (arm_call_tls_get_addr): Add FDPIC support.
14058 (legitimize_tls_address): Likewise.
14059 (arm_emit_tls_decoration): Likewise.
14061 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14062 Mickaël Guêné <mickael.guene@st.com>
14064 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14066 (arm_trampoline_init): Likewise.
14067 (arm_trampoline_adjust_address): Likewise.
14068 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14070 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14071 Mickaël Guêné <mickael.guene@st.com>
14073 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14074 (legitimize_pic_address): Enforce binding rules on function
14075 pointers in FDPIC mode.
14076 (arm_assemble_integer): Likewise.
14078 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14079 Mickaël Guêné <mickael.guene@st.com>
14081 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14082 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14085 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14086 Mickaël Guêné <mickael.guene@st.com>
14088 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14091 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14092 Mickaël Guêné <mickael.guene@st.com>
14094 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14096 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14098 * config/arm/arm.c (arm_option_override): Define pic register to
14100 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14101 have no decl or go through PLT.
14102 (calculate_pic_address_constant): New function.
14103 (legitimize_pic_address): Call calculate_pic_address_constant.
14104 (arm_load_pic_register): Handle TARGET_FDPIC.
14105 (arm_is_segment_info_known): New function.
14106 (arm_pic_static_addr): Add support for FDPIC.
14107 (arm_load_function_descriptor): New function.
14108 (arm_emit_call_insn): Add support for FDPIC.
14109 (arm_assemble_integer): Add support for FDPIC.
14110 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14111 Define. (FDPIC_REGNUM): New define.
14112 * config/arm/arm.md (call): Add support for FDPIC.
14113 (call_value): Likewise.
14114 (restore_pic_register_after_call): New pattern.
14115 (untyped_call): Disable if FDPIC.
14116 (untyped_return): Likewise.
14117 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14119 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14120 Mickaël Guêné <mickael.guene@st.com>
14122 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14123 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14124 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14125 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14126 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14127 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14128 * config/arm/uclinuxfdpiceabi.h: New file.
14130 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14132 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14134 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14135 Mickaël Guêné <mickael.guene@st.com>
14137 * config/arm/arm.opt: Add -mfdpic option.
14138 * doc/invoke.texi: Add documentation for -mfdpic.
14140 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14142 * expmed.c (extract_bit_field): Update function comment
14144 * expr.c (expand_expr_real): Update function comment
14146 (expand_misaligned_mem_ref): New helper function.
14147 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14148 Remove duplicate assignment to "base" at case MEM_REF.
14149 Remove a shadowed variable "unsignedp" at case VCE.
14151 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14153 * regset.h (regs_invalidated_by_call_regset): Delete.
14154 (fixed_reg_set_regset): Likewise.
14155 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14156 (fixed_reg_set_regset, persistent_obstack): Likewise.
14157 (init_reg_sets_1, globalize_reg): Update accordingly.
14158 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14159 instead of a bitmap.
14160 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14161 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14162 instead of regs_invalidated_by_call_regset.
14163 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14164 * df-scan.c (df_scan_start_dump): Likewise.
14165 * dse.c (copy_fixed_regs): Likewise.
14166 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14168 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14170 * array-traits.h: New file.
14171 * coretypes.h (array_traits, bitmap_view): New types.
14172 * bitmap.h: Include "array-traits.h"
14173 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14174 (base_bitmap_view, bitmap_view): New classes.
14175 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14176 * hard-reg-set.h: Include array-traits.h.
14177 (array_traits<HARD_REG_SET>): New struct.
14178 * regset.h (IOR_REG_SET_HRS): New macro.
14179 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14180 rather than iterating over each hard register.
14181 * sched-deps.c (sched_analyze_insn): Likewise.
14182 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14184 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14186 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14187 instead of a HARD_REG_SET *.
14188 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14189 (ira_build): Update call accordingly.
14190 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14192 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14194 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14195 (HARD_REG_SET::operator!=): Likewise.
14196 (hard_reg_set_equal_p): Delete.
14197 * cfgcleanup.c (old_insns_match_p): Use == instead of
14198 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14199 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14200 (add_allocno_hard_regs_to_forest): Likewise.
14201 (setup_allocno_available_regs_num): Likewise.
14202 * ira.c (setup_pressure_classes): Likewise.
14203 (setup_allocno_and_important_classes): Likewise.
14204 (setup_reg_class_relations): Likewise.
14205 * lra-lives.c (process_bb_lives): Likewise.
14206 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14208 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14210 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14211 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14212 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14213 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14215 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14216 * ira.c (setup_reg_renumber): Likewise.
14217 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14218 * regrename.c (regrename_find_superclass): Likewise.
14219 * reload1.c (find_reg): Likewise.
14221 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14223 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14224 * caller-save.c (setup_save_areas): Use "&~" instead of
14225 AND_COMPL_HARD_REG_SET.
14226 (save_call_clobbered_regs): Likewise.
14227 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14229 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14230 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14231 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14232 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14233 (mips_conditional_register_usage): Likewise.
14234 * config/sh/sh.c (output_stack_adjust): Likewise.
14235 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14236 (setup_profitable_hard_regs): Likewise.
14237 (get_conflict_and_start_profitable_regs): Likewise.
14238 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14239 (ira_build_conflicts): Likewise.
14240 * ira-costs.c (restrict_cost_classes): Likewise.
14241 (setup_regno_cost_classes_by_aclass): Likewise.
14242 * ira-lives.c (process_bb_node_lives): Likewise.
14243 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14244 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14245 (setup_allocno_and_important_classes, setup_class_translate_array)
14246 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14248 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14249 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14250 (process_alt_operands, inherit_in_ebb): Likewise.
14251 * lra-eliminations.c (update_reg_eliminate): Likewise.
14252 * lra-lives.c (process_bb_lives): Likewise.
14253 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14254 * resource.c (find_dead_or_set_registers): Likewise.
14255 (mark_target_live_regs): Likewise.
14256 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14257 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14258 (implicit_clobber_conflict_p): Likewise.
14259 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14260 (try_shrink_wrapping): Likewise.
14262 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14264 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14265 (HARD_REG_SET::operator|=): Likewise.
14266 (IOR_HARD_REG_SET): Delete.
14267 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14269 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14270 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14271 * final.c (collect_fn_hard_reg_usage): Likewise.
14272 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14273 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14274 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14275 (propagate_some_info_from_allocno): Likewise.
14276 (copy_info_to_removed_store_destinations): Likewise.
14277 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14278 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14279 (fast_allocation): Likewise.
14280 * ira-conflicts.c (ira_build_conflicts): Likewise.
14281 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14282 (process_bb_node_lives): Likewise.
14283 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14284 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14285 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14286 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14287 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14288 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14289 (process_bb_lives): Likewise.
14290 * lra-spills.c (assign_spill_hard_regs): Likewise.
14291 * postreload.c (reload_combine): Likewise.
14292 * reginfo.c (init_reg_sets_1): Likewise.
14293 * regrename.c (merge_overlapping_regs, find_rename_reg)
14294 (merge_chains): Likewise.
14295 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14296 (find_reload_regs, finish_spills, choose_reload_regs_init)
14297 (emit_reload_insns): Likewise.
14298 * reorg.c (redundant_insn): Likewise.
14299 * resource.c (find_dead_or_set_registers, mark_set_resources)
14300 (mark_target_live_regs): Likewise.
14301 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14302 * sched-deps.c (sched_analyze_insn): Likewise.
14303 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14304 (find_best_reg_for_expr): Likewise.
14305 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14307 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14309 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14310 (HARD_REG_SET::operator&): Likewise.
14311 (AND_HARD_REG_SET): Delete.
14312 * caller-save.c (setup_save_areas): Use "&" instead of
14314 (save_call_clobbered_regs): Likewise.
14315 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14316 * config/m32c/m32c.c (reduce_class): Likewise.
14317 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14318 * final.c (get_call_reg_set_usage): Likewise.
14319 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14320 (setup_left_conflict_sizes_p): Likewise.
14321 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14322 (ira_build_conflicts): Likewise.
14323 * ira-costs.c (restrict_cost_classes): Likewise.
14324 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14325 (setup_reg_class_relations): Likewise.
14326 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14327 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14328 * resource.c (find_dead_or_set_registers): Likewise.
14329 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14331 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14333 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14334 (COMPL_HARD_REG_SET): Delete.
14335 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14336 of COMPL_HARD_REG_SET.
14337 (try_rename_operands): Likewise.
14338 * config/sh/sh.c (push_regs): Likewise.
14339 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14340 * lra-constraints.c (contains_reg_p): Likewise.
14341 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14343 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14345 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14346 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14347 of COPY_HARD_REG_SET.
14348 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14349 (epiphany_conditional_register_usage): Likewise.
14350 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14351 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14352 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14353 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14354 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14355 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14356 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14357 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14358 * config/sh/sh.c (output_stack_adjust): Likewise.
14359 * final.c (collect_fn_hard_reg_usage): Likewise.
14360 (get_call_reg_set_usage): Likewise.
14361 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14362 (ira_flattening): Likewise.
14363 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14364 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14365 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14366 (ira_reassign_pseudos): Likewise.
14367 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14368 (ira_build_conflicts): Likewise.
14369 * ira-costs.c (restrict_cost_classes): Likewise.
14370 (setup_regno_cost_classes_by_aclass): Likewise.
14371 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14372 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14373 (setup_stack_reg_pressure_class, setup_pressure_classes)
14374 (setup_allocno_and_important_classes, setup_class_translate_array)
14375 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14376 (ira_setup_eliminable_regset): Likewise.
14377 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14378 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14379 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14380 (process_alt_operands, inherit_in_ebb): Likewise.
14381 * lra-lives.c (process_bb_lives): Likewise.
14382 * lra-spills.c (assign_spill_hard_regs): Likewise.
14383 * lra.c (lra): Likewise.
14384 * mode-switching.c (new_seginfo): Likewise.
14385 * postreload.c (reload_combine): Likewise.
14386 * reg-stack.c (straighten_stack): Likewise.
14387 * reginfo.c (save_register_info, restore_register_info): Likewise.
14388 (init_reg_sets_1, record_subregs_of_mode): Likewise
14389 * regrename.c (create_new_chain, rename_chains): Likewise.
14390 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14391 (find_reload_regs): Likewise.
14392 * resource.c (find_dead_or_set_registers): Likewise.
14393 (mark_target_live_regs): Likewise.
14394 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14396 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14398 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14399 (note_pattern_stores): Declare.
14400 (note_stores): Take an rtx_insn *.
14401 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14402 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14403 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14404 (note_stores): Take an rtx_insn * as argument and process
14405 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14406 (note_pattern_stores): ...this.
14407 (find_first_parameter_load): Pass the insn rather than
14408 its pattern to note_stores.
14409 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14410 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14411 (insert_one_insn): Likewise.
14412 * combine.c (combine_instructions): Likewise.
14413 (likely_spilled_retval_p): Likewise.
14414 (try_combine): Use note_pattern_stores instead of note_stores.
14415 (record_dead_and_set_regs): Pass the insn rather than its pattern
14417 (reg_dead_at_p): Likewise.
14418 * config/bfin/bfin.c (workaround_speculation): Likewise.
14419 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14420 rather than an rtx.
14421 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14422 instead of note_stores.
14423 (frv_optimize_membar_local): Pass the insn rather than its pattern
14425 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14426 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14427 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14428 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14429 (mips_reorg_process_insns): Likewise.
14430 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14431 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14433 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14434 its pattern to note_stores.
14435 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14437 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14438 the insn to note_stores.
14439 (prescan_insns_for_dce): Update call accordingly.
14440 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14442 * df-problems.c (can_move_insns_across): Likewise.
14443 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14444 * function.c (assign_parm_setup_reg): Likewise.
14445 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14446 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14447 (single_set_gcse): Likewise.
14448 * ira.c (validate_equiv_mem): Likewise.
14449 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14451 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14452 pattern to note_stores.
14453 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14454 * loop-iv.c (simplify_using_initial_values): Likewise.
14455 * mode-switching.c (optimize_mode_switching): Likewise.
14456 * optabs.c (emit_libcall_block_1): Likewise.
14457 (expand_atomic_compare_and_swap): Likewise.
14458 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14459 (record_opr_changes): Likewise. Remove explicit handling of
14460 CALL_INSN_FUNCTION_USAGE.
14461 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14462 * regcprop.c (kill_clobbered_values): Likewise.
14463 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14465 * regrename.c (build_def_use): Likewise.
14466 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14467 for mark_not_eliminable.
14468 (reload_as_needed): Pass the insn rather than its pattern
14470 (emit_output_reload_insns): Likewise.
14471 * resource.c (mark_target_live_regs): Likewise.
14472 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14473 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14474 instead of note_stores.
14475 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14476 its pattern to note_stores.
14477 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14478 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14480 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14482 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14483 than a #define. Use a structure rather than an array as the
14484 fallback definition. Remove special cases for low array sizes.
14485 (const_hard_reg_set): New typedef.
14486 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14487 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14488 (hard_reg_set_empty_p): Likewise.
14489 (SET_HARD_REG_BIT): Use a function rather than a macro to
14490 handle the case in which HARD_REG_SET is a structure.
14491 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14492 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14493 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14494 (IOR_COMPL_HARD_REG_SET): Likewise.
14495 (hard_reg_set_iterator::pset): Constify the pointer target.
14496 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14497 of a "const HARD_REG_SET". Update the handling of non-integer
14499 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14500 * reload.h: Likewise.
14501 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14502 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14503 of a "const HARD_REG_SET".
14504 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14505 (range_in_hard_reg_set_p): Likewise.
14506 * ira-costs.c (restrict_cost_classes): Likewise.
14507 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14508 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14509 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14510 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14511 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14512 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14513 take an unsigned int and open-code the HARD_REG_SET operations.
14515 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14517 * Makefile.in (OBJS): Remove bt-load.o.
14518 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14519 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14520 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14521 document that the option no longer does anything.
14522 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14523 * target.def (branch_target_register_class): Delete.
14524 (branch_target_register_callee_saved): Likewise.
14525 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14526 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14527 * doc/tm.texi: Regenerate.
14528 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14529 (make_pass_branch_target_load_optimize2): Likewise.
14530 * passes.def (pass_branch_target_load_optimize1): Likewise.
14531 (pass_branch_target_load_optimize2): Likewise.
14532 * targhooks.h (default_branch_target_register_class): Likewise.
14533 * targhooks.c (default_branch_target_register_class): Likewise.
14534 * opt-suggestions.c (test_completion_valid_options): Remove
14535 -fbtr-bb-exclusive from the list of test options.
14536 * bt-load.c: Remove.
14538 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14540 * match.pd: Add flag_unsafe_math_optimizations check
14541 before deciding on the widest type in a binary math operation.
14543 2019-09-09 Martin Liska <mliska@suse.cz>
14545 * config/i386/i386.opt: Update comment of removed
14546 options that are preserved only for backward
14549 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14552 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14553 instead of __v16qs.
14556 * config/i386/avxintrin.h (__v32qs): New typedef.
14557 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14558 instead of __v32qi.
14560 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14562 * doc/invoke.texi (Option Summary): Cover eBPF.
14563 (eBPF Options): New section.
14564 * doc/extend.texi (BPF Built-in Functions): Likewise.
14565 (BPF Kernel Helpers): Likewise.
14567 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14569 * config.gcc: Support for bpf-*-* targets.
14570 * common/config/bpf/bpf-common.c: New file.
14571 * config/bpf/t-bpf: Likewise.
14572 * config/bpf/predicates.md: Likewise.
14573 * config/bpf/constraints.md: Likewise.
14574 * config/bpf/bpf.opt: Likewise.
14575 * config/bpf/bpf.md: Likewise.
14576 * config/bpf/bpf.h: Likewise.
14577 * config/bpf/bpf.c: Likewise.
14578 * config/bpf/bpf-protos.h: Likewise.
14579 * config/bpf/bpf-opts.h: Likewise.
14580 * config/bpf/bpf-helpers.h: Likewise.
14581 * config/bpf/bpf-helpers.def: Likewise.
14583 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14585 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14588 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14590 * opt-functions.awk (integer_range_info): Make sure values are in
14591 numeric context before operating with them.
14593 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14595 * genemit.c (gen_split): Print the filename and line number where the
14596 splitter (or peephole2) was defined, to the dump file.
14598 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14600 PR tree-optimization/91665
14601 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14602 incompatible with the type of PHI result.
14604 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14607 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14608 gen_unaligned_storedi for 4-byte aligned addresses.
14610 2019-09-06 Jim Wilson <jimw@sifive.com>
14612 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14615 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14617 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14619 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14621 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14622 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14624 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14627 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14628 cost of SSE->integer and integer->SSE moves from 2 to 6.
14629 (core_cost): Ditto.
14631 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14633 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14634 before testing TYPE_TRANSPARENT_AGGR.
14635 * calls.c (initialize_argument_information, load_register_parameters):
14638 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14640 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14642 (cmp_ior): Likewise.
14644 2019-09-06 Martin Liska <mliska@suse.cz>
14646 * doc/match-and-simplify.texi: Separate tuples with ;.
14648 2019-09-06 Martin Liska <mliska@suse.cz>
14651 * Makefile.in: Remove tlink.o.
14652 * collect2.c (do_link): New function isolated
14655 * collect2.h (do_tlink): Remove declaration of do_tlink.
14656 * doc/extend.texi: Remove documentation of -frepo.
14657 * doc/invoke.texi: Likewise.
14658 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14661 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14662 Jim Wilson <jimw@sifive.com>
14665 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14666 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14667 paradoxical_subreg_p (operands[0]).
14668 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14669 use as intermediate value.
14671 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14673 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14674 (sync_compare_and_swap<mode>_insn): Likewise.
14676 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14678 PR middle-end/91615
14679 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14680 without movmisalign optab.
14682 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14684 PR middle-end/91001
14685 PR middle-end/91105
14686 PR middle-end/91106
14687 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14688 types, use type of their first field instead of type of
14689 args[i].tree_value.
14691 2019-09-05 Richard Biener <rguenther@suse.de>
14693 PR rtl-optimization/91656
14694 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14697 2019-09-05 Richard Biener <rguenther@suse.de>
14699 PR middle-end/90501
14700 * tree-inline.c (declare_return_variable): Mark the return
14701 slot as addressable after building an address of it.
14703 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14705 * doc/install.texi: Update and clarify requirements to build GNAT.
14707 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14709 PR middle-end/91577
14710 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14711 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14712 call to be in memory.
14713 (pass_expand::execute): Call discover_nonconstant_array_refs before
14714 setting currently_expanding_to_rtl.
14716 2019-09-04 Caroline Tice <cmtice@google.com>
14718 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14719 specified together.
14721 2019-09-04 Marek Polacek <polacek@redhat.com>
14723 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14725 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14728 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14729 for QI and HImode moves between SSE and general registers.
14731 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14734 * doc/invoke.texi: Document -Wenum-conversion.
14736 2019-09-04 Richard Biener <rguenther@suse.de>
14738 PR rtl-optimization/36262
14739 * postreload-gcse.c: Include intl.h and gcse.h.
14740 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14741 to avoid linear list walk.
14742 (record_last_mem_set_info): Gate off if not computing transparentness.
14743 (get_bb_avail_insn): If transparentness isn't computed give up
14745 (gcse_after_reload_main): Skip compute_transp and extended PRE
14746 if gcse_or_cprop_is_too_expensive says so.
14748 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14750 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14752 (msp430_select_section): Handle decls with the "noinit" attribute with
14753 default_elf_select_section.
14754 Handle SECCAT_RODATA_MERGE_* section types with
14755 default_elf_select_section.
14756 Add comments about handling of unsupported section types.
14757 (msp430_section_type_flags): Remove handling of the noinit section.
14759 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14761 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14762 conflicting msp430-specific attributes.
14763 (msp430_section_attr): Likewise.
14764 Add warnings about conflicts with generic "noinit" and "section"
14766 Fix grammar in -mlarge error message.
14767 (msp430_data_attr): Rename to msp430_persist_attr.
14768 Add warnings about conflicts with generic "noinit" and "section"
14770 Add warning for when variable is not initialized.
14771 Chain conditionals which prevent the attribute being added.
14772 (ATTR_EXCL): New helper.
14773 (attr_reent_exclusions): New exclusion table.
14774 (attr_naked_exclusions): Likewise.
14775 (attr_crit_exclusions): Likewise.
14776 (attr_lower_exclusions): Likewise.
14777 (attr_upper_exclusions): Likewise.
14778 (attr_either_exclusions): Likewise.
14779 (attr_persist_exclusions): Likewise.
14780 (msp430_attribute_table): Update with exclusion rules.
14781 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14784 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14786 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14787 (msp430_handle_generic_attribute): New function.
14788 * doc/tm.texi: Regenerate.
14789 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14790 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14791 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14792 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14794 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14796 PR tree-optimization/91504
14797 * match.pd: Add ((~a & b) ^a) --> (a | b).
14799 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14802 * config/i386/i386-expand.c (split_double_mode): If there is more than
14803 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14804 already split matching MEM operand instead of calling adjust_address
14807 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14809 * config.gcc: Obsolete spu target. Remove references to spu.
14810 * configure.ac: Remove references to spu.
14811 * configure: Regenerate.
14812 * config/spu/: Remove directory.
14813 * common/config/spu/: Remove directory.
14815 * doc/extend.texi: Remove references to spu.
14816 * doc/invoke.texi: Likewise.
14817 * doc/md.texi: Likewise.
14818 * doc/sourcebuild.texi: Likewise.
14820 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14822 PR middle-end/91603
14823 PR middle-end/91612
14824 PR middle-end/91613
14825 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14826 and SSA_NAME referring to CONSTANT_P correctly.
14828 2019-09-03 Richard Biener <rguenther@suse.de>
14830 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14831 (vn_nary_op_insert): Likewise.
14832 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14833 (vn_nary_op_lookup): Likewise.
14834 (vn_nary_op_insert): Likewise.
14836 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14838 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14839 (*op0, 1) instead of XEXP (*op1, 0).
14841 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14843 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14844 (aarch64_fjcvtzs): New define_insn.
14845 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14846 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14848 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14849 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14850 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14851 __ARM_FEATURE_JCVT where appropriate.
14852 * config/aarch64/arm_acle.h (__jcvt): Define.
14854 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14856 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14857 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14858 (aarch64_<frintnzs_op><mode>): New define_insn.
14859 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14860 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14861 __ARM_FEATURE_FRINT when appropriate.
14862 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14863 frint32x, frint64z, frint64x.
14864 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14865 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14866 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14867 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14868 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14869 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14870 * config/aarch64/iterators.md (VSFDF): Define.
14871 (FRINTNZX): Likewise.
14872 (frintnzs_op): Likewise.
14874 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14876 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14877 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14879 * config/aarch64/aarch64-tune.md: Regenerated.
14880 * doc/invoke.texi: Document the new processors.
14882 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14884 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14888 (sve2-sm4): Likewise.
14889 (sveaes): Likewise.
14890 (svesha3): Likewise.
14891 (svebitperm): Likewise.
14893 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14894 Richard Biener <rguenther@suse.de>
14896 PR tree-optimization/91597
14897 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14898 BIT_AND_EXPR optimization for pointers, even if both operand
14899 ranges don't include NULL, the result can be NULL.
14901 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14903 PR middle-end/91605
14904 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14905 (non_mem_decl_p): ...this.
14906 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14907 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14908 unconditionally as before.
14910 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14913 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14914 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14915 * tree.def (LTGT_EXPR): Likewise.
14916 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14918 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14921 * fold-const.c (range_check_type): For enumeral and boolean
14922 type, pass 1 to type_for_size langhook instead of
14923 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14924 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14925 (build_range_check): Don't call unsigned_type_for for pointer types.
14926 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14927 range_check_type result.
14929 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14931 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14932 (replace_ref): Do not replace a chain of only two candidates which are
14933 valid memory references.
14935 2019-09-02 Martin Liska <mliska@suse.cz>
14937 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14938 Bail out when we'll end up with the same number of clusters as
14940 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14941 (jump_table_cluster::can_be_handled): Remove the guard
14942 as it's already handled in ::is_enabled. Allocate output
14943 after early bail out.
14945 2019-09-02 Martin Liska <mliska@suse.cz>
14947 PR gcov-profile/91601
14948 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14949 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14950 also negative edges.
14951 (circuit): Handle also negative edges as they can happen
14952 in some situations.
14954 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14957 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14958 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14959 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14961 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14963 PR middle-end/91623
14964 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14965 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14966 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14970 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14971 GIMPLE_ASM TREE_LIST operands.
14973 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14975 * doc/generic.texi (Unary and Binary Expressions): Mark up
14976 an instance of TYPE_MIN.
14978 2019-08-31 Stafford Horne <shorne@gmail.com>
14980 * config/or1k/constraints.md (t): New constraint.
14981 * config/or1k/or1k.h (GOT_REGS): New register class.
14982 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14984 2019-08-30 Jim Wilson <jimw@sifive.com>
14986 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14987 and -fpic and -mplt then disable -msave-restore and warn.
14989 2019-08-30 Martin Sebor <msebor@redhat.com>
14991 PR middle-end/91599
14992 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14993 the statement doesn't have one.
14994 * gimple-pretty-print.c (percent_G_format): Same.
14996 PR middle-end/91584
14997 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14998 before using them to validate MEM_REF offset.
15000 2019-08-30 Marek Polacek <polacek@redhat.com>
15002 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15004 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
15006 * config/arm/arm.md (unaligned_loaddi,
15007 unaligned_storedi): New unspec insn patterns.
15008 * config/arm/neon.md (unaligned_storev8qi): Likewise.
15009 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15010 and unaligned_storedi for 4-byte aligned memory.
15011 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15012 4-byte aligned memory.
15014 2019-08-30 Martin Jambor <mjambor@suse.cz>
15016 tree-optimization/91579
15017 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15018 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15020 (arg_needs_copy_p): Removed.
15021 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15023 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15025 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15027 * config/i386/i386-features.c
15028 (general_scalar_chain::compute_convert_gain):
15029 Correct cost for double-word shifts.
15030 (general_scalar_to_vector_candidate_p): Reject count operands
15031 greater or equal to mode bitsize.
15033 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15035 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15036 for moves between SSE and non-general registers and between
15037 mask and non-general registers.
15038 (ix86_register_move_cost): Remove stalled comment.
15040 2019-08-29 Richard Biener <rguenther@suse.de>
15042 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15043 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15045 2019-08-29 Richard Biener <rguenther@suse.de>
15048 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15049 Do not emit scalar copies for debug-insns, instead replace
15050 their uses with the reg copy used in the chain or reset them
15051 if there is a reaching definition outside of the chain as well.
15053 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15056 * config/i386/i386-expand.c (expand_vec_perm_movs,
15057 expand_vec_perm_blend, expand_vec_perm_vpermil,
15058 expand_vec_perm_pshufb, expand_vec_perm_1,
15059 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15060 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15061 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15062 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15063 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15064 comments - replace ix86_expand_vec_perm_builtin_1 with
15065 ix86_expand_vec_perm_const_1.
15066 (expand_vec_perm2_vperm2f128_vblend): New function.
15067 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15068 expand_vec_perm2_vperm2f128_vblend as last resort.
15069 (canonicalize_perm): Formatting fix.
15071 PR tree-optimization/91351
15072 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15074 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15075 range_check_type returns NULL.
15076 * tree-switch-conversion.c (switch_conversion::build_one_array):
15077 Use range_check_type instead of unsigned_type_for, don't perform
15078 linear opt if it returns NULL.
15079 (bit_test_cluster::find_bit_tests): Formatting fix.
15080 (bit_test_cluster::emit): Use range_check_type instead of
15082 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15085 2019-08-29 Richard Biener <rguenther@suse.de>
15087 PR tree-optimization/91568
15088 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15089 (vect_update_max_nunits): Add overload for poly_uint64.
15090 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15091 (vect_build_slp_tree): Record max_nunits into the subtree
15092 and merge it upwards.
15093 (vect_print_slp_tree): Print max_nunits.
15095 2019-08-28 Marek Polacek <polacek@redhat.com>
15097 Implement P1152R4: Deprecating some uses of volatile.
15099 * doc/invoke.texi: Document -Wvolatile.
15101 2019-08-28 Marek Polacek <polacek@redhat.com>
15103 PR c++/91360 - Implement C++20 P1143R2: constinit.
15104 * doc/invoke.texi: Document -Wc++20-compat.
15106 2019-08-28 Martin Sebor <msebor@redhat.com>
15108 PR tree-optimization/91457
15109 * builtins.c (component_size): New function.
15110 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15111 * builtins.h (compute_objsize): Add argument.
15112 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15113 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15114 (vrp_prop::check_mem_ref): Same.
15115 (vrp_prop::search_for_addr_array): Set no-warning bit.
15116 (check_array_bounds): Same.
15118 2019-08-28 Martin Sebor <msebor@redhat.com>
15121 * opts-common.c (option_enabled): Correct checking for language
15124 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15126 * config/i386/i386.c (ix86_register_move_cost): Do not
15127 limit the cost of moves to/from XMM register to minimum 8.
15129 2019-08-28 Martin Jambor <mjambor@suse.cz>
15132 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15133 checking assert a normal assert to test it really is redundant.
15134 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15136 (update_jump_functions_after_inlining): Removed combining unary
15137 arithmetic operations with an ancestor jump function.
15138 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15141 2019-08-28 Richard Biener <rguenther@suse.de>
15143 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15144 add the MD problem.
15146 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15147 Richard Biener <rguenther@suse.de>
15149 * expr.c (expand_assignment): Handle misaligned DECLs.
15150 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15151 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15153 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15154 * varasm.c (build_constant_desc): Align constants of misaligned types.
15155 * config/arm/predicates.md (aligned_operand): New predicate.
15156 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15157 aligned_operand to check restrictions on memory addresses.
15158 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15159 * config/arm/vec-common.md (mov<VALL>): Likewise.
15161 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15164 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15165 V_128 iterator instead of VI_128.
15167 2019-08-28 Martin Liska <mliska@suse.cz>
15169 PR tree-optimization/90970
15170 * builtins.c (check_access): Remove assignment to maxread
15171 as it hasn't been used since when it was introduced in r255755.
15173 2019-08-27 Martin Sebor <msebor@redhat.com>
15175 PR tree-optimization/91567
15176 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15177 of unknown strings.
15178 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15179 to PTRDIFF_MAX - 2.
15181 2019-08-27 Jeff Law <law@redhat.com>
15183 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15184 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15186 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15189 * config/i386/i386-features.c (convert_scalars_to_vector):
15190 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15191 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15192 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15193 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15195 2019-08-27 Richard Biener <rguenther@suse.de>
15197 * config/i386/i386-features.h
15198 (general_scalar_chain::~general_scalar_chain): Add.
15199 (general_scalar_chain::insns_conv): New bitmap.
15200 (general_scalar_chain::n_sse_to_integer): New.
15201 (general_scalar_chain::n_integer_to_sse): Likewise.
15202 (general_scalar_chain::make_vector_copies): Adjust signature.
15203 * config/i386/i386-features.c
15204 (general_scalar_chain::general_scalar_chain): Outline,
15205 initialize new members.
15206 (general_scalar_chain::~general_scalar_chain): New.
15207 (general_scalar_chain::mark_dual_mode_def): Record insns
15208 we need to insert conversions at and count them.
15209 (general_scalar_chain::compute_convert_gain): Account
15210 for conversion instructions at chain boundary.
15211 (general_scalar_chain::make_vector_copies): Generate a single
15212 copy for a def by a specific insn.
15213 (general_scalar_chain::convert_registers): First populate
15214 defs_map, then make copies at out-of chain insns.
15216 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15218 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15220 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15222 2019-08-27 Martin Liska <mliska@suse.cz>
15224 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15226 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15227 Enclose in anonymous namespace.
15228 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15229 hard_register initialization in braces.
15230 * tree-vrp.h (value_range_base::supports_type_p): Return false
15231 for function with boolean return type.
15233 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15235 * config/i386/i386.c (emit_i387_cw_initialization)
15236 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15238 2019-08-26 Martin Sebor <msebor@redhat.com>
15241 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15242 (sprintf_dom_walker): Remove class.
15243 (get_int_range): Make argument const.
15244 (directive::fmtfunc, directive::set_precision): Same.
15245 (format_none): Same.
15246 (build_intmax_type_nodes): Same.
15247 (adjust_range_for_overflow): Same.
15248 (format_floating): Same.
15249 (format_character): Same.
15250 (format_string): Same.
15251 (format_plain): Same.
15252 (get_int_range): Cast away constness.
15253 (format_integer): Same.
15254 (get_string_length): Call get_range_strlen_dynamic. Handle
15255 null lendata.maxbound.
15256 (should_warn_p): Adjust argument scope qualifier.
15257 (maybe_warn): Same.
15258 (format_directive): Same.
15259 (parse_directive): Same.
15260 (is_call_safe): Same.
15261 (try_substitute_return_value): Same.
15262 (sprintf_dom_walker::handle_printf_call): Rename...
15263 (handle_printf_call): ...to this. Initialize target to host charmap
15264 here instead of in pass_sprintf_length::execute.
15265 (struct call_info): Make global.
15266 (sprintf_dom_walker::compute_format_length): Make global.
15267 (sprintf_dom_walker::handle_gimple_call): Same.
15268 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15269 * print-rtl.c (print_pattern): Reduce the number of spaces to
15270 avoid -Wformat-truncation.
15271 * tree-pass.h (make_pass_warn_printf): New function.
15272 * tree-ssa-strlen.c (strlen_optimize): New variable.
15273 (get_string_length): Add comments.
15274 (get_range_strlen_dynamic): New function.
15275 (check_and_optimize_call): New function.
15276 (handle_integral_assign): New function.
15277 (strlen_check_and_optimize_stmt): Factor code out into
15278 strlen_check_and_optimize_call and handle_integral_assign.
15279 (strlen_dom_walker::evrp): New member.
15280 (strlen_dom_walker::before_dom_children): Use evrp member.
15281 (strlen_dom_walker::after_dom_children): Use evrp member.
15282 (printf_strlen_execute): New function.
15283 (pass_strlen::gate): Update to handle printf calls.
15284 (dump_strlen_info): New function.
15285 (pass_data_warn_printf): New variable.
15286 (pass_warn_printf): New class.
15287 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15288 (handle_printf_call): Same.
15289 * tree-vrp.c (value_range_base::type): Adjust assertion.
15290 * vr-values.c (vr_values::update_value_range): Use type of the first
15291 argument rather than the second.
15293 2019-08-26 Richard Biener <rguenther@suse.de>
15295 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15297 (convert_scalars_to_vector): Do not call it.
15299 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15300 Uros Bizjak <ubizjak@gmail.com>
15302 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15303 CASE_MATHFN_FLOATN for roundeven.
15304 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15306 (ix86_mode_needed): Likewise.
15307 (ix86_mode_after): Likewise.
15308 (ix86_mode_entry): Likewise.
15309 (ix86_mode_exit): Likewise.
15310 (ix86_emit_mode_set): Likewise.
15311 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15312 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15313 (ix86_entity): Add I387_ROUNDEVEN.
15314 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15315 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15316 (define_int_iterator): Likewise.
15317 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15318 (define_constant): Define ROUND_ROUNDEVEN mode.
15319 (define_attr): Add roundeven mode for i387_cw.
15320 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15321 * internal-fn.def (ROUNDEVEN): New builtin function.
15322 * optabs.def (roundeven_optab): New optab.
15324 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15326 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15328 * builtins.def: Added function definitions for roundeven function
15330 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15331 function call. Adjust condition for floor, ceil, trunc and round.
15332 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15333 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15334 (integer_valued_real_call_p): Added case for roundeven function.
15335 * real.c (is_even): New function. Returns true if real number is even,
15336 otherwise returns false.
15337 (is_halfway_below): New function. Returns true if real number is
15338 halfway between two integers, else return false.
15339 (real_roundeven): New function. Round real number to nearest integer,
15340 rounding halfway cases towards even.
15341 * real.h (real_value): Added descriptive comments. Added function
15342 declaration for roundeven function.
15343 * doc/extend.texi (Other Builtins): List roundeven variants among
15344 functions which can be handled as builtins.
15346 2019-08-26 Richard Biener <rguenther@suse.de>
15350 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15352 (general_scalar_chain::replace_with_subreg): Remove.
15353 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15354 (general_scalar_chain::convert_reg): Adjust signature.
15355 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15356 iterate over all defs of a reg.
15357 (general_scalar_chain::replace_with_subreg): Remove.
15358 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15359 (general_scalar_chain::make_vector_copies): Populate defs_map,
15360 place copy only after defs that are used as vectors in the chain.
15361 (general_scalar_chain::convert_reg): Emit a copy for a specific
15362 def in a specific instruction.
15363 (general_scalar_chain::convert_op): All reg uses are converted here.
15364 (general_scalar_chain::convert_insn): Emit copies for scalar
15365 uses of defs here. Replace uses with the copies we created.
15366 Replace and convert the def. Adjust REG_DEAD notes, remove
15367 REG_EQUIV/EQUAL notes.
15368 (general_scalar_chain::convert_registers): Only handle copies
15369 into the chain here.
15371 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15373 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15375 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15377 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15378 Add nop_convert case.
15379 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15380 Fold all statements if requested.
15381 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15382 Allow to fold all statements.
15383 * tree-vrp.c (class vrp_folder):
15384 Let substitute_and_fold_engine fold all statements.
15386 2019-08-26 Richard Biener <rguenther@suse.de>
15388 PR tree-optimization/91526
15389 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15390 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15391 TODO_update_address_taken.
15393 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15395 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15398 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15400 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15401 machine mode for unspec_volatile operand.
15403 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15405 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15406 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15407 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15408 (prefer_neon_for_64bits): Remove.
15409 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15410 (tune_params): Remove PREF_NEON_64_FALSE uses.
15411 (arm_option_override): Remove prefer_neon selection code.
15412 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15413 * config/arm/arm-protos.h (tune_params): Remove
15414 prefer_neon_for_64bits.
15415 (prefer_neon_for_64bits): Remove.
15417 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15420 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15421 and issue any diagnostics needed before collecting the pre-PCH
15424 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15426 PR middle-end/91283
15427 * common.opt (fexcess-precision=): Add Optimization flag. Use
15428 flag_excess_precision variable instead of
15429 flag_excess_precision_cmdline.
15430 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15432 (flag_excess_precision): Don't define.
15433 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15434 flag_excess_precision_cmdline. Remove comment.
15435 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15436 and x_flag_excess_precision instead of
15437 frontend_set_flag_excess_precision_cmdline and
15438 x_flag_excess_precision_cmdline.
15439 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15440 x_flag_excess_precision_cmdline.
15441 * toplev.c (init_excess_precision): Remove.
15442 (lang_dependent_init_target): Don't call it.
15444 2019-08-23 Martin Liska <mliska@suse.cz>
15446 * lto-wrapper.c (run_gcc): When setting jobserver
15447 set also parallel to 1. This was done so before r273908.
15449 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15451 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15452 (cortex-a76ae): Likewise.
15453 (cortex-a77): Likewise
15454 * config/arm/arm-tables.opt: Regenerate.
15455 * config/arm/arm-tune.md: Likewise.
15456 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15457 cortex-a77 CPU options.
15459 2019-08-23 Martin Liska <mliska@suse.cz>
15461 * profile.c (instrument_values): Do not set
15462 0 as last argument.
15463 * tree-profile.c (gimple_gen_interval_profiler): Remove
15465 (gimple_gen_pow2_profiler): Likewise.
15466 (gimple_gen_topn_values_profiler): Likewise.
15467 (gimple_gen_ic_profiler): Likewise.
15468 (gimple_gen_time_profiler): Likewise.
15469 (gimple_gen_average_profiler): Likewise.
15470 (gimple_gen_ior_profiler): Likewise.
15471 * value-prof.c (dump_histogram_value): Use default
15472 in switch statement instead of HIST_TYPE_MAX.
15473 (stream_in_histogram_value): Likewise.
15474 (gimple_duplicate_stmt_histograms): Do not
15475 use NULL for implicitly set arguments.
15476 (gimple_divmod_values_to_profile): Do not use
15477 reserve+quick_push.
15478 (gimple_indirect_call_to_profile): Likewise.
15479 (gimple_find_values_to_profile): Use implicit
15480 function call arguments.
15481 * value-prof.h (gimple_alloc_histogram_value):
15482 Set default values.
15483 (gimple_gen_interval_profiler): Remove last argument.
15484 (gimple_gen_pow2_profiler): Likewise.
15485 (gimple_gen_topn_values_profiler): Likewise.
15486 (gimple_gen_ic_profiler): Likewise.
15487 (gimple_gen_time_profiler): Likewise.
15488 (gimple_gen_average_profiler): Likewise.
15489 (gimple_gen_ior_profiler): Likewise.
15491 2019-08-22 Martin Sebor <msebor@redhat.com>
15493 PR middle-end/91490
15494 * builtins.c (c_strlen): Rename argument and introduce new local.
15495 Set no-warning bit on original argument.
15496 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15497 Fold empty and zero constructors into empty strings.
15498 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15499 for missing initializers.
15500 * tree.c (build_string_literal): Handle optional argument.
15501 * tree.h (build_string_literal): Add defaulted argument.
15502 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15503 no-warning bit on original expression.
15505 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15508 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15509 and UNSPEC_DARN_RAW.
15510 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15512 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15513 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15514 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15516 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15518 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15519 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15520 * config/rs6000/rs6000.md (unspec): ... here.
15521 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15522 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15523 cmpeqb, *cmpeqb_internal): Delete, move to...
15524 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15525 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15526 cmpeqb, *cmpeqb_internal): ... here.
15528 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15530 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15531 intrinsics if __ARM_FP.
15532 Use __ARM_FEATURE_CRC32 ifdef guard.
15534 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15536 * config/arm/arm.md (neon_for_64bits): Remove.
15537 (avoid_neon_for_64bits): Remove.
15538 (arm_adddi3): Always split early.
15539 (arm_subdi3): Always split early.
15540 (negdi2): Remove Neon expansion.
15541 (split zero_extend): Split before reload.
15542 (split sign_extend): Split before reload.
15544 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15546 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15547 (qhs_extenddi_cstr): Likewise.
15548 * config/arm/arm.md (ashldi3): Always expand early.
15549 (ashlsi3): Likewise.
15550 (ashrsi3): Likewise.
15551 (zero_extend<mode>di2): Remove Neon variants.
15552 (extend<mode>di2): Likewise.
15553 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15554 (signed_shift_di3_neon): Likewise.
15555 (unsigned_shift_di3_neon): Likewise.
15556 (ashrdi3_neon_imm_noclobber): Likewise.
15557 (lshrdi3_neon_imm_noclobber): Likewise.
15558 (<shift>di3_neon): Likewise.
15559 (split extend): Remove DI extend split patterns.
15561 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15563 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15564 (split not): Add DImode not splitter.
15565 (anddi3): Remove pattern.
15566 (anddi3_insn): Likewise.
15567 (anddi_zesidi_di): Likewise.
15568 (anddi_sesdi_di): Likewise.
15569 (anddi_notdi_di): Likewise.
15570 (anddi_notzesidi_di): Likewise.
15571 (anddi_notsesidi_di): Likewise.
15572 (iordi3): Likewise.
15573 (iordi3_insn): Likewise.
15574 (iordi_zesidi_di): Likewise.
15575 (iordi_sesidi_di): Likewise.
15576 (xordi3): Likewise.
15577 (xordi3_insn): Likewise.
15578 (xordi_sesidi_di): Likewise.
15579 (xordi_zesidi_di): Likewise.
15580 (one_cmpldi2): Likewise.
15581 (one_cmpldi2_insn): Likewise.
15582 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15583 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15585 (iwmmxt_xordi3): Likewise.
15586 (iwmmxt_anddi3): Likewise.
15587 * config/arm/neon.md (orndi3_neon): Remove pattern.
15588 (anddi_notdi_di): Likewise.
15589 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15590 (arm_iordi_operand_neon): Likewise.
15591 (arm_xordi_operand_neon): Likewise.
15592 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15593 (iordi_notzesidi_di): Likewise.
15594 (iordi_notdi_zesidi): Likewise.
15595 (iordi_notsesidi_di): Likewise.
15597 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15599 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15601 (iorsi3_compare0_scratch): Likewise.
15603 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15605 * config/aarch64/aarch64-simd-builtins.def:
15608 * config/aarch64/aarch64-simd.md:
15609 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15610 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15611 (aarch64_ld1_x4_<mode>): Likewise.
15612 (aarch64_st1_x4_<mode>): Likewise.
15613 * config/aarch64/arm_neon.h:
15614 (vld1_s8_x4): New function.
15615 (vld1q_s8_x4): Likewise.
15616 (vld1_s16_x4): Likewise.
15617 (vld1q_s16_x4): Likewise.
15618 (vld1_s32_x4): Likewise.
15619 (vld1q_s32_x4): Likewise.
15620 (vld1_u8_x4): Likewise.
15621 (vld1q_u8_x4): Likewise.
15622 (vld1_u16_x4): Likewise.
15623 (vld1q_u16_x4): Likewise.
15624 (vld1_u32_x4): Likewise.
15625 (vld1q_u32_x4): Likewise.
15626 (vld1_f16_x4): Likewise.
15627 (vld1q_f16_x4): Likewise.
15628 (vld1_f32_x4): Likewise.
15629 (vld1q_f32_x4): Likewise.
15630 (vld1_p8_x4): Likewise.
15631 (vld1q_p8_x4): Likewise.
15632 (vld1_p16_x4): Likewise.
15633 (vld1q_p16_x4): Likewise.
15634 (vld1_s64_x4): Likewise.
15635 (vld1_u64_x4): Likewise.
15636 (vld1_p64_x4): Likewise.
15637 (vld1q_s64_x4): Likewise.
15638 (vld1q_u64_x4): Likewise.
15639 (vld1q_p64_x4): Likewise.
15640 (vld1_f64_x4): Likewise.
15641 (vld1q_f64_x4): Likewise.
15642 (vst1_s8_x4): Likewise.
15643 (vst1q_s8_x4): Likewise.
15644 (vst1_s16_x4): Likewise.
15645 (vst1q_s16_x4): Likewise.
15646 (vst1_s32_x4): Likewise.
15647 (vst1q_s32_x4): Likewise.
15648 (vst1_u8_x4): Likewise.
15649 (vst1q_u8_x4): Likewise.
15650 (vst1_u16_x4): Likewise.
15651 (vst1q_u16_x4): Likewise.
15652 (vst1_u32_x4): Likewise.
15653 (vst1q_u32_x4): Likewise.
15654 (vst1_f16_x4): Likewise.
15655 (vst1q_f16_x4): Likewise.
15656 (vst1_f32_x4): Likewise.
15657 (vst1q_f32_x4): Likewise.
15658 (vst1_p8_x4): Likewise.
15659 (vst1q_p8_x4): Likewise.
15660 (vst1_p16_x4): Likewise.
15661 (vst1q_p16_x4): Likewise.
15662 (vst1_s64_x4): Likewise.
15663 (vst1_u64_x4): Likewise.
15664 (vst1_p64_x4): Likewise.
15665 (vst1q_s64_x4): Likewise.
15666 (vst1q_u64_x4): Likewise.
15667 (vst1q_p64_x4): Likewise.
15668 (vst1_f64_x4): Likewise.
15669 (vst1q_f64_x4): Likewise.
15671 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15673 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15675 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15676 Richard Sandiford <richard.sandiford@arm.com>
15679 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15680 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15682 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15685 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15686 in reg if it fails aarch64_plus_operand predicate.
15688 2019-08-21 Richard Biener <rguenther@suse.de>
15690 PR tree-optimization/91482
15691 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15692 BUILT_IN_ASSUME_ALIGNED calls.
15694 2019-08-21 Richard Biener <rguenther@suse.de>
15698 * config/i386/i386-features.c
15699 (general_scalar_chain::make_vector_copies): Copy stack temporary
15700 rtx when using it multiple times.
15701 (general_scalar_chain::convert_reg): Likewise.
15703 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15705 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15707 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15709 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15710 catch more redundant zero initialization cases.
15711 (dse_dom_walker::dse_optimize_stmt): Likewise.
15713 2019-08-20 Richard Biener <rguenther@suse.de>
15716 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15717 by collect2 when targetm.have_ctors_dtors which avoids dragging
15718 in temporary filenames from LTO input objects.
15720 2019-08-20 Richard Biener <rguenther@suse.de>
15722 PR tree-optimization/37242
15723 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15724 to (T)a + (T)b if we know that a + b does not overflow.
15726 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15728 PR rtl-optimization/91347
15729 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15730 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15732 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15734 * calls.h (function_arg_info): Add a pass_by_reference field,
15735 defaulting to false.
15736 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15737 when applying pass-by-reference semantics.
15738 (initialize_argument_information): Likewise.
15739 (emit_library_call_value_1): Likewise.
15740 * function.c (assign_parm_data_one): Remove passed_pointer field.
15741 (assign_parm_find_data_types): Don't set it.
15742 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15743 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15744 arg.pass_by_reference instead of passed_pointer.
15746 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15748 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15749 into a single function_arg_info, updating its fields when we
15750 apply pass-by-reference and promotion semantics. Use the
15751 function_arg_info to track the mode rather than keeping it in
15752 a separate local variable.
15753 (initialize_argument_information): Likewise. Base the final
15754 arg_to_skip on this new function_arg_info rather than creating
15755 a new one from scratch.
15757 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15759 * function.c (assign_parm_data_one): Replace passed_type,
15760 promoted_mode and named_arg with a function_arg_info field.
15761 (assign_parm_find_data_types): Remove local variables and
15762 assign directly to "data". Make data->passed_mode shadow
15763 data->arg.mode until promotion, then assign the promoted
15764 mode to data->arg.mode.
15765 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15766 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15767 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15768 (assign_parm_setup_block, assign_parm_setup_reg)
15769 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15770 arg.mode instead of promoted_mode, arg.type instead of passed_type
15771 and arg.named instead of named_arg. Use data->arg for
15772 function_arg_info structures that had the field values passed_type,
15773 promoted_mode and named_arg. Base other function_arg_infos on
15774 data->arg, changing the necessary properties.
15776 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15778 * calls.h (apply_pass_by_reference_rules): Declare.
15779 * calls.c (apply_pass_by_reference_rules): New function.
15780 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15781 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15782 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15783 * function.c (assign_parm_find_data_types): Likewise.
15784 * var-tracking.c (prepare_call_arguments): Likewise.
15786 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15788 * target.def (must_pass_in_stack): Take a function_arg_info instead
15789 of a mode and a type.
15790 * doc/tm.texi: Regenerate.
15791 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15792 instead of a mode and a type.
15793 (must_pass_in_stack_var_size_or_pad): Likewise.
15794 * calls.c (must_pass_in_stack_var_size): Likewise.
15795 (must_pass_in_stack_var_size_or_pad): Likewise.
15796 (initialize_argument_information): Update call to
15797 targetm.calls.must_pass_in_stack.
15798 (must_pass_va_arg_on_stack): Likewise.
15799 * function.c (assign_parm_find_entry_rtl): Likewise.
15800 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15801 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15802 (alpha_function_arg_advance): Likewise.
15803 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15804 (cr16_function_arg_advance): Likewise.
15805 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15806 (cris_arg_partial_bytes): Likewise.
15807 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15808 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15809 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15810 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15811 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15812 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15813 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15814 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15815 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15816 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15817 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15818 instead of a mode and a type.
15819 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15820 (fr30_num_arg_regs): Likewise.
15821 (fr30_setup_incoming_varargs): Update calls accordingly.
15822 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15823 (fr30_function_arg_advance): Likewise.
15824 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15825 instead of a mode and a type.
15826 * config/gcn/gcn.c (num_arg_regs): Likewise.
15827 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15828 num_arg_regs and targetm.calls.must_pass_in_stack.
15829 (gcn_arg_partial_bytes): Likewise.
15830 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15831 function_arg_info instead of a mode and a type.
15832 (classify_argument): Update call accordingly.
15833 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15834 function_arg_info instead of a mode and a type.
15835 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15837 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15838 (rs6000_parm_needs_stack): Update call accordingly.
15839 (setup_incoming_varargs): Likewise.
15841 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15843 * target.def (callee_copies): Take a function_arg_info instead
15844 of a mode, type and named flag.
15845 * doc/tm.texi: Regenerate.
15846 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15847 instead of a mode, type and named flag.
15848 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15849 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15850 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15851 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15852 instead of a mode, type and named flag.
15853 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15854 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15855 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15856 * calls.h (reference_callee_copied): Take a function_arg_info
15857 instead of a mode, type and named flag.
15858 * calls.c (reference_callee_copied): Likewise.
15859 (initialize_argument_information): Update call accordingly.
15860 (emit_library_call_value_1): Likewise.
15861 * function.c (gimplify_parameters): Likewise.
15862 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15863 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15864 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15865 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15866 (TARGET_CALLEE_COPIES): Define to
15867 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15868 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15869 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15870 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15871 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15872 instead of a mode, type and named flag.
15873 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15874 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15875 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15876 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15877 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15878 (TARGET_CALLEE_COPIES): Define to
15879 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15880 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15881 instead of a mode, type and named flag.
15882 * config/sh/sh.c (sh_callee_copies): Likewise.
15883 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15884 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15885 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15887 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15889 * target.def (function_arg_advance): Take a function_arg_info instead
15890 of a mode, type and named flag.
15891 * doc/tm.texi: Regenerate.
15892 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15893 instead of a mode, type and named flag.
15894 * targhooks.c (default_function_arg_advance): Likewise.
15895 * calls.c (initialize_argument_information): Update call to
15896 targetm.calls.function_arg_advance.
15897 (emit_library_call_value_1): Likewise.
15898 * dse.c (get_call_args): Likewise.
15899 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15900 * function.c (assign_parms, gimplify_parameters): Likewise.
15901 * var-tracking.c (prepare_call_arguments): Likewise.
15902 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15903 function_arg_info instead of a mode, type and named flag.
15904 (aarch64_setup_incoming_varargs): Update call accordingly.
15905 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15906 function_arg_info instead of a mode, type and named flag.
15907 (alpha_setup_incoming_varargs): Update call accordingly.
15908 * config/arc/arc.c (arc_function_arg_advance): Take a
15909 function_arg_info instead of a mode, type and named flag.
15910 (arc_setup_incoming_varargs): Update call accordingly.
15911 * config/arm/arm.c (arm_function_arg_advance): Take a
15912 function_arg_info instead of a mode, type and named flag.
15913 (cmse_func_args_or_return_in_stack): Update call accordingly.
15914 (arm_function_ok_for_sibcall): Likewise.
15915 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15916 * config/avr/avr.c (avr_function_arg_advance): Take a
15917 function_arg_info instead of a mode, type and named flag.
15918 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15919 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15920 (c6x_call_saved_register_used): Update call accordingly.
15921 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15922 function_arg_info instead of a mode, type and named flag.
15923 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15924 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15925 (csky_setup_incoming_varargs): Update call accordingly.
15926 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15927 function_arg_info instead of a mode, type and named flag.
15928 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15929 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15930 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15931 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15932 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15933 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15934 (ix86_setup_incoming_varargs): Update call accordingly.
15935 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15936 function_arg_info instead of a mode, type and named flag.
15937 (ia64_setup_incoming_varargs): Update call accordingly.
15938 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15939 function_arg_info instead of a mode, type and named flag.
15940 (iq2000_expand_prologue): Update call accordingly.
15941 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15942 function_arg_info instead of a mode, type and named flag.
15943 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15944 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15945 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15946 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15947 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15949 (microblaze_expand_prologue): Update call accordingly.
15950 * config/mips/mips.c (mips_function_arg_advance): Take a
15951 function_arg_info instead of a mode, type and named flag.
15952 (mips_setup_incoming_varargs): Update call accordingly.
15953 (mips_output_args_xfer): Likewise.
15954 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15955 function_arg_info instead of a mode, type and named flag.
15956 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15957 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15958 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15959 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15960 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15961 (nios2_setup_incoming_varargs): Update call accordingly.
15962 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15963 function_arg_info instead of a mode, type and named flag.
15964 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15965 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15966 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15967 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15968 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15969 (riscv_setup_incoming_varargs): Update call accordingly.
15970 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15971 function_arg_info instead of a mode, type and named flag.
15972 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15974 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15975 (rs6000_parm_needs_stack): Update call accordingly.
15976 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15977 instead of a mode, type and named flag.
15978 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15979 (s390_call_saved_register_used): Update call accordingly.
15980 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15981 instead of a mode, type and named flag.
15982 (sh_output_mi_thunk): Update call accordingly.
15983 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15984 function_arg_info instead of a mode, type and named flag.
15985 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15986 (spu_setup_incoming_varargs): Update call accordingly.
15987 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15988 function_arg_info instead of a mode, type and named flag.
15989 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15990 (tilegx_setup_incoming_varargs): Update call accordingly.
15991 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15992 function_arg_info instead of a mode, type and named flag.
15993 (tilegx_setup_incoming_varargs): Update call accordingly.
15994 * config/v850/v850.c (v850_function_arg_advance): Take a
15995 function_arg_info instead of a mode, type and named flag.
15996 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15997 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15998 (visium_setup_incoming_varargs): Update call accordingly.
15999 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16000 function_arg_info instead of a mode, type and named flag.
16002 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16004 * target.def (function_arg, function_incoming_arg): Take a
16005 function_arg_info instead of a mode, tree and named flag.
16006 * doc/tm.texi: Regenerate.
16007 * targhooks.h (default_function_arg): Take a function_arg_info
16008 instead of a mode, tree and named flag.
16009 (default_function_incoming_arg): Likewise.
16010 * targhooks.c (default_function_arg): Likewise.
16011 (default_function_incoming_arg): Likewise.
16012 * calls.h (function_arg_info::end_marker_p): New function.
16013 (function_arg_info::end_marker): Likewise.
16014 * calls.c (prepare_call_address, initialize_argument_information)
16015 (expand_call, emit_library_call_value_1): Update calls to
16016 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16017 * dse.c: Include calls.h.
16018 (get_call_args): Update call to targetm.calls.function_arg.
16019 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16020 * var-tracking.c (prepare_call_arguments): Likewise.
16021 * function.c (assign_parm_find_entry_rtl): Update call to
16022 targetm.calls.function_incoming_arg.
16023 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16024 function_arg_info instead of a mode, tree and named flag.
16025 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16026 * config/arc/arc.c (arc_function_arg): Likewise.
16027 * config/arm/arm.c (arm_function_arg): Likewise.
16028 (cmse_func_args_or_return_in_stack): Update call accordingly.
16029 (arm_function_ok_for_sibcall): Likewise.
16030 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16031 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16032 instead of a mode, tree and named flag.
16033 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16034 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16035 (c6x_call_saved_register_used): Update call accordingly.
16036 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16037 instead of a mode, tree and named flag.
16038 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16039 (cris_function_arg_1): Likewise.
16040 * config/csky/csky.c (csky_function_arg): Likewise.
16041 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16042 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16043 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16044 (frv_function_arg_1): Likewise.
16045 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16046 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16047 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16048 * config/i386/i386.c (ix86_function_arg): Likewise.
16049 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16050 (ia64_function_arg_1): Likewise.
16051 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16052 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16054 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16055 instead of a mode, tree and named flag.
16056 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16057 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16058 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16059 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16060 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16061 (microblaze_expand_prologue): Update call accordingly.
16062 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16063 instead of a mode, tree and named flag.
16064 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16065 (mmix_function_arg_1): Likewise.
16066 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16067 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16068 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16069 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16070 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16071 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16072 (nvptx_function_incoming_arg): Likewise.
16073 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16074 * config/pa/pa.c (pa_function_arg): Likewise.
16075 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16076 * config/pru/pru.c (pru_function_arg): Likewise.
16077 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16078 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16079 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16080 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16081 (rs6000_parm_needs_stack): Update call accordingly.
16082 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16083 instead of a mode, tree and named flag.
16084 * config/s390/s390.c (s390_function_arg): Likewise.
16085 (s390_call_saved_register_used): Update call accordingly.
16086 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16087 instead of a mode, tree and named flag.
16088 (sh_output_mi_thunk): Update call accordingly.
16089 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16090 (sparc_function_incoming_arg): Take a function_arg_info instead of
16091 a mode, tree and named flag.
16092 * config/spu/spu.c (spu_function_arg): Likewise.
16093 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16094 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16095 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16096 * config/v850/v850.c (v850_function_arg): Likewise.
16097 * config/vax/vax.c (vax_function_arg): Likewise.
16098 * config/visium/visium.c (visium_function_arg): Likewise.
16099 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16100 (xtensa_function_incoming_arg): Likewise.
16102 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16104 * target.def (setup_incoming_varargs): Take a function_arg_info
16105 instead of a mode and tree.
16106 * doc/tm.texi: Regenerate.
16107 * targhooks.h (default_setup_incoming_varargs): Take a
16108 function_arg_info instead of a mode and tree.
16109 * targhooks.c (default_setup_incoming_varargs): Likewise.
16110 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16111 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16112 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16113 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16114 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16115 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16116 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16117 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16119 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16120 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16121 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16122 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16123 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16124 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16125 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16126 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16127 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16128 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16129 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16130 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16131 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16132 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16133 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16134 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16135 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16136 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16137 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16138 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16139 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16140 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16141 * function.c (assign_parms_setup_varargs): Update call to
16142 targetm.calls.setup_incoming_varargs.
16144 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16146 * target.def (pass_by_reference): Take a function_arg_info instead
16147 of a mode, type and named flag.
16148 * doc/tm.texi: Regenerate.
16149 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16151 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16152 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16153 function_arg_info instead of a mode, type and named flag.
16154 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16155 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16156 mode, type and named flag.
16157 * calls.c (pass_by_reference): Likewise.
16158 (pass_va_arg_by_reference): Update call accordingly.
16159 (initialize_argument_information): Likewise.
16160 (emit_library_call_value_1): Likewise.
16161 * function.c (assign_parm_find_data_types): Likewise.
16162 * var-tracking.c (prepare_call_arguments): Likewise.
16163 * stor-layout.c: Include calls.h.
16164 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16165 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16166 function_arg_info instead of a mode, type and named flag.
16167 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16168 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16169 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16170 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16171 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16172 (c6x_call_saved_register_used): Update call to pass_by_reference.
16173 * config/cris/cris.c (cris_pass_by_reference): Take a
16174 function_arg_info instead of a mode, type and named flag.
16175 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16176 function_arg_info instead of a mode, type and named flag.
16177 (epiphany_arg_partial_bytes): Update call accordingly.
16178 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16179 function_arg_info instead of a mode, type and named flag.
16180 (ft32_arg_partial_bytes): Update call accordingly.
16181 * config/i386/i386.c (ix86_pass_by_reference): Take a
16182 function_arg_info instead of a mode, type and named flag.
16183 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16184 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16185 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16186 (m32r_return_in_memory): Update call accordingly.
16187 * config/mips/mips.c (mips_pass_by_reference): Take a
16188 function_arg_info instead of a mode, type and named flag.
16189 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16190 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16191 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16192 (moxie_arg_partial_bytes): Update call accordingly.
16193 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16194 function_arg_info instead of a mode, type and named flag.
16195 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16196 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16197 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16198 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16199 (riscv_return_in_memory): Update call accordingly.
16200 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16201 function_arg_info instead of a mode, type and named flag.
16202 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16203 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16204 * config/s390/s390.c (s390_pass_by_reference): Take a
16205 function_arg_info instead of a mode, type and named flag.
16206 (s390_call_saved_register_used): Update call accordingly.
16207 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16208 instead of a mode, type and named flag.
16209 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16210 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16211 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16212 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16213 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16214 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16216 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16218 * target.def (arg_partial_bytes): Take a function_arg_info instead
16219 of a mode, type and named flag.
16220 * doc/tm.texi: Regenerate.
16221 * target.h (function_arg_info): Declare.
16222 * calls.h (function_arg_info): New class.
16223 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16224 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16225 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16226 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16227 * calls.c (initialize_argument_information): Update call to
16228 targetm.calls.partial_bytes.
16229 (emit_library_call_value_1): Likewise.
16230 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16231 * function.c (assign_parm_find_entry_rtl): Likewise.
16232 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16233 function_arg_info instead of a mode, type and named flag.
16234 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16235 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16236 (cmse_func_args_or_return_in_stack): Update accordingly.
16237 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16238 function_arg_info instead of a mode, type and named flag.
16239 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16240 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16241 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16242 * config/fr30/fr30.c: Include calls.h.
16243 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16244 type and named flag.
16245 * config/frv/frv.c: Include calls.h.
16246 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16247 type and named flag.
16248 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16249 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16250 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16251 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16252 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16253 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16254 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16256 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16257 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16258 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16259 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16260 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16261 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16262 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16263 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16264 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16265 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16266 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16267 (rs6000_parm_needs_stack): Update call accordingly.
16268 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16269 function_arg_info instead of a mode, type and named flag.
16270 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16271 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16273 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16275 * calls.h (must_pass_va_arg_in_stack): Declare.
16276 * calls.c (must_pass_va_arg_in_stack): New function.
16277 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16278 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16279 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16281 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16283 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16285 * calls.h (pass_va_arg_by_reference): Declare.
16286 * calls.c (pass_va_arg_by_reference): New function.
16287 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16288 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16289 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16290 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16291 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16292 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16293 (mips_gimplify_va_arg_expr): Likewise.
16294 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16295 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16296 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16297 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16298 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16299 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16300 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16301 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16302 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16303 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16304 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16306 2019-08-20 Richard Biener <rguenther@suse.de>
16309 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16310 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16311 (convert_scalars_to_vector): Add timode_p parameter and use it
16312 to guard TImode-only operation.
16313 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16314 (pass_stv::execute): Pass down timode_p.
16316 2019-08-20 Lili Cui <lili.cui@intel.com>
16318 * common/config/i386/i386-common.c
16319 (processor_names): Add tigerlake and cooperlake.
16320 (processor_alias_table): Add tigerlake and cooperlake.
16321 * config.gcc: Add -march=tigerlake and cooperlake.
16322 * config/i386/driver-i386.c
16323 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16324 Add "has_avx" to classify processor.
16325 * config/i386/i386-builtins.c (processor_model) :
16326 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16327 (arch_names_table): Add tigerlake and cooperlake.
16328 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16329 and PROCESSOR_COOPERLAKE.
16330 * config/i386/i386-c.c
16331 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16332 * config/i386/i386-options.c
16333 (m_TIGERLAKE): Define.
16334 (m_COOPERLAKE): Ditto.
16335 (m_CORE_AVX512): Ditto.
16336 (processor_cost_table): Add cascadelake.
16337 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16338 * config/i386/i386.h
16339 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16340 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16341 (PTA_MOVDIRI): Ditto.
16342 (PTA_MOVDIR64B): Ditto.
16343 (PTA_COOPERLAKE): Ditto.
16344 (PTA_TIGERLAKE): Ditto.
16345 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16346 * doc/extend.texi: Add tigerlake and cooperlake.
16347 * doc/invoke.texi: Add tigerlake and cooperlake.
16349 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16351 * doc/install.texi (Specific, alpha): Remove note to use
16352 binutils 2.11.2 or later.
16354 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16356 PR middle-end/89544
16357 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16360 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16362 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16363 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16364 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16365 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16366 * config/aarch64/constraints.md (Dt): New constraint
16367 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16369 2019-08-19 Richard Biener <rguenther@suse.de>
16371 PR tree-optimization/91403
16372 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16373 cases we can handle with tail-recursion...
16374 (follow_ssa_edge_expr): ... here. Do so.
16376 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16379 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16380 implemented for -fsanitize=kernel-address, and merge check logic
16381 with -fsanitize=address.
16383 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16385 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16386 for cpu and machine. Factor 64/32b builtins.
16388 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16390 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16391 gone, point to sourceforge.net.
16393 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16395 * doc/ux.texi (User Experience Guidelines): Update reference.
16397 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16399 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16402 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16404 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16405 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16407 2019-08-16 Martin Sebor <msebor@redhat.com>
16409 * tree.def (TYPE_SIZE): Clarify.
16410 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16412 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16414 PR tree-optimization/91109
16415 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16416 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16417 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16419 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16421 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16422 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16423 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16424 (uavg<mode>3_ceil): New expander.
16425 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16426 mode iterator when creating CONST1_RTX.
16427 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16428 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16429 mode iterator for const1_operand predicate.
16431 2019-08-16 Richard Biener <rguenther@suse.de>
16433 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16434 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16436 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16437 (analyze_evolution_in_loop): Likewise.
16438 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16439 (follow_ssa_edge_expr): ... here. Refactor code.
16441 2019-08-16 Richard Biener <rguenther@suse.de>
16444 * config/i386/i386-features.c
16445 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16447 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16450 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16451 only if subst_name matches curr_attr string.
16453 2019-08-16 Richard Biener <rguenther@suse.de>
16455 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16456 stmt at gsi_p, instead replace it with a NOP removed later.
16457 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16458 that became dead because of that.
16460 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16462 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16463 for which we can't represent a range.
16464 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16466 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16467 Set VR_UNDEFINED if type is not supported.
16468 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16469 * tree-vrp.c (value_range_base::check): Assert that a varying has
16471 (value_range_base::equal_p): Early bail for undefines.
16472 (value_range_base::set_varying): Accept a type.
16473 (value_range::set_varying): Same.
16474 (value_range_base::type): VARYING can have a type, while UNDEFINE
16476 (value_range_base::dump): Print type for VARYING nodes.
16477 (value_range_base::set): Add type to VARYING.
16478 (extract_range_from_multiplicative_op): Pass type to set_varying.
16479 (extract_range_from_binary_expr): Same.
16480 (value_range_base::intersect_helper): Same.
16481 (value_range_base::union_helper): Same.
16482 (value_range_base::normalize_symbolics): Same.
16483 (determine_value_range_1): Same.
16484 * tree-vrp.h (class value_range_base): Add type to set_varying.
16485 Add prototype for dump(void).
16486 Add prototype for supports_type_p.
16487 (class value_range): Add type to set_varying.
16488 Add prototype for dump(void).
16489 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16491 (vr_values::get_lattice_entry): Set varying even if propagation
16493 Pass type to set_varying.
16494 (vr_values::get_value_range): Remove vr_const_varying.
16495 Reallocate the lattice if needed.
16496 (vr_values::update_value_range): Pass type to set_varying.
16497 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16498 (vr_values::extract_range_from_binary_expr): Same.
16499 (vr_values::extract_range_from_unary_expr): Same.
16500 (vr_values::extract_range_from_cond_expr): Same.
16501 (vr_values::check_for_binary_op_overflow): Same.
16502 (vr_values::extract_range_basic): Same.
16503 (vr_values::extract_range_from_assignment): Same.
16504 (vr_values::vr_values): Increase size of num_vr_values.
16505 (vr_values::extract_range_from_phi_node): Pass type to
16508 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16511 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16512 for costs of hard register moves.
16513 (ix86_register_move_cost): Likewise.
16514 * config/i386/i386.h (processor_costs): Move costs of hard
16515 register moves to hard_register. Add int_load, int_store,
16516 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16517 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16518 for costs of RTL expressions.
16519 * config/i386/x86-tune-costs.h: Move costs of hard register
16520 moves to hard_register. Duplicate int_load, int_store,
16521 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16522 sse_load, sse_store for costs of RTL expressions.
16524 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16526 * target.def (setup_incoming_vararg_bounds): Remove.
16527 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16528 * doc/tm.texi: Regenerate.
16529 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16530 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16531 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16532 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16534 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16536 MSP430: Fix lines over 80 characters long in
16537 config/msp430/*.{c,h} files
16539 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16540 specifier in string.
16541 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16542 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16543 redundant old comment.
16544 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16545 Split line more than 80 characters long.
16546 * config/msp430/msp430.c (msp430_option_override): Likewise.
16547 (msp430_return_in_memory): Likewise.
16548 (msp430_gimplify_va_arg_expr): Likewise.
16549 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16550 (msp430_legitimate_constant): Likewise.
16551 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16552 (msp430_attr): Likewise.
16553 (msp430_data_attr): Likewise.
16554 (msp430_start_function): Likewise.
16555 (gen_prefix): Likewise.
16556 (msp430_init_sections): Likewise.
16557 (msp430_select_section): Likewise.
16558 (msp430_function_section): Likewise.
16559 (msp430_unique_section): Likewise.
16560 (msp430_output_aligned_decl_common): Likewise.
16561 (msp430_do_not_relax_short_jumps): Likewise.
16562 (msp430_init_builtins): Likewise.
16563 (msp430_expand_delay_cycles): Likewise.
16564 (msp430_expand_prologue): Likewise.
16565 (msp430_expand_epilogue): Likewise.
16566 (msp430_expand_helper): Likewise.
16567 (msp430_split_movsi): Likewise.
16568 (msp430_print_operand): Likewise.
16569 (msp430_return_addr_rtx): Likewise.
16570 (msp430x_extendhisi): Likewise.
16571 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16572 (ASM_SPEC): Likewise.
16573 Remove very obvious comments.
16574 (LIB_SPEC): Split line more than 80 characters long.
16575 (EH_RETURN_HANDLER_RTX): Likewise.
16576 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16578 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16580 MSP430: Fix whitespace errors and incorrect indentation in
16581 config/msp430/*.{c,h} files
16583 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16584 (msp430_select_hwmult_lib): Likewise.
16585 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16586 (msp430_extract_mcu_data): Likewise.
16587 (struct t_msp430_mcu_data): Likewise.
16588 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16589 before left square bracket.
16590 (msp430_option_override): Fix indentation.
16591 (msp430_hard_regno_nregs_with_padding): Likewise.
16592 (msp430_initial_elimination_offset): Likewise.
16593 (msp430_special_register_convention_p): Remove whitespace before left
16594 square bracket and after exclamation mark.
16595 (msp430_evaluate_arg): Likewise.
16596 (msp430_callee_copies): Fix indentation.
16597 (msp430_gimplify_va_arg_expr): Likewise.
16598 (msp430_function_arg_advance): Remove whitespace before left square
16600 (reg_ok_for_addr): Likewise.
16601 (msp430_preserve_reg_p): Likewise.
16602 (msp430_compute_frame_info): Likewise.
16603 (msp430_asm_output_addr_const_extra): Add space between function name
16604 and open parenthesis.
16605 (has_section_name): Fix indentation.
16606 (msp430_attr): Remove trailing whitespace.
16607 (msp430_section_attr): Likewise.
16608 (msp430_data_attr): Likewise.
16609 (struct msp430_attribute_table): Fix comment and whitespace.
16610 (msp430_start_function): Remove whitespace before left square bracket.
16611 Add space between function name and open parenthesis.
16612 (msp430_select_section): Remove trailing whitespace.
16613 (msp430_section_type_flags): Remove trailing whitespace.
16614 (msp430_unique_section): Remove space before closing parenthesis.
16615 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16616 (msp430_builtins): Remove whitespace before left square bracket.
16617 (msp430_init_builtins): Fix indentation.
16618 (msp430_expand_prologue): Remove whitespace before left square bracket.
16619 Remove space before closing parenthesis.
16620 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16621 (msp430_split_movsi): Remove space before closing parenthesis.
16622 (helper_function_name_mappings): Fix indentation.
16623 (msp430_use_f5_series_hwmult): Fix whitespace.
16624 (use_32bit_hwmult): Likewise.
16625 (msp430_no_hwmult): Likewise.
16626 (msp430_output_labelref): Remove whitespace before left square bracket.
16627 (msp430_print_operand_raw): Likewise.
16628 (msp430_print_operand_addr): Likewise.
16629 (msp430_print_operand): Add two spaces after '.' in comment.
16630 Fix trailing whitespace.
16631 (msp430x_extendhisi): Fix indentation.
16632 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16634 (PC_REGNUM): Likewise.
16635 (STACK_POINTER_REGNUM): Likewise.
16636 (CC_REGNUM): Likewise.
16638 2019-08-15 Richard Biener <rguenther@suse.de>
16641 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16643 (general_scalar_chain::make_vector_copies): Use it.
16645 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16647 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16649 2019-08-15 Martin Liska <mliska@suse.cz>
16651 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16652 operators with no arguments.
16653 (eliminate_unnecessary_stmts): Likewise here.
16655 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16657 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16658 <case COMPARE>: Revert 2019-08-14 change.
16659 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16660 for (TARGET_64BIT || mode != DImode).
16662 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16664 * tree-vrp.c (value_range_base::set): Merge in code from
16665 value_range_base::set_and_canonicalize.
16666 Enforce canonicalization at set time.
16667 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16668 (value_range_base::set_undefined): Inline call to set().
16669 (value_range_base::set_varying): Same.
16670 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16671 (vrp_val_max): New argument handle_pointers.
16672 (vrp_val_min): Same.
16673 (ranges_from_anti_range): Same.
16674 (extract_range_into_wide_ints): Use tree argument instead of sign
16676 (extract_range_from_multiplicative_op): Take in tree type instead
16677 of precision and sign. Adapt function for canonicalized ranges.
16678 (extract_range_from_binary_expr): Pass type to
16679 extract_range_from_multiplicative_op.
16680 Adapt for canonicalized ranges.
16681 (extract_range_from_unary_expr): Same.
16682 (value_range_base::intersect_helper): Adjust for canonicalized
16684 (value_range_base::union_helper): Same.
16685 (value_range_base::normalize_symbolics): New.
16686 * tree-vrp.h (class value_range_base): Remove
16687 set_and_canonicalize.
16688 New prototype for normalize_symbolics.
16689 (class value_range): Remove set_and_canonicalize.
16690 (vrp_val_min): Adjust prototype.
16691 (vrp_val_max): Same.
16693 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16694 instead of set_and_canonicalize.
16696 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16698 PR middle-end/91444
16699 * tree-vect-stmts.c (vectorizable_call): Check that the function
16700 is a BUILT_IN_MD function before passing it to
16701 targetm.vectorize.builtin_md_vectorized_function.
16703 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16705 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16706 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16707 (aarch64_select_early_remat_modes): Use it.
16709 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16711 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16712 16 for SVE predicates even if they are fixed-length.
16714 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16716 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16717 operand order match the MOV /Z alias.
16719 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16721 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16722 the vector pattern as an aarch64_svpattern argument. Update the
16723 overloaded caller accordingly.
16724 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16725 (aarch64_output_sve_vector_inc_dec): Likewise.
16727 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16729 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16730 multiplication case, try to compute VG * (lowest set bit) directly
16731 rather than always basing the multiplication on VG. Use
16732 expand_mult for the multiplication if we can.
16734 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16736 * config/aarch64/aarch64-protos.h
16737 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16738 (aarch64_sve_inc_dec_immediate_p): Rename to...
16739 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16740 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16741 (aarch64_output_sve_scalar_inc_dec): Declare.
16742 (aarch64_output_sve_inc_dec_immediate): Rename to...
16743 (aarch64_output_sve_vector_inc_dec): ...this.
16744 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16745 (aarch64_output_sve_scalar_inc_dec): New functions.
16746 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16747 arguments. Only handle true ADDVL and ADDPL instructions;
16748 don't emit an INC or DEC.
16749 (aarch64_sve_inc_dec_immediate_p): Rename to...
16750 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16751 (aarch64_output_sve_inc_dec_immediate): Rename to...
16752 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16753 aarch64_sve_vector_inc_dec_immediate_p.
16754 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16755 (aarch64_sve_plus_immediate): New predicates.
16756 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16757 rather than aarch64_sve_addvl_addpl_immediate.
16758 (aarch64_sve_inc_dec_immediate): Rename to...
16759 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16760 aarch64_sve_vector_inc_dec_immediate_p.
16761 (aarch64_sve_add_operand): Update accordingly.
16762 * config/aarch64/constraints.md (Uai): New constraint.
16763 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16764 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16765 operand into a register if it satisfies aarch64_sve_plus_immediate.
16766 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16767 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16768 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16769 aarch64_output_sve_vector_inc_dec instead of
16770 aarch64_output_sve_inc_dec_immediate.
16772 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16774 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16775 (UNSPEC_REVW): New constants.
16776 (elem_bits): New mode attribute.
16777 (SVE_INT_UNARY): New int iterator.
16778 (optab): Handle UNSPEC_REV[BHW].
16779 (sve_int_op): New int attribute.
16780 (min_elem_bits): Handle VNx16QI and the predicate modes.
16781 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16782 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16783 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16784 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16785 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16786 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16787 unspecs based on the total width of the reversed data.
16788 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16789 reinterpret followed by a subreg on big-endian targets.
16791 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16792 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16794 * config/aarch64/aarch64-sve.md
16795 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16796 alternatives in which one of the inputs is in the same register
16799 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16801 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16802 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16804 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16806 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16807 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16809 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16810 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16812 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16813 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16814 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16816 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16817 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16819 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16820 Add an alternative that uses reversed shifts.
16822 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16824 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16827 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16829 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16830 a commutativity marker.
16832 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16833 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16835 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16836 (aarch64_prepare_sve_cond_int_fma): Declare.
16837 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16838 (aarch64_prepare_sve_int_fma): New functions.
16839 (aarch64_prepare_sve_cond_int_fma): Likewise.
16840 * config/aarch64/aarch64-sve.md
16841 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16842 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16843 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16844 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16845 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16846 (*madd<mode>): Rename to...
16847 (*fma<mode>4): ...this.
16848 (*msub<mode>): Rename to...
16849 (*fnma<mode>4): ...this.
16851 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16852 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16854 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16855 Print 2.0 naturally.
16856 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16857 * config/aarch64/predicates.md
16858 (aarch64_sve_float_negated_arith_immediate): New predicate,
16859 renamed from aarch64_sve_float_arith_with_sub_immediate.
16860 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16861 positive and negative constants.
16862 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16863 or an aarch64_sve_float_arith_with_sub_immediate.
16864 * config/aarch64/constraints.md (vsN): Use
16865 aarch64_sve_float_negated_arith_immediate.
16866 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16868 (sve_pred_fp_rhs2_immediate): New int attribute.
16869 * config/aarch64/aarch64-sve.md
16870 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16871 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16872 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16873 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16874 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16875 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16877 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16878 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16880 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16881 (*aarch64_cond_abd<SVE_F:mode>_3)
16882 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16885 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16887 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16888 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16890 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16891 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16893 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16894 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16895 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16896 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16898 * optabs.h (create_convert_operand_from): Expand comment.
16899 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16900 when mapping scalar rtxes to vector operands.
16901 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16902 ashiftrt and lshiftrt.
16903 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16904 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16905 (*cond_<optab><mode>_any_const): New patterns.
16907 2019-08-15 Martin Liska <mliska@suse.cz>
16910 * cgraph.c (cgraph_node::remove): When setting
16911 n->origin = NULL for all nested functions, reset
16914 2019-08-15 Martin Liska <mliska@suse.cz>
16916 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16919 2019-08-15 Martin Liska <mliska@suse.cz>
16922 * passes.c (order): Remove.
16923 (uid_hash_t): Likewise).
16924 (remove_cgraph_node_from_order): Remove from set
16925 of pointers (cgraph_node *).
16926 (insert_cgraph_node_to_order): New.
16927 (duplicate_cgraph_node_to_order): New.
16928 (do_per_function_toporder): Register all 3 cgraph hooks.
16929 Skip removed_nodes now as we know about all of them.
16931 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16933 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16934 <case E_V8QImode>: Use vector_set path for
16935 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16936 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16937 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16939 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16941 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16943 2019-08-14 Martin Sebor <msebor@redhat.com>
16945 PR tree-optimization/91294
16946 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16947 source length as exact.
16949 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16951 * doc/extend.texi: Add "noinit" attribute documentation.
16952 * doc/sourcebuild.texi: Add noinit effective target documentation.
16953 * varasm.c (default_section_type_flags): Add support for "noinit"
16955 (default_elf_select_section): Add support for "noinit" attribute.
16956 * config/msp430/msp430.c (msp430_attribute_table): Remove
16959 2019-08-14 Richard Biener <rguenther@suse.de>
16960 Uroš Bizjak <ubizjak@gmail.com>
16963 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16965 (scalar_chain::smode): New member.
16966 (scalar_chain::vmode): Likewise.
16967 (dimode_scalar_chain): Rename to...
16968 (general_scalar_chain): ... this.
16969 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16970 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16971 base with TImode and V1TImode.
16972 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16973 (general_scalar_chain::vector_const_cost): Adjust for SImode
16975 (general_scalar_chain::compute_convert_gain): Likewise. Add
16976 {S,U}{MIN,MAX} support.
16977 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16978 (general_scalar_chain::make_vector_copies): Likewise. Handle
16979 non-DImode chains appropriately.
16980 (general_scalar_chain::convert_reg): Likewise.
16981 (general_scalar_chain::convert_op): Likewise.
16982 (general_scalar_chain::convert_insn): Likewise. Add
16983 fatal_insn_not_found if the result is not recognized.
16984 (convertible_comparison_p): Pass in the scalar mode and use that.
16985 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16986 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16987 (scalar_to_vector_candidate_p): Remove by inlining into single
16989 (general_remove_non_convertible_regs): Rename from
16990 dimode_remove_non_convertible_regs.
16991 (remove_non_convertible_regs): Remove by inlining into single caller.
16992 (convert_scalars_to_vector): Handle SImode and DImode chains
16993 in addition to TImode chains.
16994 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16995 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16996 (*<maxmin>di3_doubleword): Likewise.
16998 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16999 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17001 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17002 (*cond_bic<mode>_any): New patterns.
17004 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17006 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17007 take the equivalent mask, as well as a bit count.
17008 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17009 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17010 (aarch64_sve_pred_and_operand): New predicates.
17011 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17013 * config/aarch64/aarch64-sve.md
17014 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17015 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17017 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17019 * config/aarch64/aarch64-sve.md
17020 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17021 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17024 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17025 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17027 * config/aarch64/aarch64-sve.md
17028 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17029 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17031 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17032 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17034 * config/aarch64/aarch64-sve.md
17035 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17036 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17038 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17040 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17041 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17044 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17045 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17047 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17049 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17050 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17052 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17053 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17054 (aarch64_print_operand): Add support for %I.
17055 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17056 Bitcast floating-point constants to the corresponding integer constant.
17057 (aarch64_float_const_representable_p): Handle vectors as well
17059 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17060 for the new vcond_mask_<mode><vpred> expander.
17061 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17062 test aarch64_float_const_representable_p.
17063 (aarch64_sve_reg_or_dup_imm): New predicate.
17064 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17065 gen_vcond_mask_<mode><vpred> instead of
17066 gen_aarch64_sve_dup<mode>_const.
17067 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17068 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17069 for operands 1 and 2 respectively. Force operand 2 into a
17070 register if operand 1 is a register. Fold old define_insn...
17071 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17072 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17073 floating-point constants that can be moved as integers. Add
17074 alternatives for MOV /M and FMOV /M.
17075 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17076 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17077 1 and 2 respectively.
17078 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17080 (vss): New constraint.
17082 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17084 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17085 (aarch64_sve_float_maxmin_operand): New predicates.
17086 * config/aarch64/constraints.md (vsB): New constraint.
17088 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17089 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17090 UNSPEC_COND_FMINNM.
17091 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17092 Use aarch64_sve_float_maxmin_operand for operand 2.
17093 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17094 Add alternatives for the constant forms.
17096 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17098 * config/aarch64/constraints.md (vsb): New constraint.
17099 (vsm): Generalize description.
17100 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17102 (sve_imm_con): Handle smax, smin, umax and umin.
17103 (sve_imm_prefix): New code attribute.
17104 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17105 (aarch64_sve_vsb_operand): New predicates.
17106 (aarch64_sve_mul_immediate): Rename to...
17107 (aarch64_sve_vsm_immediate): ...this.
17108 (aarch64_sve_mul_operand): Rename to...
17109 (aarch64_sve_vsm_operand): ...this.
17110 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17111 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17112 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17113 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17114 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17115 add movprfx support for the immediate alternatives.
17116 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17118 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17121 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17123 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17124 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17125 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17127 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17129 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17130 (optab, sve_int_op): Handle them.
17131 * config/aarch64/aarch64-sve.md: Expand comment.
17133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17135 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17136 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17137 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17141 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17142 (aarch64_expand_sve_const_pred_trn): New functions.
17143 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17144 use the above functions when the parameter is true.
17145 (aarch64_expand_sve_const_pred): Update call accordingly.
17146 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17148 (@aarch64_sve_<perm_insn><mode>): ...this.
17150 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17152 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17154 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17155 (aarch64_sve_emit_int_cmp): New functions.
17156 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17157 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17158 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17159 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17160 (UNSPEC_PRED_Z): New unspec.
17161 (set_clobber_cc_nzc): Delete.
17162 * config/aarch64/aarch64-sve.md: Add a block comment about
17164 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17165 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17166 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17167 UNSPEC_MERGE_PTRUE.
17168 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17169 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17170 check for compatible predicates.
17171 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17172 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17173 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17178 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17179 * config/aarch64/aarch64-sve.md: Add a section describing it.
17180 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17181 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17182 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17183 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17184 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17185 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17186 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17187 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17188 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17189 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17190 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17191 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17192 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17193 (aarch64_evpc_rev_local): Update accordingly.
17195 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17197 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17199 (SVE_BHSI, SVE_SDI): Tweak comment.
17200 (SVE_HSDI): Likewise. Fix definition.
17201 (SVE_SDF): New mode iterator.
17202 (elem_bits): New mode attribute.
17203 (SVE_COND_FCVT): New int iterator.
17204 * config/aarch64/aarch64-sve.md
17205 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17206 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17207 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17208 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17209 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17210 ...these new patterns.
17211 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17212 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17213 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17215 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17216 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17217 ...these new patterns.
17218 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17219 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17220 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17221 ...this new pattern.
17222 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17223 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17224 ...this new pattern.
17225 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17227 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17229 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17230 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17231 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17233 (optab, su): Handle them.
17234 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17235 * config/aarch64/aarch64-sve.md
17236 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17237 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17238 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17239 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17240 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17241 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17242 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17243 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17244 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17246 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17247 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17248 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17249 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17250 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17251 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17252 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17253 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17254 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17255 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17256 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17257 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17258 of UNSPEC_FLOAT_CONVERT.
17259 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17260 aarch64_sve_extend<mode><Vwide>2.
17262 2019-08-14 Richard Biener <rguenther@suse.de>
17265 * config/i386/i386-features.c
17266 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17267 individual instruction gain. Fix reg-reg copy GRP cost. Use
17268 ix86_cost->sse_op for vector instruction costs.
17270 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17272 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17273 (cmp_op): Handle it.
17274 (SVE_COND_FP_CMP): Rename to...
17275 (SVE_COND_FP_CMP_I0): ...this.
17276 (SVE_FP_CMP): Remove.
17277 * config/aarch64/aarch64-sve.md
17278 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17279 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17280 using unspecs to represent the comparison.
17281 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17282 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17284 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17285 (aarch64_unspec_cond_code): Move after integer code. Handle
17287 (aarch64_emit_sve_predicated_cond): Replace with...
17288 (aarch64_emit_sve_fp_cond): ...this new function.
17289 (aarch64_emit_sve_or_conds): Replace with...
17290 (aarch64_emit_sve_or_fp_conds): ...this new function.
17291 (aarch64_emit_sve_inverted_cond): Replace with...
17292 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17293 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17295 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17297 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17298 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17299 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17300 SVE_HSD instead of SVE_SD.
17302 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17303 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17305 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17307 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17309 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17310 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17311 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17312 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17313 (*div<SVE_F:mode>3): Generalize to...
17314 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17317 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17319 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17321 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17323 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17325 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17327 * config/aarch64/aarch64-sve.md: Add a block comment about the
17328 handling of predicated FP operations.
17329 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17330 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17331 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17332 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17333 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17335 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17336 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17338 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17339 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17340 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17341 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17342 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17343 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17344 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17345 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17346 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17347 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17348 strictness operands. Use aarch64_sve_pred_dominates_p to check
17349 whether the predicate on the conditional operation is suitable
17350 for merging. Split patterns into the canonical equal-predicate form.
17351 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17352 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17354 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17355 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17357 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17358 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17359 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17361 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17362 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17365 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17366 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17368 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17369 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17370 actually has, rather than relying on REG_EQUAL notes.
17371 Make the insn operand order match the SVE operand order.
17372 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17373 the SVE operand order.
17375 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17377 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17378 (aarch64_emit_set_immediate): Likewise.
17379 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17380 (aarch64_pfalse_reg): Likewise.
17381 (aarch64_convert_sve_data_to_pred): New function.
17382 (aarch64_sve_move_pred_via_while): Take an optional target register
17383 and the required register mode.
17384 (aarch64_expand_sve_const_pred_1): New function.
17385 (aarch64_expand_sve_const_pred): Likewise.
17386 (aarch64_expand_mov_immediate): Build an all-true predicate
17387 if the significant bits of the immediate are all true. Use
17388 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17389 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17390 before register allocation.
17391 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17392 a VNx16BI PTRUE when splitting the memory alternative.
17393 (vec_duplicate<mode>): Update accordingly.
17394 (*pred_cmp<cmp_op><mode>): Rename to...
17395 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17397 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17399 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17400 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17401 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17402 (UNSPEC_PTEST): New unspec.
17403 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17404 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17405 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17406 * config/aarch64/aarch64-sve.md: Add a new section describing the
17407 handling of UNSPEC_PTEST.
17408 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17409 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17410 (ptest_ptrue<mode>): Replace with...
17411 (aarch64_ptest<mode>): ...this new pattern.
17412 (cbranch<mode>4): Update after above changes.
17413 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17414 UNSPEC_PTEST_PTRUE.
17415 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17416 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17417 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17419 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17422 * builtins.c (builtin_with_linkage_p): New function.
17423 * builtins.h (builtin_with_linkage_p): New function.
17424 * symtab.c (write_symbol): Remove redundant assert.
17425 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17426 Remove FIXME and use builtin_with_linkage_p.
17428 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17430 PR middle-end/91421
17431 * tree-core.h (function_decl::function_code): Change type to
17433 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17434 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17435 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17436 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17437 is BUILT_IN_NORMAL.
17438 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17439 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17440 (fndecl_built_in_p): Change the type of the "name" argument to
17442 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17443 after check for DECL_BUILT_IN_CLASS.
17444 * cgraphclones.c (build_function_decl_skip_args): Use
17445 set_decl_built_in_function.
17446 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17447 * ipa-split.c (split_function): Likewise.
17448 * langhooks.c (add_builtin_function_common): Likewise.
17449 * omp-simd-clone.c (simd_clone_create): Likewise.
17450 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17451 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17452 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17453 DECL_FUNCTION_CODE.
17454 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17455 instead of DECL_FUNCTION_CODE.
17456 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17457 instead of DECL_FUNCTION_CODE.
17458 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17459 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17460 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17461 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17462 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17463 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17464 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17465 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17466 (alpha_gimple_fold_builtin): Likewise.
17467 * config/arc/arc.c (arc_expand_builtin): Likewise.
17468 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17469 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17470 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17471 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17472 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17473 * config/frv/frv.c (frv_expand_builtin): Likewise.
17474 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17475 (gcn_expand_builtin): Likewise.
17476 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17477 (fold_builtin_cpu): Likewise.
17478 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17479 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17480 (ix86_gimple_fold_builtin): Likewise.
17481 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17482 (ia64_expand_builtin): Likewise.
17483 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17484 * config/mips/mips.c (mips_expand_builtin): Likewise.
17485 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17486 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17487 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17488 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17489 * config/pa/pa.c (pa_expand_builtin): Likewise.
17490 * config/pru/pru.c (pru_expand_builtin): Likewise.
17491 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17492 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17494 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17495 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17496 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17497 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17498 (rs6000_builtin_reciprocal): Likewise.
17499 * config/rx/rx.c (rx_expand_builtin): Likewise.
17500 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17501 * config/s390/s390.c (s390_expand_builtin): Likewise.
17502 * config/sh/sh.c (sh_expand_builtin): Likewise.
17503 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17504 (sparc_fold_builtin): Likewise.
17505 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17506 * config/spu/spu.c (spu_expand_builtin): Likewise.
17507 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17508 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17509 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17510 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17511 (xtensa_expand_builtin): Likewise.
17513 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17515 PR middle-end/91421
17516 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17517 before the DECL_FUNCTION_CODE.
17518 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17519 to check for a BUILT_IN_ALLOCA call.
17520 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17521 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17522 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17523 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17524 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17525 for BUILT_IN_NORMAL functions.
17526 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17527 test for BUILT_IN_TM_ABORT.
17528 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17529 to check for a BUILT_IN_STACK_RESTORE call.
17530 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17531 * tree-ssa-threadedge.c
17532 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17533 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17534 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17535 test for a BUILT_IN_NORMAL call instead of a negative test for
17536 an internal function call.
17538 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17540 * tree.h (build_vector_a_then_b): Declare.
17541 * tree.c (build_vector_a_then_b): New function.
17542 * fold-const-call.c (fold_while_ult): Likewise.
17543 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17544 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17545 (aarch64_svpattern): New enum.
17546 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17547 constants through aarch64_expand_mov_immediate.
17548 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17549 than general_operand as the predicate for operand 1.
17550 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17551 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17553 (simd_immediate_info::simd_immediate_info): New overload that
17554 takes a scalar_int_mode and an svpattern.
17555 (simd_immediate_info::u): Add a "pattern" field.
17556 (svpattern_token): New function.
17557 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17558 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17559 (aarch64_sve_move_pred_via_while): New functions.
17560 (aarch64_expand_mov_immediate): Try using
17561 aarch64_sve_move_pred_via_while for predicates that contain N ones
17562 followed by M zeros but that do not correspond to a VLnnn pattern.
17563 (aarch64_sve_pred_valid_immediate): New function.
17564 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17565 with PTRUE and PFALSE.
17566 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17569 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17571 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17573 (darwin_override_options): Likewise.
17574 * config/darwin.h: Likewise.
17575 * config/darwin.opt: Likewise.
17576 * config/i386/i386.c (output_pic_addr_const): Likewise.
17577 * config/rs6000/darwin.h: Likewise.
17578 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17579 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17580 ... this TARGET_MACHO_SYMBOL_STUBS.
17581 (FUNCTION_PROFILER):Likewise.
17582 * config/i386/i386.h: Likewise.
17584 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17586 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17587 <case E_V2SImode>: Use vec_extr path for
17588 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17589 <case E_V8QImode>: Ditto.
17590 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17591 Use SWI48 mode iterator. Use %k to output operand 0.
17592 (*mmx_pextrw): New insn pattern.
17593 (*mmx_pextrb): Ditto.
17594 (*mmx_pextrb_zext): Ditto.
17596 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17598 * target.def (libc_has_function, libc_has_fast_function): Improve
17599 documentation strings.
17600 * doc/tm.texi: Regenerate.
17602 2019-08-13 Caroline Tice <cmtice@google.com>
17605 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17606 vtv_end.o or vtv_end_preinit.o files if !static.
17608 2019-08-13 Olivier Hainque <hainque@adacore.com>
17610 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17612 2019-08-13 Olivier Hainque <hainque@adacore.com>
17614 * rtlanal.c (tablejump_casesi_pattern): New function, to
17615 determine if a tablejump insn is a casesi dispatcher. Extracted
17616 from patch_jump_insn.
17617 * rtl.h (tablejump_casesi_pattern): Declare.
17618 * cfgrtl.c (patch_jump_insn): Use it.
17619 * dwarf2cfi.c (create_trace_edges): Use it.
17621 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17624 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17625 operand is larger than a long int.
17627 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17629 * machmode.h (opt_mode::else_mode): New function.
17630 (opt_mode::else_blk): Use it.
17631 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17632 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17633 (aarch64_gen_stepped_int_parallel): Likewise.
17634 (aarch64_stepped_int_parallel_p): Likewise.
17635 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17637 * config/aarch64/aarch64.c
17638 (aarch64_expand_sve_widened_duplicate): Delete.
17639 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17640 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17641 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17642 argument. Use early returns in the !CONST_INT_P handling.
17643 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17644 than handling some inline.
17645 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17647 (aarch64_simd_container_mode): ...here.
17648 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17649 (aarch64_sve_ld1rq_operand_p): New functions.
17650 * config/aarch64/predicates.md (descending_int_parallel)
17651 (aarch64_sve_ld1rq_operand): New predicates.
17652 * config/aarch64/constraints.md (UtQ): New constraint.
17653 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17654 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17655 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17656 (@aarch64_sve_reinterpret<mode>): New expander.
17657 (*aarch64_sve_reinterpret<mode>): New pattern.
17658 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17659 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17660 (*sve_ld1rq<Vesize>): Replace with...
17661 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17663 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17665 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17668 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17670 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17671 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17672 (msp430_check_path_for_devices): New.
17673 (parse_devices_csv_1): New.
17674 (parse_devices_csv): New.
17675 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17676 MCU data in devices.csv before using the hard-coded data.
17677 Warn if devices.csv isn't found and the MCU wasn't found in the
17678 hard-coded data either.
17679 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17680 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17681 Search for devices.csv on -I and -L paths.
17682 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17683 msp430_set_driver_var.
17684 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17685 -mdevices-csv-loc=.
17686 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17687 searched for devices.csv.
17688 (mwarn-devices-csv): Document option.
17690 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17692 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17693 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17694 Use a single Dn alternative instead of separate Dz and Dm
17695 alternatives. Use aarch64_output_sve_move_immediate.
17696 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17698 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17699 for predicates too.
17700 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17701 (aarch64_output_ptrue): Delete.
17703 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17705 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17707 (simd_immediate_info::value, simd_immediate_info::step)
17708 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17710 (simd_immediate_info::u): ...this new union.
17711 (simd_immediate_info::simd_immediate_info): Update accordingly.
17712 (aarch64_output_simd_mov_immediate): Likewise.
17713 (aarch64_output_sve_mov_immediate): Likewise.
17715 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17717 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17719 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17720 (msp430_select_cpu): New spec function.
17721 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17723 * config/msp430/msp430-devices.c: New file.
17724 * config/msp430/msp430-devices.h: New file.
17725 * config/msp430/msp430.c: Remove msp430_mcu_data.
17726 (msp430_option_override): Use msp430_extract_mcu_data to extract
17728 (msp430_use_f5_series_hwmult): Likewise.
17729 (use_32bit_hwmult): Likewise.
17730 (msp430_no_hwmult): Likewise.
17731 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17733 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17735 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17736 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17737 Remove hard-coded MCU multilib data.
17739 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17741 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17742 based on the mode instead of testing properties of it.
17744 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17746 * doc/md.texi: Document the x and y constraints for AArch64.
17747 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17748 (FP_LO8_REGS): New reg_class.
17749 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17750 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17751 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17752 * config/aarch64/predicates.md (aarch64_simd_register): Use
17753 FP_REGNUM_P instead of checking the classes manually.
17754 * config/aarch64/constraints.md (y): New constraint.
17756 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17758 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17759 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17760 * config/aarch64/aarch64-simd.md
17761 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17762 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17763 from the asm template.
17764 * config/aarch64/aarch64-sve.md
17765 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17766 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17767 from the asm template.
17768 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17769 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17770 from the asm template.
17771 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17773 2019-08-13 Martin Liska <mliska@suse.cz>
17775 * value-prof.c (gimple_ic_transform): Add new line.
17776 Print details with MSG_NOTE.
17778 2019-08-13 Martin Liska <mliska@suse.cz>
17780 * doc/invoke.texi: Document automatic detection of jobserver.
17781 * lto-wrapper.c (run_gcc): Detect jobserver always.
17783 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17785 * config/i386/i386-expand.c (ix86_expand_vector_set)
17786 <case E_V2SImode>: Use vec_merge path for
17787 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17788 <case E_V8QImode>: Ditto.
17789 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17790 (*mmx_pinsrb): Ditto.
17792 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17796 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17797 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17798 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17799 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17800 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17802 2019-08-12 Richard Biener <rguenther@suse.de>
17805 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17808 2019-08-12 Richard Biener <rguenther@suse.de>
17811 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17812 lang_mask option, always use CL_DRIVER.
17813 (get_options_from_collect_gcc_options): Adjust.
17814 (find_and_merge_options): Likewise.
17815 (run_gcc): Likewise.
17817 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17819 * ipa-predicate.c (add_condition): Restore inverted test.
17821 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17823 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17824 (enum omp_clause_device_type_kind): New enum.
17825 (struct tree_omp_clause): Add subcode.device_type_kind.
17826 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17827 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17828 for device_type clause.
17829 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17830 * tree-pretty-print.c (dump_omp_clause): Likewise.
17833 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17836 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17838 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17839 handling spilled pseudos.
17841 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17844 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17845 to preserve the contents of the original insns.
17847 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17849 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17850 (addsi3_compare_op2): Likewise.
17852 2019-08-09 Martin Liska <mliska@suse.cz>
17854 * alias.c (alias_ptr_types_compatible_p): Strengten
17855 type comparison in LTO mode.
17857 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17859 PR middle-end/90313
17860 * tree-tailcall.c (find_tail_calls): Reject calls that might
17861 read from an escaped RESULT_DECL.
17863 2019-08-09 Martin Liska <mliska@suse.cz>
17865 * doc/invoke.texi: Document the option value.
17866 * lto-wrapper.c (run_gcc): Set auto_parallel
17867 only with -flto=auto.
17869 2019-08-09 Martin Liska <mliska@suse.cz>
17871 * opts.c (common_handle_option): Error for an invalid argument
17874 2019-08-09 Martin Liska <mliska@suse.cz>
17876 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17877 use dump_printf to report optimization.
17878 (sem_variable::merge): Likwise.
17879 (sem_item_optimizer::merge_classes): Use dump_printf to report
17882 2019-08-09 Martin Liska <mliska@suse.cz>
17884 * value-prof.c (gimple_divmod_fixed_value_transform):
17885 Use dump_printf_loc.
17886 (gimple_mod_pow2_value_transform): Likewise.
17887 (gimple_mod_subtract_transform): Likewise.
17888 (init_node_map): Likewise.
17889 (gimple_ic_transform): Likewise.
17890 (gimple_stringops_transform): Likewise.
17892 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17894 * doc/extend.texi: Add const qualifier to ld intrinsics.
17896 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17898 * config/rs6000/dfp.md (D64_D128): Rename to ...
17899 (DDTD): ... this, throughout.
17900 (dfp_suffix): Rename to ...
17901 (q): ... this, throughout.
17903 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17905 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17906 (dfp_suffix): Ditto.
17907 (adddd3, addtd3): Merge to ...
17908 (add<mode>3 for D64_D128): ... this.
17909 (subdd3, subtd3): Merge to ...
17910 (sub<mode>3 for D64_D128): ... this.
17911 (muldd3, multd3): Merge to ...
17912 (mul<mode>3 for D64_D128): ... this.
17913 (divdd3, divtd3): Merge to ...
17914 (div<mode>3 for D64_D128): ... this.
17915 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17916 (*cmp<mode>_internal1 for D64_D128): ... this.
17917 (ftruncdd2, ftrunctd2): Merge to ...
17918 (ftrunc<mode>2 for D64_D128): ... this.
17919 (fixdddi2, fixtddi2): Merge to ...
17920 (fix<mode>di2 for D64_D128): ... this.
17922 2019-08-08 Jim Wilson <jimw@sifive.com>
17925 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17926 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17927 Pass into recursive call.
17928 (riscv_flatten_aggregate_argument): New arg. Pass to
17929 riscv_flatten_aggregate_field.
17930 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17931 riscv_flatten_aggregate_argument twice, with false and true as last
17932 arg. Process result twice. Compare results and warn if different.
17933 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17935 2019-08-08 Martin Liska <mliska@suse.cz>
17938 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17939 * lto-wrapper.c (jobserver_active_p): Likewise.
17941 2019-08-08 Martin Liska <mliska@suse.cz>
17943 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17944 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17945 (create_version_clone_with_body): Likewise.
17947 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17949 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17950 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17951 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17952 GOVD_EXPLICIT flags.
17953 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17954 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17955 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17956 call install_var_field with mask 11 instead of 3.
17957 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17958 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17960 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17962 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17963 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17965 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17967 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17968 MOVPRFX alternatives. Make the GPR alternatives more expensive
17971 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17973 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17974 Disparage the GPR alternative relative to the FPR one.
17975 Fix handling of 8-bit and 16-bit FPR values.
17977 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17979 * config/aarch64/iterators.md (BITWISEV): Delete.
17980 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17981 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17982 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17983 UNSPEC_FMINNMV, UNSPEC_FMINV.
17984 (bit_reduc_op): Delete.
17985 (sve_int_op): New int attribute.
17986 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17987 UNSPEC_FMINNMV, UNSPEC_FMINV.
17988 * config/aarch64/aarch64-sve.md
17989 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17990 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17991 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17992 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17993 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17994 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17996 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17997 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17998 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17999 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18000 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18003 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18005 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18006 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18007 (fms<mode>4, *fms<mode>4): Replace with...
18008 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18009 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18010 Use unspecs instead of rtx codes.
18011 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18012 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18014 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18016 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18018 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18019 * config/aarch64/aarch64-sve.md
18020 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18021 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18022 use a single unspec for the rhs.
18023 (*<su><maxmin><mode>3): Delete.
18024 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18028 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18029 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18030 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18031 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18032 (optab, sve_fp_op): Handle them.
18033 (SVE_FP_UNARY): Delete.
18034 (optab): Remove sqrt entry.
18035 (sve_fp_op): Remove neg, abs and sqrt entries.
18036 (SVE_COND_FP_UNARY): New int iterator.
18037 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18038 (*<frint_pattern><mode>2): Delete.
18039 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18040 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18041 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18042 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18044 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18046 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18048 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18050 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18051 (UNSPEC_COND_FADD): ...this.
18052 (UNSPEC_COND_SUB): Rename to...
18053 (UNSPEC_COND_FSUB): ...this.
18054 (UNSPEC_COND_MUL): Rename to...
18055 (UNSPEC_COND_FMUL): ...this.
18056 (UNSPEC_COND_DIV): Rename to...
18057 (UNSPEC_COND_FDIV): ...this.
18058 (UNSPEC_COND_MAX): Rename to...
18059 (UNSPEC_COND_FMAXNM): ...this.
18060 (UNSPEC_COND_MIN): Rename to...
18061 (UNSPEC_COND_FMINNM): ...this.
18062 (UNSPEC_COND_LT): Rename to...
18063 (UNSPEC_COND_FCMLT): ...this.
18064 (UNSPEC_COND_LE): Rename to...
18065 (UNSPEC_COND_FCMLE): ...this.
18066 (UNSPEC_COND_EQ): Rename to...
18067 (UNSPEC_COND_FCMEQ): ...this.
18068 (UNSPEC_COND_NE): Rename to...
18069 (UNSPEC_COND_FCMNE): ...this.
18070 (UNSPEC_COND_GE): Rename to...
18071 (UNSPEC_COND_FCMGE): ...this.
18072 (UNSPEC_COND_GT): Rename to...
18073 (UNSPEC_COND_FCMGT): ...this.
18074 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18075 (sve_fp_op_rev): Update accordingly.
18076 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18078 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18080 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18082 * config/aarch64/check-sve-md.awk: New file.
18083 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18084 (insn-conditions.md): Depend on it.
18086 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18089 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18090 (*negsi2_cmpz_zext): Ditto.
18092 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18094 * config/aarch64/iterators.md (commutative): Remove.
18096 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18099 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18100 processing COLLECT_GCC_OPTIONS.
18101 (run_gcc): Likewise.
18103 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18105 PR tree-optimization/91109
18106 * lra-remat.c (update_scratch_ops): Remove assignment of the
18109 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18111 * data-streamer.h (streamer_write_poly_uint64): Declare.
18112 (streamer_read_poly_uint64): Likewise.
18113 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18114 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18115 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18116 (add_condition): Take a poly_int64 size.
18117 * ipa-predicate.c (add_condition): Likewise.
18118 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18119 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18120 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18121 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18122 condition::size as a poly_int64.
18123 (unmodified_parm_1): Take a poly_int64 size pointer.
18124 (unmodified_parm): Likewise.
18125 (unmodified_parm_or_parm_agg_item): Likewise.
18126 (set_cond_stmt_execution_predicate): Update accordingly.
18127 (set_switch_stmt_execution_predicate): Likewise.
18128 (will_be_nonconstant_expr_predicate): Likewise.
18129 (will_be_nonconstant_predicate): Likewise.
18130 (inline_read_section): Stream condition::size as a poly_int.
18131 (ipa_fn_summary_write): Likewise.
18133 2019-08-07 Martin Liska <mliska@suse.cz>
18135 * fold-const.c (twoval_comparison_p): Replace int
18136 with bool as a return type.
18137 (simple_operand_p): Likewise.
18138 (operand_equal_p): Replace int with bool as a return type.
18139 * fold-const.h (operand_equal_p): Likewise.
18141 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18143 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18144 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18145 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18146 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18147 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18148 * tree-pretty-print.c (dump_omp_clause): Likewise.
18149 * tree-nested.c (convert_nonlocal_omp_clauses,
18150 convert_local_omp_clauses): Likewise.
18151 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18153 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18154 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18155 clause with array or reference to array types, no matter what type
18156 except for reference it has.
18158 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18160 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18162 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18164 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18165 (arch_canonicalize): Support rv32g and rv64g and fix error
18168 2019-08-06 Martin Liska <mliska@suse.cz>
18170 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18171 and DECL_IS_OPERATOR_DELETE_P.
18173 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18175 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18176 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18177 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18178 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18179 (gimplify_omp_for): Don't do C++ random access iterator clause
18180 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18181 don't predetermine the artificial iterator in case of C++ random
18182 access iterators as lastprivate, but private. For OMP_LOOP, force
18183 bind expr around simd body and force for_pre_body before the
18184 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18185 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18186 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18187 diff var of C++ random access iterators. Handle
18188 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18189 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18190 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18191 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18192 * omp-low.c (lower_rec_input_clauses): For
18193 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18194 variables instead of default constructing them.
18195 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18196 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18197 is_taskloop_ctx check from the assert to the guarding condition.
18199 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18201 * config/riscv/multilib-generator: (canonical_order): New.
18202 (arch_canonicalize): Dito.
18203 Apply arch_canonicalize for alts.
18205 2019-08-05 Martin Sebor <msebor@redhat.com>
18207 * doc/extend.texi (Common Variable Attributes): Document alias
18210 2019-08-05 Marek Polacek <polacek@redhat.com>
18212 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18213 * doc/invoke.texi: Document -Wcomma-subscript.
18215 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18217 * tree-core.h (tree_function_decl): Make function_code an
18218 independent field. Group the remaining bitfields into bytes
18219 and move decl_type so that it contines to be at a byte boundary.
18220 Leave 12 bits for future expansion.
18222 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18224 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18225 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18226 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18229 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18231 * gimple.h (gimple_move_vops): Declare.
18232 * gimple.c (gimple_move_vops): New function
18233 * gimple-fold.c (replace_call_with_call_and_fold)
18234 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18235 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18236 (gimple_fold_call): Use it.
18237 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18238 * tree-call-cdce.c (use_internal_fn): Likewise.
18239 * tree-if-conv.c (predicate_load_or_store): Likewise.
18240 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18241 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18242 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18243 (update_call_from_tree): Likewise.
18244 * tree-vect-stmts.c (vectorizable_load): Likewise.
18245 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18247 2019-08-05 Martin Liska <mliska@suse.cz>
18250 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18251 with not arguments.
18252 (eliminate_unnecessary_stmts): Likewise.
18254 2019-08-05 Richard Biener <rguenther@suse.de>
18256 PR middle-end/91169
18257 * fold-const.c (get_array_ctor_element_at_index): Create
18258 offset_ints according to the sign of the index type and treat
18259 that as signed if it is obviously so.
18261 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18264 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18265 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18266 _mm256_storeu2_m128i): New function.
18268 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18270 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18271 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18273 2019-08-05 Alan Modra <amodra@gmail.com>
18276 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18277 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18279 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18281 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18282 bug that was fixed in Tcl 8.6.1.
18284 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18286 * config/rs6000/future.md: New file.
18287 * config/rs6000/rs6000.md: Include future.md.
18288 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18290 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18292 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18293 check to use targetm.slow_unaligned_access instead.
18295 * function.c (assign_param_data_one): Remove unused data members.
18297 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18299 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18300 build_distinct_type_copy.
18301 (simd_clone_adjust_argument_types): Ditto.
18302 (simd_clone_adjust): Call build_distinct_type_copy here.
18303 (expand_simd_clones): Ditto.
18305 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18308 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18310 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18312 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18313 from 'const void *'.
18314 (sort_locs_in_loop_postorder_cmp): Likewise.
18316 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18318 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18319 (hot-bb-count-ws-permille): Likewise.
18320 (hot-bb-frequency-fraction): Likewise.
18321 (unlikely-bb-count-fraction): Likewise.
18322 * params.def (hot-bb-count-fraction): Rework description.
18323 (hot-bb-count-ws-permille): Likewise.
18324 (hot-bb-frequency-fraction): Likewise.
18325 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18326 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18328 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18331 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18334 2019-08-02 Richard Biener <rguenther@suse.de>
18336 * vec.h (vec::sort): Add gcc_qsort_r support.
18337 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18338 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18339 to gcc_qsort_r style callback.
18340 (sort_locs_in_loop_postorder_cmp): Likewise.
18341 (analyze_memory_references): Use gcc_sort_r interfaces.
18342 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18344 2019-08-02 Martin Liska <mliska@suse.cz>
18347 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18348 to detect working job server.
18349 (driver::detect_jobserver): Test whether jobserver
18350 is active from GCC driver. That will prevent situation where
18351 GCC is invoked from a LD plugin and the linker already uses
18352 file descriptors suggested by make. That leads to a wrong
18354 * gcc.h (driver): Add detect_jobserver.
18355 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18356 not scanning for --jobserver-auth prefix.
18358 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18360 PR tree-optimization/91201
18361 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18362 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18365 2019-08-01 Martin Sebor <msebor@redhat.com>
18368 * tree.c (type_initializer_zero_p): Define.
18369 * tree.h (type_initializer_zero_p): New function.
18371 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18373 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18375 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18377 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18378 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18379 * predict.c (maybe_hot_count_p): Likewise.
18380 (maybe_hot_bb_p): Tweak comment.
18381 (maybe_hot_edge_p): Likewise.
18382 (probably_never_executed): Likewise. Minor tweak.
18383 (probably_never_executed_bb_p): Likewise.
18384 (unlikely_executed_edge_p): Likewise.
18385 (probably_never_executed_edge_p): Likewise.
18386 (optimize_function_for_size_p): Likewise.
18387 (optimize_function_for_speed_p): Likewise.
18388 (function_optimization_type): Likewise.
18389 (optimize_bb_for_size_p): Likewise.
18390 (optimize_bb_for_speed_p): Likewise.
18391 (bb_optimization_type): Likewise.
18392 (optimize_edge_for_size_p): Likewise.
18393 (optimize_edge_for_speed_p): Likewise.
18394 (optimize_insn_for_size_p): Likewise.
18395 (optimize_insn_for_speed_p): Likewise.
18396 (optimize_loop_for_size_p): Likewise.
18397 (optimize_loop_for_speed_p): Likewise.
18398 (optimize_loop_nest_for_speed_p): Likewise.
18399 (optimize_loop_nest_for_size_p): Likewise.
18400 (predictable_edge_p): Likewise.
18401 (handle_missing_profiles): Minor tweak.
18403 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18405 * config/rs6000/predicates.md (pcrel_external_address): Update
18408 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18411 * config/i386/mmx.md (usadv8qi): New expander.
18413 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18416 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18417 with reserved names that are in a system header.
18419 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18421 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18422 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18423 (*vec_extractv2si_0_zext): Ditto.
18424 (*vec_extractv2si_1): Add (rm,x) alternative.
18425 (*vec_extractv2si_1_zext): New insn pattern.
18426 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18429 2019-08-01 Richard Biener <rguenther@suse.de>
18431 * domwalk.c (bb_postorder): Remove static variable.
18432 (cmp_bb_postorder): Adjust.
18433 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18434 (dom_walker::walk): Adjust.
18436 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18438 * sort.cc (sort_r_ctx): New struct.
18439 (reorder23): Make templated on context type.
18440 (reorder45): Ditto.
18441 (cmp1): Ditto. Adjust signature.
18443 (mergesort): Ditto.
18444 [CHECKING_P] (cmp2to3): New static function. Use it...
18445 (gcc_qsort) [CHECKING_P]: ...here.
18446 (gcc_sort_r): New function.
18447 * system.h (sort_r_cmp_fn): New function typedef.
18448 (qsort_chk): Adjust signature.
18449 (gcc_sort_r): Declare.
18450 * vec.c (qsort_chk_error): Adjust.
18451 (qsort_chk): Adjust.
18453 2019-08-01 Richard Biener <rguenther@suse.de>
18455 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18456 (compute_antic): Localize it here.
18458 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18460 * common/config/riscv/riscv-common.c: Check -march string ends
18463 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18465 * ipa-devirt.c (type_warning_cmp): Make static.
18466 (decl_warning_cmp): Ditto.
18468 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18471 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18472 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18473 use of deleted rs6000_dejagnu_cpu_index variable.
18474 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18475 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18476 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18477 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18478 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18479 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18481 2019-07-31 Richard Biener <rguenther@suse.de>
18483 PR tree-optimization/91280
18484 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18485 Decompose MEM_REF manually for offset handling.
18487 2019-07-31 Richard Biener <rguenther@suse.de>
18489 PR tree-optimization/91293
18490 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18491 of reduction stmts.
18493 2019-07-31 Matt Thomas <matt@3am-software.com>
18494 Nick Hudson <nick@nthcliff.demon.co.uk>
18495 Matthew Green <mrg@eterna.com.au>
18496 Maya Rashish <coypu@sdf.org>
18498 * config.gcc (hppa*-*-netbsd*): New target.
18499 * config/pa/pa-netbsd.h: New file.
18500 * config/pa/pa32-netbsd.h: New file.
18502 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18504 PR tree-optimization/91201
18505 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18507 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18509 * config/gcn/gcn-valu.md
18510 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18511 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18512 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18513 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18514 struct ilist. Add nops for delayeduse insns.
18515 * config/gcn/gcn.md (delayeduse): New attribute.
18516 (*movbi): Remove s_waitcnt from stores.
18517 (*mov<mode>_insn): Likewise.
18518 (*movti_insn): Likewise. Add delayeduse attribute.
18519 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18520 (atomic_store<mode>): Remove or adjust s_waitcnt.
18522 2019-07-31 Richard Biener <rguenther@suse.de>
18524 * vr-values.h (vr_values::swap_vr_value): New.
18525 (vr_values::free_value_range): likewise.
18526 * vr-values.c (vr_values::swap_vr_value): Implement.
18527 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18528 Do not return a range or take a var.
18529 (evrp_range_analyzer::stack): Change back to recording a non-const
18531 * gimple-ssa-evrp-analyze.c
18532 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18534 (evrp_range_analyzer::pop_to_marker): Adjust.
18535 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18536 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18537 no longer needed value-range.
18539 2019-07-31 Martin Liska <mliska@suse.cz>
18541 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18542 have size and (or) alignment as 2nd and later arguments.
18543 Mark all of them as necessary.
18545 2019-07-31 Richard Biener <rguenther@suse.de>
18547 PR tree-optimization/91178
18548 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18549 Use tail-recursion.
18551 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18553 PR tree-optimization/91201
18554 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18555 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18557 (reduc_plus_scal_<mode>): Improve formatting by introducing
18560 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18562 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18563 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18564 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18565 (aarch64_init_tme_builtins): New.
18566 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18567 (aarch64_expand_builtin_tme): New.
18568 (aarch64_expand_builtin): Handle TME builtins.
18569 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18570 __ARM_FEATURE_TME when enabled.
18571 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18572 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18574 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18575 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18577 (tstart, ttest, tcommit, tcancel): New instructions.
18578 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18579 (__tcancel, __ttest): New.
18580 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18581 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18582 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18583 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18584 * config/arm/types.md: Add new tme type attr.
18585 * doc/invoke.texi: Document "tme".
18587 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18589 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18590 warn_unused_result attribute.
18591 (cmse_check_address_range): Add warn_unused_result attribute.
18593 2019-07-31 Richard Biener <rguenther@suse.de>
18595 PR tree-optimization/91257
18596 * tree-vrp.c (union_ranges): Unify equality and less tests
18597 by using compare_values. Re-order cheap tests first.
18599 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18601 PR middle-end/91301
18602 * gimplify.c (gimplify_omp_for): If for class iterator on
18603 distribute parallel for there is no data sharing clause
18604 on inner_for_stmt, look for private clause on combined
18605 parallel too and if found, move it to inner_for_stmt.
18607 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18609 * lra-int.h (lra_operand_data): Remove early_clobber field.
18610 (lra_insn_reg): Likewise.
18611 * lra.c (debug_operand_data): Update accordingly.
18612 (setup_operand_alternative): Likewise.
18613 (new_insn_reg): Likewise. Remove early_clobber parameter.
18614 (collect_non_operand_hard_regs): Update call accordingly.
18615 Don't assign to lra_insn_reg::early_clobber.
18616 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18617 and update calls to new_insn_reg.
18618 (lra_update_insn_regno_info): Update calls accordingly.
18619 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18620 alternative number as a parameter and test whether the operand
18621 is earlyclobbered in that particular alternative.
18622 (process_alt_operands): Update call accordingly. Use per-alternative
18623 checks for earyclobber here too.
18624 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18625 against zero for IRA_UNKNOWN_ALT.
18627 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18629 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18631 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18633 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18634 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18636 2019-07-30 Martin Liska <mliska@suse.cz>
18639 * cgraph.c (cgraph_edge::make_direct): Use
18640 edge->indirect_unknown_callee as edge->resolve_speculation can
18641 deallocate edge which is this pointer.
18643 2019-07-30 Richard Biener <rguenther@suse.de>
18645 PR tree-optimization/91257
18646 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18648 2019-07-30 Martin Liska <mliska@suse.cz>
18650 * doc/invoke.texi: Document new behavior.
18651 * lto-wrapper.c (cpuset_popcount): New function
18652 is a copy of libgomp/config/linux/proc.c.
18653 (init_num_threads): Likewise.
18654 (run_gcc): Automatically detect core count for -flto.
18655 (jobserver_active_p): New function.
18657 2019-07-30 Richard Biener <rguenther@suse.de>
18659 PR tree-optimization/91257
18660 * bitmap.h (bitmap_ior_into_and_free): Declare.
18661 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18662 whether to add the unliked element to the freelist.
18663 (bitmap_list_insert_element_after): Add defaulted param for
18664 an already allocated element.
18665 (bitmap_ior_into_and_free): New function.
18666 * tree-ssa-structalias.c (condense_visit): Reduce the
18667 ponts-to and edge bitmaps of the SCC members in a
18668 logarithmic fashion rather than all to one.
18670 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18672 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18673 parameter. When nonnull, make sure that the addition or subtraction
18674 has the same condition.
18675 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18676 for CFN_COND_MUL too.
18678 2019-07-30 Richard Biener <rguenther@suse.de>
18680 PR tree-optimization/91291
18681 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18684 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18686 PR middle-end/91216
18687 * omp-low.c (global_nonaddressable_vars): New variable.
18688 (use_pointer_for_field): For global decls, if they are non-addressable,
18689 remember it in the global_nonaddressable_vars bitmap, if they are
18690 addressable and in the global_nonaddressable_vars bitmap, ignore their
18691 TREE_ADDRESSABLE bit.
18692 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18693 vars in global_nonaddressable_vars bitmap.
18694 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18697 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18698 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18699 comparison to unsigned HOST_WIDE_INT before shifting it left.
18701 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18703 * config/i386/i386.md (movstrict<mode>): Use register_operand
18704 predicate for operand 0. Add expander condition. Assert that
18705 operand 0 is a SUBREG RTX.
18706 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18707 Update operand constraints and insn condition.
18708 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18709 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18710 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18711 Update operand 0 constraints.
18712 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18714 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18716 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18717 when -m{code,data}-region are used without -mlarge.
18718 * config/msp430/msp430.c (msp430_option_override): Error when a
18719 non-default code or data region is used without -mlarge.
18720 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18721 attributes when they are used without -mlarge.
18723 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18726 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18728 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18730 PR middle-end/91242
18731 * wide-int.h (generic_wide_int::sext_elt): New function.
18732 * inchash.h (hash::add_wide_int): Use it instead of elt.
18734 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18736 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18738 * config/arm/arm.md (<crc_variant>): Rename to...
18739 (arm_<crc_variant>): ... This.
18740 (<cdp>): Rename to...
18741 (arm_<cdp>): ... This.
18742 (<ldc>): Rename to...
18743 (arm_<ldc>): ... This.
18744 (<stc>): Rename to...
18745 (arm_<stc>): ... This.
18746 (<mcr>): Rename to...
18747 (arm_<mcr>): ... This.
18748 (<mrc>): Rename to...
18749 (arm_<mrc>): ... This.
18750 (<mcrr>): Rename to...
18751 (arm_<mcrr>): ... This.
18752 (<mrrc>): Rename to...
18753 (arm_<mrrc>): ... This.
18755 2019-07-29 Richard Biener <rguenther@suse.de>
18757 PR tree-optimization/91257
18758 * tree-ssa-sccvn.h (struct vn_avail): New.
18759 (struct vn_ssa_aux): Add avail member.
18760 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18761 member, add m_avail_freelist one.
18762 (rpo_elim::~rpo_elim): Remove.
18763 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18765 (rpo_elim::eliminate_push_avail): Likewise.
18766 (do_unwind): Likewise.
18767 (do_rpo_vn): Likewise.
18769 2019-07-29 Richard Biener <rguenther@suse.de>
18771 PR tree-optimization/91257
18772 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18773 most cases, instead call compare_values which handles the
18774 symbolic ranges we handle specially.
18775 (compare_values_warnv): Do not call operand_less_p but open-code
18776 the effective fold calls. Avoid converting so much.
18778 2019-07-29 Martin Liska <mliska@suse.cz>
18780 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18781 remove LHS of operator new call. It's handled latter.
18783 2019-07-29 Richard Biener <rguenther@suse.de>
18785 PR tree-optimization/91267
18786 * vr-values.c (vr_values::update_value_range): Add early return
18787 for effectively VARYING lattice entry.
18789 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18792 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18793 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18794 necessary if keep_all_vdefs_p is true.
18795 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18796 that keep_all_vdefs_p is false.
18797 (mark_all_reaching_defs_necessary): Likewise.
18798 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18800 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18802 * common.opt (Og): Change the initial value of flag_dse to 0.
18803 * opts.c (default_options_table): Move OPT_ftree_dse from
18804 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18805 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18806 entry before the OPT_ftree_sra entry.
18807 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18808 of flags disabled by Og.
18810 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18812 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18815 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18817 * doc/sourcebuild.texi (check-function-bodies): Document.
18819 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18821 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18822 VEC_DUPLICATE of a fixed-length vector even if the result
18823 is variable-length. Likewise fold a duplicate of a
18824 variable-length vector if the variable-length vector is
18825 itself a duplicate of a fixed-length sequence.
18826 (test_vector_ops_duplicate): Test more cases.
18828 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18830 * vector-builder.h (vector_builder): Add a shape template parameter.
18831 (vector_builder::new_unary_operation): New function, generalizing
18832 the old tree_vector_builder function.
18833 (vector_builder::new_binary_operation): Likewise.
18834 (vector_builder::binary_encoded_nelts): Likewise.
18835 * int-vector-builder.h (int_vector_builder): Update template
18836 parameters to vector_builder.
18837 (int_vector_builder::shape_nelts): New function.
18838 * rtx-vector-builder.h (rtx_vector_builder): Update template
18839 parameters to vector_builder.
18840 (rtx_vector_builder::shape_nelts): New function.
18841 (rtx_vector_builder::nelts_of): Likewise.
18842 (rtx_vector_builder::npatterns_of): Likewise.
18843 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18844 * tree-vector-builder.h (tree_vector_builder): Update template
18845 parameters to vector_builder.
18846 (tree_vector_builder::shape_nelts): New function.
18847 (tree_vector_builder::nelts_of): Likewise.
18848 (tree_vector_builder::npatterns_of): Likewise.
18849 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18850 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18851 (tree_vector_builder::new_binary_operation): Delete.
18852 (tree_vector_builder::binary_encoded_nelts): Likewise.
18853 * simplify-rtx.c: Include rtx-vector-builder.h.
18854 (distributes_over_addition_p): New function.
18855 (simplify_const_unary_operation)
18856 (simplify_const_binary_operation): Generalize handling of vector
18857 constants to include variable-length vectors.
18858 (test_vector_ops_series): Add more tests.
18860 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18863 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18864 than INDENTIFIER_POINTER.
18866 2019-07-28 Martin Liska <mliska@suse.cz>
18869 * cgraph.c (symbol_table::create_edge): Always allocate
18871 (symbol_table::free_edge): Store summary_id to
18872 edge_released_summary_ids if != -1;
18873 * cgraph.h (NEXT_FREE_NODE): Remove.
18874 (SET_NEXT_FREE_NODE): Likewise.
18875 (NEXT_FREE_EDGE): Likewise.
18876 (symbol_table::release_symbol): Store summary_id to
18877 cgraph_released_summary_ids if != -1;
18878 (symbol_table::allocate_cgraph_symbol): Always allocate
18881 2019-07-28 Alan Modra <amodra@gmail.com>
18883 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18886 2019-07-28 Alan Modra <amodra@gmail.com>
18889 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18891 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18892 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18893 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18895 2019-07-28 Alan Modra <amodra@gmail.com>
18898 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18899 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18900 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18901 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18902 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18903 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18904 in asm_default spec.
18905 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18906 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18908 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18910 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18912 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18915 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18916 * config/aarch64/aarch64-option-extensions.def: Add new comments
18917 and restore easier to read options.
18919 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18921 * convert.c (convert_to_real_1): Move part of conversion code...
18922 * match.pd: ...To here.
18924 2019-07-26 Martin Jambor <mjambor@suse.cz>
18927 * ipa-inline-transform.c (check_speculations_1): New function.
18928 (push_all_edges_in_set_to_vec): Likewise.
18929 (check_speculations): Use check_speculations_1, new parameter
18931 (inline_call): Pass new_edges to check_speculations.
18932 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18934 (speculation_useful_p): Early return true if edge is inlined, remove
18935 later checks for inline_failed.
18937 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18939 PR rtl-optimization/91223
18940 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18941 matching with INOUT operand.
18943 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18945 * stmt.c (expand_case): Try to narrow the index type if it's larger
18946 than a word. Tidy up.
18948 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18950 * cif-code.def (NEVER_CALL): New code.
18951 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18952 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18954 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18956 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18957 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18959 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18961 * ipa-devirt.c (add_type_duplicate): Fix return value.
18963 2019-07-25 Richard Biener <rguenther@suse.de>
18965 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18966 type parameter and use it instead of guessing expression
18967 type from the first operand.
18968 (extract_range_from_binary_expr): Pass expr_type down.
18970 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18972 * config/arm/arm.md (SATrev): Change to code attribute.
18973 (*satsi_<SAT:code>): Adjust for the above.
18974 (*satsi_<SAT:code>_shift): Likewise.
18976 2019-07-25 Richard Biener <rguenther@suse.de>
18978 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18979 Make value_range * temporary const.
18980 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18982 (evrp_range_analyzer::record_ranges_from_): Likewise.
18983 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18984 deal with having recorded a const one.
18985 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18986 Return a const value_range *.
18987 (evrp_range_analyzer::pop_value_range): Likewise.
18988 (evrp_range_analyzer::stack): Record const value_range *s.
18989 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18991 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18992 (format_integer): Likewise.
18993 (sprintf_dom_walker::handle_gimple_call): Likewise.
18994 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18995 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18996 (vrp_prop::get_value_range): Adjust.
18997 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18998 modifying the lattice in-place.
18999 (vrp_prop::visit_stmt): Likewise.
19000 * vr-values.c (vr_values::get_lattice_entry): New private method.
19001 (vr_values::get_value_range): Wrap it and return a const
19003 (vr_values::set_def_to_varying): New.
19004 (vr_values::set_defs_to_varying): Use it.
19005 (vr_values::update_value_range): Likewise.
19006 (vr_values::vrp_stmt_computes_nonzero): Adjust.
19007 (values::op_with_constant_singleton_va): Likewise.
19008 (vr_values::extract_range_for_var_from_co): Likewise.
19009 (vr_values::extract_range_from_ssa_name): Likewise.
19010 (vr_values::extract_range_from_cond_expr): Likewise.
19011 (vr_values::extract_range_basic): Likewise.
19012 (compare_ranges): Take const value_range *, adjust.
19013 (compare_range_with_value): Likewise.
19014 (vrp_valueize): Adjust.
19015 (vrp_valueize_1): Likewise.
19016 (vr_values::get_vr_for_comparison): Return a const value_range *.
19017 (vr_values::compare_name_with_value): Adjust.
19018 (vr_values::compare_names): Likewise.
19019 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19021 (vr_values::vrp_evaluate_conditional): Likewise.
19022 (find_case_label_ranges): Take a const value_range *.
19023 (vr_values::vrp_visit_switch_stmt): Adjust.
19024 (vr_values::extract_range_from_phi_node): Likewise.
19025 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19026 (vr_values::simplify_abs_using_ranges): Likewise.
19027 (test_for_singularity): Take a const value_range *.
19028 (range_fits_type_p): Likewise.
19029 (vr_values::simplify_cond_using_ranges_1): Adjust.
19030 (vr_values::simplify_cond_using_ranges_2): Likewise.
19031 (vr_values::simplify_switch_using_ranges): Likewise.
19032 (vr_values::simplify_float_conversion_usi): Likewise.
19033 (vr_values::two_valued_val_range_p): Likewise.
19034 * vr-values.h (vr_values::get_value_range): Return a const
19036 (vr_values::set_def_to_varying): New.
19037 (vr_values::get_lattice_entry): New private method.
19038 (vr_values::get_vr_for_comparison): Return a const value_range *.
19040 2019-07-25 Martin Liska <mliska@suse.cz>
19041 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19044 * common.opt: Add -fallocation-dce
19045 * gimple.c (gimple_call_operator_delete_p): New.
19046 * gimple.h (gimple_call_operator_delete_p): Likewise.
19047 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19048 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19049 DECL_IS_OPERATOR_DELETE_P.
19050 (mark_all_reaching_defs_necessary_1): Likewise.
19051 (propagate_necessity): Likewise.
19052 (eliminate_unnecessary_stmts): Handle
19053 gimple_call_operator_delete_p.
19054 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19055 Add packing of OPERATOR_DELETE.
19056 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19058 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19059 (DECL_SET_IS_OPERATOR_DELETE): New.
19060 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19062 2019-07-25 Martin Liska <mliska@suse.cz>
19064 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19065 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19066 * coverage.c (coverage_begin_function): Likewise.
19067 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19068 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19069 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19070 (sem_item::hash_referenced_symbol_properties): Likewise.
19071 * lto-streamer-out.c (hash_tree): Likewise.
19072 * predict.c (expr_expected_value_1): Likewise.
19073 * tree-inline.c (expand_call_inline): Likewise.
19074 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19075 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19076 * tree-core.h (enum function_decl_type): New enum.
19077 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19078 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19079 (set_function_decl_type): Likewise.
19080 (DECL_IS_OPERATOR_NEW_P): New.
19081 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19082 (DECL_LAMBDA_FUNCTION): Likewise.
19083 (DECL_LAMBDA_FUNCTION_P): Likewise.
19084 (DECL_IS_OPERATOR_NEW): Remove.
19085 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19087 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19089 * ipa-profile.c (get_most_common_single_value): Use
19090 get_nth_most_common_value.
19091 * profile.c (sort_hist_value): New function.
19092 (compute_value_histograms): Call sort_hist_value to sort the
19093 values after loading from disk.
19094 * value-prof.c (get_most_common_single_value): Rename to ...
19095 get_nth_most_common_value. Add input params n, return
19096 the n_th value and count.
19097 (gimple_divmod_fixed_value_transform): Use
19098 get_nth_most_common_value.
19099 (gimple_ic_transform): Likewise.
19100 (gimple_stringops_transform): Likewise.
19101 * value-prof.h (get_most_common_single_value): Add input params
19104 2019-07-25 Richard Biener <rguenther@suse.de>
19106 PR tree-optimization/91236
19107 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19108 size of CONSTRUCTOR write. Fix buffer size we pass to
19109 native_encode_expr.
19111 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19113 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19114 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19117 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19119 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19120 explicitly disabled with --disable-initfini-array.
19122 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19124 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19127 2019-07-24 Martin Sebor <msebor@redhat.com>
19129 PR tree-optimization/91183
19130 PR tree-optimization/86688
19131 * builtins.c (compute_objsize): Handle MEM_REF.
19132 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19133 (get_min_string_length): Remove.
19134 (count_nonzero_bytes): New function.
19135 (handle_char_store): Rename...
19136 (handle_store): to this. Handle multibyte stores via integer types.
19137 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19140 2019-07-24 Martin Sebor <msebor@redhat.com>
19143 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19144 (diagnostic_report_diagnostic): Same.
19145 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19146 (diagnostic_context::lang_mask): New data member.
19147 * ipa-pure-const.c (suggest_attribute): Use
19148 lang_hooks.option_lang_mask ().
19149 * opts-common.c (option_enabled): Handle new argument.
19150 (get_option_state): Pass an additional argument.
19151 * opts.c (print_filtered_help): Print supported languages for
19152 unsupported options. Adjust printing of current state.
19153 * opts.h (option_enabled): Add argument.
19154 * toplev.c (print_switch_values): Use lang_mask.
19155 (general_init): Set global_dc->lang_mask.
19157 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19160 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19162 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19164 * cgraphunit.c (symbol_table::compile): Start and stop
19165 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19166 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19168 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19170 * gimplify.c (flag_instrument_functions_exclude_p): Include
19171 namespace/class information in the printable name.
19172 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19173 to tokens entered into the vector.
19175 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19177 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19178 (get_static_chain): Call it instead of build_simple_mem_ref.
19179 (get_frame_field): Likewise.
19180 (get_nonlocal_debug_decl): Likewise.
19181 (convert_nonlocal_reference_op): Likewise.
19183 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19185 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19187 (arc_compute_frame_size): Millicode is disabled when compiling
19189 (arc_return_address_register): Likewise.
19190 (arc_compute_function_type): Likewise.
19191 (arc_compute_frame_size): Likewise.
19192 (secondary_reload_info): Likewise.
19193 (arc_get_unalign): Likewise.
19194 (arc_can_use_return_insn): Declare.
19195 * config/arc/arc.c (AUX_LP_START): Define
19196 (AUX_LP_END): Likewise.
19197 (arc_frame_info): Update gmask member to 64-bit datum.
19198 (GMASK_LEN): Update.
19199 (arc_compute_function_type): Make it static, move it forward.
19200 (arc_must_save_register): Update, consider the extra regs.
19201 (arc_compute_millicode_save_restore_regs): Update to use the 64
19203 (arc_compute_frame_size): Likewise.
19204 (arc_enter_leave_p): Likewise.
19205 (arc_save_callee_saves): Likewise.
19206 (arc_restore_callee_saves): Likewise.
19207 (arc_save_callee_enter): Likewise.
19208 (arc_restore_callee_leave): Likewise.
19209 (arc_save_callee_milli): Likewise.
19210 (arc_restore_callee_milli): Likewise.
19211 (arc_expand_prologue): Add new interrupt handling.
19212 (arc_return_address_register): Make it static, move it forward.
19213 (arc_expand_epilogue): Add new interrupt handling.
19214 (arc_get_unalign): Delete.
19215 (arc_epilogue_uses): Make sure we do not remove the extra
19216 saved/restored registers when interrupt.
19217 (arc_can_use_return_insn): New function.
19218 (push_reg): Likewise.
19219 (pop_reg): Likewise.
19220 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19222 (arc_restore_callee_saves): Likewise, but restoring.
19223 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19224 (R33_REG): Likewise.
19225 (R34_REG): Likewise.
19226 (R35_REG): Likewise.
19227 (R36_REG): Likewise.
19228 (R37_REG): Likewise.
19229 (R38_REG): Likewise.
19230 (R39_REG): Likewise.
19231 (R45_REG): Likewise.
19232 (R46_REG): Likewise.
19233 (R47_REG): Likewise.
19234 (R48_REG): Likewise.
19235 (R49_REG): Likewise.
19236 (R50_REG): Likewise.
19237 (R51_REG): Likewise.
19238 (R52_REG): Likewise.
19239 (R53_REG): Likewise.
19240 (R54_REG): Likewise.
19241 (R55_REG): Likewise.
19242 (R56_REG): Likewise.
19243 (R58_REG): Likewise.
19244 (type): Add rtie attribute.
19245 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19246 (movsi_insn): Accept moves to lp_count.
19247 (rtie): Update pattern.
19248 (simple_return): Simplify it, don't use this pattern as a return
19250 (arc600_rtie): New pattern.
19251 (p_return_i): Clean up.
19252 (return): Likewise.
19253 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19255 * config/arc/predicates.md (move_src_operand): Consider lp_count
19258 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19260 * config/s390/predicates.md (addv_const_operand): New predicate.
19261 * config/s390/s390-modes.def (CCO): New condition code mode.
19262 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19263 (s390_branch_condition_mask): Likewise.
19264 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19265 ("mulv<mode>4"): New expanders.
19266 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19267 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19268 pattern definitions.
19270 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19272 PR middle-end/91166
19273 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19274 (define_predicates): Add entry for uniform_vector_p.
19275 (vec_same_elem_p): New match pattern.
19277 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19280 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19281 * config/i386/darwin32-biarch.h .. to here.
19282 * config/i386/darwin64-biarch.h: Adjust comments.
19283 * config/rs6000/darwin32-biarch.h: Likewise.
19284 * config/rs6000/darwin64-biarch.h: Likewise.
19285 * config.gcc: Missed commit from r273746
19286 (*-*-darwin*): Don't include CPU t-darwin here.
19287 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19288 an error message if i686-darwin configuration is attempted for
19291 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19294 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19295 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19296 an error message if i686-darwin configuration is attempted for
19298 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19299 (powerpc-*-darwin*): Use biarch files where needed.
19300 (powerpc64-*-darwin*): Likewise.
19301 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19302 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19304 * config/i386/darwin32-biarch.h: New.
19305 * config/i386/darwin64.h: Rename.
19306 * config/i386/darwin64-biarch.h: To this.
19307 * config/i386/t-darwin: Rename.
19308 * config/i386/t-darwin32-biarch: To this.
19309 * config/i386/t-darwin64: Rename.
19310 * config/i386/t-darwin64-biarch: To this.
19311 * config/rs6000/darwin32-biarch.h: New.
19312 * config/rs6000/darwin64.h: Rename.
19313 * config/rs6000/darwin64-biarch.h: To this.
19314 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19316 * config/rs6000/t-darwin8: Rename.
19317 * config/rs6000/t-darwin32-biarch: To this.
19318 * config/rs6000/t-darwin64 Rename.
19319 * config/rs6000/t-darwin64-biarch: To this.
19321 2019-07-23 Martin Sebor <msebor@redhat.com>
19323 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19325 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19327 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19328 (rh): New alias for it.
19330 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19332 * gdbhooks.py: Pass replace=True to
19333 gdb.printing.register_pretty_printer.
19335 2019-07-23 Richard Biener <rguenther@suse.de>
19338 * lto-streamer-in.c (input_function): Drop inline-entry markers
19339 that ended up with an unknown location block.
19341 2019-07-23 Richard Biener <rguenther@suse.de>
19343 PR tree-optimization/83518
19344 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19345 init from a constant even when partial defs are already recorded.
19347 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19349 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19350 * config/i386/znver1.md: Enable patterns for znver2 and add store
19351 variants which use extra AGU unit.
19353 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19355 * config/i386/i386-options.c (ix86_option_override_internal): Default
19356 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19357 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19360 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19362 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19363 (znver2_costs): Update 256 bit SSE costs and multiplication.
19365 2019-07-23 Jan Beulich <jbeulich@suse.com>
19367 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19368 Require only AVX512F.
19369 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19370 alternative expanding to vpternlog.
19372 2019-07-23 Martin Liska <mliska@suse.cz>
19374 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19375 to -flto in dwarf producer string.
19377 2019-07-23 Richard Biener <rguenther@suse.de>
19379 * tree-cfg.c (label_for_bb): Remove global var.
19380 (main_block_label): Take label_for_bb as argument.
19381 (cleanup_dead_labels_eh): Likewise, adjust.
19382 (cleanup_dead_labels): Adjust.
19384 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19386 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19387 Configurations): Add documentation for __builtin_mtfsf.
19389 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19391 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19392 * config/riscv/riscv.c (riscv_constant_alignment): Use
19393 riscv_align_data_type.
19394 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19395 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19396 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19397 * config/riscv/riscv.opt (malign-data): New.
19398 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19400 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19402 * cgraph.c (dump_graphviz): New function.
19403 * cgraph.h (dump_graphviz): New function.
19404 * symtab.c (dump_graphviz): New function.
19406 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19408 * config/aarch64/aarch64-simd.md
19409 (*aarch64_simd_sra<mode>): New.
19410 * config/aarch64/iterators.md
19411 (SHIFTRT): New iterator.
19412 (sra_op): New attribute.
19414 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19416 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19417 callee-saved regs R4->R10 in an interrupt function that calls another
19420 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19422 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19423 (_mm_blendv_epi8): New.
19425 2019-07-22 Richard Biener <rguenther@suse.de>
19427 PR tree-optimization/91221
19428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19429 restrict partial-def handling of empty constructors and
19430 memset to refs with known offset.
19432 2019-07-22 Jan Beulich <jbeulich@suse.com>
19434 * config/i386/sse.md (ternlogsuffix): New.
19435 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19437 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19439 2019-07-22 Martin Liska <mliska@suse.cz>
19441 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19443 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19445 2019-07-22 Martin Liska <mliska@suse.cz>
19447 * lto-section-in.c (lto_get_section_data):
19448 Use new function get_compression.
19449 * lto-streamer-out.c (produce_lto_section): Use
19450 set_compression to encode compression algorithm.
19451 * lto-streamer.h (struct lto_section): Do not
19452 use bitfields in the format.
19454 2019-07-22 Martin Liska <mliska@suse.cz>
19457 * opts-common.c (decode_cmdline_option): Decode
19458 argument of -Werror and check it for a wrong language.
19459 * opts-global.c (complain_wrong_lang): Remove such case.
19461 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19463 * config/arc/arc.c (prepare_move_operands): Always use an
19464 intermediate register when storing a TLS symbols.
19466 2019-07-22 Stafford Horne <shorne@gmail.com>
19468 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19471 2019-07-22 Stafford Horne <shorne@gmail.com>
19473 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19474 and munordered-float validations.
19475 * config/or1k/constraints.md (d): New register constraint.
19476 * config/or1k/predicates.md (fp_comparison_operator): New.
19477 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19479 (or1k_expand_compare): Normalize unordered comparisons.
19480 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19481 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19482 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19483 * config/or1k/or1k.md (type): Add fpu.
19484 (fpu): New instruction reservation.
19485 (F, f, fr, fi, FI, FOP, fop): New.
19486 (<fop><F:mode>3): New ALU instruction definition.
19487 (float<fi><F:mode>2): New conversion instruction definition.
19488 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19489 (fpcmpcc): New code iterator.
19490 (*sf_fp_insn): New instruction definition.
19491 (cstore<F:mode>4): New expand definition.
19492 (cbranch<F:mode>4): New expand definition.
19493 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19494 munordered-float): New options.
19495 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19498 2019-07-22 Stafford Horne <shorne@gmail.com>
19500 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19501 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19502 documenation to be more clear.
19503 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19505 * config/or1k/or1k.opt (mrori): New option.
19506 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19507 msfimm, mshftimm): Rewrite documentation to be more clear.
19508 * config/or1k/or1k.md (insn_support): Add ror and rori.
19509 (enabled): Add conditions for ror and rori.
19510 (rotrsi3): Replace condition for shftimm with ror and rori.
19512 2019-07-22 Stafford Horne <shorne@gmail.com>
19515 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19516 (extend<mode>si2): Update predicate.
19517 * config/or1k/predicates.md (volatile_mem_operand): New.
19518 (reg_or_mem_operand): New.
19520 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19522 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19523 * config/rs6000/rs6000-call.c: ... to here.
19525 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19527 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19530 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19532 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19534 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19536 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19538 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19540 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19541 (any_memory_operand): New predicate.
19542 (reg_or_mem_operand): Use it.
19544 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19547 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19549 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19551 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19552 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19554 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19556 * tree.def (OMP_LOOP): New tree code.
19557 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19558 (enum omp_clause_bind_kind): New enum.
19559 (struct tree_omp_clause): Add subcode.bind_kind.
19560 * tree.h (OMP_LOOP_CHECK): Rename to ...
19561 (OMP_LOOPING_CHECK): ... this.
19562 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19563 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19564 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19565 (OMP_CLAUSE_BIND_KIND): Define.
19566 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19567 bind clause entries.
19568 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19569 * tree-pretty-print.c (dump_omp_clause): Likewise.
19570 (dump_generic_node): Handle OMP_LOOP.
19571 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19572 (in_omp_construct): New variable.
19573 (is_gimple_stmt): Handle OMP_LOOP.
19574 (gimplify_scan_omp_clauses): For lastprivate don't set
19575 check_non_private if code == OMP_LOOP. For reduction clause
19576 on OMP_LOOP combined with parallel or teams propagate as shared
19577 on the combined construct. Handle OMP_CLAUSE_BIND.
19578 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19579 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19580 for constructs from a loop construct to gimplify_scan_omp_clauses.
19581 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19582 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19583 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19584 to match the implicit ORT_TARGET construct around whole body.
19585 Temporarily clear in_omp_construct when processing body.
19586 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19587 etc. temporarily set in_omp_construct when processing body.
19588 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19589 * omp-low.c (struct omp_context): Add loop_p.
19590 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19591 in that the original var might be private.
19592 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19593 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19594 addition of loop construct.
19595 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19597 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19598 lastprivate non-addressable iterator of a collapse(1) simd.
19600 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19602 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19605 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19607 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19608 refer to default conditions. Warn for the 'y' spec which is ignored
19609 by current linkers.
19611 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19613 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19614 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19615 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19616 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19617 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19618 init_cumulative_args, rs6000_promote_function_mode,
19619 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19620 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19621 rs6000_function_arg_boundary, rs6000_parm_offset,
19622 rs6000_parm_start, rs6000_arg_size,
19623 rs6000_darwin64_record_arg_advance_flush,
19624 rs6000_darwin64_record_arg_advance_recurse,
19625 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19626 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19627 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19628 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19629 rs6000_finish_function_arg, rs6000_function_arg,
19630 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19631 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19632 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19633 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19634 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19635 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19636 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19637 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19638 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19639 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19640 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19641 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19642 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19643 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19644 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19645 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19646 get_element_number, altivec_expand_vec_set_builtin,
19647 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19648 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19649 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19650 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19651 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19652 rs6000_expand_builtin, rs6000_vector_type,
19653 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19654 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19655 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19657 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19658 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19659 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19660 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19661 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19662 init_cumulative_args, rs6000_promote_function_mode,
19663 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19664 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19665 rs6000_function_arg_boundary, rs6000_parm_offset,
19666 rs6000_parm_start, rs6000_arg_size,
19667 rs6000_darwin64_record_arg_advance_flush,
19668 rs6000_darwin64_record_arg_advance_recurse,
19669 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19670 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19671 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19672 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19673 rs6000_finish_function_arg, rs6000_function_arg,
19674 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19675 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19676 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19677 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19678 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19679 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19680 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19681 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19682 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19683 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19684 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19685 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19686 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19687 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19688 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19689 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19690 get_element_number, altivec_expand_vec_set_builtin,
19691 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19692 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19693 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19694 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19695 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19696 rs6000_expand_builtin, rs6000_vector_type,
19697 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19698 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19699 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19700 to here from rs6000.c.
19701 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19702 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19703 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19704 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19705 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19706 rs6000_return_in_memory, rs6000_return_in_msb,
19707 rs6000_pass_by_reference, setup_incoming_varargs,
19708 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19709 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19710 rs6000_function_arg_padding, rs6000_function_arg,
19711 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19712 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19713 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19714 rs6000_passes_long_double, rs6000_passes_vector,
19715 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19716 altivec_builtin_mask_for_load) Add declarations.
19717 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19718 * config/config.gcc: Add new source file rs6000-call.c to garbage
19719 collector and extra_objs.
19721 2019-07-19 Jeff Law <law@redhat.com>
19723 PR tree-optimization/86061
19724 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19725 strncpy. Drop some trivial dead code.
19726 (maybe_trim_memstar_call): Handle strncpy.
19728 2019-07-19 Richard Biener <rguenther@suse.de>
19730 PR tree-optimization/91211
19731 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19732 memset encoding size.
19734 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19737 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19739 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19742 * ipa-inline.c (recursive_inlining): Fix limits check.
19744 2019-07-19 Richard Biener <rguenther@suse.de>
19746 PR tree-optimization/91200
19747 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19748 no PHI nodes in middle-bb.
19750 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19752 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19754 * config/aarch64/aarch64-option-extensions.def: Likewise.
19756 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19758 PR middle-end/91190
19759 * function.c (insert_temp_slot_address): Store into the hash table
19760 a copy of address to avoid RTL sharing issues.
19762 2019-07-19 Richard Biener <rguenther@suse.de>
19764 PR tree-optimization/91207
19766 2019-07-17 Richard Biener <rguenther@suse.de>
19768 PR tree-optimization/91178
19769 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19770 loads with a gap larger than the vector size always use
19772 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19773 avoid loading vectors that are only contained in the gap
19774 and thus are not needed.
19776 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19778 * config/i386/i386.md (*addqi_2_slp): Remove.
19779 (*<code>qi_2_slp): Ditto.
19781 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19783 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19784 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19785 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19786 Rename function from rs6000_prefixed_address.
19787 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19789 (TARGET_TOC): Likewise.
19790 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19792 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19794 (TARGET_TOC): Likewise.
19795 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19797 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19799 (TARGET_TOC): Likewise.
19800 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19801 check to require -mcmodel=medium for pc-relative addressing.
19802 (create_TOC_reference): Add assertion for TARGET_TOC.
19803 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19805 (rs6000_emit_move): Likewise.
19806 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19807 to 'TOC_alias_set'.
19808 (get_TOC_alias_set): Likewise.
19809 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19811 (rs6000_can_eliminate): Likewise.
19812 (rs6000_prefixed_address_mode_p): Rename function from
19813 rs6000_prefixed_address.
19814 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19815 TARGET_HAS_TOC and not pc-relative.
19816 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19817 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19819 (TARGET_TOC): Likewise.
19820 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19823 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19826 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19827 for operand 0. Do not use (match_dup) to match operand 1 with
19828 operand 0. Add check in insn constraint that either input operand
19829 matches operand 0. Use SWI12 mode iterator to also handle
19831 (*and<mode>_1_slp): Ditto.
19832 (*<code>qi_1_slp): Ditto.
19833 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19834 Do not use (match_dup) to match operand 1 with operand 0. Add
19835 check in insn constraint that operand 1 matches operand 0.
19836 Use SWI12 mode iterator to also handle HImode operands.
19837 (*ashl<mode>3_1_slp): Ditto.
19838 (*<shift_insn><mode>3_1_slp): Ditto.
19839 (*<rotate_insn><mode>3_1_slp): Ditto.
19841 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19843 * config/arm/arm-builtins.c
19844 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19845 (arm_expand_unop_builtin): Likewise.
19846 * config/arm/crypto.md
19847 (crypto_sha1h): Convert from define_insn to define_expand.
19848 (crypto_<crypto_pattern>): Likewise.
19849 (crypto_sha1h_lb): New define_insn.
19850 (crypto_<crypto_pattern>_lb): Likewise.
19852 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19855 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19856 (vsha1cq_u32): Likewise.
19857 (vsha1pq_u32): Likewise.
19858 (vsha1mq_u32): Likewise.
19859 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19861 (crypto_sha1c): Correct vec select.
19862 (crypto_sha1m): Likewise.
19863 (crypto_sha1p): Likewise.
19865 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19867 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19868 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19869 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19870 (subdi_zesidi_zesidi): Likewise.
19871 (negdi2_compare, negdi2_insn): Likewise.
19872 (negdi_extensidi): Likewise.
19873 (negdi_zero_extendsidi): Likewise.
19874 (arm_cmpdi_insn): Likewise.
19875 (subsi3_carryin): Use arm_borrow_operation.
19876 (subsi3_carryin_const): Likewise.
19877 (subsi3_carryin_const0): Likewise.
19878 (subsi3_carryin_compare): Likewise.
19879 (subsi3_carryin_compare_const): Likewise.
19880 (subsi3_carryin_compare_const0): Likewise.
19881 (subsi3_carryin_shift): Likewise.
19882 (rsbsi3_carryin_shift): Likewise.
19883 (negsi2_carryin_compare): Likewise.
19885 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19887 PR tree-optimization/91137
19888 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19889 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19890 Init, use and fini the above new field.
19891 (determine_base_object_1): New function.
19892 (determine_base_object): Reimplement using walk_tree.
19894 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19896 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19897 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19898 CLEANUP_FORCE_FAST_DCE is set.
19899 * ifcvt.c (rest_of_handle_if_conversion): Pass
19900 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19901 if-conversion succeeded.
19903 2019-07-18 Richard Biener <rguenther@suse.de>
19905 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19906 branches to make code less indented.
19908 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19910 PR middle-end/81824
19911 * attribs.c (decls_mismatched_attributes): Simplify the logic
19912 that avoids duplicates and false positives.
19914 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19916 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19917 data into data section when generating PIC code.
19918 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19919 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19920 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19921 return 2 for SOM and 0 for other targets.
19923 2019-07-17 Jeff Law <law@redhat.com>
19925 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19926 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19927 avoid unexpected switch statement fallthru.
19929 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19931 * config/i386/i386.md (*add<dwi>3_doubleword):
19932 Remove redundant constraints.
19933 (*add<mode>_1): Ditto.
19936 (*addqi_1_slp): Ditto.
19937 (*add<mode>_2): Ditto.
19938 (*addv<mode>4): Ditto.
19939 (*sub<dwi>3_doubleword): Ditto.
19940 (*sub<mode>_1): Ditto.
19941 (*subqi_1_slp): Ditto.
19942 (*sub<mode>_2): Ditto.
19943 (*subv<mode>4): Ditto.
19944 (*sub<mode>_3): Ditto.
19945 (@add<mode>3_carry): Ditto.
19946 (@sub<mode>3_carry): Ditto.
19947 (*add<mode>3_cc_overflow_1): Ditto.
19948 (*add<mode>3_zext_cc_overflow_2): Ditto.
19950 (*and<mode>_1): Ditto.
19952 (*andqi_1_slp): Ditto.
19954 (*andqi_2_maybe_si): Ditto.
19955 (*and<mode>_2): Ditto.
19956 (*andqi_2_slp): Ditto.
19957 (*<code><mode>_1): Ditto.
19958 (*<code>qi_1): Ditto.
19959 (*<code>qi_1_slp): Ditto.
19960 (*<code><mode>_2): Ditto.
19961 (*<code>qi_2_slp): Ditto.
19963 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19965 * alias.c (record_component_aliases): Do not simplify pointed-to
19966 types of ODR types.
19968 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19970 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19971 partial reg stall on alternative 2.
19973 2019-07-17 Richard Biener <rguenther@suse.de>
19975 PR tree-optimization/91178
19976 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19977 lower SSA names to avoid quadratic behavior in the common case.
19978 * tree-data-ref.c (split_constant_offset): Add limit argument
19979 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19980 (split_constant_offset_1): Add limit argument and use it to
19981 limit SSA def walking. Optimize the common plus/minus case.
19983 2019-07-17 Richard Biener <rguenther@suse.de>
19985 PR tree-optimization/91178
19986 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19987 loads with a gap larger than the vector size always use
19989 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19990 avoid loading vectors that are only contained in the gap
19991 and thus are not needed.
19993 2019-07-17 Richard Biener <rguenther@suse.de>
19995 PR tree-optimization/91180
19996 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19997 computation for memset partial defs.
19999 2019-07-17 Jakub Jelinek <jakub@redhat.com>
20001 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20002 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20003 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20004 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20005 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20006 * omp-grid.c (grid_process_grid_body,
20007 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20008 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20009 == GF_OMP_FOR_KIND_SIMD.
20010 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20011 check_omp_nesting_restrictions, scan_omp_1_stmt,
20012 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20013 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20014 omp_find_scan): Likewise.
20015 * omp-expand.c (expand_omp_for): Likewise.
20016 * omp-general.c (omp_extract_for_data): Likewise.
20018 PR tree-optimization/91157
20019 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20020 a vector boolean with scalar mode.
20021 (expand_vector_condition): Handle first operand being a vector boolean
20023 (expand_vector_operations_1): For comparisons, don't bail out early
20024 if the return type is vector boolean with scalar mode, but comparison
20025 operand type is not.
20027 2019-07-17 Richard Biener <rguenther@suse.de>
20029 PR tree-optimization/91181
20030 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20031 IFN_LOADs as calls.
20033 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20035 * config/i386/i386.md (*testdi_1): Match CCZmode for
20036 constants that might have the SImode sign bit set.
20037 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20038 Use correct constraints for pentium pairing.
20039 (*test<mode>_1): Ditto.
20041 2019-07-16 Jeff Law <law@redhat.com>
20043 PR rtl-optimization/91173
20044 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20045 SSA_NAME with a constant value, fold its value into the offset
20046 and clear the base before calling gen_addr_rtx.
20048 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20050 PR rtl-optimization/91164
20051 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20052 invalidate dominance info.
20054 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20056 * read-md.h (md_reader::record_potential_iterator_use): Add a
20057 file_location parameter.
20058 * read-rtl.c (attribute_use::loc): New field.
20059 (map_attr_string): Take a file_location parameter. Report cases
20060 in which attributes map to multiple distinct values.
20061 (apply_attribute_uses): Update call accordingly.
20062 (md_reader::handle_overloaded_name): Likewise.
20063 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20065 (record_attribute_use): Take a file_location parameter.
20066 Initialize attribute_use::loc.
20067 (md_reader::record_potential_iterator_use): Take a file_location
20068 parameter. Update call to record_attribute_use.
20069 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20070 (rtx_reader::read_rtx_code): Likewise.
20071 (rtx_reader::read_rtx_operand): Likewise. Record a location
20072 for implicitly-expanded empty strings.
20074 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20076 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20077 Use file_location instead of separate fields.
20078 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20079 separate filename and line number.
20080 * read-md.c (ptr_loc): As above.
20081 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20082 (md_reader::fprint_md_ptr_loc): Likewise.
20083 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20084 instead of a separate filename and line number.
20085 (md_reader::read_string): Update call accordingly.
20087 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20089 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20090 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20091 leaving the choice between SFDF and P implicit.
20092 (*mov<mode>_update2): Likewise.
20093 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20094 rather than leaving the choice betweem IBM128 and GPR implicit.
20095 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20096 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20098 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20099 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20100 * config/rs6000/vsx.md
20101 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20102 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20103 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20104 and VSX_EXTRACT_I implicit.
20106 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20108 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20109 Explicitly use <MOVEP1:MODE> for the mode attribute.
20111 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20114 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20116 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20119 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20120 .machine directive.
20122 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20124 * config/i386/i386.md (@test<mode>_ccno_1):
20125 Rename from test<mode>_ccno_1.
20126 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20127 (*testqi_1_maybe_si): Remove modrm attribute.
20128 (*test<mode>_1): Ditto.
20129 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20130 gen_test_ccno_1 and gen_extend_insn.
20132 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20134 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20137 2019-07-15 Richard Biener <rguenther@suse.de>
20139 PR middle-end/91162
20140 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20141 node make sure to replace all uses with something valid.
20143 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20145 PR tree-optimization/88497
20146 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20147 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20148 function undistribute_bitref_for_vector.
20149 (undistribute_bitref_for_vector): New function.
20150 (cleanup_vinfo_map): Likewise.
20151 (sort_by_mach_mode): Likewise.
20153 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20155 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20156 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20157 and testdi_ccno_1 using SWI48 mode attribute.
20158 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20159 x86_64_szext_general_operand.
20160 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20161 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20162 instead of genera_operand mode attribute.
20164 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20166 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20167 fopen and fclose to their respective types.
20168 (DotFn.invoke): Ditto.
20170 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20172 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20173 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20174 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20175 (array_index_predicate): Remove.
20176 (analyze_function_body): Account cost for variable ofsetted array
20178 (estimate_node_size_and_time): Do not compute array index hint.
20179 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20180 (inline_read_section): Do not read array index hint.
20181 (ipa_fn_summary_write): Do not write array index hint.
20182 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20183 * ipa-cp.c (hint_time_bonus): Remove.
20184 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20185 (ipa_fnsummary): Remove array_index.
20186 * ipa-inline.c (want_inline_small_function_p): Do not use
20188 (edge_badness): Likewise.
20189 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20191 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20194 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20195 superfluous "builtin function" phrasing.
20197 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20199 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20201 (aliasing_component_refs_walk): Break out from ...
20202 (aliasing_component_refs_p): ... here.
20204 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20207 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20208 "builtin function" phrasing.
20210 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20213 * recog.h (temporary_volatile_ok): New class.
20214 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20215 volatile_ok temporarily to true using temporary_volatile_ok.
20216 * expr.c (emit_block_move_via_cpymem): Likewise.
20217 * optabs.c (maybe_legitimize_operand): Likewise.
20219 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20221 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20222 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20223 uses inside of order(concurrent) constructs.
20224 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20225 OMP_CLAUSE_ORDER is seen.
20226 * omp-low.c (struct omp_context): Add order_concurrent member.
20227 (scan_sharing_clauses): Set ctx->order_concurrent if
20228 OMP_CLAUSE_ORDER is seen.
20229 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20230 of simd order(concurrent). Diagnose constructs not allowed inside of
20231 for order(concurrent).
20232 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20233 complaining about static double setjmp (double); or class static
20234 methods or non-global namespace setjmps.
20235 (omp_runtime_api_call): New function.
20236 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20237 order(concurrent) loops.
20239 2019-07-12 Martin Sebor <msebor@redhat.com>
20241 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20242 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20243 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20244 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20246 2019-07-12 Jan Hubicka <jh@suse.cz>
20248 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20249 (indirect_refs_may_alias_p): ... here.
20250 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20251 mem refs in the access paths.
20253 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20255 PR tree-optimization/89430
20256 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20257 store elimination for local variable without address escape.
20259 2019-07-12 Jeff Law <law@redhat.com>
20261 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20262 for the ".far" section.
20264 2019-07-12 Richard Biener <rguenther@suse.de>
20266 PR tree-optimization/91145
20267 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20270 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20272 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20273 rather than this_state as the lowering context for the ELSE
20274 seq in a GIMPLE_EH_ELSE.
20276 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20278 * vector-builder.h (vector_builder::elt): Allow already-supplied
20279 elements to be read back before building is complete.
20281 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20283 PR rtl-optimization/91136
20284 * df-core.c (ACCESSING REFS): Fix typos in comment.
20285 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20286 the beginning of the block to the initial set of live registers.
20288 2019-07-12 Richard Biener <rguenther@suse.de>
20290 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20291 * fold-const.c (get_array_ctor_element_at_index): Add
20292 ctor_idx output parameter informing the caller where in
20293 the constructor the element was (not) found. Add early exit
20294 for when the ctor is sorted.
20295 * gimple-fold.c (fold_array_ctor_reference): Support constant
20296 folding across multiple array elements.
20298 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20300 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20301 doesn't have location, set the current location to the function's end.
20303 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20305 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20306 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20307 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20308 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20309 * config/aarch64/aarch64-simd.md
20310 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20311 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20312 * config/aarch64/aarch64-sve.md
20313 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20314 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20316 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20318 * doc/md.texi: Document that @ patterns can have different
20319 numbers of operands.
20320 * genemit.c (handle_overloaded_gen): Handle this case.
20321 * genopinit.c (handle_overloaded_gen): Likewise.
20322 * gensupport.c (replace_operands_with_dups): Iterate over
20323 the new rtx's format rather than the old one's.
20325 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20327 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20328 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20329 order clause entries.
20330 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20331 * tree-pretty-print.c (dump_omp_clause): Likewise.
20332 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20334 * omp-low.c (scan_sharing_clauses): Likewise.
20335 * tree-nested.c (convert_nonlocal_omp_clauses,
20336 convert_local_omp_clauses): Likewise.
20338 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20340 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20341 fallthrough target of current basic block isn't the placed
20344 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20347 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20348 (_mm512_storeu_epi64): Likewise.
20349 (_mm512_loadu_epi32): Likewise.
20350 (_mm512_storeu_epi32): Likewise.
20351 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20352 (_mm_storeu_epi64): Likewise.
20353 (_mm256_storeu_epi32): Likewise.
20354 (_mm_storeu_epi32): Likewise.
20356 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20358 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20360 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20362 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20365 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20368 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20369 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20370 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20371 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20372 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20373 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20375 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20376 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20377 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20379 (sse2_cvttpd2dq<mask_name>): Change into ...
20380 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20381 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20382 (*sse2_cvtpd2dq<mask_name>): Change into ...
20383 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20384 Add "C" constraint to const0_operand.
20385 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20386 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20390 * config/i386/i386-builtin-types.def
20391 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20392 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20393 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20394 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20395 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20396 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20397 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20398 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20399 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20400 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20401 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20402 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20403 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20404 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20405 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20406 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20407 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20408 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20409 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20410 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20411 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20412 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20413 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20414 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20415 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20416 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20417 __builtin_ia32_vpdpbusd_v4si_maskz,
20418 __builtin_ia32_vpdpbusds_v16si_mask,
20419 __builtin_ia32_vpdpbusds_v16si_maskz,
20420 __builtin_ia32_vpdpbusds_v8si_mask,
20421 __builtin_ia32_vpdpbusds_v8si_maskz,
20422 __builtin_ia32_vpdpbusds_v4si_mask,
20423 __builtin_ia32_vpdpbusds_v4si_maskz,
20424 __builtin_ia32_vpdpwssd_v16si_mask,
20425 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20426 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20427 __builtin_ia32_vpdpwssd_v4si_maskz,
20428 __builtin_ia32_vpdpwssds_v16si_mask,
20429 __builtin_ia32_vpdpwssds_v16si_maskz,
20430 __builtin_ia32_vpdpwssds_v8si_mask,
20431 __builtin_ia32_vpdpwssds_v8si_maskz,
20432 __builtin_ia32_vpdpwssds_v4si_mask,
20433 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20434 suffixed types rather than *_INT.
20435 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20436 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20437 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20438 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20439 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20440 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20442 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20444 * tree-vrp.c (intersect_ranges): If we know the intersection is
20445 empty, there is no need to conservatively add anything else to
20448 2019-07-11 Richard Biener <rguenther@suse.de>
20450 PR middle-end/91131
20451 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20452 when the object is volatile and we have not cleared it even though
20453 there are no nonzero elements.
20455 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20457 * config/rs6000/predicates.md (cint34_operand): Update
20458 SIGNED_34BIT_OFFSET_P call.
20459 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20460 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20461 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20462 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20463 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20465 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20466 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20467 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20468 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20469 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20471 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20473 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20474 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20475 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20476 (DEF_MIN_OSX_VERSION): New.
20478 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20480 * fold-const.c (fold_relational_const): Fix folding of
20481 vector-to-scalar NE_EXPRs.
20482 (test_vector_folding): Add more tests.
20484 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20487 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20488 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20489 (vec_setv2di_internal): Reexpress as...
20490 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20491 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20492 rather than gen_neon_vset_lane<mode>.
20494 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20497 * lra-constraints.c (process_alt_operands): Don't match user
20498 defined regs only if they are early clobbers.
20500 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20502 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20504 2019-07-10 Richard Biener <rguenther@suse.de>
20506 PR tree-optimization/91126
20507 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20508 native encoding offset for BYTES_BIG_ENDIAN.
20509 (vn_reference_lookup_3): Likewise.
20511 2019-07-10 Richard Biener <rguenther@suse.de>
20513 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20514 LHS whenever possible.
20516 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20518 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20519 from ...; work also on duplicated types.
20520 (nonoverlapping_component_refs_since_match): ... here
20521 (ncr_type_uid): Break out from ...
20522 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20524 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20525 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20527 2019-07-09 Martin Sebor <msebor@redhat.com>
20529 PR tree-optimization/90989
20530 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20531 optimization to just single character stores.
20533 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20535 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20536 Swap operands only once.
20538 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20540 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20541 for both call instructions.
20543 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20545 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20546 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20548 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20550 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20551 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20552 function from rs6000-logue.c back to rs6000.c.
20553 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20555 2019-07-09 Martin Sebor <msebor@redhat.com>
20558 * auto-profile.c: Change class-key of PODs to struct and others
20560 * basic-block.h: Same.
20561 * bitmap.c (bitmap_alloc): Same.
20563 * builtins.c (expand_builtin_prefetch): Same.
20564 (expand_builtin_interclass_mathfn): Same.
20565 (expand_builtin_strlen): Same.
20566 (expand_builtin_mempcpy_args): Same.
20567 (expand_cmpstr): Same.
20568 (expand_builtin___clear_cache): Same.
20569 (expand_ifn_atomic_bit_test_and): Same.
20570 (expand_builtin_thread_pointer): Same.
20571 (expand_builtin_set_thread_pointer): Same.
20572 * caller-save.c (setup_save_areas): Same.
20573 (replace_reg_with_saved_mem): Same.
20574 (insert_restore): Same.
20575 (insert_save): Same.
20576 (add_used_regs): Same.
20577 * cfg.c (get_bb_copy): Same.
20578 (set_loop_copy): Same.
20581 * cfgexpand.c (alloc_stack_frame_space): Same.
20582 (add_stack_var): Same.
20583 (add_stack_var_conflict): Same.
20584 (add_scope_conflicts_1): Same.
20585 (update_alias_info_with_stack_vars): Same.
20586 (expand_used_vars): Same.
20587 * cfghooks.c (redirect_edge_and_branch_force): Same.
20588 (delete_basic_block): Same.
20589 (split_edge): Same.
20590 (make_forwarder_block): Same.
20591 (force_nonfallthru): Same.
20592 (duplicate_block): Same.
20593 (lv_flush_pending_stmts): Same.
20594 * cfghooks.h: Same.
20595 * cfgloop.c (flow_loops_cfg_dump): Same.
20596 (flow_loop_nested_p): Same.
20597 (superloop_at_depth): Same.
20598 (get_loop_latch_edges): Same.
20599 (flow_loop_dump): Same.
20600 (flow_loops_dump): Same.
20601 (flow_loops_free): Same.
20602 (flow_loop_nodes_find): Same.
20603 (establish_preds): Same.
20604 (flow_loop_tree_node_add): Same.
20605 (flow_loop_tree_node_remove): Same.
20606 (flow_loops_find): Same.
20607 (find_subloop_latch_edge_by_profile): Same.
20608 (find_subloop_latch_edge_by_ivs): Same.
20609 (mfb_redirect_edges_in_set): Same.
20610 (form_subloop): Same.
20611 (merge_latch_edges): Same.
20612 (disambiguate_multiple_latches): Same.
20613 (disambiguate_loops_with_multiple_latches): Same.
20614 (flow_bb_inside_loop_p): Same.
20615 (glb_enum_p): Same.
20616 (get_loop_body_with_size): Same.
20617 (get_loop_body): Same.
20618 (fill_sons_in_loop): Same.
20619 (get_loop_body_in_dom_order): Same.
20620 (get_loop_body_in_custom_order): Same.
20621 (release_recorded_exits): Same.
20622 (get_loop_exit_edges): Same.
20623 (num_loop_branches): Same.
20624 (remove_bb_from_loops): Same.
20625 (find_common_loop): Same.
20626 (delete_loop): Same.
20627 (cancel_loop): Same.
20628 (verify_loop_structure): Same.
20629 (loop_preheader_edge): Same.
20630 (loop_exit_edge_p): Same.
20631 (single_exit): Same.
20632 (loop_exits_to_bb_p): Same.
20633 (loop_exits_from_bb_p): Same.
20634 (get_loop_location): Same.
20635 (record_niter_bound): Same.
20636 (get_estimated_loop_iterations_int): Same.
20637 (max_stmt_executions_int): Same.
20638 (likely_max_stmt_executions_int): Same.
20639 (get_estimated_loop_iterations): Same.
20640 (get_max_loop_iterations): Same.
20641 (get_max_loop_iterations_int): Same.
20642 (get_likely_max_loop_iterations): Same.
20643 * cfgloop.h (simple_loop_desc): Same.
20645 (loop_depth): Same.
20646 (loop_outer): Same.
20647 (loop_iterator::next): Same.
20648 (loop_outermost): Same.
20649 * cfgloopanal.c (mark_irreducible_loops): Same.
20650 (num_loop_insns): Same.
20651 (average_num_loop_insns): Same.
20652 (expected_loop_iterations_unbounded): Same.
20653 (expected_loop_iterations): Same.
20654 (mark_loop_exit_edges): Same.
20655 (single_likely_exit): Same.
20656 * cfgloopmanip.c (fix_bb_placement): Same.
20657 (fix_bb_placements): Same.
20658 (remove_path): Same.
20659 (place_new_loop): Same.
20661 (scale_loop_frequencies): Same.
20662 (scale_loop_profile): Same.
20663 (create_empty_if_region_on_edge): Same.
20664 (create_empty_loop_on_edge): Same.
20667 (fix_loop_placements): Same.
20668 (copy_loop_info): Same.
20669 (duplicate_loop): Same.
20670 (duplicate_subloops): Same.
20671 (loop_redirect_edge): Same.
20672 (can_duplicate_loop_p): Same.
20673 (duplicate_loop_to_header_edge): Same.
20674 (mfb_keep_just): Same.
20675 (has_preds_from_loop): Same.
20676 (create_preheader): Same.
20677 (create_preheaders): Same.
20678 (lv_adjust_loop_entry_edge): Same.
20679 (loop_version): Same.
20680 * cfgloopmanip.h: Same.
20682 * cgraphbuild.c: Same.
20683 * combine.c (make_extraction): Same.
20684 * config/i386/i386-features.c: Same.
20685 * config/i386/i386-features.h: Same.
20686 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20687 (ix86_emit_outlined_ms2sysv_restore): Same.
20688 (ix86_noce_conversion_profitable_p): Same.
20689 (ix86_init_cost): Same.
20690 (ix86_simd_clone_usable): Same.
20691 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20693 * coretypes.h: Same.
20694 * data-streamer-in.c (string_for_index): Change class-key of PODs
20695 to struct and others to class.
20696 (streamer_read_indexed_string): Same.
20697 (streamer_read_string): Same.
20698 (bp_unpack_indexed_string): Same.
20699 (bp_unpack_string): Same.
20700 (streamer_read_uhwi): Same.
20701 (streamer_read_hwi): Same.
20702 (streamer_read_gcov_count): Same.
20703 (streamer_read_wide_int): Same.
20704 * data-streamer.h (streamer_write_bitpack): Same.
20705 (bp_unpack_value): Same.
20706 (streamer_write_char_stream): Same.
20707 (streamer_write_hwi_in_range): Same.
20708 (streamer_write_record_start): Same.
20709 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20710 (add_cross_iteration_register_deps): Same.
20711 (build_intra_loop_deps): Same.
20712 * df-core.c (df_analyze): Same.
20713 (loop_post_order_compute): Same.
20714 (loop_inverted_post_order_compute): Same.
20715 * df-problems.c (df_rd_alloc): Same.
20716 (df_rd_simulate_one_insn): Same.
20717 (df_rd_local_compute): Same.
20718 (df_rd_init_solution): Same.
20719 (df_rd_confluence_n): Same.
20720 (df_rd_transfer_function): Same.
20721 (df_rd_free): Same.
20722 (df_rd_dump_defs_set): Same.
20723 (df_rd_top_dump): Same.
20724 (df_lr_alloc): Same.
20725 (df_lr_reset): Same.
20726 (df_lr_local_compute): Same.
20727 (df_lr_init): Same.
20728 (df_lr_confluence_n): Same.
20729 (df_lr_free): Same.
20730 (df_lr_top_dump): Same.
20731 (df_lr_verify_transfer_functions): Same.
20732 (df_live_alloc): Same.
20733 (df_live_reset): Same.
20734 (df_live_init): Same.
20735 (df_live_confluence_n): Same.
20736 (df_live_finalize): Same.
20737 (df_live_free): Same.
20738 (df_live_top_dump): Same.
20739 (df_live_verify_transfer_functions): Same.
20740 (df_mir_alloc): Same.
20741 (df_mir_reset): Same.
20742 (df_mir_init): Same.
20743 (df_mir_confluence_n): Same.
20744 (df_mir_free): Same.
20745 (df_mir_top_dump): Same.
20746 (df_word_lr_alloc): Same.
20747 (df_word_lr_reset): Same.
20748 (df_word_lr_init): Same.
20749 (df_word_lr_confluence_n): Same.
20750 (df_word_lr_free): Same.
20751 (df_word_lr_top_dump): Same.
20752 (df_md_alloc): Same.
20753 (df_md_simulate_one_insn): Same.
20754 (df_md_reset): Same.
20755 (df_md_init): Same.
20756 (df_md_free): Same.
20757 (df_md_top_dump): Same.
20758 * df-scan.c (df_insn_delete): Same.
20759 (df_insn_rescan): Same.
20760 (df_notes_rescan): Same.
20761 (df_sort_and_compress_mws): Same.
20762 (df_install_mws): Same.
20763 (df_refs_add_to_chains): Same.
20764 (df_ref_create_structure): Same.
20765 (df_ref_record): Same.
20766 (df_def_record_1): Same.
20767 (df_find_hard_reg_defs): Same.
20768 (df_uses_record): Same.
20769 (df_get_conditional_uses): Same.
20770 (df_get_call_refs): Same.
20771 (df_recompute_luids): Same.
20772 (df_get_entry_block_def_set): Same.
20773 (df_entry_block_defs_collect): Same.
20774 (df_get_exit_block_use_set): Same.
20775 (df_exit_block_uses_collect): Same.
20776 (df_mws_verify): Same.
20777 (df_bb_verify): Same.
20778 * df.h (df_scan_get_bb_info): Same.
20779 * doc/tm.texi: Same.
20780 * dse.c (record_store): Same.
20781 * dumpfile.h: Same.
20782 * emit-rtl.c (const_fixed_hasher::equal): Same.
20783 (set_mem_attributes_minus_bitpos): Same.
20784 (change_address): Same.
20785 (adjust_address_1): Same.
20786 (offset_address): Same.
20787 * emit-rtl.h: Same.
20788 * except.c (dw2_build_landing_pads): Same.
20789 (sjlj_emit_dispatch_table): Same.
20790 * explow.c (allocate_dynamic_stack_space): Same.
20791 (emit_stack_probe): Same.
20792 (probe_stack_range): Same.
20793 * expmed.c (store_bit_field_using_insv): Same.
20794 (store_bit_field_1): Same.
20795 (store_integral_bit_field): Same.
20796 (extract_bit_field_using_extv): Same.
20797 (extract_bit_field_1): Same.
20798 (emit_cstore): Same.
20799 * expr.c (emit_block_move_via_cpymem): Same.
20800 (expand_cmpstrn_or_cmpmem): Same.
20801 (set_storage_via_setmem): Same.
20802 (emit_single_push_insn_1): Same.
20803 (expand_assignment): Same.
20804 (store_constructor): Same.
20805 (expand_expr_real_2): Same.
20806 (expand_expr_real_1): Same.
20807 (try_casesi): Same.
20809 * function.c (try_fit_stack_local): Same.
20810 (assign_stack_local_1): Same.
20811 (assign_stack_local): Same.
20812 (cut_slot_from_list): Same.
20813 (insert_slot_to_list): Same.
20814 (max_slot_level): Same.
20815 (move_slot_to_level): Same.
20816 (temp_address_hasher::equal): Same.
20817 (remove_unused_temp_slot_addresses): Same.
20818 (assign_temp): Same.
20819 (combine_temp_slots): Same.
20820 (update_temp_slot_address): Same.
20821 (preserve_temp_slots): Same.
20822 * function.h: Same.
20824 * gcc-rich-location.h: Same.
20826 * genattrtab.c (check_attr_test): Same.
20827 (check_attr_value): Same.
20828 (convert_set_attr_alternative): Same.
20829 (convert_set_attr): Same.
20830 (check_defs): Same.
20831 (copy_boolean): Same.
20832 (get_attr_value): Same.
20833 (expand_delays): Same.
20834 (make_length_attrs): Same.
20836 (make_alternative_compare): Same.
20837 (simplify_test_exp): Same.
20838 (tests_attr_p): Same.
20839 (get_attr_order): Same.
20840 (clear_struct_flag): Same.
20842 (compares_alternatives_p): Same.
20845 (find_attrs_to_cache): Same.
20846 (write_test_expr): Same.
20847 (walk_attr_value): Same.
20848 (write_attr_get): Same.
20849 (eliminate_known_true): Same.
20850 (write_insn_cases): Same.
20851 (write_attr_case): Same.
20852 (write_attr_valueq): Same.
20853 (write_attr_value): Same.
20854 (write_dummy_eligible_delay): Same.
20855 (next_comma_elt): Same.
20857 (make_internal_attr): Same.
20858 (copy_rtx_unchanging): Same.
20859 (gen_insn_reserv): Same.
20860 (check_tune_attr): Same.
20861 (make_automaton_attrs): Same.
20862 (handle_arg): Same.
20863 * genextract.c (gen_insn): Same.
20864 (VEC_char_to_string): Same.
20865 * genmatch.c (print_operand): Same.
20867 (parser::parse_operation): Same.
20868 (parser::parse_capture): Same.
20869 (parser::parse_c_expr): Same.
20870 (parser::parse_simplify): Same.
20872 * genoutput.c (output_operand_data): Same.
20873 (output_get_insn_name): Same.
20874 (compare_operands): Same.
20875 (place_operands): Same.
20876 (process_template): Same.
20877 (validate_insn_alternatives): Same.
20878 (validate_insn_operands): Same.
20879 (gen_expand): Same.
20880 (note_constraint): Same.
20881 * genpreds.c (write_one_predicate_function): Same.
20882 (add_constraint): Same.
20883 (process_define_register_constraint): Same.
20884 (write_lookup_constraint_1): Same.
20885 (write_lookup_constraint_array): Same.
20886 (write_insn_constraint_len): Same.
20887 (write_reg_class_for_constraint_1): Same.
20888 (write_constraint_satisfied_p_array): Same.
20889 * genrecog.c (optimize_subroutine_group): Same.
20890 * gensupport.c (process_define_predicate): Same.
20891 (queue_pattern): Same.
20892 (remove_from_queue): Same.
20893 (process_rtx): Same.
20894 (is_predicable): Same.
20895 (change_subst_attribute): Same.
20896 (subst_pattern_match): Same.
20897 (alter_constraints): Same.
20898 (alter_attrs_for_insn): Same.
20899 (shift_output_template): Same.
20900 (alter_output_for_subst_insn): Same.
20901 (process_one_cond_exec): Same.
20903 (process_define_cond_exec): Same.
20904 (mnemonic_htab_callback): Same.
20905 (gen_mnemonic_attr): Same.
20906 (read_md_rtx): Same.
20907 * ggc-page.c: Same.
20908 * gimple-loop-interchange.cc (dump_reduction): Same.
20909 (dump_induction): Same.
20910 (loop_cand::~loop_cand): Same.
20911 (free_data_refs_with_aux): Same.
20912 (tree_loop_interchange::interchange_loops): Same.
20913 (tree_loop_interchange::map_inductions_to_loop): Same.
20914 (tree_loop_interchange::move_code_to_inner_loop): Same.
20915 (compute_access_stride): Same.
20916 (compute_access_strides): Same.
20917 (proper_loop_form_for_interchange): Same.
20918 (tree_loop_interchange_compute_ddrs): Same.
20919 (prune_datarefs_not_in_loop): Same.
20920 (prepare_data_references): Same.
20921 (pass_linterchange::execute): Same.
20922 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20923 (unroll_jam_possible_p): Same.
20924 (fuse_loops): Same.
20925 (adjust_unroll_factor): Same.
20926 (tree_loop_unroll_and_jam): Same.
20927 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20928 (loop_versioning::expensive_stmt_p): Same.
20929 (loop_versioning::version_for_unity): Same.
20930 (loop_versioning::dump_inner_likelihood): Same.
20931 (loop_versioning::find_per_loop_multiplication): Same.
20932 (loop_versioning::analyze_term_using_scevs): Same.
20933 (loop_versioning::record_address_fragment): Same.
20934 (loop_versioning::analyze_expr): Same.
20935 (loop_versioning::analyze_blocks): Same.
20936 (loop_versioning::prune_conditions): Same.
20937 (loop_versioning::merge_loop_info): Same.
20938 (loop_versioning::add_loop_to_queue): Same.
20939 (loop_versioning::decide_whether_loop_is_versionable): Same.
20940 (loop_versioning::make_versioning_decisions): Same.
20941 (loop_versioning::implement_versioning_decisions): Same.
20942 * gimple-ssa-evrp-analyze.c
20943 (evrp_range_analyzer::record_ranges_from_phis): Same.
20944 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20945 (count_multiple_uses): Same.
20946 (split_group): Same.
20947 (imm_store_chain_info::output_merged_store): Same.
20948 (pass_store_merging::process_store): Same.
20949 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20950 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20952 (alloca_call_type): Same.
20953 (pass_walloca::execute): Same.
20954 * gimple-streamer-in.c (input_phi): Same.
20955 (input_gimple_stmt): Same.
20956 * gimple-streamer.h: Same.
20957 * godump.c (go_force_record_alignment): Same.
20958 (go_format_type): Same.
20959 (go_output_type): Same.
20960 (go_output_fndecl): Same.
20961 (go_output_typedef): Same.
20962 (keyword_hash_init): Same.
20963 (find_dummy_types): Same.
20964 * graph.c (draw_cfg_nodes_no_loops): Same.
20965 (draw_cfg_nodes_for_loop): Same.
20966 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20967 * hsa-brig.c: Same.
20968 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20969 * hsa-dump.c (dump_hsa_cfun): Same.
20970 * hsa-gen.c (gen_function_def_parameters): Same.
20971 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20972 * input.c (dump_line_table_statistics): Same.
20973 (test_lexer): Same.
20975 * internal-fn.c (get_multi_vector_move): Same.
20976 (expand_load_lanes_optab_fn): Same.
20977 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20978 (expand_GOMP_SIMT_EXIT): Same.
20979 (expand_GOMP_SIMT_LAST_LANE): Same.
20980 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20981 (expand_GOMP_SIMT_VOTE_ANY): Same.
20982 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20983 (expand_GOMP_SIMT_XCHG_IDX): Same.
20984 (expand_addsub_overflow): Same.
20985 (expand_neg_overflow): Same.
20986 (expand_mul_overflow): Same.
20987 (expand_call_mem_ref): Same.
20988 (expand_mask_load_optab_fn): Same.
20989 (expand_scatter_store_optab_fn): Same.
20990 (expand_gather_load_optab_fn): Same.
20991 * ipa-cp.c (ipa_get_parm_lattices): Same.
20992 (print_all_lattices): Same.
20993 (ignore_edge_p): Same.
20994 (build_toporder_info): Same.
20995 (free_toporder_info): Same.
20996 (push_node_to_stack): Same.
20997 (ipcp_lattice<valtype>::set_contains_variable): Same.
20998 (set_agg_lats_to_bottom): Same.
20999 (ipcp_bits_lattice::meet_with): Same.
21000 (set_single_call_flag): Same.
21001 (initialize_node_lattices): Same.
21002 (ipa_get_jf_ancestor_result): Same.
21003 (ipcp_verify_propagated_values): Same.
21004 (propagate_scalar_across_jump_function): Same.
21005 (propagate_context_across_jump_function): Same.
21006 (propagate_bits_across_jump_function): Same.
21007 (ipa_vr_operation_and_type_effects): Same.
21008 (propagate_vr_across_jump_function): Same.
21009 (set_check_aggs_by_ref): Same.
21010 (set_chain_of_aglats_contains_variable): Same.
21011 (merge_aggregate_lattices): Same.
21012 (agg_pass_through_permissible_p): Same.
21013 (propagate_aggs_across_jump_function): Same.
21014 (call_passes_through_thunk_p): Same.
21015 (propagate_constants_across_call): Same.
21016 (devirtualization_time_bonus): Same.
21017 (good_cloning_opportunity_p): Same.
21018 (context_independent_aggregate_values): Same.
21019 (gather_context_independent_values): Same.
21020 (perform_estimation_of_a_value): Same.
21021 (estimate_local_effects): Same.
21022 (value_topo_info<valtype>::add_val): Same.
21023 (add_all_node_vals_to_toposort): Same.
21024 (value_topo_info<valtype>::propagate_effects): Same.
21025 (ipcp_propagate_stage): Same.
21026 (ipcp_discover_new_direct_edges): Same.
21027 (same_node_or_its_all_contexts_clone_p): Same.
21028 (cgraph_edge_brings_value_p): Same.
21029 (gather_edges_for_value): Same.
21030 (create_specialized_node): Same.
21031 (find_more_scalar_values_for_callers_subset): Same.
21032 (find_more_contexts_for_caller_subset): Same.
21033 (copy_plats_to_inter): Same.
21034 (intersect_aggregates_with_edge): Same.
21035 (find_aggregate_values_for_callers_subset): Same.
21036 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21037 (decide_about_value): Same.
21038 (decide_whether_version_node): Same.
21039 (spread_undeadness): Same.
21040 (identify_dead_nodes): Same.
21041 (ipcp_store_vr_results): Same.
21042 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21043 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21044 (redirect_to_unreachable): Same.
21045 (edge_set_predicate): Same.
21046 (evaluate_conditions_for_known_args): Same.
21047 (evaluate_properties_for_edge): Same.
21048 (ipa_fn_summary_t::duplicate): Same.
21049 (ipa_call_summary_t::duplicate): Same.
21050 (dump_ipa_call_summary): Same.
21051 (ipa_dump_fn_summary): Same.
21052 (eliminated_by_inlining_prob): Same.
21053 (set_cond_stmt_execution_predicate): Same.
21054 (set_switch_stmt_execution_predicate): Same.
21055 (compute_bb_predicates): Same.
21056 (will_be_nonconstant_expr_predicate): Same.
21057 (phi_result_unknown_predicate): Same.
21058 (analyze_function_body): Same.
21059 (compute_fn_summary): Same.
21060 (estimate_edge_devirt_benefit): Same.
21061 (estimate_edge_size_and_time): Same.
21062 (estimate_calls_size_and_time): Same.
21063 (estimate_node_size_and_time): Same.
21064 (remap_edge_change_prob): Same.
21065 (remap_edge_summaries): Same.
21066 (ipa_merge_fn_summary_after_inlining): Same.
21067 (ipa_fn_summary_generate): Same.
21068 (inline_read_section): Same.
21069 (ipa_fn_summary_read): Same.
21070 (ipa_fn_summary_write): Same.
21071 * ipa-fnsummary.h: Same.
21072 * ipa-hsa.c (ipa_hsa_read_section): Same.
21073 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21074 * ipa-icf.c (sem_function::param_used_p): Same.
21075 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21076 * ipa-inline.c (edge_badness): Same.
21077 (inline_small_functions): Same.
21078 * ipa-polymorphic-call.c
21079 (ipa_polymorphic_call_context::stream_out): Same.
21080 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21081 (predicate::remap_after_inlining): Same.
21082 (predicate::stream_out): Same.
21083 * ipa-predicate.h: Same.
21084 * ipa-profile.c (ipa_profile_read_summary): Same.
21085 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21086 (count_formal_params): Same.
21087 (ipa_dump_param): Same.
21088 (ipa_alloc_node_params): Same.
21089 (ipa_print_node_jump_functions_for_edge): Same.
21090 (ipa_print_node_jump_functions): Same.
21091 (ipa_load_from_parm_agg): Same.
21092 (get_ancestor_addr_info): Same.
21093 (ipa_compute_jump_functions_for_edge): Same.
21094 (ipa_analyze_virtual_call_uses): Same.
21095 (ipa_analyze_stmt_uses): Same.
21096 (ipa_analyze_params_uses_in_bb): Same.
21097 (update_jump_functions_after_inlining): Same.
21098 (try_decrement_rdesc_refcount): Same.
21099 (ipa_impossible_devirt_target): Same.
21100 (update_indirect_edges_after_inlining): Same.
21101 (combine_controlled_uses_counters): Same.
21102 (ipa_edge_args_sum_t::duplicate): Same.
21103 (ipa_write_jump_function): Same.
21104 (ipa_write_indirect_edge_info): Same.
21105 (ipa_write_node_info): Same.
21106 (ipa_read_edge_info): Same.
21107 (ipa_prop_read_section): Same.
21108 (read_replacements_section): Same.
21109 * ipa-prop.h (ipa_get_param_count): Same.
21110 (ipa_get_param): Same.
21111 (ipa_get_type): Same.
21112 (ipa_get_param_move_cost): Same.
21113 (ipa_set_param_used): Same.
21114 (ipa_get_controlled_uses): Same.
21115 (ipa_set_controlled_uses): Same.
21116 (ipa_get_cs_argument_count): Same.
21117 * ipa-pure-const.c (analyze_function): Same.
21118 (pure_const_read_summary): Same.
21120 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21121 * ipa-split.c (test_nonssa_use): Same.
21122 (dump_split_point): Same.
21123 (dominated_by_forbidden): Same.
21124 (split_part_set_ssa_name_p): Same.
21125 (find_split_points): Same.
21126 * ira-build.c (finish_loop_tree_nodes): Same.
21127 (low_pressure_loop_node_p): Same.
21128 * ira-color.c (ira_reuse_stack_slot): Same.
21130 * ira.c (setup_reg_equiv): Same.
21131 (print_insn_chain): Same.
21133 * loop-doloop.c (doloop_condition_get): Same.
21135 (record_reg_sets): Same.
21136 (doloop_optimize): Same.
21137 * loop-init.c (loop_optimizer_init): Same.
21138 (fix_loop_structure): Same.
21139 * loop-invariant.c (merge_identical_invariants): Same.
21140 (compute_always_reached): Same.
21141 (find_exits): Same.
21142 (may_assign_reg_p): Same.
21143 (find_invariants_bb): Same.
21144 (find_invariants_body): Same.
21145 (replace_uses): Same.
21146 (can_move_invariant_reg): Same.
21147 (free_inv_motion_data): Same.
21148 (move_single_loop_invariants): Same.
21149 (change_pressure): Same.
21150 (mark_ref_regs): Same.
21151 (calculate_loop_reg_pressure): Same.
21152 * loop-iv.c (biv_entry_hasher::equal): Same.
21153 (iv_extend_to_rtx_code): Same.
21154 (check_iv_ref_table_size): Same.
21155 (clear_iv_info): Same.
21156 (latch_dominating_def): Same.
21157 (iv_get_reaching_def): Same.
21158 (iv_constant): Same.
21164 (get_biv_step): Same.
21166 (analyzed_for_bivness_p): Same.
21167 (record_biv): Same.
21168 (iv_analyze_biv): Same.
21169 (iv_analyze_expr): Same.
21170 (iv_analyze_def): Same.
21171 (iv_analyze_op): Same.
21172 (iv_analyze): Same.
21173 (iv_analyze_result): Same.
21175 (eliminate_implied_conditions): Same.
21176 (simplify_using_initial_values): Same.
21177 (shorten_into_mode): Same.
21178 (canonicalize_iv_subregs): Same.
21179 (determine_max_iter): Same.
21180 (check_simple_exit): Same.
21181 (find_simple_exit): Same.
21182 (get_simple_loop_desc): Same.
21183 * loop-unroll.c (report_unroll): Same.
21184 (decide_unrolling): Same.
21185 (unroll_loops): Same.
21186 (loop_exit_at_end_p): Same.
21187 (decide_unroll_constant_iterations): Same.
21188 (unroll_loop_constant_iterations): Same.
21189 (compare_and_jump_seq): Same.
21190 (unroll_loop_runtime_iterations): Same.
21191 (decide_unroll_stupid): Same.
21192 (unroll_loop_stupid): Same.
21193 (referenced_in_one_insn_in_loop_p): Same.
21194 (reset_debug_uses_in_loop): Same.
21195 (analyze_iv_to_split_insn): Same.
21196 * lra-eliminations.c (lra_debug_elim_table): Same.
21197 (setup_can_eliminate): Same.
21199 (lra_get_elimination_hard_regno): Same.
21200 (lra_eliminate_regs_1): Same.
21201 (eliminate_regs_in_insn): Same.
21202 (update_reg_eliminate): Same.
21203 (init_elimination): Same.
21204 (lra_eliminate): Same.
21206 * lra-lives.c (initiate_live_solver): Same.
21207 * lra-remat.c (create_remat_bb_data): Same.
21208 * lra-spills.c (lra_spill): Same.
21209 * lra.c (lra_set_insn_recog_data): Same.
21210 (lra_set_used_insn_alternative_by_uid): Same.
21211 (init_reg_info): Same.
21212 (expand_reg_info): Same.
21213 * lto-cgraph.c (output_symtab): Same.
21214 (read_identifier): Same.
21215 (get_alias_symbol): Same.
21216 (input_node): Same.
21217 (input_varpool_node): Same.
21219 (input_edge): Same.
21220 (input_cgraph_1): Same.
21221 (input_refs): Same.
21222 (input_symtab): Same.
21223 (input_offload_tables): Same.
21224 (output_cgraph_opt_summary): Same.
21225 (input_edge_opt_summary): Same.
21226 (input_cgraph_opt_section): Same.
21227 * lto-section-in.c (lto_free_raw_section_data): Same.
21228 (lto_create_simple_input_block): Same.
21229 (lto_free_function_in_decl_state_for_node): Same.
21230 * lto-streamer-in.c (lto_tag_check_set): Same.
21231 (lto_location_cache::revert_location_cache): Same.
21232 (lto_location_cache::input_location): Same.
21233 (lto_input_location): Same.
21234 (stream_input_location_now): Same.
21235 (lto_input_tree_ref): Same.
21236 (lto_input_eh_catch_list): Same.
21237 (input_eh_region): Same.
21238 (lto_init_eh): Same.
21239 (make_new_block): Same.
21241 (fixup_call_stmt_edges): Same.
21242 (input_struct_function_base): Same.
21243 (input_function): Same.
21244 (lto_read_body_or_constructor): Same.
21245 (lto_read_tree_1): Same.
21246 (lto_read_tree): Same.
21247 (lto_input_scc): Same.
21248 (lto_input_tree_1): Same.
21249 (lto_input_toplevel_asms): Same.
21250 (lto_input_mode_table): Same.
21251 (lto_reader_init): Same.
21252 (lto_data_in_create): Same.
21253 * lto-streamer-out.c (output_cfg): Same.
21254 * lto-streamer.h: Same.
21255 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21256 (generate_prolog_epilog): Same.
21257 (mark_loop_unsched): Same.
21258 (dump_insn_location): Same.
21259 (loop_canon_p): Same.
21260 (sms_schedule): Same.
21261 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21262 (expand_omp_for_generic): Same.
21263 (expand_omp_for_static_nochunk): Same.
21264 (expand_omp_for_static_chunk): Same.
21265 (expand_omp_simd): Same.
21266 (expand_omp_taskloop_for_inner): Same.
21267 (expand_oacc_for): Same.
21268 (expand_omp_atomic_pipeline): Same.
21269 (mark_loops_in_oacc_kernels_region): Same.
21270 * omp-offload.c (oacc_xform_loop): Same.
21271 * omp-simd-clone.c (simd_clone_adjust): Same.
21272 * optabs-query.c (get_traditional_extraction_insn): Same.
21273 * optabs.c (expand_vector_broadcast): Same.
21274 (expand_binop_directly): Same.
21275 (expand_twoval_unop): Same.
21276 (expand_twoval_binop): Same.
21277 (expand_unop_direct): Same.
21278 (emit_indirect_jump): Same.
21279 (emit_conditional_move): Same.
21280 (emit_conditional_neg_or_complement): Same.
21281 (emit_conditional_add): Same.
21282 (vector_compare_rtx): Same.
21283 (expand_vec_perm_1): Same.
21284 (expand_vec_perm_const): Same.
21285 (expand_vec_cond_expr): Same.
21286 (expand_vec_series_expr): Same.
21287 (maybe_emit_atomic_exchange): Same.
21288 (maybe_emit_sync_lock_test_and_set): Same.
21289 (expand_atomic_compare_and_swap): Same.
21290 (expand_atomic_load): Same.
21291 (expand_atomic_store): Same.
21292 (maybe_emit_op): Same.
21293 (valid_multiword_target_p): Same.
21294 (create_integer_operand): Same.
21295 (maybe_legitimize_operand_same_code): Same.
21296 (maybe_legitimize_operand): Same.
21297 (create_convert_operand_from_type): Same.
21298 (can_reuse_operands_p): Same.
21299 (maybe_legitimize_operands): Same.
21300 (maybe_gen_insn): Same.
21301 (maybe_expand_insn): Same.
21302 (maybe_expand_jump_insn): Same.
21303 (expand_insn): Same.
21304 * optabs.h (create_expand_operand): Same.
21305 (create_fixed_operand): Same.
21306 (create_output_operand): Same.
21307 (create_input_operand): Same.
21308 (create_convert_operand_to): Same.
21309 (create_convert_operand_from): Same.
21311 * poly-int.h: Same.
21312 * predict.c (optimize_insn_for_speed_p): Same.
21313 (optimize_loop_for_size_p): Same.
21314 (optimize_loop_for_speed_p): Same.
21315 (optimize_loop_nest_for_speed_p): Same.
21316 (get_base_value): Same.
21317 (predicted_by_loop_heuristics_p): Same.
21318 (predict_extra_loop_exits): Same.
21319 (predict_loops): Same.
21320 (predict_paths_for_bb): Same.
21321 (predict_paths_leading_to): Same.
21322 (propagate_freq): Same.
21323 (pass_profile::execute): Same.
21325 * profile-count.c (profile_count::differs_from_p): Same.
21326 (profile_probability::differs_lot_from_p): Same.
21327 * profile-count.h: Same.
21328 * profile.c (branch_prob): Same.
21329 * regrename.c (free_chain_data): Same.
21330 (mark_conflict): Same.
21331 (create_new_chain): Same.
21332 (merge_overlapping_regs): Same.
21333 (init_rename_info): Same.
21334 (merge_chains): Same.
21335 (regrename_analyze): Same.
21336 (regrename_do_replace): Same.
21337 (scan_rtx_reg): Same.
21338 (record_out_operands): Same.
21339 (build_def_use): Same.
21340 * regrename.h: Same.
21342 * reload1.c (init_reload): Same.
21343 (maybe_fix_stack_asms): Same.
21344 (copy_reloads): Same.
21345 (count_pseudo): Same.
21346 (count_spilled_pseudo): Same.
21348 (find_reload_regs): Same.
21349 (select_reload_regs): Same.
21350 (spill_hard_reg): Same.
21351 (fixup_eh_region_note): Same.
21352 (set_reload_reg): Same.
21353 (allocate_reload_reg): Same.
21354 (compute_reload_subreg_offset): Same.
21355 (reload_adjust_reg_for_icode): Same.
21356 (emit_input_reload_insns): Same.
21357 (emit_output_reload_insns): Same.
21358 (do_input_reload): Same.
21359 (inherit_piecemeal_p): Same.
21361 * sanopt.c (maybe_get_dominating_check): Same.
21362 (maybe_optimize_ubsan_ptr_ifn): Same.
21363 (can_remove_asan_check): Same.
21364 (maybe_optimize_asan_check_ifn): Same.
21365 (sanopt_optimize_walker): Same.
21366 * sched-deps.c (add_dependence_list): Same.
21367 (chain_to_prev_insn): Same.
21368 (add_insn_mem_dependence): Same.
21369 (create_insn_reg_set): Same.
21370 (maybe_extend_reg_info_p): Same.
21371 (sched_analyze_reg): Same.
21372 (sched_analyze_1): Same.
21373 (get_implicit_reg_pending_clobbers): Same.
21374 (chain_to_prev_insn_p): Same.
21375 (deps_analyze_insn): Same.
21376 (deps_start_bb): Same.
21377 (sched_free_deps): Same.
21379 (init_deps_reg_last): Same.
21381 * sched-ebb.c: Same.
21382 * sched-int.h: Same.
21383 * sched-rgn.c (add_branch_dependences): Same.
21384 (concat_insn_mem_list): Same.
21386 (sched_rgn_compute_dependencies): Same.
21387 * sel-sched-ir.c (reset_target_context): Same.
21388 (copy_deps_context): Same.
21389 (init_id_from_df): Same.
21390 (has_dependence_p): Same.
21391 (change_loops_latches): Same.
21392 (bb_top_order_comparator): Same.
21393 (make_region_from_loop_preheader): Same.
21394 (sel_init_pipelining): Same.
21395 (get_loop_nest_for_rgn): Same.
21396 (make_regions_from_the_rest): Same.
21397 (sel_is_loop_preheader_p): Same.
21398 * sel-sched-ir.h (inner_loop_header_p): Same.
21399 (get_all_loop_exits): Same.
21400 * selftest.h: Same.
21401 * sese.c (sese_build_liveouts): Same.
21402 (sese_insert_phis_for_liveouts): Same.
21403 * sese.h (defined_in_sese_p): Same.
21404 * sreal.c (sreal::stream_out): Same.
21406 * streamer-hooks.h: Same.
21407 * target-globals.c (save_target_globals): Same.
21408 * target-globals.h: Same.
21409 * target.def: Same.
21411 * targhooks.c (default_has_ifunc_p): Same.
21412 (default_empty_mask_is_expensive): Same.
21413 (default_init_cost): Same.
21414 * targhooks.h: Same.
21416 * tree-affine.c (aff_combination_mult): Same.
21417 (aff_combination_expand): Same.
21418 (aff_combination_constant_multiple_p): Same.
21419 * tree-affine.h: Same.
21420 * tree-cfg.c (build_gimple_cfg): Same.
21421 (replace_loop_annotate_in_block): Same.
21422 (replace_uses_by): Same.
21424 (dump_cfg_stats): Same.
21425 (gimple_duplicate_sese_region): Same.
21426 (gimple_duplicate_sese_tail): Same.
21427 (move_block_to_fn): Same.
21428 (replace_block_vars_by_duplicates): Same.
21429 (move_sese_region_to_fn): Same.
21430 (print_loops_bb): Same.
21431 (print_loop): Same.
21432 (print_loops): Same.
21434 (debug_loops): Same.
21435 * tree-cfg.h: Same.
21436 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21437 (chrec_fold_multiply_poly_poly): Same.
21438 (chrec_evaluate): Same.
21439 (chrec_component_in_loop_num): Same.
21440 (reset_evolution_in_loop): Same.
21441 (is_multivariate_chrec): Same.
21442 (chrec_contains_symbols): Same.
21443 (nb_vars_in_chrec): Same.
21444 (chrec_convert_1): Same.
21445 (chrec_convert_aggressive): Same.
21446 * tree-chrec.h: Same.
21447 * tree-core.h: Same.
21448 * tree-data-ref.c (dump_data_dependence_relation): Same.
21449 (canonicalize_base_object_address): Same.
21450 (data_ref_compare_tree): Same.
21451 (prune_runtime_alias_test_list): Same.
21452 (get_segment_min_max): Same.
21453 (create_intersect_range_checks): Same.
21454 (conflict_fn_no_dependence): Same.
21455 (object_address_invariant_in_loop_p): Same.
21456 (analyze_ziv_subscript): Same.
21457 (analyze_siv_subscript_cst_affine): Same.
21458 (analyze_miv_subscript): Same.
21459 (analyze_overlapping_iterations): Same.
21460 (build_classic_dist_vector_1): Same.
21461 (add_other_self_distances): Same.
21462 (same_access_functions): Same.
21463 (build_classic_dir_vector): Same.
21464 (subscript_dependence_tester_1): Same.
21465 (subscript_dependence_tester): Same.
21466 (access_functions_are_affine_or_constant_p): Same.
21467 (get_references_in_stmt): Same.
21468 (loop_nest_has_data_refs): Same.
21469 (graphite_find_data_references_in_stmt): Same.
21470 (find_data_references_in_bb): Same.
21471 (get_base_for_alignment): Same.
21472 (find_loop_nest_1): Same.
21473 (find_loop_nest): Same.
21474 * tree-data-ref.h (dr_alignment): Same.
21475 (ddr_dependence_level): Same.
21476 * tree-if-conv.c (fold_build_cond_expr): Same.
21477 (add_to_predicate_list): Same.
21478 (add_to_dst_predicate_list): Same.
21479 (phi_convertible_by_degenerating_args): Same.
21480 (idx_within_array_bound): Same.
21481 (all_preds_critical_p): Same.
21482 (pred_blocks_visited_p): Same.
21483 (predicate_bbs): Same.
21484 (build_region): Same.
21485 (if_convertible_loop_p_1): Same.
21486 (is_cond_scalar_reduction): Same.
21487 (predicate_scalar_phi): Same.
21488 (remove_conditions_and_labels): Same.
21489 (combine_blocks): Same.
21490 (version_loop_for_if_conversion): Same.
21491 (versionable_outer_loop_p): Same.
21492 (ifcvt_local_dce): Same.
21493 (tree_if_conversion): Same.
21494 (pass_if_conversion::gate): Same.
21495 * tree-if-conv.h: Same.
21496 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21497 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21499 (stmt_has_scalar_dependences_outside_loop): Same.
21500 (copy_loop_before): Same.
21501 (create_bb_after_loop): Same.
21502 (const_with_all_bytes_same): Same.
21503 (generate_memset_builtin): Same.
21504 (generate_memcpy_builtin): Same.
21505 (destroy_loop): Same.
21506 (build_rdg_partition_for_vertex): Same.
21507 (compute_access_range): Same.
21508 (data_ref_segment_size): Same.
21509 (latch_dominated_by_data_ref): Same.
21510 (compute_alias_check_pairs): Same.
21511 (fuse_memset_builtins): Same.
21512 (finalize_partitions): Same.
21513 (find_seed_stmts_for_distribution): Same.
21514 (prepare_perfect_loop_nest): Same.
21515 * tree-parloops.c (lambda_transform_legal_p): Same.
21516 (loop_parallel_p): Same.
21517 (reduc_stmt_res): Same.
21518 (add_field_for_name): Same.
21519 (create_call_for_reduction_1): Same.
21520 (replace_uses_in_bb_by): Same.
21521 (transform_to_exit_first_loop_alt): Same.
21522 (try_transform_to_exit_first_loop_alt): Same.
21523 (transform_to_exit_first_loop): Same.
21525 (gen_parallel_loop): Same.
21526 (gather_scalar_reductions): Same.
21527 (get_omp_data_i_param): Same.
21528 (try_create_reduction_list): Same.
21529 (oacc_entry_exit_single_gang): Same.
21530 (parallelize_loops): Same.
21531 * tree-pass.h: Same.
21532 * tree-predcom.c (determine_offset): Same.
21533 (last_always_executed_block): Same.
21534 (split_data_refs_to_components): Same.
21535 (suitable_component_p): Same.
21536 (valid_initializer_p): Same.
21537 (find_looparound_phi): Same.
21538 (insert_looparound_copy): Same.
21539 (add_looparound_copies): Same.
21540 (determine_roots_comp): Same.
21541 (predcom_tmp_var): Same.
21542 (initialize_root_vars): Same.
21543 (initialize_root_vars_store_elim_1): Same.
21544 (initialize_root_vars_store_elim_2): Same.
21545 (finalize_eliminated_stores): Same.
21546 (initialize_root_vars_lm): Same.
21547 (remove_stmt): Same.
21548 (determine_unroll_factor): Same.
21549 (execute_pred_commoning_cbck): Same.
21550 (base_names_in_chain_on): Same.
21551 (combine_chains): Same.
21552 (pcom_stmt_dominates_stmt_p): Same.
21553 (try_combine_chains): Same.
21554 (prepare_initializers_chain_store_elim): Same.
21555 (prepare_initializers_chain): Same.
21556 (prepare_initializers): Same.
21557 (prepare_finalizers_chain): Same.
21558 (prepare_finalizers): Same.
21559 (insert_init_seqs): Same.
21560 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21561 (compute_overall_effect_of_inner_loop): Same.
21562 (add_to_evolution_1): Same.
21563 (add_to_evolution): Same.
21564 (follow_ssa_edge_binary): Same.
21565 (follow_ssa_edge_expr): Same.
21566 (backedge_phi_arg_p): Same.
21567 (follow_ssa_edge_in_condition_phi_branch): Same.
21568 (follow_ssa_edge_in_condition_phi): Same.
21569 (follow_ssa_edge_inner_loop_phi): Same.
21570 (follow_ssa_edge): Same.
21571 (analyze_evolution_in_loop): Same.
21572 (analyze_initial_condition): Same.
21573 (interpret_loop_phi): Same.
21574 (interpret_condition_phi): Same.
21575 (interpret_rhs_expr): Same.
21576 (interpret_expr): Same.
21577 (interpret_gimple_assign): Same.
21578 (analyze_scalar_evolution_1): Same.
21579 (analyze_scalar_evolution): Same.
21580 (analyze_scalar_evolution_for_address_of): Same.
21581 (get_instantiated_value_entry): Same.
21582 (loop_closed_phi_def): Same.
21583 (instantiate_scev_name): Same.
21584 (instantiate_scev_poly): Same.
21585 (instantiate_scev_binary): Same.
21586 (instantiate_scev_convert): Same.
21587 (instantiate_scev_not): Same.
21588 (instantiate_scev_r): Same.
21589 (instantiate_scev): Same.
21590 (resolve_mixers): Same.
21591 (initialize_scalar_evolutions_analyzer): Same.
21592 (scev_reset_htab): Same.
21593 (scev_reset): Same.
21594 (derive_simple_iv_with_niters): Same.
21595 (simple_iv_with_niters): Same.
21596 (expression_expensive_p): Same.
21597 (final_value_replacement_loop): Same.
21598 * tree-scalar-evolution.h (block_before_loop): Same.
21599 * tree-ssa-address.h: Same.
21600 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21601 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21602 (record_edge_info): Same.
21603 * tree-ssa-live.c (var_map_base_fini): Same.
21604 (remove_unused_locals): Same.
21605 * tree-ssa-live.h: Same.
21606 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21607 (pass_ch_vect::execute): Same.
21608 (pass_ch::process_loop_p): Same.
21609 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21610 (movement_possibility): Same.
21611 (outermost_invariant_loop): Same.
21613 (determine_max_movement): Same.
21614 (invariantness_dom_walker::before_dom_children): Same.
21615 (move_computations): Same.
21616 (may_move_till): Same.
21617 (force_move_till_op): Same.
21618 (force_move_till): Same.
21619 (memref_free): Same.
21620 (record_mem_ref_loc): Same.
21621 (set_ref_stored_in_loop): Same.
21622 (mark_ref_stored): Same.
21623 (sort_bbs_in_loop_postorder_cmp): Same.
21624 (sort_locs_in_loop_postorder_cmp): Same.
21625 (analyze_memory_references): Same.
21626 (mem_refs_may_alias_p): Same.
21627 (find_ref_loc_in_loop_cmp): Same.
21628 (rewrite_mem_ref_loc::operator): Same.
21629 (first_mem_ref_loc_1::operator): Same.
21630 (sm_set_flag_if_changed::operator): Same.
21631 (execute_sm_if_changed_flag_set): Same.
21632 (execute_sm): Same.
21633 (hoist_memory_references): Same.
21634 (ref_always_accessed::operator): Same.
21635 (refs_independent_p): Same.
21636 (record_dep_loop): Same.
21637 (ref_indep_loop_p_1): Same.
21638 (ref_indep_loop_p): Same.
21639 (can_sm_ref_p): Same.
21640 (find_refs_for_sm): Same.
21641 (loop_suitable_for_sm): Same.
21642 (store_motion_loop): Same.
21643 (store_motion): Same.
21644 (fill_always_executed_in): Same.
21645 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21646 (estimated_unrolled_size): Same.
21647 (loop_edge_to_cancel): Same.
21648 (remove_exits_and_undefined_stmts): Same.
21649 (remove_redundant_iv_tests): Same.
21650 (unloop_loops): Same.
21651 (estimated_peeled_sequence_size): Same.
21652 (try_peel_loop): Same.
21653 (canonicalize_loop_induction_variables): Same.
21654 (canonicalize_induction_variables): Same.
21655 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21657 (stmt_after_inc_pos): Same.
21658 (contains_abnormal_ssa_name_p): Same.
21659 (niter_for_exit): Same.
21662 (find_givs_in_bb): Same.
21663 (find_induction_variables): Same.
21664 (find_interesting_uses_cond): Same.
21665 (outermost_invariant_loop_for_expr): Same.
21666 (idx_find_step): Same.
21667 (add_candidate_1): Same.
21668 (add_iv_candidate_derived_from_uses): Same.
21669 (alloc_use_cost_map): Same.
21670 (prepare_decl_rtl): Same.
21671 (generic_predict_doloop_p): Same.
21672 (computation_cost): Same.
21673 (determine_common_wider_type): Same.
21674 (get_computation_aff_1): Same.
21675 (get_use_type): Same.
21676 (determine_group_iv_cost_address): Same.
21678 (difference_cannot_overflow_p): Same.
21679 (may_eliminate_iv): Same.
21680 (determine_set_costs): Same.
21681 (cheaper_cost_pair): Same.
21682 (compare_cost_pair): Same.
21683 (iv_ca_cand_for_group): Same.
21684 (iv_ca_recount_cost): Same.
21685 (iv_ca_set_remove_invs): Same.
21686 (iv_ca_set_no_cp): Same.
21687 (iv_ca_set_add_invs): Same.
21688 (iv_ca_set_cp): Same.
21689 (iv_ca_add_group): Same.
21690 (iv_ca_cost): Same.
21691 (iv_ca_compare_deps): Same.
21692 (iv_ca_delta_reverse): Same.
21693 (iv_ca_delta_commit): Same.
21694 (iv_ca_cand_used_p): Same.
21695 (iv_ca_delta_free): Same.
21697 (iv_ca_free): Same.
21698 (iv_ca_dump): Same.
21699 (iv_ca_extend): Same.
21700 (iv_ca_narrow): Same.
21701 (iv_ca_prune): Same.
21702 (cheaper_cost_with_cand): Same.
21703 (iv_ca_replace): Same.
21704 (try_add_cand_for): Same.
21705 (get_initial_solution): Same.
21706 (try_improve_iv_set): Same.
21707 (find_optimal_iv_set_1): Same.
21708 (create_new_iv): Same.
21709 (rewrite_use_compare): Same.
21710 (remove_unused_ivs): Same.
21711 (determine_scaling_factor): Same.
21712 * tree-ssa-loop-ivopts.h: Same.
21713 * tree-ssa-loop-manip.c (create_iv): Same.
21714 (compute_live_loop_exits): Same.
21715 (add_exit_phi): Same.
21716 (add_exit_phis): Same.
21717 (find_uses_to_rename_use): Same.
21718 (find_uses_to_rename_def): Same.
21719 (find_uses_to_rename_in_loop): Same.
21720 (rewrite_into_loop_closed_ssa): Same.
21721 (check_loop_closed_ssa_bb): Same.
21722 (split_loop_exit_edge): Same.
21723 (ip_end_pos): Same.
21724 (ip_normal_pos): Same.
21725 (copy_phi_node_args): Same.
21726 (gimple_duplicate_loop_to_header_edge): Same.
21727 (can_unroll_loop_p): Same.
21728 (determine_exit_conditions): Same.
21729 (scale_dominated_blocks_in_loop): Same.
21730 (niter_for_unrolled_loop): Same.
21731 (tree_transform_and_unroll_loop): Same.
21732 (rewrite_all_phi_nodes_with_iv): Same.
21733 * tree-ssa-loop-manip.h: Same.
21734 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21735 (number_of_iterations_ne): Same.
21736 (assert_no_overflow_lt): Same.
21737 (assert_loop_rolls_lt): Same.
21738 (number_of_iterations_lt): Same.
21739 (adjust_cond_for_loop_until_wrap): Same.
21740 (tree_simplify_using_condition): Same.
21741 (simplify_using_initial_conditions): Same.
21742 (simplify_using_outer_evolutions): Same.
21743 (loop_only_exit_p): Same.
21744 (ssa_defined_by_minus_one_stmt_p): Same.
21745 (number_of_iterations_popcount): Same.
21746 (number_of_iterations_exit): Same.
21747 (find_loop_niter): Same.
21748 (finite_loop_p): Same.
21749 (chain_of_csts_start): Same.
21750 (get_val_for): Same.
21751 (loop_niter_by_eval): Same.
21752 (derive_constant_upper_bound_ops): Same.
21753 (do_warn_aggressive_loop_optimizations): Same.
21754 (record_estimate): Same.
21755 (get_cst_init_from_scev): Same.
21756 (record_nonwrapping_iv): Same.
21757 (idx_infer_loop_bounds): Same.
21758 (infer_loop_bounds_from_ref): Same.
21759 (infer_loop_bounds_from_array): Same.
21760 (infer_loop_bounds_from_pointer_arith): Same.
21761 (infer_loop_bounds_from_signedness): Same.
21762 (bound_index): Same.
21763 (discover_iteration_bound_by_body_walk): Same.
21764 (maybe_lower_iteration_bound): Same.
21765 (estimate_numbers_of_iterations): Same.
21766 (estimated_loop_iterations): Same.
21767 (estimated_loop_iterations_int): Same.
21768 (max_loop_iterations): Same.
21769 (max_loop_iterations_int): Same.
21770 (likely_max_loop_iterations): Same.
21771 (likely_max_loop_iterations_int): Same.
21772 (estimated_stmt_executions_int): Same.
21773 (max_stmt_executions): Same.
21774 (likely_max_stmt_executions): Same.
21775 (estimated_stmt_executions): Same.
21776 (stmt_dominates_stmt_p): Same.
21777 (nowrap_type_p): Same.
21778 (loop_exits_before_overflow): Same.
21779 (scev_var_range_cant_overflow): Same.
21780 (scev_probably_wraps_p): Same.
21781 (free_numbers_of_iterations_estimates): Same.
21782 * tree-ssa-loop-niter.h: Same.
21783 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21784 (idx_analyze_ref): Same.
21785 (analyze_ref): Same.
21786 (gather_memory_references_ref): Same.
21787 (mark_nontemporal_store): Same.
21788 (emit_mfence_after_loop): Same.
21789 (may_use_storent_in_loop_p): Same.
21790 (mark_nontemporal_stores): Same.
21791 (should_unroll_loop_p): Same.
21792 (volume_of_dist_vector): Same.
21793 (add_subscript_strides): Same.
21794 (self_reuse_distance): Same.
21795 (insn_to_prefetch_ratio_too_small_p): Same.
21796 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21797 (patch_loop_exit): Same.
21798 (find_or_create_guard_phi): Same.
21799 (easy_exit_values): Same.
21800 (connect_loop_phis): Same.
21801 (connect_loops): Same.
21802 (compute_new_first_bound): Same.
21803 (split_loop): Same.
21804 (tree_ssa_split_loops): Same.
21805 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21806 (is_maybe_undefined): Same.
21807 (tree_may_unswitch_on): Same.
21808 (simplify_using_entry_checks): Same.
21809 (tree_unswitch_single_loop): Same.
21810 (tree_unswitch_loop): Same.
21811 (tree_unswitch_outer_loop): Same.
21812 (empty_bb_without_guard_p): Same.
21813 (used_outside_loop_p): Same.
21814 (get_vop_from_header): Same.
21815 (hoist_guard): Same.
21816 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21817 (get_lsm_tmp_name): Same.
21818 * tree-ssa-loop.h: Same.
21819 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21820 (build_and_add_sum): Same.
21821 (no_side_effect_bb): Same.
21823 (linearize_expr): Same.
21824 (should_break_up_subtract): Same.
21825 (linearize_expr_tree): Same.
21826 * tree-ssa-scopedtables.c: Same.
21827 * tree-ssa-scopedtables.h: Same.
21828 * tree-ssa-structalias.c (condense_visit): Same.
21829 (label_visit): Same.
21830 (dump_pred_graph): Same.
21831 (perform_var_substitution): Same.
21832 (move_complex_constraints): Same.
21833 (remove_preds_and_fake_succs): Same.
21834 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21835 (determine_bb_domination_status): Same.
21836 (duplicate_thread_path): Same.
21837 (thread_through_all_blocks): Same.
21838 * tree-ssa-threadupdate.h: Same.
21839 * tree-streamer-in.c (streamer_read_string_cst): Same.
21840 (input_identifier): Same.
21841 (unpack_ts_type_common_value_fields): Same.
21842 (unpack_ts_block_value_fields): Same.
21843 (unpack_ts_translation_unit_decl_value_fields): Same.
21844 (unpack_ts_omp_clause_value_fields): Same.
21845 (streamer_read_tree_bitfields): Same.
21846 (streamer_alloc_tree): Same.
21847 (lto_input_ts_common_tree_pointers): Same.
21848 (lto_input_ts_vector_tree_pointers): Same.
21849 (lto_input_ts_poly_tree_pointers): Same.
21850 (lto_input_ts_complex_tree_pointers): Same.
21851 (lto_input_ts_decl_minimal_tree_pointers): Same.
21852 (lto_input_ts_decl_common_tree_pointers): Same.
21853 (lto_input_ts_decl_non_common_tree_pointers): Same.
21854 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21855 (lto_input_ts_field_decl_tree_pointers): Same.
21856 (lto_input_ts_function_decl_tree_pointers): Same.
21857 (lto_input_ts_type_common_tree_pointers): Same.
21858 (lto_input_ts_type_non_common_tree_pointers): Same.
21859 (lto_input_ts_list_tree_pointers): Same.
21860 (lto_input_ts_vec_tree_pointers): Same.
21861 (lto_input_ts_exp_tree_pointers): Same.
21862 (lto_input_ts_block_tree_pointers): Same.
21863 (lto_input_ts_binfo_tree_pointers): Same.
21864 (lto_input_ts_constructor_tree_pointers): Same.
21865 (lto_input_ts_omp_clause_tree_pointers): Same.
21866 (streamer_read_tree_body): Same.
21867 * tree-streamer.h: Same.
21868 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21869 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21870 (vect_analyze_possibly_independent_ddr): Same.
21871 (vect_analyze_data_ref_dependence): Same.
21872 (vect_compute_data_ref_alignment): Same.
21873 (vect_enhance_data_refs_alignment): Same.
21874 (vect_analyze_data_ref_access): Same.
21875 (vect_check_gather_scatter): Same.
21876 (vect_find_stmt_data_reference): Same.
21877 (vect_create_addr_base_for_vector_ref): Same.
21878 (vect_setup_realignment): Same.
21879 (vect_supportable_dr_alignment): Same.
21880 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21881 (adjust_phi_and_debug_stmts): Same.
21882 (vect_set_loop_mask): Same.
21883 (add_preheader_seq): Same.
21884 (vect_maybe_permute_loop_masks): Same.
21885 (vect_set_loop_masks_directly): Same.
21886 (vect_set_loop_condition_masked): Same.
21887 (vect_set_loop_condition_unmasked): Same.
21888 (slpeel_duplicate_current_defs_from_edges): Same.
21889 (slpeel_add_loop_guard): Same.
21890 (slpeel_can_duplicate_loop_p): Same.
21891 (create_lcssa_for_virtual_phi): Same.
21893 (vect_update_ivs_after_vectorizer): Same.
21894 (vect_gen_vector_loop_niters_mult_vf): Same.
21895 (slpeel_update_phi_nodes_for_loops): Same.
21896 (slpeel_update_phi_nodes_for_guard1): Same.
21897 (find_guard_arg): Same.
21898 (slpeel_update_phi_nodes_for_guard2): Same.
21899 (slpeel_update_phi_nodes_for_lcssa): Same.
21900 (vect_do_peeling): Same.
21901 (vect_create_cond_for_alias_checks): Same.
21902 (vect_loop_versioning): Same.
21903 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21904 (vect_inner_phi_in_double_reduction_p): Same.
21905 (vect_analyze_scalar_cycles_1): Same.
21906 (vect_fixup_scalar_cycles_with_patterns): Same.
21907 (vect_get_loop_niters): Same.
21908 (bb_in_loop_p): Same.
21909 (vect_get_max_nscalars_per_iter): Same.
21910 (vect_verify_full_masking): Same.
21911 (vect_compute_single_scalar_iteration_cost): Same.
21912 (vect_analyze_loop_form_1): Same.
21913 (vect_analyze_loop_form): Same.
21914 (vect_active_double_reduction_p): Same.
21915 (vect_analyze_loop_operations): Same.
21916 (neutral_op_for_slp_reduction): Same.
21917 (vect_is_simple_reduction): Same.
21918 (vect_model_reduction_cost): Same.
21919 (get_initial_def_for_reduction): Same.
21920 (get_initial_defs_for_reduction): Same.
21921 (vect_create_epilog_for_reduction): Same.
21922 (vectorize_fold_left_reduction): Same.
21923 (vectorizable_reduction): Same.
21924 (vectorizable_induction): Same.
21925 (vectorizable_live_operation): Same.
21926 (loop_niters_no_overflow): Same.
21927 (vect_get_loop_mask): Same.
21928 (vect_transform_loop_stmt): Same.
21929 (vect_transform_loop): Same.
21930 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21931 (vect_determine_precisions): Same.
21932 (vect_pattern_recog_1): Same.
21933 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21934 * tree-vect-stmts.c (stmt_vectype): Same.
21935 (process_use): Same.
21936 (vect_init_vector_1): Same.
21937 (vect_truncate_gather_scatter_offset): Same.
21938 (get_group_load_store_type): Same.
21939 (vect_build_gather_load_calls): Same.
21940 (vect_get_strided_load_store_ops): Same.
21941 (vectorizable_simd_clone_call): Same.
21942 (vectorizable_store): Same.
21943 (permute_vec_elements): Same.
21944 (vectorizable_load): Same.
21945 (vect_transform_stmt): Same.
21946 (supportable_widening_operation): Same.
21947 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21948 (vec_info::free_stmt_vec_info): Same.
21949 (vect_free_loop_info_assumptions): Same.
21950 (vect_loop_vectorized_call): Same.
21951 (set_uid_loop_bbs): Same.
21952 (vectorize_loops): Same.
21953 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21954 * tree.c (add_tree_to_fld_list): Same.
21955 (fld_type_variant_equal_p): Same.
21956 (fld_decl_context): Same.
21957 (fld_incomplete_type_of): Same.
21958 (free_lang_data_in_binfo): Same.
21959 (need_assembler_name_p): Same.
21960 (find_decls_types_r): Same.
21961 (get_eh_types_for_runtime): Same.
21962 (find_decls_types_in_eh_region): Same.
21963 (find_decls_types_in_node): Same.
21964 (assign_assembler_name_if_needed): Same.
21965 * value-prof.c (stream_out_histogram_value): Same.
21966 * value-prof.h: Same.
21967 * var-tracking.c (use_narrower_mode): Same.
21968 (prepare_call_arguments): Same.
21969 (vt_expand_loc_callback): Same.
21970 (resolve_expansions_pending_recursion): Same.
21971 (vt_expand_loc): Same.
21972 * varasm.c (const_hash_1): Same.
21973 (compare_constant): Same.
21974 (tree_output_constant_def): Same.
21975 (simplify_subtraction): Same.
21976 (get_pool_constant): Same.
21977 (output_constant_pool_2): Same.
21978 (output_constant_pool_1): Same.
21979 (mark_constants_in_pattern): Same.
21980 (mark_constant_pool): Same.
21981 (get_section_anchor): Same.
21982 * vr-values.c (compare_range_with_value): Same.
21983 (vr_values::extract_range_from_phi_node): Same.
21984 * vr-values.h: Same.
21985 * web.c (unionfind_union): Same.
21986 * wide-int.h: Same.
21988 2019-07-09 Martin Sebor <msebor@redhat.com>
21991 * align.h: Change class-key from class to struct and vice versa
21992 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21993 * alloc-pool.h: Same.
21994 * asan.c (shadow_mem_size): Same.
21995 * auto-profile.c: Same.
21996 * basic-block.h: Same.
21998 * cfgexpand.c (set_rtl): Same.
21999 (expand_one_stack_var_at): Same.
22000 * cfghooks.h: Same.
22003 * config/i386/i386.h: Same.
22004 * df-problems.c (df_print_bb_index): Same.
22006 * df.h (df_single_use): Same.
22007 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22008 (layout::annotation_line_showed_range_p): Same.
22009 (get_printed_columns): Same.
22010 (correction::ensure_terminated): Same.
22011 (line_corrections::~line_corrections): Same.
22014 * dump-context.h: Same.
22015 * dumpfile.h: Same.
22016 * dwarf2out.c: Same.
22017 * edit-context.c: Same.
22018 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22020 * function.c (assign_stack_local): Same.
22021 * function.h: Same.
22023 * gcov.c (block_info::block_info): Same.
22024 * genattrtab.c: Same.
22025 * genextract.c: Same.
22026 * genmatch.c (comparison_code_p): Same.
22027 (id_base::id_base): Same.
22028 (decision_tree::print): Same.
22029 * genoutput.c: Same.
22030 * genpreds.c (write_one_predicate_function): Same.
22031 * genrecog.c (validate_pattern): Same.
22032 (find_operand_positions): Same.
22033 (optimize_subroutine_group): Same.
22034 (merge_pattern_transition::merge_pattern_transition): Same.
22035 (merge_pattern_info::merge_pattern_info): Same.
22036 (merge_state_result::merge_state_result): Same.
22037 (merge_into_state): Same.
22038 * gensupport.c: Same.
22039 * gensupport.h: Same.
22040 * ggc-common.c (init_ggc_heuristics): Same.
22041 * ggc-tests.c (test_union): Same.
22042 * gimple-loop-interchange.cc (dump_induction): Same.
22043 * gimple-loop-versioning.cc: Same.
22044 * gimple-match.h (gimple_match_cond::any_else): Same.
22045 * gimple-ssa-backprop.c: Same.
22046 * gimple-ssa-sprintf.c: Same.
22047 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22049 (store_immediate_info::store_immediate_info): Same.
22050 (merged_store_group::apply_stores): Same.
22051 (get_location_for_stmts): Same.
22052 * gimple-ssa-strength-reduction.c: Same.
22053 * gimple-ssa-warn-alloca.c: Same.
22054 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22055 * godump.c (go_type_decl): Same.
22056 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22057 * hash-map.h: Same.
22058 * hash-set-tests.c (test_set_of_strings): Same.
22059 * hsa-brig.c: Same.
22060 * hsa-common.h: Same.
22061 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22062 * input.c (assert_loceq): Same.
22065 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22066 * ipa-fnsummary.h: Same.
22067 * ipa-inline.h: Same.
22068 * ipa-prop.h: Same.
22069 * ipa-split.c (visit_bb): Same.
22070 * ira-int.h (minmax_set_iter_next): Same.
22071 * loop-invariant.c: Same.
22073 * lra-eliminations.c: Same.
22075 * lra-lives.c (mark_regno_dead): Same.
22076 * lra-remat.c: Same.
22077 * lra-spills.c: Same.
22078 * lto-streamer.h: Same.
22079 * mem-stats.h: Same.
22080 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22081 * omp-low.c (omp_clause_aligned_alignment): Same.
22082 * optabs-query.h (get_vcond_eq_icode): Same.
22084 * opts.c (wrap_help): Same.
22085 * poly-int.h: Same.
22086 * predict.c (predict_paths_leading_to_edge): Same.
22087 * pretty-print.h: Same.
22088 * profile-count.h: Same.
22090 * read-rtl-function.c: Same.
22093 * regrename.c: Same.
22094 * regrename.h: Same.
22096 * rtl-iter.h: Same.
22097 * rtl.h (costs_add_n_insns): Same.
22099 * sched-int.h: Same.
22100 * sel-sched-ir.h: Same.
22101 * selftest.h: Same.
22102 * sese.h (vec_find): Same.
22104 * target-globals.h: Same.
22105 * tree-affine.c (aff_combination_find_elt): Same.
22106 * tree-affine.h: Same.
22107 * tree-data-ref.h: Same.
22108 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22109 * tree-predcom.c: Same.
22110 * tree-scalar-evolution.c (find_var_scev_info): Same.
22111 * tree-ssa-alias.h: Same.
22112 * tree-ssa-ccp.c: Same.
22113 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22114 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22115 (rewrite_mem_refs): Same.
22116 (execute_sm_if_changed): Same.
22117 (hoist_memory_references): Same.
22118 * tree-ssa-loop-ivopts.c (operator<=): Same.
22119 * tree-ssa-loop.h: Same.
22120 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22121 * tree-ssa-structalias.c: Same.
22122 * tree-switch-conversion.h (cluster::cluster): Same.
22123 (simple_cluster::simple_cluster): Same.
22124 * tree-vect-patterns.c (type_conversion_p): Same.
22125 * tree-vectorizer.c (dump_stmt_cost): Same.
22126 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22127 * tree.c (protected_set_expr_location): Same.
22128 * tree.h (desired_pro_or_demotion_p): Same.
22129 (fndecl_built_in_p): Same.
22130 * unique-ptr-tests.cc: Same.
22131 * var-tracking.c (delete_variable_part): Same.
22132 * varasm.c (assemble_real): Same.
22133 (tree_output_constant_def): Same.
22135 * wide-int-bitmask.h: Same.
22136 * wide-int.h (decompose): Same.
22138 2019-07-09 Richard Biener <rguenther@suse.de>
22140 PR tree-optimization/91114
22141 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22142 find a vector type isn't fatal.
22144 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22146 * config/aarch64/aarch64-simd.md
22147 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22148 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22149 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22150 (*aarch64_crypto_aese_fused,
22151 *aarch64_crypto_aesd_fused): Update to new definition.
22152 * config/aarch64/aarch64.c
22153 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22155 2019-07-09 Richard Biener <rguenther@suse.de>
22157 * gimple-match.h (gimple_match_op::resimplify): New.
22158 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22159 gimple_resimplify4, gimple_resimplify5): Remove.
22160 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22161 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22163 (gimple_match_op::resimplify): New.
22164 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22165 according to availability. Use gimple_match_op::resimplify.
22167 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22169 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22171 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22173 * config/arm/crypto.md:
22174 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22175 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22176 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22177 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22179 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22180 * config/arm/aarch-common-protos.h
22181 (aarch_crypto_can_dual_issue): Remove.
22182 * config/arm/aarch-common.c
22183 (aarch_crypto_can_dual_issue): Likewise.
22184 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22185 * config/arm/cortex-a53.md: Likewise.
22186 * config/arm/cortex-a57.md: Likewise.
22187 * config/arm/iterators.md:
22188 (CRYPTO_BINARY): Redefine.
22189 (CRYPTO_UNARY): Removed.
22190 (CRYPTO_AES, CRYPTO_AESMC): New.
22192 2019-07-09 Richard Biener <rguenther@suse.de>
22194 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22195 (vn_reference_lookup_3): If the main ref has no access path recorded
22196 but orig_ref has use it to do access-path based disambiguation.
22197 (vn_reference_lookup_pieces): Adjust.
22198 (vn_reference_lookup): Pass down original ref if we valueized.
22200 2019-07-09 Martin Liska <mliska@suse.cz>
22202 * doc/extend.texi: Document influence on loop
22205 2019-07-09 Martin Liska <mliska@suse.cz>
22207 * lto-compress.c (lto_normalized_zstd_level): Do not use
22208 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22209 of libzstd. One can use 0 as a default compression level.
22211 2019-07-09 Martin Liska <mliska@suse.cz>
22213 * doc/invoke.texi: Add link from -fprofile-dir option.
22214 Use better wording for 'gcno filename'.
22216 2019-07-08 Martin Sebor <msebor@redhat.com>
22218 PR middle-end/71924
22219 PR middle-end/90549
22220 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22222 (args_loc_t): New type.
22223 (args_loc_t, locmap_t): same.
22224 (diag_returned_locals): New function.
22225 (is_addr_local): Same.
22226 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22227 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22228 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22230 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22232 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22233 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22234 and casts in offset when different, both through gimple stmts
22235 and through trees. Rewritten using loops to minimize code duplication
22238 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22240 * emit-rtl.c (set_insn_locations): New function moved from...
22241 * function.c (set_insn_locations): ...here.
22242 * ira-emit.c (emit_moves): Propagate location of the first instruction
22243 to the inserted move instructions.
22244 * reg-stack.c (compensate_edge): Set the location if the sequence is
22245 inserted on the edge.
22246 * rtl.h (set_insn_locations): Declare.
22248 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22250 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22251 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22254 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22256 PR rtl-optimization/88233
22257 * common.opt (fsplit-wide-types-early): New option.
22258 * common/config/rs6000/rs6000-common.c
22259 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22261 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22262 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22263 flag_split_wide_types_early.
22264 (pass_data_lower_subreg3): New.
22265 (pass_lower_subreg3): New.
22266 (make_pass_lower_subreg3): New.
22267 * passes.def (pass_lower_subreg2): Move after the loop passes.
22268 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22269 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22270 the pass pipeline; its previous place is taken by ...
22271 (make_pass_lower_subreg3): ... this.
22273 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22275 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22276 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22278 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22280 * config/s390/constraints.md: Add new jsc constraint.
22281 * config/s390/predicates.md: New predicates.
22282 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22283 * config/s390/s390.c (s390_valid_shift_count): New function.
22284 (print_shift_count_operand): Use s390_valid_shift_count.
22285 (print_operand): Likewise.
22286 * config/s390/s390.md: Use new predicate.
22287 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22288 * config/s390/vector.md: Use new predicate.
22290 2019-07-08 Andrew Waterman <andrew@sifive.com>
22291 Jim Wilson <jimw@sifive.com>
22293 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22294 bitsize instead of BITS_PER_WORD.
22296 2019-07-08 Martin Liska <mliska@suse.cz>
22298 * collect2.c (defined): Revert to before r254460.
22299 (scan_prog_file): Revert to before r254460.
22301 2019-07-08 Richard Biener <rguenther@suse.de>
22303 PR tree-optimization/83518
22304 * tree-ssa-sccvn.c: Include splay-tree.h.
22305 (struct pd_range, struct pd_data): New.
22306 (struct vn_walk_cb_data): Add data to track partial definitions.
22307 (vn_walk_cb_data::~vn_walk_cb_data): New.
22308 (vn_walk_cb_data::push_partial_def): New.
22309 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22310 (vn_reference_lookup_2): When partial defs are registered give up.
22311 (vn_reference_lookup_3): Track partial defs for memset and
22312 constructor zeroing and for defs from constants.
22314 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22316 * doc/install.texi (bootstrap-Og): Document.
22318 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22320 * config/riscv/pic.md (*local_pic_load_s<mode>)
22321 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22322 referenced by <mode>, giving...
22323 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22324 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22325 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22326 use <X:MODE> for the mode attribute.
22328 2019-07-07 Jeff Law <law@redhat.com>
22330 PR tree-optimization/91090
22331 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22332 in handling of ranges to simplify switch statements.
22334 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22336 * config/darwin.c (darwin_override_options): Make a final check on PIC
22339 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22341 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22342 on for kernel code.
22344 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22347 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22348 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22349 instead of matching them to "l" output operands.
22351 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22353 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22354 and check whether addr.reg is nonnull before using it.
22356 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22358 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22359 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22360 variable(s). For conditional lastprivate look through outer
22361 GIMPLE_OMP_SCAN context.
22362 (lower_omp_1): For conditional lastprivate look through outer
22363 GIMPLE_OMP_SCAN context.
22365 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22366 member to combined_into_simd_safelen1.
22367 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22368 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22369 clauses if ctx->combined_into_simd_safelen1 put statements after the
22370 predicate conditionalized block rather than into it.
22372 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22374 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22376 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22377 Make the choice of <mode> explicit, giving...
22378 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22380 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22382 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22383 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22385 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22386 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22387 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22388 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22389 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22390 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22391 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22392 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22393 (*avx512f_scatterdi<mode>): Likewise.
22394 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22396 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22398 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22399 specify the mode iterator referenced by <mode>, giving...
22400 (*push1_h8300hs_<QHI:mode>): ...this.
22402 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22404 * config/gcn/gcn-valu.md
22405 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22406 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22407 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22408 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22409 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22410 but using the _exec comparison patterns.
22411 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22412 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22413 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22414 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22415 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22416 but using the _exec comparison patterns.
22418 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22420 * config/arm/sync.md
22421 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22422 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22423 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22424 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22425 <SIDI:cas_cmp_str>.
22427 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22429 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22430 (maybe_lookup_ctx): Add forward declaration.
22431 (omp_find_scan): Likewise. Walk into body of simd if composited
22432 with worksharing loop.
22433 (scan_omp_simd_scan): New function.
22434 (scan_omp_1_stmt): Call it.
22435 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22436 ctx->for_simd_scan_phase.
22437 (lower_rec_input_clauses): Do much less work for inscan reductions
22438 in ctx->for_simd_scan_phase is_simd regions.
22439 (lower_omp_scan): Set is_simd also on simd constructs composited
22440 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22441 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22442 emit their body after in simd constructs composited with worksharing
22444 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22446 * omp-low.c (omp_find_scan): Make static.
22447 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22448 the second loop, var2 represents the first partial sum and so needs
22449 to go before rprivb[ivar].
22451 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22453 * config/rs6000/rs6000-logue.c: Remove unused code.
22455 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22457 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22459 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22462 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22463 check with a frame laid out check.
22465 2019-07-05 Richard Biener <rguenther@suse.de>
22467 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22468 when comparing against a store with possibly the same value.
22470 2019-07-05 Richard Biener <rguenther@suse.de>
22472 PR tree-optimization/91091
22473 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22474 (walk_non_aliased_vuses): Likewise.
22475 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22476 (get_continuation_for_phi): New tbaa_p parameter and pass
22478 (walk_non_aliased_vuses): Likewise.
22479 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22480 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22481 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22483 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22484 (adjust_offsets_for_equal_base_address): New function.
22485 (vn_reference_lookup_3): Use it to catch more base equivalences.
22486 Handle and pass down tbaa_p flag.
22487 (vn_reference_lookup_pieces): Adjust.
22488 (vn_reference_lookup): Remove alias-set altering, instead pass
22489 down false as tbaa_p.
22491 2019-07-05 Richard Biener <rguenther@suse.de>
22493 PR tree-optimization/91091
22494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22495 accesses can happen with -fno-strict-aliasing.
22497 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22499 * tree-ssa-alias.c (alias_stats): Add
22500 nonoverlapping_component_refs_since_match_p_must_overlap.
22501 (dump_alias_stats): Print it.
22502 (nonoverlapping_component_refs_since_match_p): Add early exit.
22503 (nonoverlapping_component_refs_p): Do not account early exit.
22505 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22507 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22508 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22509 (emit_eh_dispatch): Delete.
22510 (lower_catch): Emit the eh_dispatch manually and set the location of
22511 the first catch statement onto it.
22512 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22513 (lower_eh_dispatch): Propagate location.
22514 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22515 (eliminate_build): Likewise.
22517 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22519 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22520 phi nodes if possible.
22521 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22522 location info on the newly created statement.
22523 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22524 newly created increment if needed.
22526 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22528 PR middle-end/78884
22529 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22530 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22531 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22532 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22533 ctx->add_safelen1 is set.
22535 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22536 GOMP_loop_start at the start of second worksharing loop in a scan.
22537 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22538 worksharing loop in a scan even if there are conditional lastprivates,
22539 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22541 2019-07-04 Jan Hubicka <jh@suse.cz>
22543 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22544 Fix check for match in the ref walk.
22546 2019-07-04 Martin Liska <mliska@suse.cz>
22548 * tree-ssa-loop-niter.c
22549 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22550 (estimate_numbers_of_iterations):
22551 Support __builtin_expect_with_probability for analysis
22552 of # of loop iterations.
22554 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22556 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22557 * except.c: Likewise.
22558 * expr.c (expand_expr_real_1): Reject it.
22559 * gimplify.c (gimplify_expr): Gimplify it, within
22561 * tree-dump.c (dequeue_and_dump): Dump it.
22562 * tree-pretty-print.c (dump_generic_node): Likewise.
22563 * tree.c (block_may_fallthru): Handle it.
22564 * tree.def (EH_ELSE_EXPR): Introduce it.
22565 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22566 with GIMPLE_EH_ELSE as try/finally/else.
22568 2019-07-04 Richard Biener <rguenther@suse.de>
22571 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22572 parameter whether to disable GC collection.
22573 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22575 (execute_all_ipa_transforms): Likewise and pass it down.
22576 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22577 collection from applying IPA transforms.
22578 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22579 from applying IPA transforms.
22581 2019-07-04 Richard Biener <rguenther@suse.de>
22583 PR tree-optimization/90911
22584 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22585 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22586 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22587 scalar_loop_scaling.
22588 (vect_transform_loop): Scale scalar loop profile if needed.
22589 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22590 the loop copy from if-conversion adjust edge probabilities
22591 and scale the vectorized loop body profile, queue the scalar
22592 profile for updating after peeling.
22594 2019-07-04 Jan Hubicka <jh@suse.cz>
22596 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22597 parameters; return early for must-alias.
22598 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22599 outer types match, try nonoverlapping_component_refs
22600 if must-alias is not obvious.
22601 (indirect_refs_may_alias_p): Likewise.
22602 (refs_may_alias_p_2): Likewise.
22604 2019-07-04 Richard Biener <rguenther@suse.de>
22606 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22608 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22610 (struct vn_walk_cb_data): New callback data struct.
22611 (vn_reference_lookup_2): Adjust.
22612 (vn_reference_lookup_3): Likewise.
22613 (vn_reference_lookup_pieces): Likewise.
22614 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22615 (visit_reference_op_load): Adjust.
22617 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22619 PR tree-optimization/91063
22620 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22621 stmt from stmts sequence before calling vect_init_vector_1.
22624 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22627 * fwprop.c (reg_single_def_p): New function.
22628 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22629 (forward_propagate_into): New parameter reg_prop_only
22630 with default value false.
22631 Propagate def's src into loop only if SET_SRC and SET_DEST
22632 of def_set have single definitions.
22633 Likewise if reg_prop_only is set to true.
22634 (fwprop): New param fwprop_addr_p.
22635 Integrate fwprop_addr into fwprop.
22636 (fwprop_addr): Remove.
22637 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22639 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22640 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22641 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22643 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22645 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22646 in worksharing loop scans.
22648 PR tree-optimization/91074
22649 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22652 PR rtl-optimization/90756
22653 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22656 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22658 * config/aarch64/aarch64.md: Remove redundant constraints from
22659 define_expand but keep some patterns untouched if they are
22660 specially selected by TARGET_SECONDARY_RELOAD hook.
22661 * config/aarch64/aarch64-sve.md: Likewise.
22662 * config/aarch64/atomics.md: Remove redundant constraints from
22664 * config/aarch64/aarch64-simd.md: Likewise.
22666 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22668 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22669 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22670 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22672 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22675 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22677 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22678 (STARTFILE_SPEC): Split crt3 into a separate spec.
22679 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22680 (DARWIN_CRT2_SPEC): New.
22681 (DARWIN_CRT3_SPEC): New.
22682 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22683 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22684 (DARWIN_CRT3_SPEC): New.
22686 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22688 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22689 Change the RTL attribute "length" from "4" to "*" to allow the
22690 length attribute to be adjusted automatically for prefixed load,
22691 store, and add immediate instructions.
22692 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22694 (extendsi<mode>2, EXTSI iterator): Likewise.
22695 (movsi_internal1): Likewise.
22696 (movsi_from_sf): Likewise.
22697 (movdi_from_sf_zero_ext): Likewise.
22698 (mov<mode>_internal): Likewise.
22699 (movcc_internal1, QHI iterator): Likewise.
22700 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22701 (movsf_from_si): Likewise.
22702 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22703 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22704 (mov<mode>, FMOVE128 iterator): Likewise.
22705 (movdi_internal64): Likewise.
22706 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22708 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22709 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22710 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22711 (vsx_splat_v4sf): Likewise.
22713 2019-07-03 Mark Wielaard <mark@klomp.org>
22716 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22717 DW_AT_addr_base if there is actually a .debug_addr section with
22719 (output_addr_table): Add DWARF5 table header generation here after
22720 checking there are actually any addresses from...
22721 (dwarf2out_finish): ...here.
22723 2019-07-03 Richard Biener <rguenther@suse.de>
22725 PR middle-end/91069
22726 * match.pd (vec_perm -> bit_insert): Fix element read from
22729 2019-07-03 Martin Liska <mliska@suse.cz>
22731 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22732 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22734 * generic-match-head.c: Include dbgcnt.h.
22735 * gimple-match-head.c: Likewise.
22737 2019-07-03 Martin Liska <mliska@suse.cz>
22739 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22740 (GCOV_COUNTER_V_TOPN): New.
22741 (GCOV_COUNTER_V_INDIR): Use _topn.
22742 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22743 (GCOV_TOPN_VALUES): New.
22744 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22745 (GCOV_TOPN_VALUES_COUNTERS): New.
22746 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22748 (gimple_init_gcov_profiler): Rename variables from one_value
22750 (gimple_gen_one_value_profiler): Remove.
22751 (gimple_gen_topn_values_profiler): New function.
22752 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22753 names instead of SINGLE_VALUE.
22754 (stream_out_histogram_value): Likewise.
22755 (stream_in_histogram_value): Likewise.
22756 (get_most_common_single_value): Likewise.
22757 (gimple_divmod_fixed_value_transform): Likewise.
22758 (gimple_stringops_transform): Likewise.
22759 (gimple_divmod_values_to_profile): Likewise.
22760 (gimple_stringops_values_to_profile): Likewise.
22761 (gimple_find_values_to_profile): Likewise.
22762 * value-prof.h (enum hist_type): Rename to TOPN.
22763 (gimple_gen_one_value_profiler): Remove.
22764 (gimple_gen_topn_values_profiler): New.
22766 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22768 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22769 if it has the DW_AT_data_member_location attribute.
22771 2019-07-03 Richard Biener <rguenther@suse.de>
22773 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22776 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22778 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22779 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22780 (tlsdesc_small_sve_<mode>): Likewise.
22782 2019-07-03 Martin Liska <mliska@suse.cz>
22784 * Makefile.in: Define ZSTD_LIB.
22785 * common.opt: Adjust compression level
22786 to support also zstd levels.
22787 * config.in: Regenerate.
22788 * configure: Likewise.
22789 * configure.ac: Add --with-zstd and --with-zstd-include options
22791 * doc/install.texi: Mention zstd dependency.
22792 * gcc.c: Print supported LTO compression algorithms.
22793 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22794 (lto_compression_zstd): Likewise.
22795 (lto_uncompression_zstd): Likewise.
22796 (lto_end_compression): Dispatch in between zlib and zstd.
22797 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22798 (lto_uncompression_zlib): Make it static.
22799 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22800 * lto-section-in.c (lto_get_section_data): Pass info
22801 about used compression.
22802 * lto-streamer-out.c: By default use zstd when possible.
22803 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22804 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22806 2019-07-03 Martin Liska <mliska@suse.cz>
22808 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22809 * lto-section-out.c (lto_destroy_simple_output_block): Never
22810 compress LTO_section_lto section.
22811 * lto-streamer-out.c (produce_asm): Do not set major_version
22813 (lto_output_toplevel_asms): Likewise.
22814 (produce_lto_section): New function.
22815 (lto_output): Call produce_lto_section.
22816 (lto_write_mode_table): Do not set major_version and
22818 (produce_asm_for_decls): Likewise.
22819 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22821 (struct lto_header): Remove.
22822 (struct lto_section): New struct.
22823 (struct lto_simple_header): Do not inherit from lto_header.
22824 (struct lto_file_decl_data): Add lto_section_header field.
22826 2019-07-03 Martin Liska <mliska@suse.cz>
22828 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22830 * reg-stack.c (check_asm_stack_operands): Likewise.
22831 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22832 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22833 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22834 force_expand_binop.
22836 2019-07-03 Martin Liska <mliska@suse.cz>
22838 PR tree-optimization/90892
22839 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22840 in string constants.
22842 2019-07-03 Martin Liska <mliska@suse.cz>
22844 PR middle-end/90899
22845 * multiple_target.c (create_dispatcher_calls): Add to comdat
22846 group only if set for ifunc.
22848 2019-07-03 Martin Liska <mliska@suse.cz>
22851 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22852 Define local_object_name in outer scope in order to handle
22853 use-after-scope issue.
22855 2019-07-03 Martin Liska <mliska@suse.cz>
22857 * common.opt: Add fprofile-note.
22858 * coverage.c (coverage_init): Append the option
22860 * doc/invoke.texi: Document -fprofile-note.
22862 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22864 PR tree-optimization/91033
22865 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22866 vect_analyze_data_refs): Add bool * arguments.
22867 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22868 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22869 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22870 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22871 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22872 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22873 vect_analyze_data_refs caller.
22875 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22877 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22878 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22879 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22880 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22881 OMP_CLAUSE__SCANTEMP_ entry.
22882 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22883 * tree-pretty-print.c (dump_omp_clause): Likewise.
22884 * tree-nested.c (convert_nonlocal_omp_clauses,
22885 convert_local_omp_clauses): Likewise.
22886 * omp-general.h (struct omp_for_data): Add have_scantemp and
22887 have_nonctrl_scantemp members.
22888 * omp-general.c (omp_extract_for_data): Initialize them.
22889 * omp-low.c (struct omp_context): Add scan_exclusive member.
22890 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22891 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22892 ctx->scan_exclusive.
22893 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22894 of !ctx->scan_inclusive.
22895 (lower_rec_input_clauses): Simplify gimplification of dtors using
22896 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22897 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22898 loops. Don't add barrier for reduction_omp_orig_ref if
22899 ctx->scan_??xclusive.
22900 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22901 (lower_omp_scan): Use ctx->scan_exclusive instead
22902 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22903 reductions. Use new_vard != new_var instead of repeated
22904 omp_is_reference calls.
22905 (omp_find_scan, lower_omp_for_scan): New functions.
22906 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22908 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22909 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22910 and fd->have_scantemp.
22912 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22913 on worksharing loop propagate it as shared clause to containing
22916 * omp-expand.c (expand_omp_for_static_nochunk,
22917 expand_omp_for_static_chunk): For nowait worksharing loop with
22918 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22921 2019-07-02 qing zhao <qing.zhao@oracle.com>
22923 PR preprocessor/90581
22924 * doc/cppopts.texi: Add document for -fmax-include-depth.
22925 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22927 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22929 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22930 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22931 (mmx_packssdw): Ditto.
22932 (mmx_punpckhbw): Ditto.
22933 (mmx_punpcklbw): Ditto.
22934 (mmx_punpckhwd): Ditto.
22935 (mmx_punpcklwd): Ditto.
22936 (mmx_punpckhdq): Ditto.
22937 (mmx_punpckldq): Ditto.
22938 (*vec_dupv4hi): Ditto.
22939 (*vec_dupv2si): Ditto.
22940 (mmx_pmovmskb): Ditto.
22941 * config/i386/sse.md (sse_cvtpi2ps): Use
22942 TARGET_SSE2 && SSE_REG_P in split condition.
22943 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22944 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22945 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22946 (ssse3_pshufbv8qi3): Ditto.
22947 (ssse3_palignrdi): Ditto.
22949 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22951 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22952 with inlined save and restore.
22954 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22956 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22957 to be inserted on single successor edge of the entry block. Then call
22958 commit_edge_insertions instead of inserting the instructions manually.
22959 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22960 RTL expansion and rebuild jump labels chain.
22962 2019-07-02 Richard Biener <rguenther@suse.de>
22964 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22966 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22968 * tree.c (build_common_tree_nodes): Initialize them.
22969 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22970 Make declarations comments.
22971 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22972 chrec_known): Remove definitions.
22973 (initialize_scalar_evolutions_analyzer): Remove.
22974 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22975 * tree-streamer.c (preload_common_nodes): Do not preload
22976 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22978 2019-07-02 Jan Hubicka <jh@suse.cz>
22980 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22983 2019-07-02 Jan Hubicka <jh@suse.cz>
22985 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22987 (nonoverlapping_component_refs_since_match_p): ... this one;
22988 handle also non-decl bases; return -1 if search gave up.
22989 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22990 nonoverlapping_component_refs_of_decl_p_no_alias to
22991 nonoverlapping_component_refs_since_match_p_may_alias,
22992 nonoverlapping_component_refs_since_match_p_no_alias.
22993 (dump_alias_stats): Update dumping.
22994 (aliasing_matching_component_refs_p): Break out from ...;
22995 dispatch to nonoverlapping_component_refs_for_decl_p
22996 and nonoverlapping_component_refs_since_match_p.
22997 (aliasing_component_refs_p): ... here; call
22998 nonoverlapping_component_refs_p in scenarios where we can not
22999 precisely determine base match.
23000 (decl_refs_may_alias_p): Use
23001 nonoverlapping_component_refs_since_match_p.
23002 (indirect_ref_may_alias_decl_p): Do not call
23003 nonoverlapping_component_refs_p.
23004 (indirect_refs_may_alias_p): Likewise.
23006 2019-07-02 Jan Hubicka <jh@suse.cz>
23008 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23009 to clobber of return value.
23011 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23013 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23014 for is_neon_type instructions that have not already been categorized.
23016 2019-07-02 Richard Biener <rguenther@suse.de>
23018 PR tree-optimization/58483
23019 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23020 for MEM_REF base hashing.
23021 (equal_mem_array_ref_p): Likewise for base comparison.
23023 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23025 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23026 parameterized name.
23027 (signbit<mode>2): Use that name. Simplify.
23029 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23031 PR middle-end/66726
23032 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23033 Tune heuristic from PR71016 to allow MIN / MAX.
23035 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23037 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23038 parameterized name.
23039 (abs<mode>2): Use that name. Simplify.
23041 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23043 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23044 parameterized name.
23045 (neg<mode>2): Use that name. Simplify.
23047 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23049 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23051 (abs<mode>2): Use that name. Simplify.
23053 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23055 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23057 (neg<mode>2): Use that name. Simplify.
23059 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23061 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23062 ("enabled" attribute): Handle sse_noavx isa attribute.
23063 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23064 Use TARGET_SSE && SSE_REGNO_P in split condition.
23065 (*vec_dupv2sf): Ditto.
23067 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23069 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23071 (floatsi<mode>2): Use that name. Simplify.
23073 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23075 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23076 parameterized name.
23077 (extenddf<mode>2_vsx): Make this a parameterized name.
23078 (extenddf<mode>2): Use those names. Simplify.
23080 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23082 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23084 (eh_return): Use that name. Simplify.
23086 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23088 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23089 (doloop_end): Use that name. Simplify.
23091 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23093 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23094 parameterized name.
23095 (indirect_jump): Use that name. Simplify.
23097 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23099 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23100 parameterized name.
23101 (abs<mode>2): Use that name. Simplify.
23103 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23105 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23106 parameterized name.
23107 (fix_trunc<mode>si2): Use that name. Simplify.
23109 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23111 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23112 (allocate_stack): Use that name. Simplify.
23114 2019-07-01 Martin Sebor <msebor@redhat.com>
23116 PR middle-end/90923
23117 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23118 (hash_map::get_or_insert): Same. Reformat comment.
23119 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23120 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23121 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23122 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23123 (hash_table::hash_table (const hash_table&)): Use copy ctor
23124 instead of assignment to copy elements.
23126 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23127 John David Anglin <danglin@gcc.gnu.org>
23130 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23131 using saved frame pointer.
23133 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23135 PR middle-end/64242
23136 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23137 Add frame clobber and schedule blockage.
23139 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23141 * doc/invoke.texi (Link Options): Further editorial changes to
23142 -flinker-output docs.
23144 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23146 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23147 Load both operands of a PLUS into registers separately.
23149 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23151 * config/s390/vector.md: Fix shift count operand printing.
23153 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23155 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23157 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23159 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23160 Use recog_data to test for an output operand.
23162 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23164 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23165 exclude any others that are disparaged or that are bound to need
23167 (ira_get_dup_out_num): Expand comment.
23169 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23171 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23172 constraint string for each operand/alternative combo. Only handle
23173 '%' at the start of constraint strings, and look for it outside
23176 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23178 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23179 alternative_mask instead of HARD_REG_SET to represent a
23180 bitmask of alternatives.
23181 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23182 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23184 2019-07-01 Martin Liska <mliska@suse.cz>
23186 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23187 use () for a constructor call.
23188 (test_applying_fixits_line_out_of_range): Likewise.
23189 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23191 (free_page): Likewise.
23193 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23195 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23196 parameter names to match usage (no functional change).
23197 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23199 2019-07-01 Richard Biener <rguenther@suse.de>
23201 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23203 (pass_fre::execute): Honor it.
23204 * passes.def: Adjust pass_fre invocations to allow iterating,
23205 add non-iterating pass_fre before late threading/dom.
23207 2019-07-01 Richard Biener <rguenther@suse.de>
23209 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23210 TARGET_MEM_REF handling to also handle address-taken ones.
23212 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23214 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23215 hardware attributes): Document avx512vp2intersect.
23217 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23219 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23220 (abs<mode>2): New expander.
23221 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23222 Use CODE_FOR_ssse3_absv8qi2.
23223 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23224 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23226 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23228 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23229 to sse, sse_noavx and avx. Update all uses.
23231 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23233 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23234 (*mmx_<plusminus_insn><mode>3): Ditto.
23235 (*mmx_mulv4hi3"): Ditto.
23236 (*mmx_smulv4hi3_highpart): Ditto.
23237 (*mmx_umulv4hi3_highpart): Ditto.
23238 (*mmx_pmaddwd): Ditto.
23239 (*sse2_umulv1siv1di3): Ditto.
23240 (*mmx_<code>v4hi3): Ditto.
23241 (*mmx_<code>v8qi3): Ditto.
23242 (mmx_ashr<mode>3): Ditto.
23243 ("mmx_<shift_insn><mode>3): Ditto.
23244 (*mmx_eq<mode>3): Ditto.
23245 (mmx_gt<mode>3): Ditto.
23246 (mmx_andnot<mode>3): Ditto.
23247 (*mmx_<code><mode>3): Ditto.
23248 (*mmx_pinsrw): Ditto.
23249 (*mmx_pextrw): Ditto.
23250 (mmx_pshufw_1): Ditto.
23251 (*mmx_uavgv8qi3): Ditto.
23252 (*mmx_uavgv4hi3): Ditto.
23253 ("mmx_psadbw): Ditto.
23254 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23255 (sse_cvttps2pi): Ditto.
23256 (ssse3_pmaddubsw): Ditto.
23257 (*ssse3_pmulhrswv4hi3): Ditto.
23258 (ssse3_psign<mode>3): Ditto.
23260 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23262 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23263 adjustment for bit-fields to all aggregate types.
23265 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23267 * config/rs6000/predicates.md (pcrel_address): Use
23268 SYMBOL_REF_LOCAL_P to determine if a label is local.
23269 (pcrel_external_address): New predicate.
23270 (non_prefixed_mem_operand): Delete, predicate not used.
23271 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23272 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23274 (SYMBOL_REF_PCREL_P): Likewise.
23277 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23279 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23280 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23281 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23283 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23285 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23286 override on extra_headers.
23288 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23290 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23291 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23293 (darwin_driver_init): Likewise.
23295 2019-06-28 Jan Beulich <jbeulich@suse.com>
23297 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23298 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23299 Eliminate redundant alternative.
23301 2019-06-28 Jan Beulich <jbeulich@suse.com>
23303 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23304 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23305 Use vector_operand.
23307 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23309 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23310 having a lower cost regardless of the speed option.
23312 2019-06-28 Jan Beulich <jbeulich@suse.com>
23314 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23315 vector_operand plus, on both alternatives, "Bm" constraint.
23317 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23319 * config/arm/arm.md: Remove redundant constraints from
23320 define_expand but leave reload_inm and reload_outm patterns
23321 untouched since they need special constraints to work.
23322 * config/arm/arm-fixed.md: Remove redundant constraints from
23324 * config/arm/iwmmxt.md: Likewise.
23325 * config/arm/neon.md: Likewise.
23326 * config/arm/sync.md: Likewise.
23327 * config/arm/thumb1.md: Likewise.
23328 * config/arm/vec-common.md: Likewise.
23330 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23332 * doc/install.texi: Document --disable-tm-clone-registry.
23334 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23337 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23340 PR tree-optimization/91010
23341 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23342 return true. Otherwise, don't call operand_equal_p if offset1 or
23343 offset2 is NULL and just return false.
23345 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23347 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23348 user-specified float mode choice for kernel mode code.
23350 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23352 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23355 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23357 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23358 use longcall for 64b code.
23360 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23362 * builtins.c (get_memory_rtx): Fix comment.
23363 * optabs.def (movmem_optab): Change to cpymem_optab.
23364 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23365 (emit_block_move_hints): Change movmem to cpymem.
23366 * defaults.h: Change movmem to cpymem.
23367 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23368 (default_use_by_pieces_infrastructure_p): Ditto.
23369 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23370 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23372 * config/aarch64/aarch64.h: Change movmem to cpymem.
23373 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23374 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23375 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23377 * config/arc/arc-protos.h: Change movmem to cpymem.
23378 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23379 * config/arc/arc.h: Change movmem to cpymem in comment.
23380 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23381 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23382 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23383 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23384 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23385 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23386 * config/avr/avr-protos.h: Change movmem to cpymem.
23387 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23388 avr_out_movmem): Change movmem to cpymem.
23389 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23390 Change movmem to cpymem.
23391 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23392 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23393 Change movmem to cpymem.
23394 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23395 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23396 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23397 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23398 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23399 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23400 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23401 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23402 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23403 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23404 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23405 expand_small_cpymem_or_setmem,
23406 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23407 expand_set_or_cpymem_constant_prologue,
23408 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23409 * config/i386/i386-protos.h: Change movmem to cpymem.
23410 * config/i386/i386.h: Change movmem to cpymem in comment.
23411 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23412 (setmem<mode>): Change expansion function name.
23413 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23414 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23415 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23416 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23417 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23418 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23419 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23421 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23422 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23423 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23424 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23425 Change movmem to cpymem.
23426 * config/mips/mips.h: Change movmem to cpymem.
23427 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23428 * config/nds32/nds32-memory-manipulation.c
23429 (nds32_expand_movmemsi_loop_unknown_size,
23430 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23431 nds32_expand_movmemsi_unroll,
23432 nds32_expand_movmemsi): Change movmem to cpymem.
23433 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23434 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23435 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23436 (pa_adjust_insn_length): Change call to compute_movmem_length.
23437 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23438 movmemdi, movmemdi_prereload,
23439 movmemdi_postreload): Change movmem to cpymem.
23440 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23441 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23442 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23443 * config/riscv/riscv.h: Change movmem to cpymem.
23444 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23445 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23446 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23448 * config/s390/s390-protos.h: Change movmem to cpymem.
23449 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23450 s390_expand_insv): Change movmem to cpymem.
23451 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23452 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23453 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23454 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23455 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23456 for nonexistent function.
23457 * config/vax/vax.h: Change movmem to cpymem in comment.
23458 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23459 * config/visium/visium.h: Change movmem to cpymem in comment.
23460 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23461 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23462 * doc/md.texi: Change movmem to cpymem and update description to match.
23463 * doc/rtl.texi: Change movmem to cpymem.
23464 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23465 * doc/tm.texi: Regenerate.
23467 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23469 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23470 -fvariable-expansion-in-unroller by default.
23471 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23474 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23477 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23478 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23480 * config.gcc(rs6000-*-*): Define target_gtfiles.
23482 2019-06-27 Jan Hubicka <jh@suse.cz>
23484 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23485 (add_type_duplicate): When odr hash is not allocated, to nothing.
23486 (odr_based_tbaa_p): New function.
23487 (set_type_canonical_for_odr_type): New function.
23488 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23489 set_type_canonical_for_odr_type): New.
23490 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23491 ODR based TBAA are not equivalent to non-ODR types.
23493 2019-06-27 Martin Liska <mliska@suse.cz>
23495 PR tree-optimization/90974
23496 PR rtl-optimization/90975
23497 PR rtl-optimization/90976
23499 PR tree-optimization/91017
23500 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23502 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23503 initial commit of IRA.
23504 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23506 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23507 Remove unused mode1.
23508 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23511 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23514 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23515 instead of register_operand for operands[1], add m to its constraints
23516 if operands[2] uses "C" constraint. Ensure in condition that if
23517 operands[2] is not 0, then operands[1] is not a MEM. For last two
23518 alternatives, use unaligned loads instead of aligned if operands[1] is
23519 misaligned_operand.
23521 2019-06-27 Martin Liska <mliska@suse.cz>
23523 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23525 * bt-load.c (move_btr_def): Likewise.
23526 * builtins.c (expand_builtin_apply_args_1): Likewise.
23527 (expand_builtin_apply): Likewise.
23528 * cfgexpand.c (expand_asm_stmt): Likewise.
23529 (construct_init_block): Likewise.
23530 * cfghooks.c (verify_flow_info): Likewise.
23531 * cfgloopmanip.c (remove_path): Likewise.
23532 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23533 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23534 * combine.c (simplify_if_then_else): Likewise.
23535 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23536 (choose_basereg): Likewise.
23537 (ix86_expand_prologue): Likewise.
23538 (ix86_preferred_output_reload_class): Likewise.
23539 * cselib.c (cselib_record_sets): Likewise.
23540 * df-scan.c (df_scan_alloc): Likewise.
23541 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23542 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23543 * emit-rtl.c (try_split): Likewise.
23544 * graphite-scop-detection.c (assign_parameter_index_in_region):
23546 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23547 * ira-color.c (setup_profitable_hard_regs): Likewise.
23548 * ira.c (rtx_moveable_p): Likewise.
23549 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23550 * read-rtl.c (read_subst_mapping): Likewise.
23551 * regrename.c (scan_rtx): Likewise.
23552 * reorg.c (fill_slots_from_thread): Likewise.
23553 * tree-inline.c (tree_function_versioning): Likewise.
23554 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23555 * tree-ssa-sink.c (statement_sink_location): Likewise.
23556 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23557 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23558 (vect_create_epilog_for_reduction): Likewise.
23559 * tree.c (build_nonstandard_integer_type): Likewise.
23561 2019-06-27 Richard Biener <rguenther@suse.de>
23563 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23565 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23567 PR tree-optimization/89772
23568 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23569 out-of-bound accesses checking.
23571 2019-06-27 Martin Liska <mliska@suse.cz>
23573 PR tree-optimization/91014
23574 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23575 when LHS is NULL_TREE.
23577 2019-06-27 Martin Liska <mliska@suse.cz>
23579 * symbol-summary.h (traverse): Pass
23580 argument a to the call of callback.
23581 (gt_ggc_mx): Mark arguments as unused.
23582 (gt_pch_nx): Likewise.
23584 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23587 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23590 2019-06-26 Jeff Law <law@redhat.com>
23592 PR tree-optimization/90883
23593 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23594 (delete_dead_or_redundant_assignment): Likewise.
23596 PR tree-optimization/90883
23597 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23598 * tree-ssa-dse.c: Update various comments to distinguish between
23599 dead and redundant stores.
23600 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23601 (dse_optimize_redundant_stores): New function.
23602 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23603 Distinguish between dead and redundant calls in dump output. All
23605 (delete_dead_or_redundant_assignment): Similarly for assignments.
23606 (dse_optimize_stmt): Handle _CHK variants. For statements which
23607 store 0 into multiple memory locations, try to prove a subsequent
23608 store is redundant.
23610 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23613 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23614 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23616 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23618 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23619 (branch_islands): New extern.
23620 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23621 * config/rs6000/rs6000.c: .. here.
23623 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23625 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23626 (powerpc*-*-*) ... to here.
23628 2019-06-26 Jeff Law <law@redhat.com>
23630 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23631 memcpy, memmove and memset builtins.
23632 (maybe_trim_memstar_call): Likewise.
23634 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23636 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23638 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23640 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23642 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23644 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23646 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23648 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23651 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23653 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23655 2019-06-26 Richard Biener <rguenther@suse.de>
23658 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23660 2019-06-26 Richard Biener <rguenther@suse.de>
23662 * lto-streamer.h (lto_bitmap_alloc): Remove.
23663 (lto_bitmap_free): Likewise.
23664 * lto-streamer.c (lto_bitmap_alloc): Remove.
23665 (lto_bitmap_free): Likewise.
23666 (lto_obstack): Likewise.
23667 (lto_obstack_initialized): Likewise.
23668 * lto-streamer-out.c (lto_output): Use own obstack for local
23669 bitmap, free it consistently.
23671 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23674 * config/i386/sse.md
23675 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23676 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23677 insns if operands[2] is misaligned_operand.
23679 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23681 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23683 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23686 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23688 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23690 2019-06-26 Martin Liska <mliska@suse.cz>
23692 PR tree-optimization/90973
23693 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23694 epilogue_cost_vec instead of prologue_cost_vec for
23697 2019-06-26 Martin Liska <mliska@suse.cz>
23699 * bb-reorder.c (connect_better_edge_p): Add missing else
23700 statement in the middle of if-else statements.
23702 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23703 H.J. Lu <hongjiu.lu@intel.com>
23704 Olga Makhotina <olga.makhotina@intel.com>
23706 * common/config/i386/i386-common.c
23707 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23708 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23709 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23710 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23711 (ix86_handle_option): Handle -mavx512vp2intersect.
23712 * config/i386/avx512vp2intersectintrin.h: New.
23713 * config/i386/avx512vp2intersectvlintrin.h: New.
23714 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23715 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23716 AVX512VP2INTERSECT.
23717 * config/i386/i386-builtin-types.def: Add new types.
23718 * config/i386/i386-builtin.def: Add new builtins.
23719 * config/i386/i386-builtins.c: (enum processor_features): Add
23720 F_AVX512VP2INTERSECT.
23721 (static const _isa_names_table isa_names_table): Ditto.
23722 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23723 __AVX512VP2INTERSECT__.
23724 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23725 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23726 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23727 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23728 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23729 * config/i386/i386-options.c (ix86_target_string): Add
23730 -mavx512vp2intersect.
23731 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23732 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23733 P2HImode and P2QImode.
23734 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23735 number for P2QImode and P2HImode.
23736 (ix86_regmode_natural_size): New function.
23737 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23738 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23739 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23740 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23741 * config/i386/i386.opt: Add -mavx512vp2intersect.
23742 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23743 avx512vp2intersectvlintrin.h.
23744 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23745 (define_mode_iterator VI48_AVX512VP2VL): New.
23746 (avx512vp2intersect_2intersect<mode>,
23747 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23748 * config.gcc: Add avx512vp2intersectvlintrin.h and
23749 avx512vp2intersectintrin.h to extra_headers.
23750 * doc/invoke.texi: Document -mavx512vp2intersect.
23752 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23754 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23756 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23758 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23759 savres_routine_syms, savres_routine_name, morestack_ref,
23760 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23761 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23762 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23763 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23764 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23765 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23766 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23767 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23768 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23769 get_stack_clash_protection_probe_interval,
23770 get_stack_clash_protection_guard_size,
23771 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23772 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23773 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23774 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23775 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23776 gen_frame_mem_offset, rs6000_savres_routine_name,
23777 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23778 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23779 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23780 rs6000_global_entry_point_prologue_needed_p,
23781 rs6000_get_separate_components, rs6000_components_for_bb,
23782 rs6000_disqualify_components, rs6000_emit_prologue_components,
23783 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23784 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23785 rs6000_output_savres_externs, rs6000_output_function_prologue,
23786 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23787 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23788 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23789 rs6000_output_function_epilogue, gen_add3_const,
23790 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23791 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23793 (machine_function): Moved to rs6000.h.
23794 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23796 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23797 savres_routine_syms, savres_routine_name, morestack_ref,
23798 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23799 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23800 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23801 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23802 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23803 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23804 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23805 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23806 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23807 get_stack_clash_protection_probe_interval,
23808 get_stack_clash_protection_guard_size,
23809 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23810 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23811 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23812 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23813 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23814 gen_frame_mem_offset, rs6000_savres_routine_name,
23815 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23816 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23817 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23818 rs6000_global_entry_point_prologue_needed_p,
23819 rs6000_get_separate_components, rs6000_components_for_bb,
23820 rs6000_disqualify_components, rs6000_emit_prologue_components,
23821 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23822 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23823 rs6000_output_savres_externs, rs6000_output_function_prologue,
23824 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23825 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23826 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23827 rs6000_output_function_epilogue, gen_add3_const,
23828 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23829 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23830 to here from rs6000.c.
23831 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23832 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23833 quad_address_offset_p) Moved to here from rs6000.c.
23834 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23835 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23838 2019-06-25 Martin Liska <mliska@suse.cz>
23840 * hash-table.c (hashtab_chk_error): Move here from ...
23841 * hash-table.h (hashtab_chk_error): ... here.
23843 2019-06-25 Martin Liska <mliska@suse.cz>
23845 PR tree-optimization/90978
23846 * df-scan.c (df_update_entry_block_defs): Remove dead else
23848 (df_update_exit_block_uses): Likewise.
23850 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23851 Andrew Stubbs <ams@codesourcery.com>
23853 * config.gcc (thread_file): Set to gcn for AMD GCN.
23854 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23855 (TARGET_EMUTLS_VAR_INIT): New hook.
23857 2019-06-25 Martin Jambor <mjambor@suse.cz>
23860 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23862 2019-06-25 Richard Biener <rguenther@suse.de>
23864 PR tree-optimization/90930
23865 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23866 into parallel form in the last pass instance.
23868 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23870 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23871 (arc_legitimize_pic_address): Simplify and cleanup the function.
23872 (SYMBOLIC_CONST): Remove.
23873 (prepare_pic_move): Likewise.
23874 (prepare_move_operands): Handle complex mov cases here.
23875 (arc_legitimize_address_0): Remove call to
23876 arc_legitimize_pic_address.
23877 (arc_legitimize_address): Remove call to
23878 arc_legitimize_tls_address.
23879 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23880 (movhi_insn): Likewise.
23882 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23884 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23886 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23887 format of "__intN" types for UINTMAX_TYPE.
23888 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23889 format of "__intN" types for SIZETYPE.
23890 * tree.c (build_common_tree_nodes): Accept "__intN__"
23891 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23892 * doc/invoke.texi: Document that __intN__ disables pedantic
23895 2019-06-25 Jan Hubicka <jh@suse.cz>
23897 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23898 base2_alias_set is non-zero before doing TBAA based disambiguation.
23900 2019-06-25 Martin Liska <mliska@suse.cz>
23902 PR tree-optimization/90973
23903 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23904 of prologue and epilogue.
23906 2019-06-24 Jan Hubicka <jh@suse.cz>
23908 * ipa-utils.h (type_with_linkage_p): Verify that type is
23910 (odr_type_p): Remove extra return.
23911 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23912 hash STRING_FLAG only for arrays and integers.
23913 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23914 Update analogously.
23915 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23917 * print-tree.c (print_node): Print cxx-odr-p
23919 * tree.c (need_assembler_name_p): Also check that type
23921 (verify_type_variant): Update verification of SRING_FLAG;
23922 also check CXX_ODR_P.
23923 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23924 (TYPE_STRING_FLAG): Use it.
23925 (TYPE_CXX_ODR_P): New macro.
23926 * dwarf2out.c (gen_array_type_die): First check that type
23927 is an array and then test string flag.
23929 2019-06-24 Richard Biener <rguenther@suse.de>
23931 PR tree-optimization/90972
23932 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23933 in common code, dealing with STRING_CST properly.
23935 2019-06-24 Richard Biener <rguenther@suse.de>
23937 PR tree-optimization/90930
23938 PR tree-optimization/90316
23939 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23940 decrement of limit.
23942 2019-06-24 Martin Sebor <msebor@redhat.com>
23944 * tree-pretty-print.h: Remove unnecessary punctuation characters
23946 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23948 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23950 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23951 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23952 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23954 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23956 * config/rs6000/darwin.h: Handle GCC target pragma.
23958 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23960 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23962 2019-06-22 Jeff Law <law@redhat.com>
23964 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23966 2019-06-22 Jan Hubicka <jh@suse.cz>
23968 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23969 give up on bitfields; continue searching for different refs
23972 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23974 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23975 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23976 containing the offset as possible simd lane access. Look through
23977 widening conversion. Move the
23978 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23980 2019-06-21 Richard Biener <rguenther@suse.de>
23982 PR tree-optimization/90930
23983 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23984 flag on new stmts to avoid re-processing them.
23986 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23988 PR c++/90875 - added -Wswitch-outside-range option
23989 * doc/invoke.texi (Wswitch-outside-range): Document.
23991 2019-06-21 Jeff Law <law@redhat.com>
23993 PR tree-optimization/90949
23994 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23995 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23997 2019-06-21 Richard Biener <rguenther@suse.de>
24000 * dwarf2out.c (prune_unused_types_walk): Always consider
24001 function-local extern declarations as used.
24003 2019-06-21 Richard Biener <rguenther@suse.de>
24005 PR tree-optimization/90913
24006 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24007 the scalar variant of if-conversion versioning.
24009 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24011 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24012 create another "omp scan inscan exclusive" array if
24013 !ctx->scan_inclusive.
24014 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24015 (lower_omp_scan): Likewise.
24016 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24017 2-bit bitfield for simd_lane_access_p member.
24018 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24019 aux == (void *)-4 as simd lane access.
24020 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
24021 comment with permutations to show the canonical permutation order.
24022 (vectorizable_scan_store): Handle exclusive scan.
24023 (vectorizable_store): Call vectorizable_scan_store even for
24024 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24026 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24027 "omp simd array" arrays with one byte elements.
24029 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24031 * config/alpha/alpha.md (@unaligned_store<mode>):
24032 Rename from unaligned_store<mode>.
24033 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24034 * config/alpha/sync.md (@load_locked_<mode>): Rename
24035 from load_locked_<mode>.
24036 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24037 (@atomic_compare_and_swap<mode>_1): Rename
24038 from atomic_compare_and_swap<mode>_1.
24039 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24040 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24041 Use gen_reload_in_aligned and gen_unaligned_store.
24042 (emit_load_locked): Remove.
24043 (emit_store_conditional): Ditto.
24044 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24045 (alpha_split_compare_and_swap): Ditto.
24046 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24047 (alpha_split_compare_and_swap_12): Use gen_load_locked
24048 and gen_store_conditional.
24049 (alpha_split_atomic_exchange): Ditto.
24050 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24051 (alpha_split_atomic_exchange_12): Use gen_load_locked
24052 and gen_store_conditional.
24054 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24056 * config/aarch64/aarch64-errata.h: New file.
24057 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24058 (CA53_ERR_843419_SPEC): Delete.
24059 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24060 * config/aarch64/aarch64-linux.h: Likewise.
24061 * config/aarch64/aarch64-netbsd.h: Likewise.
24062 * config/aarch64/aarch64-freebsd.h: Likewise.
24064 2019-06-20 Marek Polacek <polacek@redhat.com>
24066 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24068 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24070 * config/rs6000/rs6000.md (isa attribute): Add support for
24071 for a future processor.
24073 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24076 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24077 standard scalar operation pattern for V2DF.
24078 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24079 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24080 (*ieee_<ieee_maxmin><mode>3): Likewise.
24081 (vec_setv2df_0): Likewise.
24083 2019-06-20 Jan Hubicka <jh@suse.cz>
24085 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24086 parameter; it has no use in gimple memory model.
24087 (indirect_ref_may_alias_decl_p): Update.
24089 2019-06-20 Martin Liska <mliska@suse.cz>
24091 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24094 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24096 * tree-vect-stmts.c (enum scan_store_kind): New type.
24097 (scan_store_can_perm_p): Change last argument from int * to
24098 vec<enum scan_store_kind> *, record precisely which permutations
24099 need whole vector left shift or that plus VEC_COND_EXPR.
24100 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24101 and additional VEC_COND_EXPR only for those iterations that need it.
24103 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24105 * config.gcc: Fix ARM --with-fpu checking and error message.
24107 2019-06-19 Marek Polacek <polacek@redhat.com>
24109 PR c++/60364 - noreturn after first decl not diagnosed.
24110 * attribs.c (get_attribute_namespace): No longer static.
24111 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24113 (attr_noreturn_exclusions): Make it extern.
24114 * attribs.h (get_attribute_namespace): Declare.
24115 * tree-inline.c (function_attribute_inlinable_p): Use
24116 get_attribute_name.
24118 2019-06-19 Martin Sebor <msebor@redhat.com>
24120 PR tree-optimization/90626
24121 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24123 PR tree-optimization/90626
24124 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24125 (handle_builtin_string_cmp): Call it.
24127 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24129 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24130 and DARWIN_NOPIE_SPEC.
24131 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24132 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24133 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24134 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24135 (DARWIN_EXPORT_DYNAMIC): Delete.
24136 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24137 and pie options processing to darwin.h.
24138 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24140 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24142 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24143 in computing the number of options to be moved.
24145 2019-06-19 Maya Rashish <coypu@sdf.org>
24147 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24148 (CLEAR_INSN_CACHE) Use it.
24150 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24152 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24154 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24156 PR middle-end/84521
24157 * builtins.c (expand_builtin_setjmp_setup): Save
24158 hard_frame_pointer_rtx.
24159 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24161 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24163 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24165 (remove_reg_equal_offset_note): Remove unused function.
24166 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24168 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24169 (arc_builtin_setjmp_frame_value): Remove function.
24170 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24171 (avr_builtin_setjmp_frame_value): Remove function.
24172 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24173 (ix86_builtin_setjmp_frame_value): Remove function.
24174 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24175 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24176 (sparc_builtin_setjmp_frame_value): Remove function.
24177 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24178 (vax_builtin_setjmp_frame_value): Remove function.
24179 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24180 pointer if has_nonlocal_label.
24182 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24184 * doc/md.texi: Document vec_shl_<mode> pattern.
24185 * optabs.def (vec_shl_optab): New optab.
24186 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24187 argument, if == vec_shl_optab, check for left whole vector shift
24188 pattern rather than right shift.
24189 (expand_vec_perm_const): Add vec_shl_optab support.
24190 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24192 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24193 can be handled by vec_shl_optab.
24194 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24195 (check_scan_store): Use it.
24196 (vectorizable_scan_store): If target can't do normal permutations,
24197 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24199 * config/i386/sse.md (vec_shl_<mode>): New expander.
24201 * omp-low.c (lower_rec_input_clauses): Handle references properly
24203 (lower_omp_scan): Likewise.
24205 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24207 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24208 mem_mode is BLKmode.
24210 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24213 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24214 pointer adjustment for the case of no callee-saved registers and
24215 stack frame bigger than 128 bytes.
24217 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24219 PR middle-end/90862
24220 * omp-low.c (check_omp_nesting_restrictions): Handle
24221 GF_OMP_TARGET_KIND_OACC_DECLARE.
24223 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24225 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24226 (@add<mode>3_carry): Rename from add<mode>3_carry.
24227 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24228 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24229 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24230 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24231 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24232 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24233 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24234 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24235 (cmpstrnsi): Use gen_cmp_1.
24236 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24237 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24238 (@umonitor_<mode>): Rename from umonitor_<mode>.
24239 * config/i386/i386-expand.c (ix86_expand_copysign):
24240 Use gen_copysign3_const and gen_copysign3_var.
24241 (ix86_expand_xorsign): Use gen_xorsign3_1.
24242 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24243 gen_sub3_carry_ccgz and gen_cmp1.
24244 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24245 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24246 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24247 (ix86_split_lshr): Ditto.
24248 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24250 2019-06-18 Jason Merrill <jason@redhat.com>
24252 * tree.c (build_constructor): Add MEM_STAT_DECL.
24254 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24256 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24257 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24258 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24259 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24260 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24261 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24262 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24263 Use CC_NZC instead of CC.
24264 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24265 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24266 (aarch64_print_operand): Handle E_CC_NZCmode.
24267 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24268 of gen_set_clobber_cc.
24270 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24272 * config/aarch64/aarch64-sve.md: Tabify file.
24274 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24276 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24277 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24278 * config/aarch64/aarch64-sve.md: Use it.
24280 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24282 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24283 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24284 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24285 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24286 (aarch64_expand_sve_vec_cmp_int): Use it.
24287 (aarch64_expand_sve_vec_cmp_float): Likewise.
24288 * config/aarch64/aarch64-sve.md: Likewise throughout.
24290 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24291 Kugan Vivekanandarajah <kuganv@linaro.org>
24293 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24294 (*cond_<optab><mode>_z): Fold into...
24295 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24296 operand 4 can be tied to operand 0 (either inherently or via RA).
24298 2019-06-18 Richard Biener <rguenther@suse.de>
24301 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24302 as if optimized away.
24304 2019-06-18 Tom de Vries <tdevries@suse.de>
24306 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24307 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24308 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24310 (define_insn "@set_softstack_<mode>"): ... this.
24311 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24312 (define_insn "@omp_simt_enter_<mode>"): ... this.
24313 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24314 (define_insn "@omp_simt_exit_<mode>"): ... this.
24316 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24318 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24319 vf parameter. Restore the previous iv step of nscalars_step,
24320 but give it iv_type rather than compare_type. Tweak code order
24321 to match the comments.
24322 (vect_set_loop_condition_masked): Update accordingly.
24323 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24324 for iv_precision. Tweak comment formatting.
24326 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24328 * config/darwin.c: Strip trailing whitespace.
24330 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24332 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24333 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24335 2019-06-18 Martin Jambor <mjambor@suse.cz>
24338 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24339 caller does not have flag_ipa_cp set.
24341 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24343 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24344 from "*fold_left_plus_<mode>", updated operands order.
24345 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24346 * internal-fn.c (mask_fold_left_direct): New define.
24347 (expand_mask_fold_left_optab_fn): Likewise.
24348 (direct_mask_fold_left_optab_supported_p): Likewise.
24349 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24350 * optabs.def (mask_fold_left_plus_optab): New optab.
24351 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24352 masked internal_fn for a reduction ifn.
24353 (vectorize_fold_left_reduction): Add support for masking reductions.
24355 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24357 PR middle-end/80791
24358 * target.def (predict_doloop_p): New hook.
24359 * targhooks.h (default_predict_doloop_p): New declaration.
24360 * targhooks.c (default_predict_doloop_p): New function.
24361 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24362 * doc/tm.texi: Regenerate.
24363 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24364 (TARGET_PREDICT_DOLOOP_P): New macro.
24365 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24367 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24369 * omp-low.c (struct omp_context): Add scan_inclusive field.
24370 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24372 (struct omplow_simd_context): Add lastlane member.
24373 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24374 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24376 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24377 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24378 (lower_omp_scan): New function.
24379 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24380 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24381 check 3rd argument if present rather than 2nd.
24382 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24383 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24385 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24386 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24388 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24389 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24390 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24392 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24393 IFN_GOMP_SIMD_LANE argument.
24394 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24395 encoded ->aux value.
24396 * tree-vect-stmts.c: Include attribs.h.
24397 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24398 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24400 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24401 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24403 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24406 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24407 (*nabs<mode>2_1): Ditto.
24408 (nabs sse-reg splitter): New splitter.
24409 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24411 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24413 PR bootstrap/90873.
24414 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24417 2019-06-17 Tom de Vries <tdevries@suse.de>
24419 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24420 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24421 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24423 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24425 (define_insn "omp_simt_enter_insn"): Rename to ...
24426 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24427 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24428 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24429 gen_omp_simt_enter_si.
24430 (define_expand "omp_simt_exit"): New.
24431 (define_insn "omp_simt_exit"): Rename to ...
24432 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24435 2019-06-17 Matthew Green <mrg@eterna.com.au>
24436 Maya Rashish <coypu@sdf.org>
24438 * config.gcc (aarch64*-*-netbsd*): New target.
24439 * config/aarch64/aarch64-netbsd.h: New file.
24440 * config/aarch64/t-aarch64-netbsd: Likewise.
24442 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24444 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24445 the access path from base to first VIEW_CONVERT_EXPR or
24448 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24450 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24451 access path on BIT_FIELD_REFs.
24453 2019-06-17 Martin Liska <mliska@suse.cz>
24456 * ipa-utils.h (odr_type_p): Remove dead code.
24458 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24460 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24461 alternative Solaris 11.4 format.
24462 * configure: Regenerate.
24464 2019-06-17 Tom de Vries <tdevries@suse.de>
24466 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24467 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24469 (define_insn "call_value_insn"): Rename to ...
24470 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24472 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24475 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24477 PR middle-end/64242
24478 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24479 frame clobbers and schedule block.
24480 (builtin_longjmp): Likewise.
24482 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24484 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24485 describe how to perform MSPABI compliant 64-bit shift.
24486 * config/msp430/msp430.md (ashldi3): New define_expand.
24487 (ashrdi3): New define_expand.
24488 (lshrdi3): New define_expand.
24490 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24492 * doc/sourcebuild.texi: Document new effective target keyword
24495 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24497 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24498 indirect_refs_may_alias_p): Revert accidental commits.
24500 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24501 at the end of structures.
24503 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24505 * config/darwin.c (machopic_indirect_call_target): Use renamed
24506 darwin_picsymbol_stubs to decide on output.
24507 (darwin_override_options): Handle darwin_picsymbol_stubs.
24508 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24509 (LD64_VERSION): Revise default.
24510 * config/darwin.opt: (mpic-symbol-stubs): New option.
24511 (darwin_picsymbol_stubs): New variable.
24512 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24513 rename to TARGET_MACHO_PICSYM_STUBS.
24514 * config/i386/i386.c (output_pic_addr_const): Likewise.
24515 * config/i386/i386.h Likewise.
24516 * config/rs6000/darwin.h: Likewise.
24517 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24518 darwin_picsymbol_stubs.
24520 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24522 * config/darwin.opt (prebind, noprebind, seglinkedit,
24523 noseglinkedit): Add RejectNegative.
24525 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24527 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24528 in my previous patch.
24530 2019-06-16 Tom de Vries <tdevries@suse.de>
24532 PR tree-optimization/89376
24533 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24535 2019-06-15 Maya Rashish <coypu@sdf.org>
24537 * doc/invoke.texi (Spec Files): Update location of the
24540 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24542 * doc/extend.texi (Common Function Attributes): Clarify
24543 no_sanitize. Fix grammar.
24545 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24547 * tree-ssa-alias.c (alias_stats): Add
24548 nonoverlapping_component_refs_p_may_alias,
24549 nonoverlapping_component_refs_p_no_alias,
24550 nonoverlapping_component_refs_of_decl_p_may_alias,
24551 nonoverlapping_component_refs_of_decl_p_no_alias.
24552 (dump_alias_stats): Dump them.
24553 (nonoverlapping_component_refs_of_decl_p): Add stats.
24554 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24557 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24559 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24560 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24562 (*anddi3_doubleword): Split before reload. Merge with
24563 anddi->zext pre-reload splitter.
24564 (*andndi3_doubleword): Split before reload.
24565 (*<code>di3_doubleword): Ditto.
24566 (*one_cmpldi2_doubleword): Ditto.
24568 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24570 PR middle-end/90779
24571 * gimplify.c: Include omp-offload.h and context.h.
24572 (gimplify_bind_expr): Add "omp declare target" attributes
24573 to static block scope variables inside of target region or target
24576 2019-06-15 Tom de Vries <tdevries@suse.de>
24578 PR tree-optimization/90009
24579 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24580 Return NULL if bb contains IFN_UNIQUE.
24582 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24584 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24585 (un): New define_mode_attr.
24586 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24587 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24588 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24590 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24592 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24594 * config/darwin.opt: Add RejectNegative where needed, reorder
24595 and add minimal functional descriptions.
24597 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24599 PR rtl-optimization/90765
24600 * calls.c (update_stack_alignment_for_call): New function.
24601 (expand_call): Call update_stack_alignment_for_call when
24602 outgoing parameter is passed in the stack.
24603 (emit_library_call_value_1): Likewise.
24604 * function.c (locate_and_pad_parm): Don't update
24605 stack_alignment_needed and preferred_stack_boundary.
24607 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24610 * config/i386/i386-features.c
24611 (dimode_scalar_chain::compute_convert_gain): Replace
24612 mmxsse_to_integer with sse_to_integer.
24613 * config/i386/i386.c (ix86_register_move_cost): Verify that
24614 moves between MMX and non-MMX units require secondary memory.
24615 Correct costs of moves between SSE and integer units.
24616 * config/i386/i386.h (processor_costs): Rename cost of moving
24617 SSE register to integer to sse_to_integer. Rename cost of
24619 2019-06-14 Matt Thomas <matt@3am-software.com>
24620 Matthew Green <mrg@eterna.com.au>
24621 Nick Hudson <skrll@netbsd.org>
24622 Maya Rashish <coypu@sdf.org>
24623 Richard Earnshaw <rearnsha@arm.com>
24625 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24626 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24627 * config/arm/netbsd-eabi.h: New file.
24628 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24630 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24631 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24632 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24633 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24635 2019-06-14 Richard Biener <rguenther@suse.de>
24637 * tree-loop-distribution.c (classify_partition): Return
24638 whether a reduction appeared in all partitions and do not
24639 stop builtin detection because of this.
24640 (distribute_loop): Sort a non-builtin partition last if
24641 there's a reduction in all partitions and make sure the
24642 partition prevailing as last is not a builtin.
24644 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24647 * ipa-prop.c (add_to_agg_contents_list): New function.
24648 (clobber_by_agg_contents_list_p): Likewise.
24649 (extract_mem_content): Likewise.
24650 (get_place_in_agg_contents_list): Delete.
24651 (determine_known_aggregate_parts): Renamed from
24652 determine_locally_known_aggregate_parts. New parameter
24655 2019-06-13 Martin Sebor <msebor@redhat.com>
24657 PR tree-optimization/90662
24658 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24661 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24664 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24665 dbase is not TARGET_MEM_REF.
24667 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24669 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24671 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24672 Do not generate DImode extends for 32bit targets.
24673 (and->zext post-reload splitter): Use gen_extend_insn
24674 instead of indirect functions.
24675 (anddi->zext pre-reload splitter): New.
24676 (*zext<mode>_doubleword_and): Remove.
24677 (*zext<mode>_doubleword): Ditto.
24678 (*zextsi_doubleword): Dittto.
24680 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24682 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24683 Use gen_sub3_insn instead of indirect function.
24684 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24686 (ix86_adjust_counter): Ditto.
24688 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24689 Lijia He <helijia@linux.ibm.com>
24691 PR tree-optimization/77820
24692 * tree-ssa-threadedge.c
24693 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24695 (thread_across_edge): Add call to
24696 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24698 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24700 * config/darwin-driver.c (validate_macosx_version_min): New.
24701 (darwin_default_min_version): Cleanup and validate supplied version.
24702 (darwin_driver_init): Likewise and push cleaned version into opts.
24704 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24706 PR tree-optimization/90869
24707 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24708 converts in MEM_REF referencing decl rather than view converts
24709 from decl type to MEM_REF type.
24711 2019-06-13 Richard Biener <rguenther@suse.de>
24713 PR tree-optimization/90856
24714 * tree-sra.c (build_ref_for_model): Only use
24715 build_reconstructed_reference when address-spaces are the same.
24717 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24719 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24720 wrap ei variable name in the declaration in ()s.
24721 (nvptx_single): Actually use mode_label variable. Formatting fix.
24723 2019-06-13 Richard Biener <rguenther@suse.de>
24725 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24726 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24727 also return the condition stmt.
24728 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24729 loop we can version and version that, reusing the loop version
24730 created by if-conversion instead of versioning again.
24732 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24734 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24736 * tree-vrp (value_range_base::may_contain_p): Call into
24737 value_inside_range.
24738 (value_inside_range): Make private inside value_range_base class.
24739 Take min/max from *this.
24740 (range_includes_p): Remove.
24741 * tree-vrp.h (value_range_base): Add value_inside_range.
24742 (range_includes_p): Remove.
24743 (range_includes_zero_p): Call may_contain_p.
24744 * vr-values.c (compare_range_with_value): Same.
24746 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24748 * doc/extend.texi (ARC Function Attributes): Update info.
24750 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24752 PR tree-optimization/89713
24753 * doc/invoke.texi (-ffinite-loops): Document new option.
24754 * common.opt (-ffinite-loops): New option.
24755 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24756 IFN_GOACC_LOOP calls as necessary.
24757 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24759 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24760 IFN_GOACC_LOOP call is not used.
24761 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24763 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24766 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24767 compare_type is not with Pmode size, we will create an IV with
24768 Pmode size with truncated use (i.e. converted to the correct type).
24769 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24770 (vect_iv_limit_for_full_masking): New. Factored out of
24771 vect_set_loop_condition_masked.
24772 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24773 (vect_iv_limit_for_full_masking): Declare.
24775 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24778 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24779 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24780 (get_alias_ptr_type_for_ptr_address): Likewise.
24781 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24782 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24783 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24786 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24788 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24790 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24792 * common/config/pru/pru-common.c: New file.
24793 * config.gcc: Add PRU target.
24794 * config/pru/alu-zext.md: New file.
24795 * config/pru/constraints.md: New file.
24796 * config/pru/predicates.md: New file.
24797 * config/pru/pru-opts.h: New file.
24798 * config/pru/pru-passes.c: New file.
24799 * config/pru/pru-pragma.c: New file.
24800 * config/pru/pru-protos.h: New file.
24801 * config/pru/pru.c: New file.
24802 * config/pru/pru.h: New file.
24803 * config/pru/pru.md: New file.
24804 * config/pru/pru.opt: New file.
24805 * config/pru/t-pru: New file.
24806 * doc/extend.texi: Document PRU pragmas.
24807 * doc/invoke.texi: Document PRU-specific options.
24808 * doc/md.texi: Document PRU asm constraints.
24810 2019-06-12 Martin Sebor <msebor@redhat.com>
24812 PR middle-end/90676
24813 * tree-pretty-print.c (dump_mem_ref): New function. Include
24814 MEM_REF type in output when different size than operand.
24815 (dump_generic_node): Move code to dump_mem_ref and call it.
24817 2019-06-12 Martin Sebor <msebor@redhat.com>
24819 PR tree-optimization/90662
24820 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24823 2019-06-12 Tom de Vries <tdevries@suse.de>
24825 PR tree-optimization/90009
24826 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24828 2019-06-12 Martin Liska <mliska@suse.cz>
24830 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24832 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24833 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24834 Do not sanitize created maps.
24836 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24838 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24839 value_range::singleton_p.
24840 * tree-vrp.c (value_range_constant_singleton): Remove.
24841 * tree-vrp.h (value_range_constant_singleton): Remove.
24842 * vr-values.c (vr_values::singleton): Use
24843 value_range::singleton_p.
24845 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24848 * cfgexpand.c (align_local_variable): Add really_expand argument,
24849 don't SET_DECL_ALIGN if it is false.
24850 (add_stack_var): Add really_expand argument, pass it through to
24851 align_local_variable.
24852 (expand_one_stack_var_1): Pass true as really_expand to
24853 align_local_variable.
24854 (expand_one_ssa_partition): Pass true as really_expand to
24856 (expand_one_var): Pass really_expand through to add_stack_var.
24858 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24860 * config/arm/iterators.md (VABAL): New int iterator.
24861 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24862 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24863 UNSPEC_VABAL_U values.
24865 2019-06-12 Martin Liska <mliska@suse.cz>
24867 * value-prof.c (stream_out_histogram_value): Only first value
24870 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24873 * symtab.c (symtab_node::set_section): Allow being called on aliases
24874 as long as they aren't analyzed yet.
24876 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24878 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24879 to `mips_set_text_contents_type' to indicate whether a
24880 non-debug insn follows.
24882 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24884 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24885 enabling -mpcrel by default.
24886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24887 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24888 that the test against -mcpu=future is done first. Then test if
24889 -mprefixed-addr is on for -mpcrel.
24890 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24892 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24895 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24896 instead of and.u%d.
24898 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24900 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24902 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24904 PR c++/90449 - add -Winaccessible-base option.
24905 * doc/invoke.texi (Winaccessible-base): Document.
24907 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24909 PR tree-optimization/62041
24910 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24912 2019-06-11 Jason Merrill <jason@redhat.com>
24914 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24915 * tree.c (get_tree_code_name): Likewise.
24916 * print-tree.c (print_node): Only briefly print a node with an
24919 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24922 * trans-mem.c (tm_memopt_compute_available): Add assertion
24923 that blocks is not empty. Formatting fix.
24925 2019-06-11 Martin Liska <mliska@suse.cz>
24928 * hash-table.h: Extend create_gcc, add one parameter
24929 that is passed into hash_table::hash_table.
24931 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24933 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24935 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24936 Emit clobber also for non-sse operations.
24937 (ix86_split_fp_absneg_operator): New function.
24938 * config/i386/i386.md (SSEMODEF): New mode iterator.
24939 (ssevecmodef): New mode attribute.
24940 (<code>tf2): Use absneg code iterator.
24941 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24942 Add three-operand AVX alternatives.
24943 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24944 Use absneg code iterator and X87MODEF mode iterator.
24945 (absneg fp_reg non-sse splitter): Call absneg code iterator
24946 and X87MODEF mode iterator.
24947 (absneg general_reg non-sse splitter): Use absneg code iterator
24948 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24949 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24950 code iterator. Add three-operand AVX alternative.
24951 (absneg sse_reg splitter): Use absneg code iterator
24952 and SSEMODEF mode iterator. Handle AVX operands.
24953 (absneg fp_reg splitter): Use absneg code iterator
24954 and MODEF mode iterator.
24955 (absneg general_reg splitter): Merge splitters using MODEF mode
24956 iterator. Use absneg code iterator. Call
24957 ix86_split_fp_absneg_operator.
24958 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24959 Do not enable for non-sse modes before reload.
24960 (CSGNMODE): Remove.
24961 (CSGNVMODE): Ditto.
24962 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24963 ssevecmodef mode attribute instaed of CSGNVMODE.
24964 (copysign<mode>3_const): Ditto.
24965 (copysign<mode>3_var): Ditto.
24966 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24967 Use absneg code iterator. Simplify code using std::swap.
24968 * config/i386/predicates.md (absneg_operator): Remove.
24970 2019-06-10 Martin Sebor <msebor@redhat.com>
24972 * gimple-fold.c (get_range_strlen): Update comment that didn't
24973 make it into r267503 or related commits.
24975 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24977 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24978 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24980 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24982 * tree.def (OMP_SCAN): New tree code.
24983 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24984 OMP_CLAUSE_EXCLUSIVE.
24985 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24986 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24987 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24988 OMP_CLAUSE_{IN,EX}CLUSIVE.
24989 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24990 * tree-nested.c (convert_nonlocal_reference_stmt,
24991 convert_local_reference_stmt, convert_gimple_call): Handle
24993 * tree-pretty-print.c (dump_omp_clause): Handle
24994 OMP_CLAUSE_{IN,EX}CLUSIVE.
24995 (dump_generic_node): Handle OMP_SCAN.
24996 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24997 * gimple.h (gomp_scan): New type.
24998 (is_a_helper <gomp_scan *>::test,
24999 is_a_helper <const gomp_scan *>::test): New templates.
25000 (gimple_build_omp_scan): Declare.
25001 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25002 gimple_omp_scan_set_clauses): New inline functions.
25003 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25004 * gimple.c (gimple_build_omp_scan): New function.
25005 (gimple_copy): Handle GIMPLE_OMP_SCAN.
25006 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25007 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25008 GIMPLE_OMP_TASKGROUP.
25009 (dump_gimple_omp_scan): New function.
25010 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25011 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25012 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25013 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25014 (is_gimple_stmt): Handle OMP_SCAN.
25015 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25016 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25017 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25018 mentioned in nested #pragma omp scan. Handle
25019 OMP_CLAUSE_{IN,EX}CLUSIVE.
25020 (gimplify_expr): Handle OMP_SCAN.
25021 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25022 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25024 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25027 2019-06-10 Martin Liska <mliska@suse.cz>
25029 * ipa-cp.c (ignore_edge_p): New function.
25030 (build_toporder_info): Use it.
25031 * ipa-inline.c (ignore_edge_p): New function.
25032 (inline_small_functions): Use it.
25033 * ipa-pure-const.c (ignore_edge_for_nothrow):
25034 Verify opt_for_fn for caller and callee.
25035 (ignore_edge_for_pure_const): Likewise.
25036 * ipa-reference.c (ignore_edge_p): Extend to check
25038 * ipa-utils.c (searchc): Refactor.
25039 * ipa-utils.h: Fix coding style.
25041 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25043 * config/arc/arc.c (arc_rtx_costs): Update costs.
25045 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25047 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25048 (arc_split_ior): Likewise.
25049 (arc_check_mov_const): Likewise.
25050 (arc_split_mov_const): Likewise.
25051 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25052 (arc_rtx_costs): Replace check Crr with Cax constraint.
25053 (prepare_move_operands): Cleanup, remove unused code.
25054 (arc_split_ior): New function.
25055 (arc_check_ior_const): Likewise.
25056 (arc_split_mov_const): Likewise.
25057 (arc_check_mov_const): Likewise.
25058 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25059 in define_insn_and_split pattern.
25060 (iorsi3): Likewise.
25061 (mulsi3_v2): Add new matching variant.
25062 (andsi3_i): Cleanup pattern.
25063 (rotrsi3_cnt1): Update pattern.
25064 (rotrsi3_cnt8): New pattern.
25065 (ashlsi2_cnt8): Likewise.
25066 (ashlsi2_cnt16): Likewise.
25067 * config/arc/constraints.md (C0p): Update constraint.
25069 (C0x): New pattern.
25070 (Cax): New pattern.
25072 2019-06-10 Martin Liska <mliska@suse.cz>
25074 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25075 Update coding style.
25076 (sem_item_optimizer::dump_cong_classes):
25077 Print how many items are in a non-singular class. Improve
25080 2019-06-10 Martin Liska <mliska@suse.cz>
25082 * value-prof.c (dump_histogram_value): Change dump format.
25083 (gimple_mod_subtract_transform): Remove legacy comment.
25085 2019-06-10 Martin Liska <mliska@suse.cz>
25087 * value-prof.c (dump_histogram_value): Print histogram values
25090 2019-06-10 Martin Liska <mliska@suse.cz>
25092 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25093 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25094 * ipa-profile.c (ipa_profile_generate_summary):
25095 Use get_most_common_single_value.
25096 * tree-profile.c (gimple_init_gcov_profiler):
25097 Instrument with __gcov_one_value_profiler_v2
25098 and __gcov_indirect_call_profiler_v4.
25099 * value-prof.c (dump_histogram_value):
25100 Print all values for HIST_TYPE_SINGLE_VALUE.
25101 (stream_out_histogram_value): Update assert for
25103 (stream_in_histogram_value): Set number of
25104 counters for HIST_TYPE_SINGLE_VALUE.
25105 (get_most_common_single_value): New.
25106 (gimple_divmod_fixed_value_transform):
25107 Use get_most_common_single_value.
25108 (gimple_ic_transform): Likewise.
25109 (gimple_stringops_transform): Likewise.
25110 (gimple_find_values_to_profile): Set number
25111 of counters for HIST_TYPE_SINGLE_VALUE.
25112 * value-prof.h (get_most_common_single_value): New.
25114 2019-06-10 Martin Liska <mliska@suse.cz>
25116 * hash-map.h: Pass default value to hash_table ctor.
25117 * hash-table.h: Add default value to call of a ctor.
25119 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25121 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25122 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25124 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25127 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25128 Call pa_output_function_label.
25129 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25130 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25131 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25133 (pa_linux_output_function_prologue): Declare.
25134 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25135 (pa_output_function_label): New.
25136 (pa_output_function_prologue): Revise to use pa_output_function_label.
25137 (pa_linux_output_function_prologue): New.
25138 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25140 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25142 * tree-vrp.h (value_range_base::intersect): New.
25143 (value_range::intersect_helper): Move from here...
25144 (value_range_base::intersect_helper): ...to here.
25145 * tree-vrp.c (value_range::intersect_helper): Rename to...
25146 (value_range_base::intersect_helper): ...this, and rewrite to
25147 return a value instead of modifying THIS in place.
25148 Also, move equivalence handling...
25149 (value_range::intersect): ...here, while calling intersect_helper.
25150 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25152 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25154 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25156 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25158 * Makefile.in (genprogerr): Add condmd.
25159 (genprog): Remove it here.
25161 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25163 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25165 2019-06-07 Richard Biener <rguenther@suse.de>
25168 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25169 that appear after user labels.
25171 2019-06-07 Martin Liska <mliska@suse.cz>
25173 * cselib.c (cselib_init): Disable hash table
25175 * hash-set.h: Pass new default argument to m_table.
25176 * hash-table.c: Add global variable with hash table
25177 sanitization limit.
25178 * hash-table.h (Allocator>::hash_table): Add new argument
25180 (hashtab_chk_error): New.
25181 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25182 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25183 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25185 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25187 * common.opt (flto-odr-type-merging): Ignore.
25188 * invoke.texi (-flto-odr-type-merging): Remove.
25189 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25190 (can_be_vtable_hashed_p): Remove.
25191 (hash_odr_vtable): Remove.
25192 (odr_vtable_hasher::hash): Remove.
25193 (types_same_for_odr): Remove.
25194 (types_odr_comparable): Remove.
25195 (odr_vtable_hasher::equal): Remove.
25196 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25197 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25198 (get_odr_type): Do not use vtable hash.
25199 (dump_odr_type): Remove commented out code.
25200 (build_type_inheritance_graph): Do not allocate vtable hash.
25201 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25202 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25203 (odr_type_p): Likewise.
25204 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25207 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25209 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25210 immediately after same_types_for_tbaa_p returns -1 and continue
25211 looking for possible exact match; if matching types are arrays
25212 watch for partial overlaps.
25213 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25214 (indirect_refs_may_alias_p): Do type based disambiguation first;
25217 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25219 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25221 2019-06-07 Martin Liska <mliska@suse.cz>
25223 * doc/invoke.texi: Remove param.
25224 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25226 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25227 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25228 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25229 * profile.c (instrument_values): Remove
25230 HIST_TYPE_INDIR_CALL_TOPN.
25231 * tree-profile.c (init_ic_make_global_vars):
25232 Always build __gcov_indirect_call only.
25233 (gimple_init_gcov_profiler): Remove usage
25234 of PARAM_INDIR_CALL_TOPN_PROFILE.
25235 (gimple_gen_ic_profiler): Likewise.
25236 * value-prof.c (dump_histogram_value): Likewise.
25237 (stream_in_histogram_value): Likewise.
25238 (gimple_indirect_call_to_profile): Likewise.
25239 (gimple_find_values_to_profile): Likewise.
25240 * value-prof.h (enum hist_type): Likewise.
25242 2019-06-07 Martin Liska <mliska@suse.cz>
25244 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25247 2019-06-07 Martin Liska <mliska@suse.cz>
25249 PR tree-optimization/78902
25250 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25251 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25252 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25253 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25254 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25255 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25256 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25257 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25258 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25259 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25260 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25261 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25262 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25264 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25265 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25266 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25267 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25268 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25269 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25270 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25271 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25272 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25273 warn_unused_result attribute.
25274 (BUILT_IN_STRDUP): Likewise.
25275 (BUILT_IN_STRNDUP): Likewise.
25276 (BUILT_IN_ALLOCA): Likewise.
25277 (BUILT_IN_CALLOC): Likewise.
25278 (BUILT_IN_MALLOC): Likewise.
25279 (BUILT_IN_REALLOC): Likewise.
25281 2019-06-06 Jim Wilson <jimw@sifive.com>
25284 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25285 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25286 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25288 2019-06-06 Martin Sebor <msebor@redhat.com>
25290 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25291 (handle_builtin_malloc): Remove trailing spaces.
25292 (handle_builtin_memset): Same.
25293 (handle_builtin_memcmp): Same.
25294 (compute_string_length): Same.
25295 (determine_min_objsize): Same.
25296 (handle_builtin_string_cmp): Same.
25297 (handle_char_store): Same. Break up excessively long line.
25299 2019-06-06 Martin Jambor <mjambor@suse.cz>
25301 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25304 2019-06-06 Martin Jambor <mjambor@suse.cz>
25306 * tree-sra.c (struct access): New field grp_same_access_path.
25307 (dump_access): Dump it.
25308 (build_reconstructed_reference): New function.
25309 (build_ref_for_model): Use it if possible.
25310 (path_comparable_for_same_access): New function.
25311 (same_access_path_p): Likewise.
25312 (sort_and_splice_var_accesses): Set the new flag.
25313 (analyze_access_subtree): Likewise.
25314 (propagate_subaccesses_across_link): Propagate zero value of the new
25315 flag down the access tree.
25317 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25319 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25320 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25321 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25322 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25325 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25327 PR tree-optimization/90332
25328 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25329 Handle VALS containing two vectors.
25330 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25332 (@aarch64_combinez<mode>): ... This.
25333 (*aarch64_combinez_be<mode>): Rename to...
25334 (@aarch64_combinez_be<mode>): ... This.
25335 (vec_init<mode><Vhalf>): New define_expand.
25336 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25338 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25340 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25341 library functions only when not optimizing for size.
25342 (ashlsi3): Likewise.
25343 (ashrhi3): Likewise.
25344 (ashrsi3): Likewise.
25345 (lshrhi3): Likewise.
25346 (lshrsi3): Likewise.
25348 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25350 PR rtl-optimization/88751
25351 * ira.c (ira): Use the number of the actually referenced registers
25352 when calculating the threshold.
25354 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25356 * configure: Regenerate.
25358 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25360 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25361 register if it is in memory, so the shift can be emulated with a rotate
25363 (ashrhi3): Likewise.
25364 (lshrhi3): Likewise.
25366 2019-06-06 Martin Liska <mliska@suse.cz>
25368 PR tree-optimization/87954
25369 * match.pd: Simplify mult where both arguments are 0 or 1.
25371 2019-06-06 Richard Biener <rguenther@suse.de>
25373 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25374 put equivalences on UNDEFINED ranges.
25375 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25376 Make sure to drop defs of stmts added during simplification
25379 2019-06-06 Richard Biener <rguenther@suse.de>
25381 * tree-ssa-structalias.c: Include tree-cfg.h.
25382 (make_heapvar): Do not make heap vars artificial.
25383 (find_func_aliases_for_builtin_call): Handle stack allocation
25385 (find_func_aliases): Delay processing of simple enough returns
25387 (set_uids_in_ptset): Adjust.
25388 (find_what_var_points_to): Likewise.
25389 (solve_constraints): Do not dump points-to sets here.
25390 (compute_points_to_sets): Post-process return statements,
25391 amending the escaped solution. Dump points-to sets afterwards.
25392 (ipa_pta_execute): Dump points-to sets.
25394 2019-06-06 Martin Liska <mliska@suse.cz>
25397 * doc/install.texi: Fix HTML headers and
25398 titles for 'Installing GCC' pages.
25400 2019-06-06 Martin Liska <mliska@suse.cz>
25402 * ipa-icf-gimple.h (dump_message_1): Remove.
25403 (dump_message): Likewise.
25404 (return_false_with_message_1): Print also file.
25405 (return_false_with_msg): Likewise.
25406 (return_with_result): Likewise.
25407 (return_with_debug): Likewise.
25408 * ipa-icf.c (sem_function::equals_private): Remove call
25411 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25413 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25414 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25415 memory operand for it.
25416 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25418 2019-06-05 Martin Sebor <msebor@redhat.com>
25420 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25421 Adjust quoting and hyphenation.
25422 * convert.c (convert_to_real_1): Same.
25423 * gcc.c (driver_wrong_lang_callback): Same.
25424 (driver::handle_unrecognized_options): Same.
25425 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25426 * opts-common.c (cmdline_handle_error): Same.
25427 (read_cmdline_option): Same.
25428 * opts-global.c (complain_wrong_lang): Same.
25429 (print_ignored_options): Same.
25430 (handle_common_deferred_options): Same.
25431 * pretty-print.h: Same.
25432 * print-rtl.c (debug_bb_n_slim): Same.
25433 * sched-rgn.c (make_pass_sched_fusion): Same.
25434 * tree-cfg.c (verify_gimple_assign_unary): Same.
25435 (verify_gimple_label): Same.
25436 * tree-ssa-operands.c (verify_ssa_operands): Same.
25437 * varasm.c (do_assemble_alias): Same.
25438 (assemble_alias): Same.
25440 2019-06-05 Richard Henderson <rth@twiddle.net>
25442 * config/alpha/alpha.c (direct_return): Move down after
25443 struct machine_function definition; use saved frame_size;
25445 (struct machine_function): Add sa_mask, sa_size, frame_size.
25446 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25447 (alpha_compute_frame_layout): ... new function.
25448 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25449 (alpha_initial_elimination_offset): Use saved sa_size.
25450 (alpha_vms_initial_elimination_offset): Likewise.
25451 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25452 (alpha_expand_prologue): Use saved frame data. Merge integer
25453 and fp register save loops.
25454 (alpha_expand_epilogue): Likewise.
25455 (alpha_start_function): Use saved frame data.
25456 * config/alpha/alpha-protos.h (direct_return): Update.
25457 (alpha_sa_size): Remove.
25459 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25461 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25462 multiplication by a power-of-two value.
25463 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25464 and turn the modulo operation into a masking operation.
25466 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25469 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25470 with VOIDmode inner operands.
25472 2019-06-05 Richard Biener <rguenther@suse.de>
25474 PR middle-end/90726
25475 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25476 turn an expression graph into a tree.
25478 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25480 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25482 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25483 treat it like explicit monotonic schedule modifier.
25484 (expand_omp_for): Initialize has_lastprivate_conditional.
25485 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25488 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25489 references, lookup in in hash map MEM_REF operand instead of the
25491 (lower_omp_1): When looking for lastprivate conditional assignments,
25492 handle MEM_REFs with REFERENCE_TYPE operands.
25494 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25495 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25496 and references a VLA. Handle references to non-VLAs if is_simd
25497 all privatization clauses like reductions.
25498 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25499 If omp_is_reference, use always omp simd arrays and set
25500 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25501 fails, emit reference initialization.
25503 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25506 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25507 _mm_mask_fpclass_sd_mask): New intrinsics.
25508 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25509 * config/i386/i386-builtin.def
25510 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25512 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25513 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25514 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25515 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25516 case QI_FTYPE_V2SF_INT): Ditto.
25517 * config/i386/sse.md
25518 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25519 Extended to insnstructions with mask operands.
25521 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25523 * config/rs6000/constraints.md (define_register_constraint "wp"):
25525 (define_register_constraint "wq"): Delete.
25526 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25527 (rs6000_init_hard_regno_mode_ok): Adjust.
25528 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25529 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25530 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25531 (define_mode_attr VSa): Delete.
25532 (define_mode_attr VSisa): New.
25533 (rest of file): Adjust.
25534 * doc/md.texi (Machine Constraints): Adjust.
25536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25538 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25539 (define_attr "enabled"): Handle those new isa values.
25541 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25543 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25544 (define_mode_attr VSr5): Delete.
25545 (define_mode_attr VStype_sqrt): Delete.
25546 (define_mode_iterator VSX_SPDP): Delete.
25547 (define_mode_attr VS_spdp_res): Delete.
25548 (define_mode_attr VS_spdp_insn): Delete.
25549 (define_mode_attr VS_spdp_type): Delete.
25550 (*vsx_sqrt<mode>2): Adjust.
25551 (vsx_<VS_spdp_insn>): Delete, split to...
25552 (vsx_xscvdpsp): ... this. New. And...
25553 (vsx_xvcvspdp): ... this. New. And...
25554 (vsx_xvcvdpsp): ... this. New.
25556 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25558 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25560 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25561 (rest of file): Adjust.
25563 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25565 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25566 (vsx_extract_<mode>_var): Ditto.
25568 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25570 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25573 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25575 * config/rs6000/constraints.md (define_register_constraint "ww"):
25577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25578 (rs6000_init_hard_regno_mode_ok): Adjust.
25579 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25580 RS6000_CONSTRAINT_ww.
25581 * config/rs6000/rs6000.md: Adjust.
25582 * config/rs6000/vsx.md: Adjust.
25583 * doc/md.texi (Machine Constraints): Adjust.
25585 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25587 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25588 (define_mode_attr sd): New.
25589 (define_mode_attr s): New.
25590 (define_mode_attr Ftrad): Delete.
25591 (define_mode_attr Fvsx): Delete.
25592 (define_mode_attr Fs): Delete.
25593 (rest of file): Use the new mode attributes.
25594 * config.rs6000/vsx.md: Use the new mode attributes.
25596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25598 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25601 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25603 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25604 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25605 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25607 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25610 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25611 C++ with strict ANSI requirements.
25613 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25615 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25616 computations when step is 1.
25618 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25620 * config/rs6000/constraints.md (define_register_constraint "wf"):
25622 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25623 (rs6000_init_hard_regno_mode_ok): Adjust.
25624 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25625 RS6000_CONSTRAINT_wf.
25626 * config/rs6000/rs6000.md: Adjust.
25627 * config/rs6000/vsx.md: Adjust.
25628 * doc/md.texi (Machine Constraints): Adjust.
25630 2019-06-04 Andrew Pinski <apinski@marvell.com>
25632 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25635 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25637 * config/rs6000/constraints.md (define_register_constraint "wd"):
25639 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25640 (rs6000_init_hard_regno_mode_ok): Adjust.
25641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25642 RS6000_CONSTRAINT_wd.
25643 * config/rs6000/rs6000.md: Adjust.
25644 * config/rs6000/vsx.md: Adjust.
25645 * doc/md.texi (Machine Constraints): Adjust.
25647 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25649 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25650 (rest of file): Adjust.
25652 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25654 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25655 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25656 (vsx_splat_<mode>_reg): Adjust.
25658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25660 * config/rs6000/constraints.md (define_register_constraint "ws"):
25662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25663 (rs6000_init_hard_regno_mode_ok): Adjust.
25664 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25665 RS6000_CONSTRAINT_ws.
25666 * config/rs6000/rs6000.md: Adjust.
25667 * config/rs6000/vsx.md: Adjust.
25668 * doc/md.texi (Machine Constraints): Adjust.
25670 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25672 * config/rs6000/constraints.md (define_register_constraint "wv"):
25674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25675 (rs6000_init_hard_regno_mode_ok): Adjust.
25676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25677 RS6000_CONSTRAINT_wv.
25678 * config/rs6000/rs6000.md: Adjust.
25679 * config/rs6000/vsx.md: Adjust.
25680 * doc/md.texi (Machine Constraints): Adjust.
25682 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25684 * config/rs6000/constraints.md (define_register_constraint "wi"):
25686 (define_register_constraint "wt"): Delete.
25687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25688 (rs6000_init_hard_regno_mode_ok): Adjust.
25689 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25690 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25691 * config/rs6000/rs6000.md: Adjust.
25692 * config/rs6000/vsx.md: Adjust.
25693 * doc/md.texi (Machine Constraints): Adjust.
25695 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25697 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25699 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25700 default_elf_asm_output_external.
25702 2019-06-04 Martin Liska <mliska@suse.cz>
25704 * ipa-icf.c (INCLUDE_LIST): Remove.
25705 (sem_item_optimizer::execute): Remove call to init_wpa.
25706 * ipa-icf.h (init_wpa): Remove.
25708 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25710 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25711 conditional on combined for simd.
25712 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25714 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25715 constructs, don't remove lastprivate_conditional_map, but instead set
25716 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25717 to parent construct temporaries.
25718 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25719 like !ctx->lastprivate_conditional_map.
25720 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25721 use up->outer context instead of up.
25722 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25723 gimple_omp_for_combined_p.
25724 (expand_omp_for_static_nochunk): Likewise.
25725 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25726 probably moved over into expand_omp_for_generic rather than being copied
25729 2019-06-04 Martin Liska <mliska@suse.cz>
25731 * value-prof.c (dump_histogram_value): Fix typo.
25732 (gimple_mod_subtract_transform): Likewise.
25734 2019-06-04 Richard Biener <rguenther@suse.de>
25736 PR middle-end/90726
25737 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25738 (tree_contains_chrecs): Likewise.
25739 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25740 exponential behaivor from ...
25741 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25743 (expression_expensive_p): Avoid exponential behavior and compute
25744 expanded size, rejecting any expansion.
25745 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25746 (idx_contains_abnormal_ssa_name_p): Likewise.
25747 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25748 (contains_abnormal_ssa_name_p): Simplify and use
25749 walk_tree_without_duplicates.
25751 2019-06-04 Richard Biener <rguenther@suse.de>
25753 PR tree-optimization/90738
25755 2019-06-03 Richard Biener <rguenther@suse.de>
25757 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25758 full reference tree and record in ref->ref.
25759 (vn_reference_lookup_3): Pass in original ref to
25760 ao_ref_init_from_vn_reference.
25761 (vn_reference_lookup): Likewise.
25762 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25763 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25764 Handle non-decl bases in the original reference.
25766 2019-06-04 Martin Liska <mliska@suse.cz>
25768 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25769 number of references.
25770 (sem_item_optimizer::do_congruence_step):
25771 (sem_item_optimizer::worklist_push): Dump how references
25773 (sem_item_optimizer::worklist_pop): Use heap.
25774 (sem_item_optimizer::process_cong_reduction): Likewise.
25775 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25777 2019-06-04 Martin Liska <mliska@suse.cz>
25779 * ipa-icf.h (struct sem_usage_pair_hash): New.
25780 (sem_usage_pair_hash::hash): Likewise.
25781 (sem_usage_pair_hash::equal): Likewise.
25782 (struct sem_usage_hash): Likewise.
25783 * ipa-icf.c (sem_item::sem_item): Initialize
25784 referenced_by_count.
25785 (sem_item::add_reference): Register a reference
25786 in ref_map and not in target->usages.
25787 (sem_item::setup): Remove initialization of
25789 (sem_item::~sem_item): Remove usage of dead vectors.
25790 (sem_item::dump): Remove dump of references.
25791 (sem_item_optimizer::sem_item_optimizer): Initialize
25793 (sem_item_optimizer::read_section): Remove useless
25795 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25796 (sem_item_optimizer::build_graph): Pass m_references
25797 to ::add_reference.
25798 (sem_item_optimizer::verify_classes): Remove usage of dead
25800 (sem_item_optimizer::traverse_congruence_split): Return true
25801 when a class is split.
25802 (sem_item_optimizer::do_congruence_step_for_index): Use
25803 hash_map for look up of (sem_item *, index). That brings
25804 significant speed up.
25805 (sem_item_optimizer::do_congruence_step): Return true
25806 when a split is done.
25807 (congruence_class::is_class_used): Use referenced_by_count.
25809 2019-06-04 Alan Modra <amodra@gmail.com>
25812 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25815 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25817 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25818 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25819 (rs6000_secondary_reload_simple_move): Adjust.
25820 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25821 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25822 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25825 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25826 (floatunssi<mode>2_lfiwzx): Adjust.
25827 (fix_trunc<mode>si2_stfiwx): Adjust.
25828 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25829 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25830 (mfpgpr): Mark as deprecated.
25831 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25832 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25833 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25835 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25837 * config/rs6000/constraints.md (define_register_constraint "wg"):
25839 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25840 RS6000_CONSTRAINT_wg.
25841 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25842 (rs6000_init_hard_regno_mode_ok): Adjust.
25843 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25844 Delete "wg" alternatives.
25845 * doc/md.texi (Machine Constraints): Adjust.
25847 2019-06-03 Alan Modra <amodra@gmail.com>
25849 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25850 (get_uncond_jump_length): Assert length less than INT_MAX and
25853 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25855 PR middle-end/64242
25856 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25858 (expand_builtin_nonlocal_goto): Likewise.
25860 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25862 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25863 (aarch64_asm_output_external): Declare.
25864 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25865 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25866 (aarch64_asm_output_alias): New.
25867 (aarch64_asm_output_external): New.
25868 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25869 (ASM_OUTPUT_EXTERNAL): Define.
25871 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25872 * tree-vrp.h (value_range_base::nonzero_p): New.
25873 (value_range_base::set_nonnull): Rename to...
25874 (value_range_base::set_nonzero): ...this.
25875 (value_range_base::set_null): Rename to...
25876 (value_range_base::set_zero): ...this.
25877 (value_range::set_nonnull): Remove.
25878 (value_range::set_null): Remove.
25879 * tree-vrp.c (range_is_null): Remove.
25880 (range_is_nonnull): Remove.
25881 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25882 instead of range_is_*null.
25883 (extract_range_from_unary_expr): Same.
25884 (value_range_base::set_nonnull): Rename to...
25885 (value_range_base::set_nonzero): ...this.
25886 (value_range::set_nonnull): Remove.
25887 (value_range_base::set_null): Rename to...
25888 (value_range_base::set_zero): ...this.
25889 (value_range::set_null): Remove.
25890 (extract_range_from_binary_expr): Rename set_*null uses to
25892 (extract_range_from_unary_expr): Same.
25893 (union_helper): Same.
25894 * vr-values.c (get_value_range): Use set_*zero instead of
25896 (vr_values::extract_range_from_binary_expr): Same.
25897 (vr_values::extract_range_basic): Same.
25899 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25902 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25904 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25906 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25907 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25909 (aarch64_<su>abd<mode>_3): ... This.
25910 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25912 2019-06-03 Richard Biener <rguenther@suse.de>
25914 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25915 full reference tree and record in ref->ref.
25916 (vn_reference_lookup_3): Pass in original ref to
25917 ao_ref_init_from_vn_reference.
25918 (vn_reference_lookup): Likewise.
25919 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25920 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25921 Handle non-decl bases in the original reference.
25923 2019-06-03 Martin Liska <mliska@suse.cz>
25925 * doc/generic.texi: Remove Java Trees.
25927 2019-06-03 Martin Liska <mliska@suse.cz>
25929 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25930 returns 0 when operands are equal.
25932 2019-06-03 Richard Biener <rguenther@suse.de>
25934 PR tree-optimization/90716
25935 * tree-loop-distribution.c (destroy_loop): Process blocks in
25938 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25941 * vector-builder.h (vector_builder::count_dups): New method.
25942 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25944 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25945 (vec_init<mode><Vel>): New pattern.
25946 * config/aarch64/aarch64.c (emit_insr): New function.
25947 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25948 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25949 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25950 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25952 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25954 PR tree-optimization/90681
25955 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25956 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25957 special case for SLP, but fail on non-groupped loads.
25959 2019-06-03 Martin Liska <mliska@suse.cz>
25961 * cfg.c (debug): Use TDF_DETAILS for debug and
25962 print edge info only once.
25964 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25967 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25969 2019-06-01 Martin Sebor <msebor@redhat.com>
25971 PR middle-end/90694
25972 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25974 2019-05-31 Jan Hubicka <jh@suse.cz>
25976 * alias.c: Include ipa-utils.h.
25977 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25978 * ipa-devirt.c (prevailing_odr_type): New.
25979 * ipa-utils.h (previaling_odr_type): Declare.
25981 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25982 Hongtao Liu <hongtao.liu@intel.com>
25985 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25986 NOTE_INSN_DELETED_LABEL check.
25988 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25989 Robert Suchanek <robert.suchanek@mips.com>
25991 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25992 and 3rd operands of the fmadd/fmsub/maddv builtin.
25994 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25996 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25997 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25998 on OMP_SIMD if not nested inside of worksharing loop that also has
25999 lastprivate conditional clause for the same decl.
26000 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26001 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26003 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
26005 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26007 (lower_lastprivate_clauses): Likewise.
26008 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26009 calling lower_rec_input_clauses.
26010 (lower_omp_for): Likewise.
26011 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26012 clause on simd construct.
26013 * omp-expand.c (expand_omp_simd): Initialize cond_var if
26014 OMP_CLAUSE__CONDTEMP_ clause is present.
26016 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26019 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
26022 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26023 TEX_D32, TEX_D64 or TEX_D128.
26025 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26027 * match.pd (~(vec?cst1:cst2)): New transformation.
26029 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26031 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26032 ((size_t)(A /[ex] B) CMP C): New transformation.
26034 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26036 * doc/md.texi: Document define_insn_and_rewrite.
26037 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26038 * gensupport.c (queue_elem): Update comment.
26039 (replace_operands_with_dups): New function.
26040 (gen_rewrite_sequence): Likewise.
26041 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26042 * read-rtl.c (apply_subst_iterator): Likewise.
26043 (add_condition_to_rtx, named_rtx_p): Likewise.
26044 (rtx_reader::read_rtx_operand): Likewise.
26045 * config/aarch64/aarch64-sve.md
26046 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26047 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26048 define_insn_and_rewrite.
26049 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26050 Remove separate define_split.
26052 2019-05-31 Jan Hubicka <jh@suse.cz>
26054 * tree-ssa-alias.c (type_has_components_p): New function.
26055 (aliasing_component_refs_p): Use it.
26057 2019-05-31 Martin Liska <mliska@suse.cz>
26059 * gdbhooks.py: Add const_tree to TreePrinter.
26061 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26064 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26065 * doc/invoke.texi (Debugging Options): Document new default of
26066 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26068 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26070 PR tree-optimization/90671
26071 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26072 template_block used to be empty on the first call, don't use
26073 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26074 seq with bb_seq and set it with set_bb_seq.
26076 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26078 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26080 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26081 Michael Meissner <meissner@linux.ibm.com>
26083 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26084 (prefixed_mem_operand): Likewise.
26085 (non_prefixed_mem_operand): Likewise.
26086 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26088 * config/rs6000/rs6000.c (print_operand_address): Handle
26089 PC-relative addresses.
26090 (mode_supports_prefixed_address_p): New function.
26091 (rs6000_prefixed_address): New function.
26092 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26093 (SYMBOL_REF_PCREL_P): Likewise.
26095 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26097 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26098 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26099 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26100 is nested inside of parallel region, add _condtemp_ clause to both.
26101 * tree-nested.c (convert_nonlocal_omp_clauses,
26102 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26104 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26106 * omp-general.c (omp_extract_for_data): Compute it.
26107 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26108 (lower_rec_input_clauses): Likewise.
26109 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26110 clause is already present, just add one further one after it.
26111 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26112 (lower_send_shared_vars): Clear _condtemp_ vars.
26113 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26114 or section or taskgroup.
26115 * omp-expand.c (determine_parallel_type): Disallow combining only if
26116 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26117 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26118 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26119 expand_omp_for_static_chunk, expand_omp_for): Use
26120 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26121 determine if a special set of API routines are needed and if condtemp
26122 needs to be initialized, while always initialize cond_var if
26123 fd->lastprivate_conditional is non-zero.
26125 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26126 Michael Meissner <meissner@linux.ibm.com>
26128 * config/rs6000/constraints.md (eI): New constraint.
26129 * config/rs6000/predicates.md (cint34_operand): New predicate.
26130 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26131 (SIGNED_34BIT_OFFSET_P): Likewise.
26132 * doc/md.texi (eI): Document constraint.
26134 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26136 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26138 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26139 Michael Meissner <meissner@linux.ibm.com>
26141 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26142 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26143 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26144 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26145 (OTHER_FUTURE_MASKS): Likewise.
26146 (POWERPC_MASKS): Likewise.
26147 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26148 specified without -mprefixed-addr or -mcpu=future. Error if
26149 -mprefixed-addr is specified without -mcpu=future.
26150 (rs6000_opt_masks): Add entry for prefixed-addr.
26151 * rs6000.opt (mprefixed-addr): New option.
26153 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26155 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26156 cfun->is_thunk check.
26158 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26160 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26163 2019-05-30 Martin Liska <mliska@suse.cz>
26165 * gdbinit.in: Fix 'ptc' command. Add trt
26166 that prints TREE_TYPE($).
26168 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26169 Alan Modra <amodra@gmail.com>
26171 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26173 (rs6000_indirect_call_template_1): ...and here.
26174 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26175 plt16_ha, plt16_lo, mtctr indirect calls. Use
26176 rs6000_pltseq_enum.
26177 (rs6000_decl_ok_for_sibcall): New function.
26178 (rs6000_function_ok_for_sibcall): Refactor.
26179 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26180 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26181 when pcrel. Reorganize.
26182 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26183 * rs6000.h (rs6000_pltseq_enum): New enum.
26184 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26185 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26186 (*pltseq_plt16_ha): Likewise.
26187 (*pltseq_plt16_lo): Likewise.
26188 (*pltseq_mtctr): Likewise.
26189 (*pltseq_plt_pcrel): New insn.
26190 (*call_local_aix): Handle @notoc calls.
26191 (*call_value_local_aix): Likewise.
26192 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26193 (*call_value_nonlocal_aix): Likewise.
26194 (*call_indirect_pcrel): New insn.
26195 (*call_value_indirect_pcrel): Likewise.
26197 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26199 * config/i386/sse.md (*save_multiple<mode>): Rename from
26200 save_multiple<mode>.
26201 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26202 (*restore_multiple_and_return<mode>): Rename from
26203 restore_multiple_and_return<mode>.
26204 (*restore_multiple_leave_return<mode>): Rename from
26205 restore_multiple_leave_return<mode>.
26207 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26209 * config.gcc (rx-*-linux*): New target.
26210 * config/rx/elf.opt: New file.
26211 * config/rx/linux.h: Likewise.
26212 * config/rx/t-linux: Likewise.
26213 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26215 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26216 (ASM_APP_OFF): Likewise.
26217 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26220 2019-05-29 Jan Hubicka <jh@suse.cz>
26222 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26223 variants are pointer equivalent.
26225 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26227 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26228 * config/aarch64/aarch64-sve2.md: New file.
26229 (<u>avg<mode>3_floor): New pattern.
26230 (<u>avg<mode>3_ceil): Likewise.
26231 (*<sur>h<addsub><mode>): Likewise.
26232 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26233 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26235 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26238 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26239 for var_opt_string printing. In cl_optimization_print_diff, print
26240 (null) instead of invoking undefined behavior if one of the
26241 var_opt_string pointers is NULL and use && instead of first || in the
26242 guarding condition. For var_target_other options, handle const char *
26243 target variables similarly to const char * optimize node variables.
26245 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26247 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26248 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26249 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26250 Add autib1716 and pacib1716 initialisation.
26251 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26252 for autib1716 and pacib1716.
26253 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26254 aarch64_post_cfi_startproc): Define.
26255 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26256 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26257 aarch64_handle_pac_ret_protection): Set default sign key to A.
26258 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26259 aarch64_expand_prologue): Add check for b-key.
26260 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26261 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26262 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26263 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26264 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26265 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26266 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26267 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26268 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26269 pauth_hint_num_a with pauth_hint_num.
26270 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26271 pauth_hint_num_a with pauth_hint_num.
26272 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26273 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26274 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26275 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26276 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26277 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26278 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26279 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26280 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26281 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26282 UNSPEC_AUTIA1716 respectively.
26283 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26284 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26285 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26286 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26287 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26288 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26290 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26292 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26293 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26294 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26295 explicit clause on combined parallel into implicit shared clause.
26296 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26297 and firstprivate if the decl has one too from combined parallel to
26298 the worksharing construct.
26300 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26301 Michael Meissner <meissner@linux.ibm.com>
26303 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26305 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26307 * rtl.h (LABEL_REF_P): New #define.
26309 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26311 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26313 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26315 * internal-fn.c: Marked mask_load_direct as vectorizable.
26316 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26317 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26318 combined even if masks different with allow_slp_p param.
26319 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26320 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26321 dissolve SLP-only vectorizable groups when SLP has been discarded.
26322 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26323 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26325 (vect_build_slp_tree_1): Fixed comment typo.
26326 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26327 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26328 loads for SLP only.
26329 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26331 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26333 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26335 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26336 Remove obsolete use_thunk reference.
26337 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26338 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26339 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26340 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26341 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26342 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26343 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26344 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26345 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26347 2019-05-28 Nathan Sidwell <nathan@acm.org>
26349 * tree.h (IDENTIFIER_ANON_P): New.
26350 (anon_aggrname_format, anon_aggname_p): Don't declare.
26351 (make_anon_name): Declare.
26352 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26353 (hash_tree): Likewise.
26354 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26355 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26356 (anon_cnt, make_anon_name): New.
26358 2019-05-28 Martin Liska <mliska@suse.cz>
26361 * opts-global.c (decode_options): Print help for all
26362 help_option_arguments.
26363 * opts.c (print_help): Add new argument.
26364 (common_handle_option): Remember all values into
26365 help_option_arguments.
26366 * opts.h (print_help): Add new argument.
26368 2019-05-28 Martin Liska <mliska@suse.cz>
26371 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26372 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26373 (func_checker::compare_bb): Call compare_loops.
26375 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26377 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26378 on sections construct.
26379 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26381 (lower_omp_sections): Handle lastprivate conditional.
26382 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26383 lastprivate_conditional_map.
26384 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26386 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26387 critical, taskgroup and section regions when looking for a region
26388 with non-NULL lastprivate_conditional_map.
26390 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26392 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26393 (*ix86_gen_sub3): Ditto.
26394 (*ix86_gen_sub3_carry): Ditto.
26395 (*ix86_gen_one_cmpl2): Ditto.
26396 (*ix86_gen_andsp): Ditto.
26397 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26398 (gen_and2_insn): New static function.
26399 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26400 Use gen_add3_insn instead of ix86_gen_add3.
26401 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26402 instead of ix86_gen_add3.
26403 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26404 Use gen_sub3_insn instead of ix86_gen_sub3.
26405 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26406 instead of ix86_gen_add3.
26407 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26408 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26409 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26410 * config/i386/i386-options.c (ix86_option_override_internal):
26411 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26412 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26414 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26416 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26417 and DW_OP_GNU_const_index opcodes.
26419 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26421 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26423 2019-05-27 Richard Biener <rguenther@suse.de>
26425 PR tree-optimization/90637
26426 * tree-ssa-sink.c (statement_sink_location): Honor the
26427 computed sink location for single-uses.
26429 2019-05-27 Richard Biener <rguenther@suse.de>
26431 PR middle-end/90610
26432 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26435 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26437 * config/i386/i386.md (@sub<mode>3_carry): Rename
26438 from sub<mode>3_carry.
26439 (@leave_<mode>): New expander.
26440 (*leave): Rename from leave.
26441 (*leave_rex64): Rename from leave_rex64.
26442 (@monitorx_<mode>): Rename from monitorx_<mode>.
26443 (@clzero_<mode>): Rename from clzero_<mode>.
26444 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26445 from sse3_monitor_<mode>.
26446 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26447 (*ix86_gen_leave): Ditto.
26448 (*ix86_gen_monitor): Ditto.
26449 (*ix86_gen_monitorx): Ditto.
26450 (*ix86_gen_clzero): Ditto.
26451 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26452 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26453 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26454 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26455 Use gen_sse3_monitor instead of ix86_gen_monitor.
26456 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26457 instead of ix86_gen_monitorx.
26458 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26459 instead of ix86_gen_clzero.
26460 * config/i386/i386-options.c (ix86_option_override_internal):
26461 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26462 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26464 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26466 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26467 Rename from tls_global_dynamic_64_<mode>.
26468 (@tls_local_dynamic_base_64_<mode>): Rename from
26469 tls_local_dynamic_base_64_<mode>.
26470 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26471 Remove indirect function.
26472 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26473 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26474 instead of ix86_gen_tls_global_dynamic_64.
26475 Use gen_tls_local_dynamic_base_64 instead of
26476 ix86_gen_tls_local_dynamic_base_64.
26477 * config/i386/i386-options.c (ix86_option_override_internal):
26478 Do not initialize ix86_gen_tls_global_dynamic_64 and
26479 ix86_gen_tls_local_dynamic_base_64.
26481 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26483 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26484 Rename from pro_epilogue_adjust_stack_<mode>_add.
26485 (@pro_epilogue_adjust_stack_sub_<mode>)
26486 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26487 (@allocate_stack_worker_probe_<mode>):
26488 Rename from allocate_stack_worker_probe_<mode>.
26489 (allocate_stack): Use gen_allocate_stack_worker_probe.
26490 (probe_stack): Use gen_probe_stack_1.
26491 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26492 (@adjust_stack_and_probe_<mode>): Rename from
26493 adjust_stack_and_probe<mode>.
26494 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26495 (stack_protect_set): Use gen_stack_protect_set_1.
26496 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26497 (stack_protect_test): Use gen_stack_protect_test_1.
26498 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26499 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26500 Remove indirect function.
26501 (*ix86_gen_adjust_stack_and_probe): Ditto.
26502 (*ix86_gen_probe_stack_range): Ditto.
26503 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26504 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26505 (ix86_adjust_stack_and_probe_stack_clash): Use
26506 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26507 (ix86_adjust_stack_and_probe): Ditto.
26508 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26509 of ix86_gen_probe_stack_range.
26510 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26511 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26512 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26513 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26514 CODE_FOR_stack_protect_test_{si,di}.
26515 * config/i386/i386-options.c (ix86_option_override_internal):
26516 Do not initialize ix86_gen_allocate_stack_worker,
26517 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26519 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26521 * doc/invoke.texi (Link Options): Many editorial changes around
26524 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26526 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26527 pre-Solaris 11 referene and most Studio compiler details.
26529 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26532 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26533 DImode to SImode in floating-point registers on 64-bit target.
26534 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26535 register_operand in xmpyu patterns.
26537 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26539 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26540 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26541 OMP_CLAUSE__REDUCTEMP_.
26542 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26543 OMP_CLAUSE__CONDTEMP_.
26544 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26545 * tree-pretty-print.c (dump_omp_clause): Likewise.
26546 * tree-nested.c (convert_nonlocal_omp_clauses,
26547 convert_local_omp_clauses): Likewise.
26548 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26549 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26550 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26552 (gimplify_omp_for): Warn and disable conditional modifier from
26553 lastprivate on loop iterators.
26554 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26556 * omp-general.c (omp_extract_for_data): Initialize it.
26557 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26559 (delete_omp_context): Delete it.
26560 (lower_lastprivate_conditional_clauses): New function.
26561 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26562 handle lastprivate conditional clauses.
26563 (lower_reduction_clauses): Add CLIST argument, emit it into
26564 the critical section if any.
26565 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26566 lower_reduction_clauses callers.
26567 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26568 to lower_lastprivate_clauses.
26569 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26570 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26571 clist into a critical section if not emitted there already by
26572 lower_reduction_clauses.
26573 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26575 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26576 conditional variables.
26577 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26579 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26580 expand_omp_for_static_chunk): Handle lastprivate conditional.
26581 (expand_omp_for): Handle fd.lastprivate_conditional like
26584 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26586 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26587 kernel does not exit cleanly.
26588 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26590 2019-05-24 Jason Merrill <jason@redhat.com>
26593 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26595 2019-05-24 Richard Biener <rguenther@suse.de>
26598 * tree-loop-distribution.c (struct partition): Add location
26600 (partition_alloc): Initialize all fields.
26601 (generate_memset_builtin): Use the location recorded in the
26602 partition for the generated call.
26603 (generate_memcpy_builtin): Likewise.
26604 (classify_partition): Record the location of a single store
26605 as location for the partition.
26607 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26609 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26612 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26615 * common/config/aarch64/aarch64-common.c
26616 (aarch64_rewrite_selected_cpu): Change local temporary variable
26617 type from unsigned long to uint64_t.
26618 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26619 aarch64_get_extension_string_for_isa_flags): Change declaration to
26620 match new definition by replacing unsigned long with uint64_t.
26622 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26625 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26626 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26627 Handle stack_protect_test_<mode> codegen similarly to corresponding
26630 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26632 * config/i386/darwin.h: Reject -mfentry*.
26633 * doc/sourcebuild.texi: Document mfentry target support.
26635 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26637 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26638 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26639 false for PC-relative functions.
26640 (rs6000_output_function_prologue): Change called function name to
26641 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26642 name,1" for PC-relative functions.
26643 (rs6000_elf_declare_function_name): Change called function name to
26644 rs6000_global_entry_point_prologue_needed_p.
26646 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26649 * config/i386/i386.c (gen_rtx_cost):
26650 Use ix86_tune_cost instead of ix86_cost.
26652 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26653 Michael Meissner <meissner@linux.ibm.com>
26654 Segher Boessenkool <segher@kernel.crashing.org>
26656 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26658 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26659 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26660 (rs6000_fndecl_pcrel_p): Likewise.
26661 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26662 error if -mpcrel is requested without -mcpu=future.
26663 (rs6000_opt_masks): Add entry for pcrel.
26664 (rs6000_fndecl_pcrel_p): New function.
26665 (rs6000_pcrel_p): Likewise.
26666 * config/rs6000/rs6000.opt (mpcrel): New option.
26667 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26669 2019-05-23 Jan Hubicka <jh@suse.cz>
26670 Martin Liska <mliska@suse.cz>
26672 PR tree-optimization/90576
26673 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26675 (aliasing_component_refs_p): Fix three way size compare conditional;
26676 give up earlier in case we can not decide on equivalence.
26678 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26679 Michael Meissner <meissner@linux.ibm.com>
26680 Segher Boessenkool <segher@kernel.crashing.org>
26682 * config.gcc: Add future cpu.
26683 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26684 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26686 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26687 (RS6000_CPU): New instantiation for future cpu.
26688 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26690 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26691 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26692 * config/rs6000/rs6000-tables.opt: Regenerate.
26693 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26694 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26695 (rs6000_machine_from_flags): Handle future cpu.
26696 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26697 PROCESSOR_POWER9 for now.
26698 (rs6000_adjust_cost): Likewise.
26699 (rs6000_issue_rate): Likewise.
26700 (rs6000_register_move_cost): Likewise.
26701 (rs6000_opt_masks): Add entry for future.
26702 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26703 (MASK_FUTURE): New #define.
26704 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26705 * config/rs6000/rs6000.opt (mfuture): New target option.
26706 * doc/invoke.texi (mcpu): Add future cpu.
26708 2019-05-23 Martin Liska <mliska@suse.cz>
26711 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26712 operation points to a temporary (pointed via tree_to_wide_ref)
26713 that is out of scope after the &.
26715 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26718 * doc/extend.texi (Function Names): Add missing word.
26720 2019-05-23 Richard Biener <rguenther@suse.de>
26722 PR tree-optimization/88440
26723 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26725 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26727 (generate_memcpy_builtin): Likewise.
26728 (distribute_loop): Pass in whether to only distribute patterns.
26729 (prepare_perfect_loop_nest): Also allow size optimization.
26730 (pass_loop_distribution::execute): When optimizing a loop
26731 nest for size allow pattern replacement.
26733 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26736 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26739 2019-05-23 Martin Liska <mliska@suse.cz>
26742 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26743 expression similarly to gimplify_decl_expr.
26745 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26747 * cse.c (cse_dump_path): s/dump_file/f.
26749 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26752 * diagnostic-format-json.cc: Include "selftest.h".
26753 (json_from_expanded_location): Only add "file" key for non-NULL
26755 (json_from_location_range): Don't add "start" and "finish"
26756 children if they are UNKNOWN_LOCATION.
26757 (selftest::test_unknown_location): New selftest.
26758 (selftest::test_bad_endpoints): New selftest.
26759 (selftest::diagnostic_format_json_cc_tests): New function.
26760 * json.cc (json::object::get): New function.
26761 (selftest::test_object_get): New selftest.
26762 (selftest::json_cc_tests): Call it.
26763 * json.h (json::object::get): New decl.
26764 * selftest-run-tests.c (selftest::run_tests): Call
26765 selftest::diagnostic_format_json_cc_tests.
26766 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26769 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26770 Andrew Stubbs <amd@codesourcery.com>
26772 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26773 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26774 (kernel): Rename to...
26775 (main_kernel): ... this.
26776 (load_image): Load _init_array and _fini_array kernels.
26777 (run): Add argument for kernel to run.
26778 (main): Run init_array_kernel before main_kernel, and
26779 fini_array_kernel after.
26780 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26781 amdgpu_hsa_kernel attribute on functions.
26782 (gcn_disable_constructors): Delete.
26783 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26784 * config/gcn/crt0.c (size_t): Define.
26785 (_init_array, _fini_array): New.
26786 (__preinit_array_start, __preinit_array_end,
26787 __init_array_start, __init_array_end,
26788 __fini_array_start, __fini_array_end): Declare weak references.
26790 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26792 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26794 2019-05-22 Jason Merrill <jason@redhat.com>
26796 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26798 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26801 * config/i386/i386-options.c (ix86_init_machine_status): Set
26802 stack_frame_required to true.
26803 * config/i386/i386.c (ix86_get_frame_size): New function.
26804 (ix86_frame_pointer_required): Replace get_frame_size with
26805 ix86_get_frame_size.
26806 (ix86_compute_frame_layout): Likewise.
26807 (ix86_find_max_used_stack_alignment): Changed to void. Set
26808 stack_frame_required.
26809 (ix86_finalize_stack_frame_flags): Always call
26810 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26811 ix86_get_frame_size.
26812 * config/i386/i386.h (machine_function): Add stack_frame_required.
26814 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26816 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26818 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26820 * common/config/aarch64/aarch64-common.c
26821 (struct aarch64_option_extension, struct processor_name_to_arch,
26822 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26823 aarch64_contains_opt,
26824 aarch64_get_extension_string_for_isa_flags): Change type of
26825 variables storing flags to uint64_t.
26826 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26827 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26828 * config/aarch64/aarch64.c (struct processor,
26829 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26830 aarch64_validate_march, aarch64_override_options,
26831 aarch64_option_print, aarch64_handle_attr_isa_flags,
26832 aarch64_declare_function_name, aarch64_start_file): Make flag
26833 variables uint64_t.
26834 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26835 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26836 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26837 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26838 * config/aarch64/driver-aarch64.c
26839 (struct aarch64_arch_extension, struct aarch64_core_data,
26840 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26841 flag variables uint64_t.
26842 * doc/invoke.texi: Add documentation for new arguments.
26844 2019-05-22 Richard Biener <rguenther@suse.de>
26846 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26848 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26850 2019-05-22 Martin Liska <mliska@suse.cz>
26853 * doc/extend.texi: Document the change.
26855 2019-05-22 Richard Biener <rguenther@suse.de>
26857 PR tree-optimization/90450
26858 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26859 (mem_ref_hasher::equal): Check it.
26860 (mem_ref_alloc): Initialize it.
26861 (gather_mem_refs_stmt): Set it.
26863 2019-05-22 Richard Biener <rguenther@suse.de>
26865 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26867 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26870 2019-05-22 Alan Modra <amodra@gmail.com>
26872 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26873 (ASM_CPU_SPEC): Conditionally add -many.
26874 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26875 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26876 (rs6000_file_start): ..extracted from here, and modified to
26878 (rs6000_output_function_prologue): Emit .machine as necessary.
26880 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26882 PR middle-end/90553
26883 * ira-lives.c (process_bb_node_lives): Consider defs
26884 for a call insn to be die before the call, not after.
26886 * function.c (assign_parm_setup_block): Raise alignment of
26887 stacked parameter only for STRICT_ALIGNMENT targets.
26889 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26891 * config/rs6000/constraints.md (define_register_constraint "wz"):
26893 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26894 RS6000_CONSTRAINT_wz.
26895 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26896 (rs6000_init_hard_regno_mode_ok): Adjust.
26897 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26898 * doc/md.texi (Machine Constraints): Adjust.
26900 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26902 * config/rs6000/constraints.md (define_register_constraint "wl"):
26904 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26905 RS6000_CONSTRAINT_wl.
26906 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26907 (rs6000_init_hard_regno_mode_ok): Adjust.
26908 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26909 * doc/md.texi (Machine Constraints): Adjust.
26911 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26913 * config/rs6000/constraints.md (define_register_constraint "wm"):
26915 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26916 RS6000_CONSTRAINT_wm.
26917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26918 (rs6000_init_hard_regno_mode_ok): Adjust.
26919 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26920 * doc/md.texi (Machine Constraints): Adjust.
26922 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26924 * config/rs6000/constraints.md (define_register_constraint "wk"):
26926 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26927 RS6000_CONSTRAINT_wk.
26928 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26929 (rs6000_init_hard_regno_mode_ok): Adjust.
26930 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26931 * doc/md.texi (Machine Constraints): Adjust.
26933 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26935 * config/rs6000/constraints.md (define_register_constraint "wj"):
26937 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26938 RS6000_CONSTRAINT_wj.
26939 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26940 (rs6000_init_hard_regno_mode_ok): Adjust.
26941 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26943 * config/rs6000/vsx.md: Ditto.
26944 * doc/md.texi (Machine Constraints): Adjust.
26946 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26948 * config/rs6000/constraints.md (define_register_constraint "wh"):
26950 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26951 RS6000_CONSTRAINT_wh.
26952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26953 (rs6000_init_hard_regno_mode_ok): Adjust.
26954 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26955 * doc/md.texi (Machine Constraints): Adjust.
26957 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26960 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26961 Avoid calling gen_lowpart with CONST operand.
26963 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26965 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26966 field template_last_to_copy.
26967 (ssa_create_duplicates): Set it, and use it. Attempt to
26968 preserve more debug stmts.
26970 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26972 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26973 (signbit<mode>2): New expander
26975 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26978 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26979 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26981 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26983 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26984 %ebx and %ecx bafore calling cpuid with leaf 1 or
26985 non-constant leaf argument.
26987 2019-05-21 Alan Modra <amodra@gmail.com>
26990 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26991 power9 direct move cost.
26993 2019-05-21 Richard Biener <rguenther@suse.de>
26995 PR middle-end/90510
26996 * fold-const.c (fold_read_from_vector): New function.
26997 * fold-const.h (fold_read_from_vector): Declare.
26998 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26999 single-element insert permutations. Canonicalize selector
27000 further and fix issue with last commit.
27002 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27004 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27005 parameter with default value false to declaration.
27006 (split_edges_for_insertion): New inline function. Wrapper for
27007 split_critical_edges with for_edge_insertion_p = true.
27008 * tree-cfg.c (split_critical_edges): Don't split non-critical
27009 edges if for_edge_insertion_p is false. Fix whitespace.
27010 * tree-ssa-pre.c (pass_pre::execute): Call
27011 split_edges_for_insertion instead of split_critical_edges.
27012 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27013 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27014 (pass_data_sink_code): Update function name in the comment.
27016 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27018 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27019 around is_value_included_in that knows how to handle BIT_AND_EXPR.
27020 (is_pred_expr_subset_of): Use the new function. Handle more cases where
27021 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27024 2019-05-21 Martin Liska <mliska@suse.cz>
27026 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27028 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27029 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27031 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27033 (rs6000_function_arg): Likewise.
27034 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27035 (rs6000_expand_ternop_builtin): Use interval syntax.
27036 (get_element_number): Likewise.
27037 (altivec_expand_builtin): Likewise.
27038 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27040 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27044 * function.h (struct function): Add calls_eh_return member.
27045 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27046 gimplifying __builtin_eh_return call.
27047 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27049 (expand_call_inline): Or in src_cfun->calls_eh_return into
27050 dst_cfun->calls_eh_return.
27051 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27052 cfun->calls_eh_return.
27053 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27054 * lto-streamer-out.c (output_struct_function_base): Write
27057 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27059 PR rtl-optimization/43147
27060 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27061 IX86_BUILTIN_SHUFPD.
27063 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27065 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27066 (refs_may_alias_p_1): ... here; update stats.
27067 (refs_may_alias_p): Do not update stats here.
27069 2019-05-20 Richard Biener <rguenther@suse.de>
27071 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27072 doesn't produce pointers.
27073 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27074 the first operand points to.
27076 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27078 * tree-ssa-alias.c (compare_sizes): New function.
27079 (sompare_type_sizes): New function
27080 (aliasing_component_refs_p): Use it.
27081 (indirect_ref_may_alias_decl_p): Likewise.
27083 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27085 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27087 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27089 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27090 (LIBLSAN_EARLY_SPEC): Likewise.
27091 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27093 2019-05-20 Martin Liska <mliska@suse.cz>
27095 * config/i386/i386.c (ix86_libc_has_fast_function):
27096 Add ATTRIBUTE_UNUSED for the argument.
27098 2019-05-20 Richard Biener <rguenther@suse.de>
27100 * gimple-match-head.c: Include vec-perm-indices.h.
27101 * generic-match-head.c: Likewise.
27102 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27104 * fold-const.c (fold_vec_perm): Export.
27105 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27106 (match.pd): ...here.
27108 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27110 * cfgloop.h (struct loop): Add simdlen member.
27111 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27112 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27113 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27114 as new argument to autovectorize_vector_sizes target hook. If
27115 loop->simdlen, pick up vector size where the vectorization factor
27116 is equal to loop->simd, and if there is none, fall back to the first
27118 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27120 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27121 * omp-general.c (omp_max_vf): Likewise.
27122 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27123 * tree-vect-slp.c (vect_slp_bb): Likewise.
27124 * target.def (autovectorize_vector_sizes): Add ALL argument and
27126 * doc/tm.texi: Adjust documentation.
27127 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27128 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27129 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27131 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27132 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27133 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27134 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27135 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27136 preferred vector size is not 512-bit or 256-bit, just put those
27137 unpreferred ones last.
27139 2019-05-20 Martin Liska <mliska@suse.cz>
27141 * targhooks.c (default_libc_has_fast_function): New function.
27142 * targhooks.h (default_libc_has_fast_function): Likewise.
27144 2019-05-20 Martin Liska <mliska@suse.cz>
27146 PR middle-end/90263
27147 * builtins.c (expand_builtin_memory_copy_args): When having a
27148 target with fast mempcpy implementation do now use memcpy.
27149 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27150 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27151 * doc/tm.texi: Likewise.
27152 * doc/tm.texi.in: Likewise.
27154 * expr.c (emit_block_move_hints): Add 2 new arguments.
27155 * expr.h (emit_block_move_hints): Bail out when libcall
27156 to memcpy would be used.
27158 2019-05-20 Martin Liska <mliska@suse.cz>
27160 * profile-count.c: Add vertical spacing in order
27161 to separate functions.
27162 * profile-count.h: Likewise.
27164 2019-05-20 Martin Liska <mliska@suse.cz>
27166 * profile-count.h: Do not use full qualified
27168 * profile-count.c (profile_count::to_frequency): Likewise.
27170 2019-05-20 Martin Liska <mliska@suse.cz>
27172 * profile-count.h (enum profile_quality): Use capital letters
27173 for enum value names. Use the adjusted names.
27174 * profile-count.c: Use the adjusted names.
27176 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27178 * config/rs6000/constraints.md (define_register_constraint "wH"):
27180 (define_register_constraint "wI"): Delete.
27181 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27182 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27183 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27184 (rs6000_init_hard_regno_mode_ok): Adjust.
27185 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27186 resp. "d", or with "wa" as appropriate, all with "p8v".
27187 * config/rs6000/vsx.md: Ditto.
27188 * doc/md.texi (Machine Constraints): Adjust.
27190 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27192 * config/rs6000/constraints.md (define_register_constraint "wy"):
27194 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27195 RS6000_CONSTRAINT_wy.
27196 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27197 (rs6000_init_hard_regno_mode_ok): Adjust.
27198 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27199 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27200 (define_mode_attr Fisa): New.
27201 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27202 * doc/md.texi (Machine Constraints): Adjust.
27204 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27206 * config/rs6000/constraints.md (define_register_constraint "wu"):
27208 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27209 RS6000_CONSTRAINT_wu.
27210 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27211 (rs6000_init_hard_regno_mode_ok): Adjust.
27212 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27214 (define_mode_attr Fa): Delete.
27215 * config/rs6000/vsx.md: Ditto.
27216 * doc/md.texi (Machine Constraints): Adjust.
27218 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27220 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27222 (define_register_constraint "wK"): Delete.
27223 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27224 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27225 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27226 (rs6000_init_hard_regno_mode_ok): Adjust.
27227 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27228 Replace "wK" constraint by "wH" with "p9v".
27229 * config/rs6000/vsx.md: Ditto.
27230 * doc/md.texi (Machine Constraints): Adjust.
27232 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27234 * config/rs6000/constraints.md (define_register_constraint "wb"):
27236 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27237 RS6000_CONSTRAINT_wb.
27238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27239 (rs6000_init_hard_regno_mode_ok): Adjust.
27240 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27241 * config/rs6000/vsx.md: Ditto.
27242 * doc/md.texi (Machine Constraints): Adjust.
27244 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27246 * config/rs6000/constraints.md (define_register_constraint "wo"):
27248 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27249 RS6000_CONSTRAINT_wo.
27250 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27251 (rs6000_init_hard_regno_mode_ok): Adjust.
27252 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27253 * config/rs6000/altivec.md: Ditto.
27254 * doc/md.texi (Machine Constraints): Adjust.
27256 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27258 * config/darwin-c.c (darwin_register_objc_includes): Do not
27259 prepend the sysroot when building gnu-runtime header search
27262 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27264 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27265 instead of direct output of the asm.
27267 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27269 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27270 argument to be type bool (was int before).
27271 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27272 at first use. Use type bool for some variables. Fix a theoretical
27273 eh_return bug for svr4.
27275 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27277 * config/rs6000/rs6000.md (isa): New attribute.
27278 (enabled): New attribute.
27280 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27282 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27283 assemble_start_function and assemble_end_function.
27285 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27287 PR middle-end/89433
27288 * omp-general.c (oacc_verify_routine_clauses): Change formal
27289 parameters. Add checking if already marked with an OpenACC
27290 'routine' directive. Adjust all users.
27292 PR middle-end/89433
27293 * omp-general.c (oacc_build_routine_dims): Move some of its
27295 (oacc_verify_routine_clauses): ... this new function.
27296 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27298 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27300 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27301 formating of picbase labels to match other ports.
27303 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27305 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27306 in the generated code.
27308 2019-05-16 Martin Sebor <msebor@redhat.com>
27310 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27311 identifiers, keywords, operators, and types in diagnostics. Correct
27312 quoting, spelling, and sentence capitalization issues.
27313 (expand_builtin_atomic_is_lock_free): Same.
27314 (fold_builtin_next_arg): Same.
27315 * cfgexpand.c (expand_one_var): Same.
27316 (tree_conflicts_with_clobbers_p): Same.
27317 (expand_asm_stmt): Same.
27318 (verify_loop_structure): Same.
27319 * cgraphunit.c (process_function_and_variable_attributes): Same.
27320 * collect-utils.c (collect_execute): Same.
27321 * collect2.c (maybe_run_lto_and_relink): Same.
27322 (is_lto_object_file): Same.
27323 (scan_prog_file): Same.
27324 * convert.c (convert_to_real_1): Same.
27325 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27326 * except.c (verify_eh_tree): Same.
27327 * gcc.c (execute): Same.
27328 (eval_spec_function): Same.
27329 (run_attempt): Same.
27330 (driver::set_up_specs): Same.
27331 (compare_debug_auxbase_opt_spec_function): Same.
27332 * gcov-tool.c (unlink_gcda_file): Same.
27334 (do_rewrite): Same.
27335 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27336 * gimplify.c (gimplify_asm_expr): Same.
27337 (gimplify_adjust_omp_clauses): Same.
27338 * hsa-gen.c (gen_hsa_addr_insns): Same.
27339 (gen_hsa_insns_for_load): Same.
27340 (gen_hsa_cmp_insn_from_gimple): Same.
27341 (gen_hsa_insns_for_operation_assignment): Same.
27342 (gen_get_level): Same.
27343 (gen_hsa_alloca): Same.
27344 (omp_simple_builtin::generate): Same.
27345 (gen_hsa_atomic_for_builtin): Same.
27346 (gen_hsa_insns_for_call): Same.
27347 * input.c (dump_location_info): Same.
27348 * ipa-devirt.c (compare_virtual_tables): Same.
27349 * ira.c (ira_setup_eliminable_regset): Same.
27350 * lra-assigns.c (lra_assign): Same.
27351 * lra-constraints.c (lra_constraints): Same.
27352 * lto-streamer-in.c (lto_input_mode_table): Same.
27353 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27354 (merge_and_complain): Same.
27355 (compile_offload_image): Same.
27356 (compile_images_for_offload_targets): Same.
27357 (debug_objcopy): Same.
27360 * opts.c (print_specific_help): Same.
27361 (parse_no_sanitize_attribute): Same.
27362 (print_help): Same.
27363 (handle_param): Same.
27364 * plugin.c (add_new_plugin): Same.
27365 (parse_plugin_arg_opt): Same.
27366 (try_init_one_plugin): Same.
27367 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27368 operators, and types in diagnostics. Correct quoting and spelling
27370 * read-rtl-function.c (parse_edge_flag_token): Same.
27371 (function_reader::parse_enum_value): Same.
27372 * reg-stack.c (check_asm_stack_operands): Same.
27373 * regcprop.c (validate_value_data): Same.
27374 * sched-rgn.c (make_pass_sched_fusion): Same.
27375 * stmt.c (check_unique_operand_names): Same.
27376 * targhooks.c (default_target_option_pragma_parse): Same.
27377 * tlink.c (recompile_files): Same.
27378 * toplev.c (process_options): Same.
27379 (do_compile): Same.
27380 * trans-mem.c (diagnose_tm_1): Same.
27381 (ipa_tm_scan_irr_block): Same.
27382 (ipa_tm_diagnose_transaction): Same.
27383 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27384 format a tree code name in a diagnostic.
27385 (verify_types_in_gimple_min_lval): Same.
27386 (verify_types_in_gimple_reference): Same.
27387 (verify_gimple_call): Same.
27388 (verify_gimple_assign_unary): Same.
27389 (verify_gimple_assign_binary): Same.
27390 (verify_gimple_assign_ternary): Same.
27391 (verify_gimple_assign_single): Same.
27392 (verify_gimple_switch): Same.
27393 (verify_gimple_label): Same.
27394 (verify_gimple_phi): Same.
27395 (verify_gimple_in_seq): Same.
27396 (verify_eh_throw_stmt_node): Same.
27397 (collect_subblocks): Same.
27398 (gimple_verify_flow_info): Same.
27399 (do_warn_unused_result): Same.
27400 * tree-inline.c (expand_call_inline): Same.
27401 * tree-into-ssa.c (update_ssa): Same.
27402 * tree.c (tree_int_cst_elt_check_failed): Same.
27403 (tree_vec_elt_check_failed): Same.
27404 (omp_clause_operand_check_failed): Same.
27405 (verify_type_variant): Same.
27406 (verify_type): Same.
27407 * value-prof.c (verify_histograms): Same.
27408 * varasm.c (assemble_start_function): Same.
27410 2019-05-16 Martin Sebor <msebor@redhat.com>
27412 * config/i386/i386-expand.c (get_element_number): Quote keywords
27413 and other internal names in diagnostics. Adjust other diagnostic
27414 formatting issues noted by -Wformat-diag.
27415 * config/i386/i386-features.c
27416 (ix86_mangle_function_version_assembler_name): Same.
27417 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27418 * config/i386/i386.c (ix86_function_type_abi): Same.
27419 (ix86_function_ms_hook_prologue): Same.
27420 (classify_argument): Same.
27421 (ix86_expand_prologue): Same.
27422 (ix86_md_asm_adjust): Same.
27423 (ix86_memmodel_check): Same.
27425 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27427 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27428 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27431 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27434 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27435 intrinsics without SSE/SSE2/SSSE3.
27436 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27438 (*mmx_uavgv8qi3): Likewise.
27440 2019-05-17 Richard Biener <rguenther@suse.de>
27442 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27443 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27445 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27447 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27448 vec_sldw insn pattern.
27450 2019-05-17 Richard Biener <rguenther@suse.de>
27452 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27454 2019-05-17 Martin Liska <mliska@suse.cz>
27457 * toplev.c (output_stack_usage): With LTO and sanitizer it
27458 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27459 has no file location.
27461 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27464 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27465 sz0 is equal to sz1, instead return false in that case.
27467 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27468 has non-constant expression, force sctx.lane and use two
27469 argument IFN_GOMP_SIMD_LANE instead of single argument.
27470 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27471 two argument IFN_GOMP_SIMD_LANE without lhs.
27472 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27474 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27476 (LOOP_REQUIRES_VERSIONING): Or in
27477 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27478 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27480 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27481 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27482 from simd if clause if needed.
27484 2019-05-16 Richard Biener <rguenther@suse.de>
27486 * tree-affine.c (expr_to_aff_combination): New function split
27488 (tree_to_aff_combination): ... here.
27489 (aff_combination_expand): Avoid building a GENERIC tree.
27491 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27493 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27494 assemble_start_function and assemble_end_function calls.
27495 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27496 assemble_start_function and assemble_end_function.
27497 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27498 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27499 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27500 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27501 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27502 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27503 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27504 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27505 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27506 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27507 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27508 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27510 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27511 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27512 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27513 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27514 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27515 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27516 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27517 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27518 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27519 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27520 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27521 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27522 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27523 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27525 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27526 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27527 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27529 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27531 * tree-ssa-alias.c (alias_stats): Add
27532 aliasing_component_refs_p_may_alias and
27533 aliasing_component_refs_p_no_alias.
27534 (dump_alias_stats): Print aliasing_component_refs_p stats.
27535 (aliasing_component_refs_p): Update stats.
27537 2019-05-16 Martin Liska <mliska@suse.cz>
27540 * multiple_target.c (expand_target_clones): Do not allow
27541 target_clones being used with a symbol that is an alias.
27543 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27545 PR tree-optimization/90394
27546 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27547 positives rather than ICE for cases where (code2 == NE_EXPR
27548 && code1 == BIT_AND_EXPR).
27550 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27553 * tree-core.h (struct tree_decl_common): Document
27554 decl_nonshareable_flag for PARM_DECLs.
27555 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27556 * calls.c (expand_call): Don't try tail call if caller
27557 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27558 passed on the stack and callee needs to pass any arguments on the
27560 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27561 else if instead of series of mutually exclusive ifs. Handle
27562 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27563 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27565 * lto-streamer.h (LTO_major_version): Bump to 9.
27567 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27569 PR tree-optimization/90106
27570 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27571 new parameter as new internal function call, also move it to new
27573 (use_internal_fn): Pass internal function call to
27574 shrink_wrap_one_built_in_call_with_conds.
27576 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27578 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27580 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27581 safelen_int and set loop->dont_vectorize.
27583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27586 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27588 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27590 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27591 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27592 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27598 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27599 define_insn_and_split to support SSE emulation.
27600 (*vec_extractv2sf_0): Likewise.
27601 (*vec_extractv2sf_1): Likewise.
27602 (*vec_extractv2si_0): Likewise.
27603 (*vec_extractv2si_1): Likewise.
27604 (*vec_extractv2si_zext_mem): Likewise.
27605 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27606 (vec_extractv2sf_1 splitter): Likewise.
27607 (vec_extractv2sfsf): Likewise.
27608 (vec_setv2si): Likewise.
27609 (vec_extractv2si_1 splitter): Likewise.
27610 (vec_extractv2sisi): Likewise.
27611 (vec_setv4hi): Likewise.
27612 (vec_extractv4hihi): Likewise.
27613 (vec_setv8qi): Likewise.
27614 (vec_extractv8qiqi): Likewise.
27615 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27616 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27617 (vec_extractv2sisi): Likewise.
27618 (vec_extractv4hihi): Likewise.
27619 (vec_extractv8qiqi): Likewise.
27620 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27621 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27622 (vec_initv2sisi): Likewise.
27623 (vec_initv4hihi): Likewise.
27624 (vec_initv8qiqi): Likewise.
27625 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27626 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27627 (vec_setv4hi): Likewise.
27628 (vec_setv8qi): Likewise.
27630 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27633 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27634 TARGET_MMX_WITH_SSE.
27635 (MMXMODE:*mov<mode>_internal): Likewise.
27636 (MMXMODE:movmisalign<mode>): Likewise.
27638 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27641 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27642 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27643 (sse2_cvtpd2pi): Ditto.
27644 (sse2_cvttpd2pi): Ditto.
27645 (*vec_concatv2sf_sse4_1): Ditto.
27646 (*vec_concatv2sf_sse): Ditto.
27647 (*vec_concatv2si_sse4_1): Ditto.
27648 (*vec_concatv2si): Ditto.
27649 (*vec_concatv4si_0): Ditto.
27650 (*vec_concatv2di_0): Ditto.
27652 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27655 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27660 * config/i386/sse.md (ssse3_palignrdi): Changed to
27661 define_insn_and_split to support SSE emulation.
27663 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27666 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27671 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27672 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27678 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27679 or TARGET_MMX_WITH_SSE.
27680 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27685 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27690 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27691 Changed to define_insn_and_split to support SSE emulation.
27693 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27696 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27697 Changed to define_insn_and_split to support SSE emulation.
27699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27702 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27703 (*mmx_<emms>): This.
27704 (mmx_<emms>): New expander.
27706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27709 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27711 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27716 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27721 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27726 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27727 TARGET_MMX_WITH_SSE.
27728 (*mmx_uavgv4hi3): Add SSE emulation.
27730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27733 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27734 and TARGET_MMX_WITH_SSE.
27735 (*mmx_uavgv8qi3): Add SSE emulation.
27737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27740 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27741 maskmovdqu for __MMX_WITH_SSE__.
27743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27746 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27747 TARGET_MMX and TARGET_MMX_WITH_SSE.
27748 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27753 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27754 define_insn_and_split to support SSE emulation.
27756 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27759 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27760 and TARGET_MMX_WITH_SSE.
27761 (mmx_<code>v8qi3): Likewise.
27762 (smaxmin:<code>v4hi3): New.
27763 (umaxmin:<code>v8qi3): Likewise.
27764 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27765 (umaxmin:*mmx_<code>v8qi3): Likewise.
27767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27770 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27771 TARGET_MMX_WITH_SSE.
27772 (*mmx_pinsrw): Add SSE emulation.
27774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27777 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27782 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27783 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27789 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27790 (sse_cvttps2pi): Likewise.
27792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27795 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27796 TARGET_MMX_WITH_SSE.
27797 (mmx_pshufw_1): Add SSE emulation.
27798 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27799 TARGET_MMX_WITH_SSE to support SSE emulation.
27801 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27804 * config/i386/constraints.md (Yw): New constraint.
27805 * config/i386/mmx.md (*vec_dupv2si): Changed to
27806 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27807 support SSE emulation.
27809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27812 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27813 TARGET_MMX_WITH_SSE.
27814 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27816 (mmx_gt<mode>3): Likewise.
27818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27821 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27822 TARGET_MMX_WITH_SSE. Add SSE support.
27824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27827 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27828 TARGET_MMX_WITH_SSE.
27829 (any_logic:<code><mode>3): New.
27830 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27833 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27836 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27837 TARGET_MMX_WITH_SSE. Add SSE emulation.
27838 (mmx_<shift_insn><mode>3): Likewise.
27839 (ashr<mode>3): New.
27840 (<shift_insn><mode>3): Likewise.
27842 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27845 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27846 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27848 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27851 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27852 TARGET_MMX_WITH_SSE.
27853 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27859 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27860 TARGET_MMX_WITH_SSE.
27862 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27868 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27869 (plusminus:mmx_<plusminus_insn><mode>3): Check
27870 TARGET_MMX_WITH_SSE.
27871 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27872 (<plusminus_insn><mode>3): New.
27873 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27874 (*mmx_<plusminus_insn><mode>3): Likewise.
27876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27879 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27880 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27882 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27883 define_insn_and_split to support SSE emulation.
27884 (mmx_punpcklbw): Likewise.
27885 (mmx_punpckhwd): Likewise.
27886 (mmx_punpcklwd): Likewise.
27887 (mmx_punpckhdq): Likewise.
27888 (mmx_punpckldq): Likewise.
27890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27891 Uros Bizjak <ubizjak@gmail.com>
27894 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27896 (ix86_split_mmx_pack): Likewise.
27897 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27899 (ix86_split_mmx_pack): Likewise.
27900 * config/i386/i386.md (mmx_isa): New.
27901 (enabled): Also check mmx_isa.
27902 * config/i386/mmx.md (any_s_truncate): New code iterator.
27903 (s_trunsuffix): New code attr.
27904 (mmx_packsswb): Removed.
27905 (mmx_packssdw): Likewise.
27906 (mmx_packuswb): Likewise.
27907 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27908 MMX packsswb/packuswb with SSE2.
27909 (mmx_packssdw): Likewise.
27910 * config/i386/predicates.md (register_mmxmem_operand): New.
27912 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27915 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27916 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27917 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27918 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27919 (ix86_vector_mode_supported_p): Likewise.
27920 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27922 2019-05-15 Martin Liska <mliska@suse.cz>
27924 PR middle-end/90478
27925 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27926 Check for overflow.
27928 2019-05-15 Richard Biener <rguenther@suse.de>
27930 * tree-into-ssa.c (pass_build_ssa::execute): Run
27931 update_address_taken before going into SSA.
27933 2019-05-15 Richard Biener <rguenther@suse.de>
27935 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27936 as __BIT_FIELD_REF with type with -gimple.
27938 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27940 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27941 semantically equivalent branches (left over after prior refactorings).
27943 2019-05-15 Richard Biener <rguenther@suse.de>
27945 PR tree-optimization/88828
27946 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27949 2019-05-14 Richard Biener <rguenther@suse.de>
27951 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27952 as __VIEW_CONVERT with -gimple.
27954 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27957 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27960 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27962 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27963 define_split to become a define_insn_and_split.
27965 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27967 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27969 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27970 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27971 (sibcall_epilogue): Adjust.
27972 (epilogue): Adjust.
27974 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27976 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27977 to unsupported ones.
27978 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27979 * config.host: Likewise.
27980 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27981 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27982 __svr4__]: Remove "brand" fallback.
27983 [!KSTAT_DATA_STRING]: Remove.
27984 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27986 (comdat_group): Likewise.
27987 (set_have_as_tls): Likewise.
27988 (gcc_cv_target_dl_iterate_phdr): Likewise.
27989 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27990 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27991 * configure: Regenerate.
27992 * doc/install.texi: Simplify Solaris target triplets.
27993 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27994 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27995 Remove Solaris 10 references.
27996 Remove obsolete Solaris bug reference.
27997 (Specific, sparc-sun-solaris2.10): Remove.
27999 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
28001 * config/i386/i386.md (any_div): New code iterator.
28002 (paired_mod): New code attribute.
28003 (sgnprefix): Handle DIV and UDIV RTXes.
28005 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28006 and udivmod<mode>4 patterns using any_div code iterator.
28007 (divmod splitters): Macroize splitters using any_div code iterator.
28008 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28009 (*udivmodsi4_pow2_zext_2): Ditto.
28010 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28011 and *udivmod<mode>4_noext patterns using any_div code iterator.
28012 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28013 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28014 patterns using any_div code iterator.
28015 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28016 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28017 patterns using any_div code iterator.
28018 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28019 udivmodhiqi3 patterns using any_extend code iterator.
28021 2019-05-14 Richard Biener <rguenther@suse.de>
28022 H.J. Lu <hongjiu.lu@intel.com>
28024 PR tree-optimization/88828
28025 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28026 permuting in a single non-constant element not extracted
28029 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28031 * internal-fn.def (SIGNBIT): New.
28032 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28034 (signbitv4sf2): Likewise.
28036 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28039 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28040 next insn when the SRC reg is dead.
28042 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28044 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28045 (alloc_cand_and_find_basis): Ditto.
28046 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28047 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28048 (create_add_imm_cand, slsr_process_cast): Ditto.
28049 (slsr_process_copy, replace_mult_candidate): Ditto.
28050 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28051 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28052 (pass_strength_reduction::execute): Init the first NULL element.
28054 2019-05-13 Nathan Sidwell <nathan@acm.org>
28056 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28057 (run_attempt): Reformat line break.
28059 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28062 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28063 data registers in sibcall epilogues.
28064 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28066 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28069 * configure.ac (--enable-frame-pointer):
28070 Disable by default for cygwin and mingw.
28071 * configure: Regenerate.
28073 2019-05-13 Nathan Sidwell <nathan@acm.org>
28075 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28077 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28078 (gen_member_die): Move abstract origin check earlier. Only VARs
28079 can be static_inline_p. Simplify splicing control flow.
28081 2019-05-13 Richard Biener <rguenther@suse.de>
28083 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28085 (vect_build_slp_tree_1): Likewise.
28087 2019-05-13 Richard Biener <rguenther@suse.de>
28089 PR tree-optimization/90402
28090 * tree-if-conv.c (tree_if_conversion): Value number only
28091 the loop body by making the latch an exit of the region
28093 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28095 (do_rpo_vn): Deal with multiple edges into the entry block
28096 that are not backedges inside the region by skipping PHIs
28097 of the entry block.
28099 2019-05-13 Richard Biener <rguenther@suse.de>
28101 PR tree-optimization/90316
28102 * tree-ssa-pre.c (insert_aux): Fold into ...
28103 (insert): ... this function. Use a RPO walk to reduce the
28104 number of required iterations.
28106 2019-05-13 Martin Liska <mliska@suse.cz>
28108 PR tree-optimization/90416
28109 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28110 string instead of passing the second part as va_arg argument.
28112 2019-05-13 Martin Liska <mliska@suse.cz>
28114 PR gcov-profile/90380
28115 * gcov.c (handle_cycle): Do not support zero cycle count,
28116 it should not be possible.
28117 (path_contains_zero_cycle_arc): New function.
28118 (circuit): Ignore zero cycle arc counts.
28120 2019-05-13 Martin Liska <mliska@suse.cz>
28122 PR gcov-profile/90380
28123 * gcov.c (enum loop_type): Remove the enum and
28125 (handle_cycle): Assert that we should not reach
28127 (circuit): Use loop_found instead of a tri-state loop_type.
28128 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28131 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28134 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28135 (ix86_output_indirect_branch_via_reg): Use output mechanism
28136 accounting for __USER_LABEL_PREFIX__.
28137 (ix86_output_indirect_branch_via_push): Likewise.
28138 (ix86_output_function_return): Likewise.
28139 (ix86_output_indirect_function_return): Likewise.
28141 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28143 * doc/md.texi: Document use of code attributes in rtx patterns.
28144 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28145 * read-rtl.c (find_code): Split out search loops into...
28146 (maybe_find_code): ...this new function.
28147 (check_code_iterator): Make the error message more informative.
28148 (check_code_attribute): New function.
28149 (rtx_reader::rtx_alloc_for_name): Likewise.
28150 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28151 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28152 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28153 <max_opp> directly as an rtx code instead of via a match_operator.
28154 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28155 (<su>abd<mode>_3): Update accordingly.
28157 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28159 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28160 is given, print the state of the EH "save world" computation for
28163 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28166 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28167 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28169 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28171 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28172 Use pinsrd for TARGET_SSE4_1.
28173 * config/i386/sse.md (movdi_to_sse): Ditto.
28175 2019-05-10 Richard Biener <rguenther@suse.de>
28177 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28178 (do_rpo_vn): Initialize next_value_id.
28180 2019-05-10 Martin Liska <mliska@suse.cz>
28182 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28185 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28187 PR tree-optimization/90385
28188 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28189 arguments of the exit phis.
28192 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28193 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28195 (copy_tree_body_r): Likewise.
28196 (copy_fn): Set id.do_not_fold to true.
28198 2019-05-10 Martin Liska <mliska@suse.cz>
28200 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28201 Reapply changes from r269790.
28203 2019-05-10 Martin Liska <mliska@suse.cz>
28205 PR middle-end/90340
28206 * doc/invoke.texi: New params.
28207 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28208 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28209 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28211 * tree-switch-conversion.h (struct jump_table_cluster):
28214 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28216 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28218 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28220 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28222 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28224 PR rtl-optimization/88879
28225 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28227 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28230 * config/arm/arm.c (callee_saved_reg_p): Move before
28231 thumb_find_work_register.
28232 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28233 thumb_find_work_register. Only call df_get_live_out once.
28234 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28235 (thumb_find_work_register): Use
28236 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28237 algorithms to locate a spare call clobbered reg.
28239 2019-05-09 Martin Liska <mliska@suse.cz>
28241 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28242 and MAX_EXPR in GIMPLE FE format.
28244 2019-05-09 Martin Liska <mliska@suse.cz>
28246 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28247 * gimple-pretty-print.c (dump_gimple_bb_header):
28249 (pp_cfg_jump): Dump edge probability.
28250 * profile-count.c (profile_quality_as_string): Simplify
28251 with a static array.
28252 (parse_profile_quality): New function.
28253 (profile_count::dump): Simplify with a static array.
28254 (profile_count::from_gcov_type): Add new argument.
28255 * profile-count.h (parse_profile_quality): Likewise.
28256 * predict.h (set_hot_bb_threshold): New.
28257 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28259 * predict.c (get_hot_bb_threshold): Set from the new param.
28260 (set_hot_bb_threshold): New.
28262 2019-05-09 Richard Biener <rguenther@suse.de>
28264 PR tree-optimization/90395
28265 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28266 rewrite vector stores that throw internally.
28268 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28270 * cif-code.def (CHKP): Remove.
28273 * configure.ac (--enable-frame-pointer): Disable by default for
28275 * configure: Regenerate.
28277 2019-05-09 Alan Modra <amodra@gmail.com>
28280 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28281 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28282 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28283 cost for general <-> vsx when direct moves are available.
28284 Cost union classes at minimal cost for any reg in the class.
28285 Correct calculation for moves between vsx, float, and altivec.
28286 Don't return a low cost for moves between special regs. Don't
28287 use hard coded register numbers.
28288 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28289 (rs6000_ira_change_pseudo_allocno_class): New function.
28290 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28291 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28293 (movsi_internal1): Don't disparage vector alternatives.
28294 (mov<mode>_internal): Likewise, excepting alternative that
28296 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28297 we <- b alternative.
28299 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28302 PR tree-optimization/89060
28303 * tree-ssa-live.h (live_vars_map): New typedef.
28304 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28305 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28306 (struct compute_live_vars_data): New type.
28307 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28308 live_vars_at_stmt, destroy_live_vars): New functions.
28309 * tree-tailcall.c: Include tree-ssa-live.h.
28310 (live_vars, live_vars_vec): New global variables.
28311 (find_tail_calls): Perform variable life analysis before punting.
28312 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28313 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28315 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28316 Perform variable life analysis to select variables that really need
28318 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28319 instead set id->eh_landing_pad_dest and assert it is the same.
28320 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28322 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28323 Richard Earnshaw <rearnsha@arm.com>
28326 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28328 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28329 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28330 register if both the epilogue and prologue can use call-clobbered
28332 (thumb1_unexpanded_epilogue): Use
28333 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28334 picking temporaries for restoring high regs to match that of the
28335 prologue where possible.
28336 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28337 the list of work registers. Detect if the return address is still live
28338 at the end of the prologue and avoid using it for a work register if so.
28339 If the return address is not live, add LR to the list of pushable regs
28340 after the first pass.
28342 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28344 PR tree-optimization/90078
28345 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28346 (INFTY): Increase the value for infinite cost.
28347 (struct comp_cost): Promote type of members to int64_t.
28348 (infinite_cost): Don't set complexity in initialization.
28349 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28350 overflows to infinite_cost.
28351 (adjust_setup_cost): Promote type of parameter and cost computation
28353 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28355 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28356 cost computation to int64_t.
28357 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28358 int64_t's format specifier in dump.
28360 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28362 PR tree-optimization/90240
28363 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28364 with respect to scaling factor pre-computed for each basic block.
28365 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28366 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28367 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28368 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28369 live range for array of loop's basic blocks. Cleanup aux field of
28370 loop's basic blocks.
28372 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28374 PR tree-optimization/90356
28375 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28377 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28379 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28380 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28381 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28382 (ix86_handle_option): Handle -mavx512bf16.
28383 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28385 * config/i386/avx512bf16vlintrin.h: New.
28386 * config/i386/avx512bf16intrin.h: New.
28387 * config/i386/cpuid.h (bit_AVX512BF16): New.
28388 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28389 * config/i386/i386-builtin-types.def: Add new types.
28390 * config/i386/i386-builtin.def: Add new builtins.
28391 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28393 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28394 (ix86_option_override_internal): Handle BF16.
28395 (ix86_valid_target_attribute_inner_p): Ditto.
28396 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28397 * config/i386/i386-builtin.c (enum processor_features): Add
28399 (static const _isa_names_table isa_names_table): Ditto.
28400 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28401 (PTA_AVX512BF16): Ditto.
28402 * config/i386/i386.opt: Add -mavx512bf16.
28403 * config/i386/immintrin.h: Include avx512bf16intrin.h
28404 and avx512bf16vlintrin.h.
28405 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28406 avx512f_cvtneps2bf16_<mode><mask_name>,
28407 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28408 * config/i386/subst.md (mask_half): Add new subst.
28409 * doc/invoke.texi: Document -mavx512bf16.
28411 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28413 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28414 Delete declaration.
28415 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28416 (rs6000_debug_legitimize_reload_address): Delete.
28417 (rs6000_legitimize_reload_address_ptr): Delete.
28418 (rs6000_option_override_internal): Adjust.
28419 (mem_operand_gpr): Adjust comment.
28420 (legitimate_lo_sum_address_p): Ditto.
28421 (rs6000_legitimize_reload_address): Delete.
28422 (rs6000_debug_legitimize_reload_address): Delete.
28423 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28425 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28428 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28429 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28430 to compute vector element selector for both constant and variable
28433 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28435 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28436 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28437 ashrdi3_cvt using SWI48 mode iterator.
28439 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28441 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28442 (aarch64_<su>abd<mode>_3): Likewise.
28443 (*aarch64_<su>abd<mode>_3): New define_insn.
28444 (<sur>sad<vsi2qi>): New define_expand.
28445 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28446 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28447 (build_vect_cond_expr): Likewise.
28449 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28451 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28452 clobbers outside of accessible_reg_set.
28453 * config/i386/i386.c (ix86_conditional_register_usage):
28454 Disable register sets by clearing corresponding bits in
28455 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28456 call_used_regs and don't clear corresponding reg_names array members.
28458 2019-05-07 Richard Biener <rguenther@suse.de>
28460 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28461 not specified still compute a comp_vectype for invariant
28464 2019-05-07 Richard Biener <rguenther@suse.de>
28466 PR tree-optimization/90316
28467 * tree-ssa-pre.c (translate_vuse_through_block): When
28468 same_valid is NULL do not bother to search for a virtual
28470 (phi_translate_1): When operands changed we cannot keep
28471 the same value-number so do not bother to ask whether
28472 that's possible from translate_vuse_through_block.
28474 2019-05-07 Martin Liska <mliska@suse.cz>
28476 * bitmap.c (bitmap_register): Come up with
28477 alloc_descriptor_max_uid and assign it for
28479 (register_overhead): Use get_descriptor as
28481 (release_overhead): New.
28482 (bitmap_elem_to_freelist): Call it.
28483 (bitmap_elt_clear_from): Likewise.
28484 (bitmap_obstack_free): Likewise.
28485 (bitmap_move): Sensitively release memory.
28486 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28487 (bitmap_initialize): Initialize alloc_descriptor to zero.
28488 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28490 2019-05-07 Richard Biener <rguenther@suse.de>
28492 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28493 we build a SLP node. Remove max_size and limiting.
28494 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28496 2019-05-07 Richard Biener <rguenther@suse.de>
28498 PR tree-optimization/90316
28499 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28500 limit by reference.
28501 (walk_non_aliased_vuses): Take walking limit argument.
28502 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28503 walking if it is reached instead of just counting.
28504 (get_continuation_for_phi): Likewise.
28505 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28506 limiting to the callback.
28507 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28508 (vn_reference_lookup_3): Likewise.
28509 (vn_reference_lookup_pieces): Likewise.
28510 (vn_reference_lookup): Likewise.
28511 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28512 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28513 (avail_exprs_stack::lookup_avail_expr): Likewise.
28515 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28517 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28518 for comparaible types in the second direction even if first one
28519 hits incomparable type.
28521 2019-05-07 Richard Biener <rguenther@suse.de>
28524 * lto-wrapper.c (debug_objcopy): Use the original filename
28525 including archive offset for the filename used for -save-temps.
28527 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28529 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28532 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28533 Hongtao Liu <hongtao.liu@intel.com>
28537 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28538 Modified, original implementation isn't correct.
28540 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28542 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28543 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28544 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28545 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28546 (FRAME_POINTER_REGNUM): Change numbering.
28547 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28548 (alt_reg_names): Adjust.
28549 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28551 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28552 (DWARF_FRAME_REGISTERS): Delete.
28553 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28554 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28556 (REG_ALLOC_ORDER): Adjust.
28557 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28558 (REG_CLASS_CONTENTS): Adjust.
28559 (RETURN_ADDR_RTX): Change comment.
28560 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28562 (REGISTER_NAMES): Adjust.
28563 (ADDITIONAL_REGISTER_NAMES): Adjust.
28564 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28566 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28568 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28570 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28571 (DWARF_FRAME_REGISTERS): Adjust.
28572 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28574 (REG_ALLOC_ORDER): Adjust.
28575 (enum reg_class): Delete SPR_REGS.
28576 (REG_CLASS_NAMES): Delete SPR_REGS.
28577 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28578 (REGISTER_NAMES): Adjust.
28579 (ADDITIONAL_REGISTER_NAMES): Adjust.
28580 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28581 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28582 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28583 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28584 (htm_spr_regno): Delete.
28585 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28587 (rs6000_dbx_register_number): Adjust.
28589 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28591 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28593 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28595 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28596 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28598 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28600 PR tree-optimization/88709
28601 PR tree-optimization/90271
28602 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28603 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28604 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28606 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28607 of the store merging group is larger than
28608 PARAM_STORE_MERGING_MAX_SIZE parameter.
28609 (split_group): Add bzero_first argument. If set, always emit first
28610 the first store which must be = {} of the whole area and then for the
28611 rest of the stores consider all zero bytes as paddings.
28612 (imm_store_chain_info::output_merged_store): Check if first store
28613 is = {} of the whole area and if yes, determine which setting of
28614 bzero_first for split_group gives smaller number of stores. Adjust
28615 split_group callers.
28616 (lhs_valid_for_store_merging_p): Allow decls.
28617 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28619 (pass_store_merging::process_store): Likewise.
28621 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28624 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28625 handling of V1TImode.
28627 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28630 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28631 and enable_frame_pointer ...
28632 * configure.ac: ... here. Update help strings for
28633 --enable-frame-pointer.
28634 * configure: Regenerate.
28635 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28636 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28637 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28638 (USE_X86_64_FRAME_POINTER): Ditto.
28640 2019-05-06 Martin Liska <mliska@suse.cz>
28642 * config.gcc: Append to target_gtfiles and fix indentation.
28644 2019-05-06 Richard Biener <rguenther@suse.de>
28646 PR tree-optimization/90358
28647 * tree-vect-stmts.c (get_group_load_store_type): Properly
28648 detect unused upper half of load.
28649 (vectorizable_load): Likewise.
28651 2019-05-06 Richard Biener <rguenther@suse.de>
28653 PR tree-optimization/88828
28654 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28655 (simplify_vector_constructor): ...here. Handle constants in
28658 2019-05-06 Richard Biener <rguenther@suse.de>
28660 PR tree-optimization/90328
28661 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28662 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28663 is valid in the loop nest before using it.
28664 (initialize_data_dependence_relation): Adjust.
28665 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28666 loop as loop-nest to dr_may_alias_p.
28668 2019-05-06 Richard Biener <rguenther@suse.de>
28670 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28672 2019-05-06 Richard Biener <rguenther@suse.de>
28674 PR tree-optimization/90316
28675 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28676 compute target on demand.
28677 (get_continuation_for_phi): Remove code walking stmts to
28678 get to a target virtual operand which could end up being
28681 2019-05-06 Martin Liska <mliska@suse.cz>
28684 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28685 when -mabi is selected to a non-default version.
28687 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28688 Martin Liska <mliska@suse.cz>
28690 * Makefile.in: Add lto-dump.texi.
28691 * cgraph.h: Add new functions get_visibility_string and
28692 get_symtab_type_string.
28693 * doc/gcc.texi: Include lto-dump section.
28694 * doc/lto-dump.texi: New file.
28695 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28696 (parse_dump_option): Factor out this function.
28697 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28698 (parse_dump_option): Export the function.
28699 * symtab.c (symtab_node::get_visibility_string): New function.
28700 (symtab_node::get_symtab_type_string): Likewise.
28702 2019-05-06 Martin Liska <mliska@suse.cz>
28704 * config/i386/i386-builtins.c: New file.
28705 * config/i386/i386-builtins.h: New file.
28706 * config/i386/i386-expand.c: New file.
28707 * config/i386/i386-expand.h: New file.
28708 * config/i386/i386-features.c: New file.
28709 * config/i386/i386-features.h: New file.
28710 * config/i386/i386-options.c: New file.
28711 * config/i386/i386-options.h: New file.
28712 * config.gcc: Add new files into extra_objs and
28714 * config/i386/i386.c: Split content of the file
28715 into newly introduced files.
28716 * config/i386/i386.h: Declare common variables
28718 * config/i386/t-i386: Define dependencies for new files.
28720 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28723 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28724 Restrict 'all' variant to 32-bit configurations.
28725 (unaligned_loadhiu): Likewise.
28726 (unaligned_storehi): Likewise.
28727 (unaligned_storesi): Likewise.
28728 (unaligned_loadhis): Disable when compiling for thumb1.
28730 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28732 PR tree-optimization/90269
28733 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28736 2019-05-03 Martin Liska <mliska@suse.cz>
28738 * hash-map.h: Add is_empty function.
28739 * hash-set.h: Likewise.
28740 * hash-table.h: Likewise.
28741 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28742 elements () == 0 (and similar usages).
28743 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28744 * gimplify.c (gimplify_bind_expr): Likewise.
28745 (gimplify_switch_expr): Likewise.
28746 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28747 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28748 * postreload-gcse.c (dump_hash_table): Likewise.
28749 (gcse_after_reload_main): Likewise.
28750 * predict.c (combine_predictions_for_bb): Likewise.
28751 * tree-parloops.c (reduction_phi): Likewise.
28752 (separate_decls_in_region): Likewise.
28753 (transform_to_exit_first_loop): Likewise.
28754 (gen_parallel_loop): Likewise.
28755 (gather_scalar_reductions): Likewise.
28756 (try_create_reduction_list): Likewise.
28757 * var-tracking.c (dump_vars): Likewise.
28758 (emit_notes_for_changes): Likewise.
28759 (vt_emit_notes): Likewise.
28761 2019-05-03 Richard Biener <rguenther@suse.de>
28763 PR tree-optimization/90316
28764 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28767 2019-05-03 Richard Biener <rguenther@suse.de>
28769 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28770 peeling for gaps by loading only lower halves of vectors
28772 (vectorizable_load): Likewise.
28774 2019-05-03 Richard Biener <rguenther@suse.de>
28776 PR middle-end/89518
28777 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28779 2019-05-03 Richard Biener <rguenther@suse.de>
28781 PR middle-end/87314
28782 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28783 Handle STRING_CST vs DECL or STRING_CST.
28785 2019-05-03 Richard Biener <rguenther@suse.de>
28787 PR tree-optimization/88963
28788 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28789 vector loads feeding only BIT_FIELD_REFs to component
28790 loads. Rewrite stores fed by CONSTRUCTORs to component
28793 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28795 * opts.h (finish_options): Remove lang_mask argument.
28796 (print_help, help_option_argument): Declare.
28797 * opts.c (print_help): Remove forward declaration, no longer static.
28798 (finish_options): Remove lang_mask argument, don't call print_help
28800 * opts-global.c (decode_options): Adjust finish_option caller, call
28803 PR tree-optimization/90303
28804 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28805 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28807 2019-05-03 Richard Biener <rguenther@suse.de>
28809 PR tree-optimization/89698
28810 * gimple-fold.c (canonicalize_constructor_val): Early out
28811 for constants, handle unfolded INTEGER_CSTs as they appear in
28812 C++ virtual table ctors.
28814 2019-05-03 Richard Biener <rguenther@suse.de>
28816 * passes.c (execute_function_todo): Remove dead code.
28818 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28820 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28821 the internal register number, for any "real" register.
28823 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28825 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28826 correct numbers for TFHAR, TFIAR, TEXASR.
28828 2019-05-02 Richard Biener <rguenther@suse.de>
28830 PR tree-optimization/89653
28831 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28832 update-address-taken before the pass.
28833 * passes.def (pass_tree_loop_init): Put comment before it.
28835 2019-05-02 Richard Biener <rguenther@suse.de>
28837 PR tree-optimization/89509
28838 * tree-ssa-structalias.c (compute_dependence_clique): Look
28839 at the first subvar when determining whether it is restrict.
28841 2019-05-02 Richard Biener <rguenther@suse.de>
28843 PR tree-optimization/90273
28844 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28845 useless debug stmts.
28847 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28849 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28851 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28853 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28854 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28855 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28856 (vectorizable_reduction): Use the functions above to vectorize in a
28857 fully masked loop codes that don't have a conditional internal
28860 2019-05-02 Martin Liska <mliska@suse.cz>
28862 * cgraphclones.c: Call valid_attribute_p with 1 for
28864 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28865 it's for target attribute.
28866 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28867 Add new boolean argument.
28868 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28870 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28871 to ix86_valid_target_attribute_inner_p.
28872 (ix86_valid_target_attribute_p): Pass flags argument to
28873 ix86_valid_target_attribute_inner_p.
28874 (get_builtin_code_for_version): Use 0 as it's target attribute.
28876 2019-05-02 Martin Liska <mliska@suse.cz>
28878 * gcc.c (process_command): Add dummy file only
28880 * opts-global.c (decode_options): Pass lang_mask.
28881 * opts.c (print_help): New function.
28882 (finish_options): Print --help if help_option_argument
28884 (common_handle_option): Factor out content of OPT__help_
28886 * opts.h (finish_options): Add new argument.
28888 2019-05-02 Martin Liska <mliska@suse.cz>
28891 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28892 With -minline-all-stringops use inline expansion using 4B loop.
28893 * doc/invoke.texi: Document the change of
28894 -minline-all-stringops.
28896 2019-05-01 Jeff Law <law@redhat.com>
28898 PR tree-optimization/88797
28899 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28900 PHI feeds a conditional on the RHS of an assignment.
28902 2019-04-30 Andrew Waterman <andrew@sifive.com>
28903 Jim Wilson <jimw@sifive.com>
28905 * config/riscv/constraints.md (L): New.
28906 * config/riscv/predicates.md (lui_operand): New.
28907 (sfb_alu_operand): New.
28908 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28909 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28910 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28911 * config/riscv/risc.md (type): Add sfb_alu.
28912 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28913 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28914 (branch_zero<mode>): Delete.
28915 (mov<mode>cc): New.
28916 (mov<GPR:mode><X:mode>cc): Likewise.
28917 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28919 2019-04-30 Nathan Sidwell <nathan@acm.org>
28921 * tree.h (MARK_TS_EXP): New.
28923 2019-04-30 Martin Liska <mliska@suse.cz>
28925 * opts.c (enable_warning_as_error): Provide hints
28926 for unknown options.
28928 2019-04-30 Martin Liska <mliska@suse.cz>
28931 * doc/invoke.texi: Add missing dash for gas-locview-support
28932 and gno-as-locview-support.
28934 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28937 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28938 whitespace at the start of target attribute string.
28940 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28943 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28944 Define __ARM_FEATURE_ATOMICS.
28946 2019-04-30 Martin Liska <mliska@suse.cz>
28948 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28949 into built_in_function enum. Remove code for endp == 2 and
28950 use BUILT_IN_* constants.
28951 (gimple_fold_builtin): Call the function with fcode.
28953 2019-04-30 Martin Liska <mliska@suse.cz>
28955 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28956 DECL_FUNCTION_CODE into ix86_builtins enum before
28957 the switch statement.
28959 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28961 PR tree-optimization/89475
28962 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28965 2019-04-30 Martin Liska <mliska@suse.cz>
28967 PR translation/90274
28968 * opts.c (print_filtered_help): Wrap string in _(...).
28970 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28972 PR tree-optimization/90240
28974 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28976 PR tree-optimization/90078
28977 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28978 checks for infinite_cost overflow.
28980 2019-04-29 Jeff Law <law@redhat.com>
28982 * passes.def: Move -Wrestrict pass after copy propagation.
28984 2019-04-29 Maya Rashish <coypu@sdf.org>
28986 * config.gcc (default_gnu_indirect_function): Default to yes
28987 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28988 sparc*-*-netbsd*, x86_64-*-netbsd*.
28990 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28992 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28993 where cond2 is NE_EXPR.
28994 (is_value_included_in): Update comment.
28996 2019-04-29 Richard Biener <rguenther@suse.de>
28998 PR tree-optimization/90278
28999 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29000 EH on comparison simplification.
29002 2019-04-29 Jason Merrill <jason@redhat.com>
29004 PR c++/82081 - tail call optimization breaks noexcept
29005 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29006 nothrow function to a might-throw function into a tail call.
29008 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
29010 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29011 (DDR_INNER_LOOP): Likewise.
29012 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29013 (initialize_data_dependence_relation): Likewise.
29014 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29016 2019-04-29 Jakub Jelinek <jakub@redhat.com>
29018 PR rtl-optimization/90257
29019 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29023 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29027 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29030 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29033 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29035 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29037 2019-04-29 Richard Biener <rguenther@suse.de>
29039 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29042 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29044 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29045 varasm.h, and netbsd-protos.h.
29047 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29050 * config/i386/i386-protos.h (ix86_data_alignment): Change
29051 the second argument type to unsigned int.
29052 * config/i386/i386.c (ix86_data_alignment): Change "align"
29053 argument type to unsigned int.
29055 2019-04-27 Martin Liska <mliska@suse.cz>
29057 PR middle-end/90258
29058 * opt-suggestions.c (option_proposer::build_option_suggestions):
29059 When get_valid_option_values returns empty values, add the
29060 misspelling candidate.
29062 2019-04-26 Jim Wilson <jimw@sifive.com>
29064 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29066 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29067 Pass orig_mode to riscv_build_integer.
29068 (riscv_split_integer): Pass mode to riscv_move_integer.
29069 (riscv_legitimize_const_move): Likewise.
29070 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29071 promoted_mode. Replace force_reg call with code to load constant into
29072 promoted reg and then subreg it for the store.
29073 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29074 riscv_move_integer.
29076 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29078 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29081 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29083 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29084 commentary about the encoding of precision.
29086 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29088 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29089 * config/i386/t-freebsd64: New file.
29090 * config.gcc: Add the t-freebsd64 for multilib support.
29092 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29094 * doc/extend.texi (vector_size): Add missing comma after @xref.
29096 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29098 * BASE-VER: Set to 10.0.0.
29100 2019-04-25 Richard Biener <rguenther@suse.de>
29102 PR middle-end/89765
29103 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29104 VIEW_CONVERT_EXPR into one operating on an rvalue.
29106 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29109 * config/i386/i386.c (feature_priority): Moved to file scope.
29110 (processor_features): Likewise.
29111 (processor_model): Likewise.
29112 (_arch_names_table): Likewise.
29113 (arch_names_table): Likewise.
29114 (_feature_list): Removed.
29115 (feature_list): Likewise.
29116 (_isa_names_table): Moved to file scope. Add priority.
29117 (isa_names_table): Likewise.
29118 (get_builtin_code_for_version): Replace feature_list with
29119 isa_names_table. Update error message for P_ZERO priority.
29121 2019-04-25 Richard Biener <rguenther@suse.de>
29123 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29124 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29126 2019-04-24 Jeff Law <law@redhat.com>
29128 PR tree-optimization/90037
29129 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29130 * passes.def: Replace all instance of phi-only cprop with the
29131 lattice propagator. Move propagation pass from after erroneous
29132 path isolation to before erroneous path isolation.
29133 * tree-ssa-phionlycprop.c: Remove.
29135 2019-04-24 Richard Biener <rguenther@suse.de>
29137 PR middle-end/90213
29138 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29139 by size and BITS_PER_UNIT on poly-wide-ints.
29141 2019-04-25 Richard Biener <rguenther@suse.de>
29143 PR middle-end/90194
29144 * match.pd: Add pattern to simplify view-conversion of an
29147 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29149 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29150 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29151 for Go on 32 bit AIX.
29152 * config/rs6000/aix72.h: Likewise.
29154 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29157 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29158 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29160 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29163 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29164 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29165 for restored hard frame pointer.
29166 (s390_sched_dependencies_evaluation): Implement new target hook.
29167 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29169 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29171 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29172 * config/arc/arc.c (arc_init): Cleanup warning message.
29173 (arc_override_options): Likewise.
29175 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29178 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29179 a register if both if_true and if_false are MEMs.
29181 PR tree-optimization/90208
29182 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29183 after labels of new_bb, not before them.
29185 PR tree-optimization/90211
29186 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29187 which are not SSA_NAMEs.
29189 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29191 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29193 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29195 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29197 PR rtl-optimization/87979
29198 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29201 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29203 PR rtl-optimization/84032
29204 * modulo-sched.c (ps_insn_find_column): Change condition so that
29205 branch will always be the last insn in a row inside partial
29208 2019-04-23 Richard Biener <rguenther@suse.de>
29211 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29212 dest_single_pred_p argument.
29213 (remove_forwarder_block): Adjust.
29214 (remove_forwarder_block_with_phi): Likewise.
29216 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29217 Bernd Edlinger <bernd.edlinger@hotmail.de>
29218 Jakub Jelinek <jakub@redhat.com>
29221 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29222 if used with general-regs-only.
29223 (arm_conditional_register_usage): Don't add non-general regs if
29225 (arm_valid_target_attribute_rec): Handle general-regs-only.
29226 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29228 (TARGET_HARD_FLOAT_SUB): Define.
29229 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29230 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29231 (TARGET_REALLY_IWMMXT2): Likewise.
29232 * config/arm/arm.opt: Add -mgeneral-regs-only.
29233 * doc/extend.texi: Document ARM general-regs-only target.
29234 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29236 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29238 PR tree-optimization/90078
29239 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29240 checks for infinite_cost overflow.
29242 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29244 PR tree-optimization/90021
29245 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29246 and check univariate against it.
29247 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29248 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29250 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29254 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29257 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29260 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29262 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29264 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29266 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29267 names using operand format, rather than hard-wired.
29268 (speculation_barrier): Likewise.
29270 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29272 PR tree-optimization/88055
29273 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29274 (gen_one_condition): Use it if !HONOR_NANS.
29276 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29278 PR middle-end/90139
29279 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29280 assign_temp instead of gen_reg_rtx.
29282 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29284 PR translation/90118
29285 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29286 Add missing space before %<.
29288 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29290 PR rtl-optimization/87871
29291 * ira-lives.c (make_object_dead): Don't add conflicts to
29292 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29294 2019-04-18 Martin Sebor <msebor@redhat.com>
29296 PR middle-end/89797
29297 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29298 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29299 assuming type size fits in SHWI.
29301 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29304 * ipa-inline.c (flatten_function): New parameter UPDATE.
29305 (ipa_inline, early_inliner): Use it.
29307 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29309 * fold-const.c (int_const_binop): Return early on failure.
29311 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29313 PR middle-end/85164
29314 * combine.c (force_int_to_mode): Cast the argument rather than
29315 the result of known_alignment.
29316 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29318 2019-04-18 Richard Biener <rguenther@suse.de>
29321 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29323 (remove_forwarder_block): ... here.
29324 (remove_forwarder_block_with_phi): Also move debug stmts here.
29326 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29328 PR translation/79183
29329 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29330 inform where appropriate.
29332 2019-04-18 Richard Biener <rguenther@suse.de>
29334 * tree.c (get_qualified_type): Put found type variants at the
29335 head of the variant list.
29337 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29339 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29341 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29344 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29345 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29346 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29347 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29348 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29350 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29352 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29353 even for allocno's with no conflicts.
29354 (print_conflicts): Print an extra newline.
29356 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29358 * auto-inc-dec.c (attempt_change): Set the alignment of the
29359 temporary memory to that of the original.
29361 2019-04-17 Joao Moreira <jmoreira@suse.de>
29363 * targhooks.c (default_print_patchable_function_entry): Emit
29364 __patchable_function_entries section with writable flags to allow
29365 relocation resolution.
29367 2019-04-17 Jonny Grant <jg@jguk.org>
29369 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29371 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29373 PR middle-end/90095
29374 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29375 on lowpart SUBREGs.
29377 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29379 * config/arc/arc.c (arc_init): Format diagnostic string.
29380 (arc_override_options): Likewise.
29381 (check_if_valid_regno_const): Likewise.
29382 (arc_reorg): Likewise.
29384 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29387 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29389 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29391 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29392 (*movdi_update1): Use Pmode.
29393 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29394 (movdi_<mode>_update_stack): Rename to ...
29395 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29397 (*movsi_update1): Use Pmode.
29398 (*movsi_update2): Use Pmode.
29399 (movsi_update): Rename to ...
29400 (movsi_<mode>_update): ... this. Use Pmode.
29401 (movsi_update_stack): Fix condition.
29402 (*movhi_update1): Use Pmode. Fix argument to
29403 avoiding_indexed_address_p.
29404 (*movhi_update2): Ditto.
29405 (*movhi_update3): Ditto.
29406 (*movhi_update4): Ditto.
29407 (*movqi_update1): Ditto.
29408 (*movqi_update2): Ditto.
29409 (*movqi_update3): Ditto.
29410 (*movsf_update1, *movdf_update1): Merge, rename to...
29411 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29412 avoiding_indexed_address_p. Add "size" attribute.
29413 (*movsf_update2, *movdf_update2): Merge, rename to...
29414 (*mov<mode>_update2): This. Ditto.
29415 (*movsf_update3): Use Pmode. Fix argument to
29416 avoiding_indexed_address_p.
29417 (*movsf_update4): Ditto.
29418 (allocate_stack): Simplify condition. Adjust pattern names.
29420 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29423 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29424 whitespace at the start of target attribute string.
29426 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29429 * config/rs6000/power9.md: Add store forwarding bypass.
29431 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29434 * valtrack.c (dead_debug_insert_temp): Reset debug references
29435 to the return value of a call being removed.
29437 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29439 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29440 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29441 implement target hook.
29442 (arc_memory_move_cost): New function.
29443 (TARGET_REGISTER_MOVE_COST): Define.
29444 (TARGET_MEMORY_MOVE_COST): Likewise.
29445 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29446 (MEMORY_MOVE_COST): Likewise.
29448 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29450 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29451 (sibcall_value_insn): Likewise.
29452 * config/arc/constraints.md (Rs5): Remove.
29454 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29456 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29457 for last two fake registers.
29458 (arc_conditional_register_usage): Make sure fake frame and arg
29459 pointer regs are in general regs class.
29460 (FRAME_POINTER_MASK): Remove.
29461 (RETURN_ADDR_MASK): Remove.
29462 (arc_must_save_register): Use hard frame regnum.
29463 (frame_restore_reg): Use hard_frame_pointer_rtx.
29464 (arc_save_callee_saves): Likewise.
29465 (arc_restore_callee_saves): Likewise.
29466 (arc_save_callee_enter): Likewise.
29467 (arc_restore_callee_leave): Likewise.
29468 (arc_save_callee_milli): Likewise.
29469 (arc_eh_return_address_location): Likewise.
29470 (arc_check_multi): Use hard frame regnum.
29471 (arc_can_eliminate): Likewise.
29472 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29473 for register allocator.
29474 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29475 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29476 (FRAME_POINTER_REGNUM): Change it to a fake register.
29477 (HARD_FRAME_POINTER_REGNUM): Defined.
29478 (ARG_POINTER_REGNUM): Change it to a new fake register.
29479 (ELIMINABLE_REGS): Update.
29480 (REGISTER_NAMES): Update names.
29481 * config/arc/arc.md (LP_START): Remove.
29482 (LP_END): Likewise.
29483 (shift_si3_loop): Update pattern.
29485 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29487 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29488 to avoid delay slot scheduling.
29489 (arc_must_save_register): Don't save SP.
29490 * config/arc/arc.md (stack_tie): Remove.
29491 (UNSPEC_ARC_STKTIE): Likewise.
29493 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29494 Shiva Chen <shiva0217@gmail.com>
29496 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29497 code gen with large shift amount.
29499 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29501 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29504 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29507 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29508 print -m64/-mx32/-m32 if it is true.
29509 (ix86_debug_options, ix86_function_specific_print): Pass true as
29510 ADD_ABI_P to ix86_target_string.
29511 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29512 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29513 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29515 PR rtl-optimization/90082
29516 * dce.c (can_delete_call): New function.
29517 (deletable_insn_p, mark_insn): Use it.
29519 PR tree-optimization/90090
29520 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29522 (is_division_by_square): Likewise. Formatting fix.
29524 2019-04-16 Richard Biener <rguenther@suse.de>
29526 PR tree-optimization/56049
29527 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29528 equality check if alias-set zero will prevail.
29530 2019-04-15 Jeff Law <law@redhat.com>
29532 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29533 size and alignment as unsigned.
29535 2019-04-15 Richard Biener <rguenther@suse.de>
29538 * tree-loop-distribution.c (destroy_loop): Preserve correct
29541 2019-04-15 Richard Biener <rguenther@suse.de>
29543 PR tree-optimization/90071
29544 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29545 abnormal operands from def stmts.
29547 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29549 PR rtl-optimization/89794
29550 * combine.c (count_auto_inc): New function.
29551 (try_combine): Count how many auto_inc expressions there were in the
29552 original instructions. Ensure we have the same number in the new
29553 instructions. Remove the code that tried to ensure auto_inc side
29554 effects on i1 and i0 are not lost.
29556 2019-04-15 Richard Biener <rguenther@suse.de>
29559 * tree.h (auto_var_p): Declare.
29560 * tree.c (auto_var_p): New function, split out from ...
29561 (auto_var_in_fn_p): ... here.
29562 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29564 (new_var_info): Initialize it.
29565 (set_uids_in_ptset): Also set the shadow variable uid if required.
29566 (ipa_pta_execute): Postprocess points-to solutions assigning
29567 shadow variable uids for locals that may reach their containing
29568 function recursively.
29569 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29570 assert but instead check whether the points-to solution is
29573 2019-04-15 Martin Jambor <mjambor@suse.cz>
29576 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29579 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29581 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29583 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29584 Kito Cheng <kito.cheng@gmail.com>
29585 Shiva Chen <shiva0217@gmail.com>
29587 * config/nds32/nds32-md-auxiliary.c
29588 (nds32_legitimize_pic_address): Use new PIC pattern.
29589 (nds32_legitimize_tls_address): Use new TLS pattern.
29590 (nds32_output_symrel): New.
29591 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29592 (nds32_alloc_relax_group_id): Ditto.
29593 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29594 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29596 (nds32_group_tls_insn): Ditto.
29597 (nds32_group_float_insns): Ditto.
29598 * config/nds32/nds32.md (tls_le): New.
29601 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29603 * configure: Add nds32 target for dwarf2 debug_line checking.
29604 * configure.ac: Regenerated.
29606 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29609 * ipa-devirt.c (skip_in_fields_list_p): New.
29610 (odr_types_equivalent_p): Use it.
29612 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29615 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29616 instead of strncmp when checking for thumb and arm. Formatting fixes.
29618 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29620 * doc/install.texi: Document --with-target-system-zlib.
29622 2019-04-12 Martin Sebor <msebor@redhat.com>
29628 * targhooks.c (default_vector_alignment): Avoid assuming
29629 argument fits in SHWI.
29630 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29631 a shift expression.
29632 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29634 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29636 PR rtl-optimization/89965
29637 * dce.c: Include rtl-iter.h.
29638 (struct check_argument_load_data): New type.
29639 (check_argument_load): New function.
29640 (find_call_stack_args): Check for loads from stack slots still tracked
29641 in sp_bytes and punt if any is found.
29643 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29645 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29647 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29648 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29650 2019-04-12 Martin Liska <mliska@suse.cz>
29652 PR middle-end/89970
29653 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29655 (separate_attrs): Handle multiple 'default's.
29656 (expand_target_clones): Rework error handling code.
29658 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29661 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29662 mode of vector rather than mode of destination for move instruction.
29663 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29664 Use QI inner mode with V16QI vector mode.
29666 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29669 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29670 "invalid %%t operand" in output_operand_lossage message.
29672 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29674 * config/s390/predicates.md (permute_pattern_operand): New
29676 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29677 operand for the permute pattern.
29678 ("*vec_perm<mode>"): New insn definition.
29679 ("bswap<mode>"): Generate the permute pattern operand in the
29680 expander and perform the operand reloads for pre arch13 level
29682 ("*bswap<mode>_emu"): Rename to ...
29683 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29684 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29685 Add the USE operand for the permute pattern.
29686 ("*vec_set_bswap_vec<mode>"): Likewise.
29688 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29691 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29692 and gcc_unreachable if it fails, just call tree_to_uhwi which
29693 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29694 Start warning message with a lower-case letter. Formatting fixes.
29696 PR rtl-optimization/90026
29697 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29698 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29699 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29700 in cfglayout mode, use emit_barrier_after_bb.
29702 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29704 PR rtl-optimization/87763
29705 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29708 2019-04-11 Tom de Vries <tdevries@suse.de>
29710 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29711 max macro using statement expression.
29713 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29715 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29716 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29717 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29718 read_only_private_data_section using xcoff_private_rodata_section_name.
29719 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29721 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29724 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29726 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29728 PR rtl-optimization/89965
29729 * dce.c (sp_based_mem_offset): New function.
29730 (find_call_stack_args): Use sp_based_mem_offset.
29732 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29734 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29736 2019-04-11 Richard Biener <rguenther@suse.de>
29738 PR tree-optimization/90020
29739 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29740 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29741 * tree-ssa-pre.c (compute_avail): Use it to not put
29742 possibly trapping references after a call that might not
29743 return into EXP_GEN.
29744 * gcse.c (compute_hash_table_work): Do not elide
29745 marking a block containing a call if the call might not
29748 2019-04-11 Richard Biener <rguenther@suse.de>
29750 PR tree-optimization/90018
29751 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29752 Test both SLP and interleaving variants.
29754 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29756 * config/s390/8561.md: New file.
29757 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29758 Add arch13 cpu model.
29759 * config/s390/s390-opts.h (enum processor_type): Likewise.
29760 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29761 (s390_get_unit_mask): Likewise.
29762 (s390_is_fpd): Likewise.
29763 (s390_is_fxd): Likewise.
29764 * config/s390/s390.h (s390_tune_attr): Likewise.
29765 * config/s390/s390.md: Include arch13 pipeline description.
29766 * config/s390/s390.opt: Add arch13.
29768 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29770 PR rtl-optimization/87763
29771 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29773 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29775 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29777 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29778 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29779 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29780 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29782 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29784 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29785 "Although" in -fipa-icf documentation.
29787 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29788 of using multiple -g options.
29790 2019-04-10 Martin Liska <mliska@suse.cz>
29792 PR gcov-profile/89959
29793 * doc/gcov.texi: Make documentation of -x option
29796 2019-04-10 Richard Biener <rguenther@suse.de>
29798 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29800 (DR_GROUP_SAME_DR_STMT): Remove.
29801 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29802 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29803 replace with assert.
29804 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29805 (vect_record_grouped_load_vectors): Remove unreachable code.
29807 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29810 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29811 obsolete reference to N.
29813 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29815 PR middle-end/90025
29816 * expr.c (store_expr): Set properly size on the MEM passed to
29820 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29821 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29822 translation is needed, and when translation is needed, only append
29823 ... if the string length is hostsz or more bytes long. Avoid using
29826 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29829 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29830 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29832 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29833 differences directly.
29834 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29836 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29838 PR translation/90011
29839 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29841 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29843 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29844 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29845 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29846 trailing space from -gsplit-dwarf diagnostics.
29848 PR tree-optimization/89998
29849 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29850 instead of integer_type_node if possible, don't add ranges if return
29851 type is not compatible with int.
29852 * gimple-fold.c (gimple_fold_builtin_sprintf,
29853 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29856 2019-04-09 Martin Liska <mliska@suse.cz>
29858 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29859 * doc/install.texi: Document the new config.
29861 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29863 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29864 use gimple_expr_type for load and store calls. Skip over the
29865 condition argument in a conditional internal function.
29866 Protect use of TREE_INT_CST_LOW.
29868 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29871 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29872 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29873 trailing period from it too.
29875 2019-04-08 wu yuan <wuyuan5@huawei.com>
29877 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29878 * config/aarch64/aarch64.md: Add "tsv110.md".
29879 * config/aarch64/tsv110.md: New file.
29881 2019-04-08 Richard Biener <rguenther@suse.de>
29883 PR tree-optimization/90006
29884 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29887 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29890 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29892 (fma_root_node): Likewise.
29893 (func_fma_steering): Likewise.
29895 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29897 PR rtl-optimization/89865
29898 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29900 PR rtl-optimization/89865
29901 * config/i386/i386.md
29902 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29903 numbers not to clash with the additional operands[4].
29904 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29905 with extra register copy in the middle.
29907 2019-04-08 Martin Liska <mliska@suse.cz>
29909 PR gcov-profile/89961
29910 * doc/gcov.texi: Document data_file.
29911 * gcov.c (generate_results): Add data_info into JSON output.
29913 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29915 PR tree-optimization/89725
29916 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29917 loop's chrec as invariant symbol.
29918 * tree-chrec.h (chrec_contains_symbols): New parameter.
29919 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29920 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29921 function of loops not in DDR's loop_nest.
29922 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29924 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29927 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29930 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29933 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29934 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29936 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29938 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29939 targetm.fixed_condition_code_regs.
29941 2019-04-05 Richard Biener <rguenther@suse.de>
29945 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29946 debug bind stmts but reset them if they are not valid at the
29949 2019-04-05 Martin Liska <mliska@suse.cz>
29951 PR translation/89936
29952 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29953 order to wrap keywords or arguments.
29954 * collect2.c (main): Likewise.
29955 (scan_prog_file): Likewise.
29956 (scan_libraries): Likewise.
29957 * common/config/riscv/riscv-common.c
29958 (riscv_subset_list::parsing_subset_version): Likewise.
29959 (riscv_subset_list::parse_std_ext): Likewise.
29960 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29962 * config/arm/arm.c (arm_option_override): Likewise.
29963 * config/cris/cris.c (cris_print_operand): Likewise.
29964 * config/darwin-c.c (darwin_pragma_options): Likewise.
29965 (darwin_pragma_unused): Likewise.
29966 (darwin_pragma_ms_struct): Likewise.
29967 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29968 * config/i386/i386.c (print_reg): Likewise.
29969 (ix86_print_operand): Likewise.
29970 * config/i386/xm-djgpp.h: Likewise.
29971 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29972 * config/m32c/m32c.c (m32c_option_override): Likewise.
29973 * config/msp430/msp430.c (msp430_option_override): Likewise.
29974 * config/nds32/nds32.c (nds32_option_override): Likewise.
29975 * config/nvptx/mkoffload.c (main): Likewise.
29976 * config/rx/rx.c (rx_print_operand): Likewise.
29977 (valid_psw_flag): Likewise.
29978 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29979 (vms_pragma_nomember_alignment): Likewise.
29980 (vms_pragma_extern_model): Likewise.
29981 * lto-wrapper.c (compile_offload_image): Likewise.
29982 * omp-offload.c (oacc_parse_default_dims): Likewise.
29983 * symtab.c (symtab_node::verify_base): Likewise.
29984 * tlink.c (recompile_files): Likewise.
29985 (start_tweaking): Likewise.
29986 * tree-profile.c (parse_profile_filter): Likewise.
29988 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29990 PR tree-optimization/89956
29991 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29992 multiple negates of the same value.
29994 2019-04-04 Martin Sebor <msebor@redhat.com>
29996 PR middle-end/89957
29997 PR middle-end/89911
29998 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29999 have the same precision since the function crashes otherwise.
30000 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30001 has non-zero arguments.
30003 2019-04-04 Martin Sebor <msebor@redhat.com>
30005 PR middle-end/89934
30006 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30007 out if the number of arguments is less than expected.
30009 2019-04-04 Jeff Law <law@redhat.com>
30011 PR rtl-optimization/89399
30012 * ree.c (combine_set_extension): Use single_set rather than
30013 digging into PATTERN for items on the candidate list.
30014 (combine_reaching_defs): Likewise.
30016 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
30018 PR rtl-optimization/46590
30019 * loop-invariant.c (find_defs): Move df_remove_problem and
30020 df_process_deferred_rescans to move_invariants.
30021 Move df_live_add_problem and df_live_set_all_dirty calls
30022 to move_invariants.
30023 (move_invariants): Likewise.
30024 (move_loop_invariants): Likewise, making the df_live calls
30025 conditional on -O. Remove the problem again if we added it
30028 2019-04-03 qing zhao <qing.zhao@oracle.com>
30030 PR tree-optimization/89730
30031 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30032 -flive-patching=inline-only-static.
30033 (can_inline_edge_by_limits_p): Add the checking for
30034 -flive-patching=inline-only-static and grant always_inline
30035 even when -flive-patching=inline-only-static is specified.
30037 2019-04-03 Jeff Law <law@redhat.com>
30039 PR rtl-optimization/81025
30040 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30042 2019-04-03 Richard Biener <rguenther@suse.de>
30044 PR tree-optimization/84101
30045 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30046 regs.h for hard_regno_nregs.
30047 (cfun_returns): New helper.
30048 (vect_model_store_cost): When vectorizing a store to a decl
30049 we return and the function ABI returns in a multi-reg location
30050 account for the possible spilling that will happen.
30052 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30054 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30055 displacement addresses for vector mode operands.
30057 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30059 * config/arc/arc.c (GMASK_LEN): Define.
30060 (arc_restore_callee_saves): Restore first blink when
30063 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30065 * doc/extend.texi: Add deprecated comment on sign-return-address
30066 function attribute and add mbranch-protection.
30067 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30069 2019-04-03 Richard Biener <rguenther@suse.de>
30072 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30073 the all target phony.
30075 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30079 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30080 Return false for variable DImode shifts.
30081 (dimode_scalar_chain::compute_convert_gain): Do not handle
30082 register count operand in variable DImode shifts.
30083 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30084 count argument of a variable shift instruction to a vector register.
30085 (dimode_scalar_chain::convert_reg): Remove support to convert
30086 count argument of a variable shift instruction.
30088 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30090 PR rtl-optimization/84206
30091 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30092 iterating over loop headers.
30094 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30096 PR rtl-optimization/85876
30097 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30098 beyond the original fence.
30100 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30102 * config.gcc: Mark spu* targets as deprecated/obsolete.
30104 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30106 * config/s390/s390-builtin-types.def: New builtin function type
30107 definitions. Remove unused types.
30108 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30109 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30110 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30111 overloaded builtins.
30112 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30113 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30114 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30115 (vec_double, vec_signed, vec_unsigned): Define to use the new
30116 overloaded builtins.
30117 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30120 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30122 * config/s390/s390-builtin-types.def: New builtin function type
30124 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30125 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30126 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30127 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30128 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30129 constant definitions.
30130 * config/s390/vecintrin.h (vec_search_string_cc)
30131 (vec_search_string_until_zero_cc): New builtin name definitions.
30132 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30134 ("vec_vstrs<mode>"): New insn definition.
30136 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30138 * config/s390/s390-builtin-types.def: Add new builtin function
30140 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30141 New overloaded builtins.
30142 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30144 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30145 (UNSPEC_VEC_SLDBYTE): ... this.
30146 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30147 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30149 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30150 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30151 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30153 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30155 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30156 New insn definition.
30157 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30158 * config/s390/vector.md (V_HW_HSD): ... here.
30160 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30162 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30163 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30164 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30165 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30166 New insn definitions.
30168 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30170 * config/s390/s390-builtin-types.def: Add new builtin function type.
30171 * config/s390/s390-builtins.def: Add overloaded builtin
30172 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30173 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30174 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30175 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30176 ("eltswap<mode>"): New expander.
30177 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30180 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30182 * config/s390/s390-builtin-types.def: Add new builtin function types.
30183 * config/s390/s390-builtins.def: Add overloaded builtin
30184 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30186 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30187 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30188 ("bswap<mode>"): New expander.
30189 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30193 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30194 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30195 vector builtin version number in __VEC__.
30197 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30199 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30201 (SFSI): New mode attribute.
30202 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30203 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30205 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30206 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30207 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30208 ("floatsi<mode>2"): Add wcefb instruction.
30210 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30212 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30213 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30215 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30216 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30217 support 32 bit fp-int conversions. Rename to ...
30218 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30219 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30220 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30221 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30224 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30226 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30227 if-then-else constructs if we can use the select instruction.
30228 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30230 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30232 * config/s390/s390.md ("*popcountdi_arch13_cc")
30233 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30235 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30236 Append _z196 to make it ...
30237 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30238 ("popcounthi2_z196"): ... this.
30239 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30240 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30242 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30244 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30245 certain compares for arch13 in order to make use of the condition
30246 code result produced by the new instructions.
30247 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30248 nxrk, and nxgrk instruction patterns.
30249 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30250 (inv_no): Add new code iterator together with some attributes.
30251 ("*andc_split_<mode>"): Disable splitter for arch13.
30252 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30253 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30254 ("*<ANDOR:bitops_name>c<GPR:mode>")
30255 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30256 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30257 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30258 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30260 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30262 * common/config/s390/s390-common.c (processor_flags_table): New
30264 * config.gcc: Support arch13 with the --with-arch= configure flag.
30265 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30266 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30267 * config/s390/s390.c (s390_get_sched_attrmask)
30268 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30269 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30270 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30271 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30272 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30274 * config/s390/s390.opt: Support arch13 as processor type in
30275 command line options.
30277 2019-04-02 Martin Liska <mliska@suse.cz>
30279 PR translation/89912
30280 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30281 Fix param description of graphite-max-arrays-per-scop.
30283 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30285 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30286 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30287 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30289 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30291 PR rtl-optimization/85412
30292 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30293 sel_sched_region_1, not after.
30295 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30297 PR rtl-optimization/86928
30298 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30299 compute_live if necessary.
30300 (sel_redirect_edge_and_branch): Likewise.
30302 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30304 PR rtl-optimization/89865
30305 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30306 register if it is a part of small class.
30308 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30310 PR rtl-optimization/87273
30311 * sel-sched-ir.c (merge_fences): Remove assert.
30313 2019-04-01 Richard Biener <rguenther@suse.de>
30315 PR tree-optimization/46590
30316 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30317 (dom_walker::m_reachability): Add in place of...
30318 (dom_walker::m_skip_unreachable_blocks): ...this.
30319 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30320 Move complex initialization ...
30321 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30322 lazily and initialize edge flags on each invocation.
30323 (dom_walker::bb_reachable): Use m_reachability.
30325 2019-04-01 Martin Liska <mliska@suse.cz>
30328 * opt-suggestions.c (option_proposer::build_option_suggestions):
30329 Add variant without any argument in order to provide better
30332 2019-04-01 Richard Biener <rguenther@suse.de>
30335 * gimple.c: Include langhooks.h.
30336 (gimple_get_alias_set): Treat enumeral types as the underlying
30339 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30340 Eric Botcazou <ebotcazou@adacore.com>
30342 PR rtl-optimization/89862
30343 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30344 that operates on the full registers for WORD_REGISTER_OPERATIONS
30347 2019-03-29 Jim Wilson <jimw@sifive.com>
30349 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30350 Clear MASK_RVC and then set if C subset supported.
30352 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30355 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30356 non-addressable complit into its initializer if it is volatile.
30358 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30360 * opts-common.c (integral_argument): Set errno properly in one case.
30362 2019-03-29 Martin Liska <mliska@suse.cz>
30364 * doc/invoke.texi: Remove -Wchkp from documentation.
30366 2019-03-29 Martin Liska <mliska@suse.cz>
30368 * dbgcnt.c (print_limit_reach): New function.
30371 2019-03-29 Martin Liska <mliska@suse.cz>
30373 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30374 (dbg_cnt_process_opt): Parse first tokens aas
30375 dbg_cnt_process_single_pair is also using strtok.
30377 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30379 PR rtl-optimization/87485
30380 * function.c (expand_function_end): Move stack_protect_epilogue
30381 before loading of return value into hard register(s).
30383 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30385 PR middle-end/89621
30386 * tree-inline.h (struct copy_body_data): Add
30387 dont_remap_vla_if_no_change flag.
30388 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30389 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30390 and remap_type_2 returns false.
30391 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30392 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30393 only from where it is copied to nested contexts.
30395 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30398 * config/i386/i386.md (RMW operation with LEA peephole):
30399 Use LEAMODE mode attribute instead of SWI mode iterator for
30402 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30405 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30406 Also process XEXP (src, 0) of a shift insn.
30408 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30410 PR middle-end/89725
30411 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30412 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30414 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30416 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30418 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30419 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30420 immediately after first one with df_analyze in between, but rather
30421 process all bbs, queueing ones that need second pass in a worklist,
30422 df_analyze, process queued debug insn changes and if second pass is
30423 needed, process bbs from worklist, df_analyze, process queued debug
30426 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30427 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30428 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30430 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30433 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30436 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30439 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30440 function for 32-bit MS_ABI.
30441 (function_value_ms_32): New function.
30443 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30445 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30446 (movdi): Call gen_movdi_symbol_save_scc.
30447 (gen_movdi_symbol_save_scc): New insn and split.
30449 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30451 PR rtl-optimization/89313
30452 * function.c (matching_constraint_num): New static function.
30453 (match_asm_constraints_1): Use it. Fixup white space and comment.
30454 Don't replace inputs with non-matching constraints which conflict
30455 with early clobber outputs.
30457 2019-03-27 Jeff Law <law@redhat.com>
30459 PR rtl-optimization/87761
30460 PR rtl-optimization/89826
30461 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30463 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30464 note problem to get REG_DEAD/REG_UNUSED notes updated.
30466 2019-03-27 Richard Biener <rguenther@suse.de>
30468 PR tree-optimization/89463
30469 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30470 queue edges to remove.
30471 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30472 dead stmts. Delay edge removal until PHIs are removed to
30473 make debug-stmt creation not confused by seemingly degenerate
30476 2019-03-27 Alan Modra <amodra@gmail.com>
30478 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30480 * config/rs6000/darwin.h: Likewise.
30481 * config/rs6000/rs6000.c: Likewise.
30483 2019-03-27 Alan Modra <amodra@gmail.com>
30485 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30486 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30488 2019-03-26 Andrew Waterman <andrew@sifive.com>
30489 Jim Wilson <jimw@sifive.com>
30491 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30492 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30493 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30494 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30495 (generic_alu): Add auipc to type list.
30496 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30497 (riscv_microarchitecture): Declare.
30498 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30499 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30501 (riscv_microarchitecture): New.
30502 (sifive_7_tune_info): New.
30503 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30504 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30506 (riscv_store_data_bypass_p): New.
30507 (riscv_option_override): Set riscv_microarchitecture from
30508 cpu->microarchitecture.
30509 * config/riscv/riscv.md: Include sifive-7.md.
30512 (auipc<mode>): Change type to auipc.
30513 (restore_stack_nonlocal): New.
30514 * config/riscv/sifive-7.md: New.
30515 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30517 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30520 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30521 Also process XEXP (src, 0) of a shift insn.
30523 2019-03-26 Richard Biener <rguenther@suse.de>
30525 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30526 (copy_debug_stmt): Likewise.
30527 (expand_call_inline): Likewise.
30528 (copy_bb): Avoid redundant lookup & set of gimple_block.
30529 * gimple-low.c (lower_gimple_return): Likewise.
30530 (lower_builtin_setjmp): Likewise.
30532 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30534 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30535 is constant 0, turn into static const data member initialized to false.
30536 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30537 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30539 2019-03-26 Jason Merrill <jason@redhat.com>
30540 Jakub Jelinek <jakub@redhat.com>
30542 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30544 (mem_alloc_description::release_object_overhead): Fix comment typos.
30545 * hash-table.h (hash_table::~hash_table): Call
30546 release_instance_overhead only if m_entries is non-NULL, otherwise
30547 call unregister_descriptor.
30549 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30551 PR tree-optimization/81740
30552 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30553 In case of outer loop vectorization, check for backward dependence
30554 at the inner loop if outer loop dependence is reversed.
30556 2019-03-26 Alan Modra <amodra@gmail.com>
30558 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30559 rs6000_vector_mem init. Correct wI and wJ comment.
30561 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30563 PR rtl-optimization/88347
30564 PR rtl-optimization/88423
30565 * sched-deps.c (sched_analyze_insn): Take into account that for
30566 tablejumps the barrier appears after a label and a jump_table_data.
30568 2019-03-25 Martin Sebor <msebor@redhat.com>
30571 * c-common.c (check_user_alignment): Rename local. Correct maximum
30572 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30573 convert it to UHWI when it fits.
30575 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30578 * dwarf2out.c (premark_used_variables): New function.
30579 (prune_unused_types_walk): Do not mark not premarked external
30581 (prune_unused_types): Call premark_used_variables.
30583 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30585 PR rtl-optimization/89676
30586 * lra-constraints.c (curr_insn_transform): Do match reload for
30587 early clobbers when the match was successful only for different
30590 2019-03-25 Martin Sebor <msebor@redhat.com>
30592 * doc/extend.texi (Common Type Attributes): Document vector_size.
30593 (Common Variable Attributes): Mention size constraint. Correct
30595 (Vector Extensions): Use @dfn when defining bas type. Clarify
30596 base type and size constraints.
30598 2019-03-25 Richard Biener <rguenther@suse.de>
30600 PR tree-optimization/89789
30601 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30602 changes from non-undefined back to undefined.
30604 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30606 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30607 heap string and a gc string, but since this variable is unknown to
30608 ggc the gc string might get reused and corrupted. Fixed by always
30609 using a heap string.
30611 2019-03-25 Richard Biener <rguenther@suse.de>
30613 PR tree-optimization/89779
30614 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30615 to remove IV defs, delay actual removal.
30616 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30617 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30618 very end, properly also reset loop control IV information.
30620 2019-03-25 Richard Biener <rguenther@suse.de>
30622 PR tree-optimization/89802
30623 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30624 move EH data to folded stmt.
30626 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30628 * config/s390/s390-builtin-types.def: Remove few unused types and
30629 fix sort order for others.
30631 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30633 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30634 expected and found types with -mdebug during builtin matching.
30636 2019-03-25 Richard Biener <rguenther@suse.de>
30638 PR middle-end/89790
30639 * fold-const.c (operand_equal_p): Revert last change with
30642 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30644 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30645 notes for the result of the __tls_get_addr calls.
30646 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30648 2019-03-24 Jeff Law <law@redhat.com>
30650 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30652 PR rtl-optimization/87761
30653 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30654 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30656 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30657 rescans. Reprocess blocks as needed, calling df_analyze before
30658 reprocessing. Always call df_analyze before fixing up debug bind
30661 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30663 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30666 2019-03-22 Andrew Pinski <apinski@marvell.com>
30668 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30669 attrribute for uxtw.
30671 2019-03-26 Jeff Law <law@redhat.com>
30673 PR rtl-optimization/87761
30674 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30675 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30676 (mips_split_move): Accept new INSN argument. Try to forward SRC
30677 into the next instruction.
30678 (mips_split_move_insn): Pass INSN through to mips_split_move.
30680 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30682 PR rtl-optimization/89676
30683 * lra-constraints.c (curr_insn_transform): Do match reload for
30684 early clobbers even if the match was successful.
30686 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30689 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30691 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30693 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30695 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30697 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30698 <avx512>_fmsub_<mode>_mask3<round_name>,
30699 <avx512>_fnmadd_<mode>_mask3<round_name>,
30700 <avx512>_fnmsub_<mode>_mask3<round_name>,
30701 avx512f_vmfmadd_<mode>_mask3<round_name>,
30702 avx512f_vmfmsub_<mode>_mask3<round_name>,
30703 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30704 instead of register_operand and %v instead of v for match_operand 1.
30705 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30706 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30707 <round_nimm_predicate> instead of register_operand and %v instead of v
30708 for match_operand 1.
30710 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30711 <avx512>_fmadd_<mode>_mask3<round_name>,
30712 <avx512>_fmsub_<mode>_mask<round_name>,
30713 <avx512>_fmsub_<mode>_mask3<round_name>,
30714 <avx512>_fnmadd_<mode>_mask<round_name>,
30715 <avx512>_fnmadd_<mode>_mask3<round_name>,
30716 <avx512>_fnmsub_<mode>_mask<round_name>,
30717 <avx512>_fnmsub_<mode>_mask3<round_name>,
30718 <avx512>_fmaddsub_<mode>_mask<round_name>,
30719 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30720 <avx512>_fmsubadd_<mode>_mask<round_name>,
30721 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30722 <round_nimm_predicate> instead of nonimmediate_operand.
30723 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30724 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30725 Use register_operand instead of <round_nimm_predicate> for the
30726 operand that needs to match output.
30727 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30728 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30729 Likewise. Formatting fixes.
30732 * config/i386/i386.c (enum ix86_builtins): Remove
30733 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30734 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30735 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30736 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30737 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30738 __builtin_ia32_vfmsubss3_mask3): New builtins.
30739 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30740 avx512f_vmfmadd_<mode>_mask3<round_name>,
30741 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30742 *avx512f_vmfmsub_<mode>_mask<round_name>,
30743 avx512f_vmfmsub_<mode>_mask3<round_name>,
30744 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30745 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30746 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30747 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30748 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30749 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30750 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30751 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30752 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30753 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30754 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30755 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30756 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30757 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30758 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30759 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30760 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30761 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30762 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30763 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30764 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30765 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30766 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30767 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30768 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30769 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30770 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30771 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30773 2019-03-21 Martin Sebor <msebor@redhat.com>
30775 PR tree-optimization/89350
30776 * builtins.c (compute_objsize): Also ignore offsets whose upper
30778 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30779 (builtin_memref::builtin_memref): Initialize new member.
30780 Allow EXPR to be null.
30781 (builtin_memref::extend_offset_range): Replace local with a member.
30782 Avoid assuming pointer offsets are unsigned.
30783 (builtin_memref::set_base_and_offset): Determine base object
30784 before computing offset range.
30785 (builtin_access::builtin_access): Handle memset.
30786 (builtin_access::generic_overlap): Replace local with a member.
30787 (builtin_access::strcat_overlap): Same.
30788 (builtin_access::overlap): Same.
30789 (maybe_diag_overlap): Same.
30790 (maybe_diag_access_bounds): Same.
30791 (wrestrict_dom_walker::check_call): Handle memset.
30792 (check_bounds_or_overlap): Same.
30794 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30795 Jakub Jelinek <jakub@redhat.com>
30798 * tree.c (fld_type_variant, fld_incomplete_type_of,
30799 fld_process_array_type): Call fld->pset.add and don't call
30800 add_tree_to_fld_list if it returns true.
30801 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30802 non-marked types from TYPE_NEXT_VARIANT list.
30803 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30805 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30807 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30808 to false, if true, don't alloc_entries during construction, but defer
30809 it to the first method that needs m_entries allocated.
30810 (hash_table::hash_table, hash_table::~hash_table,
30811 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30812 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30813 hash_table::clear_slot, hash_table::traverse_noresize,
30814 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30815 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30817 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30818 NO_INSERT instead of find_with_hash.
30819 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30820 hash_set::m_table): Add Lazy to template params of hash_table.
30821 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30822 * attribs.c (test_attribute_exclusions): Likewise.
30823 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30824 hash_set. Add tests for hash_set with Lazy = true.
30826 2019-03-21 Richard Biener <rguenther@suse.de>
30828 PR tree-optimization/89779
30829 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30830 checks with respect to released SSA names now having error_mark_node
30832 * fold-const.c (operand_equal_p): Likewise.
30834 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30837 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30839 (s390_optimize_register_info): Use global_not_special_regno_p to
30840 check for global regs.
30842 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30845 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30846 update this_alternative nor this_alternative_set.
30848 2019-03-19 Jim Wilson <jimw@sifive.com>
30851 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30852 align, size, offset. Use them to handle a BLKmode reference. Update
30854 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30856 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30858 PR rtl-optimization/89768
30859 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30860 instead of GEN_INT.
30861 (unroll_loop_runtime_iterations): Likewise.
30863 2019-03-19 Martin Sebor <msebor@redhat.com>
30865 PR tree-optimization/89644
30866 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30867 rather than endptr as an indicator of nul-termination.
30869 PR tree-optimization/89644
30870 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30871 arrays in determining sequence sizes in strncpy and stpncpy.
30873 2019-03-19 Martin Liska <mliska@suse.cz>
30875 PR middle-end/89737
30876 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30877 unlikely_edges if there's an edge that belongs to both these sets.
30879 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30882 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30883 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30884 go via a stack temporary.
30886 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30889 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30890 instead of gen_rtx_SUBREG.
30891 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30893 2019-03-19 Richard Biener <rguenther@suse.de>
30896 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30898 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30902 * tree.c (free_lang_data_in_decl): Do not free context of C++
30905 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30908 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30909 subs for the first alternative except when operands[3] is 1.
30912 * gimplify.c (gimplify_asm_expr): For output argument with
30913 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30916 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30918 PR rtl-optimization/89753
30919 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30920 explicit unrolling factor even more robust.
30922 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30925 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30926 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30927 signed zeros, do another copysign after the compensation.
30929 2019-03-18 Martin Sebor <msebor@redhat.com>
30931 PR tree-optimization/89720
30932 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30933 more conservatively, the same as anti-range.
30935 2019-03-18 Richard Biener <rguenther@suse.de>
30937 PR middle-end/88945
30938 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30939 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30940 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30941 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30943 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30945 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30946 Extend queue to 1024 entries.
30947 Add "consumed" field.
30948 (gomp_print_output): Remove print_index parameter.
30949 Add final parameter.
30950 Change limit to unsigned.
30951 Use consumed field to implement circular buffer.
30952 Detect interrupted print in final pass.
30953 Flush output at the end.
30954 (run): Update gomp_print_output usage.
30955 (main): Initialize kernargs->output_data.consumed.
30957 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30959 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30960 calculation of the minimum number of scalar iterations for
30961 fully-predicated loops.
30963 2019-03-18 Martin Jambor <mjambor@suse.cz>
30965 PR tree-optimization/89546
30966 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30967 any propagation to its children took place.
30969 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30972 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30973 parameter, and make use of it.
30974 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30976 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30978 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30979 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30980 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30981 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30982 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30983 match what the ops is doing.
30984 (push_multi_fp_blink): Likewise.
30985 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30986 compiling for size and elf target.
30987 (arc_save_callee_enter): Adjust note to match what enter/leave
30990 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30992 * config/arc/arc.md (tst_movb): Fix constraint.
30994 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30996 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30998 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31000 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31001 * config/arc/arc.c (arc_conditional_register_usage): Remove all
31002 reg_alloc_order references.
31003 (size_alloc_order): Define.
31004 (arc_adjust_reg_alloc_order): New function.
31005 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31007 (ADJUST_REG_ALLOC_ORDER): Define.
31008 (HONOR_REG_ALLOC_ORDER): Likewise.
31010 2019-03-18 Richard Biener <rguenther@suse.de>
31013 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31014 loads and stores a bit more.
31016 2019-03-18 Richard Biener <rguenther@suse.de>
31019 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31020 load pessimization to stores as well.
31022 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31024 PR middle-end/86979
31025 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31026 successor, use NULL as its av set.
31028 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31030 PR rtl-optimization/89721
31031 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31033 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31036 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31037 When handling vec_extract, use modular arithmetic to allow
31038 constant selectors greater than vector length.
31039 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31040 V1TImode vectors to have constant selector values greater than 0.
31041 Use modular arithmetic to compute vector index.
31042 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31043 index for in-memory vectors. Correct code generation for
31044 in-register vectors.
31045 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31048 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31052 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31055 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31058 * tree.c (inchash::add_expr): Strip any location wrappers.
31059 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31060 after hash verification.
31063 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31064 SIGN_EXTEND and ZERO_EXTEND.
31066 2019-03-14 Jason Merrill <jason@redhat.com>
31067 Jakub Jelinek <jakub@redhat.com>
31069 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31070 than if is_empty (*slot).
31071 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31072 existing elt and for elt removal.
31073 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31074 of already removed elt.
31076 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31079 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31080 REG_EH_REGION note.
31082 2019-03-14 Martin Liska <mliska@suse.cz>
31085 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31087 2019-03-14 Richard Biener <rguenther@suse.de>
31090 * config/i386/i386.c (make_resolver_func): Properly set
31091 DECL_CONTEXT on the RESULT_DECL.
31092 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31094 2019-03-14 Richard Biener <rguenther@suse.de>
31096 * gimple-pretty-print.c: Include cfgloop.h.
31097 (dump_gimple_phi): Adjust.
31098 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31099 (pp_cfg_jump): Adjust.
31100 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31101 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31102 (lower_phi_internal_fn): Remove.
31103 (verify_gimple_call): Remove IFN_PHI special-casing.
31104 (dump_function_to_file): Dump IL state.
31105 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31106 done to deal with PHI nodes being present in non-SSA state.
31108 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31111 * multiple_target.c (create_dispatcher_calls): Change
31112 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31113 In the node->iterate_referring loop, push *ref rather than ref, call
31114 ref->remove_reference () and always pass 0 to iterate_referring.
31116 PR rtl-optimization/89679
31117 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31118 would contain a paradoxical SUBREG.
31120 2019-03-14 Richard Biener <rguenther@suse.de>
31122 PR tree-optimization/89710
31123 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31126 2019-03-14 Martin Liska <mliska@suse.cz>
31128 * coverage.c (coverage_begin_function): Stream also
31130 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31131 documentation about function declaration location.
31132 * gcov-dump.c (tag_function): Print whole range
31133 of function declaration.
31134 * gcov.c (struct function_info): Add end_column field.
31135 (function_info::function_info): Initialize it.
31136 (output_json_intermediate_file): Output {start,end}_column
31138 (read_graph_file): Read end_column.
31140 2019-03-14 Richard Biener <rguenther@suse.de>
31142 PR middle-end/89698
31143 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31144 that the access types are similar.
31146 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31148 PR tree-optimization/89703
31149 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31150 aren't compatible also with builtin_decl_explicit. Check pure
31151 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31152 and BUILT_IN_STPNCPY{,_CHK}.
31154 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31157 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31158 addr32 prefix to VSIB address for X32.
31159 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31161 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31162 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31163 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31164 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31165 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31166 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31167 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31168 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31169 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31170 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31171 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31172 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31173 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31174 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31175 (*avx512f_scatterdi<mode>): Likewise.
31177 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31180 * lra-constraints.c (inherit_in_ebb): Update
31181 potential_reload_hard_regs along with live_hard_regs.
31183 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31186 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31188 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31190 2019-03-13 Martin Sebor <msebor@redhat.com>
31192 PR tree-optimization/89662
31193 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31196 2019-03-13 Richard Biener <rguenther@suse.de>
31198 PR middle-end/89677
31199 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31200 throw FP expressions at tree-affine.
31202 2019-03-14 Richard Biener <rguenther@suse.de>
31204 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31205 dump negative integer constants using _Literal (type) -num.
31207 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31209 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31210 nonlocal_value member.
31212 PR middle-end/88588
31213 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31214 (ipa_simd_modify_function_body): Handle PHIs.
31216 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31218 * config/s390/s390.c (s390_option_override_internal): Use more
31219 aggressive inlining parameters.
31221 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31223 * config/s390/3906.md: New file.
31224 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31225 (LONGRUNNING_THRESHOLD): Remove.
31226 (MAX_SCHED_MIX_SCORE): Decrease.
31227 (MAX_SCHED_MIX_DISTANCE): Decrease.
31228 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31229 (struct s390_sched_state): New struct to hold scheduling state.
31230 (S390_SCHED_STATE_NORMAL): Remove.
31231 (S390_SCHED_STATE_CRACKED): Remove.
31232 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31233 (s390_get_sched_attrmask): Use new attribute.
31234 (s390_get_unit_mask): Use new units.
31235 (s390_is_fpd): New function.
31236 (s390_is_fxd): New function.
31237 (s390_is_longrunning): New function.
31238 (s390_sched_score): Use new functions.
31239 (s390_sched_reorder): Likewise.
31240 (s390_sched_variable_issue): Rework and use new functions.
31241 (s390_sched_init): Use new functions.
31242 * config/s390/s390.h (s390_tune_attr): Add z14.
31243 * config/s390/s390.md: Add z14.
31245 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31247 * config/s390/2964.md: Update pipeline description.
31248 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31249 (LONGRUNNING_THRESHOLD): Remove.
31250 (LATENCY_FACTOR): Remove.
31251 (s390_get_unit_mask): Add unit.
31252 (s390_sched_score): Use fxd/fpd.
31253 (s390_sched_variable_issue): Use fxd/fpd.
31255 2019-03-12 Martin Liska <mliska@suse.cz>
31257 * config/i386/i386.c: Reword an error message.
31259 2019-03-12 Martin Jambor <mjambor@suse.cz>
31261 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31262 terminate with newline.
31264 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31267 * config/s390/s390.md (tabort): Use %wd instead of
31268 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31269 letters and periods.
31270 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31271 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31274 PR middle-end/89663
31275 * builtins.c (expand_builtin_int_roundingfn,
31276 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31277 gcc_unreachable if validate_arglist fails.
31279 2019-03-12 Richard Biener <rguenther@suse.de>
31281 PR tree-optimization/89664
31282 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31283 free the occurance tree after the early out.
31285 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31287 PR middle-end/89655
31289 * vr-values.c (vr_values::update_value_range): If
31290 old_vr->varying_p (), don't update it, make new_vr also VARYING
31293 2019-03-11 Martin Liska <mliska@suse.cz>
31295 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31296 Fix double string quoting.
31298 2019-03-11 Martin Liska <mliska@suse.cz>
31300 * collect-utils.c (collect_wait): Wrap apostrophes
31301 in gcc internal format with %'.
31302 * collect2.c (main): Likewise.
31303 (scan_prog_file): Likewise.
31304 (scan_libraries): Likewise.
31305 * config/i386/i386.c (ix86_expand_call): Likewise.
31306 (ix86_handle_interrupt_attribute): Likewise.
31307 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31308 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31309 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31310 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31311 * symtab.c (symtab_node::verify_base): Likewise.
31312 * tree-cfg.c (verify_gimple_label): Likewise.
31313 * tree.c (verify_type_variant): Likewise.
31315 2019-03-11 Martin Liska <mliska@suse.cz>
31317 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31318 in a string format message and fix GNU coding style.
31319 (expand_builtin_set_thread_pointer): Likewise.
31320 * common/config/aarch64/aarch64-common.c
31321 (aarch64_rewrite_selected_cpu): Likewise.
31322 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31323 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31324 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31325 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31326 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31327 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31328 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31329 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31330 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31331 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31333 * common/config/riscv/riscv-common.c
31334 (riscv_subset_list::parsing_subset_version): Likewise.
31335 (riscv_subset_list::parse_std_ext): Likewise.
31336 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31337 (riscv_subset_list::parse): Likewise.
31338 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31339 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31340 (aarch64_override_options_internal): Likewise.
31341 (aarch64_validate_mcpu): Likewise.
31342 (aarch64_validate_march): Likewise.
31343 (aarch64_validate_mtune): Likewise.
31344 (aarch64_override_options): Likewise.
31345 * config/alpha/alpha.c (alpha_option_override): Likewise.
31346 * config/arc/arc.c (arc_init): Likewise.
31347 (parse_mrgf_banked_regs_option): Likewise.
31348 (arc_override_options): Likewise.
31349 (arc_expand_builtin_aligned): Likewise.
31350 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31351 (arm_expand_builtin): Likewise.
31352 * config/arm/arm.c (arm_option_check_internal): Likewise.
31353 (arm_configure_build_target): Likewise.
31354 (arm_option_override): Likewise.
31355 (arm_options_perform_arch_sanity_checks): Likewise.
31356 (arm_handle_cmse_nonsecure_entry): Likewise.
31357 (arm_handle_cmse_nonsecure_call): Likewise.
31358 (arm_tls_referenced_p): Likewise.
31359 (thumb1_expand_prologue): Likewise.
31360 * config/avr/avr.c (avr_option_override): Likewise.
31361 * config/bfin/bfin.c (bfin_option_override): Likewise.
31362 * config/c6x/c6x.c (c6x_option_override): Likewise.
31363 * config/cr16/cr16.c (cr16_override_options): Likewise.
31364 * config/cris/cris.c (cris_option_override): Likewise.
31365 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31366 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31367 * config/darwin.c (darwin_override_options): Likewise.
31368 * config/frv/frv.c (frv_expand_builtin): Likewise.
31369 * config/h8300/h8300.c (h8300_option_override): Likewise.
31370 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31371 (ix86_option_override_internal): Likewise.
31372 (warn_once_call_ms2sysv_xlogues): Likewise.
31373 (ix86_expand_prologue): Likewise.
31374 (split_stack_prologue_scratch_regno): Likewise.
31375 (ix86_warn_parameter_passing_abi): Likewise.
31376 * config/ia64/ia64.c (fix_range): Likewise.
31377 * config/m68k/m68k.c (m68k_option_override): Likewise.
31378 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31379 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31380 (mips_set_compression_mode): Likewise.
31381 * config/mmix/mmix.c (mmix_option_override): Likewise.
31382 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31383 * config/msp430/msp430.c (msp430_option_override): Likewise.
31384 * config/nds32/nds32.c (nds32_option_override): Likewise.
31385 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31386 (nios2_option_override): Likewise.
31387 (nios2_expand_custom_builtin): Likewise.
31388 * config/nvptx/mkoffload.c (main): Likewise.
31389 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31390 * config/pa/pa.c (fix_range): Likewise.
31391 (pa_option_override): Likewise.
31392 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31393 (riscv_option_override): Likewise.
31394 * config/rl78/rl78.c (rl78_option_override): Likewise.
31395 * config/rs6000/aix61.h: Likewise.
31396 * config/rs6000/aix71.h: Likewise.
31397 * config/rs6000/aix72.h: Likewise.
31398 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31399 * config/rs6000/freebsd64.h: Likewise.
31400 * config/rs6000/linux64.h: Likewise.
31401 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31402 (rs6000_expand_zeroop_builtin): Likewise.
31403 (rs6000_expand_mtfsb_builtin): Likewise.
31404 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31405 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31406 (rs6000_invalid_builtin): Likewise.
31407 (rs6000_expand_split_stack_prologue): Likewise.
31408 * config/rs6000/rtems.h: Likewise.
31409 * config/rx/rx.c (valid_psw_flag): Likewise.
31410 (rx_expand_builtin): Likewise.
31411 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31412 * config/s390/s390.c (s390_expand_builtin): Likewise.
31413 (s390_function_profiler): Likewise.
31414 (s390_option_override_internal): Likewise.
31415 (s390_option_override): Likewise.
31416 * config/sh/sh.c (sh_option_override): Likewise.
31417 (sh_builtin_saveregs): Likewise.
31418 (sh_fix_range): Likewise.
31419 * config/sh/vxworks.h: Likewise.
31420 * config/sparc/sparc.c (sparc_option_override): Likewise.
31421 * config/spu/spu.c (spu_option_override): Likewise.
31422 (fix_range): Likewise.
31423 * config/visium/visium.c (visium_option_override): Likewise.
31424 (visium_handle_interrupt_attr): Likewise.
31425 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31426 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31427 (dbg_cnt_process_opt): Likewise.
31428 * dwarf2out.c (output_dwarf_version): Likewise.
31429 * except.c (expand_eh_return): Likewise.
31430 * gcc.c (defined): Likewise.
31431 (driver_handle_option): Likewise.
31432 (process_command): Likewise.
31433 (compare_files): Likewise.
31434 (driver::prepare_infiles): Likewise.
31435 (driver::do_spec_on_infiles): Likewise.
31436 (driver::maybe_run_linker): Likewise.
31437 * omp-offload.c (oacc_parse_default_dims): Likewise.
31438 * opts-global.c (handle_common_deferred_options): Likewise.
31439 * opts.c (parse_sanitizer_options): Likewise.
31440 (common_handle_option): Likewise.
31441 (enable_warning_as_error): Likewise.
31442 * passes.c (enable_disable_pass): Likewise.
31443 * plugin.c (parse_plugin_arg_opt): Likewise.
31444 (default_plugin_dir_name): Likewise.
31445 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31446 (default_pch_valid_p): Likewise.
31447 * toplev.c (init_asm_output): Likewise.
31448 (process_options): Likewise.
31449 (toplev::run_self_tests): Likewise.
31450 * tree-cfg.c (verify_gimple_call): Likewise.
31451 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31452 (tree_inlinable_function_p): Likewise.
31453 * var-tracking.c (vt_find_locations): Likewise.
31455 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31457 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31458 only on the else branch.
31460 2019-03-11 Martin Liska <mliska@suse.cz>
31462 * gcov.c (output_intermediate_json_line): Print function
31464 (output_json_intermediate_file): Add new argument.
31465 * doc/gcov.texi: Document the change.
31467 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31469 PR rtl-optimization/89588
31470 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31471 explicit unrolling factor more robust.
31473 2019-03-11 Richard Biener <rguenther@suse.de>
31475 PR tree-optimization/89649
31476 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31477 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31478 on the prolog and epilog loops.
31479 (vect_loop_versioning): Return copy of loop.
31480 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31481 on the non-vectorized version of the loop.
31483 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31486 * config/i386/sse.md (*vec_extractv2di_0_sse):
31487 Add (=r,x) alternative and corresponding splitter.
31489 2019-03-10 Martin Jambor <mjambor@suse.cz>
31491 PR tree-optimization/85762
31492 PR tree-optimization/87008
31493 PR tree-optimization/85459
31494 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31495 it points to if there is a type changing MEM_REF. Adjust all callers.
31496 (build_accesses_from_assign): Disable total scalarization if
31497 contains_vce_or_bfcref_p returns true through the new parameter, for
31500 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31503 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31504 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31507 * common.opt (fdiagnostics-show-labels,
31508 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31509 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31510 gas-locview-support, ginline-points, ginternal-reset-location-views):
31511 Terminate description text with a dot.
31512 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31513 * config/mcore/mcore.opt (m210, m340): Likewise.
31514 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31515 mnops=): Start description text with a capital letter.
31516 * config/arc/arc.opt (msize-level=): Likewise.
31517 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31518 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31519 mnewlib): Likewise.
31520 * config/ft32/ft32.opt (msim): Likewise.
31521 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31522 (mnodiv, mnopm): Terminate description text with a dot.
31523 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31525 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31527 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31530 PR rtl-optimization/89634
31531 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31532 are modified in BB_END (e->src) instruction.
31534 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31537 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31538 messages more amenable to translation, and improve wording.
31540 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31542 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31543 ud- and du-chains between phases.
31545 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31548 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31549 instead of POLY_INT_CST.
31551 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31553 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31556 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31561 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31562 (_mm_storeu_si64): Ditto.
31564 2019-03-08 Martin Liska <mliska@suse.cz>
31567 * config/i386/i386.c (ix86_option_override_internal): Disable
31568 jump tables when retpolines are used.
31570 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31573 * ipa-split.c (execute_split_functions): Do not split
31574 'noinline' or 'section' function.
31576 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31579 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31580 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31581 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31584 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31585 from diagnostics. Formatting fixes.
31588 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31589 warn_odr diagnostics.
31592 * lra-constraints.c (process_alt_operands): Avoid one space before
31593 " at the end of line and another after " on another line in a string
31595 * attribs.c (handle_dll_attribute): Likewise.
31596 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31598 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31599 warning_at or inform messages in G_() if there is no ?:.
31601 PR tree-optimization/89550
31602 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31603 returned true. Formatting fixes.
31604 (expand_builtin_strnlen): Formatting fixes.
31605 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31606 if warning_at returned true.
31607 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31609 2019-03-08 Richard Biener <rguenther@suse.de>
31611 PR middle-end/89578
31612 * cfgloop.h (struct loop): Add owned_clique field.
31613 * cfgloopmanip.c (copy_loop_info): Copy it.
31614 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31616 * tree-inline.c (copy_loops): Remap owned_clique.
31617 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31618 * lto-streamer-out.c (output_cfg): Likewise.
31620 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31623 * config/darwin.c: Include intl.h.
31624 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31625 composing the message out of two separate parts.
31627 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31630 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31631 doesn't start with a capital letter and doesn't end with a dot.
31632 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31633 with a capital letter.
31634 (ix86_mangle_function_version_assembler_name): Likewise.
31635 (ix86_generate_version_dispatcher_body): Likewise.
31636 (fold_builtin_cpu): Likewise.
31637 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31638 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31639 translators, wrap full type name in %qs.
31641 PR translation/79999
31642 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31643 depend clause with source (or sink) modifier.
31644 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31647 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31648 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31649 (avx512f_load<mode>_mask): New define_expand.
31650 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31651 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31652 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31653 __builtin_ia32_movess_mask): New builtins.
31654 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31655 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31656 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31657 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31659 2019-03-07 Martin Jambor <mjambor@suse.cz>
31662 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31663 for extern inline functions.
31665 2019-03-07 Martin Jambor <mjambor@suse.cz>
31668 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31669 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31670 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31671 have multiple callees. At the end check if declarations match as
31672 opposed to cgraph_nodes.
31674 2019-03-07 Martin Liska <mliska@suse.cz>
31676 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31677 which is equivalent to searching for this in clones chain.
31678 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31679 names with a neighbour and special case first node in a chain.
31681 2019-01-25 Jason Merrill <jason@redhat.com>
31683 PR c++/80916 - spurious "static but not defined" warning.
31684 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31685 for an internal symbol with DECL_EXTERNAL.
31687 2019-04-07 Richard Biener <rguenther@suse.de>
31689 PR middle-end/89618
31690 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31691 * tree-inline.c (copy_loops): Simplify.
31693 2019-03-07 Martin Liska <mliska@suse.cz>
31695 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31697 2019-03-07 Richard Biener <rguenther@suse.de>
31699 PR tree-optimization/89595
31700 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31701 stmt iterator as reference, take boolean output parameter to
31702 indicate whether the stmt was removed and thus the iterator
31704 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31705 stmts created by folding.
31707 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31710 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31713 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31715 PR rtl-optimization/88845
31716 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31718 * lra.c (remove_scratches_1): New function.
31719 (remove_scratches): Use it.
31720 (lra_emit_move): Likewise.
31722 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31724 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31725 unaligned_access variable.
31726 * config/arc/arc.c (arc_override_options): Set unaligned access
31727 default on for HS CPUs.
31728 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31730 2019-03-06 Martin Liska <mliska@suse.cz>
31732 PR gcov-profile/89577
31733 * doc/gcov.texi: Prefer to use --coverage.
31734 * doc/sourcebuild.texi: Likewise.
31736 2019-03-02 Jason Merrill <jason@redhat.com>
31738 PR c++/86485 - -Wmaybe-unused with empty class ?:
31739 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31741 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31744 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31747 PR middle-end/89590
31748 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31749 exactly one argument.
31751 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31752 Richard Sandiford <richard.sandiford@arm.com>
31754 PR tree-optimization/89570
31755 * match.pd (vec_cond into cond_op simplification): Don't use
31756 get_conditional_internal_fn, use as_internal_fn (cond_op).
31758 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31761 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31762 to decide when to split off a non-zero offset from a symbol.
31763 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31764 in function symbols.
31766 2019-03-05 Richard Biener <rguenther@suse.de>
31768 PR tree-optimization/89594
31769 * tree-if-conv.c (pass_if_conversion::execute): Handle
31770 case where .LOOP_VECTORIZED_FUNCTION was removed.
31772 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31775 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31776 instead alloca it only when needed with the needed size.
31778 PR tree-optimization/89570
31779 * match.pd (vec_cond into cond_op simplification): Guard with
31780 vectorized_internal_fn_supported_p test and #if GIMPLE.
31782 PR tree-optimization/89566
31783 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31784 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31785 Punt if get_user_idx_format succeeds, but idx_format argument is
31786 not provided or doesn't have pointer type, or if idx_args is above
31787 number of provided arguments.
31789 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31791 PR tree-optimization/89437
31792 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31794 2019-03-04 Richard Biener <rguenther@suse.de>
31796 PR middle-end/89572
31797 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31800 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31802 PR tree-optimization/89487
31803 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31804 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31805 (distribute_loop): Don't do runtime alias check if there is non-
31806 addressable data reference.
31807 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31808 is a register variable.
31810 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31813 * config/arm/arm.md (cmpsi2_addneg): Use
31814 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31815 If operands[2] is 0 or INT_MIN, force use of subs.
31816 (*compare_scc splitter): Use gen_int_mode.
31817 (*negscc): Likewise.
31818 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31820 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31821 Monk Chiang <sh.chiang04@gmail.com>
31823 * common/config/riscv/riscv-common.c: Include sstream.
31824 (riscv_subset_list::to_string): New.
31825 (riscv_arch_str): Likewise.
31826 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31827 * config.in: Regen.
31828 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31829 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31830 (riscv_emit_attribute): New.
31831 (riscv_file_start): Emit attribute if needed.
31832 (riscv_option_override): Init riscv_emit_attribute_p.
31833 * config/riscv/riscv.opt (mriscv-attribute): New option.
31834 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31835 * configure: Regen.
31836 * doc/install.texi: Document --with-riscv-attribute.
31837 * doc/invoke.texi: Document -mriscv-attribute.
31839 * common/config/riscv/riscv-common.c:
31840 Include config/riscv/riscv-protos.h.
31841 (INCLUDE_STRING): Defined.
31842 (RISCV_DONT_CARE_VERSION): Defined.
31843 (riscv_subset_t): Declare.
31844 (riscv_subset_t::riscv_subset_t): New.
31845 (riscv_subset_list): Declare.
31846 (riscv_subset_list::riscv_subset_list): New.
31847 (riscv_subset_list::~riscv_subset_list): Likewise.
31848 (riscv_subset_list::parsing_subset_version): Likewise.
31849 (riscv_subset_list::parse_std_ext): Likewise.
31850 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31851 (riscv_subset_list::add): Likewise.
31852 (riscv_subset_list::lookup): Likewise.
31853 (riscv_subset_list::xlen): Likewise.
31854 (riscv_subset_list::parse): Likewise.
31855 (riscv_supported_std_ext): Likewise.
31856 (current_subset_list): Likewise.
31857 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31860 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31862 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31863 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31864 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31866 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31868 PR rtl-optimization/85899
31869 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31870 fallthru edges leading to the exit block.
31872 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31875 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31876 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31878 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31880 PR tree-optimization/89535
31881 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31882 for each operand. Calculate the fallback choice for mask operands
31883 and pass it to vect_get_vec_def_for_operand.
31885 2019-03-01 Richard Biener <rguenther@suse.de>
31887 PR middle-end/89541
31888 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31889 get virtual operands.
31890 (get_expr_operands): Handle CONST_DECL like other decls.
31892 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31894 PR middle-end/89503
31895 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31896 on DECL_P and EXPR_P.
31898 2019-03-01 Richard Biener <rguenther@suse.de>
31900 PR middle-end/89497
31901 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31902 argument, defaulted to zero.
31903 * passes.c (execute_function_todo): Pass down SSA update flags
31904 to cleanup_tree_cfg.
31905 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31906 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31908 (cleanup_tree_cfg): Get and pass down SSA update flags.
31910 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31913 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31914 early_lto_debug argument.
31916 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31918 PR tree-optimization/89536
31919 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31920 only whether bit #0 of the value is 0 instead of the entire value.
31922 2019-02-28 Marek Polacek <polacek@redhat.com>
31924 PR c++/87068 - missing diagnostic with fallthrough statement.
31925 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31926 at the end of a seq, save its location to walk_stmt_info.
31927 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31930 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31933 * tree.c (find_atomic_core_type): Move ahead in file.
31934 (check_base_type): Correctly compare alignments of atomic types.
31936 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31939 * config/i386/i386.c (get_builtin_code_for_version): Identify
31940 Westmere from PCLMUL, instead of AES.
31942 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31945 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31946 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31949 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31952 * config/aarch64/aarch64-option-extensions.def: Document it.
31953 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31956 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31959 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31960 builtins if they don't have a single scalar floating point argument.
31963 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31965 PR rtl-optimization/89490
31966 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31967 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31968 block section is not mergeable.
31970 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31973 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31974 old define_insn to ...
31975 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31976 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31977 Rename old define_insn to ...
31978 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31979 (thumb2_casesi_internal_pic): New define_expand. Rename old
31981 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31982 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31983 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31985 2019-02-27 Richard Biener <rguenther@suse.de>
31988 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31990 2019-02-27 Richard Biener <rguenther@suse.de>
31992 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31995 2019-02-27 Richard Biener <rguenther@suse.de>
31998 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31999 parameter, prefix section name with .gnu.debuglto_ if true.
32000 (dwarf2out_finish): Pass false to output_comdat_type_unit.
32001 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32003 2019-02-27 Richard Biener <rguenther@suse.de>
32006 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32007 rather than on use_debug_types, doing what output_die does.
32008 (value_format): Likewise.
32010 2019-02-27 Martin Jambor <mjambor@suse.cz>
32011 Martin Sebor <msebor@redhat.com>
32013 * doc/invoke.texi (Warning Options): Reword description of
32014 -Wno-absolute-value.
32016 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32018 PR tree-optimization/89280
32019 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32020 builtin_setjmp_setup_bb): New functions.
32021 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32022 When visiting __builtin_setjmp_setup block, queue in special
32023 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32024 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32025 from visited after the loop if they don't have any visited successor
32028 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32030 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32032 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32034 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32037 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32038 with types other than sizetype/ssizetype.
32040 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32042 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32043 (enum sparc_processor_type): ...this.
32044 (enum sparc_code_model_type): New enumeration type.
32045 (enum sparc_memory_model_type): Tweak comments.
32046 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32048 (mcmodel): Use sparc_code_model enumeration and variable.
32049 (sparc_code_model): New enumeration.
32050 (mdebug): Add Undocumented marker.
32051 * config/sparc/sparc.h (enum cmodel): Delete.
32052 (sparc_cmodel): Likewise.
32053 (TARGET_CM_MEDLOW): Adjust to above renaming.
32054 (TARGET_CM_MEDMID): Likewise.
32055 (TARGET_CM_MEDANY): Likewise.
32056 (TARGET_CM_EMBMEDANY): Likewise.
32057 * config/sparc/sparc.c (sparc_cmodel): Delete.
32058 (sparc_option_override): Remove string/value mapping support for the
32059 code model. Move code and memory model support to after the handling
32060 of target flags. Do private machine setup last.
32061 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32062 (sparc_legitimize_reload_address): Likewise.
32063 (sparc_output_mi_thunk): Likewise.
32064 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32066 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32068 PR tree-optimization/89500
32069 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32070 (handle_builtin_strlen): Remove noncst_bound variable. Always
32071 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32072 cst if the first cst bytes starting at x are known to be non-zero,
32073 even if the string is not zero terminated. Don't try to modify
32074 *si for strnlen. Update strlen_to_stridx only for strlen or if
32075 we can prove strnlen returns the same value as strlen would.
32077 2019-02-26 Martin Liska <mliska@suse.cz>
32079 * alloc-pool.h (struct pool_usage): Remove extra
32081 * bitmap.h (struct bitmap_usage): Likewise.
32082 * ggc-common.c (struct ggc_usage): Likewise.
32083 * mem-stats.h (struct mem_usage): Likewise.
32084 (mem_alloc_description::dump): Print dash lines
32085 here and repeat header at the end of a table report.
32086 It's then more readable.
32087 * tree-phinodes.c (phinodes_print_statistics): Make
32088 horizontal alignment.
32089 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32090 * vec.c (struct vec_usage): Remove extra print_dash_line.
32091 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32093 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32095 * doc/extend.texi (__builtin_object_size):
32096 Use @pxref instead of @xref inside parenthesis.
32097 (__builtin_has_attribute): Add missing comma after @xref.
32098 (__builtin_object_size): Ditto.
32099 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32101 2019-02-26 Jeff Law <law@redhat.com>
32103 PR rtl-optimization/87761
32104 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32105 detect obviously dead insns and delete them.
32107 2019-02-26 Richard Biener <rguenther@suse.de>
32109 PR tree-optimization/89505
32110 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32111 to handle restrict pointed-to vars with multiple subvars
32114 2019-02-26 Richard Biener <rguenther@suse.de>
32116 PR tree-optimization/89489
32117 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32119 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32121 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32122 and move around comment.
32123 <BIT_AND_EXPR>: Likewise.
32124 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32126 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32129 * config/i386/i386.c (remove_partial_avx_dependency): Call
32130 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32131 after changing possibly many instructions to use that pseudo. Fix up
32132 insertion of v4sf_const0 setter at the start of bb.
32134 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32137 * doc/extend.texi (Variadic Pointer Args): New section.
32139 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32140 Martin Sebor <msebor@gmail.com>
32142 * common.opt (Wattribute-alias): Likewise.
32143 * doc/invoke.texi (Option Summary): List general form of
32144 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32145 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32146 Add cross-references.
32147 (-Wattribute-alias): Rewrite and correct default. Mention
32148 considered attributes (same as for -Wmissing-attributes).
32150 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32152 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32153 (_mm_cvtpd_ps): Likewise.
32154 (_mm_cvttpd_epi32): Likewise.
32157 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32158 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32161 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32163 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32166 * common/config/aarch64/aarch64-common.c
32167 (struct aarch64_option_extension): Add is_synthetic.
32168 (all_extensions): Use it.
32169 (TARGET_OPTION_INIT_STRUCT): Define hook.
32170 (struct gcc_targetm_common): Moved to end.
32171 (all_extensions_by_on): New.
32172 (opt_ext_cmp, typedef opt_ext): New.
32173 (aarch64_option_init_struct): New.
32174 (aarch64_contains_opt): New.
32175 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32176 * config/aarch64/aarch64-option-extensions.def
32177 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32178 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32179 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32180 Set is_synthetic to false.
32181 (crypto): Set is_synthetic to true.
32182 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32185 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32187 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32188 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32189 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32190 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32191 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32192 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32193 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32194 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32196 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32197 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32198 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32199 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32200 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32201 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32202 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32203 vfmlsl_laneq_high_f16): ... To this.
32204 * config/arm/neon.md: Update comments.
32206 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32208 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32209 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32210 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32211 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32212 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32213 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32214 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32215 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32217 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32218 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32219 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32220 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32221 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32222 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32223 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32224 vfmlslq_laneq_high_f16): ... To this.
32226 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32228 PR rtl-optimization/86096
32229 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32230 comparing mw_order values.
32232 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32235 * config/arm/arm.md (*subsi3_carryin_const): Use
32236 arm_neg_immediate_operand predicate instead of
32237 arm_not_immediate_operand, "L" constraint instead of "K" and
32238 print it using %n2 instead of %B2.
32239 (*subsi3_carryin_const0): New define_insn.
32240 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32241 instead of arm_not_operand and "I" constraint instead of "K" and
32242 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32243 another match_operand and in the condition check that it is negation
32245 (*subsi3_carryin_compare_const0): New define_ins.
32246 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32247 *subsi3_carryin_const.
32248 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32249 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32252 * config/arm.vfp.md (*negdf2_vfp): Use
32253 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32254 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32256 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32258 PR rtl-optimization/89445
32259 * simplify-rtx.c (simplify_ternary_operation): Don't use
32260 simplify_merge_mask on operands that may trap.
32261 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32262 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32263 second operand is CONST_VECTOR, check if any element could be zero.
32264 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32265 their operands can trap.
32267 2019-02-23 Martin Sebor <msebor@redhat.com>
32269 * gimple-ssa-sprintf.c (target_strtol): Rename...
32270 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32271 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32272 check for range error.
32274 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32277 * opts-common.c (prune_options): Also prune joined switches
32278 with Negative and RejectNegative.
32279 * config/i386/i386.opt (march=): Add Negative(march=).
32280 (mtune=): Add Negative(mtune=).
32281 * doc/options.texi: Document Negative used together with Joined
32282 and RejectNegative.
32284 2019-02-22 Martin Sebor <msebor@redhat.com>
32286 * doc/extend.texi (Other Builtins): Add
32287 __builtin_is_constant_evaluated.
32289 2019-02-22 Richard Biener <rguenther@suse.de>
32291 PR tree-optimization/87609
32292 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32294 2019-02-22 Jeff Law <law@redhat.com>
32296 PR rtl-optimization/87761
32297 * config/mips/mips.md: Add new combiner pattern to recognize
32298 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32300 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32303 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32304 destination register in peepholes generating patterns for ADDS/SUBS.
32305 (add<mode>3_compare0,
32306 *addsi3_compare0_uxtw, add<mode>3_compareC,
32307 add<mode>3_compareV_imm, add<mode>3_compareV,
32308 *adds_<optab><ALLX:mode>_<GPI:mode>,
32309 *subs_<optab><ALLX:mode>_<GPI:mode>,
32310 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32311 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32312 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32313 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32314 sub<mode>3_compare1): Allow stack pointer for source register.
32315 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32317 2019-02-22 Martin Sebor <msebor@redhat.com>
32319 PR tree-optimization/88993
32320 PR tree-optimization/88853
32321 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32323 (sprintf_dom_walker::call_info::is_string_func): New helper.
32324 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32325 for formatted string functions.
32326 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32328 2019-02-22 Martin Sebor <msebor@redhat.com>
32331 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32332 unreachable subexpressions.
32334 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32335 Hongtao Liu <hongtao.liu@intel.com>
32336 Sunil K Pandey <sunil.k.pandey@intel.com>
32339 * config/i386/i386-passes.def: Add
32340 pass_remove_partial_avx_dependency.
32341 * config/i386/i386-protos.h
32342 (make_pass_remove_partial_avx_dependency): New.
32343 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32345 (pass_data_remove_partial_avx_dependency): New.
32346 (pass_remove_partial_avx_dependency): Likewise.
32347 (make_pass_remove_partial_avx_dependency): Likewise.
32348 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32349 (*extendsfdf2): Add avx_partial_xmm_update.
32350 (truncdfsf2): Likewise.
32351 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32352 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32354 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32356 PR middle-end/85598
32357 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32360 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32363 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32364 (PTA_SKYLAKE): Add PTA_AES.
32365 (PTA_GOLDMONT): Likewise.
32367 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32369 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32370 instruction if enabled.
32371 (aarch64_override_options): Remove reference to return address key.
32373 2019-02-22 Richard Biener <rguenther@suse.de>
32375 PR tree-optimization/89440
32376 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32377 not necessary assert.
32379 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32382 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32383 (oacc_replace_fn_attrib_attr): ... this new function.
32384 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32385 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32387 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32389 * config/arm/arm-cpus.in (ares): Rename to...
32390 (neoverse-n1): ... This. Add ares as alias.
32391 * config/arm/arm-tables.opt: Regenerate.
32392 * config/arm/arm-tune.md: Likewise.
32393 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32395 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32397 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32398 * config/aarch64/aarch64-tune.md: Regenerate.
32399 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32401 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32403 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32404 (neoversen1_tunings): ... This.
32405 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32406 (neoverse-n1): New CPU.
32407 * config/aarch64/aarch64-tune.md: Regenerate.
32408 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32410 2019-02-22 Richard Biener <rguenther@suse.de>
32412 PR middle-end/87609
32413 * cfghooks.h (dependence_hash): New typedef.
32414 (struct copy_bb_data): New type.
32415 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32416 (duplicate_block): Likewise.
32417 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32418 (copy_bbs): Create and pass down copy_bb_data.
32419 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32420 (rtl_duplicate_bb): Likewise.
32421 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32422 remap dependence info.
32424 2019-02-22 Richard Biener <rguenther@suse.de>
32426 PR tree-optimization/87609
32427 * tree-core.h (tree_base): Document special clique values.
32428 * tree-inline.c (remap_dependence_clique): Do not use the
32429 special clique value of one.
32430 (maybe_set_dependence_info): Use clique one.
32431 (clear_dependence_clique): New callback.
32432 (compute_dependence_clique): Clear clique one from all refs
32433 before assigning it (again).
32435 2019-02-21 Martin Sebor <msebor@redhat.com>
32437 * doc/extend.texi (__clear_cache): Correct signature.
32439 2019-02-21 Ian Lance Taylor <iant@golang.org>
32442 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32443 than output_constant_def.
32444 (add_constant_to_table): New static function.
32445 (output_constant_def): Call add_constant_to_table.
32446 (tree_output_constant_def): Likewise.
32448 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32451 * builtins.c (fold_builtin_arith_overflow): If first two args are
32452 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32455 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32458 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32459 error for -mindirect-branch/-mfunction-return with incompatible
32462 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32465 * constraints.md (q): Remove.
32466 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32469 2019-02-21 Martin Jambor <mjambor@suse.cz>
32472 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32473 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32474 (omp_adjust_for_condition): ...here. Added necessary parameters.
32475 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32476 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32477 proper values to new parameters of omp_adjust_for_condition.
32479 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32481 PR middle-end/89412
32482 * expr.c (expand_assignment): If result is a MEM, use change_address
32483 instead of simplify_gen_subreg.
32485 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32486 David Malcolm <dmalcolm@redhat.com>
32488 PR middle-end/89091
32489 * fold-const.c (decode_field_reference): Return NULL_TREE if
32490 lang_hooks.types.type_for_size returns NULL. Check it before
32491 overwriting *exp_. Use return NULL_TREE instead of return 0.
32493 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32495 PR middle-end/88074
32496 PR middle-end/89415
32497 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32500 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32503 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32504 TARGET_SSE in addition to TARGET_SSE_MATH.
32506 (ix86_excess_precision): Ditto.
32507 (ix86_float_exceptions_rounding_supported_p): Ditto.
32508 (use_rsqrt_p): Ditto.
32509 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32511 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32514 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32515 linenum_arith_t when determining if two adjacent line spans are
32516 close enough to merge.
32517 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32518 lines within each line_span.
32520 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32523 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32524 paradoxical SUBREGS.
32526 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32529 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32530 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32531 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32534 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32536 * config/gcn/gcn.c (print_operand): Fix typo.
32538 2019-02-19 Richard Biener <rguenther@suse.de>
32540 PR middle-end/88074
32541 * toplev.c (do_compile): Initialize mpfr's exponent range
32542 based on available float modes.
32544 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32546 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32547 as long as the epilogue isn't completed.
32549 2019-02-18 Martin Sebor <msebor@redhat.com>
32551 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32552 __has_cpp_attribute, and __has_include.
32554 2019-02-18 Martin Sebor <msebor@redhat.com>
32556 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32558 2019-02-18 Martin Sebor <msebor@redhat.com>
32560 PR middle-end/89294
32561 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32563 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32565 2019-02-18 Richard Biener <rguenther@suse.de>
32567 PR tree-optimization/89296
32568 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32569 of no-warning flag to cases that might emit the bogus warning.
32571 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32574 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32576 * config/arm/vfp.md (*movdi_vfp): Likewise.
32577 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32578 "q" constraint for operands[0].
32581 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32582 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32583 pattern in a temporary buffer.
32584 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32585 than 64-operands[2].
32588 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32589 s390_indirect_branch_settings): Define unconditionally.
32590 (s390_set_current_function): Likewise, but guard the whole body except
32591 the s390_indirect_branch_settings call with
32592 #if S390_USE_TARGET_ATTRIBUTE.
32593 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32595 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32596 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32597 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32598 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32599 HOST_WIDE_INT_1U instead of 1ULL.
32600 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32601 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32602 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32603 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32605 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32608 2019-02-18 Martin Jambor <mjambor@suse.cz>
32610 PR tree-optimization/89209
32611 * tree-sra.c (create_access_replacement): New optional parameter
32612 reg_tree. Use it as a type if non-NULL and access type is not of
32614 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32615 to create_access_replacement.
32616 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32617 Check lacc is non-NULL before attempting to re-create it on the RHS.
32619 2019-02-18 Martin Liska <mliska@suse.cz>
32622 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32624 (symbol_table::free_edge): Recycle m_summary_id.
32625 * cgraph.h (get_summary_id): New.
32626 (symbol_table::release_symbol): Set m_summary_id to -1
32628 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32629 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32630 function_summary to fast_function_summary.
32631 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32632 * ipa-pure-const.c (class funct_state_summary_t):
32633 Switch from function_summary to fast_function_summary.
32634 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32635 (class ipa_ref_opt_summary_t): Switch from function_summary
32636 to fast_function_summary.
32637 * symbol-summary.h (class function_summary_base): New class
32638 that is created from base of former function_summary.
32639 (function_summary_base::unregister_hooks): New.
32640 (class function_summary): Inherit from function_summary_base.
32641 (class call_summary_base): New class
32642 that is created from base of former call_summary.
32643 (class call_summary): Inherit from call_summary_base.
32644 (struct is_same): New.
32645 (class fast_function_summary): New summary class.
32646 (class fast_call_summary): New summary class.
32647 * vec.h (vec_safe_grow_cleared): New function.
32649 2019-02-18 Martin Liska <mliska@suse.cz>
32651 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32652 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32653 * doc/tm.texi: Document new target hook.
32654 * doc/tm.texi.in: Likewise.
32655 * target.def: Add new target macro.
32656 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32659 2019-02-17 Alan Modra <amodra@gmail.com>
32662 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32663 output reg on add insn.
32664 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32666 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32669 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32670 (PMULHRSW): Likewise.
32671 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32673 (ssse3_pmulhrswv4hi3): New expander.
32675 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32677 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32678 MMX. Add isa attribute.
32680 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32682 PR rtl-optimization/66152
32683 * builtins.h (c_readstr): Declare.
32684 * builtins.c (c_readstr): Remove forward declaration. Add
32685 null_terminated_p argument, if false, read all bytes from the
32686 string instead of stopping after '\0'.
32687 * expr.c (string_cst_read_str): New function.
32688 (store_expr): Use string_cst_read_str instead of
32689 builtin_strncpy_read_str. Try to store by pieces the whole
32690 exp_len first, and only if that fails, split it up into
32691 store by pieces followed by clear_storage. Formatting fix.
32693 * config/i386/i386.md (*movqi_internal): Remove static from
32694 buf variable. Use output_asm_insn (buf, operands); return "";
32695 instead of return buf;.
32696 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32697 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32698 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32700 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32702 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32703 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32704 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32705 (CC1_SPEC): Likewise.
32706 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32708 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32710 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32711 the base address on 64-bit strict-alignment platforms.
32713 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32715 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32717 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32719 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32721 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32723 PR rtl-optimization/88308
32724 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32725 on copied instruction.
32727 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32729 * final.c (insn_current_reference_address): Replace test on JUMP_P
32730 with test on jump_to_label_p.
32731 * config/visium/visium-passes.def: New file.
32732 * config/visium/t-visium (PASSES_EXTRA): Define.
32733 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32734 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32735 (TRAMPOLINE_ALIGNMENT): Define.
32736 * config/visium/visium.c (visium_option_override): Do not register
32737 the machine-specific reorg pass here.
32738 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32740 (output_branch): Adjust threshold for long branch instruction.
32741 * config/visium/visium.md (cpu): Move around.
32742 (length): Adjust for the GR6.
32744 2019-02-15 Richard Biener <rguenther@suse.de>
32745 Jakub Jelinek <jakub@redhat.com>
32747 PR tree-optimization/89278
32748 * tree-loop-distribution.c: Include tree-eh.h.
32749 (generate_memset_builtin, generate_memcpy_builtin): Call
32750 rewrite_to_non_trapping_overflow on builtin->size before passing it
32751 to force_gimple_operand_gsi.
32753 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32756 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32758 * opth-gen.awk: Likewise.
32760 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32762 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32763 Enable MMX, SSE and SSE2 by default.
32764 * config/i386/i386.c (ix86_option_override_internal): Do not
32765 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32767 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32769 PR rtl-optimization/89354
32770 * combine.c (make_extraction): Punt if extraction_mode is narrower
32773 2019-02-14 Maya Rashish <coypu@sdf.org>
32775 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32776 * config/netbsd-d.c: New file.
32777 * config/t-netbsd: Add netbsd-d.o
32779 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32781 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32782 affects_type_identity to true for aarch64_vector_pcs.
32783 (aarch64_comp_type_attributes): New function.
32784 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32786 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32789 * config/arm/iterators.md (ANY64): Add V4HF.
32791 2019-02-14 Martin Liska <mliska@suse.cz>
32793 PR rtl-optimization/89242
32794 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32795 process a transformation.
32797 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32799 PR tree-optimization/89314
32800 * fold-const.c (fold_binary_loc): Cast strlen argument to
32801 const char * before dereferencing it. Formatting fixes.
32803 PR middle-end/89284
32804 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32806 2019-02-13 Ian Lance Taylor <iant@golang.org>
32808 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32809 and set current index for other optimizations.
32811 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32813 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32814 nonimmediate_operand as operand 2 predicate.
32815 (vec_set<VF2_512_256:mode>_0): Ditto.
32816 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32817 (*vec_concatv2si): Remove alternative 2.
32818 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32819 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32820 (vec_concatv2di): Split alternatives 4,5,6 to ...
32821 (*vec_concatv2di_0) ... new pattern.
32823 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32826 * config/arm/arm.c (ldm_stm_operation_p) Set
32827 addr_reg_in_reglist correctly for first register.
32828 (load_multiple_sequence): Remove dead base check.
32829 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32831 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32834 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32835 Expose as @aarch64_pred_mov.
32836 * config/aarch64/aarch64.c (aarch64_classify_address):
32837 Use expand_insn which legitimizes operands.
32839 2019-02-13 Martin Liska <mliska@suse.cz>
32841 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32842 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32843 and pointer_offset fields.
32844 (initialize_argument_information): Remove usage of dead
32846 * cgraph.h (struct cgraph_thunk_info): Remove
32847 add_pointer_bounds_args.
32848 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32850 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32852 * config/i386/i386.c (ix86_function_arg_advance): Remove
32854 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32855 (def_builtin): Remove usage of dead fields.
32856 (ix86_add_new_builtins): Likewise.
32857 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32858 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32859 (sem_function::init): Likewise.
32860 (sem_variable::merge): Likewise.
32861 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32862 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32863 * lto-cgraph.c (lto_output_node): Likewise.
32864 (lto_output_varpool_node): Likewise.
32865 (input_node): Likewise.
32866 (input_varpool_node): Likewise.
32867 * lto-streamer-out.c (lto_output): Likewise.
32868 * tree-inline.c (expand_call_inline): Remove usage of
32870 * tree-inline.h (struct copy_body_data): Likewise.
32871 * varpool.c (varpool_node::dump): Likewise.
32873 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32875 PR middle-end/89303
32876 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32877 into pt->vars_contains_escaped_heap instead of setting
32878 pt->vars_contains_escaped_heap to it.
32880 PR middle-end/89281
32881 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32882 INTVAL (size), compare it to GET_MODE_MASK instead of
32883 1 << GET_MODE_BITSIZE.
32886 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32887 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32890 2019-02-13 Martin Liska <mliska@suse.cz>
32893 * cfgrtl.c (remove_barriers_from_footer): New function.
32894 (try_redirect_by_replacing_jump): Use it.
32895 (cfg_layout_redirect_edge_and_branch): Likewise.
32897 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32899 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32900 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32901 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32902 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32903 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32904 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32906 * config/rs6000/rs6000.c (builtin_function_type)
32907 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32908 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32909 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32910 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32911 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32913 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32915 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32916 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32918 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32921 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32922 268678 and revision 268657.
32923 (*movti_internal): Likewise.
32925 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32928 * config/s390/s390.c (s390_decompose_address): Update comment.
32929 (s390_check_qrst_address): Reject invalid address forms after
32932 2019-02-12 Martin Liska <mliska@suse.cz>
32935 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32936 we need default values of funct_state for a function that
32939 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32941 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32942 the object to pick the size of stores on strict-alignment platforms.
32944 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32945 (*movdi_insn_sp32): Likewise.
32946 (*movdi_insn_sp64): Likewise.
32948 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32951 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32952 types that needs constructiong.
32953 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32955 2019-02-12 Richard Biener <rguenther@suse.de>
32957 PR tree-optimization/89253
32958 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32959 duplicate the loop.
32961 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32964 * input.c (selftest::test_line_offset_overflow): New selftest.
32965 (selftest::input_c_tests): Call it.
32967 2019-02-11 Martin Sebor <msebor@redhat.com>
32969 PR tree-optimization/88771
32970 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32971 when -Wstringop-overflow is set.
32972 (builtin_memref::builtin_memref): Adjust excessive upper bound
32973 only when lower bound is not excessive.
32974 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32975 -Wstringop-ovefflow.
32976 (maybe_diag_offset_bounds): Rename...
32977 (maybe_diag_access_bounds): ...to this.
32978 (check_bounds_or_overlap): Adjust for name change above.
32980 2019-02-11 Martin Sebor <msebor@redhat.com>
32983 * builtins.c (max_object_size): Move from here...
32984 * builtins.h (max_object_size): ...and here...
32985 * tree.c (max_object_size): ...to here...
32986 * tree.h (max_object_size): ...and here.
32988 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32990 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32991 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32992 for correct semantics.
32994 2019-02-11 Alan Modra <amodra@gmail.com>
32996 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32997 -mlongcall and -mpltseq.
32998 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32999 (RS/6000 and PowerPC Options <-mpltseq>): Document.
33000 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33001 * config/rs6000/sysv4.opt (mpltseq): New option.
33002 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33003 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33004 support is lacking. Don't allow -mpltseq with -mbss-plt.
33005 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33006 -mpltseq given for ELFv1.
33007 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33008 Only use UNSPEC_PLTSEQ for inline PLT calls.
33009 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
33010 use UNSPEC_PLTSEQ for inline PLT calls.
33011 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33012 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33013 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33014 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33015 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33016 (pltseq_mtctr_<mode>): Likewise.
33018 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33020 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33022 * configure: Regenerate.
33024 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33027 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33030 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33032 * function.c (assign_parm_setup_block): Use the stored
33033 size, not the passed size, when allocating stack-space,
33034 also for a parameter with alignment larger than
33035 MAX_SUPPORTED_STACK_ALIGNMENT.
33037 2019-02-11 Martin Liska <mliska@suse.cz>
33040 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33041 * ipa-inline.c (inline_small_functions): Likewise.
33042 * ipa-pure-const.c (propagate_pure_const): Likewise.
33043 (propagate_nothrow): Likewise.
33044 * ipa-reference.c (propagate): Likewise.
33045 * ipa-utils.c (struct searchc_env): Remove unused field.
33046 (searchc): Always search across AVAIL_INTERPOSABLE.
33047 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33048 the only called IPA pure const can properly not propagate
33049 across interposable boundary.
33050 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33052 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33054 * config/nds32/nds32.md (call_internal, call_value_internal,
33055 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33057 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33059 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33062 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33064 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33067 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33069 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33071 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33073 PR tree-optimization/89268
33074 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33075 if preds is non-NULL.
33077 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33080 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33083 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33085 * config/nds32/nds32.md (trap): New pattern.
33087 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33089 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33092 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33094 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33097 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33099 * ipa-visibility.c (localize_node): Also do not localize
33100 LDPR_PREVAILING_DEF_IRONLY_EXP.
33102 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33105 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33106 instead of type_with_linkage.
33108 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33111 * params.def (uninlined-function-insns, uninlined-function-time,
33112 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33113 bound so we don't get overflows.
33115 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33117 * config/rs6000/rs6000-string.c (expand_compare_loop,
33118 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33121 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33123 PR middle-end/89246
33124 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33125 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33126 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33128 2019-02-09 Alan Modra <amodra@gmail.com>
33131 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33132 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33135 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33137 PR middle-end/88560
33138 * lra-constraints.c (process_alt_operands): Don't increase reject
33139 for memory when offset memory is required.
33141 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33143 * config/s390/vector.md: Implement vector copysign.
33145 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33147 * expr.c (expand_constructor): Correct indentations.
33149 2019-02-08 Richard Biener <rguenther@suse.de>
33151 PR tree-optimization/89247
33152 * tree-if-conv.c: Include tree-cfgcleanup.h.
33153 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33154 (tree_if_conversion): Pass through predicate vector.
33155 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33156 inline, see if any if-converted loops we refrece in
33157 LOOP_VECTORIZED calls vanished and fixup.
33158 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33160 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33162 * config/s390/constraints.md (jdd): New constraint.
33164 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33167 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33168 upper 16 vector registers without TARGET_AVX512VL.
33169 (*movti_internal): Likewise.
33171 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33173 PR rtl-optimization/89234
33174 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33175 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33176 (copy_reg_eh_region_note_backward): Likewise.
33178 2019-02-08 Richard Biener <rguenther@suse.de>
33180 PR middle-end/89223
33181 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33182 doesn't fit in HWI.
33183 (analyze_subscript_affine_affine): Handle failure from
33184 initialize_matrix_A.
33186 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33188 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33191 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33193 PR tree-optimization/86637
33194 PR tree-optimization/89235
33195 * tree-vect-loop.c (optimize_mask_stores): Add an
33196 auto_purge_vect_location sentinel to ensure that vect_location is
33198 * tree-vectorizer.c
33199 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33200 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33201 to ensure that vect_location is purged on exit.
33202 (pass_slp_vectorize::execute): Likewise, replacing the manual
33204 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33206 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33208 * config/aarch64/iterators.md (max_opp): New code_attr.
33209 (USMAX): New code iterator.
33210 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33211 (aarch64_smax): Likewise.
33212 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33213 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33216 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33219 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33220 for TARGET_AVX512VL.
33221 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33223 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33225 * config/s390/s390-builtin-types.def: Add new types.
33226 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33227 (s390_vec_xlw4): Make the memory operand into a const pointer.
33228 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33230 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33231 a new vector type with the alignment of the scalar memory operand.
33233 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33234 Jakub Jelinek <jakub@redhat.com>
33237 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33238 arm_count_ldrdstrd_insns): New declarations.
33239 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33241 (valid_operands_ldrd_strd): New function.
33242 (arm_count_ldrdstrd_insns): New function.
33243 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33244 sets instead of single DImode set and define new insns to match this.
33246 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33248 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33249 Make it a C initializer.
33251 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33254 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33256 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33258 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33259 Use neon_dot<q> for type.
33260 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33262 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33264 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33265 Use neon_dot<q> for type.
33266 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33267 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33269 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33271 PR rtl-optimization/89225
33272 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33275 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33277 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33278 after restoring registers saved to allocate the frame on Windows.
33280 2019-02-06 Richard Biener <rguenther@suse.de>
33282 PR tree-optimization/89182
33283 * graphite.h (cached_scalar_evolution_in_region): Declare.
33284 * graphite.c (struct seir_cache_key): New.
33285 (struct sese_scev_hash): Likewise.
33286 (seir_cache): New global.
33287 (cached_scalar_evolution_in_region): New function.
33288 (graphite_transform_loops): Allocate and release seir_cache.
33289 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33290 cached_scalar_evolution_in_region.
33291 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33293 (scop_detection::graphite_can_represent_expr: Use
33294 cached_scalar_evolution_in_region.
33295 (scop_detection::stmt_simple_for_scop_p): Likewise.
33296 (find_params_in_bb): Likewise.
33297 (gather_bbs::before_dom_children): Likewise.
33298 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33299 (add_loop_constraints): Likewise.
33301 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33303 PR middle-end/89210
33304 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33305 operand to new_unary_operation only if both element types are integral
33306 and it isn't a widening conversion. Return NULL_TREE if
33307 new_unary_operation failed.
33309 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33312 * config/s390/s390.md: Remove load and test FP splitter.
33314 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33317 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33318 expand_compare_loop, expand_block_compare_gpr,
33319 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33320 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33321 #include "profile-count.h" and "predict.h" for types and functions
33322 needed to work with REG_BR_PROB notes.
33324 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33327 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33328 for the long branch case.
33330 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33333 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33334 can throw, non-call exceptions are enabled and we can't delete
33335 dead exceptions or alter cfg. Set must_clean if
33336 delete_insn_and_edges returns true, don't set it blindly for calls.
33337 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33339 PR rtl-optimization/89195
33340 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33341 of the original MEM.
33343 2019-02-05 Martin Liska <mliska@suse.cz>
33345 PR gcov-profile/89000
33346 * gcov.c (function_summary): Remove argument.
33347 (file_summary): New function.
33348 (print_usage): Replace tabs with spaces.
33349 (generate_results): Use new function file_summary.
33351 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33354 * optabs.c (prepare_cmp_insn): Pass x and y to
33355 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33357 2019-02-05 Richard Biener <rguenther@suse.de>
33359 PR middle-end/89150
33360 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33361 (struct bitmap_element): Drop chain_prev so we properly recurse on
33362 the prev member, supporting tree views.
33363 (struct bitmap_head): GTY skip the obstack member.
33365 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33368 * doc/extend.texi (Vector Extensions): Add an example of using vector
33369 types together with x86 intrinsics.
33371 2019-02-04 Alan Modra <amodra@gmail.com>
33373 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33374 str[] size to 160, and comment.
33376 2019-02-04 Alan Modra <amodra@gmail.com>
33378 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33379 (rs6000_pltseq_template): Guard output of TLS markers with
33380 TARGET_TLS_MARKERS.
33381 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33382 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33383 to use inline PLT sequences.
33384 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33385 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33386 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33388 2019-02-04 Martin Liska <mliska@suse.cz>
33391 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33392 out when ipa_fn_summaries does not contain entry for callee.
33394 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33396 * config/sparc/sparc.h: Remove superfluous blank lines.
33397 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33398 (got_register_rtx): ...this.
33399 (sparc_got): Adjust to above renaming.
33400 (sparc_tls_got): Likewise.
33401 (sparc_delegitimize_address): Likewise.
33402 (sparc_output_mi_thunk): Likewise.
33403 (sparc_init_pic_reg): Likewise.
33404 (save_local_or_in_reg_p): Fix test on the GOT register.
33405 (USE_HIDDEN_LINKONCE): Move around.
33406 (get_pc_thunk_name): Likewise.
33407 (gen_load_pcrel_sym): Likewise.
33408 (load_got_register): Likewise.
33410 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33412 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33413 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33415 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33417 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33418 into consideration.
33420 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33422 * config.gcc (with_nds32_lib, glibc):
33423 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33424 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33425 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33427 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33430 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33431 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33432 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33433 (*rcpsf2_sse): Ditto.
33434 (*rsqrtsf2_sse): Ditto.
33435 (sse4_1_round<mode<2): Ditto.
33437 2019-02-03 Richard Biener <rguenther@suse.de>
33440 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33443 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33445 PR middle-end/87887
33446 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33447 Punt with warning on aggregate return or argument types. Ignore
33448 type/mode checking for uniform arguments.
33450 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33452 * combine.c (try_combine): Do not print "Can't combine" messages unless
33453 printing failed combination attempts.
33455 2019-02-01 Martin Jambor <mjambor@suse.cz>
33458 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33459 segment and global segment variables before making them static.
33461 2019-02-01 Martin Jambor <mjambor@suse.cz>
33463 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33464 missed optimization dump with dump_enabled_p.
33466 2019-02-01 Richard Biener <rguenther@suse.de>
33468 PR middle-end/88597
33469 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33470 the instantiate cache.
33471 (instantiate_scev_binary): Elide second operand procesing
33472 if equal to the first.
33473 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33474 (chrec_contains_undetermined): Likewise.
33475 (tree_contains_chrecs): Likewise.
33477 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33479 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33481 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33483 PR tree-optimization/89143
33484 * wide-int-range.h (wide_int_range_absu): Declare.
33485 * wide-int-range.cc (wide_int_range_absu): New function.
33486 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33488 PR tree-optimization/88107
33489 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33490 instead of assertion that eh_region_outermost is non-NULL, if it
33491 is NULL, set *ALL to true and return NULL.
33492 (move_sese_region_to_fn): Adjust caller, if all is set, call
33493 duplicate_eh_regions with NULL region.
33495 2019-02-01 Richard Biener <rguenth@suse.de>
33497 PR rtl-optimization/88593
33498 * mode-switching.c (optimize_mode_switching): Free dominators before
33499 calling cleanup_cfg.
33501 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33503 PR tree-optimization/88932
33504 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33506 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33508 PR middle-end/89137
33509 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33510 bogus clang warning.
33512 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33515 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33516 alternative to avoid partial SSE register stall for TARGET_AVX.
33517 (truncdfsf2): Ditto.
33518 (sse4_1_round<mode>2): Ditto.
33520 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33522 PR tree-optimization/89008
33523 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33524 process anything of the form X * 0.
33526 2019-01-31 Richard Biener <rguenther@suse.de>
33528 PR tree-optimization/89135
33529 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33530 with abnormal preds.
33532 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33535 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33536 always_inline callees into no_sanitize_address callers.
33538 2019-01-31 Richard Biener <rguenther@suse.de>
33540 PR rtl-optimization/89115
33541 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33543 2019-01-30 Martin Sebor <msebor@redhat.com>
33546 * doc/extend.texi (cast to a union): Correct and expand.
33548 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33550 PR rtl-optimization/87246
33551 * lra-constraints.c (simplify_operand_subreg): Reload memory
33552 in subreg if the address became invalid.
33554 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33557 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33558 Disable for little-endian.
33560 2019-01-30 Richard Biener <rguenther@suse.de>
33562 PR rtl-optimization/89115
33563 * opts.c (default_options_optimization): Reduce
33564 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33565 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33568 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33570 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33571 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33572 type of vector element when vec_extract is implemented by direct
33575 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33577 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33579 2019-01-30 Richard Biener <rguenther@suse.de>
33581 PR tree-optimization/89111
33582 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33583 canonicalization to appropriately sized access types.
33585 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33588 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33589 for arguments to functions that are TU-local and shouldn't be
33590 referenced by assembly.
33592 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33594 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33597 2019-01-29 Martin Sebor <msebor@redhat.com>
33600 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33602 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33606 * omp-simd-clone.c (simd_clone_clauses_extract)
33607 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33608 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33610 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33612 * config.gcc: Force .init_array for ARC.
33614 2019-01-29 Richard Biener <rguenther@suse.de>
33617 * dwarf2out.c (collect_skeleton_dies): New helper.
33618 (copy_decls_for_unworthy_types): Call it.
33619 (build_abbrev_table): Assert we do not try to replace
33620 DW_AT_signature refs with local refs.
33622 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33624 PR middle-end/89002
33625 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33626 for lastprivate/linear IV, push gimplify context around gimplify_assign
33627 and, if it needed any temporaries, pop it into a gimple bind around the
33630 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33632 * common.opt (-Wattribute-alias): Remove "no-" from name.
33633 Make -Wattribute-alias command line option and
33634 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33636 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33639 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33640 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33642 (bmi2): Add missing @opindex.
33643 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33644 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33645 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33646 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33647 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33648 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33649 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33650 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33651 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33652 xsavec, xsaveopt and xsaves options.
33654 2019-01-28 Richard Biener <rguenther@suse.de>
33657 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33660 2019-01-28 Richard Biener <rguenther@suse.de>
33662 PR tree-optimization/88739
33663 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33664 BIT_FIELD_REFs only are applied to mode-precision operands
33665 when they are integral.
33666 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33667 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33668 BIT_FIELD_REFs of non-mode-precision integral operands.
33670 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33673 * config/i386/sse.md
33674 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33675 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33676 first constants in pairs are multiples of 2. Formatting fixes.
33677 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33678 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33679 first constants in each quadruple are multiples of 4. Formatting fixes.
33681 2019-01-26 Martin Jambor <mjambor@suse.cz>
33684 * tree-inline.c: Include tree-cfgcleanup.h.
33685 (delete_unreachable_blocks_update_callgraph): Move...
33686 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33687 ...here, make externally visible, make second argument bool, adjust
33689 * tree-cfgcleanup.c: Include cgraph.h.
33690 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33692 * ipa-prop.c: Include tree-cfgcleanup.h.
33693 (ipcp_transform_function): Call
33694 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33696 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33698 PR rtl-optimization/88846
33699 * ira.c (process_set_for_memref_referenced_p): New.
33700 (memref_referenced_p): Add new param. Use
33701 process_set_for_memref_referenced_p. Add new switch cases.
33702 (memref_used_between_p): Pass new arg to memref_referenced_p.
33704 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33707 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33708 argument ABI_BREAK. Set to true if the calculated alignment has
33709 changed in gcc-9. Check bit-fields for their base type alignment.
33710 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33711 (aarch64_function_arg_boundary): Likewise.
33712 (aarch64_gimplify_va_arg_expr): Likewise.
33714 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33716 PR middle-end/89037
33717 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33718 instead of accessing TREE_INT_CST_ELT directly.
33720 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33722 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33723 fenv_exceptions description.
33725 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33727 PR rtl-optimization/87763
33728 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33729 Allow SUBREG when matching CC_NZmode compare.
33731 2019-01-25 Richard Biener <rguenther@suse.de>
33733 PR tree-optimization/89049
33734 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33735 Look at the pattern stmt to determine if the stmt is vectorized.
33737 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33739 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33740 (pred_mov<mode>): Handle all-register forms using both a new
33741 alternative and a split.
33743 2019-01-25 Richard Biener <rguenther@suse.de>
33745 PR tree-optimization/86865
33746 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33747 Reject non-do-while loops.
33749 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33751 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33752 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33753 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33754 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33755 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33756 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33757 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33758 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33759 vlogical_operand, gpc_reg_operand, int_reg_operand,
33760 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33761 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33762 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33763 (save_world_operation, restore_world_operation, lmw_operation,
33764 stmw_operation): Use MEM_P and REG_P.
33765 (tie_operand): Use MEM_P.
33766 (vrsave_operation, crsave_operation): Use REG_P.
33767 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33768 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33769 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33770 (call_operand): Use HARD_REGISTER_P.
33771 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33773 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33774 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33775 quad_aligned_load_p, replace_swapped_aligned_store,
33776 recombine_lvx_pattern, replace_swapped_aligned_load,
33777 recombine_stvx_pattern): Use MEM_P.
33778 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33779 Use MEM_P and SYMBOL_REF_P.
33780 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33781 (insn_is_swappable_p): Use REG_P and MEM_P.
33782 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33783 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33785 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33786 Use CONST_DOUBLE_P.
33787 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33789 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33790 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33791 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33792 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33794 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33795 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33796 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33797 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33798 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33799 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33800 rs6000_split_logical_di): Use CONST_INT_P.
33801 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33802 REG_P and SYMBOL_REF_P.
33803 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33804 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33805 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33806 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33807 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33808 (small_data_operand, print_operand_address): Use CONST_INT_P and
33810 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33811 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33812 Use HARD_REGISTER_NUM_P.
33813 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33814 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33815 SUBREG_P and SYMBOL_REF_P.
33816 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33817 and HARD_REGISTER_NUM_P.
33818 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33820 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33821 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33823 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33824 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33825 find_addr_reg): Use REG_P.
33826 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33827 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33828 (offsettable_ok_by_alignment, constant_pool_expr_p,
33829 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33830 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33831 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33832 rs6000_assemble_integer, create_TOC_reference,
33833 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33834 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33835 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33836 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33837 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33838 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33839 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33840 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33841 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33842 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33843 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33844 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33845 and cbranch<mode>4): Use CONST_INT_P.
33846 (multiple define_splits): Use REG_P and SUBREG_P.
33847 (define_expands call, call_value): Use MEM_P.
33848 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33849 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33850 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33851 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33852 and HARD_REGISTER_NUM_P.
33853 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33855 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33857 PR rtl-optimization/88948
33858 * rtl.h (prepare_copy_insn): New prototype.
33859 * gcse.c (prepare_copy_insn): New function, split out from
33860 process_insert_insn.
33861 (process_insert_insn): Use prepare_copy_insn.
33862 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33863 instead of gen_move_insn.
33865 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33868 * config/i386/i386.c (ix86_pic_register_p): Return true for
33869 UNSPEC_SET_GOT too.
33871 PR tree-optimization/88964
33872 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33873 punt if HONOR_SNANS (chrec).
33875 PR middle-end/89015
33876 * tree-nested.c (convert_nonlocal_reference_stmt,
33877 convert_local_reference_stmt, convert_tramp_reference_stmt,
33878 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33879 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33880 or GIMPLE_OMP_TASK.
33882 PR tree-optimization/89027
33883 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33884 for "omp simd array" variables.
33886 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33889 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33890 force the alignment of m_val.
33892 2019-01-24 Richard Biener <rguenther@suse.de>
33895 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33896 When in "legacy" debug mode make sure to reset self-origins.
33898 2019-01-24 Martin Liska <mliska@suse.cz>
33900 PR gcov-profile/88994
33901 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33902 result will be always smaller or equal to the original.
33903 * gcov.c (mangle_name): Fix else branch where we should
33904 also copy to PTR and shift the pointer.
33906 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33908 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33909 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33911 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33913 * common/config/i386/i386-common.c
33914 (OPTION_MASK_ISA_ENQCMD_SET,
33915 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33916 (ix86_handle_option): Handle -menqcmd.
33917 * config.gcc (enqcmdintrin.h): New header file.
33918 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33919 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33921 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33923 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33924 __builtin_ia32_enqcmds): New builtins.
33925 * config/i386/i386-c.c (__ENQCMD__): New macro.
33926 * config/i386/i386-option.c (ix86_target_string): Add
33928 (ix86_valid_target_attribute_inner_p): Likewise.
33929 * config/i386/i386-expand.c
33930 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33931 IX86_BUILTIN_ENQCMDS.
33932 * config/i386/i386.h (TARGET_ENQCMD): New.
33933 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33934 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33935 (movdir64b_<mode>): Parameterize to enable share expansion code
33936 with ENQCMD in function ix86_expand_builtin.
33937 * config/i386/i386.opt: Add -menqcmd.
33938 * config/i386/immintrin.h: Include enqcmdintrin.h.
33939 * config/i386/enqcmdintrin.h: New intrinsic file.
33940 * doc/invoke.texi: Add -menqcmd.
33942 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33943 Steve Ellcey <sellcey@marvell.com>
33946 * recog.c (address_operand): Return false on wrong mode for address.
33947 (constrain_operands): Check for mode with 'p' constraint.
33949 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33952 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33953 Disparage MMX alternative.
33954 (sse2_cvtpd2pi): Ditto.
33955 (sse2_cvttpd2pi): Ditto.
33957 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33960 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33961 use-after-free of the result of
33962 aarch64_get_extension_string_for_isa_flags.
33964 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33967 * doc/extend.texi: Document break and continue behavior in
33968 statement expressions.
33970 2019-01-23 Richard Biener <rguenther@suse.de>
33972 PR tree-optimization/89008
33973 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33974 not leave another stray operand.
33976 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33978 * BASE-VER: Bump to 9.0.1.
33980 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33982 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33983 thunk that returns by reference, use the type of the return object
33984 of the thunk instead of that of the alias to build the dereference.
33986 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33988 * config/arc/atomic.md: Add operand to DMB instruction.
33990 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33992 PR tree-optimization/88964
33993 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33994 build_zero_cst instead of build_int_cst. Return false for loop
33995 invariants which honor signed zeros.
33997 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33999 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34001 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34004 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34005 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34006 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34008 PR middle-end/88968
34009 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34010 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34013 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34014 Disable for little endian.
34016 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34019 * config/arm/arm.c (arm_needs_double_word_align): Check
34020 DECL_BIT_FIELD_TYPE.
34022 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34023 H.J. Lu <hongjiu.lu@intel.com>
34026 * config/i386/i386-builtin.def: Add mask2 to all builtin
34027 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34029 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34030 (BDESC_FIRST): Likewise.
34031 (define_builtin): Add an argument for mask2. Updated to handle
34032 both ix86_isa_flags and ix86_isa_flags2.
34033 (define_builtin_const): Likewise.
34034 (define_builtin_pure): Likewise.
34035 (define_builtin2): Deleted.
34036 (define_builtin_const2): Likewise.
34037 (builtin_description): Add a member, mask2.
34038 (bdesc_*): Add mask2 to builtin initializations.
34039 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34040 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34042 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34044 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34047 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34050 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34053 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34054 alignment is dominated by a bitfield with 64-bit aligned base type.
34055 (arm_function_arg): Emit a warning if the alignment has changed since
34056 earlier GCC releases.
34057 (arm_function_arg_boundary): Likewise.
34058 (arm_setup_incoming_varargs): Likewise.
34060 2019-01-22 Richard Biener <rguenther@suse.de>
34062 PR tree-optimization/88862
34063 * graphite-scop-detection.c
34064 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34066 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34068 * doc/extend.tex (AMD GCN Function Attributes): New section.
34069 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34070 * doc/invoke.texi (AMD GCN Options): New section.
34071 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34073 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34075 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34076 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34078 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34080 PR tree-optimization/88044
34081 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34082 is false in the first iteration, but !every_iteration, return false
34083 instead of true with niter->niter zero.
34085 PR rtl-optimization/88904
34086 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34087 any nonequal registers before processing BB_END (b).
34090 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34092 (expand_binop_directly, expand_doubleword_clz,
34093 expand_doubleword_popcount, expand_ctz, expand_ffs,
34094 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34096 PR rtl-optimization/49429
34098 PR rtl-optimization/86334
34100 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34101 addressable from here...
34102 (emit_block_op_via_libcall): ... to here.
34104 2019-01-22 Richard Biener <rguenther@suse.de>
34106 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34107 auto_vec for cost vector to fix memleak.
34108 (vectorize_fold_left_reduction): Properly gather SLP defs.
34109 (vectorizable_comparison): Do not swap operands to properly
34112 2019-01-22 Alan Modra <amodra@gmail.com>
34115 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34116 stays a reg. Allow a const_int.
34117 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34118 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34119 (IS_NOMARK_TLSGETADDR): Define.
34120 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34121 (rs6000_output_tlsargs): New function.
34122 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34123 __tls_get_addr call takes an arg.
34124 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34125 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34127 (call_value_nonlocal_sysv): ..or here, delete split.
34128 (tls_gdld_nomark): Delete.
34129 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34130 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34131 (call_value_nonlocal_sysv): Likewise.
34132 (call_value_nonlocal_sysv_secure): Likewise.
34133 (call_value_nonlocal_aix): Likewise.
34134 (call_value_indirect_aix): Likewise.
34135 (call_value_indirect_elfv2): Likewise.
34136 (call_value_local32, call_value_local64): Disable for no-mark tls.
34137 (call_value_local_aix): Likewise.
34139 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34142 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34143 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34145 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34147 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34148 string contents as hash_map keys.
34150 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34153 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34154 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34155 instead of TYPE_ALIGN.
34156 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34157 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34158 pointer from TYPE_STUB_DECL.
34160 2019-01-21 Richard Biener <rguenther@suse.de>
34162 PR tree-optimization/88934
34163 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34164 at the possibly non-constant operand.
34165 (vect_get_constant_vectors): Adjust.
34167 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34170 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34171 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34172 instead of _X86INTRIN_H_INCLUDED.
34173 * onfig/i386/clwbintrin.h: Likewise.
34174 * config/i386/pkuintrin.h: Likewise.
34175 * config/i386/prfchwintrin.h: Likewise.
34176 * config/i386/rdseedintrin.h: Likewise.
34177 * config/i386/wbnoinvdintrin.h: Likewise.
34178 * config/i386/xsavecintrin.h: Likewise.
34179 * config/i386/xsavesintrin.h: Likewise.
34180 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34181 * config/i386/xsaveintrin.h: Likewise.
34182 * config/i386/xsaveoptintrin.h: Likewise.
34183 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34184 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34185 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34186 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34187 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34188 * config/i386/immintrin.h: Here.
34190 2019-01-20 Martin Jambor <mjambor@suse.cz>
34193 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34194 with aa_walk_budget.
34195 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34196 aa_walk_budget_p parameter.
34197 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34198 walk. Updated all callers.
34199 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34200 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34202 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34203 parameter info. Extract info from fbi. Pass fbi to recursive calls
34204 and to unmodified_parm.
34205 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34206 info, updated call to will_be_nonconstant_expr_predicate.
34207 (param_change_prob): New parameter fbi, limit AA walking.
34208 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34209 calls to various above functions.
34210 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34211 parameter. Use it to limit AA walking.
34212 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34213 fbi, limit AA walk.
34214 (detect_type_change): New parameter fbi, pass it on to
34215 detect_type_change_from_memory_writes.
34216 (detect_type_change_ssa): Likewise.
34217 (aa_overwalked): Removed.
34218 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34219 accordingly, adjust to the neew AA limiting scheme.
34220 (parm_ref_data_preserved_p): Likewise.
34221 (ipa_compute_jump_functions_for_edge): Adjust call to
34223 (ipa_analyze_call_uses): Likewise.
34224 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34225 (ipa_analyze_node): Initialize aa_walk_budget.
34226 (ipcp_transform_function): Likewise.
34227 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34228 to get_dynamic_type.
34230 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34232 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34233 outside of #if CHECKING_P code.
34235 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34237 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34238 New function, split out from...
34239 (loop_versioning::analyze_stride): ...here.
34240 (loop_versioning::find_per_loop_multiplication): Use gassign.
34241 (loop_versioning::analyze_term_using_scevs): Return a success code.
34242 (loop_versioning::analyze_arbitrary_term): New function.
34243 (loop_versioning::analyze_address_fragment): Use
34244 analyze_arbitrary_term if all else fails.
34246 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34249 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34252 2019-01-18 Richard Biener <rguenther@suse.de>
34254 PR tree-optimization/88903
34255 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34256 scalar stmts a SLP shift amount is composed of when detecting
34259 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34262 * config/arm/arm-cpus.in (mp): New feature.
34263 (sec): New feature.
34264 (fgroup ARMv7ve): Add mp and sec features.
34265 (arch armv7-a): Add options to allow mp and sec extensions.
34266 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34267 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34268 extenstions to the base architecture.
34269 (cpu cortex-a8): Add sec extension to the base architecture.
34270 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34271 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34272 variants down to the base v7-a varaint.
34273 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34274 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34275 of permitted extensions for -march=armv7-a and for
34276 -mcpu=generic-armv7-a.
34278 2019-01-18 Martin Liska <mliska@suse.cz>
34280 * params.def: Fix comment.
34281 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34283 (gimple_gen_ic_func_profiler): Likewise.
34285 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34287 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34288 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34289 and put in error checks for stack protector guard options.
34290 (aarch64_stack_protect_guard): New.
34291 (TARGET_STACK_PROTECT_GUARD): Define.
34292 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34293 (reg_stack_protect_address<mode>): New.
34294 (stack_protect_set): Adjust for SSP_GLOBAL.
34295 (stack_protect_test): Likewise.
34296 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34297 (-mstack-protector-guard): Likewise.
34298 (-mstack-protector-guard-offset): Likewise.
34300 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34302 PR tree-optimization/86214
34303 * tree-inline.h (struct copy_body_data): Add
34304 add_clobbers_to_eh_landing_pads member.
34305 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34306 (copy_edges_for_bb): Call it if EH edge destination is <
34307 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34308 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34309 if flag_stack_reuse != SR_NONE and clear it afterwards.
34311 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34314 * doc/install.texi (with-multilib-list): Document for aarch64.
34316 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34319 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34320 (("..."))) with ("...").
34322 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34324 * doc/extend.texi (Built-in Functions for Memory Model Aware
34325 Atomic Operations): Document atomic fetch and nand.
34327 2019-01-18 Martin Liska <mliska@suse.cz>
34328 Richard Biener <rguenther@suse.de>
34330 PR middle-end/88587
34331 * cgraph.h (create_version_clone_with_body): Add new argument
34333 * cgraphclones.c (cgraph_node::create_version_clone): Add
34334 DECL_ATTRIBUTES to a newly created decl. And call
34335 valid_attribute_p so that proper cl_target_optimization_node
34336 is set for the newly created declaration.
34337 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34339 (expand_target_clones): Do not call valid_attribute_p, it must
34341 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34344 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34347 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34348 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34349 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34351 2019-01-17 Martin Sebor <msebor@redhat.com>
34353 PR middle-end/88273
34354 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34355 Handle anti-ranges the same as no range at all.
34357 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34359 * config/aarch64/aarch64.c (cgraph.h): New include.
34360 (intl.h): New include.
34361 (supported_simd_type): New function.
34362 (currently_supported_simd_type): Ditto.
34363 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34364 (aarch64_simd_clone_adjust): Ditto.
34365 (aarch64_simd_clone_usable): Ditto.
34366 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34367 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34368 (TARGET_SIMD_CLONE_USABLE): Ditto.
34369 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34370 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34373 2019-01-17 Martin Sebor <msebor@redhat.com>
34375 PR tree-optimization/88800
34376 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34377 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34378 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34379 redundant argument. Add new argument and issue diagnostics under
34380 its control. Detect out-of-bounds access even with warnings
34382 (check_bounds_or_overlap): Change return type. Add argument.
34383 (wrestrict_dom_walker::check_call): Adjust.
34384 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34385 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34386 check_bounds_or_overlap's return value.
34387 (handle_builtin_stxncpy): Same.
34388 (handle_builtin_strcat): Same.
34390 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34391 Kwok Cheung Yeung <kcy@codesourcery.com>
34392 Julian Brown <julian@codesourcery.com>
34393 Tom de Vries <tom@codesourcery.com>
34395 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34397 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34399 * doc/sourcebuild.texi: Document dg-require-effective-target
34400 llvm_binutils and offload_gcn.
34402 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34403 Kwok Cheung Yeung <kcy@codesourcery.com>
34404 Julian Brown <julian@codesourcery.com>
34405 Tom de Vries <tom@codesourcery.com>
34407 * doc/sourcebuild.texi: Document dg-required-effective-target
34410 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34411 Kwok Cheung Yeung <kcy@codesourcery.com>
34412 Julian Brown <julian@codesourcery.com>
34413 Tom de Vries <tom@codesourcery.com>
34414 Jan Hubicka <hubicka@ucw.cz>
34415 Martin Jambor <mjambor@suse.cz>
34417 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34418 * configure.ac: Check for dlopen.
34419 * configure: Regenerate.
34421 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34422 Kwok Cheung Yeung <kcy@codesourcery.com>
34423 Julian Brown <julian@codesourcery.com>
34424 Tom de Vries <tom@codesourcery.com>
34425 Jan Hubicka <hubicka@ucw.cz>
34426 Martin Jambor <mjambor@suse.cz>
34428 * common/config/gcn/gcn-common.c: New file.
34429 * config/gcn/driver-gcn.c: New file.
34430 * config/gcn/gcn-builtins.def: New file.
34431 * config/gcn/gcn-hsa.h: New file.
34432 * config/gcn/gcn-modes.def: New file.
34433 * config/gcn/gcn-opts.h: New file.
34434 * config/gcn/gcn-passes.def: New file.
34435 * config/gcn/gcn-protos.h: New file.
34436 * config/gcn/gcn-run.c: New file.
34437 * config/gcn/gcn-tree.c: New file.
34438 * config/gcn/gcn.c: New file.
34439 * config/gcn/gcn.h: New file.
34440 * config/gcn/gcn.opt: New file.
34441 * config/gcn/t-gcn-hsa: New file.
34443 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34444 Kwok Cheung Yeung <kcy@codesourcery.com>
34445 Julian Brown <julian@codesourcery.com>
34446 Tom de Vries <tom@codesourcery.com>
34447 Jan Hubicka <hubicka@ucw.cz>
34448 Martin Jambor <mjambor@suse.cz>
34450 * config/gcn/constraints.md: New file.
34451 * config/gcn/gcn-valu.md: New file.
34452 * config/gcn/gcn.md: New file.
34453 * config/gcn/predicates.md: New file.
34455 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34457 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34458 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34459 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34460 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34462 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34465 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34466 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34467 it and document registers.
34469 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34471 * config/aarch64/aarch64.c (ares_tunings): Define.
34472 * config/aarch64/aarch64-cores.def (ares): Use the above.
34474 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34478 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34480 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34481 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34482 (_mm512_maskz_fixupimm_round_pd): Ditto.
34483 (_mm512_fixupimm_round_ps): Ditto.
34484 (_mm512_maskz_fixupimm_round_ps): Ditto.
34485 (_mm_fixupimm_round_sd): Ditto.
34486 (_mm_maskz_fixupimm_round_sd): Ditto.
34487 (_mm_fixupimm_round_ss): Ditto.
34488 (_mm_maskz_fixupimm_round_ss): Ditto.
34489 (_mm512_fixupimm_pd): Ditto.
34490 (_mm512_maskz_fixupimm_pd): Ditto.
34491 (_mm512_fixupimm_ps): Ditto.
34492 (_mm512_maskz_fixupimm_ps): Ditto.
34493 (_mm_fixupimm_sd): Ditto.
34494 (_mm_maskz_fixupimm_sd): Ditto.
34495 (_mm_fixupimm_ss): Ditto.
34496 (_mm_maskz_fixupimm_ss): Ditto.
34497 (_mm512_mask_fixupimm_round_pd): Update builtin.
34498 (_mm512_mask_fixupimm_round_ps): Ditto.
34499 (_mm_mask_fixupimm_round_sd): Ditto.
34500 (_mm_mask_fixupimm_round_ss): Ditto.
34501 (_mm512_mask_fixupimm_pd): Ditto.
34502 (_mm512_mask_fixupimm_ps): Ditto.
34503 (_mm_mask_fixupimm_sd): Ditto.
34504 (_mm_mask_fixupimm_ss): Ditto.
34505 * config/i386/avx512vlintrin.h:
34506 (_mm256_fixupimm_pd): Update parameters and builtin.
34507 (_mm256_maskz_fixupimm_pd): Ditto.
34508 (_mm256_fixupimm_ps): Ditto.
34509 (_mm256_maskz_fixupimm_ps): Ditto.
34510 (_mm_fixupimm_pd): Ditto.
34511 (_mm_maskz_fixupimm_pd): Ditto.
34512 (_mm_fixupimm_ps): Ditto.
34513 (_mm_maskz_fixupimm_ps): Ditto.
34514 (_mm256_mask_fixupimm_pd): Update builtin.
34515 (_mm256_mask_fixupimm_ps): Ditto.
34516 (_mm_mask_fixupimm_pd): Ditto.
34517 (_mm_mask_fixupimm_ps): Ditto.
34518 * config/i386/i386-builtin-types.def: Add new types and remove
34520 * config/i386/i386-builtin.def: Update builtin definitions.
34521 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34522 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34523 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34524 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34525 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34526 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34527 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34528 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34529 * config/i386/subst.md:
34530 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34531 (round_saeonly_sd_mask_op4): Ditto.
34532 (round_saeonly_expand_operand5): Ditto.
34533 (round_saeonly_expand): Update.
34535 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34539 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34541 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34542 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34543 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34544 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34545 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34546 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34547 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34549 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34553 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34556 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34557 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34558 instead of UNSPEC_FIXUPIMM.
34560 2019-01-17 Richard Biener <rguenther@suse.de>
34563 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34564 and friends for the LTO part of debug info.
34566 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34568 PR tree-optimization/86214
34569 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34572 PR rtl-optimization/88870
34573 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34574 throw if we can't alter the cfg or delete dead exceptions.
34575 (mark_insn): Don't call find_call_stack_args for such calls.
34577 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34579 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34580 prototypes for vec_st.
34581 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34582 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34583 mainly on signed/unsigned long long and double.
34585 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34588 * combine.c (delete_noop_moves): Convert to "bool" return,
34589 returning true if any edges are eliminated.
34590 (combine_instructions): Also return true if delete_noop_moves
34593 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34595 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34596 correct max nunits for endian swap.
34597 (aarch64_expand_fcmla_builtin): Correct subreg code.
34598 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34599 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34602 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34604 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34605 Handle split indirect COMPLEX_TYPE arguments.
34607 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34610 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34611 bit is set by add and compare.
34612 (CC_ADC): New CC_MODE.
34613 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34614 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34615 comparison. Add detection for CC_ADCmode.
34616 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34618 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34619 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34620 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34621 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34622 to eliminate the need for zero-extending the operands.
34623 (add<mode>3_compareC_imm): Delete. Merge into ...
34624 (add<mode>3_compareC): ... this. Restructure the comparison to
34625 eliminate the need for zero-extending the operands.
34626 (add<mode>3_carryin): Use LTU for the overflow detection.
34627 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34628 Reexpress comparison for overflow.
34629 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34630 (add<mode>3_carryinC): Likewise.
34631 (add<mode>3_carryinV): Use LTU for carry between partials.
34632 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34633 handling of CC_Cmode and add CC_ADCmode.
34634 (aarch64_borrow_operation): Likewise.
34636 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34638 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34639 Remove patternmode.
34640 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34641 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34642 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34643 Remove endianness conversion.
34645 2019-01-16 Martin Liska <mliska@suse.cz>
34647 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34649 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34651 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34652 (path_prefix_reset): Move up in the source file.
34653 (find_fortran_preinclude_file): Make complex search for the
34654 fortran header files.
34656 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34658 * godump.c (go_output_typedef): When outputting a typedef, refer
34659 to the underlying type by its name and not its structure.
34661 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34664 * tree.c (build_function_type): Assert that arg_types is not
34667 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34669 PR inline-asm/52813
34670 * doc/extend.texi: Document that listing the stack pointer in the
34671 clobber list of an asm is a deprecated feature.
34672 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34673 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34674 warning instead of an error for clobbers of the stack pointer.
34675 Add a note explaining why.
34677 2019-01-15 Richard Biener <rguenther@suse.de>
34680 * dwarf2out.c (gen_member_die): Do not generate inheritance
34683 2019-01-15 Richard Biener <rguenther@suse.de>
34685 PR tree-optimization/88855
34686 * tree-if-conv.c (combine_blocks): Collect
34687 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34689 2019-01-15 Tom de Vries <tdevries@suse.de>
34692 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34693 lhs == NULL_TREE for gang-level reduction.
34695 2019-01-15 Richard Biener <rguenther@suse.de>
34696 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34699 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34700 return true if SSA_NAME is already marked in visited bitmap.
34701 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34703 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34705 PR tree-optimization/88775
34706 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34707 equal == 0 equality pointer comparisons some more if compared in
34708 integral types and either one points to an automatic var and the
34709 other to a global, or we can prove at least one points to the middle
34710 or both point to start or both point to end.
34712 2019-01-14 Andi Kleen <ak@linux.intel.com>
34714 * Makefile.in: Lower autofdo sampling rate by 10x.
34715 * Makefile.tpl: Dito.
34717 2019-01-14 Tom Honermann <tom@honermann.net>
34719 * defaults.h: Define CHAR8_TYPE.
34721 2019-01-14 Martin Sebor <msebor@redhat.com>
34724 * doc/extend.texi (Darwin Format Checks): Clarify.
34726 2019-01-14 Richard Biener <rguenther@suse.de>
34728 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34729 whether we are in (simplify ...) or (match ...) context.
34731 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34733 PR rtl-optimization/88796
34734 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34735 * cfgexpand.c (stack_protect_prologue): Initialize
34736 crtl->stack_protect_guard_decl.
34737 * function.c (stack_protect_epilogue): Use it instead of calling
34738 targetm.stack_protect_guard again.
34739 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34740 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34741 crtl->stack_protect_guard_decl.
34742 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34743 on the returned MEM_EXPR.
34745 2019-01-12 Tom de Vries <tdevries@suse.de>
34747 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34748 vector length using -fopenacc-dim.
34750 2019-01-12 Tom de Vries <tdevries@suse.de>
34752 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34753 lengths into account.
34755 2019-01-12 Svante Signell <svante.signell@gmail.com>
34757 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34758 (TARGET_CAN_SPLIT_STACK): Define.
34759 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34761 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34763 * params.def (inline-unit-growth): Set to 40.
34765 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34767 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34769 2019-01-12 Tom de Vries <tdevries@suse.de>
34771 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34772 region calling vector-partitionable routine, set default_vector_length
34775 2019-01-12 Tom de Vries <tdevries@suse.de>
34777 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34778 variable default_vector_length.
34780 2019-01-12 Tom de Vries <tdevries@suse.de>
34782 PR middle-end/88703
34783 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34784 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34787 2019-01-12 Tom de Vries <tdevries@suse.de>
34789 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34790 (nvptx_goacc_validate_dims): Add used parameter.
34791 * doc/tm.texi: Regenerate.
34792 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34793 argument to call to targetm.goacc.validate_dims.
34794 (default_goacc_validate_dims): Add used
34796 * target.def (validate_dims): Add used parameter in DEFHOOK.
34797 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34799 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34801 PR middle-end/85956
34803 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34805 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34806 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34807 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34808 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34810 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34812 PR rtl-optimization/87305
34814 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34815 for little endian pseudos used as paradoxical subreg.
34817 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34819 PR tree-optimization/88693
34820 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34821 for STRING_CSTs that don't contain any NUL characters in the first
34822 TREE_STRING_LENGTH bytes.
34824 2019-01-11 Alan Modra <amodra@gmail.com>
34828 * genattrtab.c (min_fn): Don't translate values.
34829 (min_attr_value): Return INT_MAX when the value can't be calculated.
34830 Return minimum among any values that can be calculated.
34831 (max_attr_value): Adjust.
34833 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34835 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34837 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34839 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34840 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34841 (aarch64_return_call_with_max_clobbers): New function.
34842 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34843 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34845 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34846 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34847 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34848 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34849 * cselib.c (cselib_process_insn): Add argument to
34850 targetm.hard_regno_call_part_clobbered call.
34851 * ira-conflicts.c (ira_build_conflicts): Ditto.
34852 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34853 * lra-constraints.c (inherit_reload_reg): Ditto.
34854 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34855 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34856 argument. Call targetm.return_call_with_max_clobbers.
34857 Add argument to targetm.hard_regno_call_part_clobbered call.
34858 (calls_have_same_clobbers_p): New function.
34859 (process_bb_lives): Add call_insn and last_call_insn variables.
34860 Pass call_insn to check_pseudos_live_through_calls.
34861 Modify if stmt to check targetm.return_call_with_max_clobbers.
34862 Update setting of flush variable.
34863 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34865 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34866 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34867 targetm.hard_regno_call_part_clobbered call.
34868 * reginfo.c (choose_hard_reg_mode): Ditto.
34869 * regrename.c (check_new_reg_p): Ditto.
34870 * reload.c (find_equiv_reg): Ditto.
34871 * reload1.c (emit_reload_insns): Ditto.
34872 * sched-deps.c (deps_analyze_insn): Ditto.
34873 * sel-sched.c (init_regs_for_mode): Ditto.
34874 (mark_unavailable_hard_regs): Ditto.
34875 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34876 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34877 (return_call_with_max_clobbers): New target function.
34878 * doc/tm.texi: Regenerate.
34879 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34880 * hooks.c (hook_bool_uint_mode_false): Change to
34881 hook_bool_insn_uint_mode_false.
34882 * hooks.h (hook_bool_uint_mode_false): Ditto.
34884 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34886 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34887 (aarch64_remove_extra_call_preserved_regs): New function.
34888 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34889 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34890 * doc/tm.texi: Regenerate.
34891 * final.c (get_call_reg_set_usage): Call new hook.
34892 * target.def (remove_extra_call_preserved_regs): New hook.
34893 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34894 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34896 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34899 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34900 inside of pass_combine_1 dump rather than pass_profile_1.
34902 2019-01-11 Tom de Vries <tdevries@suse.de>
34904 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34905 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34906 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34907 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34910 2019-01-11 Tom de Vries <tdevries@suse.de>
34912 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34914 2019-01-11 Jan Beulich <jbeulich@suse.com>
34916 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34917 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34918 sse2_cvtsi2sd): Add {l}.
34919 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34922 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34925 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34927 (*float<floatunssuffix>v2div2sf2): New define_insn.
34928 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34929 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34930 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34931 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34932 match_operands with "const0_operand" "C".
34934 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34936 * config/aarch64/aarch64-builtins.c
34937 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34938 (aarch64_init_simd_builtins): ...Here
34940 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34942 PR rtl-optimization/87305
34944 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34945 allocation for big endian pseudos used as paradoxical subregs and
34946 spill them if it is wrong.
34947 * lra-constraints.c (lra_constraints): Add a comment.
34949 2019-01-10 Richard Biener <rguenther@suse.de>
34951 PR tree-optimization/88792
34952 * tree-ssa-pre.c (get_representative_for): Do not return a
34955 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34957 PR middle-end/84877
34959 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34960 (assign_parm_setup_block): Do the argument slot realignment here
34963 2019-01-10 Stefan Agner <stefan@agner.ch>
34966 * config/arm/arm.c (arm_option_override_internal): Force
34967 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34969 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34972 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34975 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34977 * config/arm/arm-builtins.c
34978 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34979 (MAC_LANE_PAIR_QUALIFIERS): New.
34980 (arm_expand_builtin_args): Use it.
34981 (arm_expand_builtin_1): Likewise.
34982 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34983 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34984 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34985 * config/arm/arm_neon.h:
34986 (vcadd_rot90_f16): New.
34987 (vcaddq_rot90_f16): New.
34988 (vcadd_rot270_f16): New.
34989 (vcaddq_rot270_f16): New.
34992 (vcmla_lane_f16): New.
34993 (vcmla_laneq_f16): New.
34994 (vcmlaq_lane_f16): New.
34995 (vcmlaq_laneq_f16): New.
34996 (vcmla_rot90_f16): New.
34997 (vcmlaq_rot90_f16): New.
34998 (vcmla_rot90_lane_f16): New.
34999 (vcmla_rot90_laneq_f16): New.
35000 (vcmlaq_rot90_lane_f16): New.
35001 (vcmlaq_rot90_laneq_f16): New.
35002 (vcmla_rot180_f16): New.
35003 (vcmlaq_rot180_f16): New.
35004 (vcmla_rot180_lane_f16): New.
35005 (vcmla_rot180_laneq_f16): New.
35006 (vcmlaq_rot180_lane_f16): New.
35007 (vcmlaq_rot180_laneq_f16): New.
35008 (vcmla_rot270_f16): New.
35009 (vcmlaq_rot270_f16): New.
35010 (vcmla_rot270_lane_f16): New.
35011 (vcmla_rot270_laneq_f16): New.
35012 (vcmlaq_rot270_lane_f16): New.
35013 (vcmlaq_rot270_laneq_f16): New.
35014 (vcadd_rot90_f32): New.
35015 (vcaddq_rot90_f32): New.
35016 (vcadd_rot270_f32): New.
35017 (vcaddq_rot270_f32): New.
35020 (vcmla_lane_f32): New.
35021 (vcmla_laneq_f32): New.
35022 (vcmlaq_lane_f32): New.
35023 (vcmlaq_laneq_f32): New.
35024 (vcmla_rot90_f32): New.
35025 (vcmlaq_rot90_f32): New.
35026 (vcmla_rot90_lane_f32): New.
35027 (vcmla_rot90_laneq_f32): New.
35028 (vcmlaq_rot90_lane_f32): New.
35029 (vcmlaq_rot90_laneq_f32): New.
35030 (vcmla_rot180_f32): New.
35031 (vcmlaq_rot180_f32): New.
35032 (vcmla_rot180_lane_f32): New.
35033 (vcmla_rot180_laneq_f32): New.
35034 (vcmlaq_rot180_lane_f32): New.
35035 (vcmlaq_rot180_laneq_f32): New.
35036 (vcmla_rot270_f32): New.
35037 (vcmlaq_rot270_f32): New.
35038 (vcmla_rot270_lane_f32): New.
35039 (vcmla_rot270_laneq_f32): New.
35040 (vcmlaq_rot270_lane_f32): New.
35041 (vcmlaq_rot270_laneq_f32): New.
35042 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35043 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35044 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35045 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35046 vcmlaq_lane270): New.
35047 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35048 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35049 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35050 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35051 (arm_option_reconfigure_globals): Use them.
35052 * config/arm/iterators.md (VDF, VQ_HSF): New.
35053 (VCADD, VCMLA): New.
35054 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35055 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35057 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35058 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35060 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35062 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35063 Add qualifier_lane_pair_index.
35064 (emit-rtl.h): Include.
35065 (TYPES_QUADOP_LANE_PAIR): New.
35066 (aarch64_simd_expand_args): Use it.
35067 (aarch64_simd_expand_builtin): Likewise.
35068 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35070 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35071 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35072 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35073 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35074 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35075 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35076 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35077 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35078 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35079 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35080 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35081 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35082 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35083 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35084 Add __ARM_FEATURE_COMPLEX.
35085 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35086 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35087 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35088 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35089 fcmlaq_lane270): New.
35090 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35091 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35092 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35093 * config/aarch64/arm_neon.h:
35094 (vcadd_rot90_f16): New.
35095 (vcaddq_rot90_f16): New.
35096 (vcadd_rot270_f16): New.
35097 (vcaddq_rot270_f16): New.
35100 (vcmla_lane_f16): New.
35101 (vcmla_laneq_f16): New.
35102 (vcmlaq_lane_f16): New.
35103 (vcmlaq_rot90_lane_f16): New.
35104 (vcmla_rot90_laneq_f16): New.
35105 (vcmla_rot90_lane_f16): New.
35106 (vcmlaq_rot90_f16): New.
35107 (vcmla_rot90_f16): New.
35108 (vcmlaq_laneq_f16): New.
35109 (vcmla_rot180_laneq_f16): New.
35110 (vcmla_rot180_lane_f16): New.
35111 (vcmlaq_rot180_f16): New.
35112 (vcmla_rot180_f16): New.
35113 (vcmlaq_rot90_laneq_f16): New.
35114 (vcmlaq_rot270_laneq_f16): New.
35115 (vcmlaq_rot270_lane_f16): New.
35116 (vcmla_rot270_laneq_f16): New.
35117 (vcmlaq_rot270_f16): New.
35118 (vcmla_rot270_f16): New.
35119 (vcmlaq_rot180_laneq_f16): New.
35120 (vcmlaq_rot180_lane_f16): New.
35121 (vcmla_rot270_lane_f16): New.
35122 (vcadd_rot90_f32): New.
35123 (vcaddq_rot90_f32): New.
35124 (vcaddq_rot90_f64): New.
35125 (vcadd_rot270_f32): New.
35126 (vcaddq_rot270_f32): New.
35127 (vcaddq_rot270_f64): New.
35131 (vcmla_lane_f32): New.
35132 (vcmla_laneq_f32): New.
35133 (vcmlaq_lane_f32): New.
35134 (vcmlaq_laneq_f32): New.
35135 (vcmla_rot90_f32): New.
35136 (vcmlaq_rot90_f32): New.
35137 (vcmlaq_rot90_f64): New.
35138 (vcmla_rot90_lane_f32): New.
35139 (vcmla_rot90_laneq_f32): New.
35140 (vcmlaq_rot90_lane_f32): New.
35141 (vcmlaq_rot90_laneq_f32): New.
35142 (vcmla_rot180_f32): New.
35143 (vcmlaq_rot180_f32): New.
35144 (vcmlaq_rot180_f64): New.
35145 (vcmla_rot180_lane_f32): New.
35146 (vcmla_rot180_laneq_f32): New.
35147 (vcmlaq_rot180_lane_f32): New.
35148 (vcmlaq_rot180_laneq_f32): New.
35149 (vcmla_rot270_f32): New.
35150 (vcmlaq_rot270_f32): New.
35151 (vcmlaq_rot270_f64): New.
35152 (vcmla_rot270_lane_f32): New.
35153 (vcmla_rot270_laneq_f32): New.
35154 (vcmlaq_rot270_lane_f32): New.
35155 (vcmlaq_rot270_laneq_f32): New.
35156 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35157 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35158 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35159 (FCADD, FCMLA): New.
35161 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35163 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35167 * config/pa/pa.c: Change "can not" to "cannot".
35168 * gimple-ssa-evrp-analyze.c: Likewise.
35169 * ipa-icf.c: Likewise.
35170 * ipa-polymorphic-call.c: Likewise.
35171 * ipa-pure-const.c: Likewise.
35172 * lra-constraints.c: Likewise.
35173 * lra-remat.c: Likewise.
35174 * reload1.c: Likewise.
35175 * reorg.c: Likewise.
35176 * tree-ssa-uninit.c: Likewise.
35178 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35182 * Makefile.in: Mechanically replace "can not" with "cannot".
35183 * alias.c: Likewise.
35184 * builtins.c: Likewise.
35185 * calls.c: Likewise.
35186 * cgraph.c: Likewise.
35187 * cgraph.h: Likewise.
35188 * cgraphclones.c: Likewise.
35189 * cgraphunit.c: Likewise.
35190 * combine-stack-adj.c: Likewise.
35191 * combine.c: Likewise.
35192 * common/config/i386/i386-common.c: Likewise.
35193 * config/aarch64/aarch64.c: Likewise.
35194 * config/alpha/sync.md: Likewise.
35195 * config/arc/arc.c: Likewise.
35196 * config/arc/predicates.md: Likewise.
35197 * config/arm/arm-c.c: Likewise.
35198 * config/arm/arm.c: Likewise.
35199 * config/arm/arm.h: Likewise.
35200 * config/arm/arm.md: Likewise.
35201 * config/arm/cortex-r4f.md: Likewise.
35202 * config/csky/csky.c: Likewise.
35203 * config/csky/csky.h: Likewise.
35204 * config/darwin-f.c: Likewise.
35205 * config/epiphany/epiphany.md: Likewise.
35206 * config/i386/i386.c: Likewise.
35207 * config/i386/sol2.h: Likewise.
35208 * config/m68k/m68k.c: Likewise.
35209 * config/mcore/mcore.h: Likewise.
35210 * config/microblaze/microblaze.md: Likewise.
35211 * config/mips/20kc.md: Likewise.
35212 * config/mips/sb1.md: Likewise.
35213 * config/nds32/nds32.c: Likewise.
35214 * config/nds32/predicates.md: Likewise.
35215 * config/pa/pa.c: Likewise.
35216 * config/rs6000/e300c2c3.md: Likewise.
35217 * config/rs6000/rs6000.c: Likewise.
35218 * config/s390/s390.h: Likewise.
35219 * config/sh/sh.c: Likewise.
35220 * config/sh/sh.md: Likewise.
35221 * config/spu/vmx2spu.h: Likewise.
35222 * cprop.c: Likewise.
35223 * dbxout.c: Likewise.
35224 * df-scan.c: Likewise.
35225 * doc/cfg.texi: Likewise.
35226 * doc/extend.texi: Likewise.
35227 * doc/fragments.texi: Likewise.
35228 * doc/gty.texi: Likewise.
35229 * doc/invoke.texi: Likewise.
35230 * doc/lto.texi: Likewise.
35231 * doc/md.texi: Likewise.
35232 * doc/objc.texi: Likewise.
35233 * doc/rtl.texi: Likewise.
35234 * doc/tm.texi: Likewise.
35236 * emit-rtl.c: Likewise.
35237 * emit-rtl.h: Likewise.
35238 * except.c: Likewise.
35239 * expmed.c: Likewise.
35240 * expr.c: Likewise.
35241 * fold-const.c: Likewise.
35242 * genautomata.c: Likewise.
35243 * gimple-fold.c: Likewise.
35244 * hard-reg-set.h: Likewise.
35245 * ifcvt.c: Likewise.
35246 * ipa-comdats.c: Likewise.
35247 * ipa-cp.c: Likewise.
35248 * ipa-devirt.c: Likewise.
35249 * ipa-fnsummary.c: Likewise.
35250 * ipa-icf.c: Likewise.
35251 * ipa-inline-transform.c: Likewise.
35252 * ipa-inline.c: Likewise.
35253 * ipa-polymorphic-call.c: Likewise.
35254 * ipa-profile.c: Likewise.
35255 * ipa-prop.c: Likewise.
35256 * ipa-pure-const.c: Likewise.
35257 * ipa-reference.c: Likewise.
35258 * ipa-split.c: Likewise.
35259 * ipa-visibility.c: Likewise.
35261 * ira-build.c: Likewise.
35262 * ira-color.c: Likewise.
35263 * ira-conflicts.c: Likewise.
35264 * ira-costs.c: Likewise.
35265 * ira-int.h: Likewise.
35266 * ira-lives.c: Likewise.
35269 * loop-invariant.c: Likewise.
35270 * loop-unroll.c: Likewise.
35271 * lower-subreg.c: Likewise.
35272 * lra-assigns.c: Likewise.
35273 * lra-constraints.c: Likewise.
35274 * lra-eliminations.c: Likewise.
35275 * lra-lives.c: Likewise.
35276 * lra-remat.c: Likewise.
35277 * lra-spills.c: Likewise.
35279 * lto-cgraph.c: Likewise.
35280 * lto-streamer-out.c: Likewise.
35281 * postreload-gcse.c: Likewise.
35282 * predict.c: Likewise.
35283 * profile-count.h: Likewise.
35284 * profile.c: Likewise.
35285 * recog.c: Likewise.
35287 * reload.c: Likewise.
35288 * reload1.c: Likewise.
35289 * reorg.c: Likewise.
35290 * resource.c: Likewise.
35291 * rtl.def: Likewise.
35293 * rtlanal.c: Likewise.
35294 * sched-deps.c: Likewise.
35295 * sched-ebb.c: Likewise.
35296 * sched-rgn.c: Likewise.
35297 * sel-sched-ir.c: Likewise.
35298 * sel-sched.c: Likewise.
35299 * shrink-wrap.c: Likewise.
35300 * simplify-rtx.c: Likewise.
35301 * symtab.c: Likewise.
35302 * target.def: Likewise.
35303 * toplev.c: Likewise.
35304 * tree-call-cdce.c: Likewise.
35305 * tree-cfg.c: Likewise.
35306 * tree-complex.c: Likewise.
35307 * tree-core.h: Likewise.
35308 * tree-eh.c: Likewise.
35309 * tree-inline.c: Likewise.
35310 * tree-loop-distribution.c: Likewise.
35311 * tree-nrv.c: Likewise.
35312 * tree-profile.c: Likewise.
35313 * tree-sra.c: Likewise.
35314 * tree-ssa-alias.c: Likewise.
35315 * tree-ssa-dce.c: Likewise.
35316 * tree-ssa-dom.c: Likewise.
35317 * tree-ssa-forwprop.c: Likewise.
35318 * tree-ssa-loop-im.c: Likewise.
35319 * tree-ssa-loop-ivcanon.c: Likewise.
35320 * tree-ssa-loop-ivopts.c: Likewise.
35321 * tree-ssa-loop-niter.c: Likewise.
35322 * tree-ssa-phionlycprop.c: Likewise.
35323 * tree-ssa-phiopt.c: Likewise.
35324 * tree-ssa-propagate.c: Likewise.
35325 * tree-ssa-threadedge.c: Likewise.
35326 * tree-ssa-threadupdate.c: Likewise.
35327 * tree-ssa-uninit.c: Likewise.
35328 * tree-ssanames.c: Likewise.
35329 * tree-streamer-out.c: Likewise.
35330 * tree.c: Likewise.
35331 * tree.h: Likewise.
35332 * vr-values.c: Likewise.
35334 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35336 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35337 (ix86_split_xorsign): Ditto.
35338 * config/i386/i386.c (ix86_expand_xorsign): New function.
35339 (ix86_split_xorsign): Ditto.
35340 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35341 (xorsign<mode>3): New expander.
35342 (xorsign<mode>3_1): New insn_and_split pattern.
35343 * config/i386/sse.md (xorsign<mode>3): New expander.
35345 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35347 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35348 (*tablejump_sp64): Likewise.
35349 (*tablejump<P:mode>): ...this.
35350 (*call_address_sp32): Merge into...
35351 (*call_address_sp64): Likewise.
35352 (*call_address<P:mode>): ...this.
35353 (*call_symbolic_sp32): Merge into...
35354 (*call_symbolic_sp64): Likewise.
35355 (*call_symbolic<P:mode>): ...this.
35356 (call_value): Remove constraint and add predicate.
35357 (*call_value_address_sp32): Merge into...
35358 (*call_value_address_sp64): Likewise.
35359 (*call_value_address<P:mode>): ...this.
35360 (*call_value_symbolic_sp32): Merge into...
35361 (*call_value_symbolic_sp64): Likewise.
35362 (*call_value_symbolic<P:mode>): ...this.
35363 (*sibcall_symbolic_sp32): Merge into...
35364 (*sibcall_symbolic_sp64): Likewise.
35365 (*sibcall_symbolic<P:mode>): ...this.
35366 (sibcall_value): Remove constraint and add predicate.
35367 (*sibcall_value_symbolic_sp32): Merge into...
35368 (*sibcall_value_symbolic_sp64): Likewise.
35369 (*sibcall_value_symbolic<P:mode>): ...this.
35370 (window_save): Minor tweak.
35371 (*branch_sp32): Merge into...
35372 (*branch_sp64): Likewise.
35373 (*branch<P:mode>): ...this.
35375 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35376 James Clarke <jrtc27@jrtc27.com>
35379 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35380 consistently in TLS address generation and adjust code to the renaming
35381 of patterns. Mark calls to __tls_get_addr as const.
35382 * config/sparc/sparc.md (tgd_hi22): Turn into...
35383 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35384 (tgd_lo10): Turn into...
35385 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35386 (tgd_add32): Merge into...
35387 (tgd_add64): Likewise.
35388 (tgd_add<P:mode>): ...this and use Pmode throughout.
35389 (tldm_hi22): Turn into...
35390 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35391 (tldm_lo10): Turn into...
35392 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35393 (tldm_add32): Merge into...
35394 (tldm_add64): Likewise.
35395 (tldm_add<P:mode>): ...this and use Pmode throughout.
35396 (tldm_call32): Merge into...
35397 (tldm_call64): Likewise.
35398 (tldm_call<P:mode>): ...this and use Pmode throughout.
35399 (tldo_hix22): Turn into...
35400 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35401 (tldo_lox10): Turn into...
35402 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35403 (tldo_add32): Merge into...
35404 (tldo_add64): Likewise.
35405 (tldo_add<P:mode>): ...this and use Pmode throughout.
35406 (tie_hi22): Turn into...
35407 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35408 (tie_lo10): Turn into...
35409 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35410 (tie_ld64): Use DImode throughout.
35411 (tie_add32): Merge into...
35412 (tie_add64): Likewise.
35413 (tie_add<P:mode>): ...this and use Pmode throughout.
35414 (tle_hix22_sp32): Merge into...
35415 (tle_hix22_sp64): Likewise.
35416 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35417 (tle_lox22_sp32): Merge into...
35418 (tle_lox22_sp64): Likewise.
35419 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35420 (*tldo_ldub_sp32): Merge into...
35421 (*tldo_ldub_sp64): Likewise.
35422 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35423 (*tldo_ldub1_sp32): Merge into...
35424 (*tldo_ldub1_sp64): Likewise.
35425 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35426 (*tldo_ldub2_sp32): Merge into...
35427 (*tldo_ldub2_sp64): Likewise.
35428 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35429 (*tldo_ldsb1_sp32): Merge into...
35430 (*tldo_ldsb1_sp64): Likewise.
35431 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35432 (*tldo_ldsb2_sp32): Merge into...
35433 (*tldo_ldsb2_sp64): Likewise.
35434 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35435 (*tldo_ldub3_sp64): Use DImode throughout.
35436 (*tldo_ldsb3_sp64): Likewise.
35437 (*tldo_lduh_sp32): Merge into...
35438 (*tldo_lduh_sp64): Likewise.
35439 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35440 (*tldo_lduh1_sp32): Merge into...
35441 (*tldo_lduh1_sp64): Likewise.
35442 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35443 (*tldo_ldsh1_sp32): Merge into...
35444 (*tldo_ldsh1_sp64): Likewise.
35445 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35446 (*tldo_lduh2_sp64): Use DImode throughout.
35447 (*tldo_ldsh2_sp64): Likewise.
35448 (*tldo_lduw_sp32): Merge into...
35449 (*tldo_lduw_sp64): Likewise.
35450 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35451 (*tldo_lduw1_sp64): Use DImode throughout.
35452 (*tldo_ldsw1_sp64): Likewise.
35453 (*tldo_ldx_sp64): Likewise.
35454 (*tldo_stb_sp32): Merge into...
35455 (*tldo_stb_sp64): Likewise.
35456 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35457 (*tldo_sth_sp32): Merge into...
35458 (*tldo_sth_sp64): Likewise.
35459 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35460 (*tldo_stw_sp32): Merge into...
35461 (*tldo_stw_sp64): Likewise.
35462 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35463 (*tldo_stx_sp64): Use DImode throughout.
35465 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35467 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35468 check configure option to set BTI and Return Address Signing.
35469 * configure.ac: Add --enable-standard-branch-protection and
35470 --disable-standard-branch-protection.
35471 * configure: Regenerated.
35472 * doc/install.texi: Document the same.
35474 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35475 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35477 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35478 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35479 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35481 * config/aarch64/aarch64-bti-insert.c: New file.
35482 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35484 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35486 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35487 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35488 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35489 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35491 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35493 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35494 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35495 Disable bti for -mbranch-protection=none.
35496 (aarch64_handle_standard_branch_protection): Enable bti for
35497 -mbranch-protection=standard.
35498 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35499 -mbranch-protection.
35500 (aarch64_bti_enabled): Check if bti is enabled.
35501 * config/aarch64/aarch64.opt: Declare target variable.
35502 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35504 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35506 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35507 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35508 (aarch64_expand_epilogue): Likewise.
35509 (aarch64_output_mi_thunk): Likewise.
35510 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35511 TAILCALL_ADDR_REGS to x16 and x17.
35512 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35514 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35516 * config/aarch64/aarch64-option-extensions.def: Define
35517 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35518 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35519 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35520 (AARCH64_FL_PREDRES): New.
35521 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35522 AARCH64_FL_PREDRES by default.
35523 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35525 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35527 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35529 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35530 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35531 * doc/invoke.texi: Document ARMv8.5-A.
35533 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35535 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35536 (xorsign<mode>3): Likewise.
35538 2019-01-09 Jelinek <jakub@redhat.com>
35540 PR middle-end/88758
35541 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35542 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35544 PR rtl-optimization/88331
35545 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35546 not currently_expanding_to_rtl.
35548 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35550 * doc/invoke.texi (-Os): Remove trailing spaces.
35551 (-finline-functions): Remove reference to -O2.
35553 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35555 PR rtl-optimization/79593
35556 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35558 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35559 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35561 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35564 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35568 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35569 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35571 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35574 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35575 ix86_avx_u128_mode_entry.
35577 2019-01-08 Martin Liska <mliska@suse.cz>
35579 PR tree-optimization/88753
35580 * tree-switch-conversion.c (switch_conversion::build_one_array):
35581 Come up with local variable constructor. Convert first to
35582 type of constructor values.
35584 2019-01-08 Richard Biener <rguenther@suse.de>
35586 PR tree-optimization/86554
35587 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35588 rpo_avail): Move earlier.
35589 (visit_nary_op): When value-numbering to expressions
35590 with different overflow behavior make sure there's an
35591 available expression on the path.
35593 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35595 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35596 aarch64_parse_branch_protection,
35597 struct aarch64_branch_protect_type,
35598 aarch64_handle_no_branch_protection,
35599 aarch64_handle_standard_branch_protection,
35600 aarch64_validate_mbranch_protection,
35601 aarch64_handle_pac_ret_protection,
35602 aarch64_handle_attr_branch_protection,
35603 accepted_branch_protection_string,
35604 aarch64_pac_ret_subtypes,
35605 aarch64_branch_protect_types,
35606 aarch64_handle_pac_ret_leaf): Define.
35607 (aarch64_override_options_after_change_1, aarch64_override_options):
35608 Add check for accepted_branch_protection_string.
35609 (aarch64_option_save): Save accepted_branch_protection_string.
35610 (aarch64_option_restore): Save accepted_branch_protection_string.
35611 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35612 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35613 msign-return-address.
35614 * doc/invoke.texi: Add mbranch-protection.
35616 2019-01-08 Alan Modra <amodra@gmail.com>
35619 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35620 Delete "unknownp" parameter. Adjust callers. Handle
35621 CONST_INT, PLUS, MINUS, and MULT.
35622 (attr_value_aligned): Renamed from or_attr_value.
35623 (min_attr_value): Return INT_MIN for unhandled rtl case..
35624 (min_fn): ..and translate to INT_MAX here.
35625 (write_length_unit_log): Modify to cope without "unknown".
35626 (write_attr_value): Handle IF_THEN_ELSE.
35628 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35630 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35631 optimization for masked stores.
35633 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35635 PR middle-end/88567
35636 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35637 output vector directly to duplicate_and_interleave instead of
35638 going through a temporary. Postpone insertion of ctor_seq to
35639 the end of the loop.
35641 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35644 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35645 unsigned_p. Handle signed and unsigned overflow correction as
35647 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35649 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35651 (add<mode>3_compareV_imm): Make this callable for expanding.
35652 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35653 aarch64_plus_operand for operand 2.
35654 (subv<GPI:mode>_insn): New insn pattern.
35655 (subv<GPI:mode>_imm): Likewise.
35656 (negv<GPI:mode>3): New expand pattern.
35657 (negv<GPI:mode>_insn): New insn pattern.
35658 (negv<GPI:mode>_cmp_only): Likewise.
35659 (cmpv<GPI:mode>_insn): Likewise.
35660 (subvti4): Use register_operand for operand 1. Update call to
35661 aarch64_expand_subvti.
35662 (usubvti4): Likewise.
35663 (negvti3): New expand pattern.
35664 (negdi_carryout): New insn pattern.
35665 (negvdi_carryinV): New insn pattern.
35666 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35667 version the named version.
35668 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35670 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35672 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35674 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35675 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35676 (sub<mode>3_carryinCV): Delete.
35677 (sub<GPI:mode>3_carryinV): New expand pattern.
35678 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35680 2019-01-07 Richard Biener <rguenther@suse.de>
35682 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35683 of tree_operand_hash.
35685 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35687 PR tree-optimization/88598
35688 * tree.h (single_nonzero_element): Declare.
35689 * tree.c (single_nonzero_element): New function.
35690 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35691 if I is the only nonzero element of CST.
35693 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35695 PR tree-optimization/88598
35696 * tree.h (initializer_each_zero_or_onep): Declare.
35697 * tree.c (initializer_each_zero_or_onep): New function.
35698 (signed_or_unsigned_type_for): Handle float types too.
35699 (unsigned_type_for, signed_type_for): Update comments accordingly.
35700 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35701 x & { 0 or -1, 0 or -1, ... }.
35703 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35705 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35706 with x86_64-pc-linux-gnu.
35708 2019-01-07 Tom de Vries <tdevries@suse.de>
35711 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35713 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35716 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35718 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35719 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35720 TARGET_AVX512F as condition.
35723 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35724 const_not_ok_for_debug_p target hook.
35725 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35726 on UNSPEC and subexpressions thereof if all subexpressions of the
35727 UNSPEC are CONSTANT_P.
35729 PR tree-optimization/88676
35730 * tree-ssa-phiopt.c (two_value_replacement): New function.
35731 (tree_ssa_phiopt_worker): Call it.
35734 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35735 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35738 * tree-vect-generic.c: Include insn-config.h and recog.h.
35739 (expand_vector_piecewise): Add defaulted ret_type argument,
35740 if non-NULL, use that in preference to type for the result type.
35741 (expand_vector_parallel): Formatting fix.
35742 (do_vec_conversion, do_vec_narrowing_conversion,
35743 expand_vector_conversion): New functions.
35744 (expand_vector_operations_1): Call expand_vector_conversion
35745 for VEC_CONVERT ifn calls.
35746 * internal-fn.def (VEC_CONVERT): New internal function.
35747 * internal-fn.c (expand_VEC_CONVERT): New function.
35748 * fold-const-call.c (fold_const_vec_convert): New function.
35749 (fold_const_call): Use it for CFN_VEC_CONVERT.
35750 * doc/extend.texi (__builtin_convertvector): Document.
35752 2019-01-07 Tom de Vries <tdevries@suse.de>
35754 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35755 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35756 vector_red_partition, vector_red_sym): New global variables.
35757 (nvptx_option_override): Initialize vector_red_sym.
35758 (nvptx_declare_function_name): Restore red_partition register.
35759 (nvptx_file_end): Emit code to declare the vector reduction variables.
35760 (nvptx_output_red_partition): New function.
35761 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35762 large vector reductions.
35763 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35764 (nvptx_init_builtins): Add VECTOR_ADDR.
35765 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35766 Handle nvptx_expand_shared_addr.
35767 (nvptx_get_shared_red_addr): Add vector argument and handle large
35769 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35771 (nvptx_goacc_reduction_init): Likewise.
35772 (nvptx_goacc_reduction_fini): Likewise.
35773 (nvptx_goacc_reduction_teardown): Likewise.
35774 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35775 init,fini,teardown}.
35776 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35777 (nvptx_set_current_function): Init vector_red_partition.
35778 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35779 (nvptx_red_partition): New insn.
35780 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35782 2019-01-07 Tom de Vries <tdevries@suse.de>
35785 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35788 2019-01-07 Tom de Vries <tdevries@suse.de>
35790 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35791 (nvptx_option_override): Init oacc_bcast_partition.
35792 (nvptx_init_oacc_workers): New function.
35793 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35794 (nvptx_needs_shared_bcast): New function.
35795 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35796 to propagate state.
35797 (nvptx_shared_propagate): Initialize vector bcast partition and
35798 synchronization state.
35799 (nvptx_single): Generalize to enable vectors to use shared-memory
35800 to propagate state.
35801 (nvptx_process_pars): Likewise.
35802 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35803 * config/nvptx/nvptx.h (struct machine_function): Add
35804 bcast_partition and sync_bar members.
35806 2019-01-07 Tom de Vries <tdevries@suse.de>
35808 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35809 (nvptx_apply_dim_limits): New function.
35810 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35813 2019-01-07 Tom de Vries <tdevries@suse.de>
35815 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35816 as late as possible.
35818 2019-01-07 Tom de Vries <tdevries@suse.de>
35820 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35821 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35822 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35823 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35824 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35826 2019-01-07 Tom de Vries <tdevries@suse.de>
35828 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35830 2019-01-07 Tom de Vries <tdevries@suse.de>
35832 * omp-offload.c (oacc_get_min_dim): New function.
35833 * omp-offload.h (oacc_get_min_dim): Declare.
35835 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35838 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35839 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35841 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35845 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35847 * ipa-inline.c (edge_badness): Use inlined_time instead of
35848 inline_summaries->get.
35850 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35852 * opts.c (enable_fdo_optimizations): Enable
35853 version-loops-for-strides, loop-interchange, unrol-and-jam
35854 and tree-loop-distribution.
35855 * invoke.texi: Document newly enabled options.
35857 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35859 * doc/invoke.texi (max-inline-insns-small): New parameters.
35860 * ipa-inline.c (want_early_inline_function_p): simplify.
35861 (want_inline_small_function_p): Fix pasto from previous patch;
35862 use max-inline-insns-small bound.
35863 * params.def (max-inline-insns-small): New param.
35864 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35865 variables correctly.
35867 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35869 * doc/invoke.texi: Document max-inline-insns-size,
35870 uninlined-function-insns, uninlined-function-time,
35871 uninlined-thunk-insns and uninlined-thunk-time.
35872 * params.def: Add max-inline-insns-size,
35873 uninlined-function-insns, uninlined-function-time,
35874 uninlined-thunk-insns and uninlined-thunk-time.
35875 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35877 * ipa-inline.c (can_inline_edge_by_limits_p,
35878 want_inline_small_function_p): Use new parameters.
35880 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35882 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35884 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35886 PR middle-end/82564
35888 * expr.c (expand_assignment): For calls returning VLA structures
35889 if to_rtx is not a MEM, force it into a stack temporary.
35892 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35893 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35894 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35895 subexpressions of both operands.
35896 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35897 subrtxes are CONSTANT_P.
35898 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35899 2018-11-09 changes.
35901 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35903 * params.def (hot-bb-count-ws-permille): Set to 990.
35905 2019-01-04 Martin Sebor <msebor@redhat.com>
35908 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35911 2019-01-04 Martin Sebor <msebor@redhat.com>
35914 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35916 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35918 * gdbinit.in: Turn off pagination for the skip commands, restore
35919 it to previous state afterwards.
35921 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35924 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35925 of GET_MODE (opN) as modes of the libcall arguments.
35927 2019-01-04 Jan Beulich <jbeulich@suse.com>
35929 * config/i386/sse.md
35930 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35931 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35932 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35933 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35934 avx512f_vmcmp<mode>3<round_saeonly_name>,
35935 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35936 avx512f_maskcmp<mode>3,
35937 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35938 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35939 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35940 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35941 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35942 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35943 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35944 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35945 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35946 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35947 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35948 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35949 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35950 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35951 avx512cd_maskb_vec_dup<mode>,
35952 avx512cd_maskw_vec_dup<mode>,
35953 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35954 avx512dq_vmfpclass<mode>,
35955 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35958 2019-01-03 Martin Sebor <msebor@redhat.com>
35960 PR tree-optimization/88659
35961 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35963 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35965 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35966 unaligned vsx and avoid lxvd2x/stxvd2x.
35967 (gen_lvx_v4si_move): New function.
35969 2019-01-03 Tom de Vries <tdevries@suse.de>
35971 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35972 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35974 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35976 2019-01-03 Tom de Vries <tdevries@suse.de>
35978 * config/nvptx/nvptx.c (struct offload_attrs): New.
35979 (populate_offload_attrs): New function. Factor mask extraction out of
35980 nvptx_reorg. Add extraction of dimensions.
35981 (nvptx_reorg): Use populate_offload_attrs.
35983 2019-01-03 Tom de Vries <tdevries@suse.de>
35985 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35986 cases for oacc_min_dims_p and routine_p. Add asserts for
35987 oacc_default_dims_p and offload_region_p.
35989 2019-01-03 Tom de Vries <tdevries@suse.de>
35991 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35992 factored out of ...
35993 (nvptx_goacc_validate_dims): ... here.
35995 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35997 PR tree-optimization/85574
35998 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36000 (struct ssa_equip_hash_traits): Declare.
36001 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36003 2019-01-03 Jakub Jelinek <jakub@redhat.com>
36006 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36007 change it to qualified_type.
36009 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36011 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36012 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36014 2019-01-02 Martin Sebor <msebor@redhat.com>
36015 Jeff Law <law@redhat.com>
36017 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36018 (get_range_strlen_tree): Update appropriately.
36020 * gimple-fold.h (get_range_strlen): Drop unused last argument.
36022 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36023 rather than set_range_info.
36024 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36025 maybe_set_strlen_range. Handle potentially boundary crossing
36026 cases more conservatively.
36027 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36028 Call set_strlen_range.
36029 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36031 PR middle-end/88663
36032 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36033 need the flexp argument.
36034 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36035 from calls to get_range_strlen. Update comments. Just update
36036 VAL for an unterminated const char array and let the reset of the
36037 code handle it normally. No longer try to set *flexp. Adjust
36039 (get_range_strlen): Update for the new get_range_strlen API.
36040 (get_maxval_strlen): Similarly.
36041 (gimple_fold_builtin_strlen): Handle update meaning of return value
36042 from get_range_strlen.
36043 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36044 get_range_strlen API.
36046 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36049 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36050 false at WPA time when body was removed.
36052 2019-01-02 Martin Liska <mliska@suse.cz>
36054 PR tree-optimization/88650
36055 * predict.c (set_even_probabilities): Calculate probability
36056 remainer only when really used.
36058 2019-01-02 Richard Biener <rguenther@suse.de>
36060 PR middle-end/88651
36061 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36062 widest_ints when mangling max_stmt_execution results.
36064 2019-01-02 Richard Biener <rguenther@suse.de>
36066 PR tree-optimization/88621
36067 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36068 bitfields when canoncalizing.
36070 2019-01-02 Richard Biener <rguenther@suse.de>
36073 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36074 cost of cheap SSE instruction.
36076 2019-01-02 Richard Biener <rguenther@suse.de>
36079 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36080 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36082 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36083 set after UIDs before splitting them.
36085 2019-01-01 Martin Sebor <msebor@redhat.com>
36086 Jeff Law <law@redhat.com>
36088 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36089 length is optimistic. If it is, then arrange to compute the
36090 conservative length as well.
36092 * gimple-fold.h (get_range_strlen): Update prototype.
36093 * builtins.c (check_access): Update call to get_range_strlen to use
36094 c_strlen_data pointer. Change various variable accesses to instead
36095 pull data from the c_strlen_data structure.
36096 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36097 * calls.c (maybe_warn_nonstring_arg): Likewise.
36098 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36099 minimum length if maximum lengh is unknown.
36100 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36101 that used c_strlen, it's no longer needed. Restructure slightly.
36102 (format_string): Set unlikely range appropriately.
36103 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36105 (get_range_strlen): Accept c_strlen_data pointer for external
36106 call sites as well. Pass through to call to internal get_range_strlen.
36107 Adjust minlen, maxlen and maxbound as needed.
36108 (get_maxval_strlen): Update comments.
36109 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36110 to use c_strlen_data pointer. Change variable accesses to instead
36111 use c_strlen_data data members.
36113 * gimple-fold.c (get_range_strlen): Update prototype.
36114 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36115 local variables. Use pdata to return information to caller.
36116 Update calls to get_range_strlen. Update pdata->maxbound.
36117 (get_range_strlen -- static version): Similarly.
36118 (get_range_strlen -- extern version): Update for internal
36119 get_range_strlen API change. Convert to external data format.
36120 (get_maxval_strlen): Similarly.
36122 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36124 * coverage.c (get_coverage_counts): Use current_function_decl.
36125 * profile.c (read_thunk_profile): New function.
36126 (branch_prob): Add THUNK parameter.
36127 * tree-profile.c (tree_profiling): Handle thunks.
36128 * value-prof.c (init_node_map): Handle thunks.
36129 * value-prof.h (branch_prob): Upate prototype.
36130 (read_thunk_profile): Declare.
36132 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36134 Update copyright years.
36136 * gcc.c (process_command): Update copyright notice dates.
36137 * gcov-dump.c (print_version): Ditto.
36138 * gcov.c (print_version): Ditto.
36139 * gcov-tool.c (print_version): Ditto.
36140 * gengtype.c (create_file): Ditto.
36141 * doc/cpp.texi: Bump @copying's copyright year.
36142 * doc/cppinternals.texi: Ditto.
36143 * doc/gcc.texi: Ditto.
36144 * doc/gccint.texi: Ditto.
36145 * doc/gcov.texi: Ditto.
36146 * doc/install.texi: Ditto.
36147 * doc/invoke.texi: Ditto.
36149 Copyright (C) 2019 Free Software Foundation, Inc.
36151 Copying and distribution of this file, with or without modification,
36152 are permitted in any medium without royalty provided the copyright
36153 notice and this notice are preserved.