1 2019-12-13 Kewen Lin <linkw@gcc.gnu.org>
3 * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
4 (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
7 2019-12-12 Jakub Jelinek <jakub@redhat.com>
10 * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
11 not need_temp, decrease alignment of the read because the GPR save
12 area only guarantees 8-byte alignment.
14 2019-12-12 Georg-Johann Lay <avr@gjlay.de>
16 Add support for some more AVR devices from avrxmega3 family.
18 * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
19 (attiny402, attiny404, attiny406)
20 (attiny804, attiny806, attiny807)
21 (attiny202, attiny204): Add AVR_MCU lines to support them.
22 * doc/avr-mmcu.texi: Regenerate.
24 2019-12-12 Jan Hubicka <hubicka@ucw.cz>
26 * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
27 of execution of function call parameters.
29 2019-12-12 Vineet Gupta <vgupta@synopsys.com>
31 * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
32 helps codegen generate exceptions even for quiet NaN.
33 * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
34 (get_arc_condition_code): Likewise.
35 (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
36 * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
37 * config/arc/predicates.md (proper_comparison_operator): Likewise.
38 * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
39 (cmpdf_fpu_trap): Likewise.
41 2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
43 * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
44 (cstoredi4): Use TARGET_HARD_FLOAT.
46 2019-12-11 Jakub Jelinek <jakub@redhat.com>
48 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
49 entry from -O3 or later section to -O2 or later section.
50 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
51 option is enabled by default at -O2+ rather than just at -O3.
54 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
55 vect_internal_def, use oprnd1 as is, without trying to cast it.
58 2019-12-11 Martin Sebor <msebor@redhat.com>
60 * builtins.c (compute_objsize): Add an argument and set it to offset
62 * builtins.h (compute_objsize): Add an argument.
63 * tree-object-size.c (addr_object_size): Add an argument and set it
64 to offset into destination.
65 (compute_builtin_object_size): Same.
66 * tree-object-size.h (compute_builtin_object_size): Add an argument.
67 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
68 to offset into destination.
69 (maybe_warn_overflow): New function.
70 (handle_store): Call maybe_warn_overflow to issue warnings.
72 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
74 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
75 crtbegin_no_eh.o if building for the C language.
76 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
78 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
80 [fno-exceptions]: Use crtend_no_eh.o if building for any language
82 * config/msp430/t-msp430: Add -fno-exceptions multilib.
83 * doc/install.texi: Document --disable-no-exceptions multilib configure
85 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
87 2019-12-11 David Malcolm <dmalcolm@redhat.com>
89 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
90 (pretty_printer::clone): New vfunc implementation.
91 * pretty-print.h (format_postprocessor::clone): New pure vfunc
93 (pretty_printer::pretty_printer): New copy-ctor decl.
94 (pretty_printer::clone): New vfunc decl.
96 2019-12-11 David Malcolm <dmalcolm@redhat.com>
98 * function-tests.c (selftest::make_fndecl): Make non-static.
99 * selftest.h (selftest::make_fndecl): New decl.
101 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
104 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
105 multibyte input. Fix off-by-one-bug printing the last byte before a
107 (pp_character): Don't apply line wrapping in the middle of multibyte
109 (test_utf8): New test.
110 (pretty_print_c_tests): Call the new test.
112 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
114 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
116 (ALL_FPU_EXTERNAL): New fgroup.
118 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
119 +simd from architecture specification.
120 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
121 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
122 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
123 (isa_all_fpbits): New bitmap.
124 (arm_option_override): Initialize it.
125 (arm_configure_build_target): If the target isa does not have any
126 FP enabled, do not warn about mismatches in FP-related feature bits.
128 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
130 * real.c (struct arm_bfloat_half_format,
131 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
132 * real.h (arm_bfloat_half_format): New.
134 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
137 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
138 integer mask cmov when available even with TARGET_XOP.
140 2019-12-10 Jakub Jelinek <jakub@redhat.com>
142 PR tree-optimization/92891
143 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
146 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
148 PR rtl-optimization/92796
149 * lra-int.h (lra_risky_transformations_p): Rename to
150 check_and_force_assignment_correctness_p.
151 * lra-assigns.c: Ditto.
152 (lra_assign): Reset check_and_force_assignment_correctness_p.
153 * lra-constraints.c (lra_risky_transformations_p): Rename to
154 check_and_force_assignment_correctness_p.
155 (lra_constraints): Set up check_and_force_assignment_correctness_p
156 only for the 1st sub-pass.
157 * lra-eliminations.c (process_insn_for_elimination): Set up
158 check_and_force_assignment_correctness_p if the insn chnaged its
161 2019-12-10 Jakub Jelinek <jakub@redhat.com>
163 PR rtl-optimization/92882
164 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
165 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
169 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
170 than *jfunc->m_vr to intersect. Formatting fix.
173 * cfgexpand.c (add_stack_protection_conflicts): Change return type
174 from void to bool, return true if at least one stack_vars[i].decl
176 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
177 (expand_used_vars): Don't call stack_protect_decl_p, instead for
178 -fstack-protector-strong set gen_stack_protect_signal to true
179 if add_stack_protection_conflicts returned true. Formatting fixes.
180 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
181 out variables or variables not living on the stack don't count.
182 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
183 rather than > 8 byte.
185 * ipa-param-manipulation.c
186 (ipa_param_body_adjustments::register_replacement): Fix comment typo
188 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
190 (param_splitting_across_edge): Fix typo in dump message - accross
193 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
195 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
196 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
197 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
198 (expand_all_functions): First expand ordered section and then
200 * profile.c (compute_value_histograms): Error on out of range
203 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
205 * predict.c (compute_function_frequency): Check for presence of IPA
208 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
210 * varasm.c (default_function_section): Fix confused tests for
211 tp_first_run reordering.
213 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
215 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
216 allow SVE modes in GPRs.
218 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
220 * config/aarch64/iterators.md (vccore): New iterator.
221 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
223 (*vec_series<mode>_plus): Likewise.
225 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
227 * omp-low.c (scan_omp_for): Use clause location in warning.
229 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
231 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
232 (add_const_value_attribute): Likewise.
234 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
236 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
237 handling direct_slp_reduc, allow the PHI arguments to have
238 a different type from the vector elements.
240 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
242 * tree-vect-stmts.c (vectorizable_condition): Record the loop
243 masks required for extract-last reductions.
245 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
247 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
248 original scalar statement rather than a pattern statement.
249 (vectorizable_condition): Likewise, in the handling of extract-last
252 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
254 * tree-vect-loop.c (vectorizable_reduction): Don't use
255 EXTRACT_LAST_REDUCTION for chained reductions.
257 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
259 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
260 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
261 second demangled name.
263 2019-12-10 Jakub Jelinek <jakub@redhat.com>
265 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
267 2019-12-10 Martin Liska <mliska@suse.cz>
269 PR tree-optimization/92862
270 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
271 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
274 2019-12-09 David Malcolm <dmalcolm@redhat.com>
276 * gcc-rich-location.c
277 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
278 label_text ctor call with label_text::borrow.
279 * gcc-rich-location.h (text_range_label::get_text): Replace
280 label_text ctor called with false with label_text::borrow.
282 2019-12-09 David Malcolm <dmalcolm@redhat.com>
284 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
286 (selftest::test_diagnostic_show_locus_unknown_location): Remove
287 initial newline from expected outputs.
288 (selftest::test_one_liner_simple_caret): Likewise.
289 (selftest::test_one_liner_caret_and_range): Likewise.
290 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
291 (selftest::test_one_liner_fixit_insert_before): Likewise.
292 (selftest::test_one_liner_fixit_insert_after): Likewise.
293 (selftest::test_one_liner_fixit_remove): Likewise.
294 (selftest::test_one_liner_fixit_replace): Likewise.
295 (selftest::test_one_liner_fixit_replace_non_equal_range):
297 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
299 (selftest::test_one_liner_fixit_validation_adhoc_locations):
301 (selftest::test_one_liner_many_fixits_1): Likewise.
302 (selftest::test_one_liner_many_fixits_2): Likewise.
303 (selftest::test_one_liner_labels): Likewise.
304 (selftest::test_one_liner_simple_caret_utf8): Likewise.
305 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
306 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
308 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
309 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
310 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
311 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
312 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
314 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
316 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
318 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
319 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
320 (selftest::test_one_liner_labels_utf8): Likewise.
321 (selftest::test_add_location_if_nearby): Likewise.
322 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
323 (selftest::test_overlapped_fixit_printing): Likewise.
324 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
325 (selftest::test_overlapped_fixit_printing_2): Likewise.
326 (selftest::test_fixit_insert_containing_newline): Likewise.
327 (selftest::test_fixit_insert_containing_newline_2): Likewise.
328 (selftest::test_fixit_replace_containing_newline): Likewise.
329 (selftest::test_fixit_deletion_affecting_newline): Likewise.
330 (selftest::test_line_numbers_multiline_range): Likewise.
331 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
332 before call to diagnostic_show_locus.
333 (diagnostic_append_note): Likewise.
335 2019-12-09 Martin Sebor <msebor@redhat.com>
339 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
341 * hash-table.h (hash_table::expand): Use placement new to copy
342 construct objects in uninitialized storage.
343 (hash_table::empty_slow): Avoid invoking copy assignment on
344 uninitialized objects.
346 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
348 PR preprocessor/49973
349 * input.c (location_compute_display_column): New function to help with
350 multibyte awareness in diagnostics.
351 (test_cpp_utf8): New self-test.
352 (input_c_tests): Call the new test.
353 * input.h (location_compute_display_column): Declare.
354 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
355 to all classes and functions.
356 (enum column_unit): New enum.
357 (class exploc_with_display_col): New class.
358 (class layout_point): Convert m_column member to array m_columns[2].
359 (layout_range::contains_point): Add col_unit argument.
360 (test_layout_range_for_single_point): Pass new argument.
361 (test_layout_range_for_single_line): Likewise.
362 (test_layout_range_for_multiple_lines): Likewise.
363 (line_bounds::convert_to_display_cols): New function.
364 (layout::get_state_at_point): Add col_unit argument.
365 (make_range): Use empty filename rather than dummy filename.
366 (get_line_width_without_trailing_whitespace): Rename to...
367 (get_line_bytes_without_trailing_whitespace): ...this.
368 (test_get_line_width_without_trailing_whitespace): Rename to...
369 (test_get_line_bytes_without_trailing_whitespace): ...this.
370 (class layout): m_exploc changed to exploc_with_display_col from
371 plain expanded_location.
372 (layout::get_linenum_width): New accessor member function.
373 (layout::get_x_offset_display): Likewise.
374 (layout::calculate_linenum_width): New subroutine for the constuctor.
375 (layout::calculate_x_offset_display): Likewise.
376 (layout::layout): Use the new subroutines. Add multibyte awareness.
377 (layout::print_source_line): Add multibyte awareness.
378 (layout::print_line): Likewise.
379 (layout::print_annotation_line): Likewise.
380 (line_label::line_label): Likewise.
381 (layout::print_any_labels): Likewise.
382 (layout::annotation_line_showed_range_p): Likewise.
383 (get_printed_columns): Likewise.
384 (class line_label): Rename m_length to m_display_width.
385 (get_affected_columns): Rename to...
386 (get_affected_range): ...this; add col_unit argument and multibyte
388 (class correction): Add m_affected_bytes and m_display_cols
389 members. Rename m_len to m_byte_length for clarity. Add multibyte
390 awareness throughout.
391 (correction::insertion_p): Add multibyte awareness.
392 (correction::compute_display_cols): New function.
393 (correction::ensure_terminated): Use new member name m_byte_length.
394 (line_corrections::add_hint): Add multibyte awareness.
395 (layout::print_trailing_fixits): Likewise.
396 (layout::get_x_bound_for_row): Likewise.
397 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
398 with _utf8 suffix removed, testing multibyte awareness.
399 (test_one_liner_caret_and_range_utf8): Likewise.
400 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
401 (test_one_liner_fixit_insert_before_utf8): Likewise.
402 (test_one_liner_fixit_insert_after_utf8): Likewise.
403 (test_one_liner_fixit_remove_utf8): Likewise.
404 (test_one_liner_fixit_replace_utf8): Likewise.
405 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
406 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
407 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
408 (test_one_liner_many_fixits_1_utf8): Likewise.
409 (test_one_liner_many_fixits_2_utf8): Likewise.
410 (test_one_liner_labels_utf8): Likewise.
411 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
412 (test_overlapped_fixit_printing_utf8): Likewise.
413 (test_overlapped_fixit_printing): Adapt for changes to
414 get_affected_columns, get_printed_columns and class corrections.
415 (test_overlapped_fixit_printing_2): Likewise.
416 (test_linenum_sep): New constant.
417 (test_left_margin): Likewise.
418 (test_offset_impl): Helper function for new test.
419 (test_layout_x_offset_display_utf8): New test.
420 (diagnostic_show_locus_c_tests): Call new tests.
422 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
424 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
425 TYPE_CANONICAL from the element type only if it is true. Remove a few
426 obsolete lines and adjust recursive call.
427 (fld_process_array_type): Adjust call to build_array_type_1.
428 (build_array_type): Likewise.
429 (build_nonshared_array_type): Likewise.
431 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
433 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
434 %s to %o in asm output.
435 (gather<mode>_insn_2offsets<exec>): Likewise.
437 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
439 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
442 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
444 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
446 (unnamed define_insn_and_split): Delete.
447 (unnamed define_insn): Delete.
448 (unnamed define_insn): Delete.
449 (unnamed define_split): Delete.
451 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
453 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
456 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
459 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
460 dataflow luids once basic blocks have been reordered.
461 * haifa-sched.c (reemit_notes): Create df insn record for each
463 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
464 insn has an insn record before trying to use it.
466 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
468 * common/config/i386/i386-common.c
469 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
470 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
471 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
472 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
473 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
474 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
475 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
476 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
477 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
478 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
479 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
480 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
481 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
482 OPTION_MASK_ISA_AVX512BF16_UNSET,
483 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
484 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
485 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
486 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
487 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
488 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
489 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
490 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
491 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
492 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
493 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
494 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
495 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
496 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
497 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
498 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
499 OPTION_MASK_ISA_ENQCMD): Ditto.
500 * config/i386/i386-builtin.def
501 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
502 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
503 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
504 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
505 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
506 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
507 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
508 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
509 * config/i386/i386-c.c
510 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
511 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
512 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
513 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
514 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
515 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
516 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
517 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
518 OPTION_MASK_ISA_ENQCMD): Ditto.
519 * config/i386/i386-option.c: Ditto
520 * config/i386/i386.opt: Ditto..
521 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
522 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
523 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
524 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
525 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
526 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
527 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
528 TARGET_ISA_ENQCMD): Ditto.
530 2019-12-09 Sudakshina Das <sudi.das@arm.com>
531 Richard Sandiford <richard.sandiford@arm.com>
533 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
534 vect_model_simple_cost call on scalar_shift_arg.
536 2019-12-09 Jakub Jelinek <jakub@redhat.com>
538 PR tree-optimization/92834
539 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
540 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
542 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
544 PR tree-optimization/89007
545 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
546 target support available, generate code to distribute rshift over plus
549 2019-12-09 Martin Liska <mliska@suse.cz>
552 * cgraph.c (symbol_table_test::symbol_table_test): Fix
554 * cgraph.h (symtab_node::symtab_node): New constructor.
555 (cgraph_node::cgraph_node): Likewise.
556 (varpool_node::varpool_node): Likewise.
557 (symbol_table::allocate_cgraph_symbol): Use newly
559 (symbol_table::allocate_cgraph_symbol): Remove.
560 * cgraphunit.c (symtab_terminator): Likewise.
561 * varpool.c (varpool_node::create_empty): Use newly
564 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
568 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
569 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
570 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
571 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
572 * config/i386/i386.c (ix86_print_operand): New operand substitution.
573 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
575 (ix86_expand_sse_cmp): Relax condition for integer mask from
576 512-bit vector to all 128/256/512-bit vector. Delete code gen
577 for avx512f compare patterns since we have generic pattern now.
578 (ix86_expand_sse_movcc): Adjust condition and codegen for
580 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
581 when corresponding vector compare is available.
583 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
586 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
588 * config/nios2/linux.h (LINK_EH_SPEC): Define.
590 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
592 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
593 * cgraph.h (cgrpah_node): Likewise.
594 (tp_first_run_node_cmp): Deeclare.
595 * cgraphunit.c (node_cmp): Rename to ...
596 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
597 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
598 (expand_all_functions): Collect tp_first_run and normal functions to
599 two vectors so the other functions remain sorted. Do not check for
600 flag_profile_reorder_functions it is function local flag.
601 * profile.c (compute_value_histograms): Update tp_first_run printing.
603 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
605 * opts.c (common_handle_option): Do not clear ipa_reference for
608 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
610 * ipa-split.c (split_function): Preserve 0 tp_first_run.
612 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
614 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
617 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
619 PR tree-optimization/92860
620 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
623 2019-12-07 Marek Polacek <polacek@redhat.com>
625 PR c++/91678 - wrong error with decltype and location wrapper.
626 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
628 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
631 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
632 sure to pass a valid inner mode in calls to simplify_gen_subreg.
634 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
635 David Malcolm <dmalcolm@redhat.com>
636 Jakub Jelinek <jakub@redhat.com>
639 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
640 instead of ST sequence to terminate OSC 8 strings.
642 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
643 Vladimir Makarov <vmakarov@redhat.com>
645 PR rtl-optimization/92176
646 * lra.c (simplify_subreg_regno): Don't permit unconditional
647 changing mode for LRA too.
649 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
651 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
652 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
653 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
656 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
658 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
661 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
663 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
664 (VEC_1REG_ALT): Likewise.
665 (VEC_ALL1REG_MODE): New mode iterator.
666 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
667 (VEC_1REG_INT_ALT): Likewise.
668 (VEC_ALL1REG_INT_MODE): New mode interator.
669 (VEC_ALL1REG_INT_ALT): Likewise.
670 (VEC_REG_MODE): Remove V64QI and V64HI.
671 (VEC_ALLREG_MODE): New mode interator.
672 (vec_merge): Change to VEC_ALLREG_MODE.
673 (vec_merge_with_clobber): Likewise.
674 (vec_merge_with_vcc): Likewise.
675 (mov<mode>): Likewise.
676 (mov<mode>_unspec): Likewise.
677 (*mov<mode>): Change to VEC_ALL1REG_MODE.
678 (mov<mode>_exec): Likewise.
679 (*mov<mode>_exec_match): Likewise.
680 (mov<mode>_sgprbase): Likewise.
681 (reload_in<mode>): Change to VEC_ALLREG_MODE.
682 (reload_out<mode>): Likewise.
683 (scalar address splits): Likewise.
684 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
685 (vec_set<mode>): Change to VEC_ALLREG_MODE.
686 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
687 (vec_duplicate<mode><exec>): Likewise.
688 (vec_extract<mode><scalar_mode>): Likewise.
689 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
690 (gather_load<mode>): Likewise.
691 (gather<mode>_exec): Likewise.
692 (gather<mode>_expr<exec>): Likewise.
693 (gather<mode>_insn_1offset<exec>): Likewise.
694 (gather<mode>_insn_1offset_ds<exec>): Likewise.
695 (gather<mode>_insn_2offsets<exec>): Likewise.
696 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
697 (VEC_INT_MODE): Remove V64QI and V64HI.
698 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
699 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
701 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
702 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
703 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
704 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
705 (maskstore<mode>di): Likewise.
706 (mask_gather_load<mode>): Likewise.
707 (mov_from_lane63_<mode>): Likewise.
708 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
709 and V64HImode vectorization.
710 (gcn_related_vector_mode): New function.
711 (TARGET_VECTORIZE_RELATED_MODE): New define.
713 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
714 Kwok Cheung Yeung <kcy@codesourcery.com>
716 * omp-low.c (lower_omp_target): For optional arguments, deref once
717 more to obtain the type.
719 2019-12-06 Richard Biener <rguenther@suse.de>
721 * match.pd (nop_convert): Remove empty match. Use nop_convert?
724 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
726 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
727 for empty vectors. Avoid using ordered_remove and instead
728 shuffle the vector as we go.
730 2019-12-06 Richard Biener <rguenther@suse.de>
732 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
734 (expr::opt_grp): Add and initialize.
735 (lower_opt_convert): Rename to ...
736 (lower_opt): ... and work on opt_grp, simply switching operations
737 from being optional to being present or not.
738 (has_opt_convert): Rename to ...
739 (has_opt): ... and adjust.
740 (parser::parse_operation): Return the optional opt_grp,
741 remove special-casing of conditional operations and more generally
743 (parser::parse_expr): Stick on the parsed opt_grp and perform
745 (parser::parse_for): Remove now unnecessary code.
747 * doc/match-and-simplify.texi: Mention ? now works on all
748 unary operations and also match predicates.
750 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
752 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
753 functions, not inline clones.
755 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
757 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
759 2019-12-06 Richard Biener <rguenther@suse.de>
761 * genmatch.c (c_expr::gen_transform): Emit newlines from line
762 number changes rather than after every semicolon.
764 2019-12-06 Richard Biener <rguenther@suse.de>
766 PR tree-optimization/92819
767 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
768 into the last lane. For two-element vectors try inserting
769 into the last lane when inserting into the first fails.
771 2019-12-06 Jakub Jelinek <jakub@redhat.com>
773 * common.opt (fprofile-partial-training): Terminate description with
776 2019-12-05 Martin Sebor <msebor@redhat.com>
779 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
780 left uninitialized by get_addr_base_and_unit_offset on failure.
782 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
784 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
785 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
786 (detect_type_change): Likewise.
787 (detect_type_change_ssa): Likewise.
788 (ipa_analyze_virtual_call_uses): Update.
790 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
792 * config/nios2/linux.h (LINK_EH_SPEC): Define.
794 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
796 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
798 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
800 * cgraphclones.c (localize_profile): New function.
801 (cgraph_node::create_clone): Use it for partial profiles.
802 * common.opt (fprofile-partial-training): New flag.
803 * doc/invoke.texi (-fprofile-partial-training): Document.
804 * ipa-cp.c (update_profiling_info): For partial profiles do not
805 set function profile to zero.
806 * profile.c (compute_branch_probabilities): With partial profile
807 watch if edge count is zero and turn all probabilities to guessed.
808 (compute_branch_probabilities): For partial profiles do not apply
809 profile when entry count is zero.
810 * tree-profile.c (tree_profiling): Only do value_profile_transformations
811 when profile is read.
813 2019-12-05 Sudakshina Das <sudi.das@arm.com>
815 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
816 check from if condition.
818 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
820 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
821 and Fortran's optional arguments, unconditionally add the is-present
822 condition before the libgomp call.
824 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
827 * tree-core.h (OEP_BITWISE): New flag.
828 * fold-const.c (operand_compare::operand_equal_p): Handle it.
829 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
831 2019-12-05 Richard Biener <rguenther@suse.de>
834 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
835 heuristics on what don't care element to choose.
836 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
838 2019-12-05 Martin Liska <mliska@suse.cz>
840 PR gcov-profile/92817
841 * coverage.c (build_gcov_exit_decl): Remove superfluous
844 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
846 * config/msp430/msp430.md (cbranch<mode>4): Use
847 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
848 dest operand of CMP instruction.
849 (cbranchpsi4_real): Likewise.
850 (cbranchqi4_real): Likewise.
851 (cbranchhi4_real): Likewise.
852 (cbranchpsi4_reversed): Likewise.
853 (cbranchqi4_reversed): Likewise.
854 (cbranchhi4_reversed): Likewise.
856 2019-12-05 Richard Biener <rguenther@suse.de>
858 PR tree-optimization/92803
859 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
860 invariant vector construction.
862 2019-12-05 Martin Liska <mliska@suse.cz>
864 PR gcov-profile/91971
865 * coverage.c (coverage_init): Mangle full path
866 only when -fprofile-dir is used.
868 2019-12-05 Jakub Jelinek <jakub@redhat.com>
871 * config/i386/i386.md (movstrict<mode>): Move test for
872 TARGET_PARTIAL_REG_STALL and not optimizing for size from
873 expander's condition to the body - FAIL; in that case.
875 2019-12-03 Martin Sebor <msebor@redhat.com>
878 * builtins.c (gimple_call_alloc_size): New function.
879 (compute_objsize): Add argument. Call gimple_call_alloc_size.
880 Handle variable offsets and indices.
881 * builtins.h (gimple_call_alloc_size): Declare.
882 (compute_objsize): Add argument.
883 * gimple-ssa-warn-restrict.c: Remove assertions.
884 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
886 2019-12-04 Julian Brown <julian@codesourcery.com>
888 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
890 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
893 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
895 (altivec_overloaded_builtins): Move to rs6000-call.c.
896 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
898 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
899 (altivec_overloaded_builtins): Moved from rs6000-c.c.
900 (rs6000_common_init_builtins): Do no define builtins that overload
901 builtins that have been disabled.
903 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
905 * config/arm/arm.c (arm_option_override_internal):
906 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
908 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
910 * config/aarch64/aarch64.c
911 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
912 (thunderx_tunings): Likewise.
913 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
914 (thunderx2t99_tunings): Likewise.
915 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
916 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
918 2019-12-04 Richard Biener <rguenther@suse.de>
920 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
921 empty CTOR and memset partial-def registering. Take advantage
922 of fancy offset analysis in memset handling.
924 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
926 * fold-const.c (native_encode_vector_part): Handle
927 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
928 (native_decode_vector_tree): Delete, moving the bulk of the code to...
929 (native_interpret_vector_part): ...this new function. Use a pointer
930 and length instead of a vec<> and start index.
931 (native_interpret_vector): Use native_interpret_vector_part.
932 (fold_view_convert_vector_encoding): Likewise.
934 2019-12-04 Richard Biener <rguenther@suse.de>
936 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
937 non-constant defs in the most trivial way.
938 (vn_reference_lookup_3): Also push down SSA partial defs.
940 2019-12-04 Martin Liska <mliska@suse.cz>
942 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
943 Initialize count of newly created BB.
945 2019-12-04 Jakub Jelinek <jakub@redhat.com>
947 PR tree-optimization/92734
948 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
949 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
951 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
954 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
955 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
957 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
959 * ipa-fnsummary.c: Include tree-into-ssa.h.
960 (compute_fn_summary): Call update_ssa.
962 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
964 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
965 is set only for symbol in comdat group.
966 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
968 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
970 * cgraph.c: Include tree-into-ssa.h
971 (cgraph_node::get_body): Call update_ssa.
972 * cgraphunit.c (cgraph_node::expand): Likewise.
973 * lto-streamer-in.c (input_function): Do not call update_ssa.
975 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
977 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
978 an array element size if array_element_size is already an invariant.
979 Similarly don't gimplify and install a field offset if
980 component_ref_field_offset is already an invariant.
982 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
984 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
985 with POLY_INT_CST size is made to a fixed-size object, force the
986 object to live in memory.
988 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
990 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
993 2019-12-03 Richard Biener <rguenther@suse.de>
995 PR tree-optimization/92758
996 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
997 operation on uniform vectors.
999 2019-12-03 Richard Biener <rguenther@suse.de>
1001 PR tree-optimization/92645
1002 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1003 from or to a properly aligned register variable.
1005 2019-12-03 Matthias Klose <doko@ubuntu.com>
1007 * Makefile.in (SOURCES): Add doc/lto-dump.1.
1008 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1009 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1011 2019-12-03 Richard Biener <rguenther@suse.de>
1013 PR tree-optimization/92751
1014 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1015 when a clobber ends up in the partial-def vector.
1016 (vn_reference_lookup_3): Let clobbers be handled by the
1017 assignment from CTOR handling.
1019 2019-12-03 Jakub Jelinek <jakub@redhat.com>
1021 PR tree-optimization/92734
1022 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1023 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1026 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
1027 Jakub Jelinek <jakub@redhat.com>
1030 * config/i386/i386.md (peephole2 for *swap<mode>): Use
1031 general_reg_operand predicates instead of register_operand.
1033 2019-12-03 Richard Biener <rguenther@suse.de>
1035 PR tree-optimization/92645
1036 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1037 a full def of a vector via a BIT_INSERT_EXPR.
1039 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1041 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1043 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1046 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1049 * fold-const.c (fold_convertible_p): Check vector types more
1052 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1054 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1055 (aarch64_expand_mov_immediate): Use it when attempting to measure
1056 the length of an SVE vector.
1057 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1060 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1062 * config/aarch64/aarch64-sve-builtins.h
1063 (gimple_folder::force_vector): Declare.
1064 * config/aarch64/aarch64-sve-builtins.cc
1065 (gimple_folder::force_vector): New function.
1066 * config/aarch64/aarch64-sve-builtins-base.cc
1067 (svcmp_impl::fold): Likewise.
1068 (svdup_impl::fold): Handle svdup_z too.
1070 2019-12-02 Martin Liska <mliska@suse.cz>
1072 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1074 (debug_tree_odr_name): New.
1075 * ipa-utils.h (get_odr_name_for_type): New.
1077 2019-12-02 Richard Biener <rguenther@suse.de>
1079 PR tree-optimization/92742
1080 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1081 touch the def-type but verify it is consistent with the
1084 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1086 PR tree-optimization/92712
1087 * match.pd ((A * B) +- A -> (B +- 1) * A,
1088 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1089 even when we don't know anything about range of A, but do know
1090 something about range of B and the simplification won't introduce
1093 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1096 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1097 (ipa-cp-min-recursive-probability): Likewise.
1098 * params.opt (ipa-cp-max-recursive-depth): New.
1099 (ipa-cp-min-recursive-probability): Likewise.
1100 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1101 val_p and unlimited.
1102 (self_recursively_generated_p): New function.
1103 (get_val_across_arith_op): Likewise.
1104 (propagate_vals_across_arith_jfunc): Add constant propagation for
1105 self-recursive function.
1106 (incorporate_penalties): Do not penalize pure self-recursive function.
1107 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1108 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1109 (get_info_about_necessary_edges): Relax hotness check for edge to
1110 self-recursive function.
1111 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1113 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1117 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1118 objects of flexible types to be small if they have internal linkage
1119 or are declared extern.
1120 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1121 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1122 instead of the size of the object initializer.
1123 * tree.c (flexible_array_type_p): Move from C front end, and
1124 generalize to handle fields in non-C structures.
1125 * tree.h (flexible_array_type_p): Declare.
1127 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1129 * profile-count.h (profile_count::operator<): Use IPA value for
1131 (profile_count::operator>): Likewise.
1132 (profile_count::operator<=): Likewise.
1133 (profile_count::operator>=): Likewise.
1134 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1136 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1138 * ipa-inline.c (compute_max_insns): Return int64_t.
1139 (inline_small_functions): Simplify.
1141 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1143 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1146 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1148 * cgraph.h (symtab_node): Add symver flag.
1149 * cgraphunit.c (process_symver_attribute): New.
1150 (process_common_attributes): Use process_symver_attribute.
1151 * lto-cgraph.c (lto_output_node): Stream symver.
1152 (lto_output_varpool_node): Stream symver.
1153 (input_overwrite_node): Stream symver.
1154 (input_varpool_node): Stream symver.
1155 * output.h (do_assemble_symver): Decalre.
1156 * symtab.c (symtab_node::dump_base): Dump symver.
1157 (symtab_node::verify_base): Verify symver.
1158 (symtab_node::resolve_alias): Handle symver.
1159 * varasm.c (do_assemble_symver): New function.
1160 * varpool.c (varpool_node::assemble_aliases): Use it.
1161 * doc/extend.texi: (symver attribute): Document.
1162 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1164 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1166 * target.h (type_context_kind): New enum.
1167 (verify_type_context): Declare.
1168 * target.def (verify_type_context): New target hook.
1169 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1170 * doc/tm.texi: Regenerate.
1171 * tree.c (verify_type_context): New function.
1172 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1174 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1176 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1177 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1179 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1181 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1182 * cgraph.h (cgraph_node): Add unit_id and
1183 merged_extern_inline.
1184 (symbol_table): Add max_unit.
1185 (symbol_table::symbol_table): Initialize it.
1186 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1187 merged_comdat, merged_extern_inline.
1188 (cgraph_node::create_clone): Likewise.
1189 (cgraph_node::create_version_clone): Likewise.
1190 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1192 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1193 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1194 * ipa-inline.c (inline_small_functions): Likewise.
1195 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1196 copy merged_comdat and merged_extern_inline.
1197 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1198 merged_extern_inline and unit_id.
1199 (input_overwrite_node): Stream in these.
1200 (input_cgraph_1): Set unit_base.
1201 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1202 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1204 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1206 * gcc.c (process_command): Only warn about an ineffective `-x'
1207 option if any input files have actually been supplied.
1209 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1211 * doc/install.texi (Options specification): Remove the list of
1212 target library subdirectories supporting
1213 `--enable-version-specific-runtime-libs'. Document defaults for
1216 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1218 PR rtl-optimization/92283
1219 * lra.c (lra): Update reg notes after inheritance sub-pass and
1220 before constraint sub-pass.
1222 2019-11-29 Richard Biener <rguenther@suse.de>
1224 PR tree-optimization/91003
1225 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1226 operand number, avoid handling the non-condition operands of
1227 COND_EXPRs as comparisons.
1228 (vect_get_constant_vectors): Pass down the operand number.
1229 (vect_get_slp_defs): Likewise.
1231 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1233 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1234 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1235 VEC_COND_EXPR can trap.
1237 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1239 PR tree-optimization/92677
1240 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1241 to zero when dissolving a group of strided accesses.
1243 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1245 PR tree-optimization/92596
1246 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1248 (vectorizable_operation): Likewise, instead of relying on
1249 vect_get_mask_type_for_stmt to do this.
1250 (vect_get_vector_types_for_stmt): Always return a vector type
1251 immediately, rather than deferring the choice for boolean results.
1252 Use a vector mask type instead of a normal vector if
1253 vect_use_mask_type_p.
1254 (vect_get_mask_type_for_stmt): Delete.
1255 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1256 mask_producers argument and special boolean_type_node handling.
1257 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1258 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1259 (vect_determine_vectorization_factor): Update call accordingly.
1260 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1261 boolean_type_node handling.
1262 (vect_slp_analyze_node_operations_1): Likewise.
1264 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1266 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1267 (vect_use_mask_type_p): New function.
1268 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1269 mask precision to the pattern statement.
1270 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1271 and use it to initialize the new stmt's mask precision.
1272 (search_type_for_mask_1): Delete.
1273 (search_type_for_mask): Replace with...
1274 (integer_type_for_mask): ...this new function. Use the information
1275 cached in the stmt_vec_info.
1276 (vect_recog_bool_pattern): Update accordingly.
1277 (build_mask_conversion): Pass the scalar type associated with the
1278 mask type to append_pattern_def_seq.
1279 (vect_recog_mask_conversion_pattern): Likewise. Call
1280 integer_type_for_mask instead of search_type_for_mask.
1281 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1282 of search_type_for_mask.
1283 (possible_vector_mask_operation_p): New function.
1284 (vect_determine_mask_precision): Likewise.
1285 (vect_determine_stmt_precisions): Call it.
1287 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1289 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1290 the slp_tree parameter with a group size parameter.
1291 (vect_get_mask_type_for_stmt): Likewise.
1292 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1293 (vect_get_mask_type_for_stmt): Likewise.
1294 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1297 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1299 * tree-vect-stmts.c (vectorizable_operation): Punt early
1300 on codes that are handled elsewhere.
1302 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1304 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1305 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1306 operand to a boolean comparison is a natural vector mask,
1307 handle both operands like normal integers instead.
1309 2019-11-29 Richard Biener <rguenther@suse.de>
1311 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1312 out early for too large objects.
1314 2019-11-29 Martin Jambor <mjambor@suse.cz>
1317 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1318 the summary only if the summary exists.
1319 (find_more_scalar_values_for_callers_subset): Check node_dead in
1320 the summary only if the summary exists.
1321 (ipcp_store_bits_results): Ignore nodes without lattices.
1322 (ipcp_store_vr_results): Likewise.
1323 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1324 header files required by them.
1325 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1327 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1329 PR tree-optimization/92710
1330 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1331 vector mask arguments.
1333 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1335 * profile-count.c (profile_count::to_cgraph_frequency,
1336 profile_count::to_sreal_scale): Check for compaibility of counts.
1337 * profile-count.h (compatible_p): Make public; add checking for
1338 global0 versus global types.
1339 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1341 2019-11-29 Richard Biener <rguenther@suse.de>
1343 PR tree-optimization/92715
1344 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1345 out for uniform vectors and source vectors with less elements
1346 than the destination.
1348 2019-11-29 Martin Liska <mliska@suse.cz>
1351 * ipa-devirt.c (types_same_for_odr): Check for existence
1352 of TYPE_NAMEs first.
1354 2019-11-29 Richard Biener <rguenther@suse.de>
1356 PR tree-optimization/92704
1357 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1358 in loops performing only loads.
1360 2019-11-29 Julian Brown <julian@codesourcery.com>
1362 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1363 BT_DFLOAT128_PTR) Remove.
1364 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1365 TI_DFLOAT128_PTR_TYPE): Remove.
1366 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1367 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1368 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1369 dfloat128_ptr_type_node): Remove macros.
1371 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1373 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1375 (*movdi_internal64): Ditto.
1377 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1380 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1381 indexed_or_indirect_operand to be memory_operand.
1382 (bswap<mode>2_store for HSI): Ditto.
1383 (bswapdi2_load): Ditto.
1384 (bswapdi2_store): Ditto.
1386 2019-11-28 Martin Liska <mliska@suse.cz>
1389 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1390 headers for translation.
1392 2019-11-28 Martin Liska <mliska@suse.cz>
1395 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1398 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1400 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1403 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1405 * profile-count.c (profile_count::combine_with_ipa_count): Return
1406 uninitialized count if called on ininitialized count.
1408 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1410 * ipa-inline-transform.c (inline_transform): Scale profile before
1413 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1415 * profile-count.h (profile_count::max): Work on profiles of different
1417 (profile_count::apply_scale): Be sure that ret is not local or global0
1418 type if num is global.
1420 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1422 * profile-count.h (profile_count::max): Work on profiles of different
1424 (profile_count::apply_scale): Be sure that ret is not local or global0
1425 type if num is global.
1427 2019-11-28 Martin Jambor <mjambor@suse.cz>
1430 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1432 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1433 Removed trailig whitespace.
1435 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1437 * profile-count.h (profile_count::combine_with_ipa_count_within):
1439 * profile-count.c (profile_count::combine_with_ipa_count_within):
1441 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1444 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1446 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1447 of counters are done same way.
1449 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1451 * ipa-cp.c (update_profiling_info): Fix scaling.
1453 2019-11-28 Richard Biener <rguenther@suse.de>
1455 PR tree-optimization/92645
1456 * tree-inline.c (remap_gimple_stmt): When the return value
1457 is not wanted, elide GIMPLE_RETURN.
1459 2019-11-28 Richard Biener <rguenther@suse.de>
1461 PR tree-optimization/92645
1462 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1463 conversions inside a mode class. Remove restriction on
1464 preserving the element size.
1465 (simplify_vector_constructor): Deal with the above and for
1466 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1467 and VEC_PACK_TRUNC_EXPR.
1469 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1471 Must use push insn to pass varargs arguments of DFmode because
1472 otherwise the middle-end generates wrong code.
1475 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1477 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1479 PR tree-optimization/92691
1480 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1481 in function comment.
1482 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1483 calls, return !handle_printf_call rather than always returning true.
1484 (check_and_optimize_stmt): Describe return value meaning in function
1485 comment. Formatting fix.
1487 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1489 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1490 combination of globa0 and global counters..
1492 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1495 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1496 by VECTOR_UNIT_NONE_P instead.
1498 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1500 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1501 Refine VF to VF_AVX512VL.
1503 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1505 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1506 (movdi_internal64): Reformat.
1508 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1511 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1512 builtin if we don't have an actual type.
1513 (builtin_function_type): If the builtin function uses a DFP type
1514 and decimal float has been disabled, then return NULL_TREE.
1516 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1518 PR rtl-optimization/92510
1519 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1520 of comparison into a comparison with different mode if both imode and
1521 omode are scalar integral modes.
1523 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1525 PR rtl-optimization/90007
1526 * recog.c (constrain_operands): Permit hard registers too for
1527 memory when LRA is used.
1529 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1531 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1532 between Coldfire and regular m68k.
1533 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1535 2019-11-27 Richard Biener <rguenther@suse.de>
1537 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1538 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1539 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1540 * optabs-tree.c (supportable_convert_operation): Do not call
1541 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1542 * optabs-tree.h (supportable_convert_operation): Adjust.
1543 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1544 * doc/tm.texi: Regenerate.
1545 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1546 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1547 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1548 unused decl parameter and adjust.
1549 (vect_create_vectorized_promotion_stmts): Likewise.
1550 (vectorizable_conversion): Adjust.
1552 2019-11-27 Richard Biener <rguenther@suse.de>
1554 PR tree-optimization/92690
1555 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1556 converting elements not originally converted.
1558 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1561 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1562 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1563 mpfr_rnd_t instead of mp_rnd_t.
1564 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1565 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1566 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1567 Use mpfr_exp_t instead of mp_exp_t.
1568 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1569 MPFR_RNDx instead of GMP_RNDx.
1570 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1571 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1572 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1573 of mp_rnd_t and remove MPFR_RNDx poisoning.
1574 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1576 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1578 PR tree-optimization/91790
1579 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1580 DR for vect_setup_realignment when first_stmt_info is different
1581 from first_stmt_info_for_drptr.
1583 2019-11-27 Richard Biener <rguenther@suse.de>
1585 PR tree-optimization/92645
1586 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1587 CTORs with just a subset of the original vectors.
1589 2019-11-27 Richard Biener <rguenther@suse.de>
1592 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1593 edges and instead record blocks in bitmap.
1594 (gimple_expand_calls_inline): Adjust.
1595 (fold_marked_statements): Delay EH cleanup until all folding is
1597 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1600 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1602 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1604 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1607 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1610 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1612 2019-11-26 Martin Sebor <msebor@redhat.com>
1614 PR tree-optimization/92683
1615 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1616 inadvertently removed in a previous change. Rename local variable
1619 2019-11-26 Richard Biener <rguenther@suse.de>
1622 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1625 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1627 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1629 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1631 PR tree-optimization/92644
1632 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1633 next to INTEGER_CST checks.
1635 2019-11-26 Richard Biener <rguenther@suse.de>
1637 PR tree-optimization/92645
1638 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1639 do not build the operation from scalars if the operand is.
1641 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1643 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1644 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1647 2019-11-25 Martin Liska <mliska@suse.cz>
1649 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1650 up used dump message.
1652 2019-11-25 Martin Liska <mliska@suse.cz>
1655 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1656 too strict checking assert.
1658 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1661 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1662 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1663 error_mark_node if corresponding global tree node is NULL.
1664 * tree.c (build_common_tree_nodes): Do not initialize
1665 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1666 decimal floating-point not supported.
1668 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1670 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1673 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1675 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1676 Replace code for non-CONST_INT constants with gcc_unreachable.
1677 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1679 (CMPMODE): New mode_iterator.
1680 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1682 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1684 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1686 (bit test insns patterns): Use nonimmediate_operand, not
1687 register_operand, for source operands that allow memory in
1689 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1690 Use register_operand, not nonimmediate_operand, for the
1692 (DBCC): New mode_iterator.
1693 (dbcc peepholes): Use it to reduce duplication.
1694 (trap): Use const_true_rtx, not const1_rtx.
1695 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1696 from m68k_subword_comparison_operand and changed to handle
1700 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1702 (m68k_init_cc): New declaration.
1703 (m68k_output_compare_di, m68k_output_compare_si)
1704 (m68k_output_compare_hi, m68k_output_compare_qi)
1705 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1706 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1707 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1708 m68k_output_branch_float, m68k_output_branch_float_rev):
1710 (valid_dbcc_comparison_p_2, flags_in_68881)
1711 (output_btst): Remove declaration.
1712 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1713 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1714 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1715 (flags_compare_op0, flags_compare_op1, flags_operand1,
1716 flags_operand2, flags_valid): New static variables.
1717 (m68k_find_flags_value, m68k_init_cc): New functions.
1718 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1719 remember_compare_flags): New static functions.
1720 (output_dbcc_and_branch): New argument CODE. Use it, and add
1721 PLUS and MINUS to the possible codes. All callers changed.
1722 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1723 and INSN arguments, add CODE arg. Return the comparison code
1724 to use. All callers changed. Use CODE instead of
1725 next_insn_tests_no_inequality, and replace cc_status management
1726 with changing the return code.
1727 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1728 RTX_COMPARE or RTX_COMM_COMPARE.
1729 (output_move_simode, output_move_qimode): Call
1730 handle_flags_for_move.
1731 (notice_update_cc): Delete function.
1732 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1733 m68k_output_compare_hi, m68k_output_compare_qi,
1734 m68k_output_compare_fp, m68k_output_branch_integer,
1735 m68k_output_branch_integer_rev, m68k_output_scc,
1736 m68k_output_branch_float, m68k_output_branch_float_rev,
1737 m68k_output_scc_float): New functions.
1738 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1739 once at the start, and set flags_valid and flags_operand1 if the
1741 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1742 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1744 (CC_STATUS_INIT): Define.
1745 * config/m68k/m68k.md (flags_valid): New define_attr.
1746 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1747 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1748 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1749 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1750 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1751 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1752 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1753 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1754 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1755 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1756 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1757 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1758 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1759 ctrapqi4, conditional_trap): Delete patterns.
1760 (cbranchdi4_insn): New pattern.
1761 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1762 test high part only. When testing EQ or NE, generate beq0_di
1763 and bne0_di patterns directly.
1764 (cstoredi4): When testing LT or GE, test high part only.
1765 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1767 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1768 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1769 cmp2_cf_predicate): New define_mode_attrs.
1770 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1771 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1772 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1774 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1775 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1776 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1778 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1779 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1781 (BTST): New define_mode_iterator.
1782 (btst_predicate, btst_constraint, btst_range): New
1784 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1786 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1787 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1788 patterns): Set attr "flags_valid".
1789 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1790 management. Set attr "flags_valid".
1791 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1792 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1793 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1794 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1795 manual CC_STATUS management.
1796 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1797 unnamed strict_lowpart subhi and subqi patterns): Set attr
1799 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1800 Remove code to operate on address regs and assert the case
1802 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1803 manual CC_STATUS_INIT.
1804 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1805 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1806 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1807 one_cmplqi2, unnamed strict_lowpart patterns
1808 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1809 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1810 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1811 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1813 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1814 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1815 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1816 unnamed strict_low_part patterns for HI and
1817 QI versions): Set attr "flags_valid".
1818 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1819 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1820 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1821 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1822 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1823 (various unnamed peepholes): Adjust compare/branch sequences
1824 for new cbranch patterns.
1825 (dbcc peepholes): Likewise, and output the comparison here
1827 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1828 (fp_src_operand): Allow constant zero.
1829 (address_reg_operand): New predicate.
1831 * rtl.h (inequality_comparisons_p): Remove declaration.
1832 * recog.h (next_insn_tests_no_inequality): Likewise.
1833 * rtlanal.c (inequality_comparisons_p): Delete function.
1834 * recog.c (next_insn_tests_no_inequality): Likewise.
1836 2019-11-25 Richard Biener <rguenther@suse.de>
1838 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1839 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1840 properly re-building the visited hash-map for each lane.
1842 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1844 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1845 gcn_md_reorg): Remove unused variables.
1846 (gcn_emutls_var_init): Add missing (but unreachable) return
1848 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1849 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1850 an uninitialized variable.
1852 2019-11-25 Martin Jambor <mjambor@suse.cz>
1855 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1856 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1857 (cgraph_materialize_clone): Move removel from clone tree to the
1858 the new method and use it instead.
1859 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1860 bodies of clones, also remove it from the clone tree.
1862 2019-11-25 Martin Jambor <mjambor@suse.cz>
1865 * ipa-sra.c (process_isra_node_results): Put the new node to the
1866 same comdat group as the original node.
1868 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1870 Build double32 / long-double32 multilibs if needed.
1874 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1875 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1876 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1877 tm_defines and pass to genmultilib.awk.
1878 * config/avr/genmultilib.awk: Use these variables to add double32
1879 and / or long-double32 multilib(s) as needed.
1880 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1882 2019-11-25 Richard Biener <rguenther@suse.de>
1884 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1885 loop body, defaulted to NULL.
1886 (single_likely_exit): Add exit vector argument
1887 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1888 (number_of_iterations_exit): Likewise.
1889 (number_of_iterations_exit_assumptions): Likewise.
1890 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1892 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1893 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1894 Compute exit vector around call to single_likely_exit.
1895 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1896 loop body to loop_only_exit_p.
1897 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1899 (number_of_iterations_exit_assumptions): Get loop body from caller
1901 (number_of_iterations_exit): Pass through new loop body arg.
1902 (infer_loop_bounds_from_undefined): Get loop body from caller.
1903 (estimate_numbers_of_iterations): Compute loop body once.
1905 2019-11-25 Richard Biener <rguenther@suse.de>
1907 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1908 auto_bb_flag instead of an sbitmap for visited handling.
1910 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1912 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1914 (vector_fp_comparison_complex): Likewise.
1915 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1917 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1919 (vector_lt<mode> for VEC_F): Refactor with
1920 vector_fp_comparison_simple.
1921 (vector_le<mode> for VEC_F): Likewise.
1922 (vector_unge<mode> for VEC_F): Likewise.
1923 (vector_unle<mode> for VEC_F): Likewise.
1924 (vector_ne<mode> for VEC_F): Likewise.
1925 (vector_ungt<mode> for VEC_F): Likewise.
1926 (vector_unlt<mode> for VEC_F): Likewise.
1927 (vector_ltgt<mode> for VEC_F): Refactor with
1928 vector_fp_comparison_complex.
1929 (vector_ordered<mode> for VEC_F): Likewise.
1930 (vector_uneq<mode> for VEC_F): Likewise.
1931 (vector_unordered<mode> for VEC_F): Likewise.
1933 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1935 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1936 COMPARE, representing an overflow detection.
1938 * combine.c (combine_instructions): Record costs for jumps.
1940 * combine.c (can_combine_p): Allow autoinc in jumps.
1942 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1944 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1945 * doc/invoke.texi (max-inline-insns-single-O2,
1946 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1947 early-inlining-insns-O2): Remove documentation.
1948 * ipa-fnsummary.c (analyze_function_body,
1949 compute_fn_summary): Use opt_for_fn when accessing parameters.
1950 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1951 inline_insns_auto, can_inline_edge_by_limits_p,
1952 want_early_inline_function_p, big_speedup_p,
1953 want_inline_small_function_p, want_inline_self_recursive_call_p,
1954 recursive_inlining, compute_max_insns, inline_small_functions):
1956 * opts.c (default_options): Add -O3 defaults for
1957 OPT__param_early_inlining_insns_,
1958 OPT__param_inline_heuristics_hint_percent_,
1959 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1960 * params.opt (-param=early-inlining-insns-O2=,
1961 -param=inline-heuristics-hint-percent-O2=,
1962 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1963 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1964 -param=inline-min-speedup=, -param=inline-unit-growth=,
1965 -param=large-function-growth=, -param=large-stack-frame=,
1966 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1967 -param=max-inline-insns-recursive=,
1968 -param=max-inline-insns-recursive-auto=,
1969 -param=max-inline-insns-single=,
1970 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1971 -param=max-inline-recursive-depth=,
1972 -param=max-inline-recursive-depth-auto=,
1973 -param=min-inline-recursive-probability=,
1974 -param=partial-inlining-entry-probability=,
1975 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1976 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1979 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1981 * ipa-fnsummary.c: Fix comment typos.
1982 * ipa-ref.h: Likewise.
1983 * ipa-predicate.h: Likewise.
1984 * ipa-split.c: Likewise.
1985 * ipa-inline-analysis.c: Likewise.
1986 * ipa-predicate.c: Likewise.
1987 * ipa-devirt.c: Likewise.
1988 * ipa-icf.h: Likewise.
1989 * profile-count.c: Likewise.
1990 * ipa-icf.c: Likewise.
1991 (sem_function::equals_wpa): Fix typos in dump messages.
1992 * ipa-icf-gimple.h: Fix comment typos.
1993 * ipa-inline-transform.c: Likewise.
1994 * ipa-polymorphic-call.c: Likewise.
1995 * ipa-fnsummary.h: Likewise.
1996 * ipa-inline.c: Likewise.
1997 (dump_inline_stats): Fix typo in debug dump message.
1998 * profile-count.h: Fix comment typos.
2001 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2002 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2003 register_operand, force x into register before storing it into dest.
2007 * doc/extend.texi (attribute access): Fix a typo.
2009 PR rtl-optimization/92610
2010 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2011 cse_cfg_altered is set, even when tem is 0.
2012 (rest_of_handle_cse_after_global_opts): Likewise.
2014 2019-11-22 Jakub Jelinek <jakub@redhat.com>
2017 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2018 tree_hash): Move to ...
2019 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2020 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2022 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2024 PR tree-optimization/92618
2025 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2026 containing the auto_vec and a tree.
2027 (undistribute_bitref_for_vector): Handle the case when element type
2028 of vec is not the same as type of the BIT_FIELD_REF. Formatting
2031 2019-11-22 Martin Sebor <msebor@redhat.com>
2034 * attribs.h (struct attr_access): New.
2035 * attribs.c (decl_attributes): Add an informational note.
2036 * builtins.c (check_access): Make extern. Consistently set no-warning
2037 after issuing a warning. Handle calls through function pointers. Set
2039 * builtins.h (check_access): Declare.
2040 * calls.c (rdwr_access_hash): New type.
2042 (init_attr_rdwr_indices): New function.
2043 (maybe_warn_rdwr_sizes): Same.
2044 (initialize_argument_information): Call init_attr_rdwr_indices.
2045 Call maybe_warn_rdwr_sizes.
2046 (get_size_range): Avoid null argument.
2047 * doc/extend.texi (attribute access): Document new attribute.
2049 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2051 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2052 (ACC_LDS_SIZE): Define.
2053 (OTHER_LDS_SIZE): Define.
2054 (LDS_SIZE): Redefine using above.
2055 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2057 2019-11-22 Martin Sebor <msebor@redhat.com>
2060 * builtins.c (check_nul_terminated_array): New function.
2061 (fold_builtin_0): Remove declaration.
2062 (fold_builtin_1): Same.
2063 (fold_builtin_2): Same.
2064 (fold_builtin_3): Same.
2065 (fold_builtin_strpbrk): Add argument.
2066 (fold_builtin_strspn): Same.
2067 (fold_builtin_strcspn): Same.
2068 (expand_builtin_strcat): Call it. Remove unused argument.
2069 (expand_builtin_stpncpy): Same.
2070 (expand_builtin_strncat): Same.
2071 (expand_builtin_strncpy): Same. Adjust indentation.
2072 (expand_builtin_strcmp): Same.
2073 (expand_builtin_strncmp): Same.
2074 (expand_builtin_fork_or_exec): Same.
2075 (expand_builtin): Handle more built-ins.
2076 (fold_builtin_2): Add argument.
2077 (fold_builtin_n): Make static. Add argument.
2078 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2079 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2080 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2081 (fold_call_stmt): Pass new argument to fold_builtin_n.
2082 * builtins.h: Correct a comment.
2083 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2084 check_nul_terminated_array.
2085 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2086 check_nul_terminated_array.
2087 (handle_builtin_strchr): Same.
2088 (handle_builtin_string_cmp): Same.
2090 2019-11-22 Martin Sebor <msebor@redhat.com>
2092 PR tree-optimization/92501
2093 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2094 handle unterminated arrays. Rename local variables for clarity.
2096 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2098 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2099 granulated_sgprs according to architecture.
2101 2019-11-22 Jan Hubicka <jh@suse.cz>
2103 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2104 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2105 (memory_block_pool::reduce_free_list): ... this one.
2106 (memory_block_pool::trim): New static function.
2107 * memory-block.h (memory_block_pool::freelist_size): New constant
2108 (memory_block_pool::clear_free_list): Rename to ...
2109 (memory_block_pool::reduce_free_list): ... this one.
2110 (memory_block_pool::trim): Declare.
2112 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2114 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2116 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2118 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2120 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2122 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2123 (bic_cmp0_noout): New pattern.
2124 (bic_cmp0): Likewise.
2125 (neg_scc_insn): Remove pattern.
2126 (not_scc_insn): Likewise.
2128 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2130 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2132 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2134 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2135 pedwarn instead of warning_at for fallthrough not preceding a case
2138 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2140 PR tree-optimization/92608
2141 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2144 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2146 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2148 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2149 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2150 special for FP comparisons that need a cror instruction eventually.
2151 (rs6000_emit_fp_cror): New function.
2152 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2153 instruction, for normal FP modes, with HONOR_NANS.
2154 (rs6000_emit_cbranch): Reformat.
2155 * config/rs6000/rs6000.md (fp_rev): New iterator.
2156 (fp_two): New iterator.
2157 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2158 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2159 *cbranch_2insn: New define_insn_and_split.
2161 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2163 PR tree-optimization/92526
2164 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2165 versioning for alignment if the accesses do not have a consistent
2166 mask, rather than asserting that the masks are consistent.
2168 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2170 PR tree-optimization/92595
2171 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2173 (vectorizable_store, vectorizable_load): Likewise.
2175 2019-11-21 Jan Hubicka <jh@suse.cz>
2177 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2178 (resolve_noninline_speculation, inline_small_functions): Avoid
2181 2019-11-21 Richard Biener <rguenther@suse.de>
2183 * lra.c (lra_insn_recog_data_pool): New.
2184 (free_insn_recog_data): Adjust.
2185 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2186 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2188 2019-11-21 Richard Biener <rguenther@suse.de>
2190 PR tree-optimization/92596
2191 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2193 2019-11-21 Jan Hubicka <jh@suse.cz>
2195 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2196 ready for some vectors to not be allocated.
2197 (evaluate_properties_for_edge): Document better; make
2198 known_vals and known_aggs caller allocated; avoid determining
2199 values of parameters which are not used.
2200 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2202 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2203 (do_estimate_edge_size): Likewise.
2204 (do_estimate_edge_hints): Likewise.
2205 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2206 values are not known.
2207 (ipa_release_agg_values): Add option to not release vector itself.
2208 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2210 2019-11-21 Richard Biener <rguenther@suse.de>
2212 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2213 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2214 (loop_iterator::loop_iterator): Adjust.
2215 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2216 (compute_dominance_frontiers): ... this. Hoist invariant
2217 get_immediate_dominator call.
2218 (compute_idf): Use a work-set instead of a work-list for more
2219 optimal iteration order and duplicate avoidance.
2220 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2221 the vector all the time, instead pre-allocate the vector only
2223 (delete_update_ssa): Simplify.
2224 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2226 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2228 PR tree-optimization/91355
2229 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2230 for early_bb scaled count with best_bb count comparison.
2232 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2234 * ipa-inline.c (edge_badness): Likewise.
2235 * lto-streamer.h (class lto_location_cache): Likewise.
2236 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2237 gratutious -> gratuitous.
2239 2019-11-21 Richard Biener <rguenther@suse.de>
2242 2019-09-17 Richard Biener <rguenther@suse.de>
2244 PR tree-optimization/91790
2245 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2246 use the correct DR for setting up realignment.
2248 2019-11-21 Richard Biener <rguenther@suse.de>
2250 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2251 (equiv_class_obstack): New.
2252 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2253 (perform_var_substitution): Initialize equiv_class_obstack.
2254 (free_var_substitution_info): Free equiv_class_obstack.
2256 2019-11-20 Jan Hubicka <jh@suse.cz>
2258 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2259 edge growth when callee function is very large.
2260 * ipa-inline.h (estimate_min_edge_growth): New.
2262 2019-11-20 Jan Hubicka <jh@suse.cz>
2264 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2265 negative time in calls summary; correct roundoff errors
2266 leading to negative times.
2267 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2269 (ipa_update_overall_fn_summary): Add RESET parameter.
2270 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2271 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2273 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2275 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2276 def types for two-operation SLP.
2278 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2281 * doc/sourcebuild.texi (vect_char_add): Document.
2283 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2285 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2286 * function.c (record_final_call): Record even calls that might
2287 have been in the cgraph.
2288 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2291 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2293 * configure.ac: Use https for gcc.gnu.org
2294 * configure: Regenerated.
2295 * doc/install.texi: Use https for gcc.gnu.org.
2296 * doc/sourcebuild.texi: Likewise.
2298 2019-11-20 Julian Brown <julian@codesourcery.com>
2300 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2302 2019-11-20 Jan Hubicka <jh@suse.cz>
2304 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2305 parameter and update call_size_time_table.
2306 (ipa_fn_summary::max_size_time_table_size): New constant.
2307 (estimate_calls_size_and_time_1): Break out from ...
2308 (estimate_calls_size_and_time): ... here; implement summary production.
2309 (summarize_calls_size_and_time): New function.
2310 (ipa_call_context::estimate_size_and_time): Bypass
2311 estimate_calls_size_and_time for leaf functions.
2312 (ipa_update_overall_fn_summary): Likewise.
2313 * ipa-fnsummary.h (call_size_time_table): New.
2314 (ipa_fn_summary::account_size_time): Update prototype.
2316 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2318 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2320 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2323 * common.opt (fcommon): Change init to 1.
2324 * doc/invoke.texi (-fcommon): Update documentation.
2326 2019-11-20 Jan Hubicka <jh@suse.cz>
2328 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2331 2019-11-20 Jan Hubicka <jh@suse.cz>
2333 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2334 Add allocator parameter.
2335 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2336 (fibonacci_heap<K,V>::m_allocator): New.
2337 (fibonacci_heap<K,V>::m_own_allocator): New.
2338 (fibonacci_heap<K,V>::insert): Use allocator.
2339 (fibonacci_heap<K,V>::extract_min): Likewise.
2340 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2342 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2344 * fibonacci_heap.c: Include alloc-pool
2345 (test_empty_heap): Initialize allocator.
2346 (test_union): Likewise.
2347 * bb-reorder.c: Include alloc-pool.h.
2348 * tracer.c: Inlclude alloc-pool.h.
2350 2019-11-20 Jan Hubicka <jh@suse.cz>
2352 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2353 Preallocate for 32 entries.
2354 (DFS::worklist): Likewise.
2355 (DFS::DFS): Do not initialize sccstack and worklist.
2356 (DFS::~DFS): Do not release sccstack.
2358 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2361 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2362 Handle UNORDERED if !HONOR_NANS.
2364 2019-11-20 Jan Hubicka <jh@suse.cz>
2366 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2367 (edge_badness): ... here.
2368 (inline_small_functions): Use monotonicity of badness calculation
2369 to avoid redundant updates.
2371 2019-11-20 Richard Biener <rguenther@suse.de>
2373 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2374 constructors we are actually analyzing.
2375 (vect_slp_check_for_constructors): Do not vectorize uniform
2376 constuctors, do not dump here.
2378 2019-11-20 Richard Biener <rguenther@suse.de>
2380 PR tree-optimization/92537
2381 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2382 vectorization validity check...
2383 (vect_slp_analyze_operations): ... here.
2385 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2387 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2388 (make_pass_arc_predicate_delay_insns): Likewise.
2389 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2390 method, remove clone.
2391 (class pass_arc_predicate_delay_insns): Likewise.
2392 (arc_init): Remove registering of ARC specific passes.
2393 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2394 * config/arc/arc-passes.def: New file.
2396 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2399 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2400 and has a mode that doesn't have corresponding integral type.
2403 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2404 clear opts->x_ix86_isa_flags{,2} here...
2405 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2406 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2409 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2411 (insert_clobbers_for_var): Fix a typo in function comment.
2413 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2414 Jakub Jelinek <jakub@redhat.com>
2417 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2418 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2421 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2423 Make 0-series device specs work with older versions of avr-gcc.
2426 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2427 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2428 <*link_pm_base_address>: Don't write spec.
2429 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2431 2019-11-20 Richard Biener <rguenther@suse.de>
2434 * builtins.c (compute_objsize): Deal with VLAs.
2436 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2438 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2440 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2442 (power9_sched_reorder2): Call new function.
2443 (rs6000_sched_reorder2): Likewise.
2445 2019-11-18 Jan Hubicka <jh@suse.cz>
2447 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2448 (estimate_calls_size_and_time): Update.
2450 2019-11-18 Jan Hubicka <jh@suse.cz>
2452 * ipa-inline.c (inlining_speedup): New function.
2453 (edge_badness): Use it.
2455 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2456 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2458 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2459 Mark as not having "likely" version.
2460 * config/mips/mips.md (insn_count): The simd_div instruction with
2461 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2462 (can_delay): Exclude simd_branch.
2463 (defile_delay *): Add simd_branch instructions.
2464 They have one regular delay slot.
2466 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2469 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2471 * cse.c (cse_insn): Delete no-op register moves too.
2472 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2473 Take a second comparison to control the value for NE.
2474 (mask_to_comparison): Handle unsigned comparisons.
2475 (simplify_logical_relational_operation): Likewise. Update call
2476 to comparison_to_mask. Handle AND if !HONOR_NANs.
2477 (simplify_binary_operation_1): Call the above for AND too.
2479 2019-11-19 Martin Liska <mliska@suse.cz>
2481 * toplev.c (general_init): Move the call...
2482 (toplev::main): ... here as we need init_options_struct
2485 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2488 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2491 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2493 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2494 (armv7-a): Likewise.
2495 (armv7ve): Likewise.
2497 2019-11-19 Richard Biener <rguenther@suse.de>
2499 PR tree-optimization/92581
2500 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2501 condition reduction chains gather all conditions involved
2502 for computing the index reduction vector.
2504 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2506 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2507 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2508 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2509 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2510 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2511 (aarch64_init_memtag_builtins): New.
2512 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2513 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2514 (aarch64_expand_builtin_memtag): New.
2515 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2516 (AARCH64_BUILTIN_SUBCODE): New macro.
2517 (aarch64_resolve_overloaded_memtag): New.
2518 (aarch64_resolve_overloaded_builtin_general): New. Call
2519 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2520 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2521 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2522 (aarch64_resolve_overloaded_builtin): Call
2523 aarch64_resolve_overloaded_builtin_general.
2524 * config/aarch64/aarch64-protos.h
2525 (aarch64_resolve_overloaded_builtin_general): New declaration.
2526 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2527 (TARGET_MEMTAG): Likewise.
2528 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2529 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2530 (irg, gmi, subp, addg, ldg, stg): New instructions.
2531 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2532 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2533 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2534 (__arm_mte_get_tag): Likewise.
2535 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2536 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2537 * config/arm/types.md (memtag): New.
2538 * doc/invoke.texi (-memtag): Update description.
2540 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2542 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2543 to define __GCC_ASM_FLAG_OUTPUTS__.
2544 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2545 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2546 depending on TARGET_THUMB1.
2547 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2549 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2552 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2555 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2556 operand is negative and one non-negative, compare the non-negative
2557 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2558 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2559 and s2 == 0, unless one of them is known to be negative. Remove
2560 tem2 variable, use tem where tem2 has been used before.
2562 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2564 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2566 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2568 PR tree-optimization/92557
2569 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2570 vmode rather than asserting it always is.
2572 2019-11-19 Richard Biener <rguenther@suse.de>
2574 PR tree-optimization/92554
2575 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2576 for the actual condition stmt and deal with sign-changes.
2578 2019-11-19 Richard Biener <rguenther@suse.de>
2580 PR tree-optimization/92555
2581 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2584 2019-11-19 Martin Liska <mliska@suse.cz>
2587 * config/riscv/riscv.c (riscv_address_insns): Initialize
2588 addr in order to remove boostrap -Wmaybe-uninitialized
2591 2019-11-18 Martin Sebor <msebor@redhat.com>
2593 PR tree-optimization/92493
2594 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2597 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2599 * cfgloop.c (get_loop_body_in_custom_order): New.
2600 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2601 * tree-loop-distribution.c (class loop_distribution): New.
2602 (bb_top_order_cmp): Remove.
2603 (bb_top_order_cmp_r): New.
2604 (create_rdg_vertices): Move into class loop_distribution.
2605 (stmts_from_loop): Same as above.
2606 (update_for_merge): Same as above.
2607 (partition_merge_into): Same as above.
2608 (get_data_dependence): Same as above.
2609 (data_dep_in_cycle_p): Same as above.
2610 (update_type_for_merge): Same as above.
2611 (build_rdg_partition_for-vertex): Same as above.
2612 (classify_builtin_ldst): Same as above.
2613 (classify_partition): Same as above.
2614 (share_memory_accesses): Same as above.
2615 (rdg_build_partitions): Same as above.
2616 (pg_add_dependence_edges): Same as above.
2617 (build_partition_graph): Same as above.
2618 (merge_dep_scc_partitions): Same as above.
2619 (break_alias_scc_partitions): Same as above.
2620 (finalize_partitions): Same as above.
2621 (distribute_loop): Same as above.
2622 (bb_top_order_init): New method
2623 (bb_top_order_destroy): New method.
2624 (get_bb_top_order_index_size): New method.
2625 (get_bb_top_order_index_index): New method.
2626 (get_bb_top_order_index_index): New method.
2627 (loop_distribution::execute): New method.
2628 (pass_loop_distribution::execute): Instantiate loop_distribution.
2630 2019-11-18 Jan Hubicka <jh@suse.cz>
2633 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2635 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2637 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2639 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2640 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2641 * doc/md.texi: Document them.
2642 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2644 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2645 * internal-fn.c (check_ptrs_direct): New macro.
2646 (expand_check_ptrs_optab_fn): Likewise.
2647 (direct_check_ptrs_optab_supported_p): Likewise.
2648 (internal_check_ptrs_fn_supported_p): New fuction.
2649 * tree-data-ref.c: Include internal-fn.h.
2650 (create_ifn_alias_checks): New function.
2651 (create_intersect_range_checks): Use it.
2652 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2653 (optab, cmp_op): Handle it.
2654 (raw_war, unspec): New int attributes.
2655 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2657 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2659 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2661 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2664 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2666 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2669 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2671 * cse.c (cse_insn): Delete no-op register moves too.
2672 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2673 Take a second comparison to control the value for NE.
2674 (mask_to_comparison): Handle unsigned comparisons.
2675 (simplify_logical_relational_operation): Likewise. Update call
2676 to comparison_to_mask. Handle AND if !HONOR_NANs.
2677 (simplify_binary_operation_1): Call the above for AND too.
2679 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2681 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2682 splitting the main code out into...
2683 (native_encode_vector_part): ...this new function.
2684 (native_decode_vector_tree): New function.
2685 (fold_view_convert_vector_encoding): Likewise.
2686 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2689 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2691 * tree-data-ref.c (create_intersect_range_checks_index): If the
2692 alias pair describes simple WAW and WAR dependencies, just check
2693 whether the first B access overlaps later A accesses.
2694 (create_waw_or_war_checks): New function that performs the same
2695 optimization on addresses.
2696 (create_intersect_range_checks): Call it.
2698 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2700 * lra-constraints.c (valid_address_p): Take the operand and a
2701 constraint as argument. If the operand is a MEM and the constraint
2702 is a memory constraint, check whether the eliminated form of the
2703 MEM already satisfies the constraint.
2704 (process_address_1): Update calls accordingly.
2706 2019-11-18 Tom Tromey <tromey@adacore.com>
2708 * doc/tm.texi: Rebuild.
2709 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2710 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2712 2019-11-18 Richard Biener <rguenther@suse.de>
2714 PR tree-optimization/92516
2715 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2716 argument, hoist bst_map creation/destruction to ...
2717 (vect_analyze_slp): ... here, forming a true graph with
2718 SLP instances being the entries.
2719 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2720 (vect_detect_hybrid_slp): Use one visited set for all
2722 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2723 to hash-sets of slp_tree.
2724 (vect_slp_analyze_operations): Likewise.
2725 (vect_bb_slp_scalar_cost): Remove wrapper.
2726 (vect_bb_vectorization_profitable_p): Use one visited set for
2728 (vect_schedule_slp_instance): Elide bst_map use.
2729 (vect_schedule_slp): Likewise.
2731 2019-11-18 Richard Biener <rguenther@suse.de>
2733 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2734 was vectorized with just external refs fail.
2736 2019-11-18 Martin Liska <mliska@suse.cz>
2739 * ipa-icf.c (sem_function::init): Unset m_checker
2740 at the end of the function.
2742 2019-11-18 Richard Biener <rguenther@suse.de>
2744 PR tree-optimization/92558
2745 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2746 reducting the width of a reduction vector def update new_phis.
2748 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2750 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2751 and s390*-*-linux-musl* targets.
2752 * configure: Regenerate.
2754 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2756 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2757 (MUSL_DYNAMIC_LINKER64): Define.
2759 2019-11-18 Martin Liska <mliska@suse.cz>
2761 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2762 message for an unknown counter.
2763 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2764 (dbg_cnt_process_opt): Remove unreachable code.
2766 2019-11-18 Martin Liska <mliska@suse.cz>
2769 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2770 Compare LHS types of NOP_EXPR.
2772 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2774 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2775 "initial_pass_name" argument -- by running "*clean_state" pass.
2776 Also free the "initial_pass_name" when done.
2778 2019-11-18 Richard Biener <rguenther@suse.de>
2780 PR rtl-optimization/92462
2781 * alias.c (find_base_term): Restrict the look through ANDs.
2782 (find_base_value): Likewise.
2784 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2786 Add support for AVR devices from the 0-series.
2789 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2790 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2791 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2792 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2793 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2794 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2795 for spec definitions.
2796 * doc/avr-mmcu.texi: Regenerate.
2798 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2801 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2802 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2803 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2804 (ix86_reassociation_width): Ditto.
2805 * config/i386/i386-options.c (ix86_option_override_internal):
2806 Replace TARGET_AVX128_OPTIAML with
2807 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2808 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2809 (TARGET_AVX128_OPTIMAL): Deleted.
2810 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2813 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2815 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2816 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2818 (cceq_rev_compare): Rename to...
2819 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2821 (define_split for <bd>tf_<mode>): Add SImode first argument to
2822 gen_cceq_ior_compare.
2824 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2826 * common/config/powerpcspe: Delete.
2828 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2830 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2831 output in UNSPEC_WRFFR.
2833 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2835 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2836 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2838 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2840 * tree-data-ref.c (create_intersect_range_checks_index)
2841 (create_intersect_range_checks): Print dump messages.
2843 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2845 * tree-data-ref.c (dump_alias_pair): New function.
2846 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2848 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2850 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2851 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2852 merging data references with different steps.
2853 (create_intersect_range_checks_index): Take a
2854 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2855 Bail out if DR_ALIAS_MIXED_STEPS is set.
2856 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2857 instead of two dr_with_seg_lens. Update call to
2858 create_intersect_range_checks_index.
2859 (create_runtime_alias_checks): Update call accordingly.
2861 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2863 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2864 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2865 (dr_with_seg_len_pair_t::sequencing): New enum.
2866 (dr_with_seg_len_pair_t::flags): New member variable.
2867 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2868 parameter and initialize the flags member variable.
2869 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2871 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2872 Ensure the two data references in an alias pair are in statement
2873 order, if there is a defined order.
2874 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2875 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2876 swapped the references in a dr_with_seg_len_pair_t. OR together
2877 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2878 try to restore the original dr_with_seg_len order, updating the
2879 flags if that fails.
2881 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2883 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2884 swapping the dr_as based on init values until we've decided
2885 whether to merge them.
2887 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2889 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2890 two accesses in each dr_with_seg_len_pair_t before trying to
2891 combine separate dr_with_seg_len_pair_ts.
2892 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2894 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2896 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2898 * config/aarch64/aarch64-sve.md
2899 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2900 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2901 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2902 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2903 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2904 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2905 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2907 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2908 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2909 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2910 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2912 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2914 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2915 (SVE_4HSI): New mode iterators.
2916 (ANY_EXTEND2): New code iterator.
2917 * config/aarch64/aarch64-sve.md
2918 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2920 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2921 ...this, handling extension to partial modes as well as full modes.
2922 Describe the extension as a predicated rather than unpredicated
2924 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2925 Likewise extend to...
2926 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2927 ...this, making the same adjustments.
2928 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2929 Likewise extend to...
2930 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2931 ...this, making the same adjustments.
2932 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2933 Likewise extend to...
2934 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2935 ...this, making the same adjustments.
2936 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2938 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2939 extension predicate.
2940 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2941 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2942 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2943 Describe the extension as a predicated rather than unpredicated
2945 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2946 Likewise. Canonicalize to a constant extension predicate.
2947 * config/aarch64/aarch64-sve-builtins-base.cc
2948 (svld1_gather_extend_impl::expand): Add an extra predicate for
2950 (svldff1_gather_extend_impl::expand): Likewise.
2952 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2954 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2956 * config/aarch64/aarch64-sve.md
2957 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2958 (gather_load<SVE_24:mode><v_int_container>): ...this.
2959 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2960 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2961 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2962 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2963 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2965 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2966 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2967 Allow the nominal extension predicate to be different from the
2969 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2970 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2972 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2974 * config/aarch64/aarch64-sve.md
2975 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2976 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2978 (aarch64_sve_adjust_stmt_cost): Call it.
2980 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2982 * config/aarch64/aarch64-sve.md
2983 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2984 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2985 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2987 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2988 ...this new pattern, handling extension to partial modes as well
2989 as full modes. Describe the extension as a predicated rather than
2990 unpredicated extension.
2991 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2992 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2993 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2995 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2996 ...this new pattern, handling extension to partial modes as well
2997 as full modes. Describe the extension as a predicated rather than
2998 unpredicated extension.
2999 * config/aarch64/aarch64-sve-builtins.cc
3000 (function_expander::use_contiguous_load_insn): Add an extra
3001 predicate for extending loads.
3002 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3003 (aarch64_sve_adjust_stmt_cost): Likewise.
3004 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3005 the cost of SVE vector stmts.
3007 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3009 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3010 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3011 * config/aarch64/aarch64-sve.md
3012 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3013 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3014 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3015 comment. Avoid new narrower_mask ambiguity.
3016 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3017 (*cond_uxt<mode>_2): Update comment.
3018 (*cond_uxt<mode>_any): Likewise.
3020 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3022 * config/aarch64/aarch64-modes.def: Define partial SVE vector
3024 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3026 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3027 new vector float modes.
3028 (aarch64_sve_container_bits): New function.
3029 (aarch64_sve_pred_mode): Likewise.
3030 (aarch64_get_mask_mode): Use it.
3031 (aarch64_sve_element_int_mode): Handle structure modes and partial
3033 (aarch64_sve_container_int_mode): New function.
3034 (aarch64_vectorize_related_mode): Return SVE modes when given
3035 SVE modes. Handle partial modes, taking the preferred number
3036 of units from the size of the given mode.
3037 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3039 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3040 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3041 (aarch64_split_sve_subreg_move): Use the mode form of
3042 aarch64_sve_pred_mode.
3043 (aarch64_secondary_reload): Handle partial modes in the same way
3044 as full big-endian vectors.
3045 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3046 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3047 merging with the Advanced SIMD modes. If two modes have the
3048 same size, try the Advanced SIMD mode first.
3049 (aarch64_simd_valid_immediate): Use the container rather than
3050 the element mode for INDEX constants.
3051 (aarch64_simd_vector_alignment): Make the alignment of partial
3052 SVE vector modes the same as their minimum size.
3053 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3054 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3055 (mov<SVE_ALL:mode>): ...this.
3056 (movmisalign<SVE_FULL:mode>): Extend to...
3057 (movmisalign<SVE_ALL:mode>): ...this.
3058 (*aarch64_sve_mov<mode>_le): Rename to...
3059 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3060 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3061 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3062 partial modes regardless of endianness.
3063 (aarch64_sve_reload_be): Rename to...
3064 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3065 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3066 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3067 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3068 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3069 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3070 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3071 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3072 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3073 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3074 (maskload<SVE_FULL:mode><vpred>): Extend to...
3075 (maskload<SVE_ALL:mode><vpred>): ...this.
3076 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3077 (maskstore<SVE_ALL:mode><vpred>): ...this.
3078 (vec_duplicate<SVE_FULL:mode>): Extend to...
3079 (vec_duplicate<SVE_ALL:mode>): ...this.
3080 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3081 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3082 (sve_ld1r<SVE_FULL:mode>): Extend to...
3083 (sve_ld1r<SVE_ALL:mode>): ...this.
3084 (vec_series<SVE_FULL_I:mode>): Extend to...
3085 (vec_series<SVE_I:mode>): ...this.
3086 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3087 (*vec_series<SVE_I:mode>_plus): ...this.
3088 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3089 new VPRED ambiguity.
3090 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3091 (add<SVE_FULL_I:mode>3): Extend to...
3092 (add<SVE_I:mode>3): ...this.
3093 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3094 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3095 (VPRED, vpred): Likewise.
3096 (Vctype): New iterator.
3097 (vw): Remove SVE modes.
3099 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3101 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3102 (SVE_PARTIAL_I): ...this.
3103 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3105 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3107 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3108 (SVE_FULL): ...this.
3109 (SVE_I): Rename to...
3110 (SVE_FULL_I): ...this.
3111 (SVE_F): Rename to...
3112 (SVE_FULL_F): ...this.
3113 (SVE_BHSI): Rename to...
3114 (SVE_FULL_BHSI): ...this.
3115 (SVE_HSD): Rename to...
3116 (SVE_FULL_HSD): ...this.
3117 (SVE_HSDI): Rename to...
3118 (SVE_FULL_HSDI): ...this.
3119 (SVE_HSF): Rename to...
3120 (SVE_FULL_HSF): ...this.
3121 (SVE_SD): Rename to...
3122 (SVE_FULL_SD): ...this.
3123 (SVE_SDI): Rename to...
3124 (SVE_FULL_SDI): ...this.
3125 (SVE_SDF): Rename to...
3126 (SVE_FULL_SDF): ...this.
3127 (SVE_S): Rename to...
3128 (SVE_FULL_S): ...this.
3129 (SVE_D): Rename to...
3130 (SVE_FULL_D): ...this.
3131 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3132 * config/aarch64/aarch64-sve2.md: Likewise.
3134 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3136 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3138 * doc/invoke.texi: Document it.
3139 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3140 By default, return VECT_COMPARE_COSTS for SVE.
3142 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3144 * target.h (VECT_COMPARE_COSTS): New constant.
3145 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3146 * doc/tm.texi: Regenerate.
3147 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3148 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3149 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3151 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3152 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3153 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3154 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3155 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3156 (_loop_vec_info::vec_inside_cost): New member variables.
3157 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3158 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3159 (vect_analyze_loop): When autovectorize_vector_modes returns
3160 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3161 vector mode and picking the one with the lowest cost.
3162 (vect_estimate_min_profitable_iters): Record the computed costs
3163 in the loop_vec_info.
3165 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3167 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3168 element type rather than an element mode.
3169 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3170 Use get_vectype_for_scalar_type to query the natural types
3171 for a given element type rather than basing everything on
3172 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3173 query to MAX_FIXED_MODE_SIZE.
3174 (duplicate_and_interleave): Update call accordingly.
3175 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3177 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3179 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3180 optional maximum nunits.
3181 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3183 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3184 (vect_get_mask_type_for_stmt): Likewise.
3185 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3186 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3187 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3188 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3189 to get an assumed vector type for data references.
3190 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3191 (vect_update_all_shared_vectypes): Likewise.
3192 (vect_build_slp_tree_1): Pass the group size to
3193 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3194 for BB vectorization.
3195 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3196 before building the vectof from scalars.
3197 (vect_analyze_slp_instance): Pass the group size to
3198 get_vectype_for_scalar_type.
3199 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3200 types for BB vectorization here; just handle the case in which
3201 we deferred the choice for booleans.
3202 (vect_get_constant_vectors): Pass the slp_tree to
3203 get_vectype_for_scalar_type.
3204 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3205 (vectorizable_call): Likewise.
3206 (vectorizable_simd_clone_call): Likewise.
3207 (vectorizable_conversion): Likewise.
3208 (vectorizable_shift): Likewise.
3209 (vectorizable_operation): Likewise.
3210 (vectorizable_comparison): Likewise.
3211 (vect_is_simple_cond): Take the slp_tree as argument and
3212 pass it to get_vectype_for_scalar_type.
3213 (vectorizable_condition): Update call accordingly.
3214 (get_vectype_for_scalar_type): Take a group_size argument.
3215 For BB vectorization, limit the the vector to that number
3216 of elements. Also define an overload that takes an slp_tree.
3217 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3218 pass it to get_vectype_for_scalar_type.
3219 (vect_get_vector_types_for_stmt): Add a group_size argument
3220 and pass it to get_vectype_for_scalar_type. Don't use the
3221 cached vector type for BB vectorization if a group size is given.
3222 Handle data references in that case.
3223 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3224 pass it to get_mask_type_for_scalar_type.
3226 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3228 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3230 (estimate_edge_time): Use it.
3231 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3232 ret_nonspec_time parameter.
3234 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3236 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3238 2019-11-15 Nick Clifton <nickc@redhat.com>
3239 Szabolcs Nagy <szabolcs.nagy@arm.com>
3242 * config/microblaze/microblaze.c (print_operand): Print value as long.
3244 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3246 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3249 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3251 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3252 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3254 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3256 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3257 (gcn_conditional_register_usage): Use constants in place of hard-coded
3259 (gcn_hsa_declare_function_name): Set lower bound for number of
3260 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3261 MAX_NORMAL_VGPR_COUNT.
3263 2019-11-15 Martin Jambor <mjambor@suse.cz>
3265 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3268 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3270 * config/gcn/gcn.c (default_requested_args): New.
3271 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3272 set with default_requested_args.
3273 (gcn_conditional_register_usage): Limit register usage of non-kernel
3274 functions. Reassign fixed registers if a non-standard set of args is
3276 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3278 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3281 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3282 aggregate jump function when inlined-to caller has no edge summary.
3284 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3286 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3288 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3290 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3292 (print_operand_address): Use v1 for zero vector offset.
3294 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3296 PR tree-optimization/92515
3297 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3298 types when converting a vector/scalar shift into a vector/vector one,
3299 using tree_nop_conversion_p instead of useless_type_conversion_p.
3300 Move the conversion code to the transform block.
3302 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3304 * read-rtl-function.c
3305 (function_reader::add_fixup_source_location): Take additional
3306 parameter of a column.
3307 (function_reader::maybe_read_location): Optionally parse column
3308 information and pass to add_fixup_source_location.
3310 2019-11-15 Richard Biener <rguenther@suse.de>
3312 PR tree-optimization/92512
3313 * tree-vect-loop.c (check_reduction_path): Fix operand index
3314 computability check. Add check for second use in COND_EXPRs.
3316 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3319 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3320 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3322 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3324 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3325 register class for VCC_LO and VCC_HI.
3326 (gcn_spill_class): Use SGPR_REGS to spill registers in
3327 VCC_CONDITIONAL_REG.
3329 2019-11-15 Richard Biener <rguenther@suse.de>
3331 PR tree-optimization/92324
3332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3333 singedness of SLP reduction epilouge operations. Also reduce
3334 the vector width for SLP reductions before doing elementwise
3335 operations if possible.
3337 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3339 * passes.c (skip_pass): Set epilogue_completed if skipping the
3340 pro_and_epilogue pass.
3342 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3344 * passes.c (should_skip_pass_p): Always run "dfinish".
3346 2019-11-15 Richard Biener <rguenther@suse.de>
3348 * ipa-inline.c (inline_small_functions): Move assignment
3349 to next before call destroying edge.
3351 2019-11-15 Richard Biener <rguenther@suse.de>
3353 PR tree-optimization/92039
3354 PR tree-optimization/91975
3355 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3356 previous change, treat invariants consistently as non-constant.
3357 (tree_estimate_loop_size): Ternary ops with just the first op
3358 constant are not optimized away.
3360 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3362 * gimplify.c (gimplify_call_expr): Don't call
3363 omp_resolve_declare_variant after gimplification.
3364 * omp-general.c (omp_context_selector_matches): For isa that might
3365 match in some other function, defer if in declare simd function.
3366 (omp_context_compute_score): Don't look for " score" in construct
3367 trait set. Set *score to -1 if it can't ever match.
3368 (omp_resolve_declare_variant): If any variants need to be deferred,
3369 don't punt immediately, but compute scores of all variants and if
3370 ther eis a score winner that doesn't need to be deferred, return that.
3372 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3374 * ipa-comdats.c: Fix comments typo.
3375 * ipa-profile.c: Fix comments typo.
3376 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3377 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3378 (gimple_gen_ic_func_profiler): Likewise.
3379 (pass_ipa_tree_profile::gate): Fix comments typo.
3381 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3383 * ipa-inline.c (inline_small_functions): Update iterator of next.
3385 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3387 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3388 register is suitable for the mode.
3390 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3392 * range-op.h (range_operator::fold_range): Return a bool.
3393 * range-op.cc (range_operator::wi_fold): Assert supported type.
3394 (range_operator::fold_range): Assert supported type and return true.
3395 (operator_equal::fold_range): Return true.
3396 (operator_not_equal::fold_range): Same.
3397 (operator_lt::fold_range): Same.
3398 (operator_le::fold_range): Same.
3399 (operator_gt::fold_range): Same.
3400 (operator_ge::fold_range): Same.
3401 (operator_plus::op1_range): Adjust call to fold_range.
3402 (operator_plus::op2_range): Same.
3403 (operator_minus::op1_range): Same.
3404 (operator_minus::op2_range): Same.
3405 (operator_exact_divide::op1_range): Same.
3406 (operator_lshift::fold_range): Return true and adjust fold_range call.
3407 (operator_rshift::fold_range): Same.
3408 (operator_cast::fold_range): Return true.
3409 (operator_logical_and::fold_range): Same.
3410 (operator_logical_or::fold_range): Same.
3411 (operator_logical_not::fold_range): Same.
3412 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3413 (operator_bitwise_not::op1_range): Same.
3414 (operator_cst::fold_range): Return true.
3415 (operator_identity::fold_range): Return true.
3416 (operator_negate::fold_range): Return true and adjust fold_range call.
3417 (operator_addr_expr::fold_range): Return true.
3418 (operator_addr_expr::op1_range): Adjust call to fold_range.
3420 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3421 (range_fold_unary_symbolics_p): Same.
3423 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3425 PR tree-optimization/92506
3426 * range-op.cc (range_operator::fold_range): Start with range undefined.
3427 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3428 overflow is varying.
3430 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3432 * range-op.cc (*operator*::*range): Remove calls to
3433 range_intersect, range_invert, and range_union in favor of calling
3434 the in-place API methods.
3435 (range_tests): Same.
3436 * range.cc (range_intersect): Remove.
3437 (range_union): Remove.
3438 (range_invert): Remove.
3439 * range.h (range_intersect): Remove.
3440 (range_union): Remove.
3441 (range_intersect): Remove.
3443 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3445 PR rtl-optimization/92430
3446 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3447 (pass_jump_after_combine::execute): Perform jump threading
3450 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3451 Doug Rupp <rupp@adacore.com>
3452 Olivier Hainque <hainque@adacore.com>
3454 * config.gcc: Collapse the arm-vxworks entries into
3455 a single arm-wrs-vxworks7* one, bpabi based. Update
3456 the default cpu from arm8 to armv7-a
3457 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3458 we always use ARM_UNWIND_INFO.
3459 (DWARF2_UNWIND_INFO): Remove redefinition.
3460 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3461 (VXWORKS_PERSONALITY): Define, to "llvm".
3462 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3464 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3466 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3467 _VX_CPU instead of CPU and handle arm_arch8.
3469 2019-11-14 Doug Rupp <rupp@adacore.com>
3470 Olivier Hainque <hainque@adacore.com>
3471 Jerome Lambourg <lambourg@adacore.com>
3473 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3474 * config/aarch64/aarch64-vxworks.h: New file.
3475 * config/aarch64/t-aarch64-vxworks: New file.
3477 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3478 Olivier Hainque <hainque@adacore.com>
3480 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3481 definition, pointless with a VxWorks specific version
3483 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3484 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3485 New local macros, controlling the addition of vxworks specific
3486 crtstuff objects depending on the EH mechanism and kind of
3487 module being linked.
3488 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3490 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3491 Jerome Lambourg <lambourg@adacore.com>
3492 Olivier Hainque <hainque@adacore.com>
3494 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3495 common macro definitions, conveying VXWORKS7 or 64bit general
3496 variations. Add a block to set gcc_cv_initfini_array
3497 unconditionally to "yes" for VxWorks7.
3498 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3499 by default. Update some comments.
3500 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3501 default, to be added the end of VXWORKS_LIBS_RTP.
3502 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3503 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3505 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3506 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3507 to account for the now available TLS abilities.
3508 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3509 (VXWORKS_HAVE_TLS): Likewise.
3511 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3513 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3514 (vect_slp_convert_to_external): Likewise.
3515 (vect_slp_analyze_node_operations): If analysis fails, try building
3516 the node from scalars instead.
3518 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3520 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3521 between vector types.
3522 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3523 non-widening and non-narrowing path to handle standard
3524 conversion codes, if the target supports them.
3525 * expr.c (convert_move): Try using the extend and truncate optabs
3527 * optabs-tree.c (supportable_convert_operation): Likewise.
3528 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3529 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3530 (trunc<mode><Vnarrowq>2): New patterns.
3532 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3534 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3535 require vectype and nunits_vectype to have the same size;
3536 instead assert that nunits_vectype has at least as many
3537 elements as vectype. Don't compute a separate nunits_vectype
3538 if the scalar type is obviously the same as vectype's.
3539 Tweak dump messages.
3541 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3543 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3545 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3546 (TARGET_VECTORIZE_RELATED_MODE): Define.
3548 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3550 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3551 (vec_info::used_vector_mode): New member variable.
3552 (vect_chooses_same_modes_p): Declare.
3553 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3554 chosen vector mode in vec_info::used_vector_mode.
3555 (vect_chooses_same_modes_p): New function.
3556 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3557 the same vector statements multiple times.
3558 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3560 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3562 * machmode.h (opt_machine_mode::operator==): New function.
3563 (opt_machine_mode::operator!=): Likewise.
3564 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3565 (get_related_vectype_for_scalar_type): Delete.
3566 (get_vectype_for_scalar_type_and_size): Declare.
3567 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3568 whether analysis passed or failed, and with what vector modes.
3569 Use related_vector_mode to check whether trying a particular
3570 vector mode would be redundant with the autodetected mode,
3571 and print a dump message if we decide to skip it.
3572 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3573 (vect_create_epilog_for_reduction): Use
3574 get_related_vectype_for_scalar_type instead of
3575 get_vectype_for_scalar_type_and_size.
3576 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3578 (get_related_vectype_for_scalar_type): ...this new function.
3579 Take a starting/"prevailing" vector mode rather than a vector size.
3580 Take an optional nunits argument, with the same meaning as for
3581 related_vector_mode. Use related_vector_mode when not
3582 auto-detecting a mode, falling back to mode_for_vector if no
3584 (get_vectype_for_scalar_type): Update accordingly.
3585 (get_same_sized_vectype): Likewise.
3586 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3588 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3590 * tree-vect-stmts.c (vectorizable_call): Require the types
3591 to have the same size.
3593 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3595 * tree-vect-stmts.c (vectorizable_call): If an operand is
3596 constant or external, use get_vectype_for_scalar_type
3597 rather than get_same_sized_vectype to get its vector type.
3598 (vectorizable_conversion, vectorizable_shift): Likewise.
3599 (vectorizable_operation): Likewise.
3601 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3603 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3604 (vec_info::vector_mode): ...this new field.
3605 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3606 (vect_analyze_loop, vect_transform_loop): Likewise.
3607 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3608 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3609 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3610 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3611 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3613 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3615 * target.h (vector_sizes, auto_vector_sizes): Delete.
3616 (vector_modes, auto_vector_modes): New typedefs.
3617 * target.def (autovectorize_vector_sizes): Replace with...
3618 (autovectorize_vector_modes): ...this new hook.
3619 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3621 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3622 * doc/tm.texi: Regenerate.
3623 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3624 (default_autovectorize_vector_modes): New function.
3625 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3626 (default_autovectorize_vector_modes): New function.
3627 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3628 of autovectorize_vector_sizes. Use the number of units in the mode
3629 to calculate the maximum VF.
3630 * omp-low.c (omp_clause_aligned_alignment): Use
3631 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3632 Use a loop based on related_mode to iterate through all supported
3633 vector modes for a given scalar mode.
3634 * optabs-query.c (can_vec_mask_load_store_p): Use
3635 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3636 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3637 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3638 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3640 (aarch64_autovectorize_vector_modes): ...this new function.
3641 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3642 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3643 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3644 (arc_autovectorize_vector_modes): ...this new function.
3645 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3646 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3647 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3648 (arm_autovectorize_vector_modes): ...this new function.
3649 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3650 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3651 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3652 (ix86_autovectorize_vector_modes): ...this new function.
3653 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3654 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3655 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3656 (mips_autovectorize_vector_modes): ...this new function.
3657 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3658 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3660 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3662 * tree-vect-stmts.c (vectorizable_shift): Check the number
3663 of vector elements as well as the type mode when deciding
3664 whether an op1_vectype is compatible. Reuse the result of
3665 this check when generating vector statements.
3667 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3669 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3670 targetm.vectorize.preferred_simd_mode returns an integer mode,
3671 use mode_for_vector to decide what the vector type's mode
3672 should actually be. Use build_vector_type_for_mode instead
3673 of build_vector_type.
3675 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3677 * target.def (get_mask_mode): Take a vector mode itself as argument,
3678 instead of properties about the vector mode.
3679 * doc/tm.texi: Regenerate.
3680 * targhooks.h (default_get_mask_mode): Update to reflect new
3681 get_mode_mask interface.
3682 * targhooks.c (default_get_mask_mode): Likewise. Use
3683 related_int_vector_mode.
3684 * optabs-query.c (can_vec_mask_load_store_p): Update call
3686 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3687 first that the original mode really is a vector.
3688 * tree.c (build_truth_vector_type_for): Likewise.
3689 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3690 get_mode_mask interface.
3691 (aarch64_expand_sve_vcond): Update call accordingly.
3692 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3693 get_mode_mask interface.
3694 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3696 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3698 * tree.h (build_truth_vector_type): Delete.
3699 (build_same_sized_truth_vector_type): Likewise.
3700 * tree.c (build_truth_vector_type): Rename to...
3701 (build_truth_vector_type_for): ...this. Make static and take
3702 a vector type as argument.
3703 (truth_type_for): Update accordingly.
3704 (build_same_sized_truth_vector_type): Delete.
3705 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3706 instead of build_same_sized_truth_vector_type.
3707 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3708 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3709 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3710 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3711 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3712 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3713 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3714 (vectorizable_store, vectorizable_condition): Likewise.
3715 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3716 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3717 build_truth_vector_type.
3718 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3719 Use truth_type_for instead of build_same_sized_truth_vector_type.
3720 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3722 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3724 * tree.h (build_truth_vector_type_for_mode): Declare.
3725 * tree.c (build_truth_vector_type_for_mode): New function,
3727 (build_truth_vector_type): ...here.
3728 (build_opaque_vector_type): Fix head comment.
3729 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3731 (vect_halve_mask_nunits): Replace vec_info parameter with the
3732 mode of the new vector.
3733 (vect_double_mask_nunits): Likewise.
3734 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3735 (vect_double_mask_nunits): Likewise.
3736 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3737 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3738 to vect_halve_mask_nunits, getting the required mode from the unpack
3740 (vect_set_loop_condition_masked): Update call accordingly.
3741 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3742 parameter and update call to vect_double_mask_nunits.
3743 (vectorizable_conversion): Update call accordingly.
3744 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3745 (vectorizable_call): Update call accordingly.
3746 (supportable_widening_operation): Update call to
3747 vect_halve_mask_nunits.
3748 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3749 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3751 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3753 * machmode.h (mode_for_int_vector): Delete.
3754 (related_int_vector_mode): Declare.
3755 * stor-layout.c (mode_for_int_vector): Delete.
3756 (related_int_vector_mode): New function.
3757 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3758 instead of mode_for_int_vector.
3759 (expand_vec_perm_const): Likewise.
3760 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3761 (aarch64_evpc_sve_tbl): Likewise.
3762 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3763 (s390_expand_vcond): Likewise.
3765 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3767 * target.def (related_mode): New hook.
3768 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3769 * doc/tm.texi: Regenerate.
3770 * targhooks.h (default_vectorize_related_mode): Declare.
3771 * targhooks.c (default_vectorize_related_mode): New function.
3772 * machmode.h (related_vector_mode): Declare.
3773 * stor-layout.c (related_vector_mode): New function.
3774 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3775 * optabs-query.c (qimode_for_vec_perm): Likewise.
3776 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3777 (vectorizable_store, vectorizable_load): Likewise
3779 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3781 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3782 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3783 * config/arm/arm-c.c (arm_cpu_builtins): Define
3784 __GCC_ASM_FLAG_OUTPUTS__.
3785 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3786 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3787 Define __GCC_ASM_FLAG_OUTPUTS__.
3788 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3789 * doc/extend.texi (FlagOutputOperands): Add documentation
3790 for ARM and AArch64.
3792 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3793 * config/arm/predicates.md (nz_comparison_operator): Rename
3794 from noov_comparison_operator.
3795 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3796 (arm_gen_dicompare_reg): Likewise.
3797 (maybe_get_arm_condition_code): Likewise.
3798 (thumb1_final_prescan_insn): Likewise.
3799 (arm_emit_coreregs_64bit_shift): Likewise.
3800 * config/arm/arm.md (addsi3_compare0): Likewise.
3801 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3802 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3803 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3804 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3805 (*mulsi3addsi_compare0_scratch): Likewise.
3806 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3807 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3808 (*zeroextractsi_compare0_scratch): Likewise.
3809 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3810 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3811 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3812 (andsi_not_shiftsi_si_scc): Likewise.
3813 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3814 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3815 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3816 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3817 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3818 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3819 (return_addr_mask, *check_arch2): Likewise.
3820 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3821 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3822 (compare_scc splitters): Likewise.
3823 (movcond_addsi): Likewise.
3824 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3825 (*thumb2_addsi3_compare0_scratch): Likewise.
3826 (*thumb2_mulsi_short_compare0): Likewise.
3827 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3828 (compare peephole2s): Likewise.
3829 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3830 nz_comparison_operator names.
3831 (cbranchsi4_insn): Likewise.
3833 * config/arm/constraints.md (c): Use cc_register predicate.
3835 * config/aarch64/constraints.md (c): New constraint.
3837 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3839 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3840 ipa_merge_fn_summary_after_inlining): Micro optimize.
3842 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3844 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3846 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3848 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3849 (ipa_value_range_from_jfunc): New function.
3850 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3851 known_value_ranges parameter; use it to evalulate conditions.
3852 (evaluate_properties_for_edge): Compute known value ranges.
3853 (ipa_fn_summary_t::duplicate): Update use of
3854 evaluate_conditions_for_known_args.
3855 (estimate_ipcp_clone_size_and_time): Likewise.
3856 (ipa_merge_fn_summary_after_inlining): Likewise.
3857 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3859 2019-11-14 Martin Liska <mliska@suse.cz>
3861 * ipa-inline.c (want_inline_small_function_p): Use
3862 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3863 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3865 2019-11-14 Martin Liska <mliska@suse.cz>
3867 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3868 of a callee to get value of the param.
3869 * ipa-inline.c (inline_insns_auto): Use proper
3871 * opts.c (maybe_default_option): Do not overwrite param
3872 value if optimization level does not match. Note that
3873 params usually have default value set via Init() keyword.
3874 * params.opt: Remove -param=max-inline-insns-auto-O2.
3875 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3876 * doc/invoke.texi: Remove documentation of
3877 max-inline-insns-auto-O2.
3879 2019-11-14 Martin Liska <mliska@suse.cz>
3881 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3882 Do not initialize m_other_count.
3883 (switch_conversion::collect): Do not count m_default_count and
3884 m_other_count as we use frequencies for edges.
3885 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3887 2019-11-14 Martin Liska <mliska@suse.cz>
3890 * doc/invoke.texi: Document -fallocation-dce.
3892 2019-11-14 Martin Liska <mliska@suse.cz>
3895 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3896 PTA_ICELAKE_CLIENT which is later interited by
3897 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3899 2019-11-14 Martin Liska <mliska@suse.cz>
3901 * ipa-icf.c (sem_item_optimizer::execute): Save
3903 (sem_item_optimizer::parse_nonsingleton_classes):
3904 Return number of loaded symbols.
3905 (sem_item_optimizer::merge_classes): Print
3906 statistics about totally needed symbols.
3907 * ipa-icf.h (parse_nonsingleton_classes): Change return
3909 (merge_classes): Add one argument.
3911 2019-11-14 Martin Liska <mliska@suse.cz>
3913 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3914 func_checker::hash_operand by handling of FIELD_DECLs.
3916 2019-11-14 Martin Liska <mliska@suse.cz>
3918 * ipa-icf-gimple.h (func_checker::func_checker): Add
3919 default constructor.
3920 * ipa-icf.c (sem_function::init): Make operand_equal_p
3921 and hash_operand public.
3922 (sem_item::add_expr): Remove.
3923 (sem_item::add_type): Remove.
3924 (sem_function::hash_stmt): Use m_checker for hashing
3925 of GIMPLE statements.
3926 (sem_function::parse): Init with checker.
3927 (sem_variable::parse): Pass NULL as checker.
3928 (sem_item_optimizer::parse_funcs_and_vars):
3929 Pass checker to ::parse function.
3930 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3931 (sem_variable::parse): New function.
3932 (sem_variable::get_hash): Only return computed hash value.
3933 (sem_variable::init): Initialize hash of a variable.
3934 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3935 to couple of functions as a new argument.
3937 2019-11-14 Martin Liska <mliska@suse.cz>
3939 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3941 (func_checker::compare_gimple_assign): Likewise.
3943 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3945 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3946 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3947 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3949 * omp-general.c (omp_context_name_list_prop): New function.
3950 (omp_context_selector_matches): Use it. Return 0 if it returns
3952 (omp_context_selector_props_compare): Allow equivalency of an
3953 identifier and a string literal containing no embedded zeros.
3955 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3957 * range-op.cc (RANGE3): Remove.
3958 (range_tests): Remove all selftest that check for multi-ranges.
3959 Put tests in namespace selftest.
3960 * selftest.h: Move range_tests into namespace selftest.
3961 * value-range.h (class value_range): Unfriend range_tests.
3963 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3965 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3966 normalize_symbolics and normalize_addresses working in place.
3967 (range_fold_unary_symbolics_p): Same.
3968 (range_fold_unary_symbolics_p): Same.
3969 * value-range.cc (num_pairs): Same.
3970 (lower_bound): Same.
3971 (upper_bound): Same.
3973 (normalize_addresses): Same.
3974 (normalize_symbolics): Same.
3975 * value-range.h (normalize_symbolics): Same.
3976 (normalize_addresses): Same.
3978 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3981 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3982 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3983 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3984 (ipa_agg_jump_function): Remove member function equal_to.
3985 (ipa_agg_jump_function_p): Remove typedef.
3986 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3987 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3988 information for aggregate jump function.
3989 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3990 record last definition statement.
3991 (load_from_unmodified_param_or_agg): New function.
3992 (ipa_known_agg_contents_list): Add new field type and value, remove
3994 (build_agg_jump_func_from_list): Rename parameter const_count to
3995 value_count, build aggregate jump function from ipa_load_agg_data.
3996 (analyze_agg_content_value): New function.
3997 (extract_mem_content): Analyze memory store assignment to prepare
3998 information for aggregate jump function generation.
3999 (determine_known_aggregate_parts): Add new parameter fbi, remove
4000 parameter aa_walk_budeget_p.
4001 (update_jump_functions_after_inlining): Update aggregate jump function.
4002 (ipa_find_agg_cst_for_param): Change type of parameter agg.
4003 (try_make_edge_direct_simple_call): Add new parameter new_root.
4004 (try_make_edge_direct_virtual_call): Add new parameter new_root and
4006 (update_indirect_edges_after_inlining): Pass new argument to
4007 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4008 (ipa_write_jump_function): Write aggregate jump function to file.
4009 (ipa_read_jump_function): Read aggregate jump function from file.
4010 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4011 * ipa-cp.c (ipa_get_jf_arith_result): New function.
4012 (ipa_agg_value_from_node): Likewise.
4013 (ipa_agg_value_set_from_jfunc): Likewise.
4014 (propagate_vals_across_arith_jfunc): Likewise.
4015 (propagate_aggregate_lattice): Likewise.
4016 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4017 (propagate_vals_across_pass_through): Call
4018 propagate_vals_across_arith_jfunc.
4019 (get_clone_agg_value): Move forward.
4020 (propagate_aggs_across_jump_function): Handle value propagation for
4021 aggregate jump function.
4022 (agg_jmp_p_vec_for_t_vec): Remove.
4023 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4024 with vec<ipa_agg_value>.
4025 (copy_plats_to_inter, intersect_with_plats): Likewise.
4026 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4027 (intersect_aggregate_with_edge): Likewise.
4028 (find_aggregate_values_for_callers_subset): Likewise.
4029 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4030 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4031 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4032 (gather_context_independent_values): Likewise.
4033 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4034 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4035 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4036 (evaluate_properties_for_edge): Likewise.
4037 (estimate_edge_devirt_benefit): Likewise.
4038 (estimate_edge_size_and_time): Likewise.
4039 (estimate_calls_size_and_time): Likewise.
4040 (ipa_call_context::ipa_call_context): Likewise.
4041 (estimate_ipcp_clone_size_and_time): Likewise.
4042 * ipa-fnsummary.h (ipa_call_context): Replace
4043 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4044 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4045 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4046 (do_estimate_edge_size): Likewise.
4047 (do_estimate_edge_hints): Likewise.
4049 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4051 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4054 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4056 * ipa-profile.c (check_argument_count): Check properly that e_info
4057 is non-NULL; do not check descriptors.
4059 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4061 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4062 check for ipa profiles.
4064 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4067 * ipa-prop.c (update_indirect_edges_after_inlining):
4068 Mark parameter as used.
4069 * ipa-inline.c (recursive_inlining): Reset node cache
4071 (inline_small_functions): Remove checking ifdef.
4072 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4075 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4078 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4080 (ipa_profile): Fix reversed test.
4082 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4084 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4085 (propagate_constants_topo): Fix typo.
4087 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4089 * Makefile.in (OBJS): Add value-range.o.
4090 (GTFILES): Add value-range.h.
4091 * gengtype.c (open_base_files): Add value-range.h to list of
4093 * tree-vrp.c: Move the following value_range related functions:
4094 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4095 constant_p, set_undefined, set_varying, may_contain_p,
4096 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4097 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4098 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4099 value_inside_range, ranges_from_anti_range, union_ranges,
4100 intersect_ranges, intersect_helper, union_helper, union_,
4101 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4102 upper_bound, contains_p, invert, intersect...
4103 * value-range.cc: ...to here.
4104 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4105 associated inline methods from here...
4106 * value-range.h: ...to here.
4108 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4110 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4111 instead of asserting its value.
4113 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4115 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4116 constructors and set methods so value_range_kind is the last
4117 argument and defaults to VR_RANGE.
4118 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4119 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4120 * ipa-prop.c (ipa_get_value_range): Same.
4121 (ipa_compute_jump_functions_for_edge): Same.
4122 * range-op.cc (value_range_from_overflowed_bounds): Same.
4123 (operator_cast::op1_range): Same.
4124 (range_tests): Same.
4125 * range.cc (range_nonzero): Same.
4126 * tree-ssanames.c (get_range_info): Same.
4127 * tree-vrp.c (value_range_equiv::set): Same.
4128 (value_range::value_range): Same.
4129 (value_range_equiv::value_range_equiv): Same.
4130 (value_range_equiv::update): Same.
4131 (value_range_equiv::deep_copy): Same.
4132 (value_range_equiv::move): Same.
4133 (value_range_equiv::set_undefined): Same.
4134 (value_range::set): Same.
4135 (value_range::set_nonzero): Same.
4136 (ranges_from_anti_range): Same.
4137 (extract_range_from_plus_minus_expr): Same.
4138 (value_range::intersect_helper): Same.
4139 (value_range_equiv::intersect): Same.
4140 (value_range::union_helper): Same.
4141 (value_range_equiv::union_): Same.
4142 (value_range::normalize_symbolics): Same.
4143 (value_range::invert): Same.
4144 (determine_value_range_1): Same.
4145 * tree-vrp.h (class value_range): Same.
4146 (class value_range_equiv): Same.
4147 * vr-values.c (set_value_range_to_nonnegative): Same.
4148 (set_value_range_to_truthvalue): Same.
4149 (vr_values::update_value_range): Same.
4150 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4151 (vr_values::extract_range_from_binary_expr): Same.
4152 (vr_values::extract_range_from_comparison): Same.
4153 (vr_values::extract_range_basic): Same.
4154 (vr_values::adjust_range_with_scev): Same.
4155 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4156 (vr_values::extract_range_from_phi_node): Same.
4158 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4160 * tree-dump.c (dequeue_and_dump): Print first tree operand
4161 for VIEW_CONVERT_EXPR.
4163 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4165 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4166 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4167 * real.c (get_max_float): Add norm_max argument.
4168 * real.h (get_max_float): Update prototype.
4169 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4172 2019-11-13 Martin Liska <mliska@suse.cz>
4174 * dbgcnt.c (test_sorted_dbg_counters): New.
4175 (dbgcnt_c_tests): Likewise.
4176 * selftest-run-tests.c (selftest::run_tests): Likewise.
4177 * selftest.h (dbgcnt_c_tests): Likewise.
4179 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4180 Martin Jambor <mjambor@suse.cz>
4183 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4184 (identify_dead_nodes): Likewise.
4186 2019-11-13 Martin Liska <mliska@suse.cz>
4188 * ipa-icf.c (sem_function::equals_private): Do not overuse
4189 push/pop_cfun functions.
4191 2019-11-13 Martin Liska <mliska@suse.cz>
4193 * common.opt: Document change of -fdbg-cnt option.
4194 * dbgcnt.c (DEBUG_COUNTER): Remove.
4195 (dbg_cnt_is_enabled): Remove.
4196 (dbg_cnt): Work with new intervals.
4197 (dbg_cnt_set_limit_by_index): Set to new
4199 (dbg_cnt_set_limit_by_name): Likewise.
4200 (dbg_cnt_process_single_pair): Process new format.
4201 (dbg_cnt_process_opt): Likewise.
4202 (dbg_cnt_list_all_counters): Likewise.
4203 * doc/invoke.texi: Document change of -fdbg-cnt option.
4206 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4208 * ipa-inline.c (ipa_inline): Check that function is defined before
4211 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4212 Julian Brown <julian@codesourcery.com>
4214 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4215 flag_worker_partitioning is not set.
4216 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4217 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4219 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4221 * config/gcn/gcn-run.c (heap_region): New global variable.
4222 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4223 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4224 (get_kernarg_region): Move contents to ....
4225 (get_memory_region): .... here.
4226 (get_heap_region): New function.
4227 (init_device): Initialize the heap_region.
4228 (device_malloc): Add region parameter.
4229 (struct kernargs): Move heap ....
4230 (heap): ... to global scope.
4231 (main): Allocate heap separate to kernargs.
4233 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4235 * ipa-prop.c (ipa_print_node_jump_functions,
4236 ipa_print_node_params): Print info about missing summaries.
4238 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4240 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4241 the cost of generating loop masks.
4243 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4245 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4247 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4248 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4249 (vect_transform_loop): Likewise.
4250 (vect_analyze_loop_costing): Don't take the cost of versioning
4251 into account for the static profitability threshold if it turns
4252 out that no versioning is needed.
4254 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4256 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4257 and target_option_default_node to get -fprofile-generate ctors working
4260 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4262 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4263 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4264 (vectorizable_assignment): Don't add a cost for nop conversions.
4265 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4267 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4269 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4271 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4272 number of ncopies as an additional argument.
4273 (vectorizable_conversion): Update call accordingly. Use "modifier"
4274 to check whether a conversion is between vectors with the same
4277 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4279 * config/aarch64/aarch64-sve-builtins-functions.h
4280 (unary_count::expand): Use aarch64_sve_int_mode instead of
4281 mode_for_int_vector.
4283 2019-11-13 Martin Liska <mliska@suse.cz>
4285 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4287 2019-11-13 Martin Liska <mliska@suse.cz>
4289 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4290 Remove call to finalize_options_struct.
4292 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4295 * config/avr/t-avr (avr-mcus): Do not depend on
4296 $(srcdir)/config/avr/t-multilib.
4298 2019-11-13 Richard Biener <rguenther@suse.de>
4300 PR tree-optimization/92473
4301 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4302 direct optab reduction in the correct type.
4304 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4306 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4307 hexadecimal literal.
4309 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4311 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4312 UNORDERED if !HONOR_NANS (DFmode).
4313 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4314 if !HONOR_NANS (<MODE>mode).
4316 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4318 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4319 (ipcp_verify_propagated_values): Likewise.
4320 (propagate_constants_across_call): Likewise.
4321 (propagate_constants_topo): Likewise.
4322 (ipcp_propagate_stage): Likewise.
4324 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4327 * ipa-profile.c (check_argument_count): Break out from ...;
4328 watch for missing summaries.
4329 (ipa_profile): Here.
4331 2019-11-12 Martin Sebor <msebor@redhat.com>
4333 PR tree-optimization/92412
4334 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4337 2019-11-12 Martin Sebor <msebor@redhat.com>
4340 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4341 (directive::argno): New member.
4342 (format_result::aliases, format_result::alias_count): New data members.
4343 (format_result::append_alias): New member function.
4344 (fmtresult::dst_offset): New data member.
4345 (pass_sprintf_length::call_info::dst_origin): New data member.
4346 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4347 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4348 (get_origin_and_offset): Same.
4349 (format_string): Call it.
4350 (format_directive): Call append_alias and set directive argument
4352 (maybe_warn_overlap): New function.
4353 (pass_sprintf_length::compute_format_length): Call it.
4354 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4355 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4357 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4359 PR rtl-optimization/92430
4360 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4361 dominance info at the beginning.
4363 2019-11-12 Richard Biener <rguenther@suse.de>
4365 PR tree-optimization/92460
4366 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4367 expression before gimplifying.
4369 2019-11-12 Richard Biener <rguenther@suse.de>
4371 PR tree-optimization/92461
4372 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4373 stmt after propagation.
4375 2019-11-12 Martin Liska <mliska@suse.cz>
4377 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4378 Use SET_OPTION_IF_UNSET.
4379 (ix86_option_override_internal): Likewise.
4380 * opts.c (default_options_optimization): Likewise.
4381 (finish_options): Likewise.
4382 (enable_fdo_optimizations): Likewise.
4383 (common_handle_option): Likewise.
4385 2019-11-12 Martin Liska <mliska@suse.cz>
4387 * common/common-target.def: Remove option_validate_param and
4388 option_default_params.
4389 * common/common-targhooks.c (default_option_validate_param):
4391 * common/common-targhooks.h (default_option_validate_param):
4393 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4394 Remove usage of this.
4395 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4396 (aarch64_option_validate_param): Likewise.
4397 (aarch64_option_default_params): Likewise
4398 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4399 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4400 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4401 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4402 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4403 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4404 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4405 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4406 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4407 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4408 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4410 * doc/tm.texi: Remove option_default_params and option_validate_param.
4411 * doc/tm.texi.in: Likewise.
4413 2019-11-12 Martin Liska <mliska@suse.cz>
4415 * common/common-target.def:
4416 Do not mention set_default_param_value
4417 and set_param_value.
4418 * doc/tm.texi: Likewise.
4420 2019-11-12 Martin Liska <mliska@suse.cz>
4422 * common.opt: Remove param_values.
4423 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4424 Remove finalize_options_struct.
4425 * gcc.c (driver::decode_argv): Do not call global_init_params
4427 (driver::finalize): Do not call params_c_finalize
4428 and finalize_options_struct.
4429 * opt-suggestions.c (option_proposer::get_completions): Remove
4430 special casing of params.
4431 (option_proposer::find_param_completions): Remove.
4432 (test_completion_partial_match): Update expected output.
4433 * opt-suggestions.h: Remove find_param_completions.
4434 * opts-common.c (add_misspelling_candidates): Add
4435 --param with a space.
4436 * opts.c (handle_param): Remove.
4437 (init_options_struct):. Remove init_options_struct and
4439 (finalize_options_struct): Remove.
4440 (common_handle_option): Use SET_OPTION_IF_UNSET.
4441 * opts.h (finalize_options_struct): Remove.
4442 * toplev.c (general_init): Do not call global_init_params.
4443 (toplev::finalize): Do not call params_c_finalize and
4444 finalize_options_struct.
4446 2019-11-12 Martin Liska <mliska@suse.cz>
4448 * Makefile.in: Remove PARAMS_H and params.list
4450 * params-enum.h: Remove.
4451 * params-list.h: Remove.
4452 * params-options.h: Remove.
4454 * params.def: Remove.
4456 * asan.c: Do not include params.h.
4457 * auto-profile.c: Likewise.
4458 * bb-reorder.c: Likewise.
4459 * builtins.c: Likewise.
4460 * cfgcleanup.c: Likewise.
4461 * cfgexpand.c: Likewise.
4462 * cfgloopanal.c: Likewise.
4463 * cgraph.c: Likewise.
4464 * combine.c: Likewise.
4465 * common/config/aarch64/aarch64-common.c: Likewise.
4466 * common/config/gcn/gcn-common.c: Likewise.
4467 * common/config/ia64/ia64-common.c: Likewise.
4468 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4469 * common/config/rs6000/rs6000-common.c: Likewise.
4470 * common/config/sh/sh-common.c: Likewise.
4471 * config/aarch64/aarch64.c: Likewise.
4472 * config/alpha/alpha.c: Likewise.
4473 * config/arm/arm.c: Likewise.
4474 * config/avr/avr.c: Likewise.
4475 * config/csky/csky.c: Likewise.
4476 * config/i386/i386-builtins.c: Likewise.
4477 * config/i386/i386-expand.c: Likewise.
4478 * config/i386/i386-features.c: Likewise.
4479 * config/i386/i386-options.c: Likewise.
4480 * config/i386/i386.c: Likewise.
4481 * config/ia64/ia64.c: Likewise.
4482 * config/rs6000/rs6000-logue.c: Likewise.
4483 * config/rs6000/rs6000.c: Likewise.
4484 * config/s390/s390.c: Likewise.
4485 * config/sparc/sparc.c: Likewise.
4486 * config/visium/visium.c: Likewise.
4487 * coverage.c: Likewise.
4488 * cprop.c: Likewise.
4490 * cselib.c: Likewise.
4492 * emit-rtl.c: Likewise.
4493 * explow.c: Likewise.
4494 * final.c: Likewise.
4495 * fold-const.c: Likewise.
4498 * ggc-common.c: Likewise.
4499 * ggc-page.c: Likewise.
4500 * gimple-loop-interchange.cc: Likewise.
4501 * gimple-loop-jam.c: Likewise.
4502 * gimple-loop-versioning.cc: Likewise.
4503 * gimple-ssa-split-paths.c: Likewise.
4504 * gimple-ssa-sprintf.c: Likewise.
4505 * gimple-ssa-store-merging.c: Likewise.
4506 * gimple-ssa-strength-reduction.c: Likewise.
4507 * gimple-ssa-warn-alloca.c: Likewise.
4508 * gimple-ssa-warn-restrict.c: Likewise.
4509 * graphite-isl-ast-to-gimple.c: Likewise.
4510 * graphite-optimize-isl.c: Likewise.
4511 * graphite-scop-detection.c: Likewise.
4512 * graphite-sese-to-poly.c: Likewise.
4513 * graphite.c: Likewise.
4514 * haifa-sched.c: Likewise.
4515 * hsa-gen.c: Likewise.
4516 * ifcvt.c: Likewise.
4517 * ipa-cp.c: Likewise.
4518 * ipa-fnsummary.c: Likewise.
4519 * ipa-inline-analysis.c: Likewise.
4520 * ipa-inline.c: Likewise.
4521 * ipa-polymorphic-call.c: Likewise.
4522 * ipa-profile.c: Likewise.
4523 * ipa-prop.c: Likewise.
4524 * ipa-split.c: Likewise.
4525 * ipa-sra.c: Likewise.
4526 * ira-build.c: Likewise.
4527 * ira-conflicts.c: Likewise.
4528 * loop-doloop.c: Likewise.
4529 * loop-invariant.c: Likewise.
4530 * loop-unroll.c: Likewise.
4531 * lra-assigns.c: Likewise.
4532 * lra-constraints.c: Likewise.
4533 * modulo-sched.c: Likewise.
4534 * opt-suggestions.c: Likewise.
4536 * postreload-gcse.c: Likewise.
4537 * predict.c: Likewise.
4538 * reload.c: Likewise.
4539 * reorg.c: Likewise.
4540 * resource.c: Likewise.
4541 * sanopt.c: Likewise.
4542 * sched-deps.c: Likewise.
4543 * sched-ebb.c: Likewise.
4544 * sched-rgn.c: Likewise.
4545 * sel-sched-ir.c: Likewise.
4546 * sel-sched.c: Likewise.
4547 * shrink-wrap.c: Likewise.
4549 * targhooks.c: Likewise.
4550 * toplev.c: Likewise.
4551 * tracer.c: Likewise.
4552 * trans-mem.c: Likewise.
4553 * tree-chrec.c: Likewise.
4554 * tree-data-ref.c: Likewise.
4555 * tree-if-conv.c: Likewise.
4556 * tree-inline.c: Likewise.
4557 * tree-loop-distribution.c: Likewise.
4558 * tree-parloops.c: Likewise.
4559 * tree-predcom.c: Likewise.
4560 * tree-profile.c: Likewise.
4561 * tree-scalar-evolution.c: Likewise.
4562 * tree-sra.c: Likewise.
4563 * tree-ssa-ccp.c: Likewise.
4564 * tree-ssa-dom.c: Likewise.
4565 * tree-ssa-dse.c: Likewise.
4566 * tree-ssa-ifcombine.c: Likewise.
4567 * tree-ssa-loop-ch.c: Likewise.
4568 * tree-ssa-loop-im.c: Likewise.
4569 * tree-ssa-loop-ivcanon.c: Likewise.
4570 * tree-ssa-loop-ivopts.c: Likewise.
4571 * tree-ssa-loop-manip.c: Likewise.
4572 * tree-ssa-loop-niter.c: Likewise.
4573 * tree-ssa-loop-prefetch.c: Likewise.
4574 * tree-ssa-loop-unswitch.c: Likewise.
4575 * tree-ssa-math-opts.c: Likewise.
4576 * tree-ssa-phiopt.c: Likewise.
4577 * tree-ssa-pre.c: Likewise.
4578 * tree-ssa-reassoc.c: Likewise.
4579 * tree-ssa-sccvn.c: Likewise.
4580 * tree-ssa-scopedtables.c: Likewise.
4581 * tree-ssa-sink.c: Likewise.
4582 * tree-ssa-strlen.c: Likewise.
4583 * tree-ssa-structalias.c: Likewise.
4584 * tree-ssa-tail-merge.c: Likewise.
4585 * tree-ssa-threadbackward.c: Likewise.
4586 * tree-ssa-threadedge.c: Likewise.
4587 * tree-ssa-uninit.c: Likewise.
4588 * tree-switch-conversion.c: Likewise.
4589 * tree-vect-data-refs.c: Likewise.
4590 * tree-vect-loop.c: Likewise.
4591 * tree-vect-slp.c: Likewise.
4592 * tree-vrp.c: Likewise.
4594 * value-prof.c: Likewise.
4595 * var-tracking.c: Likewise.
4597 2019-11-12 Martin Liska <mliska@suse.cz>
4599 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4600 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4602 (asan_sanitize_allocas_p): Likewise.
4603 (asan_emit_stack_protection): Likewise.
4604 (asan_protect_global): Likewise.
4605 (instrument_derefs): Likewise.
4606 (instrument_builtin_call): Likewise.
4607 (asan_expand_mark_ifn): Likewise.
4608 * auto-profile.c (auto_profile): Likewise.
4609 * bb-reorder.c (copy_bb_p): Likewise.
4610 (duplicate_computed_gotos): Likewise.
4611 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4612 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4613 (try_crossjump_bb): Likewise.
4614 * cfgexpand.c (defer_stack_allocation): Likewise.
4615 (stack_protect_classify_type): Likewise.
4616 (pass_expand::execute): Likewise.
4617 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4618 (estimate_reg_pressure_cost): Likewise.
4619 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4620 * combine.c (combine_instructions): Likewise.
4621 (record_value_for_reg): Likewise.
4622 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4623 (aarch64_option_default_params): Likewise.
4624 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4625 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4626 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4627 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4628 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4629 (aarch64_allocate_and_probe_stack_space): Likewise.
4630 (aarch64_expand_epilogue): Likewise.
4631 (aarch64_override_options_internal): Likewise.
4632 * config/alpha/alpha.c (alpha_option_override): Likewise.
4633 * config/arm/arm.c (arm_option_override): Likewise.
4634 (arm_valid_target_attribute_p): Likewise.
4635 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4636 * config/i386/i386.c (get_probe_interval): Likewise.
4637 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4638 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4639 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4640 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4641 (get_stack_clash_protection_guard_size): Likewise.
4642 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4643 * config/s390/s390.c (allocate_stack_space): Likewise.
4644 (s390_emit_prologue): Likewise.
4645 (s390_option_override_internal): Likewise.
4646 * config/sparc/sparc.c (sparc_option_override): Likewise.
4647 * config/visium/visium.c (visium_option_override): Likewise.
4648 * coverage.c (get_coverage_counts): Likewise.
4649 (coverage_compute_profile_id): Likewise.
4650 (coverage_begin_function): Likewise.
4651 (coverage_end_function): Likewise.
4652 * cse.c (cse_find_path): Likewise.
4653 (cse_extended_basic_block): Likewise.
4654 (cse_main): Likewise.
4655 * cselib.c (cselib_invalidate_mem): Likewise.
4656 * dse.c (dse_step1): Likewise.
4657 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4658 (get_max_insn_count): Likewise.
4659 (make_debug_insn_raw): Likewise.
4660 (init_emit): Likewise.
4661 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4662 * final.c (compute_alignments): Likewise.
4663 * fold-const.c (fold_range_test): Likewise.
4664 (fold_truth_andor): Likewise.
4665 (tree_single_nonnegative_warnv_p): Likewise.
4666 (integer_valued_real_single_p): Likewise.
4667 * gcse.c (want_to_gcse_p): Likewise.
4668 (prune_insertions_deletions): Likewise.
4669 (hoist_code): Likewise.
4670 (gcse_or_cprop_is_too_expensive): Likewise.
4671 * ggc-common.c: Likewise.
4672 * ggc-page.c (ggc_collect): Likewise.
4673 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4674 (MAX_DATAREFS): Likewise.
4675 (OUTER_STRIDE_RATIO): Likewise.
4676 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4677 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4678 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4679 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4680 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4681 (imm_store_chain_info::output_merged_store): Likewise.
4682 (pass_store_merging::process_store): Likewise.
4683 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4684 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4685 (scop_to_isl_ast): Likewise.
4686 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4687 (optimize_isl): Likewise.
4688 * graphite-scop-detection.c (build_scops): Likewise.
4689 * haifa-sched.c (set_modulo_params): Likewise.
4690 (rank_for_schedule): Likewise.
4691 (model_add_to_worklist): Likewise.
4692 (model_promote_insn): Likewise.
4693 (model_choose_insn): Likewise.
4694 (queue_to_ready): Likewise.
4695 (autopref_multipass_dfa_lookahead_guard): Likewise.
4696 (schedule_block): Likewise.
4697 (sched_init): Likewise.
4698 * hsa-gen.c (init_prologue): Likewise.
4699 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4700 (cond_move_process_if_block): Likewise.
4701 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4702 (merge_agg_lats_step): Likewise.
4703 (devirtualization_time_bonus): Likewise.
4704 (hint_time_bonus): Likewise.
4705 (incorporate_penalties): Likewise.
4706 (good_cloning_opportunity_p): Likewise.
4707 (ipcp_propagate_stage): Likewise.
4708 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4709 (set_switch_stmt_execution_predicate): Likewise.
4710 (analyze_function_body): Likewise.
4711 (compute_fn_summary): Likewise.
4712 * ipa-inline-analysis.c (estimate_growth): Likewise.
4713 * ipa-inline.c (caller_growth_limits): Likewise.
4714 (inline_insns_single): Likewise.
4715 (inline_insns_auto): Likewise.
4716 (can_inline_edge_by_limits_p): Likewise.
4717 (want_early_inline_function_p): Likewise.
4718 (big_speedup_p): Likewise.
4719 (want_inline_small_function_p): Likewise.
4720 (want_inline_self_recursive_call_p): Likewise.
4721 (edge_badness): Likewise.
4722 (recursive_inlining): Likewise.
4723 (compute_max_insns): Likewise.
4724 (early_inliner): Likewise.
4725 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4726 * ipa-profile.c (ipa_profile): Likewise.
4727 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4728 (ipa_analyze_node): Likewise.
4729 (ipcp_transform_function): Likewise.
4730 * ipa-split.c (consider_split): Likewise.
4731 * ipa-sra.c (allocate_access): Likewise.
4732 (process_scan_results): Likewise.
4733 (ipa_sra_summarize_function): Likewise.
4734 (pull_accesses_from_callee): Likewise.
4735 * ira-build.c (loop_compare_func): Likewise.
4736 (mark_loops_for_removal): Likewise.
4737 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4738 * loop-doloop.c (doloop_optimize): Likewise.
4739 * loop-invariant.c (gain_for_invariant): Likewise.
4740 (move_loop_invariants): Likewise.
4741 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4742 (decide_unroll_runtime_iterations): Likewise.
4743 (decide_unroll_stupid): Likewise.
4744 (expand_var_during_unrolling): Likewise.
4745 * lra-assigns.c (spill_for): Likewise.
4746 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4747 * modulo-sched.c (sms_schedule): Likewise.
4748 (DFA_HISTORY): Likewise.
4749 * opts.c (default_options_optimization): Likewise.
4750 (finish_options): Likewise.
4751 (common_handle_option): Likewise.
4752 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4754 * predict.c (get_hot_bb_threshold): Likewise.
4755 (maybe_hot_count_p): Likewise.
4756 (probably_never_executed): Likewise.
4757 (predictable_edge_p): Likewise.
4758 (predict_loops): Likewise.
4759 (expr_expected_value_1): Likewise.
4760 (tree_predict_by_opcode): Likewise.
4761 (handle_missing_profiles): Likewise.
4762 * reload.c (find_equiv_reg): Likewise.
4763 * reorg.c (redundant_insn): Likewise.
4764 * resource.c (mark_target_live_regs): Likewise.
4765 (incr_ticks_for_insn): Likewise.
4766 * sanopt.c (pass_sanopt::execute): Likewise.
4767 * sched-deps.c (sched_analyze_1): Likewise.
4768 (sched_analyze_2): Likewise.
4769 (sched_analyze_insn): Likewise.
4770 (deps_analyze_insn): Likewise.
4771 * sched-ebb.c (schedule_ebbs): Likewise.
4772 * sched-rgn.c (find_single_block_region): Likewise.
4773 (too_large): Likewise.
4774 (haifa_find_rgns): Likewise.
4775 (extend_rgns): Likewise.
4776 (new_ready): Likewise.
4777 (schedule_region): Likewise.
4778 (sched_rgn_init): Likewise.
4779 * sel-sched-ir.c (make_region_from_loop): Likewise.
4780 * sel-sched-ir.h (MAX_WS): Likewise.
4781 * sel-sched.c (process_pipelined_exprs): Likewise.
4782 (sel_setup_region_sched_flags): Likewise.
4783 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4784 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4785 * toplev.c (print_version): Likewise.
4786 (process_options): Likewise.
4787 * tracer.c (tail_duplicate): Likewise.
4788 * trans-mem.c (tm_log_add): Likewise.
4789 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4790 * tree-data-ref.c (split_constant_offset): Likewise.
4791 (compute_all_dependences): Likewise.
4792 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4793 * tree-inline.c (remap_gimple_stmt): Likewise.
4794 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4795 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4796 (create_parallel_loop): Likewise.
4797 * tree-predcom.c (determine_unroll_factor): Likewise.
4798 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4799 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4800 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4801 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4802 (dse_optimize_redundant_stores): Likewise.
4803 (dse_classify_store): Likewise.
4804 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4805 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4806 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4807 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4808 (try_peel_loop): Likewise.
4809 (tree_unroll_loops_completely): Likewise.
4810 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4811 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4812 (MAX_CONSIDERED_GROUPS): Likewise.
4813 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4814 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4815 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4816 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4817 (L1_CACHE_SIZE_BYTES): Likewise.
4818 (L2_CACHE_SIZE_BYTES): Likewise.
4819 (should_issue_prefetch_p): Likewise.
4820 (schedule_prefetches): Likewise.
4821 (determine_unroll_factor): Likewise.
4822 (volume_of_references): Likewise.
4823 (add_subscript_strides): Likewise.
4824 (self_reuse_distance): Likewise.
4825 (mem_ref_count_reasonable_p): Likewise.
4826 (insn_to_prefetch_ratio_too_small_p): Likewise.
4827 (loop_prefetch_arrays): Likewise.
4828 (tree_ssa_prefetch_arrays): Likewise.
4829 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4830 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4831 (convert_mult_to_fma): Likewise.
4832 (math_opts_dom_walker::after_dom_children): Likewise.
4833 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4834 (hoist_adjacent_loads): Likewise.
4835 (gate_hoist_loads): Likewise.
4836 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4837 (compute_partial_antic_aux): Likewise.
4838 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4839 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4840 (vn_reference_lookup): Likewise.
4841 (do_rpo_vn): Likewise.
4842 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4843 * tree-ssa-sink.c (select_best_block): Likewise.
4844 * tree-ssa-strlen.c (new_stridx): Likewise.
4845 (new_addr_stridx): Likewise.
4846 (get_range_strlen_dynamic): Likewise.
4847 (class ssa_name_limit_t): Likewise.
4848 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4849 (create_variable_info_for_1): Likewise.
4850 (init_alias_vars): Likewise.
4851 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4852 (tail_merge_optimize): Likewise.
4853 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4854 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4855 (thread_jumps::find_jump_threads_backwards): Likewise.
4856 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4857 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4858 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4859 (jump_table_cluster::can_be_handled): Likewise.
4860 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4861 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4862 (param_switch_conversion_branch_ratio): Likewise.
4863 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4864 (vect_enhance_data_refs_alignment): Likewise.
4865 (vect_prune_runtime_alias_test_list): Likewise.
4866 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4867 (vect_get_datarefs_in_loop): Likewise.
4868 (vect_analyze_loop): Likewise.
4869 * tree-vect-slp.c (vect_slp_bb): Likewise.
4870 * tree-vectorizer.h: Likewise.
4871 * tree-vrp.c (find_switch_asserts): Likewise.
4872 (vrp_prop::check_mem_ref): Likewise.
4873 * tree.c (wide_int_to_tree_1): Likewise.
4874 (cache_integer_cst): Likewise.
4875 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4876 (reverse_op): Likewise.
4877 (vt_find_locations): Likewise.
4879 2019-11-12 Martin Liska <mliska@suse.cz>
4881 * Makefile.in: Include params.opt.
4882 * flag-types.h (enum parloops_schedule_type): Add
4883 parloops_schedule_type used in params.opt.
4884 * params.opt: New file.
4886 2019-11-12 Martin Liska <mliska@suse.cz>
4888 * common.opt: Remove --param and --param= options.
4889 * opt-functions.awk: Mark CL_PARAMS for options
4890 that have Param keyword.
4891 * opts-common.c (decode_cmdline_options_to_array):
4892 Replace --param key=value with --param=key=value.
4893 * opts.c (print_filtered_help): Remove special
4895 (print_specific_help): Update title for params.
4896 (common_handle_option): Do not handle OPT__param.
4897 opts.h (SET_OPTION_IF_UNSET): New macro.
4898 * doc/options.texi: Document Param keyword.
4900 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4901 Frederik Harwath <frederik@codesourcery.com>
4902 Thomas Schwinge <thomas@codesourcery.com>
4904 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4905 enumeration constant.
4906 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4907 (is_gimple_omp_offloaded): Likewise.
4908 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4909 constant. Adjust the value of ORT_NONE accordingly.
4910 (is_gimple_stmt): Handle OACC_SERIAL.
4911 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4912 (gomp_needs_data_present): Likewise.
4913 (gimplify_adjust_omp_clauses): Likewise.
4914 (gimplify_omp_workshare): Handle OACC_SERIAL.
4915 (gimplify_expr): Likewise.
4916 * omp-expand.c (expand_omp_target):
4917 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4918 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4919 * omp-low.c (is_oacc_parallel): Rename function to...
4920 (is_oacc_parallel_or_serial): ... this.
4921 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4922 (scan_sharing_clauses): Adjust accordingly.
4923 (scan_omp_for): Likewise.
4924 (lower_oacc_head_mark): Likewise.
4925 (convert_from_firstprivate_int): Likewise.
4926 (lower_omp_target): Likewise.
4927 (check_omp_nesting_restrictions): Handle
4928 GF_OMP_TARGET_KIND_OACC_SERIAL.
4929 (lower_oacc_reductions): Likewise.
4930 (lower_omp_target): Likewise.
4931 * tree.def (OACC_SERIAL): New tree code.
4932 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4934 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4936 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4939 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4940 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4942 PR tree-optimization/92452
4943 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4944 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4947 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4949 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4952 2019-11-12 Alan Modra <amodra@gmail.com>
4954 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4955 element of unspec vec.
4956 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4958 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4959 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4960 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4961 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4963 2019-11-12 Alan Modra <amodra@gmail.com>
4965 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4966 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4967 (IS_NOMARK_TLSGETADDR): Likewise.
4968 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4969 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4970 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4971 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4972 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4973 (rs6000_indirect_call_template_1): Likewise.
4974 (rs6000_pltseq_template): Likewise.
4975 (rs6000_opt_vars): Remove "tls-markers" entry.
4976 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4978 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4979 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4980 (pltseq_plt_pcrel<mode>): Likewise.
4981 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4982 (call_value_local64): Likewise.
4983 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4984 output and length attribute sub-expression.
4985 (call_value_nonlocal_sysv<mode>),
4986 (call_value_nonlocal_sysv_secure<mode>),
4987 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4988 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4989 (call_value_indirect_pcrel<mode>): Likewise.
4990 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4991 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4992 * configure: Regenerate.
4993 * config.in: Regenerate.
4995 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4997 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4998 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4999 address being a prefixed load/store.
5000 (stack_protect_testdi): Deal with either address being a prefixed
5003 2019-11-11 Jakub Jelinek <jakub@redhat.com>
5006 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5007 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
5010 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
5012 PR tree-optimization/92420
5013 * tree-vect-stmts.c (get_negative_load_store_type): Move further
5015 (get_group_load_store_type): Use it for reversed SLP accesses.
5017 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
5019 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5021 (ipcp_transformation_t::duplicate): Break out from ...
5022 (ipa_node_params_t::duplicate): ... here; add copying of agg
5024 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5025 (ipcp_transformation_t): Add duplicate.
5027 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
5030 * doc/install.texi: Document that the minimum MPFR version is
5033 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5035 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5036 use new register constraint letters.
5038 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5040 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5041 as well, if interesting recover the symbol and re-legitimize the
5044 2019-11-11 Martin Liska <mliska@suse.cz>
5046 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5049 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5051 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5052 account when checking if there are enough iterations to vectorize
5055 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5056 Kwok Cheung Yeung <kcy@codesourcery.com>
5058 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5059 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5060 (LANG_HOOKS_DECLS): Rename also here.
5061 * langhooks.h (lang_hooks_for_decls): Rename
5062 omp_is_optional_argument to omp_check_optional_argument; take
5063 additional bool argument.
5064 * omp-general.h (omp_check_optional_argument): Likewise.
5065 * omp-general.h (omp_check_optional_argument): Likewise.
5066 * omp-low.c (lower_omp_target): Update calls; handle absent
5067 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5069 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5072 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5073 -fPIC and -shared the last to create offload image.
5075 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5077 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5080 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5081 (config.status): Use/depend on it.
5082 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5083 * configure: Regenerate.
5085 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5087 PR tree-optimization/88760
5088 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5089 * common/config/rs6000/rs6000-common.c
5090 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5091 Turn on -funroll-loops and -munroll-only-small-loops.
5092 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5093 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5094 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5095 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5096 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5097 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5099 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5101 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5102 Make scalar_load, vector_load, unaligned_load and
5103 vector_gather_load cost more to conform hardware latency and
5106 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5108 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5109 (MACHO_SYMBOL_LINKER_VIS_P): New.
5111 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5113 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5114 registers in eliminable_regset.
5116 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5118 * ipa-inline.c (compute_uninlined_call_time,
5119 compute_inlined_call_time): Take edge frequency as
5120 parameter rather than computing it by itself.
5121 (big_speedup_p, edge_badness): Manually CSE sreal
5122 frequency calculations.
5124 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5126 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5127 case where profiles are same.
5129 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5131 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5133 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5135 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5136 args summaries of inlined edge unless it holds info about
5137 described reference.
5139 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5141 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5142 (*movcc_internal1): Rename to...
5143 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5145 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5147 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5148 (cgraph_node::create_virtual_clone): Copy it.
5149 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5151 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5152 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5154 (propagate_constants_across_call): If callee is not analyzed, give up.
5155 (propagate_constants_topo): Lower to bottom latties of all callees of
5156 functions with ipa-cp disabled.
5157 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5158 (cgraph_edge_brings_value_p): Check for availability first.
5159 (create_specialized_node): Set ipcp_clone.
5160 (ipcp_store_bits_results): Check that info is present.
5161 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5163 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5164 conservative when callee summary is missing.
5165 (remap_edge_summaries): Lookup call summary only when needed.
5166 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5167 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5169 (ipa_analyze_node): Use get_create.
5170 (propagate_controlled_uses): Do not propagate when function is not
5172 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5173 (ipa_read_node_info): Use get_create.
5174 * ipa-prop.h (IPA_NODE_REF): Use get.
5175 (IPA_NODE_REF_GET_CREATE): New.
5177 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5179 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5182 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5184 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5185 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5186 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5187 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5189 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5191 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5192 capping the growth cumulated.
5193 (offline_size): Break out from ...
5194 (estimate_growth): ... here.
5195 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5197 (growth_likely_positive): Turn to ...
5198 (growth_positive_p): Re-implement.
5199 * ipa-inline.h (growth_likely_positive): Remove.
5200 (growth_positive_p): Declare.
5201 * ipa-inline.c (want_inline_small_function_p): Use
5203 (want_inline_function_to_all_callers_p): Likewise.
5205 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5207 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5208 calculation of min_size.
5209 (ipa_update_overall_fn_summary): Likewise.
5211 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5213 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5214 estimate_edge_devirt_benefit when not computing hints;
5215 do not compute time when not asked for.
5216 (estimate_calls_size_and_time): Pass NULL hints and time when
5217 these are not computed; do not evaluate hint predicates when these are
5219 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5222 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5224 PR tree-optimization/92401
5225 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5226 if res_op->code is an expression with code length 1.
5227 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5228 if res_op->code is an expression with code length 2.
5229 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5230 if res_op->code is an expression with code length 3.
5232 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5234 * config/darwin.c (machopic_mcount_stub_name): Validate the
5235 symbol stub name when it is created.
5236 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5239 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5241 * symtab.c: Fix comment typos.
5242 * cgraphunit.c: Likewise.
5243 * cgraph.h: Likewise.
5244 * cgraphclones.c: Likewise.
5245 * cgraph.c: Likewise.
5246 * varpool.c: Likewise.
5247 * tree-ssa-strlen.c: Likewise.
5248 * ipa-sra.c: Likewise.
5249 (scan_expr_access, check_all_callers_for_issues): Fix typo
5252 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5254 * config/darwin-protos.h: Add include quard.
5256 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5258 * range-op.h (range_operator::fold_range): Return result in a
5259 reference parameter instead of by value.
5260 (range_operator::wi_fold): Same.
5261 * range-op.cc (range_operator::wi_fold): Return result in a reference
5262 parameter instead of by value.
5263 (range_operator::fold_range): Same.
5264 (value_range_from_overflowed_bounds): Same.
5265 (value_range_with_overflow): Same
5266 (create_possibly_reversed_range): Same.
5267 (operator_equal::fold_range): Same.
5268 (operator_not_equal::fold_range): Same.
5269 (operator_lt::fold_range): Same.
5270 (operator_le::fold_range): Same.
5271 (operator_gt::fold_range): Same.
5272 (operator_ge::fold_range): Same.
5273 (operator_plus::wi_fold): Same.
5274 (operator_plus::op1_range): Change call to fold_range.
5275 (operator_plus::op2_range): Change call to fold_range.
5276 (operator_minus::wi_fold): Return result via reference parameter.
5277 (operator_minus::op1_range): Change call to fold_range.
5278 (operator_minus::op2_range): Change call to fold_range.
5279 (operator_min::wi_fold): Return result via reference parameter.
5280 (operator_max::wi_fold): Same.
5281 (cross_product_operator::wi_cross_product): Same.
5282 (operator_mult::wi_fold): Same.
5283 (operator_div::wi_fold): Same.
5284 (operator_div op_floor_div): Fix whitespace.
5285 (operator_exact_divide::op1_range): Change call to fold_range.
5286 (operator_lshift::fold_range): Return result via reference parameter.
5287 (operator_lshift::wi_fold): Same.
5288 (operator_rshift::fold_range): Same.
5289 (operator_rshift::wi_fold): Same.
5290 (operator_cast::fold_range): Same.
5291 (operator_cast::op1_range): Change calls to fold_range.
5292 (operator_logical_and::fold_range): Return result via reference.
5293 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5294 (operator_bitwise_and::wi_fold): Return result via reference.
5295 (operator_logical_or::fold_range): Same.
5296 (operator_bitwise_or::wi_fold): Same.
5297 (operator_bitwise_xor::wi_fold): Same.
5298 (operator_trunc_mod::wi_fold): Same.
5299 (operator_logical_not::fold_range): Same.
5300 (operator_bitwise_not::fold_range): Same.
5301 (operator_bitwise_not::op1_range): Change call to fold_range.
5302 (operator_cst::fold_range): Return result via reference.
5303 (operator_identity::fold_range): Same.
5304 (operator_abs::wi_fold): Same.
5305 (operator_absu::wi_fold): Same.
5306 (operator_negate::fold_range): Same.
5307 (operator_negate::op1_range): Change call to fold_range.
5308 (operator_addr_expr::fold_range): Return result via reference.
5309 (operator_addr_expr::op1_range): Change call to fold_range.
5310 (operator_pointer_plus::wi_fold): Return result via reference.
5311 (operator_pointer_min_max::wi_fold): Same.
5312 (operator_pointer_and::wi_fold): Same.
5313 (operator_pointer_or::wi_fold): Same.
5314 (range_op_handler): Change call to fold_range.
5316 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5318 (range_fold_unary_symbolics_p): Same.
5319 (range_fold_binary_expr): Same.
5320 (range_fold_unary_expr): Same.
5322 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5324 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5325 vector type as an argument rather than reading it from the
5327 (vect_create_epilog_for_reduction): Update accordingly.
5328 (vectorizable_reduction): Likewise.
5329 (vect_transform_cycle_phi): Likewise.
5331 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5333 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5334 the comparison codes that make sense for the mode used, and only the
5335 codes that can be done with a single branch instruction.
5337 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5339 PR tree-optimization/92351
5340 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5341 peeling the main loop for alignment, make sure to set the misalignment
5342 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5344 2019-11-08 Richard Biener <rguenther@suse.de>
5346 * dbgcnt.def (ivopts_loop): Add.
5347 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5348 ivopts_loop before optimizing a loop.
5350 2019-11-08 Richard Biener <rguenther@suse.de>
5353 * tree-inline.c (declare_return_variable): Properly handle
5354 type mismatches for the return slot.
5356 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5359 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5360 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5362 (got_helper_needed): New static variable.
5363 (output_load_pcrel_sym): New function.
5364 (get_pc_thunk_name): Remove after inlining...
5365 (load_got_register): ...here. Rework the initialization of the GOT
5366 register and of the GOT helper.
5367 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5368 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5369 helper must be emitted. Use output_asm_insn instead of fprintf.
5370 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5371 if optimization is enabled.
5372 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5373 by calling output_load_pcrel_sym.
5375 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5377 * tree-sra.c (create_access): Delay disqualifying the base
5378 for poly_int values until we know we have a base.
5380 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5382 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5383 for loops with SIMDUID set. Enable epilogue vectorization for loops
5384 with SIMDLEN set after finding a main loop with a VF that matches it.
5386 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5389 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5390 value only, return non-NULL if there is a single non-clobber
5391 constituent store even if there are constituent clobbers and return
5392 one of clobber constituent stores if all constituent stores are
5394 (split_group): Handle clobbers.
5395 (imm_store_chain_info::output_merged_store): When computing
5396 bzero_first, look after all clobbers at the start. Don't count
5397 clobber stmts in orig_num_stmts, except if the first orig store is
5398 a clobber covering the whole area and split_stores cover the whole
5399 area, consider equal number of stmts ok. Punt if split_stores
5400 contains only ->orig stores and their number plus number of original
5401 clobbers is equal to original number of stmts. For ->orig, look past
5402 clobbers in the constituent stores.
5403 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5405 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5407 (store_valid_for_store_merging_p): Allow clobber stmts.
5408 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5411 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5412 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5414 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5415 force creation of a unique data.stack_parm slot.
5417 2019-11-08 Richard Biener <rguenther@suse.de>
5419 * genmatch.c (expr::gen_transform): Use the resimplify
5420 member function instead of hard-coding the gimple_resimplifyN variant.
5421 (dt_simplify::gen_1): Likewise.
5423 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5425 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5428 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5430 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5431 instead of INTEGER_CST.
5433 2019-11-08 Richard Biener <rguenther@suse.de>
5435 PR tree-optimization/92324
5436 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5437 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5438 sign-conversions as necessary.
5439 (vectorizable_reduction): Reject conversions in the chain
5440 that are not sign-conversions, base analysis on a non-converting
5441 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5442 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5444 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5445 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5447 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5450 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5451 Fix a missing '-' when displaying these options in the
5454 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5456 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5458 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5460 * config/aarch64/aarch64-builtins.c
5461 (aarch64_builtin_vectorized_function): Remove bswap handling.
5463 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5465 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5466 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5467 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5468 Treat the vector types as indivisible.
5470 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5472 * optabs.def (gather_load_optab, mask_gather_load_optab)
5473 (scatter_store_optab, mask_scatter_store_optab): Turn into
5474 conversion optabs, with the offset mode given explicitly.
5475 * doc/md.texi: Update accordingly.
5476 * config/aarch64/aarch64-sve-builtins-base.cc
5477 (svld1_gather_impl::expand): Likewise.
5478 (svst1_scatter_impl::expand): Likewise.
5479 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5480 (expand_scatter_store_optab_fn): Likewise.
5481 (direct_gather_load_optab_supported_p): Likewise.
5482 (direct_scatter_store_optab_supported_p): Likewise.
5483 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5485 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5486 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5487 argument with the offset vector type. Require the two vector
5488 types to have the same number of elements but allow their element
5489 sizes to be different. Treat the optabs as conversion optabs.
5490 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5491 prototype accordingly.
5492 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5493 (supports_vec_convert_optab_p): ...this new function.
5494 (supports_vec_gather_load_p): Update accordingly.
5495 (supports_vec_scatter_store_p): Likewise.
5496 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5497 Replace the offset sign and bits parameters with a scalar type tree.
5498 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5499 Pass back the offset vector type instead of the scalar element type.
5500 Allow the offset to be wider than the memory elements. Search for
5501 an offset type that the target supports, stopping once we've
5502 reached the maximum of the element size and pointer size.
5503 Update call to internal_gather_scatter_fn_supported_p.
5504 (vect_check_gather_scatter): Update calls accordingly.
5505 When testing a new scale before knowing the final offset type,
5506 check whether the scale is supported for any signed or unsigned
5507 offset type. Check whether the target supports the source and
5508 target types of a conversion before deciding whether to look
5509 through the conversion. Record the chosen offset_vectype.
5510 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5511 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5512 directly from the gs_info's offset_vectype instead. Pass a zero
5513 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5514 * tree-vect-stmts.c (check_load_store_masking): Update call to
5515 internal_gather_scatter_fn_supported_p, passing the offset vector
5516 type recorded in the gs_info.
5517 (vect_truncate_gather_scatter_offset): Update call to
5518 vect_check_gather_scatter, leaving it to search for a valid
5520 (vect_use_strided_gather_scatters_p): Convert the offset to the
5521 element type of the gs_info's offset_vectype.
5522 (vect_get_gather_scatter_ops): Get the offset vector type directly
5524 (vect_get_strided_load_store_ops): Likewise.
5525 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5526 and IFN_MASK_GATHER_LOAD.
5527 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5528 (gather_load<mode><v_int_equiv>): ...this.
5529 (mask_gather_load<mode>): Rename to...
5530 (mask_gather_load<mode><v_int_equiv>): ...this.
5531 (scatter_store<mode>): Rename to...
5532 (scatter_store<mode><v_int_equiv>): ...this.
5533 (mask_scatter_store<mode>): Rename to...
5534 (mask_scatter_store<mode><v_int_equiv>): ...this.
5536 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5539 * config/rs6000/predicates.md
5540 (signed_or_equality_comparison_operator): New predicate.
5541 (unsigned_or_equality_comparison_operator): Likewise.
5542 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5543 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5544 * config/rs6000/vector.md
5545 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5546 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5547 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5548 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5549 vector modes and same-size integer vector modes.
5550 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5551 (vector_lt<mode> for VEC_F): New expand.
5552 (vector_le<mode> for VEC_F): Likewise.
5553 (vector_ne<mode> for VEC_F): Likewise.
5554 (vector_unge<mode> for VEC_F): Likewise.
5555 (vector_ungt<mode> for VEC_F): Likewise.
5556 (vector_unle<mode> for VEC_F): Likewise.
5557 (vector_unlt<mode> for VEC_F): Likewise.
5558 (vector_uneq<mode>): Expose name.
5559 (vector_ltgt<mode>): Likewise.
5560 (vector_unordered<mode>): Likewise.
5561 (vector_ordered<mode>): Likewise.
5563 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5566 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5567 Enhance ix86_expand_vector_init_concat.
5569 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5571 * doc/invoke.texi (-Wold-style-definition): Document () not being
5572 considered an old-style definition for C2x.
5574 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5576 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5578 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5579 insn patterns using ldcw instruction.
5580 (memory_barrier): Remove insn pattern using sync instruction.
5581 * config/pa/pa.opt (coherent-ldcw): New option.
5582 (ordered): New option.
5584 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5586 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5589 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5591 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5592 typo - mistmatch -> mismatch.
5593 * ipa-profile.c (ipa_profile): Likewise.
5594 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5595 - mistmatch -> mismatch.
5597 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5599 * simplify-rtx.c (comparison_to_mask): New function.
5600 (mask_to_comparison): New function.
5601 (simplify_logical_relational_operation): New function.
5602 (simplify_binary_operation_1): Call
5603 simplify_logical_relational_operation.
5605 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5608 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5609 modes for integer constants.
5611 2019-11-07 Jan Hubicka <jh@suse.cz>
5614 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5617 2019-11-07 Jan Hubicka <jh@suse.cz>
5619 * optc-save-gen.awk: Generate cl_target_option_free
5620 and cl_optimization_option_free.
5621 * opth-en.awk: Declare cl_target_option_free
5622 and cl_optimization_option_free.
5623 * tree.c (free_node): Use it.
5625 2019-11-06 Jan Hubicka <jh@suse.cz>
5627 * lto-streamer-in.c: Include alloc-pool.h.
5628 (freeing_string_slot_hasher): Remove.
5629 (string_slot_allocator): New object allocator.
5630 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5631 (file_name_obstack): New obstack.
5632 (canon_file_name): Allocate in obstack and allocator.
5633 (lto_reader_init): Initialize obstack and allocator.
5634 (lto_free_file_name_hash): New function.
5635 * lto-streamer.h (lto_free_file_name_hash): New.
5637 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5639 PR tree-optimization/89134
5640 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5641 * params.def: Add min-loop-cond-split-prob.
5642 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5643 outside checks on loop into the function.
5644 (split_info): New class.
5645 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5646 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5647 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5648 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5649 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5650 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5651 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5652 (split_loop_on_cond): Likewise.
5653 (tree_ssa_split_loops): Add loop split on conditional statement.
5655 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5657 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5660 2019-11-07 Richard Biener <rguenther@suse.de>
5662 PR tree-optimization/92405
5663 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5664 restrict lane-reducing ops to single stmt chains.
5666 2019-11-07 Martin Jambor <mjambor@suse.cz>
5669 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5670 * cgraph.h (gimple_check_call_matching_types): Remove
5671 * cgraph.c (gimple_check_call_args): Likewise.
5672 (gimple_check_call_matching_types): Likewise.
5673 (symbol_table::create_edge): Do not call
5674 gimple_check_call_matching_types.
5675 (cgraph_edge::make_direct): Likewise.
5676 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5677 * value-prof.h (check_ic_target): Remove.
5678 * value-prof.c (check_ic_target): Remove.
5679 (gimple_ic_transform): Do nat call check_ic_target.
5680 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5681 (afdo_indirect_call): Likewise.
5682 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5683 gimple_check_call_matching_types.
5684 * ipa-inline.c (early_inliner): Likewise.
5686 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5688 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5689 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5690 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5691 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5692 * config/arm/iterators.md (USSAT16): New int_iterator.
5693 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5695 * config/arm/predicates.md (ssat16_imm): New predicate.
5696 (usat16_imm): Likewise.
5697 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5699 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5701 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5703 (arm_<simd32_op>): New define_expands.
5704 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5705 __smuad, __smuadx): Define.
5706 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5707 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5708 (SIMD32_BINOP_Q): Likewise.
5709 (simd32_op): Handle the above.
5710 * config/arm/unspecs.md: Define unspecs for the above.
5712 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5714 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5715 * config/arm/arm.md (APSRGE_REGNUM): Define.
5716 (arm_<simd32_op>): New define_insn.
5717 (arm_sel): Likewise.
5718 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5719 (CALL_USED_REGISTERS): Likewise.
5720 (REG_ALLOC_ORDER): Likewise.
5721 (FIRST_PSEUDO_REGISTER): Update value.
5722 (ARM_GE_BITS_READ): Define.
5723 * config/arm/arm.c (arm_conditional_register_usage): Clear
5724 APSRGE_REGNUM from operand_reg_set.
5725 (arm_ge_bits_access): Define.
5726 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5728 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5729 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5730 FAIL if ARM_GE_BITS_READ.
5731 (*arm_add<mode>3): New define_insn.
5732 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5733 (*arm_sub<mode>3): New define_insn.
5734 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5735 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5737 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5738 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5739 (simd32_op): Handle the above.
5740 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5741 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5742 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5743 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5745 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5747 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5748 (arm_smlabb): New define_expand.
5749 (*maddhisi4tb): Rename to...
5750 (maddhisi4tb): ... This.
5751 (*maddhisi4tt): Rename to...
5752 (maddhisi4tt): ... This.
5753 (arm_smlatb_setq): New define_insn.
5754 (arm_smlatb): New define_expand.
5755 (arm_smlatt_setq): New define_insn.
5756 (arm_smlatt): New define_expand.
5757 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5758 (arm_<smlaw_op>): New define_expand.
5759 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5760 __smlawb, __smlawt): Define.
5761 * config/arm_acle_builtins.def: Define builtins for the above.
5762 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5763 (slaw_op): New int_attribute.
5764 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5766 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5768 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5769 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5770 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5771 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5772 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5773 (ss_op): New code_attr.
5775 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5777 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5778 * config/arm/arm.md (APSRQ_REGNUM): Define.
5779 (add_setq): New define_subst.
5780 (add_clobber_q_name): New define_subst_attr.
5781 (add_clobber_q_pred): Likewise.
5782 (maddhisi4): Change to define_expand. Split into mult and add if
5784 (arm_maddhisi4): New define_insn.
5785 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5786 (*maddhisi4tt): Likewise.
5787 (arm_ssat): New define_expand.
5788 (arm_usat): Likewise.
5789 (arm_get_apsr): New define_insn.
5790 (arm_set_apsr): Likewise.
5791 (arm_saturation_occurred): New define_expand.
5792 (arm_set_saturation): Likewise.
5793 (*satsi_<SAT:code>): Rename to...
5794 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5795 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5796 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5797 (CALL_USED_REGISTERS): Mark apsrq.
5798 (FIRST_PSEUDO_REGISTER): Update value.
5799 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5800 (machine_function): Add q_bit_access.
5801 (ARM_Q_BIT_READ): Define.
5802 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5803 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5805 (arm_q_bit_access): Define.
5806 * config/arm/arm-builtins.c: Include stringpool.h.
5807 (arm_sat_binop_imm_qualifiers,
5808 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5809 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5810 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5811 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5812 SET_SAT_QUALIFIERS): Likewise.
5813 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5814 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5815 Handle 0 argument expander.
5816 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5817 (arm_check_builtin_call): Define.
5818 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5819 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5820 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5821 (arm_q_bit_access): Likewise.
5822 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5823 __saturation_occurred, __set_saturation_occurred): Define.
5824 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5825 saturation_occurred, set_saturation_occurred.
5826 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5827 (UNSPEC_APSR_READ): Likewise.
5828 (VUNSPEC_APSR_WRITE): Likewise.
5829 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5830 (*arm_ssadd<mode>3): New define_insn.
5831 (sssub<mode>3): Convert to define_expand.
5832 (*arm_sssub<mode>3): New define_insn.
5833 (ssmulsa3): Convert to define_expand.
5834 (*arm_ssmulsa3): New define_insn.
5835 (usmulusa3): Convert to define_expand.
5836 (*arm_usmulusa3): New define_insn.
5837 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5838 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5839 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5841 2019-11-07 Martin Liska <mliska@suse.cz>
5844 * cgraph.c (delete_function_version): Clear global
5845 variable version_info_node if equal to deleted
5848 2019-11-07 Martin Liska <mliska@suse.cz>
5850 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5851 of CONSTRUCTOR_NO_CLEARING.
5852 (operand_compare::hash_operand): Likewise.
5854 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5856 Support 64-bit double and 64-bit long double configurations.
5859 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5860 --with-long-double=.
5861 * config/avr/t-multilib: Remove.
5862 * config/avr/t-avr: Output of genmultilib.awk is now fully
5863 dynamically generated and no more part of the repo.
5864 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5865 Pass them down to...
5866 * config/avr/genmultilib.awk: ...here and handle them.
5867 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5868 (-mlong-double=, avr_long_double). New option and var.
5869 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5870 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5871 Set default as requested by --with-double=
5872 (TARGET_HANDLE_OPTION): Define to this...
5873 (avr_handle_option): ...new hook worker.
5874 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5875 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5876 (avr_double_lib): New proto for spec function.
5877 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5878 (DRIVER_SELF_SPECS): Call %:double-lib.
5879 * config/avr/avr.c (avr_option_override): Assert
5880 sizeof(long double) >= sizeof(double) for the target.
5881 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5882 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5883 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5884 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5885 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5886 New built-in define depending on --with-double=, --with-long-double=.
5887 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5888 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5889 * doc/install.texi (Cross-Compiler-Specific Options)
5890 <--with-double=, --with-long-double=>: Doc.
5892 2019-11-07 Richard Biener <rguenther@suse.de>
5894 * dbgcnt.def (gimple_unroll): New.
5895 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5896 gimple_unroll debug counter before applying transform.
5897 (try_peel_loop): Likewise.
5899 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5901 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5902 frame pointer in multiple registers.
5903 (ira_setup_eliminable_regset): Setup eliminable_regset,
5904 ira_no_alloc_regs and regs_ever_live for frame pointer in
5907 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5909 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5912 2019-11-06 Jan Hubicka <jh@suse.cz>
5914 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5916 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5917 Do not silently ignore summary corruptions.
5919 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5921 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5922 the epilogue if there are peeled iterations for it to handle.
5924 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5926 * config/arc/arc.c (arc_split_ior): Add asserts.
5927 (arc_split_mov_const): Likewise.
5928 (arc_check_ior_const): Do not match known short immediate values.
5929 * config/arc/arc.md (movsi): Don't split predicated instructions
5932 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5934 * config/arc/arc.opt (mea): Update help string.
5935 * doc/invoke.texi(ARC): Update mea option info.
5937 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5939 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5940 (zero_extendqisi2_ac): Likewise.
5941 (zero_extendhisi2_i): Likewise.
5942 (extendqihi2_i): Likewise.
5943 (extendqisi2_ac): Likewise.
5944 (extendhisi2_i): Likewise.
5946 2019-11-06 Richard Biener <rguenther@suse.de>
5948 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5949 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5950 Simplify single_defuse_cycle condition.
5952 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5954 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5955 epilogue loop, make sure that the VF is small enough or that
5956 the epilogue loop can be fully-masked.
5958 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5960 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5961 loop when we've finished, rather than returning directly from
5962 the loop. Use a local variable to track whether we're still
5963 searching for the preferred simdlen. Make vect_epilogues
5964 record whether the next iteration should try to treat the
5965 loop as an epilogue.
5967 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5969 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5970 __arc_hard_float__, __ARC_HARD_FLOAT__,
5971 __arc_soft_float__, __ARC_SOFT_FLOAT__
5973 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5975 PR tree-optimization/92317
5976 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5977 update phi's with constant phi arguments.
5979 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5980 Alexandre Oliva <oliva@adacore.com>
5982 * common.opt (-fcallgraph-info[=]): New option.
5983 * doc/invoke.texi (Developer options): Document it.
5984 * opts.c (common_handle_option): Handle it.
5985 * builtins.c (expand_builtin_alloca): Record allocation if
5986 -fcallgraph-info=da.
5987 * calls.c (expand_call): If -fcallgraph-info, record the call.
5988 (emit_library_call_value_1): Likewise.
5989 * flag-types.h (enum callgraph_info_type): New type.
5990 * explow.c: Include stringpool.h.
5991 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5992 * function.c (allocate_stack_usage_info): New.
5993 (allocate_struct_function): Call it for -fcallgraph-info.
5994 (prepare_function_start): Call it otherwise.
5995 (record_final_call, record_dynamic_alloc): New.
5996 * function.h (struct callinfo_callee): New.
5997 (CALLEE_FROM_CGRAPH_P): New.
5998 (struct callinfo_dalloc): New.
5999 (struct stack_usage): Add callees and dallocs.
6000 (record_final_call, record_dynamic_alloc): Declare.
6001 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6002 object if -fcallgraph-info=da.
6003 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6004 * print-tree.h (print_decl_identifier): Declare.
6005 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6006 * print-tree.c: Include print-tree.h.
6007 (print_decl_identifier): New function.
6008 * toplev.c: Include print-tree.h.
6009 (callgraph_info_file): New global variable.
6010 (callgraph_info_external_printed): Likewise.
6011 (output_stack_usage): Rename to...
6012 (output_stack_usage_1): ... this. Make it static, add cf
6013 parameter. If -fcallgraph-info=su, print stack usage to cf.
6014 If -fstack-usage, use print_decl_identifier for
6016 (INDIRECT_CALL_NAME): New.
6017 (dump_final_node_vcg_start): New.
6018 (dump_final_callee_vcg, dump_final_node_vcg): New.
6019 (output_stack_usage): New.
6020 (lang_dependent_init): Open and start file if
6021 -fcallgraph-info. Allocated callgraph_info_external_printed.
6022 (finalize): If callgraph_info_file is not null, finish it,
6023 close it, and release callgraph_info_external_printed.
6025 2019-11-06 Gergö Barany <gergo@codesourcery.com>
6026 Frederik Harwath <frederik@codesourcery.com>
6027 Thomas Schwinge <thomas@codesourcery.com>
6029 * omp-low.c (struct omp_context): New fields
6030 local_reduction_clauses, outer_reduction_clauses.
6031 (new_omp_context): Initialize these.
6032 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6033 (scan_omp_for): Check reduction clauses for incorrect nesting.
6035 2019-11-06 Jakub Jelinek <jakub@redhat.com>
6038 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6039 operands with non-memory constraints.
6041 2019-11-05 Martin Sebor <msebor@redhat.com>
6043 PR tree-optimization/92373
6044 * tree.c (component_ref_size): Only consider initializers of objects
6045 of matching struct types.
6046 Return null for instances of interior zero-length arrays.
6048 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6050 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6052 2019-11-05 Jason Merrill <jason@redhat.com>
6054 PR tree-optimization/91825
6055 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6057 2019-11-05 Jim Wilson <jimw@sifive.com>
6060 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6061 optimize_insn_for_speed_p is true.
6063 2019-11-05 Martin Sebor <msebor@redhat.com>
6067 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6069 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6070 name and location for a temporary variable.
6072 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6074 * tree-vrp.c (value_range::value_range): Fix whitespace.
6075 (defined_ranges_p): Same.
6076 (range_fold_binary_symbolics_p): Same.
6077 (value_range::intersect_helper): Same.
6078 (value_range::union_helper): Same.
6079 * tree-vrp.h (range_fold_binary_expr): Same.
6081 2019-11-04 Martin Sebor <msebor@redhat.com>
6085 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6086 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6087 of message printed in a warning for empty arrays.
6088 (vrp_prop::check_mem_ref): Also handle function parameters and
6091 2019-11-05 Richard Biener <rguenther@suse.de>
6093 PR tree-optimization/92371
6094 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6095 on the original stmt of live stmts in the chain.
6096 (vectorizable_live_operation): Look at the original stmt when
6097 checking STMT_VINFO_REDUC_DEF.
6099 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6101 * gimple-fold.c, gimple-loop-versioning.cc,
6102 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6103 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6104 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6105 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6106 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6107 value_range_equiv, and value_range_base to value_range.
6109 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6111 * expr.c (build_personality_function): Fix generated type to
6112 match actual personality functions.
6114 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6116 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6117 enough bytes for the NULL character.
6119 2019-11-05 Richard Biener <rguenther@suse.de>
6121 PR tree-optimization/92280
6122 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6123 had a single use do not create a new CTOR.
6124 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6125 BIT_FIELD_REF of a CTOR via GENERIC.
6127 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6129 * config/s390/s390.c (s390_vector_alignment): Check if the value
6130 fits into uhwi before using it.
6132 2019-11-05 Martin Liska <mliska@suse.cz>
6134 * symbol-summary.h: Use ggc_delete.
6136 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6138 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6139 Change vec_perm field to 10.
6141 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6143 * doc/install.texi: Further fix syntax for html generation.
6145 2019-11-05 Martin Liska <mliska@suse.cz>
6147 * symbol-summary.h: Rename allocator to m_allocator and
6150 2019-11-05 Richard Biener <rguenther@suse.de>
6152 PR tree-optimization/92324
6153 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6154 all signed or unsigned operations.
6156 2019-11-05 Jan Hubicka <jh@suse.cz>
6158 * hsa-brig.c: Include alloc-pool.h
6159 * hsa-dump.c: Likewise.
6160 * hsa-gen.c: Likewise.
6161 * hse-regalloc.c: Likewise.
6162 * ipa-hsa.c: Likewise.
6163 * ipa-predicate.c: Likewise.
6164 * ipa-reference.c: Likewise.
6165 * ipa-sra.c: Likewise.
6166 * omp-expand.c: Likewise.
6167 * omp-general.c: Likewise.
6168 * omp-low.c: Likewise.
6169 * sumbol-summary.h (function_summary_base): Add allocator.
6170 (function_summary<T *>::function_summary): Update construction.
6171 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6172 (call_summary_base): Add allcator.
6173 (call_summary<T *>::call_summary): Update construction.
6174 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6176 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6178 PR tree-optimization/91945
6179 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6180 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6183 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6185 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6186 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6187 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6188 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6189 (vrp_set_zero_nonzero_bits): Move to...
6190 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6191 (vr_values::simplify_bit_ops_using_ranges): Rename
6192 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6194 2019-11-05 Martin Liska <mliska@suse.cz>
6197 * fold-const.c (operand_compare::hash_operand): Remove
6198 FIELD_DECL handling.
6200 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6202 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6203 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6206 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6208 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6209 properly handle symbolics.
6210 (range_compatible_p): Remove.
6212 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6214 * common.opt (-fabi-version): Document =14.
6215 * doc/invoke.texi (C++ Dialect Options): Likewise.
6217 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6219 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6221 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6223 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6224 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6225 gcn_omp_device_kind_arch_isa.
6226 * config/gcn/t-omp-device: New file.
6227 * configure.ac: Support gcn for omp_device_property.
6228 * configure: Regenerate.
6230 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6232 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6233 (vrp_val_max): Same.
6234 (vrp_val_is_min): Same.
6235 (vrp_val_is_max): Same.
6236 (value_range_base::nonzero_p): Remove last argument to
6238 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6239 (vrp_val_max): Same.
6240 (vrp_val_is_min): Same.
6241 (vrp_val_is_max): Same.
6242 (value_range_base::set_varying): Remove last argument to vrp_val*.
6243 (value_range_base::dump): Same.
6244 (value_range_base::set): Same.
6245 (value_range_base::normalize_symbolics): Same.
6246 (value_range_base::num_pairs): Same.
6247 (value_range_base::lower_bound): Same.
6248 (value_range_base::upper_bound): Same.
6249 (ranges_from_anti_range): Remove handle_pointers argument.
6250 (value_range_base::singleton_p): Remove last argument to
6251 ranges_from_anti_range.
6253 2019-11-04 Jan Hubicka <jh@suse.cz>
6255 * ipa-reference.c (init_function_info): Initialize
6256 info->global.statics_read.
6258 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6260 * tree-vrp.c (value_range_base::invert): Use constructors to build
6263 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6265 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6266 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6268 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6270 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6273 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6275 * tree-vrp.c (dump_assert_info): New.
6276 (dump_asserts_info): New.
6278 2019-11-04 Jan Hubicka <jh@suse.cz>
6280 * ipa-inline-transform.c: Include ipa-utils.h
6281 (inline_call): Set thunk_expansion flag.
6282 * ipa-utils.h (thunk_expansion): Declare.
6283 * ipa-devirt.c (thunk_expansion): New global var.
6284 (devirt_node_removal_hook): Do not invalidate cache while
6285 doing thunk expansion.
6287 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6289 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6291 2019-11-04 Martin Sebor <msebor@redhat.com>
6293 PR tree-optimization/92349
6294 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6295 memebers have constant sizes.
6297 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6299 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6301 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6302 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6305 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6307 * expr.c (store_constructor): Modify to handle single element vectors.
6308 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6310 (vect_slp_check_for_constructors): New function.
6311 (vect_slp_analyze_bb_1): Call new function to check for vector
6313 (vectorize_slp_instance_root_stmt): New function.
6314 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6316 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6318 2019-11-04 Richard Biener <rguenther@suse.de>
6320 PR tree-optimization/92345
6321 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6322 we produced a reduction chain.
6323 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6324 LOOP_VINFO_REDUCTIONS.
6326 2019-11-04 Jan Hubicka <jh@suse.cz>
6328 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6329 duplicate summaries.
6330 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6332 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6333 access call summaries.
6334 (dump_ipa_call_summary): Be ready for missing edge summaries.
6335 (analyze_function_body): Use get instead of get_create to access
6337 (estimate_calls_size_and_time): Do not access summaries of
6338 inlined edges; sanity check they are missing.
6339 (ipa_call_context::estimate_size_and_time): Use get instead
6340 of get_create to access node summary.
6341 (inline_update_callee_summaries): Do not update depth of
6343 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6345 (ipa_merge_fn_summary_after_inlining): Use get instead
6347 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6348 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6350 (initialize_growth_caches): Update.
6351 (do_estimate_edge_time): Remove redundant copy of context.
6352 (ipa_remove_from_growth_caches): New function.
6353 * ipa-inline.c (flatten_function): Update overall summary
6354 only when optimizing.
6355 (inline_to_all_callers): Update overall summary of function
6357 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6358 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6361 2019-11-04 Richard Biener <rguenther@suse.de>
6363 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6364 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6366 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6368 * ggc-common.c: Include system.h before malloc.h.
6370 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6372 * configure.ac: Pass --enable-obsolete=* and
6373 --enable-option-checking=* down to build configure, and fail
6374 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6375 * configure: Rebuild.
6376 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6377 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6379 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6381 * config.in: Regenerate.
6382 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6383 -mtiny-printf is used without GCC being configured with
6384 --enable-newlib-nano-formatted-io.
6385 * config/msp430/msp430.h (LINK_SPEC): Pass
6386 "--wrap puts --wrap printf" when -mtiny-printf is used.
6387 * config/msp430/msp430.opt: Document -mtiny-printf.
6388 * configure: Regenerate.
6389 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6390 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6391 --enable-newlib-nano-formatted-io is passed.
6392 * doc/invoke.texi: Document -mtiny-printf.
6394 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6396 * configure: Regenerate.
6398 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6400 * config/msp430/driver-msp430.c
6401 (msp430_get_linker_devices_include_path): New spec function.
6402 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6403 (extract_devices_dir_from_exec_prefix): New function.
6404 (extract_devices_dir_from_collect_gcc): New function.
6405 (msp430_check_env_var_for_devices): New function.
6406 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6407 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6408 devices.csv was not found using other methods.
6409 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6411 (msp430_dirname): Likewise.
6412 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6413 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6414 msp430_get_linker_devices_include_path.
6415 (TARGET_EXTRA_PRE_INCLUDES): Define.
6416 * doc/invoke.texi: Document new ways of searching for support files.
6418 2019-11-04 Richard Biener <rguenther@suse.de>
6420 PR tree-optimization/92301
6421 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6422 as required by epilogue generation
6424 2019-11-04 Martin Liska <mliska@suse.cz>
6427 * fold-const.c (operand_compare::hash_operand): Fix field
6428 hashing of CONSTRUCTOR.
6430 2019-11-04 Martin Liska <mliska@suse.cz>
6432 * ggc.h (ggc_delete): New function.
6433 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6434 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6435 (ipa_free_all_node_params): Likewise.
6436 * ipa-sra.c (ipa_sra_analysis): Likewise.
6438 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6440 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6441 set_switch_stmt_execution_predicate, compute_bb_predicates,
6442 will_be_nonconstant_expr_predicate,
6443 phi_result_unknown_predicate,
6444 analyze_function_body): Pass arround params summary.
6445 (ipa_call_context::duplicate_from): New comment;
6446 only duplicate useful values.
6447 (ipa_call_context::equal_to): Only compare useful values.
6448 (remap_edge_summaries): Pass params_summary.
6449 (remap_hint_predicate): Likewise.
6450 (ipa_merge_fn_summary_after_inlining): Likewise.
6451 (inline_read_section): Initialize params summary used flags.
6452 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6453 around param_summary.
6454 (add_condition): Initialized used params summary flags.
6455 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6456 (inline_param_summary::useless_p): New predicate.
6457 (remap_after_inlining, add_condition): Update prototype
6458 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6460 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6462 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6463 (ipa_analyze_virtual_call_uses): Likewise.
6464 (update_indirect_edges_after_inlining): Update param summaries.
6465 (ipa_print_node_params): Print used flags.
6466 (ipa_read_indirect_edge_info): Update param summareis.
6467 * ipa-prop.h (ipa_param_descriptor): Add
6468 used_by_ipa_predicates, used_by_indirect_call
6469 and used_by_polymorphic_call.
6470 (ipa_set_param_used_by_ipa_predicates,
6471 ipa_set_param_used_by_indirect_call,
6472 ipa_set_param_used_by_polymorphic_call,
6473 ipa_is_param_used_by_ipa_predicates,
6474 ipa_is_param_used_by_indirect_call,
6475 ipa_is_param_used_by_polymorphic_call): New inline functions.
6477 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6479 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6481 (ipa_call_context::release): Add ALL parameter.
6482 (ipa_call_context::equal_to): New member function.
6483 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6484 duplicate_form, release, equal_to and exists_p member functoins.
6485 * ipa-inline-analysis.c (node_context_cache_entry): New
6487 (node_context_summary): Likewise.
6488 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6489 node_context_clear): New static vars.
6490 (initialize_growth_caches): New function.
6491 (free_growth_caches): Also delete node_context_cache; output stats.
6492 (do_estimate_edge_time): Cache contexts.
6493 (reset_node_cache): New function.
6494 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6495 (inline_small_functions): Initialize growth caches.
6496 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6498 * ipa-predicate.h (inline_param_summary::equal_to): New.
6499 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6500 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6501 (ipa_agg_jump_function): Implement equal_to member function.
6503 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6505 * ipa-fnsummary.c (inline_read_section): Set vector size
6508 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6510 * ipa-fnsummary.c (ipa_call_context): New constructor.
6511 (estimate_node_size_and_time): Turn to ...
6512 (ipa_call_context::estimate_size_and_time): ... this one.
6513 (ipa_call_context::release): New.
6514 * ipa-fnsummary.h (ipa_call_context): New class.
6515 (estimate_node_size_and_time): Remove.
6516 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6517 do_estimate_edge_hints): Update.
6519 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6521 * config.in: Regenerate.
6522 * configure: Regenerate.
6523 * configure.ac: Check for mallinfo.
6524 * ggc-common.c: Include malloc.h if available;
6526 (report_heap_memory_use): New functoin.
6527 * ggc-page.c (ggc_grow): Do not print "start".
6528 * ggc.h (report_heap_memory_use): Declare.
6529 * pases.c (execute_one_pass): Report memory after IPA passes.
6530 (ipa_read_summaries_1): Likewise.
6531 (ipa_read_optimization_summaries_1): Likewise.
6533 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6535 * gimplify.h (omp_construct_selector_matches): Change return
6536 type to int, add a new SCORES argument.
6537 * gimplify.c (omp_construct_selector_matches): Likewise. If
6538 SCORES is non-NULL, compute scores of each construct.
6539 * omp-general.h (omp_get_context_selector): Declare.
6540 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6541 Adjust omp_construct_selector_matches callers.
6542 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6543 (omp_context_compute_score): New function.
6544 (omp_resolve_declare_variant): Compute scores and decide based on
6548 * configure.ac: Don't look for omp-device-properties files from
6549 installed offloading compilers. Instead add tmake_file snippets
6550 for configured offloading targets and use files they generate.
6551 * Makefile.in (install): Don't depend on
6552 install-omp-device-properties.
6553 (install-omp-device-properties): Remove goal.
6554 * config/i386/t-omp-device: New file.
6555 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6556 * config/nvptx/t-omp-device: New file.
6557 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6558 * configure: Regenerated.
6560 * omp-general.h (omp_context_selector_set_compare): Declare.
6561 * omp-general.c (omp_construct_simd_compare,
6562 omp_context_selector_props_compare, omp_context_selector_set_compare,
6563 omp_context_selector_compare): New functions.
6564 (omp_resolve_declare_variant): Prune variants that are strict subset
6567 2019-11-01 Martin Sebor <msebor@redhat.com>
6573 * doc/invoke.texi (-Wzero-length-bounds): Document.
6574 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6575 instead of a hand-rolled loop to avoid PR 92323.
6576 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6578 (vrp_prop::check_mem_ref): Handle declared struct objects.
6579 * tree.c (last_field): New function.
6580 (array_at_struct_end_p): Handle MEM_REF.
6581 (get_initializer_for): New helper.
6582 (component_ref_size): Add argument. Rename locals. Call
6583 get_initializer_for instead of fold_ctor_reference. Correct handling
6584 of flexible array members.
6585 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6587 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6589 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6590 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6591 UNSPEC_VSX_CVSPUXDS): Remove.
6592 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6593 (vsx_xvcvspdp_be): ... this. New. And...
6594 (vsx_xvcvspdp_le): ... this. New.
6595 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6596 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6597 (vsx_xvcv<su>xwdp_le): ... this. New.
6598 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6599 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6600 (vsx_xvcvsp<su>xds_le): ... this. New.
6602 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6604 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6605 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6606 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6607 UNSPEC_VSX_XVCVSPSXWS): Remove.
6608 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6609 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6611 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6613 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6614 (UNSPEC_VSX_XVCDPSP): Remove.
6615 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6616 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6618 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6620 * hooks.c (hook_tree_tree_bool_null): New.
6621 * hooks.h (hook_tree_tree_bool_null): Declare.
6622 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6623 (LANG_HOOKS_DECLS): Add it.
6624 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6625 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6626 (lower_omp_target): Handle Fortran array with descriptor in
6627 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6629 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6631 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6632 Assert that the type we store in abi_vector_types is its own
6634 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6636 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6638 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6639 from a CONST_INT address when TARGET_THUMB2.
6641 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6643 * config/arm/arm.md (add_not_cin): New insn.
6644 (add_not_shift_cin): Likewise.
6646 2019-10-31 Martin Liska <mliska@suse.cz>
6648 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6649 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6650 and compare_memory_operand.
6652 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6654 * configure.ac: Compute and substitute omp_device_properties and
6655 omp_device_property_deps.
6656 * Makefile.in (generated_files): Add omp-device-properties.h.
6657 (omp-general.o): Depend on omp-device-properties.h.
6658 (omp_device_properties): New make variable.
6659 (omp-device-properties.h, s-omp-device-properties-h,
6660 install-omp-device-properties): New goals.
6661 (install): Depend on install-omp-device-properties for accelerators.
6662 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6663 * target.h (enum omp_device_kind_arch_isa): New enum.
6664 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6666 * omp-general.c: Include omp-device-properties.h.
6667 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6668 colon instead of comma.
6669 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6671 (omp_context_selector_matches): Implement device set arch/isa
6672 selectors, improve device set kind selector handling.
6673 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6674 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6675 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6676 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6677 ix86_omp_device_kind_arch_isa.
6678 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6679 definition from ix86_target_string to file scope.
6680 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6682 (ix86_omp_device_kind_arch_isa): New function.
6683 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6684 isa_opts definitions to file scope.
6685 * config/i386/t-intelmic (omp-device-properties): New goal.
6686 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6687 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6688 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6689 nvptx_omp_device_kind_arch_isa.
6690 * configure: Regenerate.
6691 * doc/tm.texi: Regenerate.
6694 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6695 DECL_BUILT_IN in comment. Remove redundant ()s around return
6697 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6698 before calling fndecl_built_in_p.
6699 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6700 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6701 fndecl_built_in_p on it.
6703 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6705 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6707 2019-10-31 Martin Liska <mliska@suse.cz>
6709 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6710 of cgraph_local_info and use local_info_node instead.
6711 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6712 (bfin_function_ok_for_sibcall): Likewise.
6713 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6714 (must_reload_pic_reg_p): Likewise.
6716 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6719 * tree.h (type_initializer_zero_p): Remove.
6720 * tree.c (type_initializer_zero_p): Remove.
6722 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6724 * doc/invoke.texi (-Wshadow, -Wshadow=global
6725 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6727 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6729 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6730 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6731 and 'target exit data'.
6733 2019-10-30 Martin Jambor <mjambor@suse.cz>
6736 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6737 availability comparison.
6739 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6741 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6742 calls to __mspabi_mpy* functions.
6743 * config/msp430/msp430.md (mulhisi3): New define_expand.
6744 (umulhisi3): New define_expand.
6745 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6746 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6748 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6750 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6751 (msp430_check_plus_not_high_mem): New.
6752 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6753 might be in low memory.
6754 Indicate that a 16-bit absolute address is in lower memory.
6756 2019-10-30 Martin Jambor <mjambor@suse.cz>
6758 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6759 ultimate_alias_target.
6761 2019-10-30 Richard Biener <rguenther@suse.de>
6763 PR tree-optimization/92275
6764 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6765 Copy all loop-closed PHIs.
6767 2019-10-30 Martin Liska <mliska@suse.cz>
6769 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6770 const_tree as function argument.
6771 (func_checker::compare_decl): Likewise.
6772 (func_checker::operand_equal_p): Likewise.
6773 (func_checker::compare_variable_decl): Likewise.
6774 (func_checker::parse_labels): Likewise.
6775 * ipa-icf-gimple.h: Likewise.
6777 2019-10-30 Martin Liska <mliska@suse.cz>
6779 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6780 Do not compare alias sets. It's handled by operand_equal_p.
6782 2019-10-30 Martin Liska <mliska@suse.cz>
6784 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6785 initialize m_compare_polymorphic.
6786 (func_checker::compare_decl): Do not compare polymorphic types.
6787 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6788 * ipa-icf.c (sem_function::equals_private): Do not call
6789 compare_polymorphic_p.
6791 2019-10-30 Martin Liska <mliska@suse.cz>
6793 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6795 (func_checker::compare_memory_operand): Remove.
6796 (func_checker::compare_cst_or_decl): Remove.
6797 (func_checker::operand_equal_valueize): Do not handle
6799 (func_checker::compare_gimple_call): Call compare_operand.
6800 (func_checker::compare_gimple_assign): Likewise.
6801 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6802 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6803 * ipa-icf.h (icf_handled_component_p): Remove.
6805 2019-10-30 Martin Liska <mliska@suse.cz>
6807 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6808 (func_checker::compare_cst_or_decl): Remove handling
6810 (func_checker::compare_operand): Transform to ...
6811 (func_checker::operand_equal_p): ... this.
6812 * ipa-icf-gimple.h (class func_checker): Add
6813 operand_equal_p and hash_operand.
6814 * ipa-icf.c (sem_function::equals_private): Fix
6815 pushing and popping of cfun.
6817 2019-10-30 Martin Liska <mliska@suse.cz>
6819 * fold-const.c (operand_equal_p): Move to ...
6820 (operand_compare::operand_equal_p): ... here.
6821 (operand_compare::verify_hash_value): New.
6822 (add_expr): Move to ...
6823 (operand_compare::hash_operand): ... here.
6824 * fold-const.h (operand_equal_p): Move to the class.
6825 (class operand_compare): New.
6826 * tree.c (add_expr): Remove.
6828 2019-10-30 Martin Liska <mliska@suse.cz>
6830 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6831 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6833 2019-10-30 Martin Liska <mliska@suse.cz>
6837 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6838 from a first_clone in order to get proper LTO section
6840 (cgraph_node::get_untransformed_body):
6841 Use lto_get_section_data where symtab_node::order
6843 * cgraphclones.c (cgraph_node::find_replacement):
6844 Update also symbol order.
6845 * ipa-fnsummary.c (ipa_fn_summary_read):
6846 Use new function lto_get_summary_section_data.
6847 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6848 * ipa-icf.c (sem_item_optimizer::read_summary):
6850 * ipa-prop.c (ipa_prop_read_jump_functions):
6852 (ipcp_read_transformation_summaries): Likewise.
6853 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6854 * lto-cgraph.c (input_node): Add also order_base.
6855 (input_varpool_node): Likewise.
6856 (input_cgraph_1): Assign the order_base.
6857 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6858 * lto-opts.c (lto_write_options): Pass new argument.
6859 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6860 (lto_get_summary_section_data): New.
6861 (lto_get_raw_section_data): Add order argument.
6862 (lto_create_simple_input_block): Likewise.
6863 * lto-section-out.c (lto_destroy_simple_output_block):
6865 * lto-streamer-in.c (lto_input_toplevel_asms):
6866 Use lto_get_summary_section_data.
6867 (lto_input_mode_table): Likewise.
6868 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6869 (lto_output_toplevel_asms): Pass new argument.
6870 (copy_function_or_variable): Likewise.
6871 (produce_lto_section):Likewise.
6872 (produce_symtab): Likewise.
6873 (lto_write_mode_table): Likewise.
6874 (produce_asm_for_decls): Likewise.
6875 * lto-streamer.c (lto_get_section_name): Concat symbol name
6877 * lto-streamer.h (lto_get_section_data): Add order argument.
6878 (lto_get_summary_section_data): New.
6879 (lto_get_raw_section_data): Add order argument.
6880 (lto_get_section_name): Likewise.
6881 * varpool.c (varpool_node::get_constructor): Pass order argument.
6883 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6885 PR tree-optimization/92262
6886 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6887 ubase or cbase here.
6888 (remove_unused_ivs): Unshare comp before using it.
6890 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6892 * ipa-prop.c (update_jump_functions_after_inlining):
6893 Watch for missing summaries.
6895 2019-10-30 Richard Biener <rguenther@suse.de>
6897 PR tree-optimization/65930
6898 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6899 chains also allow a leading and trailing conversion.
6900 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6901 intermediate reduction chains.
6902 (vect_analyze_slp_instance): Likewise. Build a SLP
6903 node for a trailing conversion manually.
6905 2019-10-30 Martin Liska <mliska@suse.cz>
6907 * cgraph.c (cgraph_node::local_info): Transform to ...
6908 (cgraph_node::local_info_node): ... this.
6909 (cgraph_node::dump): Remove cgraph_local_info and
6910 put its fields directly into cgraph_node.
6911 (cgraph_node::get_availability): Likewise.
6912 (cgraph_node::make_local): Likewise.
6913 (cgraph_node::verify_node): Likewise.
6914 * cgraph.h (struct GTY): Likewise.
6915 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6916 (duplicate_thunk_for_node): Likewise.
6917 (cgraph_node::create_clone): Likewise.
6918 (cgraph_node::create_virtual_clone): Likewise.
6919 (cgraph_node::create_version_clone): Likewise.
6920 * cgraphunit.c (cgraph_node::reset): Likewise.
6921 (cgraph_node::finalize_function): Likewise.
6922 (cgraph_node::add_new_function): Likewise.
6923 (analyze_functions): Likewise.
6924 * combine.c (setup_incoming_promotions): Likewise.
6925 * config/i386/i386.c (ix86_function_regparm): Likewise.
6926 (ix86_function_sseregparm): Likewise.
6927 (init_cumulative_args): Likewise.
6928 * ipa-cp.c (determine_versionability): Likewise.
6929 (count_callers): Likewise.
6930 (set_single_call_flag): Likewise.
6931 (initialize_node_lattices): Likewise.
6932 (estimate_local_effects): Likewise.
6933 (create_specialized_node): Likewise.
6934 (identify_dead_nodes): Likewise.
6935 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6936 (ipa_fn_summary_generate): Likewise.
6937 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6938 (process_hsa_functions): Likewise.
6939 * ipa-icf.c (set_local): Likewise.
6940 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6941 * ipa-inline.c (speculation_useful_p): Likewise.
6942 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6943 (ipa_profile): Likewise.
6944 * ipa-split.c (split_function): Likewise.
6945 (execute_split_functions): Likewise.
6946 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6947 (ipa_sra_ipa_function_checks): Likewise.
6948 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6949 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6950 * lto-cgraph.c (lto_output_node): Likewise.
6951 (input_overwrite_node): Likewise.
6952 * multiple_target.c (expand_target_clones): Likewise.
6953 * omp-simd-clone.c (simd_clone_create): Likewise.
6954 * trans-mem.c (expand_call_tm): Likewise.
6955 (ipa_tm_mayenterirr_function): Likewise.
6956 (ipa_tm_diagnose_tm_safe): Likewise.
6957 (ipa_tm_diagnose_transaction): Likewise.
6958 (ipa_tm_create_version): Likewise.
6959 (ipa_tm_transform_calls_redirect): Likewise.
6960 (ipa_tm_execute): Likewise.
6961 * tree-inline.c (expand_call_inline): Likewise.
6963 2019-10-29 Martin Liska <mliska@suse.cz>
6965 * symbol-summary.h (function_summary): Pass memory location
6966 to underlaying hash_map (or vec).
6967 (V>::fast_function_summary): Likewise.
6969 2019-10-29 Martin Liska <mliska@suse.cz>
6971 * ggc.h (ggc_alloc_no_dtor): New function.
6972 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6973 destructor and ggc_free.
6974 (ipa_free_size_summary): Call delete instead
6976 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6977 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6978 (ipa_free_all_edge_args): Call destructor and ggc_free.
6979 (ipa_free_all_node_params): Likewise.
6980 (ipcp_free_transformation_sum): Likewise.
6981 * ipa-prop.h (ipa_check_create_node_params):
6982 Call new ggc_alloc_no_dtor.
6983 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6984 (ipa_sra_analysis): Call destructor and ggc_free.
6985 Replace release with delete operator.
6986 * symbol-summary.h (release): Remove ..
6987 (V>::~fast_function_summary): and move logic here.
6988 Likewise for other classes.
6990 2019-10-29 Richard Biener <rguenther@suse.de>
6992 PR tree-optimization/92260
6993 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6996 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6998 PR tree-optimization/88915
6999 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7000 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7001 and make the valueize function pointer also take a void pointer.
7002 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7003 around vn_valueize, to call it without a context.
7004 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7005 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7006 (~_loop_vec_info): Release epilogue_vinfos.
7007 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7008 number of iterations of epilogue.
7009 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7010 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
7011 versioning threshold needed for main loop.
7012 (vect_analyze_loop): Likewise.
7013 (find_in_mapping): New helper function.
7014 (update_epilogue_loop_vinfo): New function.
7015 (vect_transform_loop): When vectorizing epilogues re-use analysis done
7016 on main loop and call update_epilogue_loop_vinfo to update it.
7017 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7018 stmts on loop preheader edge.
7019 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7020 we decided to vectorize epilogues. Update epilogues NITERS and
7021 construct ADVANCE to update epilogues data references where needed.
7022 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7023 (vect_do_peeling, vect_update_inits_of_drs,
7024 determine_peel_for_niter, vect_analyze_loop): Add or update
7026 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7027 created loop_vec_info's for epilogues when available. Otherwise analyse
7028 epilogue separately.
7030 2019-10-29 Richard Biener <rguenther@suse.de>
7032 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7035 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7037 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7038 index for the COND_EXPR from stmt_info rather than reduc_info.
7040 2019-10-29 Richard Biener <rguenther@suse.de>
7042 PR tree-optimization/65930
7043 * tree-vect-loop.c (check_reduction_path): Relax single-use
7044 check allowing out-of-loop uses.
7045 (vect_is_simple_reduction): SLP reduction chains cannot have
7046 intermediate stmts used outside of the loop.
7047 (vect_create_epilog_for_reduction): The adjustment might need
7049 (vectorizable_reduction): Annotate live stmts of the reduction
7050 chain with STMT_VINFO_REDUC_DEF.
7051 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7053 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7055 * calls.c (pass_by_reference): Leave the target to decide whether
7056 POLY_INT_CST-sized arguments should be passed by value or reference,
7057 rather than forcing them to be passed by reference.
7058 (must_pass_in_stack_var_size): Likewise.
7059 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7060 V31_REGNUM to P15_REGNUM.
7061 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7062 Take an extra "silent_p" parameter, defaulting to false.
7063 (aarch64_sve::svbool_type_p): Declare.
7064 (aarch64_sve::nvectors_if_data_type): Likewise.
7065 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7066 (aarch64_frame::reg_offset): Turn into poly_int64s.
7067 (aarch64_frame::save_regs_size): Likewise.
7068 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7069 (aarch64_frame::sve_callee_adjust): Likewise.
7070 (aarch64_frame::spare_reg_reg): Likewise.
7071 (ARM_PCS_SVE): New arm_pcs value.
7072 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7073 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7074 (CUMULATIVE_ARGS::silent_p): Likewise.
7075 (BITS_PER_SVE_PRED): New macro.
7076 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7077 function. Reject aarch64_vector_pcs attributes on SVE functions.
7078 (aarch64_attribute_table): Use the above handler.
7079 (aarch64_sve_abi): New function.
7080 (aarch64_sve_argument_p): Likewise.
7081 (aarch64_returns_value_in_sve_regs_p): Likewise.
7082 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7083 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7084 descriptor for them.
7085 (aarch64_simd_decl_p): Delete.
7086 (aarch64_emit_cfi_for_reg_p): New function.
7087 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7088 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7089 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7090 as partly clobbered for the SVE PCS.
7091 (aarch64_function_ok_for_sibcall): Check whether the two functions
7092 use the same ABI, rather than checking specifically for whether
7093 they're aarch64_vector_pcs functions.
7094 (aarch64_pass_by_reference): Raise an error for attempts to pass
7095 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7096 if there are not enough free registers left, or if the argument is
7098 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7099 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7101 (aarch64_layout_arg): Take a function_arg_info rather than
7102 individual properties. Handle SVE predicates, vectors and tuples.
7103 Raise an error if they are passed to unprototyped functions.
7104 (aarch64_function_arg): If the silent_p flag is set, suppress the
7105 usual error about using float registers without TARGET_FLOAT.
7106 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7107 it in the cumulative_args structure. Initialize aapcs_nprn and
7108 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7109 error about using float registers without TARGET_FLOAT.
7110 If the silent_p flag is not set, also raise an error about
7111 using SVE functions when SVE is disabled.
7112 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7113 and call it for SVE functions too. Update aapcs_nprn similarly
7114 to the other register counts.
7115 (aarch64_layout_frame): If a big-endian function needs to save
7116 and restore Z8-Z15, search for a spare predicate that it can use.
7117 Store SVE predicates at the bottom of the register save area,
7118 followed by SVE vectors, then followed by the normal slots.
7119 Keep pointing the hard frame pointer at the base of the normal slots,
7120 above the SVE vectors. Update the various frame creation and
7121 tear-down strategies for the new layout, initializing the new
7122 sve_callee_adjust field. Add an additional layout for frames
7123 whose saved registers are all SVE registers.
7124 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7125 (aarch64_return_address_signing_enabled): Likewise.
7126 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7127 aarch64_reg_save_mode.
7128 (aarch64_adjust_sve_callee_save_base): New function.
7129 (aarch64_add_cfa_expression): Move earlier in file. Take the
7130 saved register as an rtx rather than a register number and use
7131 its mode for the MEM slot.
7132 (aarch64_save_callee_saves): Remove the mode argument and instead
7133 use aarch64_reg_save_mode to get the mode of each save slot.
7134 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7135 offsets. Allow GP offsets to be saved at a VL-based offset from
7136 the stack, handling this case using the frame pointer if available
7137 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7138 big-endian SVE functions; use normal moves for other SVE saves.
7139 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7140 returns true. Add explicit CFA notes when not storing via the
7141 stack pointer. Do not try to pair SVE saves.
7142 (aarch64_restore_callee_saves): Cope with poly_int64 register
7143 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7144 use normal moves for other SVE restores. Only add CFA restore notes
7145 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7147 (aarch64_get_separate_components): Always keep the first SVE save
7148 in the prologue if we need to use it as a stack probe. Don't allow
7149 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7150 Likewise the spare predicate register that they need. Update the
7151 offset calculation to account for the SVE save area. Use the
7152 appropriate range check for SVE LDR and STR instructions.
7153 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7154 (aarch64_process_components): Likewise. Update the offset
7155 calculation to account for the SVE save area. Only mark the
7156 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7157 Do not try to pair SVE saves.
7158 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7159 reg_offsets. When handling the final allocation, expect the
7160 first SVE register save to be part of the initial allocation
7161 and for it to act as a probe at SP. Account for the SVE callee
7162 save area in the dump information.
7163 (aarch64_expand_prologue): Update the frame diagram. Fold the
7164 SVE callee allocation into the initial allocation if stack clash
7165 protection is enabled. Use new variables to track the offset
7166 of the frame chain (and hard frame pointer) from the current
7167 stack pointer, and likewise the offset of the bottom of the
7168 register save area. Update calls to aarch64_save_callee_saves
7169 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7170 saving the FP&SIMD registers. Save the predicate registers.
7171 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7172 into account when setting the stack pointer from the frame pointer,
7173 and when deciding whether we can inherit the initial adjustment
7174 amount from the prologue. Restore the predicate registers after
7175 the vector registers, then apply sve_callee_adjust, then restore
7176 the general registers.
7177 (aarch64_secondary_reload): Don't use secondary SVE reloads
7179 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7180 (aarch64_short_vector_p): Return false for SVE types.
7181 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7182 at the start of the function. Return false for SVE types.
7183 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7185 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7186 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7187 to big-endian targets for bytewise moves.
7188 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7190 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7191 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7192 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7194 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7195 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7196 aarch64-sve-builtins-base.o to extra_objs. Add
7197 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7198 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7199 (aarch64-sve-builtins-shapes.o): Likewise.
7200 (aarch64-sve-builtins-base.o): New rules.
7201 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7202 (aarch64_resolve_overloaded_builtin): Likewise.
7203 (aarch64_check_builtin_call): Likewise.
7204 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7205 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7207 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7208 (aarch64_svprfop): New enum.
7209 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7210 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7211 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7212 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7213 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7214 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7215 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7216 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7217 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7218 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7219 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7220 (aarch64_sve::mangle_builtin_type): Likewise.
7221 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7222 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7223 (aarch64_sve::expand_builtin): Likewise.
7224 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7225 (aarch64_sve_int_mode): Likewise.
7226 (aarch64_ptrue_all_mode): New function.
7227 (aarch64_convert_sve_data_to_pred): Make public.
7228 (svprfop_token): New function.
7229 (aarch64_output_sve_prefetch): Likewise.
7230 (aarch64_fold_sve_cnt_pat): Likewise.
7231 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7232 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7233 instead of gen_while_ult.
7234 (aarch64_replace_reg_mode): Make public.
7235 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7236 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7237 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7238 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7239 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7240 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7241 (aarch64_sve_ptrue_svpattern_p): Likewise.
7242 (aarch64_sve_pred_valid_immediate): Check
7243 aarch64_sve_ptrue_svpattern_p.
7244 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7245 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7247 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7248 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7249 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7250 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7251 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7252 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7254 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7255 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7256 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7257 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7258 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7259 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7260 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7261 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7262 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7263 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7264 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7265 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7266 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7267 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7268 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7269 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7270 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7271 (Vesize): Handle partial vector modes.
7272 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7274 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7276 (s, paired_extend, inc_dec): New code attributes.
7277 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7278 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7279 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7280 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7281 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7282 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7284 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7285 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7286 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7287 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7288 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7289 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7290 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7291 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7292 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7293 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7294 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7295 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7296 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7297 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7298 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7299 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7301 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7302 (binqops_op, binqops_op_rev, last_op): New int attributes.
7303 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7304 (fn, ab): New int attributes.
7305 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7306 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7307 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7308 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7310 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7311 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7312 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7313 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7314 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7316 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7317 (brk_reg_con, brk_reg_opno): New int attributes.
7318 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7319 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7320 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7322 (max_elem_bits): New int attribute.
7323 (min_elem_bits): Handle UNSPEC_RBIT.
7324 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7325 TRUNCATE as well as SUBREG.
7326 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7327 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7328 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7329 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7330 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7331 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7332 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7333 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7334 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7335 (aarch64_gather_scale_operand_h): New predicates.
7336 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7337 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7338 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7339 (*aarch64_sve_reinterpret<mode>): Allow any source register
7340 instead of requiring an exact match.
7341 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7342 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7343 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7344 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7345 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7346 (aarch64_update_ffrt): New patterns.
7347 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7348 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7349 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7350 (@aarch64_ld<fn>f1<mode>): New patterns.
7351 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7352 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7353 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7354 (@aarch64_ldnt1<mode>): New patterns.
7355 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7356 the scalar part of the address.
7357 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7358 scalar part of the addresse and add an alternative for handling
7360 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7361 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7362 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7363 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7364 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7365 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7366 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7367 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7368 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7369 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7370 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7371 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7372 (@aarch64_sve_prefetch<mode>): New patterns.
7373 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7374 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7375 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7376 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7377 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7378 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7379 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7380 (@aarch64_stnt1<mode>): New patterns.
7381 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7382 the scalar part of the address.
7383 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7384 the scalar part of the addresse and add an alternative for handling
7386 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7387 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7388 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7389 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7390 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7391 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7393 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7394 (extract_last_<mode>): Generalize to...
7395 (@extract_<LAST:last_op>_<mode>): ...this.
7396 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7397 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7398 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7399 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7400 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7401 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7402 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7403 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7404 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7405 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7406 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7407 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7408 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7409 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7410 (*aarch64_adr_uxtw_unspec): Likewise.
7411 (*aarch64_adr_uxtw): Rename to...
7412 (*aarch64_adr_uxtw_and): ...this.
7413 (@aarch64_adr<mode>_shift): New expander.
7414 (*aarch64_adr_shift_sxtw): New pattern.
7415 (aarch64_<su>abd<mode>_3): Rename to...
7416 (@aarch64_pred_<su>abd<mode>): ...this.
7417 (<su>abd<mode>_3): Update accordingly.
7418 (@aarch64_cond_<su>abd<mode>): New expander.
7419 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7420 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7421 (*<su>mul<mode>3_highpart): Rename to...
7422 (@aarch64_pred_<optab><mode>): ...this.
7423 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7424 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7425 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7426 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7427 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7428 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7429 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7430 (*v<ASHIFT:optab><mode>3): Rename to...
7431 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7432 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7433 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7434 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7435 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7436 (@cond_asrd<mode>): New expander.
7437 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7438 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7439 (*sdiv_pow2<mode>3): Delete.
7440 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7441 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7442 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7443 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7444 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7445 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7446 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7447 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7448 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7449 (*add<SVE_F:mode>3): Rename to...
7450 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7452 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7453 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7454 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7455 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7456 (*sub<SVE_F:mode>3): Rename to...
7457 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7459 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7460 (*fabd<SVE_F:mode>3): Rename to...
7461 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7462 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7463 (*mul<SVE_F:mode>3): Rename to...
7464 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7466 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7467 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7469 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7470 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7471 (*<nlogical><PRED_ALL:mode>3): Rename to...
7472 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7473 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7474 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7475 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7476 (aarch64_pred_<logical_nn><mode>_z): ...this.
7477 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7478 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7479 (*fma<SVE_I:mode>4): Rename to...
7480 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7481 (*fnma<SVE_I:mode>4): Rename to...
7482 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7483 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7484 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7485 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7486 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7487 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7488 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7489 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7490 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7491 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7492 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7493 (@aarch64_sve_tmad<mode>): Likewise.
7494 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7495 (*aarch64_sel_dup<mode>): Rename to...
7496 (@aarch64_sel_dup<mode>): ...this.
7497 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7498 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7499 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7500 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7501 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7502 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7503 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7504 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7505 (*fcm<cmp_op><mode>): Rename to...
7506 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7507 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7508 (*fcmuo<mode>): Rename to...
7509 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7510 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7511 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7512 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7513 (fold_extract_last_<mode>): Generalize to...
7514 (@fold_extract_<last_op>_<mode>): ...this.
7515 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7516 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7517 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7518 DImode result explicit.
7519 (reduc_plus_scal_<mode>): Update accordingly.
7520 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7521 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7522 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7523 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7524 (*aarch64_sve_tbl<mode>): Rename to...
7525 (@aarch64_sve_tbl<mode>): ...this.
7526 (@aarch64_sve_compact<mode>): New pattern.
7527 (*aarch64_sve_dup_lane<mode>): Rename to...
7528 (@aarch64_sve_dup_lane<mode>): ...this.
7529 (@aarch64_sve_dupq_lane<mode>): New pattern.
7530 (@aarch64_sve_splice<mode>): Likewise.
7531 (aarch64_sve_<perm_insn><mode>): Rename to...
7532 (@aarch64_sve_<perm_insn><mode>): ...this.
7533 (*aarch64_sve_ext<mode>): Rename to...
7534 (@aarch64_sve_ext<mode>): ...this.
7535 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7536 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7538 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7539 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7541 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7543 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7544 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7545 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7546 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7548 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7549 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7551 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7552 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7553 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7555 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7556 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7557 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7558 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7559 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7561 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7562 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7563 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7564 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7565 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7566 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7567 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7568 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7569 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7570 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7571 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7572 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7573 (aarch64_sve_cnt_pat): Likewise.
7574 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7575 (*aarch64_sve_incsi_pat): Likewise.
7576 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7577 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7578 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7579 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7580 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7581 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7582 (*aarch64_sve_decsi_pat): Likewise.
7583 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7584 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7585 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7586 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7587 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7588 (@aarch64_pred_cntp<mode>): Likewise.
7589 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7591 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7592 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7593 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7595 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7597 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7598 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7599 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7600 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7601 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7602 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7603 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7605 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7606 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7607 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7609 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7611 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7613 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7614 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7616 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7617 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7619 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7620 * config/aarch64/arm_sve.h: New file.
7621 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7622 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7623 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7624 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7625 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7626 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7627 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7628 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7629 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7631 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7633 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7635 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7638 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7640 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7641 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7643 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7644 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7645 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7646 (aarch64_hard_regno_nregs): Handle the new register classes.
7647 (aarch64_hard_regno_mode_ok): Likewise.
7648 (aarch64_regno_regclass): Likewise.
7649 (aarch64_class_max_nregs): Likewise.
7650 (aarch64_register_move_cost): Likewise.
7651 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7652 as general register_operands.
7654 2019-10-29 Martin Liska <mliska@suse.cz>
7656 * ggc-common.c: One can't subtract unsigned types
7657 in compare function.
7659 2019-10-29 Martin Liska <mliska@suse.cz>
7661 * cgraphunit.c (symbol_table::compile): Pass
7662 title as dump_memory_report argument.
7663 * toplev.c (dump_memory_report): New argument.
7664 (finalize): Pass new argument.
7665 * toplev.h (dump_memory_report): Add argument.
7667 2019-10-29 Martin Liska <mliska@suse.cz>
7669 * ggc-common.c: Move Leak to the first column.
7671 2019-10-29 Martin Liska <mliska@suse.cz>
7673 * cgraphunit.c (symbol_table::compile): Remove argument
7674 for dump_memory_report.
7675 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7676 (compare_final): Remove in order to make report
7678 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7679 * mem-stats.h (mem_alloc_description::get_list):
7681 (mem_alloc_description::dump): Likewise here.
7682 * toplev.c (dump_memory_report): Remove final
7684 (finalize): Likewise.
7685 * toplev.h (dump_memory_report): Remove argument.
7687 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7689 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7690 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7691 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7692 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7695 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7697 * coretypes.h (string_int_pair): New typedef.
7698 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7699 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7700 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7702 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7704 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7705 (simulate_builtin_function_decl): Declare.
7706 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7707 (LANG_HOOKS_INITIALIZER): Include it.
7708 * langhooks.c (add_builtin_function_common): Rename to...
7709 (build_builtin_function): ...this. Add a location parameter and use
7710 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7712 (add_builtin_function): Update accordingly, passing the returned
7713 decl to the lang hook.
7714 (add_builtin_function_ext_scope): Likewise
7715 (simulate_builtin_function_decl): New function.
7717 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7719 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7720 example, use actual names of supported offload targets.
7723 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7725 2019-10-28 Martin Sebor <msebor@redhat.com>
7727 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7728 (handle_store): Pass argument to get_addr_stridx.
7730 2019-10-28 Martin Sebor <msebor@redhat.com>
7732 PR tree-optimization/92226
7733 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7734 the offset is in the open range outlined by SI's length.
7736 2019-10-28 Martin Sebor <msebor@redhat.com>
7739 * doc/cpp.texi (__has_builtin): Document.
7740 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7742 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7745 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7746 doubleword and low doubleword result of multiplication on
7749 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7750 pure qualifier to the built-in.
7751 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7753 (struct mips_builtin_description): Add is_pure flag.
7754 (mips_init_builtins): Mark built-in as pure if the flag in the
7755 corresponding mips_builtin_description struct is set.
7757 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7758 alternative which covers the floating-point input value. Also
7759 forbid the split of insert.d pattern for floating-point values.
7761 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7763 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7764 * config/riscv/riscv-sr.c: New file.
7765 * config/riscv/riscv.c (riscv_reorg): New function.
7766 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7767 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7768 (riscv_remove_unneeded_save_restore_calls): Declare.
7769 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7771 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7773 PR tree-optimization/92163
7774 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7775 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7776 before calling bitmap_set_bit.
7777 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7778 delete_dead_or_redundant_assignment.
7779 (dse_dom_walker::dse_optimize_stmt): Likewise.
7780 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7782 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7785 * tree-vect-stmts.c (vectorizable_condition): Support
7786 EXTRACT_LAST_REDUCTION with fully-masked loops.
7788 2019-10-28 Richard Biener <rguenther@suse.de>
7790 PR tree-optimization/92252
7791 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7792 STMT_VINFO_REDUC_IDX when swapping operands.
7794 2019-10-28 Richard Biener <rguenther@suse.de>
7796 PR tree-optimization/92241
7797 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7798 we failed to update the reduction index do not use the pattern
7799 stmts for the reduction chain.
7800 (vectorizable_reduction): When the reduction chain is corrupt,
7802 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7803 fail to update the reduction chain.
7805 2019-10-28 Richard Biener <rguenther@suse.de>
7807 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7808 STMT_VINFO_REDUC_IDX from the actual stmt.
7809 (vect_transform_reduction): Likewise.
7810 (vectorizable_reduction): Compute the reduction chain length,
7811 do not recompute the reduction operand index. Remove no longer
7812 necessary restriction for condition reduction chains.
7814 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7817 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7818 condition for V2DImode.
7820 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7822 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7823 Remove %k operand modifier.
7824 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7826 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7828 PR rtl-optimization/92007
7829 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7830 call it after reload if hot/cold partitioning has been done.
7831 (class pass_postreload_jump): Rename to
7832 pass_jump_after_combine.
7833 (make_pass_postreload_jump): Rename to
7834 make_pass_jump_after_combine.
7835 * passes.def(pass_postreload_jump): Move before reload, rename
7836 to pass_jump_after_combine.
7837 * tree-pass.h (make_pass_postreload_jump): Rename to
7838 make_pass_jump_after_combine.
7840 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7843 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7844 for missing EDGE_REF
7845 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7847 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7849 PR tree-optimization/88760
7850 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7851 Enable -funroll-loops for -O2 and above.
7852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7853 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7854 do not turn on web and rngreg implicitly, if the unroller is not
7857 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7859 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7862 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7864 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7865 * cgraph.h (cgraph_node::rtl_info): Likewise.
7867 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7869 * ipa-cp.c (propagate_constants_across_call): If args are not available
7870 just drop everything to varying.
7871 (find_aggregate_values_for_callers_subset): Watch for missing
7873 (find_more_scalar_values_for_callers_subs): Likewise.
7874 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7875 update_jump_functions_after_inlining, propagate_controlled_uses):
7876 Watch for missing summaries.
7877 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7879 (ipa_write_node_info): Watch for missing summaries.
7880 (ipa_read_edge_info): Create new ref.
7881 (ipa_edge_args_sum_t): Add remove.
7882 (IPA_EDGE_REF_GET_CREATE): New macro.
7883 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7885 (remap_edge_change_prob): Likewise.
7887 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7889 * ipa-inline-transform.c (inline_call): update function summaries
7890 after expanidng thunk.
7892 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7894 * ipa-icf.c (sem_function::merge): Update function summaries.
7895 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7897 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7899 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7900 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7901 operand already has scalar mode.
7902 (iptr): Remove SF/DF.
7904 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7907 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7908 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7911 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7913 * config/i386/sse.md
7914 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7915 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7916 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7917 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7918 <sse>_vmmaskcmp<mode>3):
7919 Change predicates from vector_operand to nonimmediate_operand,
7920 constraints xBm to xm, since scalar operations don't need
7921 memory address alignment.
7922 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7923 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7924 round_saeonly_nimm_predicate with
7925 round_saeonly_nimm_scalar_predicate.
7926 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7927 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7928 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7929 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7930 avx512f_vmfmadd_<mode>_mask3<round_name>,
7931 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7932 *avx512f_vmfmsub_<mode>_mask<round_name>,
7933 avx512f_vmfmsub_<mode>_mask3<round_name>,
7934 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7935 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7936 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7937 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7938 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7939 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7940 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7941 cvtusi2<ssescalarmodesuffix>32<round_name>,
7942 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7943 round_nimm_predicate with round_nimm_scalr_predicate.
7944 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7945 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7946 avx512er_vmrcp28<mode><round_saeonly_name>,
7947 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7948 ): Replace round_saeonly_nimm_predicate with
7949 round_saeonly_nimm_scalar_predicate.
7950 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7951 vector_operand with nonimmediate_operand.
7952 * config/i386/subst.md (round_scalar_nimm_predicate,
7953 round_saeonly_scalar_nimm_predicate): Replace
7954 vector_operand with nonimmediate_operand.
7956 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7959 * config/i386/i386.md (*rcpsf2_sse): Add
7960 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7961 (*rsqrtsf2_sse): Ditto.
7962 (*sqrt<mode>2_sse): Ditto.
7963 (sse4_1_round<mode>2): separate constraint vm, add
7964 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7965 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7967 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7969 (*sse_vmrsqrtv4sf2): Ditto.
7970 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7971 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7972 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7973 <iptr> pointer size modifier since vround support memory operand.
7975 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7978 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7981 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7982 Tobias Burnus <tobias@codesourcery.com>
7984 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7985 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7988 2019-10-25 Richard Biener <rguenther@suse.de>
7990 PR tree-optimization/92222
7991 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7992 (_slp_oprnd_info::second_pattern): Likewise.
7993 (_slp_oprnd_info::any_pattern): New.
7994 (vect_create_oprnd_info): Adjust.
7995 (vect_get_and_check_slp_defs): Compute whether any stmt is
7997 (vect_build_slp_tree_2): Avoid building up a node from scalars
7998 if any of the operand defs, not just the first, is in a pattern.
8000 2019-10-25 Richard Biener <rguenther@suse.de>
8002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8003 swapping if we actually have to modify the IL on a shared stmt.
8004 (vect_build_slp_tree_2): Never fail swapping on shared stmts
8005 because we no longer modify the IL.
8007 2019-10-25 Martin Liska <mliska@suse.cz>
8009 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8011 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
8013 * tree-vect-loop.c (vectorizable_reduction): Restrict the
8014 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8015 handled by vect_transform_reduction. Allow fully-masked loops
8016 to be used with reduction chains.
8017 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8018 operations in fully-masked loops.
8019 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8020 operations in fully-masked loops.
8022 2019-10-25 Richard Biener <rguenther@suse.de>
8024 * tree-vect-loop.c (vectorizable_reduction): Verify
8025 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8027 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8028 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8031 2019-10-24 Jakub Jelinek <jakub@redhat.com>
8033 * gimplify.h (omp_construct_selector_matches): Declare.
8034 * gimplify.c (struct gimplify_omp_ctx): Add code member.
8035 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8036 called function if needed for flag_openmp.
8037 (gimplify_scan_omp_clauses): Set ctx->code.
8038 (omp_construct_selector_matches): New function.
8039 * omp-general.h (omp_constructor_traits_to_codes,
8040 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8041 * omp-general.c (omp_constructor_traits_to_codes,
8042 omp_context_selector_matches, omp_resolve_declare_variant): New
8045 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8047 * config/rx/rx.c (rx_print_operand): Likewise.
8048 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8049 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8050 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8052 * genemit.c (emit_c_code): Likewise.
8053 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8055 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8057 * symbols-summary.h (fast_function_summary<T *, V>::release,
8058 fast_call_summary<T *, V>::release): Free m_vector.
8060 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8062 * cgraphunit.c (symbol_table::process_new_functions): Call
8063 ipa_free_size_summary.
8064 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8065 (devirtualization_time_bonus): Update.
8066 (ipcp_propagate_stage): Update.
8067 * ipa-fnsummary.c (ipa_size_summaries): New.
8068 (ipa_fn_summary_alloc): Alloc size summary.
8069 (dump_ipa_call_summary): Update.
8070 (ipa_dump_fn_summary): Update.
8071 (analyze_function_body): Update.
8072 (compute_fn_summary): Likewise.
8073 (ipa_get_stack_frame_offset): New function.
8074 (inline_update_callee_summaries): Do not update frame offsets.
8075 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8076 remove call and function summary.
8077 (ipa_update_overall_fn_summary): Update.
8078 (inline_read_section): Update.
8079 (ipa_fn_summary_write): Update.
8080 (ipa_free_fn_summary): Do not remove summaries.
8081 (ipa_free_size_summary): New.
8082 (release summary pass): Also run at WPA.
8083 * ipa-fnsummary.h (ipa_size_summary): Declare.
8084 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8085 estimated_self_stack_size.
8086 (ipa_size_summary_t): New type.
8087 (ipa_size_summaries): Declare.
8088 (ipa_free_size_summary): Declare.
8089 (ipa_get_stack_frame_offset): Declare.
8090 * ipa-icf.c (sem_function::merge): Update.
8091 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8092 (estimate_growth): Update.
8093 (growth_likely_positive): Update.
8094 (clone_inlined_nodes): Update.
8095 (inline_call): Update.
8096 * ipa-inline.c (caller_growth_limits): Update.
8097 (edge_badness): Update.
8098 (recursive_inlining): Update.
8099 (inline_small_functions): Update.
8100 (inline_to_all_callers_1): Update.
8101 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8103 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8105 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8106 (uavg<mode>3_ceil): ... This.
8107 (altivec_vavgs<VI_char>): Rename to...
8108 (avg<mode>3_ceil): ... This.
8109 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8110 VAVGUW, VAVGSW): Adjust.
8112 2019-10-24 Nathan Sidwell <nathan@acm.org>
8114 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8116 2019-10-24 Martin Liska <mliska@suse.cz>
8118 * symbol-summary.h (gt_pch_nx): Mark all functions
8119 with gcc_unreachable as we do not expect to be called.
8121 2019-10-24 Richard Biener <rguenther@suse.de>
8123 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8124 chains try harder with operand swapping and instead of
8125 putting a shifted chain into the reduction operands put
8126 a repetition of the final reduction op there as if we'd
8127 reassociate the expression.
8129 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8131 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8132 statics_not_read and statics_not_written to statics_read and
8133 statics_written respectively.
8134 (no_module_statics): New static var.
8135 (ipa_reference_get_not_read_global): Rename to ...
8136 (ipa_reference_get_read_global): ... this.
8137 (ipa_reference_get_not_written_global): Rename to ...
8138 (ipa_reference_get_written_global): ... this.
8139 (dump_static_vars_set_to_file): Dump no_module_statics.
8140 (copy_static_var_set): Add for propagation parameter.
8141 (ipa_init): Initialize no_module_statics.
8142 (ipa_ref_opt_summary_t::duplicate): Update.
8143 (ipa_ref_opt_summary_t::remove): Update.
8144 (propagate): Update.
8145 (write_node_summary_p): Look correctly for bitmap differences.
8146 (ipa_reference_write_optimization_summary): Update.
8147 (ipa_reference_read_optimization_summary): Update.
8149 (ipa_reference_get_not_read_global): Rename to ...
8150 (ipa_reference_get_read_global): ... this.
8151 (ipa_reference_get_not_written_global): Rename to ...
8152 (ipa_reference_get_written_global): ... this.
8153 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8154 (call_may_clobber_ref_p_1): Update.
8156 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8158 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8160 (msp430_hard_regno_nregs_with_padding): Remove.
8162 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8164 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8165 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8166 shift amount is between 1 and 4.
8167 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8170 2019-10-24 Richard Biener <rguenther@suse.de>
8172 PR tree-optimization/92205
8173 * tree-vect-loop.c (vectorizable_reduction): Restrict
8174 search for alternate vectype_in to lane-reducing patterns
8177 2019-10-24 Richard Biener <rguenther@suse.de>
8179 PR tree-optimization/92203
8180 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8181 Skip eliminating conversion stmts inserted by insertion.
8183 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8185 * config/s390/s390.c (s390_get_thread_pointer): Use
8186 gen_get_thread_pointer.
8187 (s390_expand_split_stack_prologue): Likewise.
8188 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8189 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8190 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8191 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8194 2019-10-24 Richard Biener <rguenther@suse.de>
8196 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8197 SLP discovery fails try to handle the reduction as part
8198 of SLP reduction discovery.
8200 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8202 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8204 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8205 attribute if it exists, rather than the insn size. If we use the
8206 insn size, adjust the size to remove the extra size that prefixed
8208 (rs6000_adjust_insn_length): New function.
8209 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8210 update the instruction sized if prefixed instructions are used.
8211 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8212 (non_prefixed_length attribute): Delete.
8213 (num_insns attribute): New insn attribute to return the number of
8215 (max_prefixed_insns attribute): New insn attribute to return the
8216 maximum number of prefixed instructions in an insn.
8217 (length attribute): Do not adjust for prefix instructions here,
8218 punt to ADJUST_INSN_LENGTH.
8219 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8220 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8221 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8222 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8223 max_prefixed_insns and num_insns.
8225 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8226 (movtd_64bit_nodm): Reformat.
8227 (mov<mode>_32bit): Reformat.
8228 (mov<mode>_softfloat): Reformat.
8229 (FMOVE128_GPR splitter): Reformat.
8230 (DIFD splitter): Reformat.
8231 (TI2 splitter): Reformat.
8232 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8233 bits of the offset for the memory address are non-zero, use PLWA
8234 if prefixed instructions are available.
8236 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8238 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8240 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8242 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8245 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8247 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8248 (cmp_symbol_files): New.
8249 (lto_output): Copy sections in file order.
8250 * lto-streamer.h (lto_file_decl_data): Add field order.
8252 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8254 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8255 * ipa-reference.c (reference_vars_map_t): new type.
8256 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8257 (ipa_reference_var_uid): Implement.
8258 (varpool_node_hooks): New static var.
8259 (varpool_removal_hook): New function.
8260 (is_improper): Do not check bitmap for id==-1
8261 (get_static_name): Update.
8262 (ipa_init): Initialize new datastructures.
8263 (analyze_function): Do not recompute ids.
8264 (propagate): Free reference_vars_to_consider.
8265 (stream_out_bitmap): Update.
8266 (ipa_reference_read_optimization_summary): Update.
8268 2019-10-23 qing zhao <qing.zhao@oracle.com>
8270 PR gcov-profile/91971
8271 * coverage.c (coverage_init): Mangle the full path of filename when
8272 filename is a absolute path.
8274 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8276 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8277 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8278 (msp430_has_hwmult): New.
8279 (msp430_output_labelref):
8280 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8281 * config/msp430/msp430.md (mulhisi3): Likewise.
8282 (umulhisi3): Likewise.
8283 (mulsidi3): Likewise.
8284 (umulsidi3): Likewise.
8286 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8289 * params.def (inline-heuristics-hint-percent): Set to 600.
8291 2019-10-23 Richard Biener <rguenther@suse.de>
8293 PR tree-optimization/65930
8294 * tree-vect-loop.c (check_reduction_path): Allow conversions
8295 that only change the sign.
8296 (vectorizable_reduction): Relax latch def stmts we handle further.
8298 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8301 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8302 (remove_unused_ivs): Use it instead of get_computation_at. When
8303 choosing best candidate, only consider candidates where
8304 get_debug_computation_at actually returns non-NULL.
8306 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8308 PR tree-optimization/92131
8309 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8310 range would be symbolic, drop to varying for any explicit overflow
8311 in the constant part or if neither range is a singleton.
8313 2019-10-23 Martin Liska <mliska@suse.cz>
8316 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8319 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8321 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8322 int_mode_for_mode rather than mode_for_int_vector for scalars.
8324 2019-10-23 Richard Biener <rguenther@suse.de>
8326 PR tree-optimization/92179
8327 * tree-vect-stmts.c (vectorizable_shift): For shift args
8328 that are all the same remove type restriction in the SLP case.
8329 Adjust SLP code to handle converting of the shift arg to
8330 only apply in case the modes are different.
8332 2019-10-23 Martin Liska <mliska@suse.cz>
8335 * ipa-inline.c (recursive_inlining): Do not print
8336 when curr->count is not initialized.
8338 2019-10-23 Richard Biener <rguenther@suse.de>
8340 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8341 op from scalars in case there's a constant operand in its
8344 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8346 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8347 against out of range max skip or log values.
8349 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8351 * cgraph.c (dump_graphviz): Change name to dump_name
8353 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8355 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8356 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8357 subtraction from a carry operation.
8359 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8361 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8363 2019-10-22 Richard Biener <rguenther@suse.de>
8365 PR tree-optimization/92173
8366 * tree-vect-loop.c (vectorizable_reduction): If
8367 vect_transform_reduction cannot handle code-generation try without
8368 the single-def-use-cycle optimization. Pass optab_vector to
8369 optab_for_tree_code to get vector shifts as that's what we'd
8372 2019-10-22 Michael Matz <matz@suse.de>
8375 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8376 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8377 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8379 2019-10-22 Richard Biener <rguenther@suse.de>
8381 PR tree-optimization/92173
8382 * tree-vect-loop.c (vectorizable_reduction): If
8383 vect_transform_reduction cannot handle code-generation try without
8384 the single-def-use-cycle optimization. Pass optab_vector to
8385 optab_for_tree_code to get vector shifts as that's what we'd
8388 2019-10-22 Martin Liska <mliska@suse.cz>
8390 * diagnostic-format-json.cc (json_from_expanded_location):
8391 Use json::integer_number.
8392 * gcov.c (output_intermediate_json_line): Use new
8393 json::integer_number.
8394 (output_json_intermediate_file): Likewise.
8395 * json.cc (number::print): Move to ...
8396 (float_number::print): ... this.
8397 (integer_number::print): New.
8398 (test_writing_numbers): Move to ...
8399 (test_writing_float_numbers): ... this.
8400 (test_writing_integer_numbers): New.
8401 (json_cc_tests): Register test_writing_integer_numbers.
8402 * json.h (class value): Add forward declaration
8403 for float_number and integer_number.
8404 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8405 (class number): Move to ...
8406 (class float_number): ... this.
8407 (class integer_number): New.
8408 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8409 Use json::integer_number.
8410 (optrecord_json_writer::location_to_json): Likewise.
8411 (optrecord_json_writer::profile_count_to_json): Likewise.
8412 (optrecord_json_writer::pass_to_json): Likewise.
8414 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8416 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8417 autodetected_vector_size rather than vector_size is zero.
8418 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8419 Set autodetected_vector_size immediately after calling
8420 vect_analyze_loop_2. Check for a fatal error before advancing
8423 2019-10-21 Jason Merrill <jason@redhat.com>
8425 * lock-and-run.sh: Check for process existence rather than timeout.
8427 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8429 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8430 widening multiplication.
8432 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8434 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8435 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8437 (subsi3_carryin_shift): Separate into register and constant controlled
8438 alternatives. Use shift_amount_operand for operand 4. Set shift
8439 attribute and simplify type attribute.
8440 (subsi3_carryin_shift_alt): Likewise.
8441 (rsbsi3_carryin_shift): Likewise.
8442 (rsbsi3_carryin_shift_alt): Likewise.
8443 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8444 and register controlled shifts into distinct alternatives.
8445 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8446 (andsi_not_shiftsi_si_scc): Likewise.
8447 (arm_cmpsi_negshiftsi_si): Likewise.
8448 (not_shiftsi): Remove redundant M constraint from alternative 1.
8449 (not_shiftsi_compare0): Likewise.
8450 (arm_cmpsi_insn): Remove redundant alternative 2.
8451 (cmpsi_shift_swp): Likewise.
8452 (sub_shiftsi): Likewise.
8453 (sub_shiftsi_compare0_scratch): Likewise.
8454 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8455 (thumb2_cmpsi_neg_shiftsi): Likewise.
8457 2019-10-21 Richard Biener <rguenther@suse.de>
8459 PR tree-optimization/92162
8460 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8461 STMT_VINFO_REDUC_IDX in reduc_info.
8462 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8464 2019-10-21 Richard Biener <rguenther@suse.de>
8466 * tree-vectorizer.h (_slp_tree::ops): New member.
8467 (SLP_TREE_SCALAR_OPS): New.
8468 (vect_get_slp_defs): Adjust prototype.
8469 * tree-vect-slp.c (vect_free_slp_tree): Release
8470 SLP_TREE_SCALAR_OPS.
8471 (vect_create_new_slp_node): Initialize it. New overload for
8472 initializing by an operands array.
8473 (_slp_oprnd_info::ops): New member.
8474 (vect_create_oprnd_info): Initialize it.
8475 (vect_free_oprnd_info): Release it.
8476 (vect_get_and_check_slp_defs): Populate the operands array.
8477 Do not swap operands in the IL when not necessary.
8478 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8479 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8480 swap operands in the operands array. Do not swap operands in
8482 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8483 (vect_gather_slp_loads): Fix.
8484 (vect_detect_hybrid_slp_stmts): Likewise.
8485 (vect_slp_analyze_node_operations_1): Search for a internal
8486 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8487 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8488 the def-type push/pop dance.
8489 (vect_get_constant_vectors): Compute number_of_vectors here.
8490 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8491 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8492 (vect_get_slp_defs): Simplify greatly.
8493 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8494 (vect_transform_reduction): Likewise.
8495 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8496 (vectorizable_call): Likewise.
8497 (vectorizable_operation): Likewise.
8498 (vectorizable_load): Likewise.
8499 (vectorizable_condition): Likewise.
8500 (vectorizable_comparison): Likewise.
8502 2019-10-21 Richard Biener <rguenther@suse.de>
8504 PR tree-optimization/92161
8505 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8508 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8510 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8511 (aarch64_rndr): New define_insn.
8512 (aarch64_rndrrs): Likewise.
8513 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8514 (TARGET_RNG): Likewise.
8515 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8517 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8518 Add fourth argument in prototype.
8519 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8520 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8521 (aarch64_init_rng_builtins): Define.
8522 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8523 (aarch64_expand_rng_builtin): Define.
8524 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8526 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8527 __ARM_FEATURE_RNG when TARGET_RNG.
8528 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8530 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8532 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8533 alignment is more restrictive.
8535 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8537 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8538 (vect_update_max_nunits): Update comment.
8539 (current_vector_size): Delete.
8540 * tree-vect-stmts.c (current_vector_size): Likewise.
8541 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8542 of current_vector_size.
8543 (get_mask_type_for_scalar_type): Likewise.
8544 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8545 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8546 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8547 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8548 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8549 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8551 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8553 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8554 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8555 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8558 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8560 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8561 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8562 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8564 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8566 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8568 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8570 (vect_set_loop_condition_masked): Update call accordingly.
8572 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8574 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8575 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8576 (simple_integer_narrowing): Update call accordingly.
8577 (vectorizable_conversion): Likewise.
8579 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8581 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8582 (vectorizable_call): Update call accordingly.
8584 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8586 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8587 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8588 (duplicate_and_interleave): Update call accordingly.
8589 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8591 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8593 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8594 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8595 (vect_get_constant_vectors): Update call accordingly.
8596 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8598 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8600 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8601 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8602 (vect_prologue_cost_for_slp_op): Update call accordingly.
8603 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8604 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8605 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8606 (get_mask_type_for_scalar_type): Likewise.
8607 (vect_get_vector_types_for_stmt): Likewise.
8608 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8609 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8610 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8611 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8612 (vect_split_statement, vect_convert_input): Likewise.
8613 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8614 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8615 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8616 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8617 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8618 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8619 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8620 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8621 (vect_recog_mask_conversion_pattern): Likewise.
8622 (vect_add_conversion_to_pattern): Likewise.
8623 (vect_recog_gather_scatter_pattern): Likewise.
8624 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8625 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8627 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8629 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8630 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8631 (vect_check_load_store_mask): Update call accordingly.
8632 (vect_get_mask_type_for_stmt): Likewise.
8633 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8634 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8635 (vect_convert_mask_for_vectype): Likewise.
8637 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8639 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8641 (vect_recog_dot_prod_pattern): Update call accordingly.
8642 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8643 (vect_recog_widen_sum_pattern): Likewise.
8645 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8647 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8648 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8649 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8652 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8654 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8655 get_vectype_for_scalar_type_and_size instead of
8656 get_vectype_for_scalar_type.
8658 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8660 * common.opt (-fcommon): Fix description.
8662 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8664 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8665 * config/i386/i386.c (ix86_pre_reload_split): New function.
8666 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8667 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8668 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8669 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8670 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8671 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8672 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8673 *<shift_insn><dwi>3_doubleword_mask,
8674 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8675 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8676 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8677 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8678 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8679 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8680 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8681 *avx2_<code>v8qiv8si2<mask_name>_2,
8682 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8683 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8684 *avx512f_<code>v8qiv8di2<mask_name>_2,
8685 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8686 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8687 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8688 sse4_2_pcmpistr): Likewise.
8690 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8692 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8693 now defaults to https.
8695 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8697 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8698 skip non-zero array accesses.
8700 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8702 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8703 and return a boolean success value. Move the allocation and
8704 initialization of the bb_vec_info to...
8705 (vect_slp_bb_region): ...here. Update call accordingly.
8706 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8707 than in vect_slp_analyze_bb_1.
8709 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8711 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8712 when processing the given datarefs for the first time and
8713 check_datarefs subsequently.
8714 (vect_slp_bb_region): New function, split out of...
8715 (vect_slp_bb): ...here. Don't recompute the region bounds and
8716 dataref sets when retrying with a different vector size.
8718 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8719 Uroš Bizjak <ubizjak@gmail.com>
8722 * config/i386/predicates.md (int_nonimmediate_operand): New special
8724 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8725 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8726 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8727 define_insn_and_split patterns.
8729 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8731 * config/rs6000/rs6000.md: Delete out--of-date comment about
8732 special-casing integer loads.
8734 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8736 * escaped_string.h (escaped_string): New header.
8737 * tree.c (escaped_string): Remove escaped_string class.
8739 2019-10-18 Martin Sebor <msebor@redhat.com>
8741 PR tree-optimization/92157
8742 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8743 compute_string_length to return a negative result.
8745 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8747 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8748 (negvsi3, negvdi3): Delete.
8749 (negdi2_compare): Delete.
8751 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8753 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8755 (subdi3_compare1): Delete pattern.
8756 (subvsi3_borrow): New insn pattern.
8757 (subvsi3_borrow_imm): Likewise.
8759 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8761 * config/arm/arm.md (subv<mode>4): Delete.
8762 (subvdi4): New expander pattern.
8763 (subvsi4): Likewise. Handle some immediate values.
8764 (subvsi3_intmin): New insn pattern.
8765 (subvsi3): Likewise.
8766 (subvsi3_imm1): Likewise.
8767 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8770 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8772 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8773 incoming operands. Early split the calculation into SImode
8775 (usubvsi3_borrow): New insn pattern.
8776 (usubvsi3_borrow_imm): Likewise.
8778 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8780 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8781 (usubvsi4): New pattern. Allow some immediate values for inputs.
8782 (usubvdi4): New pattern.
8784 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8786 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8787 or second operand of the PLUS inside a DImode equality test to be
8788 sign-extend when selecting CC_Vmode.
8789 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8791 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8793 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8794 (addsi3_cin_vout_0): Likewise.
8795 (adddi3_compareV): Delete.
8797 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8799 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8800 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8801 to transform this back into the summation version when that leads
8804 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8806 * config/arm/arm.md (addv<mode>4): Delete.
8807 (addvsi4): New pattern. Handle immediate values that the architecture
8809 (addvdi4): New pattern.
8810 (addsi3_compareV): Rename to ...
8811 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8812 and use COMPARE rather than NE.
8813 (addsi3_compareV_imm): New pattern.
8814 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8815 a signed-overflow check.
8817 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8819 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8820 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8822 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8823 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8825 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8827 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8828 (addsi3_cin_cout_imm_insn): Likewise.
8829 (adddi3_compareC): Delete insn.
8830 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8832 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8834 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8835 * (uaddv<mode>4): Delete expansion pattern.
8836 (uaddvsi4): New pattern.
8837 (uaddvdi4): Likewise.
8838 (addsi3_compareC): Delete pattern, change callers to use
8840 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8841 reduce the number of alternatives and re-work type attribute handling.
8842 (addsi3_compare_op2): Clean up constraints to reduce the number of
8843 alternatives and re-work type attribute handling.
8844 (compare_addsi2_op0): Likewise.
8845 (compare_addsi2_op1): Likewise.
8847 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8849 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8850 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8851 for DImode operands.
8852 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8853 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8855 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8856 (arm_cmpdi_unsigned): Delete.
8858 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8860 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8861 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8862 unchanged only if that will be cheaper.
8863 (arm_select_cc_mode): Recognize a swapped comparison that will
8864 be regenerated using RSBS or RSCS. Relax restriction on selecting
8866 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8868 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8870 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8872 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8873 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8875 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8877 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8878 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8880 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8881 of EQ, NE, LT, GE, LTU and GEU.
8882 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8883 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8884 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8885 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8886 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8888 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8890 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8892 (cstoredi4): Similarly, but for operand 3.
8893 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8894 canonicalization of unsigned compares with a constant on Arm.
8895 Prefer using const+1 and adjusting the comparison over swapping the
8896 operands whenever the original constant was not valid.
8897 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8899 (arm_validize_comparison): Do not force invalid DImode operands to
8902 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8904 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8905 return CC_Zmode if comparing against a constant where one word is
8907 (arm_gen_compare_reg): Split DImode handling to ...
8908 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8909 against simple constants.
8910 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8912 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8914 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8915 (rsbsi3_carryin_shift_alt): Likewise.
8917 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8919 * config/arm/arm.md (negscc_borrow): New pattern.
8920 (mov_negscc): Don't split if the insn would match negscc_borrow.
8921 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8922 (thumb2_mov_negscc_strict_it): Likewise.
8924 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8926 * config/arm/arm.c (arm_insn_cost): New function.
8927 (TARGET_INSN_COST): Override default definition.
8929 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8931 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8934 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8936 * config/arm/arm.c (strip_carry_operation): New function.
8937 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8940 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8942 * config/arm/predicates.md (arm_carry_operation): New special
8944 * config/arm/iterators.md (LTUGEU): Delete iterator.
8945 (cnb): Delete code attribute.
8946 (optab): Delete ltu and geu elements.
8947 * config/arm/arm.md (addsi3_carryin): Renamed from
8948 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8949 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8950 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8951 (addsi3_carryin_clobercc): Similarly.
8952 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8955 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8957 * config/arm/arm.md (arm_subdi3): Delete insn.
8958 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8960 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8962 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8963 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8964 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8966 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8967 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8969 (subdi3): Rewrite to early-expand the sub-operations.
8970 (rsb_im_compare): New pattern.
8972 (negdi2_insn): Delete.
8973 (arm_negsi2): Correct type attribute to alu_imm.
8974 (negsi2_0compare): New insn pattern.
8975 (negsi2_carryin): New insn pattern.
8977 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8979 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8982 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8984 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8985 to match canonical form.
8987 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8989 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8990 (extend<mode>di2): Likewise.
8992 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8994 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8995 * config/arm/arm.c (arm_decompose_di_binop): New function.
8996 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8997 If not generating Thumb-1 code, decompose the operation into 32-bit
8999 * add0si_carryin_<optab>: New pattern.
9001 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9003 * arm.md (adddi3): Only accept register operands.
9004 (arm_adddi3): Convert to simple insn with no split. Do not accept
9006 (adddi_sesidi_di): Delete patern.
9007 (adddi_zesidi_di): Likewise.
9008 (uaddv<mode>4): Use LTU as condition for branch.
9009 (adddi3_compareV): Convert to simple insn with no split.
9010 (addsi3_compareV_upper): Delete pattern.
9011 (adddi3_compareC): Convert to simple insn with no split. Correct
9012 flags setting expression.
9013 (addsi3_compareC_upper): Delete pattern.
9014 (addsi3_compareC): Correct flags setting expression.
9015 (subdi3_compare1): Convert to simple insn with no split.
9016 (subsi3_carryin_compare): Delete pattern.
9017 (arm_subdi3): Convert to simple insn with no split.
9018 (subdi_zesidi): Delete pattern.
9019 (subdi_di_sesidi): Delete pattern.
9020 (subdi_zesidi_di): Delete pattern.
9021 (subdi_sesidi_di): Delete pattern.
9022 (subdi_zesidi_zesidi): Delete pattern.
9023 (negvdi3): Use s_register_operand.
9024 (negdi2_compare): Convert to simple insn with no split.
9025 (negdi2_insn): Likewise.
9026 (negsi2_carryin_compare): Delete pattern.
9027 (negdi_zero_extendsidi): Delete pattern.
9028 (arm_cmpdi_insn): Convert to simple insn with no split.
9029 (negdi2): Don't call gen_negdi2_neon.
9030 * config/arm/neon.md (adddi3_neon): Delete pattern.
9031 (subdi3_neon): Delete pattern.
9032 (negdi2_neon): Delete pattern.
9033 (splits for negdi2_neon): Delete splits.
9035 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9038 * ggc-page.c (release_pages): Read g->alloc_size before free rather
9041 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
9043 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9044 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9045 new multilib variants and new mappings.
9047 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9050 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9052 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9053 Richard Sandiford <richard.sandiford@arm.com>
9056 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9057 and define hashmap traits for it.
9058 (loop_vec_info::scalar_cond_masked_set): New member.
9059 (vect_record_loop_mask): Adjust prototype.
9060 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9062 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9063 vect_record_loop_mask.
9064 (vectorizable_live_operation): Likewise.
9065 (vect_record_loop_mask): New param scalar_mask. Add entry
9066 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9067 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9068 Pass it as last arg to vect_record_loop_mask.
9069 (vectorizable_call): Pass scalar_mask as last arg to
9070 vect_record_loop_mask.
9071 (vectorizable_store): Likewise.
9072 (vectorizable_load): Likewise.
9073 (vectorizable_condition): Check if another part of vectorized code
9074 applies loop_mask to condition or to it's inverse, and if yes,
9075 apply loop_mask to result of vector comparison.
9077 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9079 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9081 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9083 PR tree-optimization/92056
9084 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9085 before calling compute_builtin_object_size.
9087 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9090 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9091 (movdi_low_st): Delete.
9092 * config/rs6000/rs6000.c
9093 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9094 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9095 * config/rs6000/rs6000.md (movsi_low): Delete.
9097 2019-10-17 Jason Merrill <jason@redhat.com>
9099 * gimplify.h (get_initialized_tmp_var): Add default argument to
9101 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9102 NULL post_p argument.
9103 * targhooks (std_gimplify_va_arg_expr): Likewise.
9105 2019-10-17 Richard Biener <rguenther@suse.de>
9107 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9108 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9109 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9110 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9111 * tree-vect-loop.c (vect_is_simple_reduction): Set
9112 STMT_VINFO_REDUC_CODE.
9113 (vectorizable_reduction): Remove dead and redundant code, use
9114 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9116 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9118 Fix breakage introduced by r276985.
9120 * config/avr/avr.c (avr_option_override): Remove set of
9121 PARAM_ALLOW_STORE_DATA_RACES.
9122 * common/config/avr/avr-common.c (avr_option_optimization_table)
9123 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9125 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9127 * config/i386/i386.h (processor_costs): Add clear_ratio.
9128 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9129 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9130 of 6 and move_ratio in all cost models.
9132 2019-10-17 Richard Biener <rguenther@suse.de>
9134 * tree-vect-loop.c (check_reduction_path): Compute reduction
9136 (vect_is_simple_reduction): Remove special-case of single-stmt
9137 reduction path detection.
9139 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9141 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9143 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9145 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9146 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9147 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9148 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9149 New combine patterns.
9150 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9152 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9154 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9156 * tree-vrp.c (value_range_base::dump): Display +INF for both
9157 pointers and integers when appropriate.
9159 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9161 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9162 when to use versioning threshold.
9164 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9166 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9167 outlined code from ...
9168 (vect_analyze_loop_2): ... here.
9170 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9172 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9173 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9174 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9176 2019-10-17 Richard Biener <rguenther@suse.de>
9178 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9179 (vect_is_simple_reduction): Move all validity checks ...
9180 (vectorizable_reduction): ... here. Compute whether we
9181 need a fold-left reduction here.
9182 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9183 both overloads, check needs_fold_left_reduction_p directly.
9184 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9186 2019-10-17 Richard Biener <rguenther@suse.de>
9188 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9189 TARGET_MEM_REF creation.
9191 2019-10-17 Richard Biener <rguenther@suse.de>
9193 PR tree-optimization/92129
9194 * tree-vect-loop.c (vectorizable_reduction): Also fail
9195 on GIMPLE_SINGLE_RHS.
9197 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9199 PR tree-optimization/92056
9200 * tree-object-size.c (cond_expr_object_size): Return early if then_
9201 processing resulted in unknown size.
9203 PR tree-optimization/92115
9204 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9205 temporary if it could trap.
9207 2019-10-17 Richard Biener <rguenther@suse.de>
9210 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9211 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9213 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9215 * tree-ssa-strlen.c (maybe_invalidate): Use
9216 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9218 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9219 Jim Wilson <jimw@sifive.com>
9221 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9222 regs to SIBCALL_REGS.
9223 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9224 passing regs to SIBCALL_REGS.
9226 2019-10-16 Martin Sebor <msebor@redhat.com>
9228 PR tree-optimization/83821
9229 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9230 the length of a string when available.
9231 (handle_builtin_memset) Add argument.
9232 (handle_store, strlen_check_and_optimize_call): Same.
9233 (check_and_optimize_stmt): Same. Pass it to callees.
9235 2019-10-16 Martin Sebor <msebor@redhat.com>
9237 PR tree-optimization/91996
9238 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9240 (compare_nonzero_chars): Add an overload.
9241 (count_nonzero_bytes): Add an argument. Call overload above.
9242 Handle non-constant lengths in some range.
9243 (handle_store): Add an argument.
9244 (check_and_optimize_stmt): Pass an argument to handle_store.
9246 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9248 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9250 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9252 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9253 operands which correspond to the same input-output register to
9254 have the same pseudo assigned to them.
9256 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9258 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9260 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9262 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9263 Apply reasonable limit to symbol offsets.
9265 2019-10-16 Richard Biener <rguenther@suse.de>
9267 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9268 (vect_is_simple_reduction): Delay checking to
9269 vectorizable_reduction and relax the checking.
9270 (vectorizable_reduction): Check we have a simple use. Check
9271 for bogus condition reductions.
9272 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9273 are looking at the last stmt in a pattern sequence when
9274 filling in backedge PHI values.
9276 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9277 Jiufu Guo <guojiufu@linux.ibm.com>
9280 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9281 the callee explicitly disables some isa_flags the caller is using.
9283 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9285 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9287 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9289 * genmodes.c (mode_data::order): New field.
9290 (blank_mode): Update accordingly.
9291 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9292 (make_vector_modes): Likewise.
9293 (VECTOR_MODES): Update use accordingly.
9294 (cmp_modes): Sort by the new order field ahead of sorting by size.
9295 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9296 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9297 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9298 (aarch64_classify_vector_mode): Handle the new partial modes.
9299 (aarch64_vl_bytes): New function.
9300 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9301 when counting the number of registers in an SVE mode.
9302 (aarch64_class_max_nregs): Likewise.
9303 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9305 (aarch64_classify_address): Treat partial vectors analogously
9307 (aarch64_print_address_internal): Consolidate the printing of
9308 MUL VL addresses, using aarch64_vl_bytes as the number of
9309 bytes represented by "VL".
9310 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9312 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9314 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9315 rather than known_lt when choosing frame layouts.
9317 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9319 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9320 that all the adjustments add up to the full frame size.
9321 Use crtl->outgoing_args_size directly as the final adjustment
9324 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9326 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9327 "frame" reference instead of always referring directly to
9328 "cfun->machine->frame".
9330 2019-10-16 Richard Biener <rguenther@suse.de>
9332 PR tree-optimization/92119
9333 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9334 against missing bswap lhs.
9336 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9339 * poly-int.h (constant_lower_bound_with_limit): New function.
9340 (constant_upper_bound_with_limit): Likewise.
9341 * doc/poly-int.texi: Document them.
9342 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9343 into the worst-case INTEGER_CST bounds.
9345 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9348 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9349 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9350 * ipa-predicat.h (struct expr_eval_op): New struct.
9351 (expr_eval_ops): New typedef.
9352 (struct condition): Add type and param_ops fields, remove size field.
9353 (add_condition): Replace size parameter with type parameter, add
9354 param_ops parameter.
9355 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9356 (predicate::add_clause): Add comparisons on type and param_ops.
9357 (dump_condition): Add debug dump for param_ops.
9358 (remap_after_inlining): Adjust call arguments to add_condition.
9359 (add_condition): Replace size parameter with type parameter, add
9360 param_ops parameter. Unshare constant value used in conditions.
9361 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9362 parameter expressions using param_ops.
9363 (decompose_param_expr): New function.
9364 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9365 to replace call to unmodified_parm_or_parm_agg_item.
9366 (set_switch_stmt_execution_predicate): Likewise.
9367 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9369 (inline_read_section): Read param_ops from summary stream.
9370 (ipa_fn_summary_write): Write param_ops to summary stream.
9372 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9374 PR rtl-optimization/92107
9375 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9378 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9380 * config/darwin.c: Update description of fix and continue.
9382 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9384 * config/darwin.c (darwin_binds_local_p): Update to call
9385 default_binds_local_p_3 () directly. amend comments.
9387 2019-10-15 Richard Biener <rguenther@suse.de>
9389 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9390 (tree_is_indexable): Use it.
9391 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9392 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9393 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9395 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9397 * config/msp430/msp430.md (zero_extendqipsi2): New.
9398 (zero_extendqisi2): Optimize case where src register and base dst
9399 register are the same.
9400 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9401 (zero_extendpsisi2): Optimize r->m case.
9402 Add unnamed insn patterns to catch insns combine searches for when
9403 optimizing pointer manipulation.
9405 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9407 * config/msp430/msp430.md: Group zero_extend* insns together.
9409 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9411 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9413 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9415 (msp430_subreg): Likewise.
9416 (msp430_split_addsi): Likewise.
9417 (msp430_print_operand_addr): Likewise.
9418 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9419 (USE_STORE_POST_INCREMENT): Define.
9420 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9421 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9422 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9423 (msp430_general_dst_operand): New.
9424 (msp430_general_dst_nonv_operand): New.
9425 (msp430_nonsubreg_operand): Remove.
9426 (msp430_nonsubreg_dst_operand): New.
9427 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9428 of defunct msp430_nonsubreg_operand.
9429 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9431 2019-10-15 Richard Biener <rguenther@suse.de>
9433 PR tree-optimization/91929
9434 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9435 (get_or_alloc_expr_for_name): Initialize it.
9436 (get_or_alloc_expr_for_constant): Likewise.
9437 (phi_translate_1): Copy it.
9438 (create_expression_by_pieces): Use the original location
9439 of the expression for the inserted stmt.
9440 (compute_avail): Record the location of the stmt for the
9441 expressions created.
9443 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9445 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9446 before using tree_to_uhwi.
9448 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9450 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9452 2019-10-15 Richard Biener <rguenther@suse.de>
9454 PR tree-optimization/92094
9455 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9456 do not adjust the reduction definition def type.
9457 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9458 defines the latch argument of the PHI.
9460 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9463 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9464 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9465 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9466 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9467 _mm_maskz_roundscale_round_sd): New intrinsics.
9468 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9469 __builtin_ia32_rndscales?_mask_round builtins instead of
9470 __builtin_ia32_rndscales?_round.
9471 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9472 __builtin_ia32_rndscalesd_round): Remove.
9473 (__builtin_ia32_rndscaless_mask_round,
9474 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9475 * config/i386/sse.md
9476 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9477 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9478 ... this, adjust and add subst atrributes to make it maskable.
9480 2019-10-15 Richard Biener <rguenther@suse.de>
9483 * common.opt (fallow-store-data-races): New.
9484 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9485 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9486 * doc/invoke.texi (fallow-store-data-races): Document.
9487 (--param allow-store-data-races): Remove docs.
9488 * opts.c (default_options_table): Enable -fallow-store-data-races
9490 (default_options_optimization): Do not enable --param
9491 allow-store-data-races at -Ofast.
9492 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9493 instead of PARAM_ALLOW_STORE_DATA_RACES.
9494 * tree-ssa-loop-im.c (execute_sm): Likewise.
9496 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9498 PR tree-optimization/92085
9499 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9500 instead of calling it unconditionally after
9501 delete_dead_or_redundant_assignment and fix indentation.
9503 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9505 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9507 (*fmsub<SDF:mode>4): Likewise.
9508 *fnmsub<SDF:mode>4): Likewise.
9509 (*fnmadd<SDF:mode>4): Likewise.
9511 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9513 * doc/tree-ssa.texi: Update renamed macro name.
9515 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9517 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9520 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9522 * config/darwin.c: Use unsigned ints for the picbase label
9523 counters, initialise the vars explicitly.
9524 (update_pic_label_number_if_needed): Move a variable declaration
9525 to where it's needed.
9526 (machopic_output_function_base_name): Use a more strict checking
9527 assert, and and unsigned int for the picbase label counter.
9528 (machopic_get_function_picbase): Likewise.
9530 2019-10-14 Richard Biener <rguenther@suse.de>
9533 * dse.c (scan_insn): Use param max_active_local_stores.
9534 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9535 based on optimization level.
9536 * loop-invariant.c (move_loop_invariants): Adjust
9537 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9538 * opts.c (default_options_optimization): Do not adjust
9539 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9540 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9542 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9544 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9546 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9548 * config/arm/arm.c (arm_option_override): Don't override sched
9551 2019-10-14 Richard Biener <rguenther@suse.de>
9553 PR tree-optimization/92069
9554 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9555 cycles do not set vect_nested_cycle on the latch definition.
9557 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9559 * function-abi.h (expr_callee_abi): Declare.
9560 * function-abi.cc (expr_callee_abi): New function.
9562 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9564 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9566 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9567 non-zero being represented as [1,MAX].
9569 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9571 * tree-sra.c (dump_access): Add missing braces.
9573 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9575 * config/darwin.c (machopic_indirection_name): Rework the
9576 function to emit linker-visible symbols only for indirections
9577 in the data section. Clean up the code and update comments.
9579 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9581 * config/darwin.c (machopic_indirect_data_reference): Remove
9584 2019-10-13 Nathan Sidwell <nathan@acm.org>
9586 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9588 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9590 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9593 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9595 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9596 so non-virutal are before virutals.
9597 (output_function): Avoid body modifications.
9599 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9601 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9602 %r22. Load function address before global pointer.
9603 (pa_attr_length_indirect_call): Adjust length of inline versions of
9605 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9606 before normal cases. Update inline $$dyncall sequences to preserve
9607 function descriptor address in register %r22.
9608 (TRAMPOLINE_CODE_SIZE): Adjust.
9609 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9610 register %r22 contains trampoline address.
9611 (pa_trampoline_init): Adjust offsets.
9612 (pa_trampoline_adjust_address): Likewise.
9613 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9615 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9618 * config/darwin.c (machopic_indirection): New field to flag
9619 non-lazy-symbol-pointers in the data section.
9620 (machopic_indirection_name): Compute if an indirection should
9621 appear in the data section.
9622 (machopic_output_data_section_indirection): New callback split
9623 from machopic_output_indirection.
9624 (machopic_output_stub_indirection): Likewise.
9625 (machopic_output_indirection): Retain the code for non-lazy
9626 symbol pointers in their regular section.
9627 (machopic_finish): Use the new callbacks to order the indirection
9630 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9632 * config/darwin-protos.h (machopic_finish): Delete.
9633 * config/darwin.c (machopic_finish): Make static.
9635 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9637 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9638 sections when building kernel extension code.
9640 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9642 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9645 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9647 * config/pa/pa.c (pa_option_override): Remove trailing comma
9650 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9653 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9654 <case VEC_COND_EXPR>: Return false with *handled = false.
9655 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9656 recursing on the first operand.
9657 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9658 instead of tree_could_trap_p.
9659 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9661 2019-10-11 Jim Wilson <jimw@sifive.com>
9663 PR rtl-optimization/91860
9664 * combine.c (subst): If new_rtx is a constant, also check for
9665 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9667 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9669 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9670 INTVAL when calling store_bit_field.
9672 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9674 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9677 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9679 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9680 vectorizable_live_operation.
9681 (vectorizable_live_operation): Adjust parameters.
9682 * tree-vect-stmts.c (vect_init_vector,
9683 vect_gen_widened_results_half): Fix typo in function comment.
9684 (can_vectorize_live_stmts): Adjust function comment.
9685 Adjust parameters. Adjust call to vectorizable_live_operation.
9686 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9687 (vect_transform_stmt): Adjust function comment. Adjust call to
9688 can_vectorize_live_stmts.
9689 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9691 2019-10-11 Richard Biener <rguenther@suse.de>
9693 PR tree-optimization/90883
9694 PR tree-optimization/91091
9695 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9696 alias-sets both for recording VN table entries and continuing
9697 walking after translating through copies. Handle same-sized
9698 reads from SSA names by returning the plain SSA name.
9699 (eliminate_dom_walker::eliminate_stmt): Properly handle
9700 non-size precision stores in redundant store elimination.
9702 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9704 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9705 (ggc_collect): Dump later to not interfere with release_page dump.
9706 (ggc_trim): New function.
9707 * ggc-none.c (ggc_trim): New.
9708 * ggc.h (ggc_trim): Declare.
9710 2019-10-11 Richard Biener <rguenther@suse.de>
9712 PR tree-optimization/92066
9713 PR tree-optimization/92046
9714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9715 Fix bogus cost model check.
9717 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9719 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9720 (LANG_HOOKS_DECLS): Add it.
9721 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9722 update comment for omp_is_optional_argument.
9723 * omp-general.c (omp_is_allocatable_or_ptr): New.
9724 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9725 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9726 Fortran's optional arguments and allocatable/pointer scalars
9727 with use_device_addr.
9729 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9732 * config/s390/2827.md: Add new opcodes.
9733 * config/s390/2964.md: Likewise.
9734 * config/s390/3906.md: Likewise.
9735 * config/s390/8561.md: Likewise.
9736 * config/s390/s390-builtins.def (s390_vfchesb): Use
9737 the new vec_cmpgev4sf_quiet_nocc.
9738 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9739 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9740 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9741 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9742 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9743 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9744 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9745 * config/s390/s390-modes.def (CCSFPS): New mode.
9746 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9747 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9748 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9749 (s390_expand_vec_compare): Use non-signaling patterns where
9751 (s390_reverse_condition): Support CCSFPS.
9752 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9753 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9754 (asm_fcmp_op): Likewise.
9755 (*smaxv2df3_vx): Use pattern for quiet comparison.
9756 (*sminv2df3_vx): Likewise.
9757 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9758 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9759 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9760 (vec_cmplt<mode>_quiet_nocc): New expander.
9761 (vec_cmpge<mode>_quiet_nocc): New pattern.
9762 (vec_cmple<mode>_quiet_nocc): New expander.
9763 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9764 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9765 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9766 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9767 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9768 (vec_cmpungt<mode>): New expander.
9769 (vec_cmpunge<mode>): Likewise.
9770 (vec_cmpuneq<mode>): Use quiet patterns.
9771 (vec_cmpltgt<mode>): Allow only on z14+.
9772 (vec_cmpordered<mode>): Use quiet patterns.
9773 (vec_cmpunordered<mode>): Likewise.
9774 (VEC_CMP_EXPAND): Add ungt and unge.
9776 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9778 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9780 * lto-streamer-out.c: Include tree-dfa.h.
9781 (output_cfg): Do not use cfun.
9782 (lto_prepare_function_for_streaming): New.
9783 (output_function): Do not push cfun; do not initialize loop optimizer.
9784 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9785 * passes.c (ipa_write_summaries): Use it.
9786 (ipa_write_optimization_summaries): Do not modify bodies.
9787 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9788 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9789 * tree-ssa-dse.c (pass_dse::execute): Update use of
9790 renumber_gimple_stmt_uids.
9791 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9793 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9795 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9796 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9798 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9800 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9802 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9803 Also define DFP macros for these conditions.
9804 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9805 DEC128_SUBNORMAL_MIN): Do not define.
9806 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9807 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9809 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9810 Sandra Loosemore <sandra@codesourcery.com>
9813 * doc/lto.texi (IPA): Reference to the IPA passes.
9814 * doc/passes.texi (Pass manager): Add node IPA passes and
9815 description for each IPA pass.
9817 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9819 * ipa-reference.c: Do not include splay-tree.h
9820 (reference_vars_to_consider): Turn to hash map.
9821 (get_static_name, ipa_init, analyze_function, propagate,
9822 stream_out_bitmap, ipa_reference_write_optimization_summary,
9823 ipa_reference_write_optimization_summary): Update.
9825 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9827 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9829 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9831 * config/darwin.c: Lookup Objective C metadata and force indirection
9834 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9836 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9838 (mem_operand_gpr): Add check for prefixed addresses.
9839 (mem_operand_ds_form): Add check for prefixed addresses.
9840 (rs6000_legitimate_offset_address_p): If we support prefixed
9841 addresses, check for a 34-bit offset instead of 16-bit.
9842 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9843 Do not allow load/store with update if the address is prefixed.
9844 (rs6000_mode_dependent_address): If we support prefixed
9845 addresses, check for a 34-bit offset instead of 16-bit.
9847 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9850 * config/s390/vector.md (vcond_comparison_operator): New
9852 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9854 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9857 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9859 * configure.ac (--with-documentation-root-url): New option.
9860 * configure: Regenerate.
9861 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9862 option URL, add it as a new string field of the diagnostic option.
9863 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9864 (print_option_information): If get_option_url is non-NULL, call
9865 it, and if the result is non-NULL, potentially emit an escape
9866 sequence to markup the option text with the resulting URL.
9867 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9868 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9869 example of JSON output.
9870 * opts-diagnostic.h (get_option_url): New decl.
9871 * opts.c (get_option_url): New function.
9872 * toplev.c (general_init): Initialize the get_option_url callback.
9874 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9877 * common.opt (fdiagnostics-urls=): New option.
9878 (diagnostic-url.h): Add SourceInclude.
9879 (diagnostic_url_rule): New enum.
9880 * diagnostic-color.c: Include "diagnostic-url.h".
9881 (diagnostic_urls_enabled_p): New function.
9882 * diagnostic-url.h: New file.
9883 * diagnostic.c: Include "diagnostic-url.h".
9884 (diagnostic_urls_init): New function.
9885 * diagnostic.h (diagnostic_urls_init): New decl.
9886 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9887 -fdiagnostics-urls to the list.
9888 (-fdiagnostics-urls): New option.
9889 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9890 (driver::global_initializations): Call diagnostic_urls_init.
9891 * opts-global.c (init_options_once): Likewise.
9892 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9893 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9895 (pp_begin_url): New function.
9896 (pp_end_url): New function.
9897 (selftest::test_urls): New selftest.
9898 (selftest::pretty_print_c_tests): Call it.
9899 * pretty-print.h (pretty_printer::show_urls): New field.
9900 (pp_begin_url): New decl.
9901 (pp_end_url): New decl.
9903 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9906 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9908 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9911 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9912 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9913 also for TARGET_FPU_SH4_300.
9914 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9916 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9917 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9918 (*negsf2_i): Split into ...
9919 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9920 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9921 (**abssf2_i): Split into ...
9922 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9923 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9924 (*negdf2_i): Split into ...
9925 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9926 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9927 (**abssf2_i): Split into ...
9928 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9930 2019-10-10 Richard Biener <rguenther@suse.de>
9933 * opts.c (finish_options): Do not influence global --params
9934 from options that are adjustable per function.
9935 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9936 Apply --param adjustment based on active cost-model.
9937 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9938 further store-sinking when vectorization or if-conversion
9941 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9944 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9945 rather than ggc_alloc_cleared to alloc symbol table.
9946 * toplev.c (general_init): Likewise.
9947 * cgraph.h (symbol_table): Explicitly construct every field.
9949 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9951 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9953 * config.gcc: Add z15 as option for --with-arch and --with-tune
9955 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9956 error reporting for unsupported builtins.
9957 * config/s390/s390-opts.h (enum processor_type): Rename
9958 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9959 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9960 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9962 * config/s390/s390-builtins.def: Likewise.
9963 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9964 (s390_expand_builtin): Add missing check for unsupported builtins.
9965 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9966 (s390_rtx_costs): Likewise.
9967 (s390_get_sched_attrmask): Rename arch13 to z15.
9968 (s390_get_unit_mask): Likewise.
9969 (s390_is_fpd): Likewise.
9970 (s390_is_fxd): Likewise.
9971 * config/s390/s390.h (enum processor_flags): Likewise.
9972 * config/s390/s390.md: Likewise.
9973 * config/s390/vector.md: Likewise.
9974 * config/s390/vx-builtins.md: Likewise.
9975 * config/s390/s390.opt: Add z15 to processor_type value.
9977 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9980 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9982 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9983 ("split_stack_data", "split_stack_call")
9984 ("split_stack_call_<mode>", "split_stack_cond_call")
9985 ("split_stack_cond_call_<mode>"): Remove.
9986 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9988 * config/s390/s390.c (s390_output_split_stack_data): New function.
9989 (s390_expand_split_stack_prologue): Use the merged expander.
9991 2019-10-09 Martin Sebor <msebor@redhat.com>
9993 PR tree-optimization/90879
9994 * builtins.c (check_access): Avoid using maxbound when null.
9995 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9996 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9997 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9999 (get_range_strlen): Overwrite initial maxbound when non-null.
10000 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10002 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10003 (used_only_for_zero_equality): New function.
10004 (handle_builtin_memcmp): Call it.
10005 (determine_min_objsize): Return an integer instead of tree.
10006 (get_len_or_size, strxcmp_eqz_result): New functions.
10007 (maybe_warn_pointless_strcmp): New function.
10008 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
10009 between a longer string and a smaller array.
10010 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10012 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10014 * config/darwin.c (darwin_override_options): Make the check for
10015 Objective-C ABI version more specific for 64bit code.
10017 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10019 * config/darwin.c (machopic_indirect_data_reference): Set flag to
10020 indicate that the new symbol is an indirection.
10021 (machopic_indirect_call_target): Likewise.
10022 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10023 (MACHO_SYMBOL_INDIRECTION_P): New.
10024 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10026 2019-10-08 Jason Merrill <jason@redhat.com>
10028 * doc/invoke.texi: Document -fconcepts-ts.
10030 2019-10-09 Richard Biener <rguenther@suse.de>
10032 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10033 allow stmts other than GIMPLE_ASSIGN in nested cycles.
10035 2019-10-08 Richard Biener <rguenther@suse.de>
10037 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10038 (_stmt_vec_info::force_single_cycle): Likewise.
10039 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10040 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10041 * tree-vect-loop.c (vectorizable_reduction): Set
10042 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10043 (vect_transform_reduction): Use them to remove redundant code.
10044 (vect_transform_cycle_phi): Likewise.
10046 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10048 PR tree-optimization/90836
10049 * match.pd (popcount): New pattern.
10051 2019-10-08 Martin Sebor <msebor@redhat.com>
10053 PR middle-end/92026
10054 PR middle-end/92014
10055 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10056 again once nbytes has been set. Set the access size when not yet set.
10058 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10060 * config/darwin.c (machopic_select_section): Remove dead code for
10061 old Objective-C section selection method, replace with unreachable.
10063 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10065 * config/darwin.c (machopic_indirect_data_reference): Check for
10066 required indirections before making direct access to defined
10068 (machopic_output_indirection): Place the indirected pointes for
10069 required indirections into the non-lazy symbol pointers section.
10070 (darwin_encode_section_info):
10071 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10072 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10074 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10077 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10078 instead of ALL_SSE_REG to check if function call preserves some
10079 256-bit SSE registers.
10081 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10083 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10084 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10085 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10087 2019-10-08 Richard Biener <rguenther@suse.de>
10089 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10090 (_stmt_vec_info::is_reduc_info): Add.
10091 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10092 (vectorizable_condition): Remove.
10093 (vectorizable_shift): Likewise.
10094 (vectorizable_reduction): Adjust.
10095 (info_for_reduction): New.
10096 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10097 (vect_analyze_scalar_cycles_1): ... here.
10098 (vect_analyze_loop_operations): Adjust.
10099 (needs_fold_left_reduction_p): Simplify for single caller.
10100 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10101 for nested cycles not part of double reductions.
10102 (vect_model_reduction_cost): Pass in the reduction type.
10103 (info_for_reduction): New function.
10104 (vect_create_epilog_for_reduction): Use it, access reduction
10105 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10106 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10107 (vectorize_fold_left_reduction): Remove pointless assert.
10108 (vectorizable_reduction): Analyze the full reduction when
10109 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10110 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10111 stmt code-generation to vectorizable_* in most cases. Verify
10112 code-generation only for cases handled by
10113 vect_transform_reductuon.
10114 (vect_transform_reduction): Use info_for_reduction to get at
10115 reduction meta. Simplify.
10116 (vect_transform_cycle_phi): Likewise.
10117 (vectorizable_live_operation): Likewise.
10118 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10119 at the PHI node for STMT_VINFO_REDUC_TYPE.
10120 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10121 longer necessary code.
10122 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10123 (vectorizable_condition): Likewise. Get at reduction related
10124 info via info_for_reduction.
10125 (vect_analyze_stmt): Adjust.
10126 (vect_transform_stmt): Likewise.
10127 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10128 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10130 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10132 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10133 -fno-fp-int-builtin-inexact default for C2X.
10135 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10136 Richard Biener <rguenther@suse.de>
10138 PR tree-optimization/91532
10139 * tree-if-conv.c: Include tree-ssa-dse.h.
10140 (ifcvt_local_dce): Change param from bb to loop,
10141 and call dse_classify_store.
10142 (tree_if_conversion): Pass loop instead of loop->header as arg
10143 to ifcvt_local_dce.
10144 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10145 (delete_dead_or_redundant_assignment): Remove static qualifier from
10146 declaration, and add prototype in tree-ssa-dse.h.
10147 (dse_store_status): Move to tree-ssa-dse.h.
10148 (dse_classify_store): Remove static qualifier and add new tree param
10149 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10150 * tree-ssa-dse.h: New header.
10152 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10154 * config/darwin.c (machopic_output_indirection): Don't put
10155 hidden symbol indirections into the .data section, use the
10156 non-lazy symbol pointers section as normal.
10157 (darwin_encode_section_info): Record if a symbol is hidden.
10158 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10159 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10161 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10163 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10164 predicates instead of accessing bits directly.
10165 (machopic_indirect_call_target): Likewise.
10166 (machopic_output_indirection): Likewise.
10167 (darwin_encode_section_info): Improve description. Use renamed
10168 symbol flags. Use predicate macros for variables and functions.
10170 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10171 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10172 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10173 (MACHO_SYMBOL_VARIABLE_P): New.
10174 (MACHO_SYMBOL_DEFINED_P):New.
10175 (MACHO_SYMBOL_STATIC_P): New.
10176 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10177 (SYMBOL_FLAG_SUBT_DEP): New.
10178 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10180 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10182 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10183 (msp430_expand_epilogue): Likewise.
10184 * config/msp430/predicates.md: Likewise.
10185 * config/msp430/msp430.md: Likewise.
10186 Replace blocks of 8 spaces with tabs.
10188 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10190 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10191 * config/msp430/msp430.c (msp430_split_addsi): New.
10192 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10193 a block of C code for splitting addsi.
10195 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10197 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10198 ix86_expand_rounddf_32): Reorder functions.
10199 * config/i386/i386-protos.h: Update.
10201 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10203 * config.in: Regenerate.
10204 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10205 Add new "Yx" constraint.
10206 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10208 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10210 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10211 code/data region to be selected in the small memory model.
10212 (msp430_section_attr): Don't warn if the "section" and "lower"
10213 attributes are used together.
10214 (msp430_handle_generic_attribute): Likewise.
10215 (msp430_var_in_low_mem): New function.
10216 (TARGET_ENCODE_SECTION_INFO): Define.
10217 (msp430_encode_section_info): New function.
10218 (gen_prefix): Return early in the small memory model.
10219 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10220 ".lower" prefix if -m{code,data}-region=lower have been passed.
10221 (msp430_output_aligned_decl_common): Emit common symbols when
10222 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10224 (TARGET_ASM_FILE_END): Define.
10225 (msp430_file_end): New function.
10226 (msp430_do_not_relax_short_jumps): Allow relaxation when
10227 function will be in the lower region.
10228 (msp430_op_not_in_high_mem): New function.
10229 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10230 the 'X' operand selector.
10231 Clarify comment for 'x' operand selector.
10232 * config/msp430/msp430.h (LINK_SPEC): Propagate
10233 -m{code,data}-region to the linker via spec function
10234 msp430_propagate_region_opt.
10235 (msp430_propagate_region_opt): New prototype.
10236 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10237 (SYMBOL_FLAG_LOW_MEM): Define.
10238 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10240 (zero_extendqihi2): Fix operand number used by "%X" selector.
10241 (zero_extendqisi2): Likewise.
10242 (zero_extendhisi2): Likewise.
10243 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10245 (addqi3): Likewise.
10246 (addhi3): Likewise.
10247 (addsi3): Likewise.
10248 (addhi3_cy): Likewise.
10249 (addchi4_cy): Likewise.
10250 (subqi3): Likewise.
10251 (subhi3): Likewise.
10252 (subsi3): Likewise.
10253 (bic<mode>3): Likewise.
10254 (and<mode>3): Likewise.
10255 (ior<mode>3): Likewise.
10256 (xor<mode>3): Likewise.
10257 (slli_1): Add missing "%X" operand selector.
10258 (slll_1): Likewise.
10259 (slll_2): Likewise.
10260 (srai_1): Likewise.
10261 (sral_1): Likewise.
10262 (sral_2): Likewise.
10263 (srli_1): Likewise.
10264 (srll_1): Likewise.
10265 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10267 (cbranchhi4_real): Likewise.
10268 (cbranchqi4_reversed): Likewise.
10269 (cbranchhi4_reversed): Likewise.
10270 (*bitbranch<mode>4): Likewise.
10271 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10272 * config/msp430/msp430.opt (mcode-region=): Set default to
10273 MSP430_REGION_LOWER. Improve docstring.
10274 (mdata-region=): Likewise.
10275 (muse-lower-region-prefix): New option.
10276 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10277 mdata-region=none multilib.
10278 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10279 mdata-region=none multilib.
10280 MULTILIB_EXCEPTIONS: Remove.
10281 MULTILIB_REQUIRED: Define.
10282 * configure: Regenerate.
10283 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10284 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10285 * doc/extend.texi: Clarify comment for {upper,lower,either}
10286 function attributes.
10287 Add separate description for "lower" variable attribute.
10289 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10292 * optabs-tree.c (vcond_icode_p): New function.
10293 (vcond_eq_icode_p): Likewise.
10294 (expand_vec_cond_expr_p): Use vcond_icode_p and
10296 * optabs.c (can_vcond_compare_p): New function.
10297 * optabs.h (can_vcond_compare_p): Likewise.
10299 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10302 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10303 caller passes a non-trapping condition.
10304 (is_gimple_condexpr): Allow trapping conditions.
10305 (is_gimple_condexpr_1): New helper function.
10306 (is_gimple_condexpr_for_cond): New function, acts like old
10307 is_gimple_condexpr.
10308 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10309 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10310 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10311 * gimplify.c (gimplify_cond_expr): Use
10312 is_gimple_condexpr_for_cond.
10313 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10314 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10316 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10317 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10318 is_gimple_condexpr_for_cond, remove pointless tmp check
10319 (forward_propagate_into_cond): Remove pointless tmp check.
10321 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10323 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10324 match that of other gsi_next_* functions. Adjust the comment.
10325 (gsi_start_nonvirtual_phis): New function.
10326 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10327 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10329 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10331 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10332 setjmp situation here. Fix a verb's ending: "the exact variables or
10333 elements for which there are warnings depends" -> "... depend".
10335 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10337 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10339 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10341 * ipa-prop.c (ipa_vr::nonzero_p): New.
10342 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10344 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10345 * tree-vrp.c (range_has_numeric_bounds_p): New.
10346 (range_int_cst_p): Use range_has_numeric_bounds_p.
10347 (get_range_op_handler): New.
10348 (supported_types_p): New.
10349 (defined_ranges_p): New.
10350 (drop_undefines_to_varying): New.
10351 (range_fold_binary_symbolics_p): New.
10352 (range_fold_unary_symbolics_p): New.
10353 (range_fold_unary_expr): Extract out into above functions.
10354 (range_fold_binary_expr): Same.
10355 (value_range_base::normalize_addresses): New.
10356 (value_range_base::normalize_symbolics): Normalize addresses.
10357 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10359 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10361 * tree-vrp.c (value_range_base::singleton_p): Use
10362 value_range_base::num_pairs instead of vrp_val_is* to check
10363 if a range has one sub-range.
10365 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10367 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10368 DEF is not a true earlyclobber but is tied to a specific input
10369 operand, and so is effectively earlyclobber wrt inputs that have
10371 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10373 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10375 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10376 (pod_mode): Mark operators likewise.
10377 (scalar_int_mode): Mark non-default constructors and
10378 operators with CONSTEXPR.
10379 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10380 (fixed_size_mode): Likewise.
10382 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10385 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10386 and wrap the unspec_volatile in a parallel.
10387 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10388 the unspec_volatile.
10389 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10390 unspec_volatile to be wrapped in a parallel.
10391 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10392 (ix86_add_reg_usage_to_vzerouppers): New functions.
10393 (rest_of_handle_insert_vzeroupper): Use them to add register
10394 usage information to the vzeroupper instructions.
10396 2019-10-07 Richard Biener <rguenther@suse.de>
10398 PR tree-optimization/91975
10399 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10402 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10404 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10405 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10407 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10409 * config/darwin.c (darwin_override_options): Adjust objective-c
10410 ABI version error messages to avoid punctuation and contracted
10413 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10415 * ipa-inline.c: Fix type; compute size rather than self_size
10416 for size of caller function.
10418 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10421 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10422 choose const_data section for constants with relocations.
10423 (machopic_select_section): Pass relocation flag to
10424 darwin_rodata_section ().
10426 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10428 PR tree-optimization/91734
10429 * generic-match-head.c: Include fold-const-call.h.
10430 * match.pd (sqrt(x) cmp c): Check the boundary value and
10431 in case inexact computation of c*c affects comparison of the boundary,
10432 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10433 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10434 for -frounding-math. For c2, try the next smaller or larger floating
10435 point constant depending on comparison code and if it has the same
10436 sqrt as c2, use it instead of c2.
10438 2019-10-04 Martin Sebor <msebor@redhat.com>
10440 PR middle-end/91977
10441 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10442 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10443 uninitialized objects.
10445 2019-10-04 Martin Sebor <msebor@redhat.com>
10447 * builtins.c (compute_objsize): Add an argument.
10448 * tree-object-size.c (addr_object_size): Same.
10449 (compute_builtin_object_size): Same.
10450 * tree-object-size.h (compute_builtin_object): Same.
10452 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10454 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10456 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10458 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10460 2019-10-04 Martin Jambor <mjambor@suse.cz>
10462 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10463 fntype when switching to calling memcpy instead of memset.
10465 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10467 * hash-table.h (hash_table::empty_slow): Don't assign
10468 size_t values to int variables.
10470 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10472 * expr.c (convert_mode_scalar): Remove shadowing local var.
10473 (emit_block_move): Rename local vars.
10474 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10475 (emit_push_insn): Rename local vars.
10476 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10477 shadowing local vars.
10478 (store_constructor): Remove shadowing local vars. Rename local var.
10479 (store_field, expand_cond_expr_using_cmove,
10480 expand_expr_real_2): Remove shadowing local vars.
10481 (expand_expr_real_1,
10482 do_store_flag): Remove shadowing local vars. Rename local vars.
10484 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10486 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10488 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10490 * genmatch.c (commutate): Rename local var.
10491 (lower_cond): Reuse local var.
10492 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10493 dt_operand::gen, dt_operand::gen_gimple_expr,
10494 dt_simplify::gen): Add a param. Rename generated vars.
10495 (decision_tree::insert_operand,
10496 (capture_info::walk_match, capture_info::walk_result,
10497 capture_info::walk_c_expr): Rename local vars.
10498 (expr::gen_transform): Rename generated vars.
10499 Use snprintf. Rename local vars.
10500 (capture::gen_transform, dt_operand::get_name,
10501 dt_operand::gen_opname): Rename generated vars.
10502 (write_predicate): Adjust call to gen_kids.
10503 (parser::get_internal_capture_id): Rename generated vars.
10504 (parser::parse_expr): Rename local vars.
10505 (parser::parse_if): Remove local var.
10506 (parser::parse_pattern, add_operator): Rename local vars.
10508 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10510 * builtins.def (DEF_C2X_BUILTIN): New macro.
10511 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10512 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10513 (strndup): Use DEF_C2X_BUILTIN.
10514 * coretypes.h (enum function_class): Add function_c2x_misc.
10516 2019-10-04 Maya Rashish <coypu@sdf.org>
10518 * ira-color.c (update_costs_from_allocno): Call
10519 ira_init_register_move_cost_if_necessary.
10521 2019-10-04 Jeff Law <law@redhat.com>
10523 * config/h8300/h8300.md (cpymemsi): Disable.
10524 (movmd, movmd_internal_<mode>, movstr, movsd):
10525 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10526 (movmd splitter, movsd splitter): Likewise.
10528 * range-op.cc (range_tests): Avoid two tests when ints and
10529 shorts are the same size.
10531 2019-10-04 Richard Biener <rguenther@suse.de>
10534 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10537 2019-10-04 Richard Biener <rguenther@suse.de>
10539 PR tree-optimization/91982
10540 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10541 against EXTRACT_LAST_REDUCTION.
10542 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10544 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10546 * range-op.o (value_range_from_overflowed_bounds): Rename from
10547 adjust_overflow_bound.
10548 (value_range_with_overflow): Rename from
10549 create_range_with_overflow.
10550 (create_possibly_reversed_range): Adjusted for above renames.
10551 (operator_*::wi_fold): Same.
10552 (cross_product_operator::wi_cross_productor): Same.
10554 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10556 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10557 -Wshadow=compatible-local): Fix description.
10558 Add an example where -Wshadow=compatible-local does not
10561 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10563 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10565 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10566 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10568 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10570 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10571 can_move_by_pieces issue.
10573 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10576 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10577 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10578 is available and the user has not set one on the command line.
10580 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10583 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10584 instead of REGNO equality check on addr.reg.
10586 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10588 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10589 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10590 * doc/invoke.texi (inline-heuristics-hint-percent,
10591 inline-heuristics-hint-percent-O2): Document.
10592 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10594 (can_inline_edge_by_limits_p): Use it.
10596 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10598 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10599 to print CONST_DOUBLEs.
10601 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10603 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10604 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10605 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10607 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10609 * Makefile.in (OBJS): Add range.o and range-op.o.
10610 Remove wide-int-range.o.
10611 * function-tests.c (test_ranges): New.
10612 (function_tests_c_tests): Call test_ranges.
10613 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10614 range_fold_unary_expr instead of extract_range_from_unary_expr.
10615 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10616 * range-op.cc: New file.
10617 * range-op.h: New file.
10618 * range.cc: New file.
10619 * range.h: New file.
10620 * selftest.h (range_tests): New prototype.
10621 * ssa.h: Include range.h.
10622 * tree-vrp.c (value_range_base::value_range_base): New
10624 (value_range_base::singleton_p): Do not call
10625 ranges_from_anti_range until sure we will need to.
10626 (value_range_base::type): Rename gcc_assert to
10627 gcc_checking_assert.
10628 (vrp_val_is_max): New argument.
10629 (vrp_val_is_min): Same.
10630 (wide_int_range_set_zero_nonzero_bits): Move from
10632 (extract_range_into_wide_ints): Remove.
10633 (extract_range_from_multiplicative_op): Remove.
10634 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10635 from extract_range_from_binary_expr.
10636 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10637 from extract_range_from_binary_expr.
10638 (extract_range_from_binary_expr): Remove.
10639 (normalize_for_range_ops): New.
10640 (range_fold_binary_expr): New.
10641 (range_fold_unary_expr): New.
10642 (value_range_base::num_pairs): New.
10643 (value_range_base::lower_bound): New.
10644 (value_range_base::upper_bound): New.
10645 (value_range_base::upper_bound): New.
10646 (value_range_base::contains_p): New.
10647 (value_range_base::invert): New.
10648 (value_range_base::union_): New.
10649 (value_range_base::intersect): New.
10650 (range_compatible_p): New.
10651 (value_range_base::operator==): New.
10652 (determine_value_range_1): Call range_fold_*expr instead of
10653 extract_range_from_*expr.
10654 * tree-vrp.h (class value_range_base): Add new constructors.
10655 Add methods for union_, intersect, operator==, contains_p,
10656 num_pairs, lower_bound, upper_bound, invert.
10657 (vrp_val_is_min): Add handle_pointers argument.
10658 (vrp_val_is_max): Same.
10659 (extract_range_from_unary_expr): Remove.
10660 (extract_range_from_binary_expr): Remove.
10661 (range_fold_unary_expr): New.
10662 (range_fold_binary_expr): New.
10663 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10664 range_fold_binary_expr instead of extract_range_from_binary_expr.
10665 (vr_values::extract_range_basic): Same.
10666 (vr_values::extract_range_from_unary_expr): Call
10667 range_fold_unary_expr instead of extract_range_from_unary_expr.
10668 * wide-int-range.cc: Remove.
10669 * wide-int-range.h: Remove.
10671 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10673 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10674 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10675 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10676 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10679 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10681 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10682 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10683 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10684 * glimits.h: Likewise.
10686 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10688 PR rtl-optimization/91976
10689 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10690 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10691 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10693 2019-10-02 Martin Sebor <msebor@redhat.com>
10695 PR tree-optimization/80936
10696 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10698 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10700 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10701 instead of reg_class_contents[ALL_REGS].
10703 2019-09-30 Jason Merrill <jason@redhat.com>
10705 Add some hash_map_safe_* functions like vec_safe_*.
10706 * hash-map.h (default_hash_map_size): New variable.
10707 (create_ggc): Use it as default argument.
10708 (hash_map_maybe_create, hash_map_safe_get)
10709 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10711 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10713 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10714 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10715 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10716 (can_inline_edge_by_limits_p): Use it.
10717 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10718 (want_inline_small_function_p): Use O2 bounds.
10719 (edge_badness): LIkewise.
10720 * opts.c (default_options): Add OPT_finline_functions.
10721 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10722 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10724 * doc/invoke.texi (-finline-functions): Update documentation.
10725 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10726 inline-min-speedup-O2): Document.
10727 (early-inlining-insns-O2): Simplify docs.
10729 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10731 PR rtl-optimization/87047
10732 * ifcvt.c (average_cost): New static function. Use it...
10733 (noce_process_if_block): ... here.
10735 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10737 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10738 * config/rs6000/rs6000-string.c (expand_block_move): Add
10739 might_overlap parm.
10740 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10741 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10743 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10745 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10746 (expand_builtin_memcpy): Use might_overlap parm.
10747 (expand_builtin_mempcpy_args): Use might_overlap parm.
10748 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10749 (expand_builtin_memory_copy_args): Add might_overlap parm.
10750 * expr.c (emit_block_move_via_cpymem): Rename to
10751 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10752 or movmem optab as appropriate.
10753 (emit_block_move_hints): Add might_overlap parm, do the right
10754 thing for might_overlap==true.
10755 * expr.h (emit_block_move_hints): Update prototype.
10757 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10759 * tree-eh.h (unsplit_eh_edges): Declare.
10760 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10761 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10762 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10763 (struct store_immediate_info): Add lp_nr field.
10764 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10765 initialize lp_nr with it.
10766 (struct merged_store_group): Add lp_nr and only_constants fields.
10767 (merged_store_group::merged_store_group): Initialize them.
10768 (merged_store_group::can_be_merged_into): Deal with them.
10769 (pass_store_merging): Rename terminate_and_release_chain into
10770 terminate_and_process_chain.
10771 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10772 renaming and remove useless assertions.
10773 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10774 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10775 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10776 instead of always recomputing it and compare lp_nr.
10777 (imm_store_chain_info::output_merged_store): If the group is in an
10778 active EH region, register new stores if they can throw. Moreover,
10779 if the insertion has created new basic blocks, adjust the PHI nodes
10780 of the post landing pad.
10781 (imm_store_chain_info::output_merged_stores): If the original stores
10782 are in an active EH region, deregister them.
10783 (lhs_valid_for_store_merging_p): Prettify.
10784 (adjust_bit_pos): New function extracted from...
10785 (mem_valid_for_store_merging): ...here. Use it for the base address
10786 and also for the offset if it is the addition of a constant.
10787 (lp_nr_for_store): New function.
10788 (pass_store_merging::process_store): Change return type to bool.
10789 Call lp_nr_for_store to initialize the store info. Propagate the
10790 return status of various called functions to the return value.
10791 (store_valid_for_store_merging_p): New predicate.
10792 (enum basic_block_status): New enumeration.
10793 (get_status_for_store_merging): New function.
10794 (pass_store_merging::execute): If the function can throw and catch
10795 non-call exceptions, unsplit the EH edges on entry and clean up the
10796 CFG on exit if something changed. Call get_status_for_store_merging
10797 for every basic block and keep the chains open across basic blocks
10798 when possible. Terminate and process open chains at the end, if any.
10800 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10802 * reginfo.c (globalize_reg): Fix shadowed variable in
10803 function_abis walk.
10805 2019-10-02 Martin Jambor <mjambor@suse.cz>
10807 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10808 do not compute some stuff when set.
10809 (cgraph_node::create_edge): Likewise.
10810 (cgraph_node::create_indirect_edge): Renamed last parameter to
10811 coning_p and flipped its meaning, don't even calculate
10812 inline_failed when set.
10813 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10814 (symbol_table::::create_edge): Likewise.
10815 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10817 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10818 call graph edge creating functions.
10820 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10823 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10826 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10828 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10830 2019-10-02 Richard Biener <rguenther@suse.de>
10832 * tree-vectorizer.h (vect_transform_reduction): Declare.
10833 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10834 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10835 stmt transform to ...
10836 (vect_transform_reduction): ... this.
10838 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10840 * omp-low.c (lower_omp_target): Dereference optional argument
10841 to work with the right pointer.
10843 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10845 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10847 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10848 * langhooks.h (omp_is_optional_argument): New hook.
10849 * omp-general.c (omp_is_optional_argument): New.
10850 * omp-general.h (omp_is_optional_argument): New declaration.
10851 * omp-low.c (lower_omp_target): Create temporary for received value
10852 and take the address for new_var if the original variable was a
10853 DECL_BY_REFERENCE. Use size of referenced object when a
10854 pass-by-reference optional argument used as argument to firstprivate.
10856 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10858 PR tree-optimization/91940
10859 * tree-vect-patterns.c: Include tree-vector-builder.h and
10860 vec-perm-indices.h.
10861 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10862 unpromoting the argument back to uint16_t, or by converting into a
10863 rotate, or into shifts plus ior.
10865 2019-10-02 Richard Biener <rguenther@suse.de>
10867 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10869 (vect_transform_cycle_phi): Declare.
10870 * tree-vect-stmts.c (vect_transform_stmt): Call
10871 vect_transform_cycle_phi.
10872 * tree-vect-loop.c (vectorizable_reduction): Split out
10873 PHI transformation stage to ...
10874 (vect_transform_cycle_phi): ... here.
10876 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10878 PR middle-end/91957
10879 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10880 eliminable registers.
10881 (make_hard_regno_live): Likewise, and don't make them live.
10883 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10885 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10886 Call pp_emit_prefix.
10887 (layout::print_source_line): Likewise.
10888 (layout::start_annotation_line): Likewise.
10889 (diagnostic_show_locus): Remove call to temporarily clear the
10891 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10892 interaction of pp_set_prefix with rulers and fix-it hints.
10893 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10894 prefix when calling diagnostic_show_locus, rather than destroying
10896 (print_parseable_fixits): Temporarily clear prefix.
10897 * pretty-print.c (pp_format): Save and restore line_length, rather
10898 than assuming it is zero.
10899 (pp_output_formatted_text): Remove assertion that line_length is
10902 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10904 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10906 (nonoverlapping_refs_since_match_p): ... this; handle also
10908 (alias_stats): Update stats.
10909 (dump_alias_stats): Likewise.
10910 (cheap_array_ref_low_bound): New function.
10911 (aliasing_matching_component_refs_p): Add partial_overlap
10913 pass it to nonoverlapping_refs_since_match_p.
10914 (aliasing_component_refs_walk): Update call of
10915 aliasing_matching_component_refs_p
10916 (nonoverlapping_array_refs_p): New function.
10917 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10918 indirect_refs_may_alias_p): Update calls of
10919 nonoverlapping_refs_since_match_p.
10921 2019-10-01 Maya Rashish <coypu@sdf.org>
10924 * ira-color.c (allocno_copy_cost_saving): Call
10925 ira_init_register_move_cost_if_necessary.
10927 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10929 * Makefile.in (gnat_install_lib): New variable.
10930 * configure.ac: Substitute it.
10931 * configure: Regenerate.
10933 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10936 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10937 is matched with non-C++ type
10939 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10941 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10944 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10946 * doc/invoke.texi (early-inlining-insns-O2): Document.
10947 (early-inlining-insns): Update.
10948 * params.def (early-inlining-insns-O2): New bound.
10949 (early-inlining-insns): Update docs.
10950 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10952 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10955 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10956 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10957 a memory access insn.
10959 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10961 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10964 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10967 * config/s390/s390.c (s390_expand_vec_compare): Use
10968 gen_vec_cmpordered and gen_vec_cmpunordered.
10969 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10970 vec_unordered): Delete.
10971 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10972 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10973 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10974 (vec_cmp<code>): Generic dispatcher.
10976 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10979 * config/s390/vector.md (V_HW): Add V1TI in order to make
10980 vcond$a$b generate vcondv1tiv1tf.
10982 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10984 PR rtl-optimization/91948
10985 * ira-build.c (ira_create_allocno): Initialize
10986 ALLOCNO_CROSSED_CALLS_ABIS.
10987 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10988 than regno to ira_need_caller_save_p.
10990 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10992 * config/i386/i386-options.c
10993 (ix86_recompute_optlev_based_flags): New, moved out of...
10994 (ix86_option_override_internal): ... this. Call it.
10995 (ix86_override_options_after_change): Call it here too.
10998 * dwarf2out.c (override_type_for_decl_p): New.
10999 (gen_variable_die): Use it.
11001 2019-10-01 Richard Biener <rguenther@suse.de>
11003 * tree-vect-loop.c (vectorizable_reduction): Move variables
11004 to where they are used.
11006 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11008 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11009 (build_def_use): Use PC instead of CC0 in a comment.
11011 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11013 * rtl.def (CLOBBER_HIGH): Delete.
11014 * doc/rtl.texi (clobber_high): Remove documentation.
11015 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11016 (reg_is_clobbered_by_clobber_high): Delete.
11017 (gen_hard_reg_clobber_high): Likewise.
11018 * alias.c (record_set): Remove CLOBBER_HIGH handling.
11019 * cfgexpand.c (expand_gimple_stmt): Likewise.
11020 * combine-stack-adj.c (single_set_for_csa): Likewise.
11021 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11022 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11023 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11024 * cse.c (invalidate_reg): Remove clobber_high parameter.
11025 (invalidate): Update call accordingly.
11026 (canonicalize_insn): Remove CLOBBER_HIGH handling.
11027 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11028 (count_reg_usage, insn_live_p): Likewise.
11029 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11030 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11031 (cselib_invalidate_rtx_note_stores): Update call accordingly.
11032 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11033 (cselib_invalidate_regno, cselib_process_insn): Likewise.
11034 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11035 (mark_nonreg_stores_2): Likewise.
11036 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11037 (df_get_call_refs): Likewise.
11038 * dwarf2out.c (mem_loc_descriptor): Likewise.
11039 * emit-rtl.c (verify_rtx_sharing): Likewise.
11040 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11041 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11042 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11043 * genemit.c (gen_exp, gen_insn): Likewise.
11044 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11045 * haifa-sched.c (haifa_classify_rtx): Likewise.
11046 * ira-build.c (create_insn_allocnos): Likewise.
11047 * ira-costs.c (scan_one_insn): Likewise.
11048 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11049 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11050 * jump.c (mark_jump_label_1): Likewise.
11051 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11052 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11054 (mark_not_eliminable): Likewise.
11055 * lra-lives.c (process_bb_lives): Likewise.
11056 * lra.c (new_insn_reg): Remove clobber_high parameter.
11057 (collect_non_operand_hard_regs): Likewise. Update call to new
11058 insn_reg. Remove CLOBBER_HIGH handling.
11059 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11060 to collect_non_operand_hard_regs.
11061 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11062 Update call to new_insn_reg.
11063 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11064 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11065 (move2add_note_store): Likewise.
11066 * print-rtl.c (print_pattern): Likewise.
11067 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11068 (if_test_bypass_p): Likewise.
11069 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11070 * reginfo.c (reg_scan_mark_refs): Likewise.
11071 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11072 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11073 (forget_old_reloads_1): Likewise.
11074 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11075 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11076 (dbr_schedule): Likewise.
11077 * resource.c (update_live_status, mark_referenced_resources)
11078 (mark_set_resources): Likewise.
11079 * rtl.c (copy_rtx): Likewise.
11080 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11081 (note_pattern_stores): Likewise.
11082 (reg_is_clobbered_by_clobber_high): Delete.
11083 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11084 CLOBBER_HIGH handling.
11086 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11089 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11090 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11091 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11092 Handle ARM_PCS_TLSDESC.
11093 (aarch64_tlsdesc_abi_id): New function.
11094 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11095 rtx instead of a list of clobbers and clobber_highs.
11096 (tlsdesc_small_<mode>): Update accordingly.
11098 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11100 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11101 extra callee_abi argument.
11102 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11103 Insert a CALLEE_ABI unspec into the call pattern as the second
11104 element in the PARALLEL.
11105 (aarch64_simd_call_p): Delete.
11106 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11107 the new CALLEE_ABI element of the PARALLEL.
11108 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11109 from the function type, if given.
11110 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11111 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11112 when passed the function_arg_info end marker.
11113 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11114 final argument of gen_sibcall.
11115 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11116 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11117 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11119 (call_value): Likewise operand 3.
11120 (sibcall): Likewise operand 2. Place the unspec before rather than
11122 (sibcall_value): Likewise operand 3.
11123 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11124 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11125 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11126 constraint strings.
11127 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11129 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11131 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11132 choose_hard_reg_mode.
11133 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11135 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11137 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11138 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11139 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11141 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11143 * diagnostic-show-locus.c (line_label::line_label): Initialize
11145 (line_label::comparator): Reverse the sort order by m_state_idx,
11146 so that when the list is walked backwards the labels appear in
11147 order of insertion into the rich_location.
11148 (line_label::m_has_vbar): New field.
11149 (layout::print_any_labels): When dealing with multiple labels at
11150 the same line and column, only print vertical bars for the one
11151 with the highest label_line.
11152 (selftest::test_one_liner_labels): Update test for multiple labels
11153 to expect the labels to be in the order of insertion into the
11154 rich_location. Add a test for many such labels, where the column
11155 numbers are out-of-order relative to the insertion order.
11157 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11159 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11160 (ix86_frame::expensive_count): Likewise.
11161 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11162 of use_fast_prologue_epilogue robust against incidental changes
11165 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11168 * config/s390/vector.md (vec_unordered<mode>): Call
11169 gen_vec_ordered<mode>.
11171 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11173 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11174 New pattern for ASRD.
11175 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11176 * internal-fn.def (IFN_DIV_POW2): New internal function.
11177 * optabs.def (sdiv_pow2_optab): New optab.
11178 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11179 Modify pattern to support new operation.
11180 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11181 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11182 Document new target selector.
11184 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11186 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11187 to test whether we're compiling a vector PCS function and to test
11188 whether the function needs to save a particular register.
11189 Remove the vector PCS handling of df_set_regs_ever_live.
11190 (aarch64_components_for_bb): Use crtl->abi to test whether
11191 the function needs to save a particular register.
11192 (aarch64_process_components): Use crtl->abi to test whether
11193 we're compiling a vector PCS function.
11194 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11195 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11197 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11199 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11201 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11202 whether the block calls a function that clobbers more registers
11203 than the current function is allowed to.
11204 (aarch64_use_simple_return_insn_p): Delete.
11205 * config/aarch64/aarch64.md (simple_return): Remove condition.
11207 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11209 * function-abi.h (function_abi_aggregator): New class.
11210 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11212 * ira.c (update_equiv_regs_prescan): New function. Call
11213 set_paradoxical_subreg here rather than...
11214 (update_equiv_regs): ...here.
11215 (ira): Call update_equiv_regs_prescan.
11217 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11219 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11221 (call_used_or_fixed_regs): Likewise.
11222 (call_used_or_fixed_reg_p): Likewise.
11223 * reginfo.c (regs_invalidated_by_call): New macro.
11225 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11227 * shrink-wrap.c: Include function-abi.h.
11228 (requires_stack_frame_p): Use crtl->abi to test whether the
11229 current function can use a register without saving it first.
11231 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11233 * sel-sched-ir.h (_def::crosses_call): Replace with...
11234 (_def::crossed_call_abis): ..this new field.
11235 (def_list_add): Take a mask of ABIs instead of a crosses_call
11237 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11238 of _def accordingly.
11239 * sel-sched.c: Include function-abi.h.
11240 (hard_regs_data::regs_for_call_clobbered): Delete.
11241 (reg_rename::crosses_call): Replace with...
11242 (reg_rename::crossed_call_abis): ...this new field.
11243 (fur_static_params::crosses_call): Replace with...
11244 (fur_static_params::crossed_call_abis): ...this new field.
11245 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11246 (init_hard_regs_data): Use crtl->abi to test which registers the
11247 current function would need to save before it uses them.
11248 (mark_unavailable_hard_regs): Update handling of call-clobbered
11249 registers, using call_clobbers_in_region to find out which registers
11250 might be call-clobbered (but without taking -fipa-ra into account
11251 for now). Remove separate handling of partially call-clobbered
11253 (verify_target_availability): Use crossed_call_abis instead of
11255 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11256 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11258 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11260 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11261 function to test whether a register is fully or partly clobbered.
11263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11265 * rtlanal.c: Include function-abi.h.
11266 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11267 function and clobbers_reg_p to test whether the register
11269 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11270 to get the ABI of the called function and full_reg_clobbers to
11271 get the set of fully call-clobbered registers. Warn about the
11272 pitfalls of using this mode.
11274 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11276 * reload.c: Include function-abi.h.
11277 (find_equiv_reg): Use clobbers_reg_p to test whether either
11278 of the equivalent registers is clobbered by a call.
11279 * reload1.c: Include function-abi.h.
11280 (reg_reloaded_call_part_clobbered): Delete.
11281 (reload): Use crtl->abi to test which registers would need
11282 saving in the prologue before use.
11283 (find_reg): Likewise.
11284 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11285 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11286 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11288 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11290 * regrename.h (du_head::call_clobber_mask): New field.
11291 (du_head::need_caller_save_reg): Replace with...
11292 (du_head::call_abis): ...this new field.
11293 * regrename.c: Include function-abi.h.
11294 (call_clobbered_in_chain_p): New function.
11295 (check_new_reg_p): Use crtl->abi when deciding whether a register
11296 is free for use after RA. Use call_clobbered_in_chain_p to test
11297 whether a candidate register would be clobbered by a call.
11298 (find_rename_reg): Don't add call-clobber conflicts here.
11299 (rename_chains): Check call_abis instead of need_caller_save_reg.
11300 (merge_chains): Update for changes to du_head.
11301 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11302 target. Record the ABI identifier in call_abis and the set of
11303 fully or partially clobbered registers in call_clobber_mask.
11304 Add fully-clobbered registers to hard_conflicts here rather
11305 than in find_rename_reg.
11306 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11307 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11308 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11310 * config/c6x/c6x.c: Likewise.
11312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11314 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11315 mode of the register when deciding whether it is no longer
11316 available after a call.
11318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11320 * recog.c: Include function-abi.h.
11321 (peep2_find_free_register): Use crtl->abi when deciding whether
11322 a register is free for use after RA.
11324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11326 * postreload-gcse.c: Include regs.h and function-abi.h.
11327 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11328 call insn target. Conservatively assume that partially-clobbered
11329 registers are altered.
11331 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11333 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11334 when deciding whether a register is free for use after RA.
11335 (reload_combine): Remove unnecessary use of fixed_reg_set.
11336 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11337 call insn target. Use reg_mode when testing whether a register
11338 is no longer available.
11340 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11342 * target.def (return_call_with_max_clobbers): Delete.
11343 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11344 * doc/tm.texi: Regenerate.
11345 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11346 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11347 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11348 (lra_reg::call_insn): Delete.
11349 * lra.c: Include function-abi.h.
11350 (initialize_lra_reg_info_element): Don't initialize the fields above.
11351 (lra): Use crtl->abi to test whether the current function needs to
11352 save a register in the prologue. Remove special pre-inheritance
11353 lra_create_live_ranges pass for flag_ipa_ra.
11354 * lra-assigns.c: Include function-abi.h
11355 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11356 function needs to save a register in the prologue.
11357 (lra_assign): Assert that registers aren't allocated to a
11358 conflicting register, rather than checking only for overlaps
11359 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11360 and for registers that are not live across a call.
11361 * lra-constraints.c (last_call_for_abi): New variable.
11362 (full_and_partial_call_clobbers): Likewise.
11363 (setup_next_usage_insn): Remove the register from
11364 full_and_partial_call_clobbers.
11365 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11366 whether the register needs a caller save.
11367 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11368 of call_used_or_fixed_regs.
11369 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11370 full_and_partial_call_clobbers.
11371 * lra-lives.c (check_pseudos_live_through_calls): Replace
11372 last_call_used_reg_set and call_insn arguments with an abi argument.
11373 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11374 as the set of conflicting registers.
11375 (calls_have_same_clobbers_p): Delete.
11376 (process_bb_lives): Track the ABI of the last call instead of an
11377 insn/HARD_REG_SET pair. Update calls to
11378 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11379 the set of registers that could be clobbered by an EH edge.
11380 Include partially-clobbered as well as fully-clobbered registers.
11381 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11382 * lra-remat.c: Include function-abi.h.
11383 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11384 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11385 registers and bitmap_view to combine them into dead_regs.
11386 (call_used_input_regno_present_p): Take a function_abi argument
11387 and use it to test whether a register is call-clobbered.
11388 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11389 call insn target. Update tje call to call_used_input_regno_present_p.
11390 (do_remat): Likewise.
11391 (lra_remat): Remove the initialization of call_used_regs_arr_len
11392 and call_used_regs_arr.
11394 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11396 * loop-iv.c: Include regs.h and function-abi.h.
11397 (simplify_using_initial_values): Use insn_callee_abi to get the
11398 ABI of the call insn target. Conservatively assume that
11399 partially-clobbered registers are altered.
11401 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11403 * function-abi.h (call_clobbers_in_region): Declare.
11404 (call_clobbered_in_region_p): New function.
11405 * function-abi.cc (call_clobbers_in_region): Likewise.
11406 * ira-int.h: Include function-abi.h.
11407 (ira_allocno::crossed_calls_abis): New field.
11408 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11409 (ira_need_caller_save_regs): New function.
11410 (ira_need_caller_save_p): Likewise.
11411 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11412 of call_used_or_fixed_regs.
11413 (do_reload): Use crtl->abi to test whether the current function
11414 needs to save a register in the prologue. Count registers that
11415 need to be saved rather than registers that don't.
11416 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11417 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11418 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11419 (propagate_some_info_from_allocno): Likewise.
11420 (copy_info_to_removed_store_destinations): Likewise.
11421 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11422 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11423 (ira_build): Use ira_need_caller_save_regs instead of
11424 call_used_or_fixed_regs.
11425 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11426 whether the current function would need to save a register
11428 (calculate_spill_cost): Likewise.
11429 (allocno_reload_assign): Use ira_need_caller_save_regs and
11430 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11431 * ira-conflicts.c (ira_build_conflicts): Use
11432 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11433 as the set of call-clobbered registers. Remove the
11434 call_used_or_fixed_regs mask from the calculation of
11435 temp_hard_reg_set and mask its use instead. Remove special
11436 handling of partially-clobbered registers.
11437 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11438 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11439 calculate the set of conflicting registers for calls that
11440 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11441 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11442 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11443 Use eh_edge_abi to calculate the set of registers that could
11444 be clobbered by an EH edge. Include partially-clobbered as
11445 well as fully-clobbered registers.
11447 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11449 * haifa-sched.c: Include function-abi.h.
11450 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11451 the function would need to save a register before using it.
11453 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11455 * gcse.c: Include function-abi.h.
11456 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11457 the call insn target. Invalidate partially call-clobbered
11458 registers as well as fully call-clobbered ones.
11460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11462 * function.c (aggregate_value_p): Work out which ABI the
11463 function is using before testing which registers are at least
11464 partly preserved by a call.
11466 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11468 * early-remat.c: Include regs.h and function-abi.h.
11469 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11471 (early_remat::restrict_remat_for_unavail_regs): New function.
11472 (early_remat::restrict_remat_for_call): Likewise.
11473 (early_remat::process_block): Before calling emit_remat_insns
11474 for a previous call in the block, invalidate any candidates
11475 that would clobber call-preserved registers.
11476 (early_remat::emit_remat_insns_for_block): Likewise for the
11477 final call in a block. Do the same thing for live-in registers
11478 when calling emit_remat_insns at the head of a block.
11480 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11482 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11483 whether the current function needs to save at least part of a
11484 register before using it.
11485 (df_get_exit_block_use_set): Likewise for epilogue restores.
11487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11489 * df-problems.c: Include regs.h and function-abi.h.
11490 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11491 sparse_invalidated_by_eh and dense_invalidated_by_call to
11492 dense_invalidated_by_eh.
11493 (df_print_bb_index): Update accordingly.
11494 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11495 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11496 that are clobbered by an EH edge. Clobber partially-clobbered
11497 registers as well as fully-clobbered ones.
11498 (df_md_confluence_n): Likewise.
11499 (df_rd_local_compute): Likewise. Update for changes to
11500 df_rd_problem_data.
11501 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11502 of registers that are clobbered by an EH edge. Includde partially-
11503 clobbered registers as well as fully-clobbered ones.
11505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11507 * cselib.c (cselib_process_insn): If we know what mode a
11508 register was set in, check whether it is clobbered in that
11509 mode by a call. Only fall back to reg_raw_mode if that fails.
11511 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11513 * cse.c: Include regs.h and function-abi.h.
11514 (invalidate_for_call): Take the call insn as an argument.
11515 Use insn_callee_abi to get the ABI of the call and invalidate
11516 partially clobbered registers as well as fully clobbered ones.
11517 (cse_insn): Update call accordingly.
11519 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11521 * combine.c: Include function-abi.h.
11522 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11523 of the target of call insns. Invalidate partially-clobbered
11524 registers as well as fully-clobbered ones.
11526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11528 * cfgloopanal.c: Include regs.h and function-abi.h.
11529 (init_set_costs): Use default_function_abi to test whether
11530 a general register is call-clobbered.
11532 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11534 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11535 instead of the call-clobbered sets.
11537 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11539 * caller-save.c (setup_save_areas): Remove redundant |s of
11541 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11542 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11545 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11547 * rtl.h (predefined_function_abi): Declare.
11548 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11549 instead of a boolean call_save flag.
11550 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11552 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11553 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11554 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11555 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11556 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11557 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11558 * reginfo.c (init_reg_modes_target): Likewise.
11559 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11560 instead of a boolean call_save flag.
11561 * targhooks.c: Include function-abi.h.
11562 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11563 using eh_edge_abi to choose the mode.
11565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11567 * target.def (hard_regno_call_part_clobbered): Take an ABI
11568 identifier instead of an rtx_insn.
11569 * doc/tm.texi: Regenerate.
11570 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11571 (hook_bool_uint_uint_mode_false): New function.
11572 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11573 (hook_bool_uint_uint_mode_false): New function.
11574 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11575 Take an ABI identifier instead of an rtx_insn.
11576 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11577 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11578 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11579 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11580 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11582 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11583 * cselib.c: Include function-abi.h.
11584 (cselib_process_insn): Update call to
11585 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11586 to get the appropriate ABI identifier.
11587 * function-abi.cc (predefined_function_abi::initialize): Update call
11588 to targetm.hard_regno_call_part_clobbered.
11589 * ira-conflicts.c (ira_build_conflicts): Likewise.
11590 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11591 * lra-constraints.c: Include function-abi.h.
11592 (need_for_call_save_p): Update call to
11593 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11594 to get the appropriate ABI identifier.
11595 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11596 * regcprop.c (copyprop_hardreg_forward_1): Update call
11597 to targetm.hard_regno_call_part_clobbered.
11598 * reginfo.c (choose_hard_reg_mode): Likewise.
11599 * regrename.c (check_new_reg_p): Likewise.
11600 * reload.c (find_equiv_reg): Likewise.
11601 * reload1.c (emit_reload_insns): Likewise.
11602 * sched-deps.c: Include function-abi.h.
11603 (deps_analyze_insn): Update call to
11604 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11605 to get the appropriate ABI identifier.
11606 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11607 call to targetm.hard_regno_call_part_clobbered.
11608 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11610 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11612 * config/i386/i386.c: Include function-abi.h.
11613 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11614 if they preserve some 256-bit or 512-bit SSE registers.
11616 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11618 * target.def (insn_callee_abi): New hook.
11619 (remove_extra_call_preserved_regs): Delete.
11620 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11621 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11622 * doc/tm.texi: Regenerate.
11623 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11624 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11625 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11627 (aarch64_remove_extra_call_preserved_regs): Delete.
11628 (aarch64_insn_callee_abi): New function.
11629 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11630 (TARGET_INSN_CALLEE_ABI): New macro.
11631 * rtl.h (get_call_fndecl): Declare.
11632 (cgraph_rtl_info): Fix formatting. Tweak comment for
11633 function_used_regs. Remove function_used_regs_valid.
11634 * rtlanal.c (get_call_fndecl): Moved from final.c
11635 * function-abi.h (insn_callee_abi): Declare.
11636 (target_function_abi_info): Mention insn_callee_abi.
11637 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11638 way to get_call_reg_set_usage did.
11639 (insn_callee_abi): New function.
11640 * regs.h (get_call_reg_set_usage): Delete.
11641 * final.c: Include function-abi.h.
11642 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11643 function_used_regs before the main loop rather than afterwards.
11644 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11645 if function_used_regs ends up not being useful.
11646 (get_call_fndecl): Move to rtlanal.c
11647 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11648 * caller-save.c: Include function-abi.h.
11649 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11650 instead of get_call_reg_set_usage.
11651 * cfgcleanup.c: Include function-abi.h.
11652 (old_insns_match_p): Use insn_callee_abi instead of
11653 get_call_reg_set_usage.
11654 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11656 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11657 function_used_regs.
11658 * df-scan.c: Include function-abi.h.
11659 (df_get_call_refs): Use insn_callee_abi instead of
11660 get_call_reg_set_usage.
11661 * ira-lives.c: Include function-abi.h.
11662 (process_bb_node_lives): Use insn_callee_abi instead of
11663 get_call_reg_set_usage.
11664 * lra-lives.c: Include function-abi.h.
11665 (process_bb_lives): Use insn_callee_abi instead of
11666 get_call_reg_set_usage.
11667 * postreload.c: Include function-abi.h.
11668 (reload_combine): Use insn_callee_abi instead of
11669 get_call_reg_set_usage.
11670 * regcprop.c: Include function-abi.h.
11671 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11672 get_call_reg_set_usage.
11673 * resource.c: Include function-abi.h.
11674 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11675 instead of get_call_reg_set_usage.
11676 * var-tracking.c: Include function-abi.h.
11677 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11678 get_call_reg_set_usage.
11680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11682 * target.def (fntype_abi): New target hook.
11683 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11684 * doc/tm.texi: Regenerate.
11685 * target.h (predefined_function_abi): Declare.
11686 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11688 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11689 * config/aarch64/aarch64.c: Include function-abi.h.
11690 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11691 (TARGET_FNTYPE_ABI): Define.
11693 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11695 * Makefile.in (OBJS): Add function-abi.o.
11696 (GTFILES): Add function-abi.h.
11697 * function-abi.cc: New file.
11698 * function-abi.h: Likewise.
11699 * emit-rtl.h (rtl_data::abi): New field.
11700 * function.c: Include function-abi.h.
11701 (prepare_function_start): Initialize crtl->abi.
11702 * read-rtl-function.c: Include regs.h and function-abi.h.
11703 (read_rtl_function_body): Initialize crtl->abi.
11704 (read_rtl_function_body_from_file_range): Likewise.
11705 * reginfo.c: Include function-abi.h.
11706 (init_reg_sets_1): Initialize default_function_abi.
11707 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11708 when making a register global.
11709 * target-globals.h (this_target_function_abi_info): Declare.
11710 (target_globals::function_abi_info): New field.
11711 (restore_target_globals): Copy it.
11712 * target-globals.c: Include function-abi.h.
11713 (default_target_globals): Initialize the function_abi_info field.
11714 (target_globals): Allocate it.
11715 (save_target_globals): Free it.
11717 2019-09-30 Nick Clifton <nickc@redhat.com>
11720 * config/frv/frv.c (frv_register_move_cost): Add break statements
11721 to avoid falling through to the wrong cases. Tidy code.
11723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11725 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11726 For multi-registers modes, test how big each register part is.
11728 2019-09-30 Nick Clifton <nickc@redhat.com>
11731 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11732 (TARGET_ASM_SELECT_SECTION): Remove definition.
11733 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11735 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11737 * emit-rtl.c (init_raw_REG): New function.
11738 (gen_raw_REG): Use init_raw_REG.
11739 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11741 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11742 * rtl.h (rtx_init): New function.
11743 (rtx_alloca): New function.
11744 (init_raw_REG): New function.
11745 (alloca_raw_REG): New macro.
11747 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11749 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11750 (pcrel_local_address): Replace pcrel_address predicate, use the
11751 new function address_to_insn_form.
11752 (pcrel_external_address): Replace with new implementation using
11753 address_to_insn_form..
11754 (prefixed_mem_operand): Delete predicate which is now unused.
11755 (pcrel_external_mem_operand): Delete predicate which is now
11757 * config/rs6000/rs6000-protos.h (enum insn_form): New
11759 (enum non_prefixed_form): New enumeration.
11760 (address_to_insn_form): New declaration.
11761 (prefixed_load_p): New declaration.
11762 (prefixed_store_p): New declaration.
11763 (prefixed_paddi_p): New declaration.
11764 (rs6000_asm_output_opcode): New declaration.
11765 (rs6000_final_prescan_insn): Move declaration and update calling
11767 (address_is_prefixed): New helper inline function.
11768 * config/rs6000/rs6000.c(print_operand_address): Check for either
11769 PC-relative local symbols or PC-relative external symbols.
11770 (rs6000_emit_move): Support loading PC-relative addresses.
11771 (mode_supports_prefixed_address_p): Delete, no longer used.
11772 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11773 (address_to_insn_form): New function to decode an address format.
11774 (reg_to_non_prefixed): New function to identify what the
11775 non-prefixed memory instruction format is for a register.
11776 (prefixed_load_p): New function to identify prefixed loads.
11777 (prefixed_store_p): New function to identify prefixed stores.
11778 (prefixed_paddi_p): New function to identify prefixed load
11780 (next_insn_prefixed_p): New static state variable.
11781 (rs6000_final_prescan_insn): New function to determine if an insn
11782 uses a prefixed instruction.
11783 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11784 prefixed instruction.
11785 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11786 (ASM_OUTPUT_OPCODE): New target hook.
11787 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11788 prefixed instructions.
11789 (prefixed_length): New insn attribute for the size of prefixed
11791 (non_prefixed_length): New insn attribute for the size of
11792 non-prefixed instructions.
11793 (pcrel_local_addr): New insn to load up a local PC-relative
11795 (pcrel_extern_addr): New insn to load up an external PC-relative
11797 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11798 GPR and loading a 128-bit floating point type to a GPR.
11800 2019-09-30 Richard Biener <rguenther@suse.de>
11802 * gimple.c (gimple_get_lhs): For PHIs return the result.
11803 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11804 SLP instance as argument.
11805 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11806 double-reduction PHIs with vectorizable_lc_phi.
11807 (vect_analyze_loop_operations): Adjust.
11808 (vect_create_epilog_for_reduction): Remove all code not dealing
11809 with reduction LC PHI or epilogue generation.
11810 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11811 for live stmts of reductions.
11812 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11813 do not handle defs that are not vect_internal_def.
11814 (can_vectorize_live_stmts): Adjust.
11815 (vect_analyze_stmt): When the vectorized stmt defined a value
11816 used on backedges adjust the backedge uses of vectorized PHIs.
11818 2019-09-30 Martin Jambor <mjambor@suse.cz>
11821 * tree-inline.c (force_value_to_type): New function.
11822 (setup_one_parameter): Use force_value_to_type to convert type.
11823 * tree-inline.c (force_value_to_type): Declare.
11824 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11825 with register type mismatches.
11827 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11829 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11831 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11832 * config/rs6000/t-freebsd64: Make use of the above define and build
11833 the 32-bit libraries with secure-plt.
11835 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11838 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11839 gen_int_mode instead of GEN_INT.
11841 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11843 * config/darwin.c (gen_macho_low): Amend to include the mode
11845 (machopic_indirect_data_reference): Amend gen_macho_low call
11846 to include mode argument
11847 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11848 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11849 the macho_high expander and two define_insn entries.
11851 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11854 * optc-save-gen.awk: Fix up printing string option differences.
11856 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11858 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11859 vec_perm cost to 1 for non-Power7 VSX architectures.
11861 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11863 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11864 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11865 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11867 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11869 * config/darwin.c (gen_macho_high): Amend to include the mode
11871 (machopic_indirect_data_reference): Amend gen_macho_high call
11872 to include mode argument.
11873 (machopic_legitimize_pic_address): Likewise.
11874 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11875 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11876 the macho_high expander and two define_insn entries.
11878 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11881 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11883 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11886 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11887 std::string::compare instead of std::string::find.
11889 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11891 * configure: Regenerate.
11893 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11895 PR middle-end/91920
11896 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11897 variables as shared.
11899 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11901 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11902 replaces the expander and two define_insn entries.
11903 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11905 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11907 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11909 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11910 (fibonacci_heap::nodes): Likewise.
11911 (fibonacci_heap::min_key): Likewise.
11912 (fibonacci_heap::min): Likewise.
11914 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11916 * cgraph.c (cgraph_node::get_fun): Make const.
11917 * cgraph.h (cgraph_node::get_fun): Likewise.
11919 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11922 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11925 2019-09-27 Richard Biener <rguenther@suse.de>
11927 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11928 (STMT_VINFO_REDUC_FN): Likewise.
11929 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11930 STMT_VINFO_REDUC_FN.
11931 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11932 for condition reductions.
11933 (vect_create_epilog_for_reduction): Compute all required state
11934 from the stmt to be vectorized.
11935 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11936 invocation and remove then dead code. For single def-use chains
11937 record only a single vector stmt.
11939 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11941 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11942 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11943 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11944 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11945 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11946 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11947 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11948 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11949 (aarch64_general_builtin_rsqrt): Declare.
11950 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11952 (aarch64_mangle_builtin_type): Rename to...
11953 (aarch64_general_mangle_builtin_type): ...this.
11954 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11955 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11956 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11957 aarch64_general_add_builtin instead of add_builtin_function.
11958 (aarch64_init_builtins): Rename to...
11959 (aarch64_general_init_builtins): ...this. Use
11960 aarch64_general_add_builtin instead of add_builtin_function.
11961 (aarch64_builtin_decl): Rename to...
11962 (aarch64_general_builtin_decl): ...this and remove the unused
11964 (aarch64_expand_builtin): Rename to...
11965 (aarch64_general_expand_builtin): ...this and remove the unused
11967 (aarch64_builtin_rsqrt): Rename to...
11968 (aarch64_general_builtin_rsqrt): ...this.
11969 (aarch64_fold_builtin): Rename to...
11970 (aarch64_general_fold_builtin): ...this. Take the function subcode
11971 and return type as arguments. Remove the "ignored" argument.
11972 (aarch64_gimple_fold_builtin): Rename to...
11973 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11974 subcode and gcall as arguments, and return the new function call.
11975 * config/aarch64/aarch64.c (aarch64_init_builtins)
11976 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11977 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11978 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11979 instead of aarch64_builtin_rsqrt.
11980 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11981 instead of aarch64_mangle_builtin_type.
11983 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11985 * target.def (check_builtin_call): New target hook.
11986 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11987 * doc/tm.texi: Regenerate.
11989 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11991 PR tree-optimization/91909
11992 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11993 reduc_index parameter. When handling COND_REDUCTION, make sure
11994 that the reduction phi operand is in the correct arm of the
11996 (vectorizable_reduction): Pass reduc_index to the above.
11998 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
12000 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12001 New combine pattern.
12003 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
12005 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12006 loop instruction into new basic block before the loop when basic
12007 block that precedes the loop is empty.
12009 2019-09-26 Jakub Jelinek <jakub@redhat.com>
12011 * function.c (gimplify_parameters): Use build_clobber function.
12012 * tree-ssa.c (execute_update_addresses_taken): Likewise.
12013 * tree-inline.c (expand_call_inline): Likewise.
12014 * tree-sra.c (clobber_subtree): Likewise.
12015 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12016 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12017 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12018 lower_omp_target): Likewise.
12019 * omp-expand.c (expand_omp_for_generic): Likewise.
12020 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12022 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
12024 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12025 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12026 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12027 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12028 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12029 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12030 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12031 LD_ELEMREV_V16QI): Use the PURE attribute.
12033 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
12035 * config/rs6000/darwin.md: Replace the expanders for
12036 load_macho_picbase and reload_macho_picbase with use of '@'
12037 and <mode> in their respective define_insns.
12038 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12039 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12040 Pmode to gen_load_macho_picbase.
12041 * config/rs6000/rs6000.md: Likewise.
12043 2019-09-25 Richard Biener <rguenther@suse.de>
12045 PR tree-optimization/91896
12046 * tree-vect-loop.c (vectorizable_reduction): The single
12047 def-use cycle optimization cannot apply when there's more
12048 than one pattern stmt involved.
12050 2019-09-26 Richard Biener <rguenther@suse.de>
12052 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12053 loop-closed PHIs that are vect_internal_def.
12054 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12056 (vectorizable_lc_phi): New.
12057 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12058 (vect_transform_stmt): Likewise.
12059 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12060 (vectorizable_lc_phi): Declare.
12062 2019-09-26 Richard Biener <rguenther@suse.de>
12064 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12065 vectorizable_reduction for vect_double_reduction_def.
12066 (vect_transform_loop): Likewise.
12067 (vect_create_epilog_for_reduction): Move double-reduction
12068 PHI creation and preheader argument setting of PHIs ...
12069 (vectorizable_reduction): ... here. Also process
12070 vect_double_reduction_def PHIs, creating the vectorized
12071 PHI nodes, remembering the scalar adjustment computed for
12072 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12073 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12074 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12075 Initialize STMT_VINFO_REDUC_CODE.
12076 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12077 (_stmt_vec_info::reduc_code): Likewise.
12078 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12079 (STMT_VINFO_REDUC_CODE): Likewise.
12081 2019-09-26 Matt Turner <mattst88@gmail.com>
12084 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12085 (mtune=): Add Negative(mtune=).
12086 (mcpu=): Add Negative(mcpu=).
12087 * config/arm/arm.opt: Likewise.
12089 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12091 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12092 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12094 * config/arm/arm_acle.h: Define builtins for the above.
12095 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12096 (simd32_op): Handle the above.
12097 * config/arm/unspecs.md: Define unspecs for the above.
12099 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12101 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12102 (arm_<sup>xtb16): Likewise.
12103 (arm_usada8): Likewise.
12104 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12105 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12106 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12107 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12108 __sxtb16, __uxtab16, __uxtb16): Define.
12109 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12110 * config/arm/unspecs.md: Define unspecs for the above.
12111 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12112 (USXTB16): Likewise.
12113 (simd32_op): New int_attribute.
12114 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12115 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12117 2019-09-26 Martin Jambor <mjambor@suse.cz>
12119 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12122 2019-09-26 Martin Jambor <mjambor@suse.cz>
12124 * ipa-sra.c (process_scan_results): Fix continue condition.
12126 2019-09-26 Martin Liska <mliska@suse.cz>
12128 PR tree-optimization/91885
12129 * tree-vectorizer.c (try_vectorize_loop_1): Add
12130 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12132 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12134 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12135 aarch64_plus_immediate rather than aarch64_uimm12_shift
12136 to test for valid PLUS immediates.
12138 2019-09-25 Martin Jambor <mjambor@suse.cz>
12140 * tree-sra.c (no_accesses_p): Remove.
12141 (no_accesses_representant): Likewise.
12143 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12145 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12147 (vaba_s16): Likewise.
12148 (vaba_s32): Likewise.
12149 (vaba_u8): Likewise.
12150 (vaba_u16): Likewise.
12151 (vaba_u32): Likewise.
12152 (vabal_high_s8): Likewise.
12153 (vabal_high_s16): Likewise.
12154 (vabal_high_s32): Likewise.
12155 (vabal_high_u8): Likewise.
12156 (vabal_high_u16): Likewise.
12157 (vabal_high_u32): Likewise.
12158 (vabal_s8): Likewise.
12159 (vabal_s16): Likewise.
12160 (vabal_s32): Likewise.
12161 (vabal_u8): Likewise.
12162 (vabal_u16): Likewise.
12163 (vabal_u32): Likewise.
12164 (vabaq_s8): Likewise.
12165 (vabaq_s16): Likewise.
12166 (vabaq_s32): Likewise.
12167 (vabaq_u8): Likewise.
12168 (vabaq_u16): Likewise.
12169 (vabaq_u32): Likewise.
12170 (vabd_s8): Likewise.
12171 (vabd_s16): Likewise.
12172 (vabd_s32): Likewise.
12173 (vabd_u8): Likewise.
12174 (vabd_u16): Likewise.
12175 (vabd_u32): Likewise.
12176 (vabdl_high_s8): Likewise.
12177 (vabdl_high_s16): Likewise.
12178 (vabdl_high_s32): Likewise.
12179 (vabdl_high_u8): Likewise.
12180 (vabdl_high_u16): Likewise.
12181 (vabdl_high_u32): Likewise.
12182 (vabdl_s8): Likewise.
12183 (vabdl_s16): Likewise.
12184 (vabdl_s32): Likewise.
12185 (vabdl_u8): Likewise.
12186 (vabdl_u16): Likewise.
12187 (vabdl_u32): Likewise.
12188 (vabdq_s8): Likewise.
12189 (vabdq_s16): Likewise.
12190 (vabdq_s32): Likewise.
12191 (vabdq_u8): Likewise.
12192 (vabdq_u16): Likewise.
12193 (vabdq_u32): Likewise.
12194 (vaddlv_s8): Likewise.
12195 (vaddlv_s16): Likewise.
12196 (vaddlv_u8): Likewise.
12197 (vaddlv_u16): Likewise.
12198 (vaddlvq_s8): Likewise.
12199 (vaddlvq_s16): Likewise.
12200 (vaddlvq_s32): Likewise.
12201 (vaddlvq_u8): Likewise.
12202 (vaddlvq_u16): Likewise.
12203 (vaddlvq_u32): Likewise.
12204 (vcvtx_f32_f64): Likewise.
12205 (vcvtx_high_f32_f64): Likewise.
12206 (vcvtxd_f32_f64): Likewise.
12207 (vmla_n_f32): Likewise.
12208 (vmla_n_s16): Likewise.
12209 (vmla_n_s32): Likewise.
12210 (vmla_n_u16): Likewise.
12211 (vmla_n_u32): Likewise.
12212 (vmla_s8): Likewise.
12213 (vmla_s16): Likewise.
12214 (vmla_s32): Likewise.
12215 (vmla_u8): Likewise.
12216 (vmla_u16): Likewise.
12217 (vmla_u32): Likewise.
12218 (vmlal_high_n_s16): Likewise.
12219 (vmlal_high_n_s32): Likewise.
12220 (vmlal_high_n_u16): Likewise.
12221 (vmlal_high_n_u32): Likewise.
12222 (vmlal_high_s8): Likewise.
12223 (vmlal_high_s16): Likewise.
12224 (vmlal_high_s32): Likewise.
12225 (vmlal_high_u8): Likewise.
12226 (vmlal_high_u16): Likewise.
12227 (vmlal_high_u32): Likewise.
12228 (vmlal_n_s16): Likewise.
12229 (vmlal_n_s32): Likewise.
12230 (vmlal_n_u16): Likewise.
12231 (vmlal_n_u32): Likewise.
12232 (vmlal_s8): Likewise.
12233 (vmlal_s16): Likewise.
12234 (vmlal_s32): Likewise.
12235 (vmlal_u8): Likewise.
12236 (vmlal_u16): Likewise.
12237 (vmlal_u32): Likewise.
12238 (vmlaq_n_f32): Likewise.
12239 (vmlaq_n_s16): Likewise.
12240 (vmlaq_n_s32): Likewise.
12241 (vmlaq_n_u16): Likewise.
12242 (vmlaq_n_u32): Likewise.
12243 (vmlaq_s8): Likewise.
12244 (vmlaq_s16): Likewise.
12245 (vmlaq_s32): Likewise.
12246 (vmlaq_u8): Likewise.
12247 (vmlaq_u16): Likewise.
12248 (vmlaq_u32): Likewise.
12249 (vmls_n_f32): Likewise.
12250 (vmls_n_s16): Likewise.
12251 (vmls_n_s32): Likewise.
12252 (vmls_n_u16): Likewise.
12253 (vmls_n_u32): Likewise.
12254 (vmls_s8): Likewise.
12255 (vmls_s16): Likewise.
12256 (vmls_s32): Likewise.
12257 (vmls_u8): Likewise.
12258 (vmls_u16): Likewise.
12259 (vmls_u32): Likewise.
12260 (vmlsl_high_n_s16): Likewise.
12261 (vmlsl_high_n_s32): Likewise.
12262 (vmlsl_high_n_u16): Likewise.
12263 (vmlsl_high_n_u32): Likewise.
12264 (vmlsl_high_s8): Likewise.
12265 (vmlsl_high_s16): Likewise.
12266 (vmlsl_high_s32): Likewise.
12267 (vmlsl_high_u8): Likewise.
12268 (vmlsl_high_u16): Likewise.
12269 (vmlsl_high_u32): Likewise.
12270 (vmlsl_n_s16): Likewise.
12271 (vmlsl_n_s32): Likewise.
12272 (vmlsl_n_u16): Likewise.
12273 (vmlsl_n_u32): Likewise.
12274 (vmlsl_s8): Likewise.
12275 (vmlsl_s16): Likewise.
12276 (vmlsl_s32): Likewise.
12277 (vmlsl_u8): Likewise.
12278 (vmlsl_u16): Likewise.
12279 (vmlsl_u32): Likewise.
12280 (vmlsq_n_f32): Likewise.
12281 (vmlsq_n_s16): Likewise.
12282 (vmlsq_n_s32): Likewise.
12283 (vmlsq_n_u16): Likewise.
12284 (vmlsq_n_u32): Likewise.
12285 (vmlsq_s8): Likewise.
12286 (vmlsq_s16): Likewise.
12287 (vmlsq_s32): Likewise.
12288 (vmlsq_u8): Likewise.
12289 (vmlsq_u16): Likewise.
12290 (vmlsq_u32): Likewise.
12291 (vmovl_high_s8): Likewise.
12292 (vmovl_high_s16): Likewise.
12293 (vmovl_high_s32): Likewise.
12294 (vmovl_high_u8): Likewise.
12295 (vmovl_high_u16): Likewise.
12296 (vmovl_high_u32): Likewise.
12297 (vmovl_s8): Likewise.
12298 (vmovl_s16): Likewise.
12299 (vmovl_s32): Likewise.
12300 (vmovl_u8): Likewise.
12301 (vmovl_u16): Likewise.
12302 (vmovl_u32): Likewise.
12303 (vmovn_high_s16): Likewise.
12304 (vmovn_high_s32): Likewise.
12305 (vmovn_high_s64): Likewise.
12306 (vmovn_high_u16): Likewise.
12307 (vmovn_high_u32): Likewise.
12308 (vmovn_high_u64): Likewise.
12309 (vmovn_s16): Likewise.
12310 (vmovn_s32): Likewise.
12311 (vmovn_s64): Likewise.
12312 (vmovn_u16): Likewise.
12313 (vmovn_u32): Likewise.
12314 (vmovn_u64): Likewise.
12315 (vmull_high_n_s16): Likewise.
12316 (vmull_high_n_s32): Likewise.
12317 (vmull_high_n_u16): Likewise.
12318 (vmull_high_n_u32): Likewise.
12319 (vmull_high_p8): Likewise.
12320 (vmull_high_s8): Likewise.
12321 (vmull_high_s16): Likewise.
12322 (vmull_high_s32): Likewise.
12323 (vmull_high_u8): Likewise.
12324 (vmull_high_u16): Likewise.
12325 (vmull_high_u32): Likewise.
12326 (vmull_n_s16): Likewise.
12327 (vmull_n_s32): Likewise.
12328 (vmull_n_u16): Likewise.
12329 (vmull_n_u32): Likewise.
12330 (vmull_p8): Likewise.
12331 (vmull_s8): Likewise.
12332 (vmull_s16): Likewise.
12333 (vmull_s32): Likewise.
12334 (vmull_u8): Likewise.
12335 (vmull_u16): Likewise.
12336 (vmull_u32): Likewise.
12337 (vpadal_s8): Likewise.
12338 (vpadal_s16): Likewise.
12339 (vpadal_s32): Likewise.
12340 (vpadal_u8): Likewise.
12341 (vpadal_u16): Likewise.
12342 (vpadal_u32): Likewise.
12343 (vpadalq_s8): Likewise.
12344 (vpadalq_s16): Likewise.
12345 (vpadalq_s32): Likewise.
12346 (vpadalq_u8): Likewise.
12347 (vpadalq_u16): Likewise.
12348 (vpadalq_u32): Likewise.
12349 (vpaddl_s8): Likewise.
12350 (vpaddl_s16): Likewise.
12351 (vpaddl_s32): Likewise.
12352 (vpaddl_u8): Likewise.
12353 (vpaddl_u16): Likewise.
12354 (vpaddl_u32): Likewise.
12355 (vpaddlq_s8): Likewise.
12356 (vpaddlq_s16): Likewise.
12357 (vpaddlq_s32): Likewise.
12358 (vpaddlq_u8): Likewise.
12359 (vpaddlq_u16): Likewise.
12360 (vpaddlq_u32): Likewise.
12361 (vpaddq_s8): Likewise.
12362 (vpaddq_s16): Likewise.
12363 (vpaddq_s32): Likewise.
12364 (vpaddq_s64): Likewise.
12365 (vpaddq_u8): Likewise.
12366 (vpaddq_u16): Likewise.
12367 (vpaddq_u32): Likewise.
12368 (vpaddq_u64): Likewise.
12369 (vqdmulh_n_s16): Likewise.
12370 (vqdmulh_n_s32): Likewise.
12371 (vqdmulhq_n_s16): Likewise.
12372 (vqdmulhq_n_s32): Likewise.
12373 (vqmovn_high_s16): Likewise.
12374 (vqmovn_high_s32): Likewise.
12375 (vqmovn_high_s64): Likewise.
12376 (vqmovn_high_u16): Likewise.
12377 (vqmovn_high_u32): Likewise.
12378 (vqmovn_high_u64): Likewise.
12379 (vqmovun_high_s16): Likewise.
12380 (vqmovun_high_s32): Likewise.
12381 (vqmovun_high_s64): Likewise.
12382 (vqrdmulh_n_s16): Likewise.
12383 (vqrdmulh_n_s32): Likewise.
12384 (vqrdmulhq_n_s16): Likewise.
12385 (vqrdmulhq_n_s32): Likewise.
12386 (vrsqrte_u32): Likewise.
12387 (vrsqrteq_u32): Likewise.
12388 (vtst_p8): Likewise.
12389 (vtst_p16): Likewise.
12390 (vtst_p64): Likewise.
12391 (vtstq_p8): Likewise.
12392 (vtstq_p16): Likewise.
12393 (vtstq_p64): Likewise.
12394 (vaddlv_s32): Likewise.
12395 (vaddlv_u32): Likewise.
12396 (vqtbl1_p8): Likewise.
12397 (vqtbl1_s8): Likewise.
12398 (vqtbl1_u8): Likewise.
12399 (vqtbl1q_p8): Likewise.
12400 (vqtbl1q_s8): Likewise.
12401 (vqtbl1q_u8): Likewise.
12402 (vqtbx1_s8): Likewise.
12403 (vqtbx1_u8): Likewise.
12404 (vqtbx1_p8): Likewise.
12405 (vqtbx1q_s8): Likewise.
12406 (vqtbx1q_u8): Likewise.
12407 (vqtbx1q_p8): Likewise.
12408 (vtbl1_s8): Likewise.
12409 (vtbl1_u8): Likewise.
12410 (vtbl1_p8): Likewise.
12411 (vtbl2_s8): Likewise.
12412 (vtbl2_u8): Likewise.
12413 (vtbl2_p8): Likewise.
12414 (vtbl3_s8): Likewise.
12415 (vtbl3_u8): Likewise.
12416 (vtbl3_p8): Likewise.
12417 (vtbl4_s8): Likewise.
12418 (vtbl4_u8): Likewise.
12419 (vtbl4_p8): Likewise.
12420 (vtbx2_s8): Likewise.
12421 (vtbx2_u8): Likewise.
12422 (vtbx2_p8): Likewise.
12423 (vld1_f32): Likewise.
12424 (vld1_f64): Likewise.
12425 (vld1_p8): Likewise.
12426 (vld1_p16): Likewise.
12427 (vld1_p64): Likewise.
12428 (vld1_s8): Likewise.
12429 (vld1_s16): Likewise.
12430 (vld1_s32): Likewise.
12431 (vld1_s64): Likewise.
12432 (vld1_u8): Likewise.
12433 (vld1_u16): Likewise.
12434 (vld1_u32): Likewise.
12435 (vld1_u64): Likewise.
12436 (vld1q_f32): Likewise.
12437 (vld1q_f64): Likewise.
12438 (vld1q_p8): Likewise.
12439 (vld1q_p16): Likewise.
12440 (vld1q_p64): Likewise.
12441 (vld1q_s8): Likewise.
12442 (vld1q_s16): Likewise.
12443 (vld1q_s32): Likewise.
12444 (vld1q_s64): Likewise.
12445 (vld1q_u8): Likewise.
12446 (vld1q_u16): Likewise.
12447 (vld1q_u32): Likewise.
12448 (vld1q_u64): Likewise.
12449 (vpmax_s8): Likewise.
12450 (vpmax_s16): Likewise.
12451 (vpmax_s32): Likewise.
12452 (vpmax_u8): Likewise.
12453 (vpmax_u16): Likewise.
12454 (vpmax_u32): Likewise.
12455 (vpmaxq_s8): Likewise.
12456 (vpmaxq_s16): Likewise.
12457 (vpmaxq_s32): Likewise.
12458 (vpmaxq_u8): Likewise.
12459 (vpmaxq_u16): Likewise.
12460 (vpmaxq_u32): Likewise.
12461 (vpmax_f32): Likewise.
12462 (vpmaxq_f32): Likewise.
12463 (vpmaxq_f64): Likewise.
12464 (vpmaxqd_f64): Likewise.
12465 (vpmaxs_f32): Likewise.
12466 (vpmaxnm_f32): Likewise.
12467 (vpmaxnmq_f32): Likewise.
12468 (vpmaxnmq_f64): Likewise.
12469 (vpmaxnmqd_f64): Likewise.
12470 (vpmaxnms_f32): Likewise.
12471 (vpmin_s8): Likewise.
12472 (vpmin_s16): Likewise.
12473 (vpmin_s32): Likewise.
12474 (vpmin_u8): Likewise.
12475 (vpmin_u16): Likewise.
12476 (vpmin_u32): Likewise.
12477 (vpminq_s8): Likewise.
12478 (vpminq_s16): Likewise.
12479 (vpminq_s32): Likewise.
12480 (vpminq_u8): Likewise.
12481 (vpminq_u16): Likewise.
12482 (vpminq_u32): Likewise.
12483 (vpmin_f32): Likewise.
12484 (vpminq_f32): Likewise.
12485 (vpminq_f64): Likewise.
12486 (vpminqd_f64): Likewise.
12487 (vpmins_f32): Likewise.
12488 (vpminnm_f32): Likewise.
12489 (vpminnmq_f32): Likewise.
12490 (vpminnmq_f64): Likewise.
12491 (vpminnmqd_f64): Likewise.
12492 (vpminnms_f32): Likewise.
12493 (vmla_f32): Likewise.
12494 (vmlaq_f32): Likewise.
12495 (vmlaq_f64): Likewise.
12496 (vmls_f32): Likewise.
12497 (vmlsq_f32): Likewise.
12498 (vmlsq_f64): Likewise.
12499 (vqtbl2_s8): Likewise.
12500 (vqtbl2_u8): Likewise.
12501 (vqtbl2_p8): Likewise.
12502 (vqtbl2q_s8): Likewise.
12503 (vqtbl2q_u8): Likewise.
12504 (vqtbl2q_p8): Likewise.
12505 (vqtbl3_s8): Likewise.
12506 (vqtbl3_u8): Likewise.
12507 (vqtbl3_p8): Likewise.
12508 (vqtbl3q_s8): Likewise.
12509 (vqtbl3q_u8): Likewise.
12510 (vqtbl3q_p8): Likewise.
12511 (vqtbl4_s8): Likewise.
12512 (vqtbl4_u8): Likewise.
12513 (vqtbl4_p8): Likewise.
12514 (vqtbl4q_s8): Likewise.
12515 (vqtbl4q_u8): Likewise.
12516 (vqtbl4q_p8): Likewise.
12517 (vqtbx2_s8): Likewise.
12518 (vqtbx2_u8): Likewise.
12519 (vqtbx2_p8): Likewise.
12520 (vqtbx2q_s8): Likewise.
12521 (vqtbx2q_u8): Likewise.
12522 (vqtbx2q_p8): Likewise.
12523 (vqtbx3_s8): Likewise.
12524 (vqtbx3_u8): Likewise.
12525 (vqtbx3_p8): Likewise.
12526 (vqtbx3q_s8): Likewise.
12527 (vqtbx3q_u8): Likewise.
12528 (vqtbx3q_p8): Likewise.
12529 (vqtbx4_s8): Likewise.
12530 (vqtbx4_u8): Likewise.
12531 (vqtbx4_p8): Likewise.
12532 (vqtbx4q_s8): Likewise.
12533 (vqtbx4q_u8): Likewise.
12534 (vqtbx4q_p8): Likewise.
12535 (vrev16_p8): Likewise.
12536 (vrev16_s8): Likewise.
12537 (vrev16_u8): Likewise.
12538 (vrev16q_p8): Likewise.
12539 (vrev16q_s8): Likewise.
12540 (vrev16q_u8): Likewise.
12541 (vrev32_p8): Likewise.
12542 (vrev32_p16): Likewise.
12543 (vrev32_s8): Likewise.
12544 (vrev32_s16): Likewise.
12545 (vrev32_u8): Likewise.
12546 (vrev32_u16): Likewise.
12547 (vrev32q_p8): Likewise.
12548 (vrev32q_p16): Likewise.
12549 (vrev32q_s8): Likewise.
12550 (vrev32q_s16): Likewise.
12551 (vrev32q_u8): Likewise.
12552 (vrev32q_u16): Likewise.
12553 (vrev64_f32): Likewise.
12554 (vrev64_p8): Likewise.
12555 (vrev64_p16): Likewise.
12556 (vrev64_s8): Likewise.
12557 (vrev64_s16): Likewise.
12558 (vrev64_s32): Likewise.
12559 (vrev64_u8): Likewise.
12560 (vrev64_u16): Likewise.
12561 (vrev64_u32): Likewise.
12562 (vrev64q_f32): Likewise.
12563 (vrev64q_p8): Likewise.
12564 (vrev64q_p16): Likewise.
12565 (vrev64q_s8): Likewise.
12566 (vrev64q_s16): Likewise.
12567 (vrev64q_s32): Likewise.
12568 (vrev64q_u8): Likewise.
12569 (vrev64q_u16): Likewise.
12570 (vrev64q_u32): Likewise.
12571 (vsha1cq_u32): Likewise.
12572 (vsha1mq_u32): Likewise.
12573 (vsha1pq_u32): Likewise.
12574 (vsha1h_u32): Likewise.
12575 (vsha1su0q_u32): Likewise.
12576 (vsha1su1q_u32): Likewise.
12577 (vsha256hq_u32): Likewise.
12578 (vsha256h2q_u32): Likewise.
12579 (vsha256su0q_u32): Likewise.
12580 (vsha256su1q_u32): Likewise.
12581 (vmull_p64): Likewise.
12582 (vmull_high_p64): Likewise.
12583 (vsqrt_f32): Likewise.
12584 (vsqrtq_f32): Likewise.
12585 (vsqrt_f64): Likewise.
12586 (vsqrtq_f64): Likewise.
12587 (vst1_f32): Likewise.
12588 (vst1_f64): Likewise.
12589 (vst1_p8): Likewise.
12590 (vst1_p16): Likewise.
12591 (vst1_p64): Likewise.
12592 (vst1_s8): Likewise.
12593 (vst1_s16): Likewise.
12594 (vst1_s32): Likewise.
12595 (vst1_s64): Likewise.
12596 (vst1_u8): Likewise.
12597 (vst1_u16): Likewise.
12598 (vst1_u32): Likewise.
12599 (vst1_u64): Likewise.
12600 (vst1q_f32): Likewise.
12601 (vst1q_f64): Likewise.
12602 (vst1q_p8): Likewise.
12603 (vst1q_p16): Likewise.
12604 (vst1q_p64): Likewise.
12605 (vst1q_s8): Likewise.
12606 (vst1q_s16): Likewise.
12607 (vst1q_s32): Likewise.
12608 (vst1q_s64): Likewise.
12609 (vst1q_u8): Likewise.
12610 (vst1q_u16): Likewise.
12611 (vst1q_u32): Likewise.
12612 (vst1q_u64): Likewise.
12613 (vst1_s64_x2): Likewise.
12614 (vst1_u64_x2): Likewise.
12615 (vst1_f64_x2): Likewise.
12616 (vst1_s8_x2): Likewise.
12617 (vst1_p8_x2): Likewise.
12618 (vst1_s16_x2): Likewise.
12619 (vst1_p16_x2): Likewise.
12620 (vst1_s32_x2): Likewise.
12621 (vst1_u8_x2): Likewise.
12622 (vst1_u16_x2): Likewise.
12623 (vst1_u32_x2): Likewise.
12624 (vst1_f16_x2): Likewise.
12625 (vst1_f32_x2): Likewise.
12626 (vst1_p64_x2): Likewise.
12627 (vst1q_s8_x2): Likewise.
12628 (vst1q_p8_x2): Likewise.
12629 (vst1q_s16_x2): Likewise.
12630 (vst1q_p16_x2): Likewise.
12631 (vst1q_s32_x2): Likewise.
12632 (vst1q_s64_x2): Likewise.
12633 (vst1q_u8_x2): Likewise.
12634 (vst1q_u16_x2): Likewise.
12635 (vst1q_u32_x2): Likewise.
12636 (vst1q_u64_x2): Likewise.
12637 (vst1q_f16_x2): Likewise.
12638 (vst1q_f32_x2): Likewise.
12639 (vst1q_f64_x2): Likewise.
12640 (vst1q_p64_x2): Likewise.
12641 (vst1_s64_x3): Likewise.
12642 (vst1_u64_x3): Likewise.
12643 (vst1_f64_x3): Likewise.
12644 (vst1_s8_x3): Likewise.
12645 (vst1_p8_x3): Likewise.
12646 (vst1_s16_x3): Likewise.
12647 (vst1_p16_x3): Likewise.
12648 (vst1_s32_x3): Likewise.
12649 (vst1_u8_x3): Likewise.
12650 (vst1_u16_x3): Likewise.
12651 (vst1_u32_x3): Likewise.
12652 (vst1_f16_x3): Likewise.
12653 (vst1_f32_x3): Likewise.
12654 (vst1_p64_x3): Likewise.
12655 (vst1q_s8_x3): Likewise.
12656 (vst1q_p8_x3): Likewise.
12657 (vst1q_s16_x3): Likewise.
12658 (vst1q_p16_x3): Likewise.
12659 (vst1q_s32_x3): Likewise.
12660 (vst1q_s64_x3): Likewise.
12661 (vst1q_u8_x3): Likewise.
12662 (vst1q_u16_x3): Likewise.
12663 (vst1q_u32_x3): Likewise.
12664 (vst1q_u64_x3): Likewise.
12665 (vst1q_f16_x3): Likewise.
12666 (vst1q_f32_x3): Likewise.
12667 (vst1q_f64_x3): Likewise.
12668 (vst1q_p64_x3): Likewise.
12669 (vst2_s64): Likewise.
12670 (vst2_u64): Likewise.
12671 (vst2_f64): Likewise.
12672 (vst2_s8): Likewise.
12673 (vst2_p8): Likewise.
12674 (vst2_s16): Likewise.
12675 (vst2_p16): Likewise.
12676 (vst2_s32): Likewise.
12677 (vst2_u8): Likewise.
12678 (vst2_u16): Likewise.
12679 (vst2_u32): Likewise.
12680 (vst2_f16): Likewise.
12681 (vst2_f32): Likewise.
12682 (vst2_p64): Likewise.
12683 (vst2q_s8): Likewise.
12684 (vst2q_p8): Likewise.
12685 (vst2q_s16): Likewise.
12686 (vst2q_p16): Likewise.
12687 (vst2q_s32): Likewise.
12688 (vst2q_s64): Likewise.
12689 (vst2q_u8): Likewise.
12690 (vst2q_u16): Likewise.
12691 (vst2q_u32): Likewise.
12692 (vst2q_u64): Likewise.
12693 (vst2q_f16): Likewise.
12694 (vst2q_f32): Likewise.
12695 (vst2q_f64): Likewise.
12696 (vst2q_p64): Likewise.
12697 (vst3_s64): Likewise.
12698 (vst3_u64): Likewise.
12699 (vst3_f64): Likewise.
12700 (vst3_s8): Likewise.
12701 (vst3_p8): Likewise.
12702 (vst3_s16): Likewise.
12703 (vst3_p16): Likewise.
12704 (vst3_s32): Likewise.
12705 (vst3_u8): Likewise.
12706 (vst3_u16): Likewise.
12707 (vst3_u32): Likewise.
12708 (vst3_f16): Likewise.
12709 (vst3_f32): Likewise.
12710 (vst3_p64): Likewise.
12711 (vst3q_s8): Likewise.
12712 (vst3q_p8): Likewise.
12713 (vst3q_s16): Likewise.
12714 (vst3q_p16): Likewise.
12715 (vst3q_s32): Likewise.
12716 (vst3q_s64): Likewise.
12717 (vst3q_u8): Likewise.
12718 (vst3q_u16): Likewise.
12719 (vst3q_u32): Likewise.
12720 (vst3q_u64): Likewise.
12721 (vst3q_f16): Likewise.
12722 (vst3q_f32): Likewise.
12723 (vst3q_f64): Likewise.
12724 (vst3q_p64): Likewise.
12725 (vst4_s64): Likewise.
12726 (vst4_u64): Likewise.
12727 (vst4_f64): Likewise.
12728 (vst4_s8): Likewise.
12729 (vst4_p8): Likewise.
12730 (vst4_s16): Likewise.
12731 (vst4_p16): Likewise.
12732 (vst4_s32): Likewise.
12733 (vst4_u8): Likewise.
12734 (vst4_u16): Likewise.
12735 (vst4_u32): Likewise.
12736 (vst4_f16): Likewise.
12737 (vst4_f32): Likewise.
12738 (vst4_p64): Likewise.
12739 (vst4q_s8): Likewise.
12740 (vst4q_p8): Likewise.
12741 (vst4q_s16): Likewise.
12742 (vst4q_p16): Likewise.
12743 (vst4q_s32): Likewise.
12744 (vst4q_s64): Likewise.
12745 (vst4q_u8): Likewise.
12746 (vst4q_u16): Likewise.
12747 (vst4q_u32): Likewise.
12748 (vst4q_u64): Likewise.
12749 (vst4q_f16): Likewise.
12750 (vst4q_f32): Likewise.
12751 (vst4q_f64): Likewise.
12752 (vst4q_p64): Likewise.
12753 (vtbx4_s8): Likewise.
12754 (vtbx4_u8): Likewise.
12755 (vtbx4_p8): Likewise.
12756 (vtrn_f32): Likewise.
12757 (vtrn_p8): Likewise.
12758 (vtrn_p16): Likewise.
12759 (vtrn_s8): Likewise.
12760 (vtrn_s16): Likewise.
12761 (vtrn_s32): Likewise.
12762 (vtrn_u8): Likewise.
12763 (vtrn_u16): Likewise.
12764 (vtrn_u32): Likewise.
12765 (vtrnq_f32): Likewise.
12766 (vtrnq_p8): Likewise.
12767 (vtrnq_p16): Likewise.
12768 (vtrnq_s8): Likewise.
12769 (vtrnq_s16): Likewise.
12770 (vtrnq_s32): Likewise.
12771 (vtrnq_u8): Likewise.
12772 (vtrnq_u16): Likewise.
12773 (vtrnq_u32): Likewise.
12774 (vrsqrte_f16): Likewise.
12775 (vrsqrteq_f16): Likewise.
12776 (vsqrt_f16): Likewise.
12777 (vsqrtq_f16): Likewise.
12778 (vabd_f16): Likewise.
12779 (vabdq_f16): Likewise.
12780 (vpadd_f16): Likewise.
12781 (vpaddq_f16): Likewise.
12782 (vpmax_f16): Likewise.
12783 (vpmaxq_f16): Likewise.
12784 (vpmaxnm_f16): Likewise.
12785 (vpmaxnmq_f16): Likewise.
12786 (vpmin_f16): Likewise.
12787 (vpminq_f16): Likewise.
12788 (vpminnm_f16): Likewise.
12789 (vpminnmq_f16): Likewise.
12790 (vrsqrts_f16): Likewise.
12791 (vrsqrtsq_f16): Likewise.
12793 2019-09-25 Richard Biener <rguenther@suse.de>
12795 PR tree-optimization/91896
12796 * tree-vect-loop.c (vectorizable_reduction): The single
12797 def-use cycle optimization cannot apply when there's more
12798 than one pattern stmt involved.
12800 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12802 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12803 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12804 (reload_macho_picbase_<mode>): Likewise.
12806 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12808 * config/rs6000/rs6000.md: Move darwin.md include until
12809 after the definition of the mode iterators.
12811 2019-09-23 Martin Sebor <msebor@redhat.com>
12813 PR tree-optimization/91570
12814 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12815 non-constant minlen, maxlen and maxbound.
12817 2019-09-24 Richard Biener <rguenther@suse.de>
12819 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12821 (_stmt_vec_info::cond_reduc_code): ... this.
12822 (_stmt_vec_info::induc_cond_initial_val): Add.
12823 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12824 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12825 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12826 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12827 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12828 the reduction code.
12829 (vect_create_epilog_for_reduction): Drop special
12830 induction condition reduction params, pass in reduction code
12832 (vectorizable_reduction): Perform condition reduction kind
12833 selection only at analysis time. Adjust passing on state.
12835 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12837 * config/aarch64/aarch64.md (mov<mode>): Don't call
12838 aarch64_split_dimode_const_store on volatile MEM.
12840 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12842 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12843 Update hwcap string for fp16fml.
12845 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12847 PR middle-end/91866
12848 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12849 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12851 2019-09-24 Martin Liska <mliska@suse.cz>
12853 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12854 instead of if-elseif-elseif-...
12855 * gimple-expr.c (extract_ops_from_tree): Likewise.
12856 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12857 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12859 2019-09-24 Martin Jambor <mjambor@suse.cz>
12862 * ipa-param-manipulation.c (carry_over_param): Make a method of
12863 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12864 in case of a context mismatch.
12865 (ipa_param_body_adjustments::common_initialization): Adjust call to
12867 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12868 private method carry_over_param.
12870 2019-09-24 Martin Jambor <mjambor@suse.cz>
12873 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12875 2019-09-24 Richard Biener <rguenther@suse.de>
12877 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12880 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12882 * config/arm/t-arm (arm-builtins.o): Add dependency on
12883 arm_acle_builtins.def.
12885 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12888 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12889 canonical CONST_INTs. Use gen_rtvec.
12891 2019-09-23 Richard Biener <rguenther@suse.de>
12893 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12894 avoid adjusting by + 0 or * 1.
12895 (vect_create_epilog_for_reduction): Get reduction code only
12896 when necessary. Deal with adjustment_def only when necessary.
12898 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12900 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12903 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12906 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12909 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12911 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12912 code. Merge code blocks with common conditionals. Use declared
12913 macro instead of a magic number for PIC level.
12915 2019-09-21 Martin Sebor <msebor@redhat.com>
12917 PR middle-end/91830
12918 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12919 Simplify computation of the offset of the referenced subobject.
12921 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12923 * config/darwin.c (machopic_legitimize_pic_address): Check
12924 for lra not reload.
12926 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12928 * ira-conflicts.c (can_use_same_reg_p): New function.
12929 (process_reg_shuffles): Take an insn parameter. Ignore cases
12930 in which input operand op_num could seemingly never be allocated
12931 to the same register as the destination.
12932 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12934 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12936 * simplify-rtx.c (neg_const_int): Replace with...
12937 (neg_poly_int_rtx): ...this new function.
12938 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12939 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12940 (simplify_plus_minus): Likewise for constant terms here.
12942 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12944 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12945 HOST_WIDE_PRINT_UNSIGNED.
12947 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12949 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12952 2019-09-20 Maya Rashish <coypu@sdf.org>
12955 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12956 Define to speculation_safe_value_not_needed.
12958 2019-09-20 Richard Biener <rguenther@suse.de>
12959 Uros Bizjak <ubizjak@gmail.com>
12962 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12964 (general_scalar_chain::convert_op): Force not suitable memory
12965 operands to a register.
12967 2019-09-20 Richard Biener <rguenther@suse.de>
12969 PR tree-optimization/91821
12970 * tree-vect-loop.c (check_reduction_path): Check we can compute
12972 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12973 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12974 operands in canonical order.
12975 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12976 STMT_VINFO_REDUC_IDX.
12977 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12978 (STMT_VINFO_REDUC_IDX): Likewise.
12980 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12983 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12985 2019-09-20 Richard Biener <rguenther@suse.de>
12987 PR tree-optimization/91822
12988 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12990 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12991 for reduc_index in nested cycles, adjust vectorizable_condition
12993 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12995 (vect_analyze_stmt): Adjust.
12996 (vect_transform_stmt): Likewise.
12998 2019-09-20 Richard Biener <rguenther@suse.de>
13001 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13002 Ensure there's a sequence point between allocating the new register
13003 and passing a reference to a reg via regno_reg_rtx.
13005 2019-09-20 Martin Jambor <mjambor@suse.cz>
13007 * coretypes.h (cgraph_edge): Declare.
13008 * ipa-param-manipulation.c: Rewrite.
13009 * ipa-param-manipulation.h: Likewise.
13010 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13011 (OBJS): Added ipa-sra.o.
13012 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13013 and ref_p, added fields param_adjustments and performed_splits.
13014 (struct cgraph_clone_info): Remove ags_to_skip and
13015 combined_args_to_skip, new field param_adjustments.
13016 (cgraph_node::create_clone): Changed parameters to use
13017 ipa_param_adjustments.
13018 (cgraph_node::create_virtual_clone): Likewise.
13019 (cgraph_node::create_virtual_clone_with_body): Likewise.
13020 (tree_function_versioning): Likewise.
13021 (cgraph_build_function_type_skip_args): Removed.
13022 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13023 using ipa_param_adjustments.
13024 (clone_of_p): Likewise.
13025 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13026 (build_function_decl_skip_args): Likewise.
13027 (duplicate_thunk_for_node): Adjust parameters using
13028 ipa_param_body_adjustments, copy param_adjustments instead of
13030 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13031 (cgraph_node::create_virtual_clone): Likewise.
13032 (cgraph_node::create_version_clone_with_body): Likewise.
13033 (cgraph_materialize_clone): Likewise.
13034 (symbol_table::materialize_all_clones): Likewise.
13035 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13036 ipa_replace_map check.
13037 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13038 (initialize_node_lattices): Make aware that some parameters might have
13039 already been removed.
13040 (want_remove_some_param_p): New function.
13041 (create_specialized_node): Convert to using ipa_param_adjustments and
13042 deal with possibly pre-existing adjustments.
13043 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13044 (output_node_opt_summary): Do not stream removed fields. Stream
13045 parameter adjustments instead of argumetns to skip.
13046 (input_node_opt_summary): Likewise.
13047 (input_node_opt_summary): Likewise.
13048 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13049 * lto-streamer.h (lto_section_type): Likewise.
13050 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13052 (copy_decl_to_var): Declare.
13053 * tree-inline.c (update_clone_info): Do not remap old_tree.
13054 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13055 statements, walk all extra generated statements and remap their
13057 (redirect_all_calls): Add killed SSA names to a hash set.
13058 (remap_ssa_name): Do not remap killed SSA names.
13059 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13060 half of functionality moved to ipa_param_body_adjustments.
13061 (copy_decl_to_var): Make exported.
13062 (copy_body): Destroy killed_new_ssa_names hash set.
13063 (expand_call_inline): Remap performed splits.
13064 (update_clone_info): Likewise.
13065 (tree_function_versioning): Simplify tree_map processing. Updated to
13066 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13067 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13068 for the new interface.
13069 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13070 (simd_clone_compute_base_data_type): Likewise.
13071 (simd_clone_init_simd_arrays): Adjust for the new interface.
13072 (simd_clone_adjust_argument_types): Likewise.
13073 (struct modify_stmt_info): Likewise.
13074 (ipa_simd_modify_stmt_ops): Likewise.
13075 (ipa_simd_modify_function_body): Likewise.
13076 (simd_clone_adjust): Likewise.
13077 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13078 (type_internals_preclude_sra_p): Make public.
13079 * tree-sra.h: New file.
13080 * ipa-inline-transform.c (save_inline_function_body): Update to
13081 refelct new tree_function_versioning signature.
13082 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13083 ipa_param_adjustments to get current parameter indices.
13084 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13085 (ipcp_update_bits): Likewise.
13086 (ipcp_update_vr): Likewise.
13087 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13088 * ipa-sra.c: New file.
13089 * multiple_target.c (create_target_clone): Update to reflet new type
13090 of create_version_clone_with_body.
13091 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13092 tree_function_versioning.
13093 (modify_function): Update to reflect new type of
13094 tree_function_versioning.
13095 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13096 * passes.def: Remove old IPA-SRA and add new one.
13097 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13098 (make_pass_ipa_sra): Declare.
13099 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13101 * doc/invoke.texi (ipa-sra-max-replacements): New.
13103 2019-09-19 Martin Sebor <msebor@redhat.com>
13105 PR middle-end/91631
13106 * builtins.c (component_size): Correct trailing array computation,
13107 rename to component_ref_size and move...
13108 (compute_objsize): Adjust.
13109 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13110 (builtin_access::strict): Do not consider memmove.
13111 (builtin_access::write_off): New function.
13112 (builtin_memref::builtin_memref): Initialize refsize.
13113 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13115 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13117 (builtin_access::builtin_access): Initialize dstoff to destination
13118 refeence offset here instead of in maybe_diag_overlap. Adjust
13119 referencess even to unrelated objects. Adjust sizrange of bounded
13120 string functions to reflect bound. For strcat, adjust destination
13121 sizrange by that of source.
13122 (builtin_access::strcat_overlap): Adjust offsets and sizes
13123 to reflect the increase in destination sizrange above.
13124 (builtin_access::overlap): Do not set dstoff here but instead
13125 in builtin_access::builtin_access.
13126 (check_bounds_or_overlap): Use builtin_access::write_off.
13127 (maybe_diag_access_bounds): Add argument. Add informational notes.
13128 (dump_builtin_memref, dump_builtin_access): New functions.
13129 * tree.c (component_ref_size): ...to here.
13130 * tree.h (component_ref_size): Declare.
13131 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13132 nul in the size of the source string.
13134 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13137 * doc/cpp.texi: Document support for extended characters in
13139 * doc/cppopts.texi: Likewise.
13141 2019-09-19 Richard Biener <rguenther@suse.de>
13143 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13144 (check_reduction_path): New overload having the path as result.
13145 (vect_is_simple_reduction): From the detected reduction
13146 path build a SLP reduction chain if possible.
13148 2019-09-19 Richard Biener <rguenther@suse.de>
13151 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13152 Force operand to a register if it isn't nonimmediate_operand.
13154 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13156 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13157 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13158 (logical_op): Remove code attribute.
13159 (logical_OP): Likewise.
13161 2019-09-19 Martin Liska <mliska@suse.cz>
13163 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13164 Use proper casting.
13166 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13168 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13171 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13172 for NE comparison of TImode values.
13173 (aarch64_emit_load_exclusive): Add support for TImode.
13174 (aarch64_emit_store_exclusive): Likewise.
13175 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13176 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13177 Change iterator from ALLI to ALLI_TI.
13178 (@atomic_compare_and_swap<JUST_TI>): New.
13179 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13180 (aarch64_load_exclusive_pair): New.
13181 (aarch64_store_exclusive_pair): New.
13182 * config/aarch64/iterators.md (JUST_TI): New.
13184 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13185 strong_zero_p for aarch64_track_speculation; unify some code paths;
13186 use aarch64_gen_compare_reg instead of open-coding.
13188 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13189 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13190 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13191 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13192 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13193 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13194 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13195 (atomic_<atomic_op><ALLI>): Likewise.
13196 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13197 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13198 * doc/invoke.texi: Document -moutline-atomics.
13200 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13202 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13203 trivial predicate for condition branch.
13204 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13206 (compute_bb_predicates): Update predicate based on post-dominating
13208 (analyze_function_body): Calculate post-dominating information.
13210 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13212 * tree-vectorizer.h (vectorizable_condition): Take an int
13213 reduction index instead of a boolean flag.
13214 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13215 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13216 reductions if the reduction accumulator is the "then" rather
13217 than the "else" value.
13218 (vect_analyze_stmt): Update call accordingly.
13219 (vect_transform_stmt): Likewise.
13220 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13221 asserting that the index is > 0.
13223 2019-09-19 Martin Liska <mliska@suse.cz>
13225 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13226 (sort_congruence_classes_by_decl_uid): Likewise.
13227 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13229 (sem_item_optimizer::merge_classes): Likewise.
13231 2019-09-19 Richard Biener <rguenther@suse.de>
13233 PR tree-optimization/91812
13234 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13237 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13239 * defaults.h (TARGET_UNIT): New macro.
13240 (target_unit): New type.
13241 * rtl.h (native_encode_rtx, native_decode_rtx)
13242 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13243 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13244 * rtlanal.c (subreg_lsb_1): Delete.
13245 (subreg_size_lsb): New function.
13246 * simplify-rtx.c: Include rtx-vector-builder.h
13247 (simplify_immed_subreg): Delete.
13248 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13249 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13251 (simplify_subreg): Use them.
13252 (test_vector_subregs_modes, test_vector_subregs_repeating)
13253 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13254 (test_vector_subregs): New functions.
13255 (test_vector_ops): Call test_vector_subregs for integer vector
13256 modes with at least 2 elements.
13258 2019-09-19 Richard Biener <rguenther@suse.de>
13260 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13261 LOOP_VINFO_OPERANDS_SWAPPED.
13262 (parloops_is_simple_reduction): Likewise.
13263 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13264 initialize operands_swapped.
13265 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13266 (vect_is_slp_reduction): Do not swap operands.
13267 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13268 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13270 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13273 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13274 Add avx_partial_xmm_update.
13276 2019-09-18 Jim Wilson <jimw@sifive.com>
13279 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13280 (riscv_move_integer): Likewise.
13281 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13282 riscv_move_integer arg.
13283 (riscv_legitimize_move): Likewise.
13284 (riscv_force_temporary): New parameter in_splitter. Don't call
13286 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13288 (riscv_add_offset): Likewise.
13289 (riscv_split_symbol): New parameter in_splitter. Pass to
13290 riscv_force_temporary.
13291 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13293 (riscv_move_integer): New parameter in_splitter. New local
13294 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13296 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13297 riscv_split_symbol, and riscv_force_temporary args.
13298 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13299 riscv_move_integer arg.
13300 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13302 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13305 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13306 hard register store cost to 6.
13308 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13311 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13312 pseudo register store cost from 3 to 6 to make it the same as
13315 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13318 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13319 (one_cmpldi2): Likewise.
13320 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13321 of the constant parts is simple.
13322 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13323 (logical_op): Add new code attribute.
13324 (logical_OP): Likewise.
13325 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13326 (arm_iordi_operand): Add predicate.
13327 (arm_xordi_operand): Add predicate.
13329 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13331 * config/arm/arm.md (maddsidi4): Remove expander.
13332 (mulsidi3adddi): Remove pattern.
13333 (mulsidi3adddi_v6): Likewise.
13334 (mulsidi3_nov6): Likewise.
13335 (mulsidi3_v6): Likewise.
13336 (umulsidi3): Remove expander.
13337 (umulsidi3_nov6): Remove pattern.
13338 (umulsidi3_v6): Likewise.
13339 (umulsidi3adddi): Likewise.
13340 (umulsidi3adddi_v6): Likewise.
13341 (<Us>mulsidi3): Add combined expander.
13342 (<Us>maddsidi4): Likewise.
13343 (<US>mull): Add combined umull and smull pattern.
13344 (<US>mlal): Likewise.
13345 * config/arm/iterators.md (Us): Add new iterator.
13347 2019-09-18 Richard Biener <rguenther@suse.de>
13349 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13351 (vectorize_fold_left_reduction): Remove assert.
13352 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13353 operand in position 2. Remove assert.
13355 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13357 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13358 (smulsi3_highpart_nov6): Remove pattern.
13359 (smulsi3_highpart_v6): Likewise.
13360 (umulsi3_highpart): Likewise.
13361 (umulsi3_highpart_nov6): Likewise.
13362 (umulsi3_highpart_v6): Likewise.
13363 (<US>mull_high): Add new combined multiply pattern.
13365 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13367 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13368 (arm_mulsi3_v6): Likewise.
13369 (mulsi3addsi_v6): Likewise.
13370 (mulsi3subsi): Likewise.
13371 (mul): Add new multiply pattern.
13375 2019-09-18 Richard Biener <rguenther@suse.de>
13377 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13378 (parloops_valid_reduction_input_p): Copy from
13379 valid_reduction_input_p.
13380 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13381 (parloops_needs_fold_left_reduction_p): Copy from
13382 needs_fold_left_reduction_p.
13383 (parloops_is_simple_reduction): Copy from
13384 vect_is_simple_reduction.
13385 (parloops_force_simple_reduction): Copy from
13386 vect_force_simple_reduction.
13387 (gather_scalar_reductions): Adjust.
13388 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13389 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13391 2019-09-18 Richard Biener <rguenther@suse.de>
13393 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13394 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13396 (vect_create_epilog_for_reduction): Remove dead code.
13398 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13400 * varasm.c (assemble_real): Generate canonical const_ints.
13402 2019-09-18 Richard Biener <rguenther@suse.de>
13405 * lto-streamer-in.c (input_eh_regions): Move EH init to
13406 lto_materialize_function.
13407 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13410 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13412 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13415 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13417 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13418 of checking specifically for INTEGER_CST.
13420 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13422 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13423 sizes instead of uhwi sizes.
13425 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13427 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13428 (add_const_value_attribute): Handle CONST_POLY_INT.
13430 2019-09-18 Martin Liska <mliska@suse.cz>
13432 * dbgcnt.def (store_merging): New counter.
13433 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13434 Use it in store merging.
13436 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13438 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13440 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13441 * config/arm/arm.c (arm_sched_variable_issue): New function.
13442 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13444 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13446 * config/arm/types.md (no_reservation): New reservation.
13447 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13449 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13450 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13451 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13452 * config/arm/arm1020e.md (1020alu_op): Likewise.
13453 * config/arm/arm1026ejs.md (alu_op): Likewise.
13454 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13455 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13456 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13457 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13458 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13459 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13460 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13461 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13462 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13463 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13464 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13465 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13466 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13467 * config/arm/fa526.md (526_alu_op): Likewise.
13468 * config/arm/fa606te.md (606te_alu_op): Likewise.
13469 * config/arm/fa626te.md (626te_alu_op): Likewise.
13470 * config/arm/fa726te.md (726te_alu_op): Likewise.
13471 * config/arm/xgene1.md (xgene1_nop): Likewise.
13473 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13475 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13476 "no_insn" to "branch".
13478 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13480 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13482 2019-09-17 Richard Biener <rguenther@suse.de>
13485 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13486 was missing generate locations only once.
13488 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13491 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13493 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13494 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13495 for switch default case using range analysis information.
13497 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13500 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13501 mode attributed is supported by FDPIC.
13503 2019-09-17 Richard Biener <rguenther@suse.de>
13505 PR tree-optimization/91790
13506 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13507 use the correct DR for setting up realignment.
13509 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13512 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13513 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13514 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13515 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13517 2019-09-16 Jason Merrill <jason@redhat.com>
13519 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13521 2019-09-16 Martin Liska <mliska@suse.cz>
13523 * gimple-fold.c (or_comparisons_1): Remove rules moved
13525 * match.pd: ... here.
13527 2019-09-16 Martin Liska <mliska@suse.cz>
13529 * gimple-fold.c (or_comparisons_1): Remove rules
13531 * match.pd: ... here.
13533 2019-09-16 Martin Liska <mliska@suse.cz>
13535 * genmatch.c (dt_node::append_simplify): Do not print
13536 warning when we have duplicate patterns belonging
13537 to a same simplify rule.
13538 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13539 (maybe_fold_comparisons_from_match_pd): Handle
13540 tcc_comparison as a results.
13541 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13543 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13544 Qi Feng <ffengqi@linux.ibm.com>
13546 PR middle-end/88784
13547 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13548 (x > y && x == XXX_MIN): Optimize into 'false'.
13549 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13550 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13551 (x < y && x == XXX_MAX): Optimize into 'false'.
13552 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13553 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13554 (x <= y || x != XXX_MIN): Optimize into 'true'.
13555 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13556 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13557 (x >= y || x != XXX_MAX): Optimize into 'true'.
13558 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13560 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13561 Martin Liska <mliska@suse.cz>
13563 * gimple-fold.c (and_comparisons_1): Add type as first
13565 (and_var_with_comparison): Likewise.
13566 (and_var_with_comparison_1): Likewise.
13567 (or_comparisons_1): Likewise.
13568 (or_var_with_comparison): Likewise.
13569 (or_var_with_comparison_1): Likewise.
13570 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13571 (maybe_fold_or_comparisons): Likewise.
13572 (maybe_fold_comparisons_from_match_pd): New.
13573 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13574 (maybe_fold_or_comparisons): Likewise.
13575 * gimple.c (gimple_size): Make it public and add num_ops argument.
13576 (gimple_init): New function.
13577 (gimple_alloc): Call gimple_init.
13578 * gimple.h (gimple_size): New.
13579 (gimple_init): Likewise.
13580 * tree-if-conv.c (fold_or_predicates): Pass type.
13581 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13582 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13583 (optimize_vec_cond_expr): Likewise.
13584 (ovce_extract_ops): Return type of conditional expression.
13585 * tree-ssanames.c (init_ssa_name_imm_use): New.
13586 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13587 * tree-ssanames.h (init_ssa_name_imm_use): New.
13589 2019-09-16 Richard Biener <rguenther@suse.de>
13591 PR tree-optimization/91756
13592 PR tree-optimization/87132
13593 * tree-ssa-alias.h (enum translate_flags): New.
13594 (get_continuation_for_phi): Use it instead of simple bool flag.
13595 (walk_non_aliased_vuses): Likewise.
13596 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13597 (get_continuation_for_phi): When looking across backedges only
13598 disallow valueization.
13599 (walk_non_aliased_vuses): Adjust.
13600 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13603 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13605 PR middle-end/80791
13606 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13607 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13608 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13609 * target.def (have_count_reg_decr_p): New hook.
13610 (doloop_cost_for_generic): Likewise.
13611 (doloop_cost_for_address): Likewise.
13612 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13613 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13614 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13615 * doc/tm.texi: Regenerate.
13616 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13618 (record_group): Init doloop_p.
13619 (add_candidate_1): Add optional argument doloop, change the handlings
13621 (add_candidate): Likewise.
13622 (generic_predict_doloop_p): Update attribute.
13623 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13624 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13625 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13627 (get_computation_cost): Update for doloop IV cand extra cost.
13628 (determine_group_iv_cost_cond): Update for doloop IV cand.
13629 (determine_iv_cost): Likewise.
13630 (ivopts_estimate_reg_pressure): Likewise.
13631 (may_eliminate_iv): Update handlings for doloop IV cand.
13632 (add_iv_candidate_for_doloop): New function.
13633 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13634 (iv_ca_set_no_cp): Update for doloop IV cand.
13635 (iv_ca_set_cp): Likewise.
13636 (iv_ca_dump): Dump register cost.
13637 (find_doloop_use): New function.
13638 (analyze_and_mark_doloop_use): Likewise.
13639 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13641 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13643 PR middle-end/91708
13644 * cse.c (cse_insn): Do not replace anything with a
13647 2019-09-13 Ian Lance Taylor <iant@golang.org>
13649 * doc/invoke.texi (Optimize Options): Fix typo.
13651 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13653 PR tree-optimization/89386
13654 * config/i386/sse.md (smulhrs<mode>3): New expander.
13655 (smulhrsv4hi3): Ditto.
13657 2019-09-12 Richard Biener <rguenther@suse.de>
13659 PR tree-optimization/91750
13660 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13661 in the type of the evolution.
13663 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13665 PR tree-optimization/89386
13666 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13667 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13668 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13669 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13670 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13671 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13672 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13673 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13674 (su, r): Handle the unspecs above.
13675 (bt): New int attribute.
13676 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13677 * internal-fn.c (first_commutative_argument): Commutativity info for
13679 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13680 (umulhrs_optab): New optabs.
13681 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13682 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13683 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13685 (vect_vect_recog_func_ptrs): Add it.
13687 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13689 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13692 2019-09-11 Nathan Sidwell <nathan@acm.org>
13694 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13695 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13697 2019-09-11 Richard Biener <rguenther@suse.de>
13699 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13700 * lto-wrapper.c (merge_and_complain): Pick up -g.
13701 (append_compiler_options): Likewise.
13702 (run_gcc): Re-instantiate handling -g0 at link-time.
13703 * doc/invoke.texi (flto): Document debug info generation.
13705 2019-09-11 Richard Biener <rguenther@suse.de>
13707 PR tree-optimization/90387
13708 * vr-values.c (vr_values::extract_range_basic): After inlining
13709 simplify non-constant __builtin_constant_p to false.
13711 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13713 PR rtl-optimization/89795
13714 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13715 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13717 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13719 PR tree-optimization/91723
13720 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13721 instead of pointer equality when checking if argument vectypes are
13724 PR middle-end/91725
13725 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13726 of get_nonzero_bits, only call it for integral types.
13728 2019-09-11 Richard Biener <rguenther@suse.de>
13731 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13733 * match.pd: Add flag_unsafe_math_optimizations check
13734 before deciding on the widest type in a binary math operation.
13736 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13738 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13739 and CALL_REALLY_USED_REGISTERS must be defined, and that
13740 CALL_REALLY_USED_REGISTERS is preferred.
13741 * doc/tm.texi: Regenerate.
13742 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13743 (call_really_used_regs): Likewise.
13744 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13745 CALL_REALLY_USED_REGISTERS are defined.
13746 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13747 initial value if defined.
13748 (initial_call_really_used_regs): Delete.
13749 (saved_call_really_used_regs): Likewise.
13750 (CALL_REALLY_USED_REGNO_P): Likewise.
13751 (init_reg_sets): Remove handling of call_really_used_regs.
13752 (save_register_info, restore_register_info, globalize_reg): Likewise.
13753 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13754 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13755 outside operand_reg_set.
13756 (fix_register): Don't change call_used_regs if
13757 CALL_REALLY_USED_REGISTERS is defined.
13758 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13759 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13760 instead of call_really_used_regs.
13761 (csky_conditional_register_usage): Remove the old handling of
13762 call_used_regs and change the handling of call_really_used_regs
13763 to use call_used_regs instead.
13764 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13765 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13766 making a register fixed.
13767 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13768 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13769 instead of call_really_used_regs.
13770 (m32r_conditional_register_usage): Don't set call_used_regs when
13771 making a register fixed.
13772 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13773 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13774 instead of call_really_used_regs.
13775 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13776 (mips_cfun_call_saved_reg_p): Likewise.
13777 (mips_swap_registers): Remove the old handling of call_used_regs
13778 and change the handling of call_really_used_regs to use call_used_regs
13780 (mips_conditional_register_usage): Likewise.
13781 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13782 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13783 instead of call_really_used_regs.
13784 (mn10300_get_live_callee_saved_regs): Likewise.
13785 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13786 (mn10300_conditional_register_usage): Don't set call_used_regs when
13787 making a register fixed.
13788 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13789 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13790 Remove the old handling of call_used_regs and change the handling
13791 of call_really_used_regs to use call_used_regs instead.
13792 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13793 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13794 instead of call_really_used_regs.
13795 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13796 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13797 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13798 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13799 (s390_conditional_register_usage): Remove the old handling of
13800 call_used_regs and change the handling of call_really_used_regs
13801 to use call_used_regs instead.
13802 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13803 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13804 (sh_fix_range, reg_unused_after): Likewise.
13805 (sh_conditional_register_usage): Remove the old handling of
13806 call_used_regs and change the handling of call_really_used_regs
13807 to use call_used_regs instead.
13808 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13809 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13810 call_used_regs when making a register fixed.
13811 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13812 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13813 call_used_regs when making a register fixed.
13814 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13815 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13816 set call_used_regs when making a register fixed.
13817 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13818 * config/visium/visium.c (visium_conditional_register_usage): Remove
13819 the old handling of call_used_regs and change the handling of
13820 call_really_used_regs to use call_used_regs instead.
13822 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13824 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13825 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13826 * reginfo.c (call_used_regs): New macro.
13828 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13830 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13832 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13833 (bpf_expand_epilogue): Likewise.
13834 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13835 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13836 (ft32_expand_epilogue): Likewise.
13837 * config/i386/i386.c (ix86_save_reg): Likewise.
13838 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13839 (moxie_expand_epilogue): Likewise.
13840 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13841 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13842 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13844 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13846 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13847 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13848 instead of testing call_used_regs directly.
13849 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13850 (aarch64_components_for_bb): Likewise.
13851 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13852 * config/arc/arc.c (arc_must_save_register): Likewise.
13853 (arc_epilogue_uses): Likewise.
13854 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13855 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13856 (arm_compute_save_reg0_reg12_mask): Likewise.
13857 (arm_compute_save_core_reg_mask): Likewise.
13858 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13859 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13860 (cmse_nonsecure_entry_clear_before_return): Likewise.
13861 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13862 (arm_expand_epilogue): Likewise.
13863 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13864 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13865 (_reg_unused_after): Likewise.
13866 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13867 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13868 (add_to_reg, hwloop_optimize): Likewise.
13869 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13870 (bpf_expand_epilogue): Likewise.
13871 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13872 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13873 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13874 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13875 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13876 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13877 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13878 * config/frv/frv.c (frv_stack_info): Likewise.
13879 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13880 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13881 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13882 (move_callee_saved_registers): Likewise.
13883 * config/h8300/h8300.c (byte_reg): Likewise.
13884 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13885 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13886 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13887 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13888 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13889 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13890 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13891 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13892 * config/m32c/m32c.c (need_to_save): Likewise.
13893 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13894 * config/mcore/mcore.c (calc_live_regs): Likewise.
13895 * config/microblaze/microblaze.c (microblaze_must_save_register):
13897 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13898 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13899 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13900 (mmix_expand_epilogue): Likewise.
13901 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13902 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13903 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13904 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13905 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13906 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13907 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13908 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13909 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13910 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13911 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13912 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13913 * config/rl78/rl78.c (need_to_save): Likewise.
13914 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13915 (rs6000_stack_info, generate_set_vrsave): Likewise.
13916 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13917 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13918 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13919 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13920 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13921 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13922 (save_local_or_in_reg_p): Likewise.
13923 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13924 (xstormy16_epilogue_uses): Likewise.
13925 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13926 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13927 * config/v850/v850.c (compute_register_save_size): Likewise.
13928 * config/vax/vax.c (vax_expand_prologue): Likewise.
13929 * config/visium/visium.c (visium_save_reg_p): Likewise.
13930 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13931 * cselib.c (cselib_process_insn): Likewise.
13932 * df-scan.c (df_get_entry_block_def_set): Likewise.
13933 * function.c (aggregate_value_p): Likewise.
13934 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13935 * ira-lives.c (process_bb_node_lives): Likewise.
13936 * ira.c (do_reload): Likewise.
13937 * lra-lives.c (process_bb_lives): Likewise.
13938 * lra-remat.c (lra_remat): Likewise.
13939 * lra.c (lra): Likewise.
13940 * postreload.c (reload_combine_recognize_pattern): Likewise.
13941 (reload_cse_move2add): Likewise.
13942 * recog.c (peep2_find_free_register): Likewise.
13943 * regrename.c (check_new_reg_p): Likewise.
13944 * reload.c (find_equiv_reg): Likewise.
13945 * reload1.c (reload, find_reg): Likewise.
13946 * sel-sched.c (init_hard_regs_data): Likewise.
13948 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13950 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13951 regs_invalidated_by_call & ~fixed_reg_set instead of
13952 call_used_or_fixed_regs & ~fixed_reg_set.
13953 * config/sh/sh.c (output_stack_adjust): Likewise.
13955 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13957 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13958 (call_used_reg_set): Delete.
13959 (call_used_or_fixed_regs): New macro.
13960 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13961 of call_used_reg_set.
13962 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13963 instead of call_used_regs.
13964 (save_call_clobbered_regs): Likewise.
13965 * cfgcleanup.c (old_insns_match_p): Likewise.
13966 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13967 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13969 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13970 * config/sh/sh.c (output_stack_adjust): Likewise.
13971 * final.c (collect_fn_hard_reg_usage): Likewise.
13972 * ira-build.c (ira_build): Likewise.
13973 * ira-color.c (calculate_saved_nregs): Likewise.
13974 (allocno_reload_assign, calculate_spill_cost): Likewise.
13975 * ira-conflicts.c (ira_build_conflicts): Likewise.
13976 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13977 * ira-lives.c (process_bb_node_lives): Likewise.
13978 * ira.c (setup_reg_renumber): Likewise.
13979 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13980 * lra-constraints.c (need_for_call_save_p): Likewise.
13981 (need_for_split_p, inherit_in_ebb): Likewise.
13982 * lra-lives.c (process_bb_lives): Likewise.
13983 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13984 * postreload.c (reload_combine): Likewise.
13985 * regrename.c (find_rename_reg): Likewise.
13986 * reload1.c (reload_as_needed): Likewise.
13987 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13988 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13989 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13991 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13993 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13994 (no_caller_save_reg_set): Delete.
13995 * caller-save.c (init_caller_save): Don't initialize it.
13996 * ira-conflicts.c (ira_build_conflicts): Calculate
13997 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13999 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14001 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14002 (target_hard_regs::x_savable_regs): New field.
14003 (call_fixed_reg_set): Delete.
14004 (savable_regs): New macro,
14005 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14006 (init_reg_sets_1): Likewise. Initialize savable_regs.
14007 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14008 for all registers. Set savable_regs instead of call_fixed_reg_set.
14009 (setup_save_areas, save_call_clobbered_regs): Replace uses of
14010 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14011 * config/sh/sh.c (output_stack_adjust): Likewise.
14013 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14015 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14016 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14017 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14019 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14021 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14022 * rtlanal.c (get_call_rtx_from): Likewise.
14023 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14024 than the pattern to get_call_rtx_from.
14025 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14026 an rtx_insn * instead of an rtx.
14027 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14029 2019-09-10 Martin Liska <mliska@suse.cz>
14031 * common.opt: Use newly added WarnRemoved.
14032 * config/aarch64/aarch64.opt: Likewise.
14033 * config/arm/arm.opt: Likewise.
14034 * config/i386/i386.opt: Likewise.
14035 * config/ia64/ia64.opt: Likewise.
14036 * config/rs6000/rs6000.opt: Likewise.
14037 * doc/options.texi: Document WarnRemoved properly.
14038 * dwarf2out.c (gen_producer_string): Handle renamed
14039 OPT_SPECIAL_warn_removed.
14040 * lto-opts.c (lto_write_options): Likewise.
14041 * lto-wrapper.c (merge_and_complain): Likewise.
14042 * opts-common.c (decode_cmdline_option): Likewise.
14043 (prune_options): Likewise.
14044 (read_cmdline_option): Likewise.
14045 (control_warning_option): Likewise.
14046 * opts.c (print_filtered_help): Likewise.
14047 * optc-gen.awk: Parse for WarnRemoved and make usage
14048 of Deprecated an error.
14049 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14051 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14053 * doc/install.texi: Fix syntax for html generation.
14055 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14057 PR middle-end/91680
14058 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14059 the shift type to type.
14061 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14063 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14065 (stack_protect_combined_test_insn): Likewise.
14067 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14068 Mickaël Guêné <mickael.guene@st.com>
14070 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14071 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14072 (load_tp_soft_fdpic): New pattern.
14073 (load_tp_soft): Disable in FDPIC mode.
14075 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14076 Mickaël Guêné <mickael.guene@st.com>
14078 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14079 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14080 (arm_call_tls_get_addr): Add FDPIC support.
14081 (legitimize_tls_address): Likewise.
14082 (arm_emit_tls_decoration): Likewise.
14084 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14085 Mickaël Guêné <mickael.guene@st.com>
14087 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14089 (arm_trampoline_init): Likewise.
14090 (arm_trampoline_adjust_address): Likewise.
14091 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14093 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14094 Mickaël Guêné <mickael.guene@st.com>
14096 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14097 (legitimize_pic_address): Enforce binding rules on function
14098 pointers in FDPIC mode.
14099 (arm_assemble_integer): Likewise.
14101 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14102 Mickaël Guêné <mickael.guene@st.com>
14104 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14105 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14108 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14109 Mickaël Guêné <mickael.guene@st.com>
14111 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14114 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14115 Mickaël Guêné <mickael.guene@st.com>
14117 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14119 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14121 * config/arm/arm.c (arm_option_override): Define pic register to
14123 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14124 have no decl or go through PLT.
14125 (calculate_pic_address_constant): New function.
14126 (legitimize_pic_address): Call calculate_pic_address_constant.
14127 (arm_load_pic_register): Handle TARGET_FDPIC.
14128 (arm_is_segment_info_known): New function.
14129 (arm_pic_static_addr): Add support for FDPIC.
14130 (arm_load_function_descriptor): New function.
14131 (arm_emit_call_insn): Add support for FDPIC.
14132 (arm_assemble_integer): Add support for FDPIC.
14133 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14134 Define. (FDPIC_REGNUM): New define.
14135 * config/arm/arm.md (call): Add support for FDPIC.
14136 (call_value): Likewise.
14137 (restore_pic_register_after_call): New pattern.
14138 (untyped_call): Disable if FDPIC.
14139 (untyped_return): Likewise.
14140 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14142 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14143 Mickaël Guêné <mickael.guene@st.com>
14145 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14146 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14147 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14148 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14149 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14150 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14151 * config/arm/uclinuxfdpiceabi.h: New file.
14153 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14155 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14157 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14158 Mickaël Guêné <mickael.guene@st.com>
14160 * config/arm/arm.opt: Add -mfdpic option.
14161 * doc/invoke.texi: Add documentation for -mfdpic.
14163 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14165 * expmed.c (extract_bit_field): Update function comment
14167 * expr.c (expand_expr_real): Update function comment
14169 (expand_misaligned_mem_ref): New helper function.
14170 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14171 Remove duplicate assignment to "base" at case MEM_REF.
14172 Remove a shadowed variable "unsignedp" at case VCE.
14174 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14176 * regset.h (regs_invalidated_by_call_regset): Delete.
14177 (fixed_reg_set_regset): Likewise.
14178 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14179 (fixed_reg_set_regset, persistent_obstack): Likewise.
14180 (init_reg_sets_1, globalize_reg): Update accordingly.
14181 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14182 instead of a bitmap.
14183 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14184 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14185 instead of regs_invalidated_by_call_regset.
14186 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14187 * df-scan.c (df_scan_start_dump): Likewise.
14188 * dse.c (copy_fixed_regs): Likewise.
14189 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14191 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14193 * array-traits.h: New file.
14194 * coretypes.h (array_traits, bitmap_view): New types.
14195 * bitmap.h: Include "array-traits.h"
14196 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14197 (base_bitmap_view, bitmap_view): New classes.
14198 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14199 * hard-reg-set.h: Include array-traits.h.
14200 (array_traits<HARD_REG_SET>): New struct.
14201 * regset.h (IOR_REG_SET_HRS): New macro.
14202 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14203 rather than iterating over each hard register.
14204 * sched-deps.c (sched_analyze_insn): Likewise.
14205 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14207 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14209 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14210 instead of a HARD_REG_SET *.
14211 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14212 (ira_build): Update call accordingly.
14213 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14215 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14217 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14218 (HARD_REG_SET::operator!=): Likewise.
14219 (hard_reg_set_equal_p): Delete.
14220 * cfgcleanup.c (old_insns_match_p): Use == instead of
14221 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14222 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14223 (add_allocno_hard_regs_to_forest): Likewise.
14224 (setup_allocno_available_regs_num): Likewise.
14225 * ira.c (setup_pressure_classes): Likewise.
14226 (setup_allocno_and_important_classes): Likewise.
14227 (setup_reg_class_relations): Likewise.
14228 * lra-lives.c (process_bb_lives): Likewise.
14229 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14231 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14233 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14234 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14235 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14236 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14238 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14239 * ira.c (setup_reg_renumber): Likewise.
14240 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14241 * regrename.c (regrename_find_superclass): Likewise.
14242 * reload1.c (find_reg): Likewise.
14244 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14246 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14247 * caller-save.c (setup_save_areas): Use "&~" instead of
14248 AND_COMPL_HARD_REG_SET.
14249 (save_call_clobbered_regs): Likewise.
14250 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14252 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14253 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14254 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14255 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14256 (mips_conditional_register_usage): Likewise.
14257 * config/sh/sh.c (output_stack_adjust): Likewise.
14258 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14259 (setup_profitable_hard_regs): Likewise.
14260 (get_conflict_and_start_profitable_regs): Likewise.
14261 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14262 (ira_build_conflicts): Likewise.
14263 * ira-costs.c (restrict_cost_classes): Likewise.
14264 (setup_regno_cost_classes_by_aclass): Likewise.
14265 * ira-lives.c (process_bb_node_lives): Likewise.
14266 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14267 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14268 (setup_allocno_and_important_classes, setup_class_translate_array)
14269 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14271 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14272 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14273 (process_alt_operands, inherit_in_ebb): Likewise.
14274 * lra-eliminations.c (update_reg_eliminate): Likewise.
14275 * lra-lives.c (process_bb_lives): Likewise.
14276 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14277 * resource.c (find_dead_or_set_registers): Likewise.
14278 (mark_target_live_regs): Likewise.
14279 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14280 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14281 (implicit_clobber_conflict_p): Likewise.
14282 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14283 (try_shrink_wrapping): Likewise.
14285 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14287 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14288 (HARD_REG_SET::operator|=): Likewise.
14289 (IOR_HARD_REG_SET): Delete.
14290 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14292 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14293 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14294 * final.c (collect_fn_hard_reg_usage): Likewise.
14295 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14296 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14297 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14298 (propagate_some_info_from_allocno): Likewise.
14299 (copy_info_to_removed_store_destinations): Likewise.
14300 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14301 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14302 (fast_allocation): Likewise.
14303 * ira-conflicts.c (ira_build_conflicts): Likewise.
14304 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14305 (process_bb_node_lives): Likewise.
14306 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14307 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14308 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14309 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14310 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14311 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14312 (process_bb_lives): Likewise.
14313 * lra-spills.c (assign_spill_hard_regs): Likewise.
14314 * postreload.c (reload_combine): Likewise.
14315 * reginfo.c (init_reg_sets_1): Likewise.
14316 * regrename.c (merge_overlapping_regs, find_rename_reg)
14317 (merge_chains): Likewise.
14318 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14319 (find_reload_regs, finish_spills, choose_reload_regs_init)
14320 (emit_reload_insns): Likewise.
14321 * reorg.c (redundant_insn): Likewise.
14322 * resource.c (find_dead_or_set_registers, mark_set_resources)
14323 (mark_target_live_regs): Likewise.
14324 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14325 * sched-deps.c (sched_analyze_insn): Likewise.
14326 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14327 (find_best_reg_for_expr): Likewise.
14328 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14330 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14332 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14333 (HARD_REG_SET::operator&): Likewise.
14334 (AND_HARD_REG_SET): Delete.
14335 * caller-save.c (setup_save_areas): Use "&" instead of
14337 (save_call_clobbered_regs): Likewise.
14338 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14339 * config/m32c/m32c.c (reduce_class): Likewise.
14340 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14341 * final.c (get_call_reg_set_usage): Likewise.
14342 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14343 (setup_left_conflict_sizes_p): Likewise.
14344 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14345 (ira_build_conflicts): Likewise.
14346 * ira-costs.c (restrict_cost_classes): Likewise.
14347 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14348 (setup_reg_class_relations): Likewise.
14349 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14350 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14351 * resource.c (find_dead_or_set_registers): Likewise.
14352 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14354 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14356 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14357 (COMPL_HARD_REG_SET): Delete.
14358 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14359 of COMPL_HARD_REG_SET.
14360 (try_rename_operands): Likewise.
14361 * config/sh/sh.c (push_regs): Likewise.
14362 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14363 * lra-constraints.c (contains_reg_p): Likewise.
14364 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14366 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14368 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14369 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14370 of COPY_HARD_REG_SET.
14371 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14372 (epiphany_conditional_register_usage): Likewise.
14373 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14374 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14375 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14376 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14377 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14378 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14379 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14380 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14381 * config/sh/sh.c (output_stack_adjust): Likewise.
14382 * final.c (collect_fn_hard_reg_usage): Likewise.
14383 (get_call_reg_set_usage): Likewise.
14384 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14385 (ira_flattening): Likewise.
14386 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14387 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14388 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14389 (ira_reassign_pseudos): Likewise.
14390 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14391 (ira_build_conflicts): Likewise.
14392 * ira-costs.c (restrict_cost_classes): Likewise.
14393 (setup_regno_cost_classes_by_aclass): Likewise.
14394 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14395 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14396 (setup_stack_reg_pressure_class, setup_pressure_classes)
14397 (setup_allocno_and_important_classes, setup_class_translate_array)
14398 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14399 (ira_setup_eliminable_regset): Likewise.
14400 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14401 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14402 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14403 (process_alt_operands, inherit_in_ebb): Likewise.
14404 * lra-lives.c (process_bb_lives): Likewise.
14405 * lra-spills.c (assign_spill_hard_regs): Likewise.
14406 * lra.c (lra): Likewise.
14407 * mode-switching.c (new_seginfo): Likewise.
14408 * postreload.c (reload_combine): Likewise.
14409 * reg-stack.c (straighten_stack): Likewise.
14410 * reginfo.c (save_register_info, restore_register_info): Likewise.
14411 (init_reg_sets_1, record_subregs_of_mode): Likewise
14412 * regrename.c (create_new_chain, rename_chains): Likewise.
14413 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14414 (find_reload_regs): Likewise.
14415 * resource.c (find_dead_or_set_registers): Likewise.
14416 (mark_target_live_regs): Likewise.
14417 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14419 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14421 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14422 (note_pattern_stores): Declare.
14423 (note_stores): Take an rtx_insn *.
14424 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14425 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14426 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14427 (note_stores): Take an rtx_insn * as argument and process
14428 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14429 (note_pattern_stores): ...this.
14430 (find_first_parameter_load): Pass the insn rather than
14431 its pattern to note_stores.
14432 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14433 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14434 (insert_one_insn): Likewise.
14435 * combine.c (combine_instructions): Likewise.
14436 (likely_spilled_retval_p): Likewise.
14437 (try_combine): Use note_pattern_stores instead of note_stores.
14438 (record_dead_and_set_regs): Pass the insn rather than its pattern
14440 (reg_dead_at_p): Likewise.
14441 * config/bfin/bfin.c (workaround_speculation): Likewise.
14442 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14443 rather than an rtx.
14444 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14445 instead of note_stores.
14446 (frv_optimize_membar_local): Pass the insn rather than its pattern
14448 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14449 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14450 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14451 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14452 (mips_reorg_process_insns): Likewise.
14453 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14454 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14456 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14457 its pattern to note_stores.
14458 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14460 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14461 the insn to note_stores.
14462 (prescan_insns_for_dce): Update call accordingly.
14463 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14465 * df-problems.c (can_move_insns_across): Likewise.
14466 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14467 * function.c (assign_parm_setup_reg): Likewise.
14468 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14469 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14470 (single_set_gcse): Likewise.
14471 * ira.c (validate_equiv_mem): Likewise.
14472 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14474 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14475 pattern to note_stores.
14476 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14477 * loop-iv.c (simplify_using_initial_values): Likewise.
14478 * mode-switching.c (optimize_mode_switching): Likewise.
14479 * optabs.c (emit_libcall_block_1): Likewise.
14480 (expand_atomic_compare_and_swap): Likewise.
14481 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14482 (record_opr_changes): Likewise. Remove explicit handling of
14483 CALL_INSN_FUNCTION_USAGE.
14484 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14485 * regcprop.c (kill_clobbered_values): Likewise.
14486 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14488 * regrename.c (build_def_use): Likewise.
14489 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14490 for mark_not_eliminable.
14491 (reload_as_needed): Pass the insn rather than its pattern
14493 (emit_output_reload_insns): Likewise.
14494 * resource.c (mark_target_live_regs): Likewise.
14495 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14496 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14497 instead of note_stores.
14498 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14499 its pattern to note_stores.
14500 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14501 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14503 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14505 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14506 than a #define. Use a structure rather than an array as the
14507 fallback definition. Remove special cases for low array sizes.
14508 (const_hard_reg_set): New typedef.
14509 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14510 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14511 (hard_reg_set_empty_p): Likewise.
14512 (SET_HARD_REG_BIT): Use a function rather than a macro to
14513 handle the case in which HARD_REG_SET is a structure.
14514 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14515 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14516 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14517 (IOR_COMPL_HARD_REG_SET): Likewise.
14518 (hard_reg_set_iterator::pset): Constify the pointer target.
14519 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14520 of a "const HARD_REG_SET". Update the handling of non-integer
14522 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14523 * reload.h: Likewise.
14524 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14525 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14526 of a "const HARD_REG_SET".
14527 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14528 (range_in_hard_reg_set_p): Likewise.
14529 * ira-costs.c (restrict_cost_classes): Likewise.
14530 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14531 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14532 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14533 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14534 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14535 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14536 take an unsigned int and open-code the HARD_REG_SET operations.
14538 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14540 * Makefile.in (OBJS): Remove bt-load.o.
14541 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14542 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14543 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14544 document that the option no longer does anything.
14545 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14546 * target.def (branch_target_register_class): Delete.
14547 (branch_target_register_callee_saved): Likewise.
14548 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14549 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14550 * doc/tm.texi: Regenerate.
14551 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14552 (make_pass_branch_target_load_optimize2): Likewise.
14553 * passes.def (pass_branch_target_load_optimize1): Likewise.
14554 (pass_branch_target_load_optimize2): Likewise.
14555 * targhooks.h (default_branch_target_register_class): Likewise.
14556 * targhooks.c (default_branch_target_register_class): Likewise.
14557 * opt-suggestions.c (test_completion_valid_options): Remove
14558 -fbtr-bb-exclusive from the list of test options.
14559 * bt-load.c: Remove.
14561 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14563 * match.pd: Add flag_unsafe_math_optimizations check
14564 before deciding on the widest type in a binary math operation.
14566 2019-09-09 Martin Liska <mliska@suse.cz>
14568 * config/i386/i386.opt: Update comment of removed
14569 options that are preserved only for backward
14572 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14575 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14576 instead of __v16qs.
14579 * config/i386/avxintrin.h (__v32qs): New typedef.
14580 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14581 instead of __v32qi.
14583 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14585 * doc/invoke.texi (Option Summary): Cover eBPF.
14586 (eBPF Options): New section.
14587 * doc/extend.texi (BPF Built-in Functions): Likewise.
14588 (BPF Kernel Helpers): Likewise.
14590 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14592 * config.gcc: Support for bpf-*-* targets.
14593 * common/config/bpf/bpf-common.c: New file.
14594 * config/bpf/t-bpf: Likewise.
14595 * config/bpf/predicates.md: Likewise.
14596 * config/bpf/constraints.md: Likewise.
14597 * config/bpf/bpf.opt: Likewise.
14598 * config/bpf/bpf.md: Likewise.
14599 * config/bpf/bpf.h: Likewise.
14600 * config/bpf/bpf.c: Likewise.
14601 * config/bpf/bpf-protos.h: Likewise.
14602 * config/bpf/bpf-opts.h: Likewise.
14603 * config/bpf/bpf-helpers.h: Likewise.
14604 * config/bpf/bpf-helpers.def: Likewise.
14606 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14608 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14611 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14613 * opt-functions.awk (integer_range_info): Make sure values are in
14614 numeric context before operating with them.
14616 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14618 * genemit.c (gen_split): Print the filename and line number where the
14619 splitter (or peephole2) was defined, to the dump file.
14621 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14623 PR tree-optimization/91665
14624 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14625 incompatible with the type of PHI result.
14627 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14630 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14631 gen_unaligned_storedi for 4-byte aligned addresses.
14633 2019-09-06 Jim Wilson <jimw@sifive.com>
14635 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14638 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14640 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14642 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14644 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14645 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14647 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14650 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14651 cost of SSE->integer and integer->SSE moves from 2 to 6.
14652 (core_cost): Ditto.
14654 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14656 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14657 before testing TYPE_TRANSPARENT_AGGR.
14658 * calls.c (initialize_argument_information, load_register_parameters):
14661 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14663 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14665 (cmp_ior): Likewise.
14667 2019-09-06 Martin Liska <mliska@suse.cz>
14669 * doc/match-and-simplify.texi: Separate tuples with ;.
14671 2019-09-06 Martin Liska <mliska@suse.cz>
14674 * Makefile.in: Remove tlink.o.
14675 * collect2.c (do_link): New function isolated
14678 * collect2.h (do_tlink): Remove declaration of do_tlink.
14679 * doc/extend.texi: Remove documentation of -frepo.
14680 * doc/invoke.texi: Likewise.
14681 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14684 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14685 Jim Wilson <jimw@sifive.com>
14688 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14689 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14690 paradoxical_subreg_p (operands[0]).
14691 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14692 use as intermediate value.
14694 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14696 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14697 (sync_compare_and_swap<mode>_insn): Likewise.
14699 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14701 PR middle-end/91615
14702 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14703 without movmisalign optab.
14705 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14707 PR middle-end/91001
14708 PR middle-end/91105
14709 PR middle-end/91106
14710 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14711 types, use type of their first field instead of type of
14712 args[i].tree_value.
14714 2019-09-05 Richard Biener <rguenther@suse.de>
14716 PR rtl-optimization/91656
14717 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14720 2019-09-05 Richard Biener <rguenther@suse.de>
14722 PR middle-end/90501
14723 * tree-inline.c (declare_return_variable): Mark the return
14724 slot as addressable after building an address of it.
14726 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14728 * doc/install.texi: Update and clarify requirements to build GNAT.
14730 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14732 PR middle-end/91577
14733 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14734 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14735 call to be in memory.
14736 (pass_expand::execute): Call discover_nonconstant_array_refs before
14737 setting currently_expanding_to_rtl.
14739 2019-09-04 Caroline Tice <cmtice@google.com>
14741 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14742 specified together.
14744 2019-09-04 Marek Polacek <polacek@redhat.com>
14746 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14748 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14751 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14752 for QI and HImode moves between SSE and general registers.
14754 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14757 * doc/invoke.texi: Document -Wenum-conversion.
14759 2019-09-04 Richard Biener <rguenther@suse.de>
14761 PR rtl-optimization/36262
14762 * postreload-gcse.c: Include intl.h and gcse.h.
14763 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14764 to avoid linear list walk.
14765 (record_last_mem_set_info): Gate off if not computing transparentness.
14766 (get_bb_avail_insn): If transparentness isn't computed give up
14768 (gcse_after_reload_main): Skip compute_transp and extended PRE
14769 if gcse_or_cprop_is_too_expensive says so.
14771 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14773 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14775 (msp430_select_section): Handle decls with the "noinit" attribute with
14776 default_elf_select_section.
14777 Handle SECCAT_RODATA_MERGE_* section types with
14778 default_elf_select_section.
14779 Add comments about handling of unsupported section types.
14780 (msp430_section_type_flags): Remove handling of the noinit section.
14782 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14784 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14785 conflicting msp430-specific attributes.
14786 (msp430_section_attr): Likewise.
14787 Add warnings about conflicts with generic "noinit" and "section"
14789 Fix grammar in -mlarge error message.
14790 (msp430_data_attr): Rename to msp430_persist_attr.
14791 Add warnings about conflicts with generic "noinit" and "section"
14793 Add warning for when variable is not initialized.
14794 Chain conditionals which prevent the attribute being added.
14795 (ATTR_EXCL): New helper.
14796 (attr_reent_exclusions): New exclusion table.
14797 (attr_naked_exclusions): Likewise.
14798 (attr_crit_exclusions): Likewise.
14799 (attr_lower_exclusions): Likewise.
14800 (attr_upper_exclusions): Likewise.
14801 (attr_either_exclusions): Likewise.
14802 (attr_persist_exclusions): Likewise.
14803 (msp430_attribute_table): Update with exclusion rules.
14804 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14807 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14809 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14810 (msp430_handle_generic_attribute): New function.
14811 * doc/tm.texi: Regenerate.
14812 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14813 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14814 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14815 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14817 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14819 PR tree-optimization/91504
14820 * match.pd: Add ((~a & b) ^a) --> (a | b).
14822 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14825 * config/i386/i386-expand.c (split_double_mode): If there is more than
14826 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14827 already split matching MEM operand instead of calling adjust_address
14830 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14832 * config.gcc: Obsolete spu target. Remove references to spu.
14833 * configure.ac: Remove references to spu.
14834 * configure: Regenerate.
14835 * config/spu/: Remove directory.
14836 * common/config/spu/: Remove directory.
14838 * doc/extend.texi: Remove references to spu.
14839 * doc/invoke.texi: Likewise.
14840 * doc/md.texi: Likewise.
14841 * doc/sourcebuild.texi: Likewise.
14843 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14845 PR middle-end/91603
14846 PR middle-end/91612
14847 PR middle-end/91613
14848 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14849 and SSA_NAME referring to CONSTANT_P correctly.
14851 2019-09-03 Richard Biener <rguenther@suse.de>
14853 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14854 (vn_nary_op_insert): Likewise.
14855 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14856 (vn_nary_op_lookup): Likewise.
14857 (vn_nary_op_insert): Likewise.
14859 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14861 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14862 (*op0, 1) instead of XEXP (*op1, 0).
14864 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14866 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14867 (aarch64_fjcvtzs): New define_insn.
14868 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14869 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14871 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14872 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14873 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14874 __ARM_FEATURE_JCVT where appropriate.
14875 * config/aarch64/arm_acle.h (__jcvt): Define.
14877 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14879 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14880 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14881 (aarch64_<frintnzs_op><mode>): New define_insn.
14882 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14883 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14884 __ARM_FEATURE_FRINT when appropriate.
14885 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14886 frint32x, frint64z, frint64x.
14887 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14888 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14889 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14890 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14891 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14892 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14893 * config/aarch64/iterators.md (VSFDF): Define.
14894 (FRINTNZX): Likewise.
14895 (frintnzs_op): Likewise.
14897 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14899 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14900 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14902 * config/aarch64/aarch64-tune.md: Regenerated.
14903 * doc/invoke.texi: Document the new processors.
14905 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14907 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14911 (sve2-sm4): Likewise.
14912 (sveaes): Likewise.
14913 (svesha3): Likewise.
14914 (svebitperm): Likewise.
14916 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14917 Richard Biener <rguenther@suse.de>
14919 PR tree-optimization/91597
14920 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14921 BIT_AND_EXPR optimization for pointers, even if both operand
14922 ranges don't include NULL, the result can be NULL.
14924 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14926 PR middle-end/91605
14927 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14928 (non_mem_decl_p): ...this.
14929 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14930 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14931 unconditionally as before.
14933 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14936 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14937 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14938 * tree.def (LTGT_EXPR): Likewise.
14939 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14941 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14944 * fold-const.c (range_check_type): For enumeral and boolean
14945 type, pass 1 to type_for_size langhook instead of
14946 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14947 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14948 (build_range_check): Don't call unsigned_type_for for pointer types.
14949 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14950 range_check_type result.
14952 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14954 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14955 (replace_ref): Do not replace a chain of only two candidates which are
14956 valid memory references.
14958 2019-09-02 Martin Liska <mliska@suse.cz>
14960 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14961 Bail out when we'll end up with the same number of clusters as
14963 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14964 (jump_table_cluster::can_be_handled): Remove the guard
14965 as it's already handled in ::is_enabled. Allocate output
14966 after early bail out.
14968 2019-09-02 Martin Liska <mliska@suse.cz>
14970 PR gcov-profile/91601
14971 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14972 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14973 also negative edges.
14974 (circuit): Handle also negative edges as they can happen
14975 in some situations.
14977 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14980 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14981 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14982 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14984 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14986 PR middle-end/91623
14987 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14988 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14989 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14993 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14994 GIMPLE_ASM TREE_LIST operands.
14996 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14998 * doc/generic.texi (Unary and Binary Expressions): Mark up
14999 an instance of TYPE_MIN.
15001 2019-08-31 Stafford Horne <shorne@gmail.com>
15003 * config/or1k/constraints.md (t): New constraint.
15004 * config/or1k/or1k.h (GOT_REGS): New register class.
15005 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15007 2019-08-30 Jim Wilson <jimw@sifive.com>
15009 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15010 and -fpic and -mplt then disable -msave-restore and warn.
15012 2019-08-30 Martin Sebor <msebor@redhat.com>
15014 PR middle-end/91599
15015 * tree-ssa-strlen.c (handle_store): Use a fallback location if
15016 the statement doesn't have one.
15017 * gimple-pretty-print.c (percent_G_format): Same.
15019 PR middle-end/91584
15020 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15021 before using them to validate MEM_REF offset.
15023 2019-08-30 Marek Polacek <polacek@redhat.com>
15025 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15027 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
15029 * config/arm/arm.md (unaligned_loaddi,
15030 unaligned_storedi): New unspec insn patterns.
15031 * config/arm/neon.md (unaligned_storev8qi): Likewise.
15032 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15033 and unaligned_storedi for 4-byte aligned memory.
15034 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15035 4-byte aligned memory.
15037 2019-08-30 Martin Jambor <mjambor@suse.cz>
15039 tree-optimization/91579
15040 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15041 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15043 (arg_needs_copy_p): Removed.
15044 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15046 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15048 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15050 * config/i386/i386-features.c
15051 (general_scalar_chain::compute_convert_gain):
15052 Correct cost for double-word shifts.
15053 (general_scalar_to_vector_candidate_p): Reject count operands
15054 greater or equal to mode bitsize.
15056 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15058 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15059 for moves between SSE and non-general registers and between
15060 mask and non-general registers.
15061 (ix86_register_move_cost): Remove stalled comment.
15063 2019-08-29 Richard Biener <rguenther@suse.de>
15065 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15066 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15068 2019-08-29 Richard Biener <rguenther@suse.de>
15071 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15072 Do not emit scalar copies for debug-insns, instead replace
15073 their uses with the reg copy used in the chain or reset them
15074 if there is a reaching definition outside of the chain as well.
15076 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15079 * config/i386/i386-expand.c (expand_vec_perm_movs,
15080 expand_vec_perm_blend, expand_vec_perm_vpermil,
15081 expand_vec_perm_pshufb, expand_vec_perm_1,
15082 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15083 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15084 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15085 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15086 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15087 comments - replace ix86_expand_vec_perm_builtin_1 with
15088 ix86_expand_vec_perm_const_1.
15089 (expand_vec_perm2_vperm2f128_vblend): New function.
15090 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15091 expand_vec_perm2_vperm2f128_vblend as last resort.
15092 (canonicalize_perm): Formatting fix.
15094 PR tree-optimization/91351
15095 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15097 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15098 range_check_type returns NULL.
15099 * tree-switch-conversion.c (switch_conversion::build_one_array):
15100 Use range_check_type instead of unsigned_type_for, don't perform
15101 linear opt if it returns NULL.
15102 (bit_test_cluster::find_bit_tests): Formatting fix.
15103 (bit_test_cluster::emit): Use range_check_type instead of
15105 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15108 2019-08-29 Richard Biener <rguenther@suse.de>
15110 PR tree-optimization/91568
15111 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15112 (vect_update_max_nunits): Add overload for poly_uint64.
15113 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15114 (vect_build_slp_tree): Record max_nunits into the subtree
15115 and merge it upwards.
15116 (vect_print_slp_tree): Print max_nunits.
15118 2019-08-28 Marek Polacek <polacek@redhat.com>
15120 Implement P1152R4: Deprecating some uses of volatile.
15122 * doc/invoke.texi: Document -Wvolatile.
15124 2019-08-28 Marek Polacek <polacek@redhat.com>
15126 PR c++/91360 - Implement C++20 P1143R2: constinit.
15127 * doc/invoke.texi: Document -Wc++20-compat.
15129 2019-08-28 Martin Sebor <msebor@redhat.com>
15131 PR tree-optimization/91457
15132 * builtins.c (component_size): New function.
15133 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15134 * builtins.h (compute_objsize): Add argument.
15135 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15136 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15137 (vrp_prop::check_mem_ref): Same.
15138 (vrp_prop::search_for_addr_array): Set no-warning bit.
15139 (check_array_bounds): Same.
15141 2019-08-28 Martin Sebor <msebor@redhat.com>
15144 * opts-common.c (option_enabled): Correct checking for language
15147 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15149 * config/i386/i386.c (ix86_register_move_cost): Do not
15150 limit the cost of moves to/from XMM register to minimum 8.
15152 2019-08-28 Martin Jambor <mjambor@suse.cz>
15155 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15156 checking assert a normal assert to test it really is redundant.
15157 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15159 (update_jump_functions_after_inlining): Removed combining unary
15160 arithmetic operations with an ancestor jump function.
15161 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15164 2019-08-28 Richard Biener <rguenther@suse.de>
15166 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15167 add the MD problem.
15169 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15170 Richard Biener <rguenther@suse.de>
15172 * expr.c (expand_assignment): Handle misaligned DECLs.
15173 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15174 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15176 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15177 * varasm.c (build_constant_desc): Align constants of misaligned types.
15178 * config/arm/predicates.md (aligned_operand): New predicate.
15179 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15180 aligned_operand to check restrictions on memory addresses.
15181 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15182 * config/arm/vec-common.md (mov<VALL>): Likewise.
15184 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15187 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15188 V_128 iterator instead of VI_128.
15190 2019-08-28 Martin Liska <mliska@suse.cz>
15192 PR tree-optimization/90970
15193 * builtins.c (check_access): Remove assignment to maxread
15194 as it hasn't been used since when it was introduced in r255755.
15196 2019-08-27 Martin Sebor <msebor@redhat.com>
15198 PR tree-optimization/91567
15199 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15200 of unknown strings.
15201 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15202 to PTRDIFF_MAX - 2.
15204 2019-08-27 Jeff Law <law@redhat.com>
15206 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15207 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15209 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15212 * config/i386/i386-features.c (convert_scalars_to_vector):
15213 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15214 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15215 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15216 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15218 2019-08-27 Richard Biener <rguenther@suse.de>
15220 * config/i386/i386-features.h
15221 (general_scalar_chain::~general_scalar_chain): Add.
15222 (general_scalar_chain::insns_conv): New bitmap.
15223 (general_scalar_chain::n_sse_to_integer): New.
15224 (general_scalar_chain::n_integer_to_sse): Likewise.
15225 (general_scalar_chain::make_vector_copies): Adjust signature.
15226 * config/i386/i386-features.c
15227 (general_scalar_chain::general_scalar_chain): Outline,
15228 initialize new members.
15229 (general_scalar_chain::~general_scalar_chain): New.
15230 (general_scalar_chain::mark_dual_mode_def): Record insns
15231 we need to insert conversions at and count them.
15232 (general_scalar_chain::compute_convert_gain): Account
15233 for conversion instructions at chain boundary.
15234 (general_scalar_chain::make_vector_copies): Generate a single
15235 copy for a def by a specific insn.
15236 (general_scalar_chain::convert_registers): First populate
15237 defs_map, then make copies at out-of chain insns.
15239 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15241 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15243 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15245 2019-08-27 Martin Liska <mliska@suse.cz>
15247 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15249 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15250 Enclose in anonymous namespace.
15251 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15252 hard_register initialization in braces.
15253 * tree-vrp.h (value_range_base::supports_type_p): Return false
15254 for function with boolean return type.
15256 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15258 * config/i386/i386.c (emit_i387_cw_initialization)
15259 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15261 2019-08-26 Martin Sebor <msebor@redhat.com>
15264 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15265 (sprintf_dom_walker): Remove class.
15266 (get_int_range): Make argument const.
15267 (directive::fmtfunc, directive::set_precision): Same.
15268 (format_none): Same.
15269 (build_intmax_type_nodes): Same.
15270 (adjust_range_for_overflow): Same.
15271 (format_floating): Same.
15272 (format_character): Same.
15273 (format_string): Same.
15274 (format_plain): Same.
15275 (get_int_range): Cast away constness.
15276 (format_integer): Same.
15277 (get_string_length): Call get_range_strlen_dynamic. Handle
15278 null lendata.maxbound.
15279 (should_warn_p): Adjust argument scope qualifier.
15280 (maybe_warn): Same.
15281 (format_directive): Same.
15282 (parse_directive): Same.
15283 (is_call_safe): Same.
15284 (try_substitute_return_value): Same.
15285 (sprintf_dom_walker::handle_printf_call): Rename...
15286 (handle_printf_call): ...to this. Initialize target to host charmap
15287 here instead of in pass_sprintf_length::execute.
15288 (struct call_info): Make global.
15289 (sprintf_dom_walker::compute_format_length): Make global.
15290 (sprintf_dom_walker::handle_gimple_call): Same.
15291 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15292 * print-rtl.c (print_pattern): Reduce the number of spaces to
15293 avoid -Wformat-truncation.
15294 * tree-pass.h (make_pass_warn_printf): New function.
15295 * tree-ssa-strlen.c (strlen_optimize): New variable.
15296 (get_string_length): Add comments.
15297 (get_range_strlen_dynamic): New function.
15298 (check_and_optimize_call): New function.
15299 (handle_integral_assign): New function.
15300 (strlen_check_and_optimize_stmt): Factor code out into
15301 strlen_check_and_optimize_call and handle_integral_assign.
15302 (strlen_dom_walker::evrp): New member.
15303 (strlen_dom_walker::before_dom_children): Use evrp member.
15304 (strlen_dom_walker::after_dom_children): Use evrp member.
15305 (printf_strlen_execute): New function.
15306 (pass_strlen::gate): Update to handle printf calls.
15307 (dump_strlen_info): New function.
15308 (pass_data_warn_printf): New variable.
15309 (pass_warn_printf): New class.
15310 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15311 (handle_printf_call): Same.
15312 * tree-vrp.c (value_range_base::type): Adjust assertion.
15313 * vr-values.c (vr_values::update_value_range): Use type of the first
15314 argument rather than the second.
15316 2019-08-26 Richard Biener <rguenther@suse.de>
15318 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15320 (convert_scalars_to_vector): Do not call it.
15322 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15323 Uros Bizjak <ubizjak@gmail.com>
15325 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15326 CASE_MATHFN_FLOATN for roundeven.
15327 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15329 (ix86_mode_needed): Likewise.
15330 (ix86_mode_after): Likewise.
15331 (ix86_mode_entry): Likewise.
15332 (ix86_mode_exit): Likewise.
15333 (ix86_emit_mode_set): Likewise.
15334 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15335 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15336 (ix86_entity): Add I387_ROUNDEVEN.
15337 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15338 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15339 (define_int_iterator): Likewise.
15340 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15341 (define_constant): Define ROUND_ROUNDEVEN mode.
15342 (define_attr): Add roundeven mode for i387_cw.
15343 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15344 * internal-fn.def (ROUNDEVEN): New builtin function.
15345 * optabs.def (roundeven_optab): New optab.
15347 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15349 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15351 * builtins.def: Added function definitions for roundeven function
15353 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15354 function call. Adjust condition for floor, ceil, trunc and round.
15355 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15356 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15357 (integer_valued_real_call_p): Added case for roundeven function.
15358 * real.c (is_even): New function. Returns true if real number is even,
15359 otherwise returns false.
15360 (is_halfway_below): New function. Returns true if real number is
15361 halfway between two integers, else return false.
15362 (real_roundeven): New function. Round real number to nearest integer,
15363 rounding halfway cases towards even.
15364 * real.h (real_value): Added descriptive comments. Added function
15365 declaration for roundeven function.
15366 * doc/extend.texi (Other Builtins): List roundeven variants among
15367 functions which can be handled as builtins.
15369 2019-08-26 Richard Biener <rguenther@suse.de>
15373 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15375 (general_scalar_chain::replace_with_subreg): Remove.
15376 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15377 (general_scalar_chain::convert_reg): Adjust signature.
15378 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15379 iterate over all defs of a reg.
15380 (general_scalar_chain::replace_with_subreg): Remove.
15381 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15382 (general_scalar_chain::make_vector_copies): Populate defs_map,
15383 place copy only after defs that are used as vectors in the chain.
15384 (general_scalar_chain::convert_reg): Emit a copy for a specific
15385 def in a specific instruction.
15386 (general_scalar_chain::convert_op): All reg uses are converted here.
15387 (general_scalar_chain::convert_insn): Emit copies for scalar
15388 uses of defs here. Replace uses with the copies we created.
15389 Replace and convert the def. Adjust REG_DEAD notes, remove
15390 REG_EQUIV/EQUAL notes.
15391 (general_scalar_chain::convert_registers): Only handle copies
15392 into the chain here.
15394 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15396 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15398 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15400 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15401 Add nop_convert case.
15402 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15403 Fold all statements if requested.
15404 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15405 Allow to fold all statements.
15406 * tree-vrp.c (class vrp_folder):
15407 Let substitute_and_fold_engine fold all statements.
15409 2019-08-26 Richard Biener <rguenther@suse.de>
15411 PR tree-optimization/91526
15412 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15413 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15414 TODO_update_address_taken.
15416 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15418 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15421 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15423 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15424 machine mode for unspec_volatile operand.
15426 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15428 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15429 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15430 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15431 (prefer_neon_for_64bits): Remove.
15432 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15433 (tune_params): Remove PREF_NEON_64_FALSE uses.
15434 (arm_option_override): Remove prefer_neon selection code.
15435 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15436 * config/arm/arm-protos.h (tune_params): Remove
15437 prefer_neon_for_64bits.
15438 (prefer_neon_for_64bits): Remove.
15440 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15443 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15444 and issue any diagnostics needed before collecting the pre-PCH
15447 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15449 PR middle-end/91283
15450 * common.opt (fexcess-precision=): Add Optimization flag. Use
15451 flag_excess_precision variable instead of
15452 flag_excess_precision_cmdline.
15453 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15455 (flag_excess_precision): Don't define.
15456 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15457 flag_excess_precision_cmdline. Remove comment.
15458 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15459 and x_flag_excess_precision instead of
15460 frontend_set_flag_excess_precision_cmdline and
15461 x_flag_excess_precision_cmdline.
15462 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15463 x_flag_excess_precision_cmdline.
15464 * toplev.c (init_excess_precision): Remove.
15465 (lang_dependent_init_target): Don't call it.
15467 2019-08-23 Martin Liska <mliska@suse.cz>
15469 * lto-wrapper.c (run_gcc): When setting jobserver
15470 set also parallel to 1. This was done so before r273908.
15472 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15474 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15475 (cortex-a76ae): Likewise.
15476 (cortex-a77): Likewise
15477 * config/arm/arm-tables.opt: Regenerate.
15478 * config/arm/arm-tune.md: Likewise.
15479 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15480 cortex-a77 CPU options.
15482 2019-08-23 Martin Liska <mliska@suse.cz>
15484 * profile.c (instrument_values): Do not set
15485 0 as last argument.
15486 * tree-profile.c (gimple_gen_interval_profiler): Remove
15488 (gimple_gen_pow2_profiler): Likewise.
15489 (gimple_gen_topn_values_profiler): Likewise.
15490 (gimple_gen_ic_profiler): Likewise.
15491 (gimple_gen_time_profiler): Likewise.
15492 (gimple_gen_average_profiler): Likewise.
15493 (gimple_gen_ior_profiler): Likewise.
15494 * value-prof.c (dump_histogram_value): Use default
15495 in switch statement instead of HIST_TYPE_MAX.
15496 (stream_in_histogram_value): Likewise.
15497 (gimple_duplicate_stmt_histograms): Do not
15498 use NULL for implicitly set arguments.
15499 (gimple_divmod_values_to_profile): Do not use
15500 reserve+quick_push.
15501 (gimple_indirect_call_to_profile): Likewise.
15502 (gimple_find_values_to_profile): Use implicit
15503 function call arguments.
15504 * value-prof.h (gimple_alloc_histogram_value):
15505 Set default values.
15506 (gimple_gen_interval_profiler): Remove last argument.
15507 (gimple_gen_pow2_profiler): Likewise.
15508 (gimple_gen_topn_values_profiler): Likewise.
15509 (gimple_gen_ic_profiler): Likewise.
15510 (gimple_gen_time_profiler): Likewise.
15511 (gimple_gen_average_profiler): Likewise.
15512 (gimple_gen_ior_profiler): Likewise.
15514 2019-08-22 Martin Sebor <msebor@redhat.com>
15516 PR middle-end/91490
15517 * builtins.c (c_strlen): Rename argument and introduce new local.
15518 Set no-warning bit on original argument.
15519 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15520 Fold empty and zero constructors into empty strings.
15521 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15522 for missing initializers.
15523 * tree.c (build_string_literal): Handle optional argument.
15524 * tree.h (build_string_literal): Add defaulted argument.
15525 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15526 no-warning bit on original expression.
15528 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15531 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15532 and UNSPEC_DARN_RAW.
15533 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15535 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15536 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15537 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15539 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15541 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15542 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15543 * config/rs6000/rs6000.md (unspec): ... here.
15544 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15545 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15546 cmpeqb, *cmpeqb_internal): Delete, move to...
15547 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15548 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15549 cmpeqb, *cmpeqb_internal): ... here.
15551 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15553 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15554 intrinsics if __ARM_FP.
15555 Use __ARM_FEATURE_CRC32 ifdef guard.
15557 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15559 * config/arm/arm.md (neon_for_64bits): Remove.
15560 (avoid_neon_for_64bits): Remove.
15561 (arm_adddi3): Always split early.
15562 (arm_subdi3): Always split early.
15563 (negdi2): Remove Neon expansion.
15564 (split zero_extend): Split before reload.
15565 (split sign_extend): Split before reload.
15567 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15569 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15570 (qhs_extenddi_cstr): Likewise.
15571 * config/arm/arm.md (ashldi3): Always expand early.
15572 (ashlsi3): Likewise.
15573 (ashrsi3): Likewise.
15574 (zero_extend<mode>di2): Remove Neon variants.
15575 (extend<mode>di2): Likewise.
15576 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15577 (signed_shift_di3_neon): Likewise.
15578 (unsigned_shift_di3_neon): Likewise.
15579 (ashrdi3_neon_imm_noclobber): Likewise.
15580 (lshrdi3_neon_imm_noclobber): Likewise.
15581 (<shift>di3_neon): Likewise.
15582 (split extend): Remove DI extend split patterns.
15584 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15586 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15587 (split not): Add DImode not splitter.
15588 (anddi3): Remove pattern.
15589 (anddi3_insn): Likewise.
15590 (anddi_zesidi_di): Likewise.
15591 (anddi_sesdi_di): Likewise.
15592 (anddi_notdi_di): Likewise.
15593 (anddi_notzesidi_di): Likewise.
15594 (anddi_notsesidi_di): Likewise.
15595 (iordi3): Likewise.
15596 (iordi3_insn): Likewise.
15597 (iordi_zesidi_di): Likewise.
15598 (iordi_sesidi_di): Likewise.
15599 (xordi3): Likewise.
15600 (xordi3_insn): Likewise.
15601 (xordi_sesidi_di): Likewise.
15602 (xordi_zesidi_di): Likewise.
15603 (one_cmpldi2): Likewise.
15604 (one_cmpldi2_insn): Likewise.
15605 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15606 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15608 (iwmmxt_xordi3): Likewise.
15609 (iwmmxt_anddi3): Likewise.
15610 * config/arm/neon.md (orndi3_neon): Remove pattern.
15611 (anddi_notdi_di): Likewise.
15612 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15613 (arm_iordi_operand_neon): Likewise.
15614 (arm_xordi_operand_neon): Likewise.
15615 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15616 (iordi_notzesidi_di): Likewise.
15617 (iordi_notdi_zesidi): Likewise.
15618 (iordi_notsesidi_di): Likewise.
15620 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15622 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15624 (iorsi3_compare0_scratch): Likewise.
15626 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15628 * config/aarch64/aarch64-simd-builtins.def:
15631 * config/aarch64/aarch64-simd.md:
15632 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15633 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15634 (aarch64_ld1_x4_<mode>): Likewise.
15635 (aarch64_st1_x4_<mode>): Likewise.
15636 * config/aarch64/arm_neon.h:
15637 (vld1_s8_x4): New function.
15638 (vld1q_s8_x4): Likewise.
15639 (vld1_s16_x4): Likewise.
15640 (vld1q_s16_x4): Likewise.
15641 (vld1_s32_x4): Likewise.
15642 (vld1q_s32_x4): Likewise.
15643 (vld1_u8_x4): Likewise.
15644 (vld1q_u8_x4): Likewise.
15645 (vld1_u16_x4): Likewise.
15646 (vld1q_u16_x4): Likewise.
15647 (vld1_u32_x4): Likewise.
15648 (vld1q_u32_x4): Likewise.
15649 (vld1_f16_x4): Likewise.
15650 (vld1q_f16_x4): Likewise.
15651 (vld1_f32_x4): Likewise.
15652 (vld1q_f32_x4): Likewise.
15653 (vld1_p8_x4): Likewise.
15654 (vld1q_p8_x4): Likewise.
15655 (vld1_p16_x4): Likewise.
15656 (vld1q_p16_x4): Likewise.
15657 (vld1_s64_x4): Likewise.
15658 (vld1_u64_x4): Likewise.
15659 (vld1_p64_x4): Likewise.
15660 (vld1q_s64_x4): Likewise.
15661 (vld1q_u64_x4): Likewise.
15662 (vld1q_p64_x4): Likewise.
15663 (vld1_f64_x4): Likewise.
15664 (vld1q_f64_x4): Likewise.
15665 (vst1_s8_x4): Likewise.
15666 (vst1q_s8_x4): Likewise.
15667 (vst1_s16_x4): Likewise.
15668 (vst1q_s16_x4): Likewise.
15669 (vst1_s32_x4): Likewise.
15670 (vst1q_s32_x4): Likewise.
15671 (vst1_u8_x4): Likewise.
15672 (vst1q_u8_x4): Likewise.
15673 (vst1_u16_x4): Likewise.
15674 (vst1q_u16_x4): Likewise.
15675 (vst1_u32_x4): Likewise.
15676 (vst1q_u32_x4): Likewise.
15677 (vst1_f16_x4): Likewise.
15678 (vst1q_f16_x4): Likewise.
15679 (vst1_f32_x4): Likewise.
15680 (vst1q_f32_x4): Likewise.
15681 (vst1_p8_x4): Likewise.
15682 (vst1q_p8_x4): Likewise.
15683 (vst1_p16_x4): Likewise.
15684 (vst1q_p16_x4): Likewise.
15685 (vst1_s64_x4): Likewise.
15686 (vst1_u64_x4): Likewise.
15687 (vst1_p64_x4): Likewise.
15688 (vst1q_s64_x4): Likewise.
15689 (vst1q_u64_x4): Likewise.
15690 (vst1q_p64_x4): Likewise.
15691 (vst1_f64_x4): Likewise.
15692 (vst1q_f64_x4): Likewise.
15694 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15696 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15698 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15699 Richard Sandiford <richard.sandiford@arm.com>
15702 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15703 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15705 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15708 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15709 in reg if it fails aarch64_plus_operand predicate.
15711 2019-08-21 Richard Biener <rguenther@suse.de>
15713 PR tree-optimization/91482
15714 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15715 BUILT_IN_ASSUME_ALIGNED calls.
15717 2019-08-21 Richard Biener <rguenther@suse.de>
15721 * config/i386/i386-features.c
15722 (general_scalar_chain::make_vector_copies): Copy stack temporary
15723 rtx when using it multiple times.
15724 (general_scalar_chain::convert_reg): Likewise.
15726 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15728 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15730 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15732 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15733 catch more redundant zero initialization cases.
15734 (dse_dom_walker::dse_optimize_stmt): Likewise.
15736 2019-08-20 Richard Biener <rguenther@suse.de>
15739 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15740 by collect2 when targetm.have_ctors_dtors which avoids dragging
15741 in temporary filenames from LTO input objects.
15743 2019-08-20 Richard Biener <rguenther@suse.de>
15745 PR tree-optimization/37242
15746 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15747 to (T)a + (T)b if we know that a + b does not overflow.
15749 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15751 PR rtl-optimization/91347
15752 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15753 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15755 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15757 * calls.h (function_arg_info): Add a pass_by_reference field,
15758 defaulting to false.
15759 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15760 when applying pass-by-reference semantics.
15761 (initialize_argument_information): Likewise.
15762 (emit_library_call_value_1): Likewise.
15763 * function.c (assign_parm_data_one): Remove passed_pointer field.
15764 (assign_parm_find_data_types): Don't set it.
15765 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15766 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15767 arg.pass_by_reference instead of passed_pointer.
15769 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15771 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15772 into a single function_arg_info, updating its fields when we
15773 apply pass-by-reference and promotion semantics. Use the
15774 function_arg_info to track the mode rather than keeping it in
15775 a separate local variable.
15776 (initialize_argument_information): Likewise. Base the final
15777 arg_to_skip on this new function_arg_info rather than creating
15778 a new one from scratch.
15780 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15782 * function.c (assign_parm_data_one): Replace passed_type,
15783 promoted_mode and named_arg with a function_arg_info field.
15784 (assign_parm_find_data_types): Remove local variables and
15785 assign directly to "data". Make data->passed_mode shadow
15786 data->arg.mode until promotion, then assign the promoted
15787 mode to data->arg.mode.
15788 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15789 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15790 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15791 (assign_parm_setup_block, assign_parm_setup_reg)
15792 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15793 arg.mode instead of promoted_mode, arg.type instead of passed_type
15794 and arg.named instead of named_arg. Use data->arg for
15795 function_arg_info structures that had the field values passed_type,
15796 promoted_mode and named_arg. Base other function_arg_infos on
15797 data->arg, changing the necessary properties.
15799 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15801 * calls.h (apply_pass_by_reference_rules): Declare.
15802 * calls.c (apply_pass_by_reference_rules): New function.
15803 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15804 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15805 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15806 * function.c (assign_parm_find_data_types): Likewise.
15807 * var-tracking.c (prepare_call_arguments): Likewise.
15809 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15811 * target.def (must_pass_in_stack): Take a function_arg_info instead
15812 of a mode and a type.
15813 * doc/tm.texi: Regenerate.
15814 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15815 instead of a mode and a type.
15816 (must_pass_in_stack_var_size_or_pad): Likewise.
15817 * calls.c (must_pass_in_stack_var_size): Likewise.
15818 (must_pass_in_stack_var_size_or_pad): Likewise.
15819 (initialize_argument_information): Update call to
15820 targetm.calls.must_pass_in_stack.
15821 (must_pass_va_arg_on_stack): Likewise.
15822 * function.c (assign_parm_find_entry_rtl): Likewise.
15823 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15824 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15825 (alpha_function_arg_advance): Likewise.
15826 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15827 (cr16_function_arg_advance): Likewise.
15828 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15829 (cris_arg_partial_bytes): Likewise.
15830 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15831 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15832 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15833 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15834 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15835 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15836 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15837 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15838 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15839 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15840 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15841 instead of a mode and a type.
15842 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15843 (fr30_num_arg_regs): Likewise.
15844 (fr30_setup_incoming_varargs): Update calls accordingly.
15845 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15846 (fr30_function_arg_advance): Likewise.
15847 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15848 instead of a mode and a type.
15849 * config/gcn/gcn.c (num_arg_regs): Likewise.
15850 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15851 num_arg_regs and targetm.calls.must_pass_in_stack.
15852 (gcn_arg_partial_bytes): Likewise.
15853 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15854 function_arg_info instead of a mode and a type.
15855 (classify_argument): Update call accordingly.
15856 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15857 function_arg_info instead of a mode and a type.
15858 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15860 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15861 (rs6000_parm_needs_stack): Update call accordingly.
15862 (setup_incoming_varargs): Likewise.
15864 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15866 * target.def (callee_copies): Take a function_arg_info instead
15867 of a mode, type and named flag.
15868 * doc/tm.texi: Regenerate.
15869 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15870 instead of a mode, type and named flag.
15871 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15872 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15873 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15874 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15875 instead of a mode, type and named flag.
15876 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15877 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15878 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15879 * calls.h (reference_callee_copied): Take a function_arg_info
15880 instead of a mode, type and named flag.
15881 * calls.c (reference_callee_copied): Likewise.
15882 (initialize_argument_information): Update call accordingly.
15883 (emit_library_call_value_1): Likewise.
15884 * function.c (gimplify_parameters): Likewise.
15885 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15886 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15887 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15888 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15889 (TARGET_CALLEE_COPIES): Define to
15890 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15891 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15892 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15893 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15894 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15895 instead of a mode, type and named flag.
15896 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15897 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15898 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15899 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15900 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15901 (TARGET_CALLEE_COPIES): Define to
15902 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15903 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15904 instead of a mode, type and named flag.
15905 * config/sh/sh.c (sh_callee_copies): Likewise.
15906 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15907 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15908 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15910 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15912 * target.def (function_arg_advance): Take a function_arg_info instead
15913 of a mode, type and named flag.
15914 * doc/tm.texi: Regenerate.
15915 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15916 instead of a mode, type and named flag.
15917 * targhooks.c (default_function_arg_advance): Likewise.
15918 * calls.c (initialize_argument_information): Update call to
15919 targetm.calls.function_arg_advance.
15920 (emit_library_call_value_1): Likewise.
15921 * dse.c (get_call_args): Likewise.
15922 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15923 * function.c (assign_parms, gimplify_parameters): Likewise.
15924 * var-tracking.c (prepare_call_arguments): Likewise.
15925 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15926 function_arg_info instead of a mode, type and named flag.
15927 (aarch64_setup_incoming_varargs): Update call accordingly.
15928 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15929 function_arg_info instead of a mode, type and named flag.
15930 (alpha_setup_incoming_varargs): Update call accordingly.
15931 * config/arc/arc.c (arc_function_arg_advance): Take a
15932 function_arg_info instead of a mode, type and named flag.
15933 (arc_setup_incoming_varargs): Update call accordingly.
15934 * config/arm/arm.c (arm_function_arg_advance): Take a
15935 function_arg_info instead of a mode, type and named flag.
15936 (cmse_func_args_or_return_in_stack): Update call accordingly.
15937 (arm_function_ok_for_sibcall): Likewise.
15938 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15939 * config/avr/avr.c (avr_function_arg_advance): Take a
15940 function_arg_info instead of a mode, type and named flag.
15941 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15942 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15943 (c6x_call_saved_register_used): Update call accordingly.
15944 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15945 function_arg_info instead of a mode, type and named flag.
15946 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15947 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15948 (csky_setup_incoming_varargs): Update call accordingly.
15949 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15950 function_arg_info instead of a mode, type and named flag.
15951 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15952 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15953 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15954 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15955 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15956 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15957 (ix86_setup_incoming_varargs): Update call accordingly.
15958 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15959 function_arg_info instead of a mode, type and named flag.
15960 (ia64_setup_incoming_varargs): Update call accordingly.
15961 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15962 function_arg_info instead of a mode, type and named flag.
15963 (iq2000_expand_prologue): Update call accordingly.
15964 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15965 function_arg_info instead of a mode, type and named flag.
15966 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15967 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15968 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15969 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15970 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15972 (microblaze_expand_prologue): Update call accordingly.
15973 * config/mips/mips.c (mips_function_arg_advance): Take a
15974 function_arg_info instead of a mode, type and named flag.
15975 (mips_setup_incoming_varargs): Update call accordingly.
15976 (mips_output_args_xfer): Likewise.
15977 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15978 function_arg_info instead of a mode, type and named flag.
15979 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15980 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15981 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15982 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15983 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15984 (nios2_setup_incoming_varargs): Update call accordingly.
15985 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15986 function_arg_info instead of a mode, type and named flag.
15987 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15988 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15989 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15990 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15991 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15992 (riscv_setup_incoming_varargs): Update call accordingly.
15993 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15994 function_arg_info instead of a mode, type and named flag.
15995 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15997 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15998 (rs6000_parm_needs_stack): Update call accordingly.
15999 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16000 instead of a mode, type and named flag.
16001 * config/s390/s390.c (s390_function_arg_advance): Likewise.
16002 (s390_call_saved_register_used): Update call accordingly.
16003 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16004 instead of a mode, type and named flag.
16005 (sh_output_mi_thunk): Update call accordingly.
16006 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16007 function_arg_info instead of a mode, type and named flag.
16008 * config/spu/spu.c (spu_function_arg_advance): Likewise.
16009 (spu_setup_incoming_varargs): Update call accordingly.
16010 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16011 function_arg_info instead of a mode, type and named flag.
16012 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16013 (tilegx_setup_incoming_varargs): Update call accordingly.
16014 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16015 function_arg_info instead of a mode, type and named flag.
16016 (tilegx_setup_incoming_varargs): Update call accordingly.
16017 * config/v850/v850.c (v850_function_arg_advance): Take a
16018 function_arg_info instead of a mode, type and named flag.
16019 * config/vax/vax.c (vax_function_arg_advance): Likewise.
16020 * config/visium/visium.c (visium_function_arg_advance): Likewise.
16021 (visium_setup_incoming_varargs): Update call accordingly.
16022 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16023 function_arg_info instead of a mode, type and named flag.
16025 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16027 * target.def (function_arg, function_incoming_arg): Take a
16028 function_arg_info instead of a mode, tree and named flag.
16029 * doc/tm.texi: Regenerate.
16030 * targhooks.h (default_function_arg): Take a function_arg_info
16031 instead of a mode, tree and named flag.
16032 (default_function_incoming_arg): Likewise.
16033 * targhooks.c (default_function_arg): Likewise.
16034 (default_function_incoming_arg): Likewise.
16035 * calls.h (function_arg_info::end_marker_p): New function.
16036 (function_arg_info::end_marker): Likewise.
16037 * calls.c (prepare_call_address, initialize_argument_information)
16038 (expand_call, emit_library_call_value_1): Update calls to
16039 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16040 * dse.c: Include calls.h.
16041 (get_call_args): Update call to targetm.calls.function_arg.
16042 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16043 * var-tracking.c (prepare_call_arguments): Likewise.
16044 * function.c (assign_parm_find_entry_rtl): Update call to
16045 targetm.calls.function_incoming_arg.
16046 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16047 function_arg_info instead of a mode, tree and named flag.
16048 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16049 * config/arc/arc.c (arc_function_arg): Likewise.
16050 * config/arm/arm.c (arm_function_arg): Likewise.
16051 (cmse_func_args_or_return_in_stack): Update call accordingly.
16052 (arm_function_ok_for_sibcall): Likewise.
16053 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16054 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16055 instead of a mode, tree and named flag.
16056 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16057 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16058 (c6x_call_saved_register_used): Update call accordingly.
16059 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16060 instead of a mode, tree and named flag.
16061 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16062 (cris_function_arg_1): Likewise.
16063 * config/csky/csky.c (csky_function_arg): Likewise.
16064 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16065 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16066 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16067 (frv_function_arg_1): Likewise.
16068 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16069 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16070 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16071 * config/i386/i386.c (ix86_function_arg): Likewise.
16072 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16073 (ia64_function_arg_1): Likewise.
16074 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16075 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16077 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16078 instead of a mode, tree and named flag.
16079 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16080 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16081 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16082 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16083 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16084 (microblaze_expand_prologue): Update call accordingly.
16085 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16086 instead of a mode, tree and named flag.
16087 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16088 (mmix_function_arg_1): Likewise.
16089 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16090 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16091 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16092 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16093 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16094 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16095 (nvptx_function_incoming_arg): Likewise.
16096 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16097 * config/pa/pa.c (pa_function_arg): Likewise.
16098 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16099 * config/pru/pru.c (pru_function_arg): Likewise.
16100 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16101 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16102 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16103 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16104 (rs6000_parm_needs_stack): Update call accordingly.
16105 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16106 instead of a mode, tree and named flag.
16107 * config/s390/s390.c (s390_function_arg): Likewise.
16108 (s390_call_saved_register_used): Update call accordingly.
16109 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16110 instead of a mode, tree and named flag.
16111 (sh_output_mi_thunk): Update call accordingly.
16112 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16113 (sparc_function_incoming_arg): Take a function_arg_info instead of
16114 a mode, tree and named flag.
16115 * config/spu/spu.c (spu_function_arg): Likewise.
16116 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16117 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16118 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16119 * config/v850/v850.c (v850_function_arg): Likewise.
16120 * config/vax/vax.c (vax_function_arg): Likewise.
16121 * config/visium/visium.c (visium_function_arg): Likewise.
16122 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16123 (xtensa_function_incoming_arg): Likewise.
16125 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16127 * target.def (setup_incoming_varargs): Take a function_arg_info
16128 instead of a mode and tree.
16129 * doc/tm.texi: Regenerate.
16130 * targhooks.h (default_setup_incoming_varargs): Take a
16131 function_arg_info instead of a mode and tree.
16132 * targhooks.c (default_setup_incoming_varargs): Likewise.
16133 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16134 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16135 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16136 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16137 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16138 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16139 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16140 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16142 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16143 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16144 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16145 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16146 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16147 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16148 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16149 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16150 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16151 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16152 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16153 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16154 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16155 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16156 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16157 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16158 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16159 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16160 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16161 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16162 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16163 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16164 * function.c (assign_parms_setup_varargs): Update call to
16165 targetm.calls.setup_incoming_varargs.
16167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16169 * target.def (pass_by_reference): Take a function_arg_info instead
16170 of a mode, type and named flag.
16171 * doc/tm.texi: Regenerate.
16172 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16174 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16175 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16176 function_arg_info instead of a mode, type and named flag.
16177 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16178 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16179 mode, type and named flag.
16180 * calls.c (pass_by_reference): Likewise.
16181 (pass_va_arg_by_reference): Update call accordingly.
16182 (initialize_argument_information): Likewise.
16183 (emit_library_call_value_1): Likewise.
16184 * function.c (assign_parm_find_data_types): Likewise.
16185 * var-tracking.c (prepare_call_arguments): Likewise.
16186 * stor-layout.c: Include calls.h.
16187 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16188 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16189 function_arg_info instead of a mode, type and named flag.
16190 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16191 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16192 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16193 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16194 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16195 (c6x_call_saved_register_used): Update call to pass_by_reference.
16196 * config/cris/cris.c (cris_pass_by_reference): Take a
16197 function_arg_info instead of a mode, type and named flag.
16198 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16199 function_arg_info instead of a mode, type and named flag.
16200 (epiphany_arg_partial_bytes): Update call accordingly.
16201 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16202 function_arg_info instead of a mode, type and named flag.
16203 (ft32_arg_partial_bytes): Update call accordingly.
16204 * config/i386/i386.c (ix86_pass_by_reference): Take a
16205 function_arg_info instead of a mode, type and named flag.
16206 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16207 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16208 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16209 (m32r_return_in_memory): Update call accordingly.
16210 * config/mips/mips.c (mips_pass_by_reference): Take a
16211 function_arg_info instead of a mode, type and named flag.
16212 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16213 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16214 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16215 (moxie_arg_partial_bytes): Update call accordingly.
16216 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16217 function_arg_info instead of a mode, type and named flag.
16218 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16219 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16220 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16221 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16222 (riscv_return_in_memory): Update call accordingly.
16223 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16224 function_arg_info instead of a mode, type and named flag.
16225 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16226 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16227 * config/s390/s390.c (s390_pass_by_reference): Take a
16228 function_arg_info instead of a mode, type and named flag.
16229 (s390_call_saved_register_used): Update call accordingly.
16230 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16231 instead of a mode, type and named flag.
16232 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16233 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16234 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16235 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16236 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16237 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16239 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16241 * target.def (arg_partial_bytes): Take a function_arg_info instead
16242 of a mode, type and named flag.
16243 * doc/tm.texi: Regenerate.
16244 * target.h (function_arg_info): Declare.
16245 * calls.h (function_arg_info): New class.
16246 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16247 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16248 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16249 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16250 * calls.c (initialize_argument_information): Update call to
16251 targetm.calls.partial_bytes.
16252 (emit_library_call_value_1): Likewise.
16253 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16254 * function.c (assign_parm_find_entry_rtl): Likewise.
16255 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16256 function_arg_info instead of a mode, type and named flag.
16257 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16258 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16259 (cmse_func_args_or_return_in_stack): Update accordingly.
16260 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16261 function_arg_info instead of a mode, type and named flag.
16262 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16263 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16264 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16265 * config/fr30/fr30.c: Include calls.h.
16266 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16267 type and named flag.
16268 * config/frv/frv.c: Include calls.h.
16269 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16270 type and named flag.
16271 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16272 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16273 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16274 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16275 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16276 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16277 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16279 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16280 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16281 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16282 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16283 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16284 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16285 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16286 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16287 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16288 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16289 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16290 (rs6000_parm_needs_stack): Update call accordingly.
16291 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16292 function_arg_info instead of a mode, type and named flag.
16293 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16294 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16298 * calls.h (must_pass_va_arg_in_stack): Declare.
16299 * calls.c (must_pass_va_arg_in_stack): New function.
16300 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16301 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16302 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16304 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16306 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16308 * calls.h (pass_va_arg_by_reference): Declare.
16309 * calls.c (pass_va_arg_by_reference): New function.
16310 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16311 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16312 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16313 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16314 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16315 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16316 (mips_gimplify_va_arg_expr): Likewise.
16317 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16318 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16319 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16320 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16321 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16322 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16323 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16324 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16325 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16326 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16327 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16329 2019-08-20 Richard Biener <rguenther@suse.de>
16332 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16333 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16334 (convert_scalars_to_vector): Add timode_p parameter and use it
16335 to guard TImode-only operation.
16336 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16337 (pass_stv::execute): Pass down timode_p.
16339 2019-08-20 Lili Cui <lili.cui@intel.com>
16341 * common/config/i386/i386-common.c
16342 (processor_names): Add tigerlake and cooperlake.
16343 (processor_alias_table): Add tigerlake and cooperlake.
16344 * config.gcc: Add -march=tigerlake and cooperlake.
16345 * config/i386/driver-i386.c
16346 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16347 Add "has_avx" to classify processor.
16348 * config/i386/i386-builtins.c (processor_model) :
16349 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16350 (arch_names_table): Add tigerlake and cooperlake.
16351 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16352 and PROCESSOR_COOPERLAKE.
16353 * config/i386/i386-c.c
16354 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16355 * config/i386/i386-options.c
16356 (m_TIGERLAKE): Define.
16357 (m_COOPERLAKE): Ditto.
16358 (m_CORE_AVX512): Ditto.
16359 (processor_cost_table): Add cascadelake.
16360 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16361 * config/i386/i386.h
16362 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16363 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16364 (PTA_MOVDIRI): Ditto.
16365 (PTA_MOVDIR64B): Ditto.
16366 (PTA_COOPERLAKE): Ditto.
16367 (PTA_TIGERLAKE): Ditto.
16368 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16369 * doc/extend.texi: Add tigerlake and cooperlake.
16370 * doc/invoke.texi: Add tigerlake and cooperlake.
16372 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16374 * doc/install.texi (Specific, alpha): Remove note to use
16375 binutils 2.11.2 or later.
16377 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16379 PR middle-end/89544
16380 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16383 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16385 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16386 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16387 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16388 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16389 * config/aarch64/constraints.md (Dt): New constraint
16390 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16392 2019-08-19 Richard Biener <rguenther@suse.de>
16394 PR tree-optimization/91403
16395 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16396 cases we can handle with tail-recursion...
16397 (follow_ssa_edge_expr): ... here. Do so.
16399 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16402 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16403 implemented for -fsanitize=kernel-address, and merge check logic
16404 with -fsanitize=address.
16406 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16408 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16409 for cpu and machine. Factor 64/32b builtins.
16411 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16413 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16414 gone, point to sourceforge.net.
16416 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16418 * doc/ux.texi (User Experience Guidelines): Update reference.
16420 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16422 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16425 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16427 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16428 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16430 2019-08-16 Martin Sebor <msebor@redhat.com>
16432 * tree.def (TYPE_SIZE): Clarify.
16433 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16435 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16437 PR tree-optimization/91109
16438 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16439 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16440 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16442 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16444 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16445 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16446 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16447 (uavg<mode>3_ceil): New expander.
16448 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16449 mode iterator when creating CONST1_RTX.
16450 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16451 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16452 mode iterator for const1_operand predicate.
16454 2019-08-16 Richard Biener <rguenther@suse.de>
16456 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16457 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16459 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16460 (analyze_evolution_in_loop): Likewise.
16461 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16462 (follow_ssa_edge_expr): ... here. Refactor code.
16464 2019-08-16 Richard Biener <rguenther@suse.de>
16467 * config/i386/i386-features.c
16468 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16470 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16473 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16474 only if subst_name matches curr_attr string.
16476 2019-08-16 Richard Biener <rguenther@suse.de>
16478 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16479 stmt at gsi_p, instead replace it with a NOP removed later.
16480 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16481 that became dead because of that.
16483 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16485 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16486 for which we can't represent a range.
16487 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16489 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16490 Set VR_UNDEFINED if type is not supported.
16491 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16492 * tree-vrp.c (value_range_base::check): Assert that a varying has
16494 (value_range_base::equal_p): Early bail for undefines.
16495 (value_range_base::set_varying): Accept a type.
16496 (value_range::set_varying): Same.
16497 (value_range_base::type): VARYING can have a type, while UNDEFINE
16499 (value_range_base::dump): Print type for VARYING nodes.
16500 (value_range_base::set): Add type to VARYING.
16501 (extract_range_from_multiplicative_op): Pass type to set_varying.
16502 (extract_range_from_binary_expr): Same.
16503 (value_range_base::intersect_helper): Same.
16504 (value_range_base::union_helper): Same.
16505 (value_range_base::normalize_symbolics): Same.
16506 (determine_value_range_1): Same.
16507 * tree-vrp.h (class value_range_base): Add type to set_varying.
16508 Add prototype for dump(void).
16509 Add prototype for supports_type_p.
16510 (class value_range): Add type to set_varying.
16511 Add prototype for dump(void).
16512 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16514 (vr_values::get_lattice_entry): Set varying even if propagation
16516 Pass type to set_varying.
16517 (vr_values::get_value_range): Remove vr_const_varying.
16518 Reallocate the lattice if needed.
16519 (vr_values::update_value_range): Pass type to set_varying.
16520 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16521 (vr_values::extract_range_from_binary_expr): Same.
16522 (vr_values::extract_range_from_unary_expr): Same.
16523 (vr_values::extract_range_from_cond_expr): Same.
16524 (vr_values::check_for_binary_op_overflow): Same.
16525 (vr_values::extract_range_basic): Same.
16526 (vr_values::extract_range_from_assignment): Same.
16527 (vr_values::vr_values): Increase size of num_vr_values.
16528 (vr_values::extract_range_from_phi_node): Pass type to
16531 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16534 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16535 for costs of hard register moves.
16536 (ix86_register_move_cost): Likewise.
16537 * config/i386/i386.h (processor_costs): Move costs of hard
16538 register moves to hard_register. Add int_load, int_store,
16539 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16540 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16541 for costs of RTL expressions.
16542 * config/i386/x86-tune-costs.h: Move costs of hard register
16543 moves to hard_register. Duplicate int_load, int_store,
16544 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16545 sse_load, sse_store for costs of RTL expressions.
16547 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16549 * target.def (setup_incoming_vararg_bounds): Remove.
16550 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16551 * doc/tm.texi: Regenerate.
16552 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16553 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16554 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16555 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16557 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16559 MSP430: Fix lines over 80 characters long in
16560 config/msp430/*.{c,h} files
16562 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16563 specifier in string.
16564 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16565 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16566 redundant old comment.
16567 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16568 Split line more than 80 characters long.
16569 * config/msp430/msp430.c (msp430_option_override): Likewise.
16570 (msp430_return_in_memory): Likewise.
16571 (msp430_gimplify_va_arg_expr): Likewise.
16572 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16573 (msp430_legitimate_constant): Likewise.
16574 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16575 (msp430_attr): Likewise.
16576 (msp430_data_attr): Likewise.
16577 (msp430_start_function): Likewise.
16578 (gen_prefix): Likewise.
16579 (msp430_init_sections): Likewise.
16580 (msp430_select_section): Likewise.
16581 (msp430_function_section): Likewise.
16582 (msp430_unique_section): Likewise.
16583 (msp430_output_aligned_decl_common): Likewise.
16584 (msp430_do_not_relax_short_jumps): Likewise.
16585 (msp430_init_builtins): Likewise.
16586 (msp430_expand_delay_cycles): Likewise.
16587 (msp430_expand_prologue): Likewise.
16588 (msp430_expand_epilogue): Likewise.
16589 (msp430_expand_helper): Likewise.
16590 (msp430_split_movsi): Likewise.
16591 (msp430_print_operand): Likewise.
16592 (msp430_return_addr_rtx): Likewise.
16593 (msp430x_extendhisi): Likewise.
16594 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16595 (ASM_SPEC): Likewise.
16596 Remove very obvious comments.
16597 (LIB_SPEC): Split line more than 80 characters long.
16598 (EH_RETURN_HANDLER_RTX): Likewise.
16599 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16601 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16603 MSP430: Fix whitespace errors and incorrect indentation in
16604 config/msp430/*.{c,h} files
16606 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16607 (msp430_select_hwmult_lib): Likewise.
16608 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16609 (msp430_extract_mcu_data): Likewise.
16610 (struct t_msp430_mcu_data): Likewise.
16611 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16612 before left square bracket.
16613 (msp430_option_override): Fix indentation.
16614 (msp430_hard_regno_nregs_with_padding): Likewise.
16615 (msp430_initial_elimination_offset): Likewise.
16616 (msp430_special_register_convention_p): Remove whitespace before left
16617 square bracket and after exclamation mark.
16618 (msp430_evaluate_arg): Likewise.
16619 (msp430_callee_copies): Fix indentation.
16620 (msp430_gimplify_va_arg_expr): Likewise.
16621 (msp430_function_arg_advance): Remove whitespace before left square
16623 (reg_ok_for_addr): Likewise.
16624 (msp430_preserve_reg_p): Likewise.
16625 (msp430_compute_frame_info): Likewise.
16626 (msp430_asm_output_addr_const_extra): Add space between function name
16627 and open parenthesis.
16628 (has_section_name): Fix indentation.
16629 (msp430_attr): Remove trailing whitespace.
16630 (msp430_section_attr): Likewise.
16631 (msp430_data_attr): Likewise.
16632 (struct msp430_attribute_table): Fix comment and whitespace.
16633 (msp430_start_function): Remove whitespace before left square bracket.
16634 Add space between function name and open parenthesis.
16635 (msp430_select_section): Remove trailing whitespace.
16636 (msp430_section_type_flags): Remove trailing whitespace.
16637 (msp430_unique_section): Remove space before closing parenthesis.
16638 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16639 (msp430_builtins): Remove whitespace before left square bracket.
16640 (msp430_init_builtins): Fix indentation.
16641 (msp430_expand_prologue): Remove whitespace before left square bracket.
16642 Remove space before closing parenthesis.
16643 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16644 (msp430_split_movsi): Remove space before closing parenthesis.
16645 (helper_function_name_mappings): Fix indentation.
16646 (msp430_use_f5_series_hwmult): Fix whitespace.
16647 (use_32bit_hwmult): Likewise.
16648 (msp430_no_hwmult): Likewise.
16649 (msp430_output_labelref): Remove whitespace before left square bracket.
16650 (msp430_print_operand_raw): Likewise.
16651 (msp430_print_operand_addr): Likewise.
16652 (msp430_print_operand): Add two spaces after '.' in comment.
16653 Fix trailing whitespace.
16654 (msp430x_extendhisi): Fix indentation.
16655 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16657 (PC_REGNUM): Likewise.
16658 (STACK_POINTER_REGNUM): Likewise.
16659 (CC_REGNUM): Likewise.
16661 2019-08-15 Richard Biener <rguenther@suse.de>
16664 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16666 (general_scalar_chain::make_vector_copies): Use it.
16668 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16670 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16672 2019-08-15 Martin Liska <mliska@suse.cz>
16674 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16675 operators with no arguments.
16676 (eliminate_unnecessary_stmts): Likewise here.
16678 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16680 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16681 <case COMPARE>: Revert 2019-08-14 change.
16682 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16683 for (TARGET_64BIT || mode != DImode).
16685 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16687 * tree-vrp.c (value_range_base::set): Merge in code from
16688 value_range_base::set_and_canonicalize.
16689 Enforce canonicalization at set time.
16690 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16691 (value_range_base::set_undefined): Inline call to set().
16692 (value_range_base::set_varying): Same.
16693 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16694 (vrp_val_max): New argument handle_pointers.
16695 (vrp_val_min): Same.
16696 (ranges_from_anti_range): Same.
16697 (extract_range_into_wide_ints): Use tree argument instead of sign
16699 (extract_range_from_multiplicative_op): Take in tree type instead
16700 of precision and sign. Adapt function for canonicalized ranges.
16701 (extract_range_from_binary_expr): Pass type to
16702 extract_range_from_multiplicative_op.
16703 Adapt for canonicalized ranges.
16704 (extract_range_from_unary_expr): Same.
16705 (value_range_base::intersect_helper): Adjust for canonicalized
16707 (value_range_base::union_helper): Same.
16708 (value_range_base::normalize_symbolics): New.
16709 * tree-vrp.h (class value_range_base): Remove
16710 set_and_canonicalize.
16711 New prototype for normalize_symbolics.
16712 (class value_range): Remove set_and_canonicalize.
16713 (vrp_val_min): Adjust prototype.
16714 (vrp_val_max): Same.
16716 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16717 instead of set_and_canonicalize.
16719 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16721 PR middle-end/91444
16722 * tree-vect-stmts.c (vectorizable_call): Check that the function
16723 is a BUILT_IN_MD function before passing it to
16724 targetm.vectorize.builtin_md_vectorized_function.
16726 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16728 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16729 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16730 (aarch64_select_early_remat_modes): Use it.
16732 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16734 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16735 16 for SVE predicates even if they are fixed-length.
16737 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16739 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16740 operand order match the MOV /Z alias.
16742 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16744 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16745 the vector pattern as an aarch64_svpattern argument. Update the
16746 overloaded caller accordingly.
16747 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16748 (aarch64_output_sve_vector_inc_dec): Likewise.
16750 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16752 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16753 multiplication case, try to compute VG * (lowest set bit) directly
16754 rather than always basing the multiplication on VG. Use
16755 expand_mult for the multiplication if we can.
16757 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16759 * config/aarch64/aarch64-protos.h
16760 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16761 (aarch64_sve_inc_dec_immediate_p): Rename to...
16762 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16763 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16764 (aarch64_output_sve_scalar_inc_dec): Declare.
16765 (aarch64_output_sve_inc_dec_immediate): Rename to...
16766 (aarch64_output_sve_vector_inc_dec): ...this.
16767 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16768 (aarch64_output_sve_scalar_inc_dec): New functions.
16769 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16770 arguments. Only handle true ADDVL and ADDPL instructions;
16771 don't emit an INC or DEC.
16772 (aarch64_sve_inc_dec_immediate_p): Rename to...
16773 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16774 (aarch64_output_sve_inc_dec_immediate): Rename to...
16775 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16776 aarch64_sve_vector_inc_dec_immediate_p.
16777 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16778 (aarch64_sve_plus_immediate): New predicates.
16779 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16780 rather than aarch64_sve_addvl_addpl_immediate.
16781 (aarch64_sve_inc_dec_immediate): Rename to...
16782 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16783 aarch64_sve_vector_inc_dec_immediate_p.
16784 (aarch64_sve_add_operand): Update accordingly.
16785 * config/aarch64/constraints.md (Uai): New constraint.
16786 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16787 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16788 operand into a register if it satisfies aarch64_sve_plus_immediate.
16789 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16790 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16791 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16792 aarch64_output_sve_vector_inc_dec instead of
16793 aarch64_output_sve_inc_dec_immediate.
16795 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16797 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16798 (UNSPEC_REVW): New constants.
16799 (elem_bits): New mode attribute.
16800 (SVE_INT_UNARY): New int iterator.
16801 (optab): Handle UNSPEC_REV[BHW].
16802 (sve_int_op): New int attribute.
16803 (min_elem_bits): Handle VNx16QI and the predicate modes.
16804 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16805 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16806 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16807 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16808 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16809 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16810 unspecs based on the total width of the reversed data.
16811 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16812 reinterpret followed by a subreg on big-endian targets.
16814 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16815 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16817 * config/aarch64/aarch64-sve.md
16818 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16819 alternatives in which one of the inputs is in the same register
16822 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16824 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16825 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16827 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16829 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16830 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16832 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16833 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16835 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16836 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16837 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16839 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16840 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16842 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16843 Add an alternative that uses reversed shifts.
16845 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16847 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16850 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16852 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16853 a commutativity marker.
16855 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16856 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16858 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16859 (aarch64_prepare_sve_cond_int_fma): Declare.
16860 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16861 (aarch64_prepare_sve_int_fma): New functions.
16862 (aarch64_prepare_sve_cond_int_fma): Likewise.
16863 * config/aarch64/aarch64-sve.md
16864 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16865 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16866 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16867 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16868 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16869 (*madd<mode>): Rename to...
16870 (*fma<mode>4): ...this.
16871 (*msub<mode>): Rename to...
16872 (*fnma<mode>4): ...this.
16874 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16875 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16877 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16878 Print 2.0 naturally.
16879 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16880 * config/aarch64/predicates.md
16881 (aarch64_sve_float_negated_arith_immediate): New predicate,
16882 renamed from aarch64_sve_float_arith_with_sub_immediate.
16883 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16884 positive and negative constants.
16885 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16886 or an aarch64_sve_float_arith_with_sub_immediate.
16887 * config/aarch64/constraints.md (vsN): Use
16888 aarch64_sve_float_negated_arith_immediate.
16889 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16891 (sve_pred_fp_rhs2_immediate): New int attribute.
16892 * config/aarch64/aarch64-sve.md
16893 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16894 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16895 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16896 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16897 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16898 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16900 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16901 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16903 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16904 (*aarch64_cond_abd<SVE_F:mode>_3)
16905 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16907 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16908 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16910 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16911 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16914 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16916 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16917 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16918 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16919 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16921 * optabs.h (create_convert_operand_from): Expand comment.
16922 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16923 when mapping scalar rtxes to vector operands.
16924 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16925 ashiftrt and lshiftrt.
16926 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16927 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16928 (*cond_<optab><mode>_any_const): New patterns.
16930 2019-08-15 Martin Liska <mliska@suse.cz>
16933 * cgraph.c (cgraph_node::remove): When setting
16934 n->origin = NULL for all nested functions, reset
16937 2019-08-15 Martin Liska <mliska@suse.cz>
16939 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16942 2019-08-15 Martin Liska <mliska@suse.cz>
16945 * passes.c (order): Remove.
16946 (uid_hash_t): Likewise).
16947 (remove_cgraph_node_from_order): Remove from set
16948 of pointers (cgraph_node *).
16949 (insert_cgraph_node_to_order): New.
16950 (duplicate_cgraph_node_to_order): New.
16951 (do_per_function_toporder): Register all 3 cgraph hooks.
16952 Skip removed_nodes now as we know about all of them.
16954 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16956 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16957 <case E_V8QImode>: Use vector_set path for
16958 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16959 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16960 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16962 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16964 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16966 2019-08-14 Martin Sebor <msebor@redhat.com>
16968 PR tree-optimization/91294
16969 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16970 source length as exact.
16972 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16974 * doc/extend.texi: Add "noinit" attribute documentation.
16975 * doc/sourcebuild.texi: Add noinit effective target documentation.
16976 * varasm.c (default_section_type_flags): Add support for "noinit"
16978 (default_elf_select_section): Add support for "noinit" attribute.
16979 * config/msp430/msp430.c (msp430_attribute_table): Remove
16982 2019-08-14 Richard Biener <rguenther@suse.de>
16983 Uroš Bizjak <ubizjak@gmail.com>
16986 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16988 (scalar_chain::smode): New member.
16989 (scalar_chain::vmode): Likewise.
16990 (dimode_scalar_chain): Rename to...
16991 (general_scalar_chain): ... this.
16992 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16993 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16994 base with TImode and V1TImode.
16995 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16996 (general_scalar_chain::vector_const_cost): Adjust for SImode
16998 (general_scalar_chain::compute_convert_gain): Likewise. Add
16999 {S,U}{MIN,MAX} support.
17000 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17001 (general_scalar_chain::make_vector_copies): Likewise. Handle
17002 non-DImode chains appropriately.
17003 (general_scalar_chain::convert_reg): Likewise.
17004 (general_scalar_chain::convert_op): Likewise.
17005 (general_scalar_chain::convert_insn): Likewise. Add
17006 fatal_insn_not_found if the result is not recognized.
17007 (convertible_comparison_p): Pass in the scalar mode and use that.
17008 (general_scalar_to_vector_candidate_p): Likewise. Rename from
17009 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
17010 (scalar_to_vector_candidate_p): Remove by inlining into single
17012 (general_remove_non_convertible_regs): Rename from
17013 dimode_remove_non_convertible_regs.
17014 (remove_non_convertible_regs): Remove by inlining into single caller.
17015 (convert_scalars_to_vector): Handle SImode and DImode chains
17016 in addition to TImode chains.
17017 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17018 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17019 (*<maxmin>di3_doubleword): Likewise.
17021 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17022 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17024 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17025 (*cond_bic<mode>_any): New patterns.
17027 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17029 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17030 take the equivalent mask, as well as a bit count.
17031 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17032 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17033 (aarch64_sve_pred_and_operand): New predicates.
17034 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17036 * config/aarch64/aarch64-sve.md
17037 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17038 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17040 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17042 * config/aarch64/aarch64-sve.md
17043 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17044 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17047 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17048 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17050 * config/aarch64/aarch64-sve.md
17051 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17052 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17055 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17057 * config/aarch64/aarch64-sve.md
17058 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17059 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17063 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17064 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17067 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17068 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17070 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17072 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17073 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17075 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17076 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17077 (aarch64_print_operand): Add support for %I.
17078 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17079 Bitcast floating-point constants to the corresponding integer constant.
17080 (aarch64_float_const_representable_p): Handle vectors as well
17082 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17083 for the new vcond_mask_<mode><vpred> expander.
17084 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17085 test aarch64_float_const_representable_p.
17086 (aarch64_sve_reg_or_dup_imm): New predicate.
17087 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17088 gen_vcond_mask_<mode><vpred> instead of
17089 gen_aarch64_sve_dup<mode>_const.
17090 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17091 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17092 for operands 1 and 2 respectively. Force operand 2 into a
17093 register if operand 1 is a register. Fold old define_insn...
17094 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17095 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17096 floating-point constants that can be moved as integers. Add
17097 alternatives for MOV /M and FMOV /M.
17098 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17099 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17100 1 and 2 respectively.
17101 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17103 (vss): New constraint.
17105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17107 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17108 (aarch64_sve_float_maxmin_operand): New predicates.
17109 * config/aarch64/constraints.md (vsB): New constraint.
17111 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17112 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17113 UNSPEC_COND_FMINNM.
17114 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17115 Use aarch64_sve_float_maxmin_operand for operand 2.
17116 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17117 Add alternatives for the constant forms.
17119 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17121 * config/aarch64/constraints.md (vsb): New constraint.
17122 (vsm): Generalize description.
17123 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17125 (sve_imm_con): Handle smax, smin, umax and umin.
17126 (sve_imm_prefix): New code attribute.
17127 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17128 (aarch64_sve_vsb_operand): New predicates.
17129 (aarch64_sve_mul_immediate): Rename to...
17130 (aarch64_sve_vsm_immediate): ...this.
17131 (aarch64_sve_mul_operand): Rename to...
17132 (aarch64_sve_vsm_operand): ...this.
17133 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17134 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17135 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17136 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17137 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17138 add movprfx support for the immediate alternatives.
17139 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17141 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17144 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17146 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17147 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17148 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17150 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17152 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17153 (optab, sve_int_op): Handle them.
17154 * config/aarch64/aarch64-sve.md: Expand comment.
17156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17158 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17159 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17160 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17162 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17164 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17165 (aarch64_expand_sve_const_pred_trn): New functions.
17166 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17167 use the above functions when the parameter is true.
17168 (aarch64_expand_sve_const_pred): Update call accordingly.
17169 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17171 (@aarch64_sve_<perm_insn><mode>): ...this.
17173 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17175 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17177 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17178 (aarch64_sve_emit_int_cmp): New functions.
17179 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17180 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17181 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17182 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17183 (UNSPEC_PRED_Z): New unspec.
17184 (set_clobber_cc_nzc): Delete.
17185 * config/aarch64/aarch64-sve.md: Add a block comment about
17187 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17188 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17189 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17190 UNSPEC_MERGE_PTRUE.
17191 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17192 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17193 check for compatible predicates.
17194 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17195 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17196 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17199 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17201 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17202 * config/aarch64/aarch64-sve.md: Add a section describing it.
17203 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17204 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17205 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17206 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17207 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17208 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17209 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17210 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17211 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17212 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17213 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17214 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17215 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17216 (aarch64_evpc_rev_local): Update accordingly.
17218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17220 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17222 (SVE_BHSI, SVE_SDI): Tweak comment.
17223 (SVE_HSDI): Likewise. Fix definition.
17224 (SVE_SDF): New mode iterator.
17225 (elem_bits): New mode attribute.
17226 (SVE_COND_FCVT): New int iterator.
17227 * config/aarch64/aarch64-sve.md
17228 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17229 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17230 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17231 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17232 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17233 ...these new patterns.
17234 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17235 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17236 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17238 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17239 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17240 ...these new patterns.
17241 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17242 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17243 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17244 ...this new pattern.
17245 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17246 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17247 ...this new pattern.
17248 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17250 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17252 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17253 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17254 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17256 (optab, su): Handle them.
17257 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17258 * config/aarch64/aarch64-sve.md
17259 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17260 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17261 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17262 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17263 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17264 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17265 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17266 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17267 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17269 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17270 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17271 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17272 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17273 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17274 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17275 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17276 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17277 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17278 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17279 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17280 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17281 of UNSPEC_FLOAT_CONVERT.
17282 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17283 aarch64_sve_extend<mode><Vwide>2.
17285 2019-08-14 Richard Biener <rguenther@suse.de>
17288 * config/i386/i386-features.c
17289 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17290 individual instruction gain. Fix reg-reg copy GRP cost. Use
17291 ix86_cost->sse_op for vector instruction costs.
17293 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17295 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17296 (cmp_op): Handle it.
17297 (SVE_COND_FP_CMP): Rename to...
17298 (SVE_COND_FP_CMP_I0): ...this.
17299 (SVE_FP_CMP): Remove.
17300 * config/aarch64/aarch64-sve.md
17301 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17302 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17303 using unspecs to represent the comparison.
17304 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17305 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17307 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17308 (aarch64_unspec_cond_code): Move after integer code. Handle
17310 (aarch64_emit_sve_predicated_cond): Replace with...
17311 (aarch64_emit_sve_fp_cond): ...this new function.
17312 (aarch64_emit_sve_or_conds): Replace with...
17313 (aarch64_emit_sve_or_fp_conds): ...this new function.
17314 (aarch64_emit_sve_inverted_cond): Replace with...
17315 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17316 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17318 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17320 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17321 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17322 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17323 SVE_HSD instead of SVE_SD.
17325 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17326 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17328 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17330 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17332 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17333 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17334 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17335 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17336 (*div<SVE_F:mode>3): Generalize to...
17337 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17339 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17340 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17342 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17344 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17346 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17348 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17350 * config/aarch64/aarch64-sve.md: Add a block comment about the
17351 handling of predicated FP operations.
17352 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17353 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17354 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17355 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17356 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17358 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17359 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17361 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17362 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17363 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17364 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17365 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17366 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17367 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17368 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17369 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17370 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17371 strictness operands. Use aarch64_sve_pred_dominates_p to check
17372 whether the predicate on the conditional operation is suitable
17373 for merging. Split patterns into the canonical equal-predicate form.
17374 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17375 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17378 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17380 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17381 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17382 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17384 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17385 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17388 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17389 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17391 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17392 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17393 actually has, rather than relying on REG_EQUAL notes.
17394 Make the insn operand order match the SVE operand order.
17395 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17396 the SVE operand order.
17398 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17400 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17401 (aarch64_emit_set_immediate): Likewise.
17402 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17403 (aarch64_pfalse_reg): Likewise.
17404 (aarch64_convert_sve_data_to_pred): New function.
17405 (aarch64_sve_move_pred_via_while): Take an optional target register
17406 and the required register mode.
17407 (aarch64_expand_sve_const_pred_1): New function.
17408 (aarch64_expand_sve_const_pred): Likewise.
17409 (aarch64_expand_mov_immediate): Build an all-true predicate
17410 if the significant bits of the immediate are all true. Use
17411 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17412 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17413 before register allocation.
17414 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17415 a VNx16BI PTRUE when splitting the memory alternative.
17416 (vec_duplicate<mode>): Update accordingly.
17417 (*pred_cmp<cmp_op><mode>): Rename to...
17418 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17420 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17422 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17423 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17424 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17425 (UNSPEC_PTEST): New unspec.
17426 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17427 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17428 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17429 * config/aarch64/aarch64-sve.md: Add a new section describing the
17430 handling of UNSPEC_PTEST.
17431 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17432 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17433 (ptest_ptrue<mode>): Replace with...
17434 (aarch64_ptest<mode>): ...this new pattern.
17435 (cbranch<mode>4): Update after above changes.
17436 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17437 UNSPEC_PTEST_PTRUE.
17438 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17439 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17440 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17442 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17445 * builtins.c (builtin_with_linkage_p): New function.
17446 * builtins.h (builtin_with_linkage_p): New function.
17447 * symtab.c (write_symbol): Remove redundant assert.
17448 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17449 Remove FIXME and use builtin_with_linkage_p.
17451 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17453 PR middle-end/91421
17454 * tree-core.h (function_decl::function_code): Change type to
17456 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17457 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17458 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17459 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17460 is BUILT_IN_NORMAL.
17461 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17462 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17463 (fndecl_built_in_p): Change the type of the "name" argument to
17465 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17466 after check for DECL_BUILT_IN_CLASS.
17467 * cgraphclones.c (build_function_decl_skip_args): Use
17468 set_decl_built_in_function.
17469 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17470 * ipa-split.c (split_function): Likewise.
17471 * langhooks.c (add_builtin_function_common): Likewise.
17472 * omp-simd-clone.c (simd_clone_create): Likewise.
17473 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17474 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17475 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17476 DECL_FUNCTION_CODE.
17477 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17478 instead of DECL_FUNCTION_CODE.
17479 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17480 instead of DECL_FUNCTION_CODE.
17481 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17482 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17483 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17484 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17485 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17486 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17487 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17488 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17489 (alpha_gimple_fold_builtin): Likewise.
17490 * config/arc/arc.c (arc_expand_builtin): Likewise.
17491 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17492 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17493 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17494 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17495 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17496 * config/frv/frv.c (frv_expand_builtin): Likewise.
17497 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17498 (gcn_expand_builtin): Likewise.
17499 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17500 (fold_builtin_cpu): Likewise.
17501 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17502 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17503 (ix86_gimple_fold_builtin): Likewise.
17504 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17505 (ia64_expand_builtin): Likewise.
17506 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17507 * config/mips/mips.c (mips_expand_builtin): Likewise.
17508 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17509 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17510 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17511 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17512 * config/pa/pa.c (pa_expand_builtin): Likewise.
17513 * config/pru/pru.c (pru_expand_builtin): Likewise.
17514 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17515 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17517 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17518 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17519 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17520 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17521 (rs6000_builtin_reciprocal): Likewise.
17522 * config/rx/rx.c (rx_expand_builtin): Likewise.
17523 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17524 * config/s390/s390.c (s390_expand_builtin): Likewise.
17525 * config/sh/sh.c (sh_expand_builtin): Likewise.
17526 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17527 (sparc_fold_builtin): Likewise.
17528 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17529 * config/spu/spu.c (spu_expand_builtin): Likewise.
17530 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17531 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17532 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17533 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17534 (xtensa_expand_builtin): Likewise.
17536 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17538 PR middle-end/91421
17539 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17540 before the DECL_FUNCTION_CODE.
17541 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17542 to check for a BUILT_IN_ALLOCA call.
17543 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17544 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17545 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17546 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17547 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17548 for BUILT_IN_NORMAL functions.
17549 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17550 test for BUILT_IN_TM_ABORT.
17551 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17552 to check for a BUILT_IN_STACK_RESTORE call.
17553 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17554 * tree-ssa-threadedge.c
17555 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17556 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17557 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17558 test for a BUILT_IN_NORMAL call instead of a negative test for
17559 an internal function call.
17561 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17563 * tree.h (build_vector_a_then_b): Declare.
17564 * tree.c (build_vector_a_then_b): New function.
17565 * fold-const-call.c (fold_while_ult): Likewise.
17566 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17567 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17568 (aarch64_svpattern): New enum.
17569 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17570 constants through aarch64_expand_mov_immediate.
17571 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17572 than general_operand as the predicate for operand 1.
17573 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17574 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17576 (simd_immediate_info::simd_immediate_info): New overload that
17577 takes a scalar_int_mode and an svpattern.
17578 (simd_immediate_info::u): Add a "pattern" field.
17579 (svpattern_token): New function.
17580 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17581 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17582 (aarch64_sve_move_pred_via_while): New functions.
17583 (aarch64_expand_mov_immediate): Try using
17584 aarch64_sve_move_pred_via_while for predicates that contain N ones
17585 followed by M zeros but that do not correspond to a VLnnn pattern.
17586 (aarch64_sve_pred_valid_immediate): New function.
17587 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17588 with PTRUE and PFALSE.
17589 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17592 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17594 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17596 (darwin_override_options): Likewise.
17597 * config/darwin.h: Likewise.
17598 * config/darwin.opt: Likewise.
17599 * config/i386/i386.c (output_pic_addr_const): Likewise.
17600 * config/rs6000/darwin.h: Likewise.
17601 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17602 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17603 ... this TARGET_MACHO_SYMBOL_STUBS.
17604 (FUNCTION_PROFILER):Likewise.
17605 * config/i386/i386.h: Likewise.
17607 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17609 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17610 <case E_V2SImode>: Use vec_extr path for
17611 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17612 <case E_V8QImode>: Ditto.
17613 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17614 Use SWI48 mode iterator. Use %k to output operand 0.
17615 (*mmx_pextrw): New insn pattern.
17616 (*mmx_pextrb): Ditto.
17617 (*mmx_pextrb_zext): Ditto.
17619 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17621 * target.def (libc_has_function, libc_has_fast_function): Improve
17622 documentation strings.
17623 * doc/tm.texi: Regenerate.
17625 2019-08-13 Caroline Tice <cmtice@google.com>
17628 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17629 vtv_end.o or vtv_end_preinit.o files if !static.
17631 2019-08-13 Olivier Hainque <hainque@adacore.com>
17633 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17635 2019-08-13 Olivier Hainque <hainque@adacore.com>
17637 * rtlanal.c (tablejump_casesi_pattern): New function, to
17638 determine if a tablejump insn is a casesi dispatcher. Extracted
17639 from patch_jump_insn.
17640 * rtl.h (tablejump_casesi_pattern): Declare.
17641 * cfgrtl.c (patch_jump_insn): Use it.
17642 * dwarf2cfi.c (create_trace_edges): Use it.
17644 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17647 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17648 operand is larger than a long int.
17650 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17652 * machmode.h (opt_mode::else_mode): New function.
17653 (opt_mode::else_blk): Use it.
17654 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17655 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17656 (aarch64_gen_stepped_int_parallel): Likewise.
17657 (aarch64_stepped_int_parallel_p): Likewise.
17658 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17660 * config/aarch64/aarch64.c
17661 (aarch64_expand_sve_widened_duplicate): Delete.
17662 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17663 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17664 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17665 argument. Use early returns in the !CONST_INT_P handling.
17666 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17667 than handling some inline.
17668 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17670 (aarch64_simd_container_mode): ...here.
17671 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17672 (aarch64_sve_ld1rq_operand_p): New functions.
17673 * config/aarch64/predicates.md (descending_int_parallel)
17674 (aarch64_sve_ld1rq_operand): New predicates.
17675 * config/aarch64/constraints.md (UtQ): New constraint.
17676 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17677 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17678 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17679 (@aarch64_sve_reinterpret<mode>): New expander.
17680 (*aarch64_sve_reinterpret<mode>): New pattern.
17681 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17682 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17683 (*sve_ld1rq<Vesize>): Replace with...
17684 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17686 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17688 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17691 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17693 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17694 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17695 (msp430_check_path_for_devices): New.
17696 (parse_devices_csv_1): New.
17697 (parse_devices_csv): New.
17698 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17699 MCU data in devices.csv before using the hard-coded data.
17700 Warn if devices.csv isn't found and the MCU wasn't found in the
17701 hard-coded data either.
17702 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17703 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17704 Search for devices.csv on -I and -L paths.
17705 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17706 msp430_set_driver_var.
17707 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17708 -mdevices-csv-loc=.
17709 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17710 searched for devices.csv.
17711 (mwarn-devices-csv): Document option.
17713 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17715 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17716 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17717 Use a single Dn alternative instead of separate Dz and Dm
17718 alternatives. Use aarch64_output_sve_move_immediate.
17719 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17721 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17722 for predicates too.
17723 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17724 (aarch64_output_ptrue): Delete.
17726 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17728 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17730 (simd_immediate_info::value, simd_immediate_info::step)
17731 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17733 (simd_immediate_info::u): ...this new union.
17734 (simd_immediate_info::simd_immediate_info): Update accordingly.
17735 (aarch64_output_simd_mov_immediate): Likewise.
17736 (aarch64_output_sve_mov_immediate): Likewise.
17738 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17740 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17742 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17743 (msp430_select_cpu): New spec function.
17744 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17746 * config/msp430/msp430-devices.c: New file.
17747 * config/msp430/msp430-devices.h: New file.
17748 * config/msp430/msp430.c: Remove msp430_mcu_data.
17749 (msp430_option_override): Use msp430_extract_mcu_data to extract
17751 (msp430_use_f5_series_hwmult): Likewise.
17752 (use_32bit_hwmult): Likewise.
17753 (msp430_no_hwmult): Likewise.
17754 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17756 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17758 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17759 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17760 Remove hard-coded MCU multilib data.
17762 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17764 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17765 based on the mode instead of testing properties of it.
17767 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17769 * doc/md.texi: Document the x and y constraints for AArch64.
17770 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17771 (FP_LO8_REGS): New reg_class.
17772 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17773 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17774 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17775 * config/aarch64/predicates.md (aarch64_simd_register): Use
17776 FP_REGNUM_P instead of checking the classes manually.
17777 * config/aarch64/constraints.md (y): New constraint.
17779 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17781 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17782 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17783 * config/aarch64/aarch64-simd.md
17784 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17785 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17786 from the asm template.
17787 * config/aarch64/aarch64-sve.md
17788 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17789 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17790 from the asm template.
17791 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17792 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17793 from the asm template.
17794 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17796 2019-08-13 Martin Liska <mliska@suse.cz>
17798 * value-prof.c (gimple_ic_transform): Add new line.
17799 Print details with MSG_NOTE.
17801 2019-08-13 Martin Liska <mliska@suse.cz>
17803 * doc/invoke.texi: Document automatic detection of jobserver.
17804 * lto-wrapper.c (run_gcc): Detect jobserver always.
17806 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17808 * config/i386/i386-expand.c (ix86_expand_vector_set)
17809 <case E_V2SImode>: Use vec_merge path for
17810 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17811 <case E_V8QImode>: Ditto.
17812 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17813 (*mmx_pinsrb): Ditto.
17815 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17819 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17820 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17821 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17822 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17823 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17825 2019-08-12 Richard Biener <rguenther@suse.de>
17828 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17831 2019-08-12 Richard Biener <rguenther@suse.de>
17834 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17835 lang_mask option, always use CL_DRIVER.
17836 (get_options_from_collect_gcc_options): Adjust.
17837 (find_and_merge_options): Likewise.
17838 (run_gcc): Likewise.
17840 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17842 * ipa-predicate.c (add_condition): Restore inverted test.
17844 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17846 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17847 (enum omp_clause_device_type_kind): New enum.
17848 (struct tree_omp_clause): Add subcode.device_type_kind.
17849 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17850 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17851 for device_type clause.
17852 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17853 * tree-pretty-print.c (dump_omp_clause): Likewise.
17856 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17859 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17861 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17862 handling spilled pseudos.
17864 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17867 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17868 to preserve the contents of the original insns.
17870 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17872 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17873 (addsi3_compare_op2): Likewise.
17875 2019-08-09 Martin Liska <mliska@suse.cz>
17877 * alias.c (alias_ptr_types_compatible_p): Strengten
17878 type comparison in LTO mode.
17880 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17882 PR middle-end/90313
17883 * tree-tailcall.c (find_tail_calls): Reject calls that might
17884 read from an escaped RESULT_DECL.
17886 2019-08-09 Martin Liska <mliska@suse.cz>
17888 * doc/invoke.texi: Document the option value.
17889 * lto-wrapper.c (run_gcc): Set auto_parallel
17890 only with -flto=auto.
17892 2019-08-09 Martin Liska <mliska@suse.cz>
17894 * opts.c (common_handle_option): Error for an invalid argument
17897 2019-08-09 Martin Liska <mliska@suse.cz>
17899 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17900 use dump_printf to report optimization.
17901 (sem_variable::merge): Likwise.
17902 (sem_item_optimizer::merge_classes): Use dump_printf to report
17905 2019-08-09 Martin Liska <mliska@suse.cz>
17907 * value-prof.c (gimple_divmod_fixed_value_transform):
17908 Use dump_printf_loc.
17909 (gimple_mod_pow2_value_transform): Likewise.
17910 (gimple_mod_subtract_transform): Likewise.
17911 (init_node_map): Likewise.
17912 (gimple_ic_transform): Likewise.
17913 (gimple_stringops_transform): Likewise.
17915 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17917 * doc/extend.texi: Add const qualifier to ld intrinsics.
17919 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17921 * config/rs6000/dfp.md (D64_D128): Rename to ...
17922 (DDTD): ... this, throughout.
17923 (dfp_suffix): Rename to ...
17924 (q): ... this, throughout.
17926 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17928 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17929 (dfp_suffix): Ditto.
17930 (adddd3, addtd3): Merge to ...
17931 (add<mode>3 for D64_D128): ... this.
17932 (subdd3, subtd3): Merge to ...
17933 (sub<mode>3 for D64_D128): ... this.
17934 (muldd3, multd3): Merge to ...
17935 (mul<mode>3 for D64_D128): ... this.
17936 (divdd3, divtd3): Merge to ...
17937 (div<mode>3 for D64_D128): ... this.
17938 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17939 (*cmp<mode>_internal1 for D64_D128): ... this.
17940 (ftruncdd2, ftrunctd2): Merge to ...
17941 (ftrunc<mode>2 for D64_D128): ... this.
17942 (fixdddi2, fixtddi2): Merge to ...
17943 (fix<mode>di2 for D64_D128): ... this.
17945 2019-08-08 Jim Wilson <jimw@sifive.com>
17948 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17949 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17950 Pass into recursive call.
17951 (riscv_flatten_aggregate_argument): New arg. Pass to
17952 riscv_flatten_aggregate_field.
17953 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17954 riscv_flatten_aggregate_argument twice, with false and true as last
17955 arg. Process result twice. Compare results and warn if different.
17956 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17958 2019-08-08 Martin Liska <mliska@suse.cz>
17961 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17962 * lto-wrapper.c (jobserver_active_p): Likewise.
17964 2019-08-08 Martin Liska <mliska@suse.cz>
17966 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17967 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17968 (create_version_clone_with_body): Likewise.
17970 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17972 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17973 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17974 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17975 GOVD_EXPLICIT flags.
17976 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17977 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17978 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17979 call install_var_field with mask 11 instead of 3.
17980 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17981 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17983 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17985 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17986 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17988 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17990 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17991 MOVPRFX alternatives. Make the GPR alternatives more expensive
17994 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17996 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17997 Disparage the GPR alternative relative to the FPR one.
17998 Fix handling of 8-bit and 16-bit FPR values.
18000 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18002 * config/aarch64/iterators.md (BITWISEV): Delete.
18003 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18004 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18005 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18006 UNSPEC_FMINNMV, UNSPEC_FMINV.
18007 (bit_reduc_op): Delete.
18008 (sve_int_op): New int attribute.
18009 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18010 UNSPEC_FMINNMV, UNSPEC_FMINV.
18011 * config/aarch64/aarch64-sve.md
18012 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18013 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18014 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18015 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18016 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18017 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18019 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18020 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18021 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18022 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18023 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18028 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18029 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18030 (fms<mode>4, *fms<mode>4): Replace with...
18031 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18032 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18033 Use unspecs instead of rtx codes.
18034 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18035 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18037 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18039 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18041 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18042 * config/aarch64/aarch64-sve.md
18043 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18044 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18045 use a single unspec for the rhs.
18046 (*<su><maxmin><mode>3): Delete.
18047 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18049 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18051 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18052 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18053 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18054 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18055 (optab, sve_fp_op): Handle them.
18056 (SVE_FP_UNARY): Delete.
18057 (optab): Remove sqrt entry.
18058 (sve_fp_op): Remove neg, abs and sqrt entries.
18059 (SVE_COND_FP_UNARY): New int iterator.
18060 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18061 (*<frint_pattern><mode>2): Delete.
18062 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18063 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18064 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18065 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18067 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18069 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18071 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18073 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18074 (UNSPEC_COND_FADD): ...this.
18075 (UNSPEC_COND_SUB): Rename to...
18076 (UNSPEC_COND_FSUB): ...this.
18077 (UNSPEC_COND_MUL): Rename to...
18078 (UNSPEC_COND_FMUL): ...this.
18079 (UNSPEC_COND_DIV): Rename to...
18080 (UNSPEC_COND_FDIV): ...this.
18081 (UNSPEC_COND_MAX): Rename to...
18082 (UNSPEC_COND_FMAXNM): ...this.
18083 (UNSPEC_COND_MIN): Rename to...
18084 (UNSPEC_COND_FMINNM): ...this.
18085 (UNSPEC_COND_LT): Rename to...
18086 (UNSPEC_COND_FCMLT): ...this.
18087 (UNSPEC_COND_LE): Rename to...
18088 (UNSPEC_COND_FCMLE): ...this.
18089 (UNSPEC_COND_EQ): Rename to...
18090 (UNSPEC_COND_FCMEQ): ...this.
18091 (UNSPEC_COND_NE): Rename to...
18092 (UNSPEC_COND_FCMNE): ...this.
18093 (UNSPEC_COND_GE): Rename to...
18094 (UNSPEC_COND_FCMGE): ...this.
18095 (UNSPEC_COND_GT): Rename to...
18096 (UNSPEC_COND_FCMGT): ...this.
18097 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18098 (sve_fp_op_rev): Update accordingly.
18099 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18101 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18103 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18105 * config/aarch64/check-sve-md.awk: New file.
18106 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18107 (insn-conditions.md): Depend on it.
18109 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18112 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18113 (*negsi2_cmpz_zext): Ditto.
18115 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18117 * config/aarch64/iterators.md (commutative): Remove.
18119 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18122 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18123 processing COLLECT_GCC_OPTIONS.
18124 (run_gcc): Likewise.
18126 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18128 PR tree-optimization/91109
18129 * lra-remat.c (update_scratch_ops): Remove assignment of the
18132 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18134 * data-streamer.h (streamer_write_poly_uint64): Declare.
18135 (streamer_read_poly_uint64): Likewise.
18136 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18137 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18138 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18139 (add_condition): Take a poly_int64 size.
18140 * ipa-predicate.c (add_condition): Likewise.
18141 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18142 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18143 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18144 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18145 condition::size as a poly_int64.
18146 (unmodified_parm_1): Take a poly_int64 size pointer.
18147 (unmodified_parm): Likewise.
18148 (unmodified_parm_or_parm_agg_item): Likewise.
18149 (set_cond_stmt_execution_predicate): Update accordingly.
18150 (set_switch_stmt_execution_predicate): Likewise.
18151 (will_be_nonconstant_expr_predicate): Likewise.
18152 (will_be_nonconstant_predicate): Likewise.
18153 (inline_read_section): Stream condition::size as a poly_int.
18154 (ipa_fn_summary_write): Likewise.
18156 2019-08-07 Martin Liska <mliska@suse.cz>
18158 * fold-const.c (twoval_comparison_p): Replace int
18159 with bool as a return type.
18160 (simple_operand_p): Likewise.
18161 (operand_equal_p): Replace int with bool as a return type.
18162 * fold-const.h (operand_equal_p): Likewise.
18164 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18166 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18167 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18168 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18169 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18170 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18171 * tree-pretty-print.c (dump_omp_clause): Likewise.
18172 * tree-nested.c (convert_nonlocal_omp_clauses,
18173 convert_local_omp_clauses): Likewise.
18174 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18176 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18177 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18178 clause with array or reference to array types, no matter what type
18179 except for reference it has.
18181 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18183 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18185 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18187 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18188 (arch_canonicalize): Support rv32g and rv64g and fix error
18191 2019-08-06 Martin Liska <mliska@suse.cz>
18193 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18194 and DECL_IS_OPERATOR_DELETE_P.
18196 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18198 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18199 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18200 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18201 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18202 (gimplify_omp_for): Don't do C++ random access iterator clause
18203 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18204 don't predetermine the artificial iterator in case of C++ random
18205 access iterators as lastprivate, but private. For OMP_LOOP, force
18206 bind expr around simd body and force for_pre_body before the
18207 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18208 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18209 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18210 diff var of C++ random access iterators. Handle
18211 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18212 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18213 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18214 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18215 * omp-low.c (lower_rec_input_clauses): For
18216 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18217 variables instead of default constructing them.
18218 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18219 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18220 is_taskloop_ctx check from the assert to the guarding condition.
18222 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18224 * config/riscv/multilib-generator: (canonical_order): New.
18225 (arch_canonicalize): Dito.
18226 Apply arch_canonicalize for alts.
18228 2019-08-05 Martin Sebor <msebor@redhat.com>
18230 * doc/extend.texi (Common Variable Attributes): Document alias
18233 2019-08-05 Marek Polacek <polacek@redhat.com>
18235 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18236 * doc/invoke.texi: Document -Wcomma-subscript.
18238 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18240 * tree-core.h (tree_function_decl): Make function_code an
18241 independent field. Group the remaining bitfields into bytes
18242 and move decl_type so that it contines to be at a byte boundary.
18243 Leave 12 bits for future expansion.
18245 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18247 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18248 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18249 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18252 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18254 * gimple.h (gimple_move_vops): Declare.
18255 * gimple.c (gimple_move_vops): New function
18256 * gimple-fold.c (replace_call_with_call_and_fold)
18257 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18258 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18259 (gimple_fold_call): Use it.
18260 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18261 * tree-call-cdce.c (use_internal_fn): Likewise.
18262 * tree-if-conv.c (predicate_load_or_store): Likewise.
18263 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18264 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18265 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18266 (update_call_from_tree): Likewise.
18267 * tree-vect-stmts.c (vectorizable_load): Likewise.
18268 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18270 2019-08-05 Martin Liska <mliska@suse.cz>
18273 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18274 with not arguments.
18275 (eliminate_unnecessary_stmts): Likewise.
18277 2019-08-05 Richard Biener <rguenther@suse.de>
18279 PR middle-end/91169
18280 * fold-const.c (get_array_ctor_element_at_index): Create
18281 offset_ints according to the sign of the index type and treat
18282 that as signed if it is obviously so.
18284 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18287 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18288 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18289 _mm256_storeu2_m128i): New function.
18291 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18293 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18294 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18296 2019-08-05 Alan Modra <amodra@gmail.com>
18299 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18300 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18302 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18304 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18305 bug that was fixed in Tcl 8.6.1.
18307 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18309 * config/rs6000/future.md: New file.
18310 * config/rs6000/rs6000.md: Include future.md.
18311 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18313 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18315 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18316 check to use targetm.slow_unaligned_access instead.
18318 * function.c (assign_param_data_one): Remove unused data members.
18320 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18322 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18323 build_distinct_type_copy.
18324 (simd_clone_adjust_argument_types): Ditto.
18325 (simd_clone_adjust): Call build_distinct_type_copy here.
18326 (expand_simd_clones): Ditto.
18328 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18331 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18333 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18335 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18336 from 'const void *'.
18337 (sort_locs_in_loop_postorder_cmp): Likewise.
18339 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18341 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18342 (hot-bb-count-ws-permille): Likewise.
18343 (hot-bb-frequency-fraction): Likewise.
18344 (unlikely-bb-count-fraction): Likewise.
18345 * params.def (hot-bb-count-fraction): Rework description.
18346 (hot-bb-count-ws-permille): Likewise.
18347 (hot-bb-frequency-fraction): Likewise.
18348 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18349 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18351 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18354 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18357 2019-08-02 Richard Biener <rguenther@suse.de>
18359 * vec.h (vec::sort): Add gcc_qsort_r support.
18360 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18361 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18362 to gcc_qsort_r style callback.
18363 (sort_locs_in_loop_postorder_cmp): Likewise.
18364 (analyze_memory_references): Use gcc_sort_r interfaces.
18365 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18367 2019-08-02 Martin Liska <mliska@suse.cz>
18370 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18371 to detect working job server.
18372 (driver::detect_jobserver): Test whether jobserver
18373 is active from GCC driver. That will prevent situation where
18374 GCC is invoked from a LD plugin and the linker already uses
18375 file descriptors suggested by make. That leads to a wrong
18377 * gcc.h (driver): Add detect_jobserver.
18378 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18379 not scanning for --jobserver-auth prefix.
18381 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18383 PR tree-optimization/91201
18384 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18385 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18388 2019-08-01 Martin Sebor <msebor@redhat.com>
18391 * tree.c (type_initializer_zero_p): Define.
18392 * tree.h (type_initializer_zero_p): New function.
18394 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18396 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18398 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18400 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18401 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18402 * predict.c (maybe_hot_count_p): Likewise.
18403 (maybe_hot_bb_p): Tweak comment.
18404 (maybe_hot_edge_p): Likewise.
18405 (probably_never_executed): Likewise. Minor tweak.
18406 (probably_never_executed_bb_p): Likewise.
18407 (unlikely_executed_edge_p): Likewise.
18408 (probably_never_executed_edge_p): Likewise.
18409 (optimize_function_for_size_p): Likewise.
18410 (optimize_function_for_speed_p): Likewise.
18411 (function_optimization_type): Likewise.
18412 (optimize_bb_for_size_p): Likewise.
18413 (optimize_bb_for_speed_p): Likewise.
18414 (bb_optimization_type): Likewise.
18415 (optimize_edge_for_size_p): Likewise.
18416 (optimize_edge_for_speed_p): Likewise.
18417 (optimize_insn_for_size_p): Likewise.
18418 (optimize_insn_for_speed_p): Likewise.
18419 (optimize_loop_for_size_p): Likewise.
18420 (optimize_loop_for_speed_p): Likewise.
18421 (optimize_loop_nest_for_speed_p): Likewise.
18422 (optimize_loop_nest_for_size_p): Likewise.
18423 (predictable_edge_p): Likewise.
18424 (handle_missing_profiles): Minor tweak.
18426 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18428 * config/rs6000/predicates.md (pcrel_external_address): Update
18431 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18434 * config/i386/mmx.md (usadv8qi): New expander.
18436 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18439 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18440 with reserved names that are in a system header.
18442 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18444 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18445 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18446 (*vec_extractv2si_0_zext): Ditto.
18447 (*vec_extractv2si_1): Add (rm,x) alternative.
18448 (*vec_extractv2si_1_zext): New insn pattern.
18449 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18452 2019-08-01 Richard Biener <rguenther@suse.de>
18454 * domwalk.c (bb_postorder): Remove static variable.
18455 (cmp_bb_postorder): Adjust.
18456 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18457 (dom_walker::walk): Adjust.
18459 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18461 * sort.cc (sort_r_ctx): New struct.
18462 (reorder23): Make templated on context type.
18463 (reorder45): Ditto.
18464 (cmp1): Ditto. Adjust signature.
18466 (mergesort): Ditto.
18467 [CHECKING_P] (cmp2to3): New static function. Use it...
18468 (gcc_qsort) [CHECKING_P]: ...here.
18469 (gcc_sort_r): New function.
18470 * system.h (sort_r_cmp_fn): New function typedef.
18471 (qsort_chk): Adjust signature.
18472 (gcc_sort_r): Declare.
18473 * vec.c (qsort_chk_error): Adjust.
18474 (qsort_chk): Adjust.
18476 2019-08-01 Richard Biener <rguenther@suse.de>
18478 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18479 (compute_antic): Localize it here.
18481 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18483 * common/config/riscv/riscv-common.c: Check -march string ends
18486 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18488 * ipa-devirt.c (type_warning_cmp): Make static.
18489 (decl_warning_cmp): Ditto.
18491 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18494 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18495 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18496 use of deleted rs6000_dejagnu_cpu_index variable.
18497 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18498 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18499 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18500 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18501 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18502 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18504 2019-07-31 Richard Biener <rguenther@suse.de>
18506 PR tree-optimization/91280
18507 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18508 Decompose MEM_REF manually for offset handling.
18510 2019-07-31 Richard Biener <rguenther@suse.de>
18512 PR tree-optimization/91293
18513 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18514 of reduction stmts.
18516 2019-07-31 Matt Thomas <matt@3am-software.com>
18517 Nick Hudson <nick@nthcliff.demon.co.uk>
18518 Matthew Green <mrg@eterna.com.au>
18519 Maya Rashish <coypu@sdf.org>
18521 * config.gcc (hppa*-*-netbsd*): New target.
18522 * config/pa/pa-netbsd.h: New file.
18523 * config/pa/pa32-netbsd.h: New file.
18525 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18527 PR tree-optimization/91201
18528 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18530 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18532 * config/gcn/gcn-valu.md
18533 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18534 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18535 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18536 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18537 struct ilist. Add nops for delayeduse insns.
18538 * config/gcn/gcn.md (delayeduse): New attribute.
18539 (*movbi): Remove s_waitcnt from stores.
18540 (*mov<mode>_insn): Likewise.
18541 (*movti_insn): Likewise. Add delayeduse attribute.
18542 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18543 (atomic_store<mode>): Remove or adjust s_waitcnt.
18545 2019-07-31 Richard Biener <rguenther@suse.de>
18547 * vr-values.h (vr_values::swap_vr_value): New.
18548 (vr_values::free_value_range): likewise.
18549 * vr-values.c (vr_values::swap_vr_value): Implement.
18550 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18551 Do not return a range or take a var.
18552 (evrp_range_analyzer::stack): Change back to recording a non-const
18554 * gimple-ssa-evrp-analyze.c
18555 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18557 (evrp_range_analyzer::pop_to_marker): Adjust.
18558 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18559 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18560 no longer needed value-range.
18562 2019-07-31 Martin Liska <mliska@suse.cz>
18564 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18565 have size and (or) alignment as 2nd and later arguments.
18566 Mark all of them as necessary.
18568 2019-07-31 Richard Biener <rguenther@suse.de>
18570 PR tree-optimization/91178
18571 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18572 Use tail-recursion.
18574 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18576 PR tree-optimization/91201
18577 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18578 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18580 (reduc_plus_scal_<mode>): Improve formatting by introducing
18583 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18585 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18586 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18587 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18588 (aarch64_init_tme_builtins): New.
18589 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18590 (aarch64_expand_builtin_tme): New.
18591 (aarch64_expand_builtin): Handle TME builtins.
18592 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18593 __ARM_FEATURE_TME when enabled.
18594 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18595 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18597 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18598 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18600 (tstart, ttest, tcommit, tcancel): New instructions.
18601 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18602 (__tcancel, __ttest): New.
18603 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18604 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18605 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18606 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18607 * config/arm/types.md: Add new tme type attr.
18608 * doc/invoke.texi: Document "tme".
18610 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18612 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18613 warn_unused_result attribute.
18614 (cmse_check_address_range): Add warn_unused_result attribute.
18616 2019-07-31 Richard Biener <rguenther@suse.de>
18618 PR tree-optimization/91257
18619 * tree-vrp.c (union_ranges): Unify equality and less tests
18620 by using compare_values. Re-order cheap tests first.
18622 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18624 PR middle-end/91301
18625 * gimplify.c (gimplify_omp_for): If for class iterator on
18626 distribute parallel for there is no data sharing clause
18627 on inner_for_stmt, look for private clause on combined
18628 parallel too and if found, move it to inner_for_stmt.
18630 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18632 * lra-int.h (lra_operand_data): Remove early_clobber field.
18633 (lra_insn_reg): Likewise.
18634 * lra.c (debug_operand_data): Update accordingly.
18635 (setup_operand_alternative): Likewise.
18636 (new_insn_reg): Likewise. Remove early_clobber parameter.
18637 (collect_non_operand_hard_regs): Update call accordingly.
18638 Don't assign to lra_insn_reg::early_clobber.
18639 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18640 and update calls to new_insn_reg.
18641 (lra_update_insn_regno_info): Update calls accordingly.
18642 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18643 alternative number as a parameter and test whether the operand
18644 is earlyclobbered in that particular alternative.
18645 (process_alt_operands): Update call accordingly. Use per-alternative
18646 checks for earyclobber here too.
18647 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18648 against zero for IRA_UNKNOWN_ALT.
18650 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18652 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18654 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18656 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18657 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18659 2019-07-30 Martin Liska <mliska@suse.cz>
18662 * cgraph.c (cgraph_edge::make_direct): Use
18663 edge->indirect_unknown_callee as edge->resolve_speculation can
18664 deallocate edge which is this pointer.
18666 2019-07-30 Richard Biener <rguenther@suse.de>
18668 PR tree-optimization/91257
18669 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18671 2019-07-30 Martin Liska <mliska@suse.cz>
18673 * doc/invoke.texi: Document new behavior.
18674 * lto-wrapper.c (cpuset_popcount): New function
18675 is a copy of libgomp/config/linux/proc.c.
18676 (init_num_threads): Likewise.
18677 (run_gcc): Automatically detect core count for -flto.
18678 (jobserver_active_p): New function.
18680 2019-07-30 Richard Biener <rguenther@suse.de>
18682 PR tree-optimization/91257
18683 * bitmap.h (bitmap_ior_into_and_free): Declare.
18684 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18685 whether to add the unliked element to the freelist.
18686 (bitmap_list_insert_element_after): Add defaulted param for
18687 an already allocated element.
18688 (bitmap_ior_into_and_free): New function.
18689 * tree-ssa-structalias.c (condense_visit): Reduce the
18690 ponts-to and edge bitmaps of the SCC members in a
18691 logarithmic fashion rather than all to one.
18693 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18695 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18696 parameter. When nonnull, make sure that the addition or subtraction
18697 has the same condition.
18698 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18699 for CFN_COND_MUL too.
18701 2019-07-30 Richard Biener <rguenther@suse.de>
18703 PR tree-optimization/91291
18704 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18707 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18709 PR middle-end/91216
18710 * omp-low.c (global_nonaddressable_vars): New variable.
18711 (use_pointer_for_field): For global decls, if they are non-addressable,
18712 remember it in the global_nonaddressable_vars bitmap, if they are
18713 addressable and in the global_nonaddressable_vars bitmap, ignore their
18714 TREE_ADDRESSABLE bit.
18715 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18716 vars in global_nonaddressable_vars bitmap.
18717 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18720 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18721 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18722 comparison to unsigned HOST_WIDE_INT before shifting it left.
18724 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18726 * config/i386/i386.md (movstrict<mode>): Use register_operand
18727 predicate for operand 0. Add expander condition. Assert that
18728 operand 0 is a SUBREG RTX.
18729 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18730 Update operand constraints and insn condition.
18731 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18732 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18733 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18734 Update operand 0 constraints.
18735 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18737 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18739 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18740 when -m{code,data}-region are used without -mlarge.
18741 * config/msp430/msp430.c (msp430_option_override): Error when a
18742 non-default code or data region is used without -mlarge.
18743 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18744 attributes when they are used without -mlarge.
18746 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18749 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18751 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18753 PR middle-end/91242
18754 * wide-int.h (generic_wide_int::sext_elt): New function.
18755 * inchash.h (hash::add_wide_int): Use it instead of elt.
18757 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18759 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18761 * config/arm/arm.md (<crc_variant>): Rename to...
18762 (arm_<crc_variant>): ... This.
18763 (<cdp>): Rename to...
18764 (arm_<cdp>): ... This.
18765 (<ldc>): Rename to...
18766 (arm_<ldc>): ... This.
18767 (<stc>): Rename to...
18768 (arm_<stc>): ... This.
18769 (<mcr>): Rename to...
18770 (arm_<mcr>): ... This.
18771 (<mrc>): Rename to...
18772 (arm_<mrc>): ... This.
18773 (<mcrr>): Rename to...
18774 (arm_<mcrr>): ... This.
18775 (<mrrc>): Rename to...
18776 (arm_<mrrc>): ... This.
18778 2019-07-29 Richard Biener <rguenther@suse.de>
18780 PR tree-optimization/91257
18781 * tree-ssa-sccvn.h (struct vn_avail): New.
18782 (struct vn_ssa_aux): Add avail member.
18783 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18784 member, add m_avail_freelist one.
18785 (rpo_elim::~rpo_elim): Remove.
18786 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18788 (rpo_elim::eliminate_push_avail): Likewise.
18789 (do_unwind): Likewise.
18790 (do_rpo_vn): Likewise.
18792 2019-07-29 Richard Biener <rguenther@suse.de>
18794 PR tree-optimization/91257
18795 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18796 most cases, instead call compare_values which handles the
18797 symbolic ranges we handle specially.
18798 (compare_values_warnv): Do not call operand_less_p but open-code
18799 the effective fold calls. Avoid converting so much.
18801 2019-07-29 Martin Liska <mliska@suse.cz>
18803 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18804 remove LHS of operator new call. It's handled latter.
18806 2019-07-29 Richard Biener <rguenther@suse.de>
18808 PR tree-optimization/91267
18809 * vr-values.c (vr_values::update_value_range): Add early return
18810 for effectively VARYING lattice entry.
18812 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18815 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18816 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18817 necessary if keep_all_vdefs_p is true.
18818 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18819 that keep_all_vdefs_p is false.
18820 (mark_all_reaching_defs_necessary): Likewise.
18821 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18823 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18825 * common.opt (Og): Change the initial value of flag_dse to 0.
18826 * opts.c (default_options_table): Move OPT_ftree_dse from
18827 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18828 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18829 entry before the OPT_ftree_sra entry.
18830 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18831 of flags disabled by Og.
18833 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18835 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18838 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18840 * doc/sourcebuild.texi (check-function-bodies): Document.
18842 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18844 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18845 VEC_DUPLICATE of a fixed-length vector even if the result
18846 is variable-length. Likewise fold a duplicate of a
18847 variable-length vector if the variable-length vector is
18848 itself a duplicate of a fixed-length sequence.
18849 (test_vector_ops_duplicate): Test more cases.
18851 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18853 * vector-builder.h (vector_builder): Add a shape template parameter.
18854 (vector_builder::new_unary_operation): New function, generalizing
18855 the old tree_vector_builder function.
18856 (vector_builder::new_binary_operation): Likewise.
18857 (vector_builder::binary_encoded_nelts): Likewise.
18858 * int-vector-builder.h (int_vector_builder): Update template
18859 parameters to vector_builder.
18860 (int_vector_builder::shape_nelts): New function.
18861 * rtx-vector-builder.h (rtx_vector_builder): Update template
18862 parameters to vector_builder.
18863 (rtx_vector_builder::shape_nelts): New function.
18864 (rtx_vector_builder::nelts_of): Likewise.
18865 (rtx_vector_builder::npatterns_of): Likewise.
18866 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18867 * tree-vector-builder.h (tree_vector_builder): Update template
18868 parameters to vector_builder.
18869 (tree_vector_builder::shape_nelts): New function.
18870 (tree_vector_builder::nelts_of): Likewise.
18871 (tree_vector_builder::npatterns_of): Likewise.
18872 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18873 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18874 (tree_vector_builder::new_binary_operation): Delete.
18875 (tree_vector_builder::binary_encoded_nelts): Likewise.
18876 * simplify-rtx.c: Include rtx-vector-builder.h.
18877 (distributes_over_addition_p): New function.
18878 (simplify_const_unary_operation)
18879 (simplify_const_binary_operation): Generalize handling of vector
18880 constants to include variable-length vectors.
18881 (test_vector_ops_series): Add more tests.
18883 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18886 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18887 than INDENTIFIER_POINTER.
18889 2019-07-28 Martin Liska <mliska@suse.cz>
18892 * cgraph.c (symbol_table::create_edge): Always allocate
18894 (symbol_table::free_edge): Store summary_id to
18895 edge_released_summary_ids if != -1;
18896 * cgraph.h (NEXT_FREE_NODE): Remove.
18897 (SET_NEXT_FREE_NODE): Likewise.
18898 (NEXT_FREE_EDGE): Likewise.
18899 (symbol_table::release_symbol): Store summary_id to
18900 cgraph_released_summary_ids if != -1;
18901 (symbol_table::allocate_cgraph_symbol): Always allocate
18904 2019-07-28 Alan Modra <amodra@gmail.com>
18906 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18909 2019-07-28 Alan Modra <amodra@gmail.com>
18912 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18914 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18915 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18916 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18918 2019-07-28 Alan Modra <amodra@gmail.com>
18921 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18922 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18923 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18924 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18925 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18926 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18927 in asm_default spec.
18928 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18929 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18931 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18933 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18935 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18938 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18939 * config/aarch64/aarch64-option-extensions.def: Add new comments
18940 and restore easier to read options.
18942 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18944 * convert.c (convert_to_real_1): Move part of conversion code...
18945 * match.pd: ...To here.
18947 2019-07-26 Martin Jambor <mjambor@suse.cz>
18950 * ipa-inline-transform.c (check_speculations_1): New function.
18951 (push_all_edges_in_set_to_vec): Likewise.
18952 (check_speculations): Use check_speculations_1, new parameter
18954 (inline_call): Pass new_edges to check_speculations.
18955 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18957 (speculation_useful_p): Early return true if edge is inlined, remove
18958 later checks for inline_failed.
18960 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18962 PR rtl-optimization/91223
18963 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18964 matching with INOUT operand.
18966 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18968 * stmt.c (expand_case): Try to narrow the index type if it's larger
18969 than a word. Tidy up.
18971 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18973 * cif-code.def (NEVER_CALL): New code.
18974 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18975 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18977 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18979 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18980 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18982 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18984 * ipa-devirt.c (add_type_duplicate): Fix return value.
18986 2019-07-25 Richard Biener <rguenther@suse.de>
18988 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18989 type parameter and use it instead of guessing expression
18990 type from the first operand.
18991 (extract_range_from_binary_expr): Pass expr_type down.
18993 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18995 * config/arm/arm.md (SATrev): Change to code attribute.
18996 (*satsi_<SAT:code>): Adjust for the above.
18997 (*satsi_<SAT:code>_shift): Likewise.
18999 2019-07-25 Richard Biener <rguenther@suse.de>
19001 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19002 Make value_range * temporary const.
19003 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19005 (evrp_range_analyzer::record_ranges_from_): Likewise.
19006 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19007 deal with having recorded a const one.
19008 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19009 Return a const value_range *.
19010 (evrp_range_analyzer::pop_value_range): Likewise.
19011 (evrp_range_analyzer::stack): Record const value_range *s.
19012 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19014 * gimple-ssa-sprintf.c (get_int_range): Likewise.
19015 (format_integer): Likewise.
19016 (sprintf_dom_walker::handle_gimple_call): Likewise.
19017 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19018 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19019 (vrp_prop::get_value_range): Adjust.
19020 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19021 modifying the lattice in-place.
19022 (vrp_prop::visit_stmt): Likewise.
19023 * vr-values.c (vr_values::get_lattice_entry): New private method.
19024 (vr_values::get_value_range): Wrap it and return a const
19026 (vr_values::set_def_to_varying): New.
19027 (vr_values::set_defs_to_varying): Use it.
19028 (vr_values::update_value_range): Likewise.
19029 (vr_values::vrp_stmt_computes_nonzero): Adjust.
19030 (values::op_with_constant_singleton_va): Likewise.
19031 (vr_values::extract_range_for_var_from_co): Likewise.
19032 (vr_values::extract_range_from_ssa_name): Likewise.
19033 (vr_values::extract_range_from_cond_expr): Likewise.
19034 (vr_values::extract_range_basic): Likewise.
19035 (compare_ranges): Take const value_range *, adjust.
19036 (compare_range_with_value): Likewise.
19037 (vrp_valueize): Adjust.
19038 (vrp_valueize_1): Likewise.
19039 (vr_values::get_vr_for_comparison): Return a const value_range *.
19040 (vr_values::compare_name_with_value): Adjust.
19041 (vr_values::compare_names): Likewise.
19042 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19044 (vr_values::vrp_evaluate_conditional): Likewise.
19045 (find_case_label_ranges): Take a const value_range *.
19046 (vr_values::vrp_visit_switch_stmt): Adjust.
19047 (vr_values::extract_range_from_phi_node): Likewise.
19048 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19049 (vr_values::simplify_abs_using_ranges): Likewise.
19050 (test_for_singularity): Take a const value_range *.
19051 (range_fits_type_p): Likewise.
19052 (vr_values::simplify_cond_using_ranges_1): Adjust.
19053 (vr_values::simplify_cond_using_ranges_2): Likewise.
19054 (vr_values::simplify_switch_using_ranges): Likewise.
19055 (vr_values::simplify_float_conversion_usi): Likewise.
19056 (vr_values::two_valued_val_range_p): Likewise.
19057 * vr-values.h (vr_values::get_value_range): Return a const
19059 (vr_values::set_def_to_varying): New.
19060 (vr_values::get_lattice_entry): New private method.
19061 (vr_values::get_vr_for_comparison): Return a const value_range *.
19063 2019-07-25 Martin Liska <mliska@suse.cz>
19064 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19067 * common.opt: Add -fallocation-dce
19068 * gimple.c (gimple_call_operator_delete_p): New.
19069 * gimple.h (gimple_call_operator_delete_p): Likewise.
19070 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19071 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19072 DECL_IS_OPERATOR_DELETE_P.
19073 (mark_all_reaching_defs_necessary_1): Likewise.
19074 (propagate_necessity): Likewise.
19075 (eliminate_unnecessary_stmts): Handle
19076 gimple_call_operator_delete_p.
19077 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19078 Add packing of OPERATOR_DELETE.
19079 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19081 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19082 (DECL_SET_IS_OPERATOR_DELETE): New.
19083 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19085 2019-07-25 Martin Liska <mliska@suse.cz>
19087 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19088 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19089 * coverage.c (coverage_begin_function): Likewise.
19090 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19091 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19092 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19093 (sem_item::hash_referenced_symbol_properties): Likewise.
19094 * lto-streamer-out.c (hash_tree): Likewise.
19095 * predict.c (expr_expected_value_1): Likewise.
19096 * tree-inline.c (expand_call_inline): Likewise.
19097 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19098 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19099 * tree-core.h (enum function_decl_type): New enum.
19100 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19101 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19102 (set_function_decl_type): Likewise.
19103 (DECL_IS_OPERATOR_NEW_P): New.
19104 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19105 (DECL_LAMBDA_FUNCTION): Likewise.
19106 (DECL_LAMBDA_FUNCTION_P): Likewise.
19107 (DECL_IS_OPERATOR_NEW): Remove.
19108 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19110 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19112 * ipa-profile.c (get_most_common_single_value): Use
19113 get_nth_most_common_value.
19114 * profile.c (sort_hist_value): New function.
19115 (compute_value_histograms): Call sort_hist_value to sort the
19116 values after loading from disk.
19117 * value-prof.c (get_most_common_single_value): Rename to ...
19118 get_nth_most_common_value. Add input params n, return
19119 the n_th value and count.
19120 (gimple_divmod_fixed_value_transform): Use
19121 get_nth_most_common_value.
19122 (gimple_ic_transform): Likewise.
19123 (gimple_stringops_transform): Likewise.
19124 * value-prof.h (get_most_common_single_value): Add input params
19127 2019-07-25 Richard Biener <rguenther@suse.de>
19129 PR tree-optimization/91236
19130 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19131 size of CONSTRUCTOR write. Fix buffer size we pass to
19132 native_encode_expr.
19134 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19136 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19137 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19140 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19142 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19143 explicitly disabled with --disable-initfini-array.
19145 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19147 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19150 2019-07-24 Martin Sebor <msebor@redhat.com>
19152 PR tree-optimization/91183
19153 PR tree-optimization/86688
19154 * builtins.c (compute_objsize): Handle MEM_REF.
19155 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19156 (get_min_string_length): Remove.
19157 (count_nonzero_bytes): New function.
19158 (handle_char_store): Rename...
19159 (handle_store): to this. Handle multibyte stores via integer types.
19160 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19163 2019-07-24 Martin Sebor <msebor@redhat.com>
19166 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19167 (diagnostic_report_diagnostic): Same.
19168 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19169 (diagnostic_context::lang_mask): New data member.
19170 * ipa-pure-const.c (suggest_attribute): Use
19171 lang_hooks.option_lang_mask ().
19172 * opts-common.c (option_enabled): Handle new argument.
19173 (get_option_state): Pass an additional argument.
19174 * opts.c (print_filtered_help): Print supported languages for
19175 unsupported options. Adjust printing of current state.
19176 * opts.h (option_enabled): Add argument.
19177 * toplev.c (print_switch_values): Use lang_mask.
19178 (general_init): Set global_dc->lang_mask.
19180 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19183 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19185 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19187 * cgraphunit.c (symbol_table::compile): Start and stop
19188 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19189 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19191 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19193 * gimplify.c (flag_instrument_functions_exclude_p): Include
19194 namespace/class information in the printable name.
19195 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19196 to tokens entered into the vector.
19198 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19200 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19201 (get_static_chain): Call it instead of build_simple_mem_ref.
19202 (get_frame_field): Likewise.
19203 (get_nonlocal_debug_decl): Likewise.
19204 (convert_nonlocal_reference_op): Likewise.
19206 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19208 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19210 (arc_compute_frame_size): Millicode is disabled when compiling
19212 (arc_return_address_register): Likewise.
19213 (arc_compute_function_type): Likewise.
19214 (arc_compute_frame_size): Likewise.
19215 (secondary_reload_info): Likewise.
19216 (arc_get_unalign): Likewise.
19217 (arc_can_use_return_insn): Declare.
19218 * config/arc/arc.c (AUX_LP_START): Define
19219 (AUX_LP_END): Likewise.
19220 (arc_frame_info): Update gmask member to 64-bit datum.
19221 (GMASK_LEN): Update.
19222 (arc_compute_function_type): Make it static, move it forward.
19223 (arc_must_save_register): Update, consider the extra regs.
19224 (arc_compute_millicode_save_restore_regs): Update to use the 64
19226 (arc_compute_frame_size): Likewise.
19227 (arc_enter_leave_p): Likewise.
19228 (arc_save_callee_saves): Likewise.
19229 (arc_restore_callee_saves): Likewise.
19230 (arc_save_callee_enter): Likewise.
19231 (arc_restore_callee_leave): Likewise.
19232 (arc_save_callee_milli): Likewise.
19233 (arc_restore_callee_milli): Likewise.
19234 (arc_expand_prologue): Add new interrupt handling.
19235 (arc_return_address_register): Make it static, move it forward.
19236 (arc_expand_epilogue): Add new interrupt handling.
19237 (arc_get_unalign): Delete.
19238 (arc_epilogue_uses): Make sure we do not remove the extra
19239 saved/restored registers when interrupt.
19240 (arc_can_use_return_insn): New function.
19241 (push_reg): Likewise.
19242 (pop_reg): Likewise.
19243 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19245 (arc_restore_callee_saves): Likewise, but restoring.
19246 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19247 (R33_REG): Likewise.
19248 (R34_REG): Likewise.
19249 (R35_REG): Likewise.
19250 (R36_REG): Likewise.
19251 (R37_REG): Likewise.
19252 (R38_REG): Likewise.
19253 (R39_REG): Likewise.
19254 (R45_REG): Likewise.
19255 (R46_REG): Likewise.
19256 (R47_REG): Likewise.
19257 (R48_REG): Likewise.
19258 (R49_REG): Likewise.
19259 (R50_REG): Likewise.
19260 (R51_REG): Likewise.
19261 (R52_REG): Likewise.
19262 (R53_REG): Likewise.
19263 (R54_REG): Likewise.
19264 (R55_REG): Likewise.
19265 (R56_REG): Likewise.
19266 (R58_REG): Likewise.
19267 (type): Add rtie attribute.
19268 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19269 (movsi_insn): Accept moves to lp_count.
19270 (rtie): Update pattern.
19271 (simple_return): Simplify it, don't use this pattern as a return
19273 (arc600_rtie): New pattern.
19274 (p_return_i): Clean up.
19275 (return): Likewise.
19276 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19278 * config/arc/predicates.md (move_src_operand): Consider lp_count
19281 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19283 * config/s390/predicates.md (addv_const_operand): New predicate.
19284 * config/s390/s390-modes.def (CCO): New condition code mode.
19285 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19286 (s390_branch_condition_mask): Likewise.
19287 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19288 ("mulv<mode>4"): New expanders.
19289 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19290 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19291 pattern definitions.
19293 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19295 PR middle-end/91166
19296 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19297 (define_predicates): Add entry for uniform_vector_p.
19298 (vec_same_elem_p): New match pattern.
19300 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19303 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19304 * config/i386/darwin32-biarch.h .. to here.
19305 * config/i386/darwin64-biarch.h: Adjust comments.
19306 * config/rs6000/darwin32-biarch.h: Likewise.
19307 * config/rs6000/darwin64-biarch.h: Likewise.
19308 * config.gcc: Missed commit from r273746
19309 (*-*-darwin*): Don't include CPU t-darwin here.
19310 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19311 an error message if i686-darwin configuration is attempted for
19314 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19317 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19318 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19319 an error message if i686-darwin configuration is attempted for
19321 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19322 (powerpc-*-darwin*): Use biarch files where needed.
19323 (powerpc64-*-darwin*): Likewise.
19324 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19325 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19327 * config/i386/darwin32-biarch.h: New.
19328 * config/i386/darwin64.h: Rename.
19329 * config/i386/darwin64-biarch.h: To this.
19330 * config/i386/t-darwin: Rename.
19331 * config/i386/t-darwin32-biarch: To this.
19332 * config/i386/t-darwin64: Rename.
19333 * config/i386/t-darwin64-biarch: To this.
19334 * config/rs6000/darwin32-biarch.h: New.
19335 * config/rs6000/darwin64.h: Rename.
19336 * config/rs6000/darwin64-biarch.h: To this.
19337 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19339 * config/rs6000/t-darwin8: Rename.
19340 * config/rs6000/t-darwin32-biarch: To this.
19341 * config/rs6000/t-darwin64 Rename.
19342 * config/rs6000/t-darwin64-biarch: To this.
19344 2019-07-23 Martin Sebor <msebor@redhat.com>
19346 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19348 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19350 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19351 (rh): New alias for it.
19353 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19355 * gdbhooks.py: Pass replace=True to
19356 gdb.printing.register_pretty_printer.
19358 2019-07-23 Richard Biener <rguenther@suse.de>
19361 * lto-streamer-in.c (input_function): Drop inline-entry markers
19362 that ended up with an unknown location block.
19364 2019-07-23 Richard Biener <rguenther@suse.de>
19366 PR tree-optimization/83518
19367 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19368 init from a constant even when partial defs are already recorded.
19370 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19372 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19373 * config/i386/znver1.md: Enable patterns for znver2 and add store
19374 variants which use extra AGU unit.
19376 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19378 * config/i386/i386-options.c (ix86_option_override_internal): Default
19379 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19380 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19383 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19385 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19386 (znver2_costs): Update 256 bit SSE costs and multiplication.
19388 2019-07-23 Jan Beulich <jbeulich@suse.com>
19390 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19391 Require only AVX512F.
19392 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19393 alternative expanding to vpternlog.
19395 2019-07-23 Martin Liska <mliska@suse.cz>
19397 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19398 to -flto in dwarf producer string.
19400 2019-07-23 Richard Biener <rguenther@suse.de>
19402 * tree-cfg.c (label_for_bb): Remove global var.
19403 (main_block_label): Take label_for_bb as argument.
19404 (cleanup_dead_labels_eh): Likewise, adjust.
19405 (cleanup_dead_labels): Adjust.
19407 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19409 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19410 Configurations): Add documentation for __builtin_mtfsf.
19412 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19414 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19415 * config/riscv/riscv.c (riscv_constant_alignment): Use
19416 riscv_align_data_type.
19417 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19418 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19419 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19420 * config/riscv/riscv.opt (malign-data): New.
19421 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19423 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19425 * cgraph.c (dump_graphviz): New function.
19426 * cgraph.h (dump_graphviz): New function.
19427 * symtab.c (dump_graphviz): New function.
19429 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19431 * config/aarch64/aarch64-simd.md
19432 (*aarch64_simd_sra<mode>): New.
19433 * config/aarch64/iterators.md
19434 (SHIFTRT): New iterator.
19435 (sra_op): New attribute.
19437 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19439 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19440 callee-saved regs R4->R10 in an interrupt function that calls another
19443 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19445 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19446 (_mm_blendv_epi8): New.
19448 2019-07-22 Richard Biener <rguenther@suse.de>
19450 PR tree-optimization/91221
19451 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19452 restrict partial-def handling of empty constructors and
19453 memset to refs with known offset.
19455 2019-07-22 Jan Beulich <jbeulich@suse.com>
19457 * config/i386/sse.md (ternlogsuffix): New.
19458 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19460 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19462 2019-07-22 Martin Liska <mliska@suse.cz>
19464 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19466 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19468 2019-07-22 Martin Liska <mliska@suse.cz>
19470 * lto-section-in.c (lto_get_section_data):
19471 Use new function get_compression.
19472 * lto-streamer-out.c (produce_lto_section): Use
19473 set_compression to encode compression algorithm.
19474 * lto-streamer.h (struct lto_section): Do not
19475 use bitfields in the format.
19477 2019-07-22 Martin Liska <mliska@suse.cz>
19480 * opts-common.c (decode_cmdline_option): Decode
19481 argument of -Werror and check it for a wrong language.
19482 * opts-global.c (complain_wrong_lang): Remove such case.
19484 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19486 * config/arc/arc.c (prepare_move_operands): Always use an
19487 intermediate register when storing a TLS symbols.
19489 2019-07-22 Stafford Horne <shorne@gmail.com>
19491 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19494 2019-07-22 Stafford Horne <shorne@gmail.com>
19496 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19497 and munordered-float validations.
19498 * config/or1k/constraints.md (d): New register constraint.
19499 * config/or1k/predicates.md (fp_comparison_operator): New.
19500 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19502 (or1k_expand_compare): Normalize unordered comparisons.
19503 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19504 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19505 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19506 * config/or1k/or1k.md (type): Add fpu.
19507 (fpu): New instruction reservation.
19508 (F, f, fr, fi, FI, FOP, fop): New.
19509 (<fop><F:mode>3): New ALU instruction definition.
19510 (float<fi><F:mode>2): New conversion instruction definition.
19511 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19512 (fpcmpcc): New code iterator.
19513 (*sf_fp_insn): New instruction definition.
19514 (cstore<F:mode>4): New expand definition.
19515 (cbranch<F:mode>4): New expand definition.
19516 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19517 munordered-float): New options.
19518 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19521 2019-07-22 Stafford Horne <shorne@gmail.com>
19523 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19524 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19525 documenation to be more clear.
19526 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19528 * config/or1k/or1k.opt (mrori): New option.
19529 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19530 msfimm, mshftimm): Rewrite documentation to be more clear.
19531 * config/or1k/or1k.md (insn_support): Add ror and rori.
19532 (enabled): Add conditions for ror and rori.
19533 (rotrsi3): Replace condition for shftimm with ror and rori.
19535 2019-07-22 Stafford Horne <shorne@gmail.com>
19538 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19539 (extend<mode>si2): Update predicate.
19540 * config/or1k/predicates.md (volatile_mem_operand): New.
19541 (reg_or_mem_operand): New.
19543 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19545 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19546 * config/rs6000/rs6000-call.c: ... to here.
19548 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19550 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19553 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19555 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19557 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19559 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19561 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19563 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19564 (any_memory_operand): New predicate.
19565 (reg_or_mem_operand): Use it.
19567 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19570 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19572 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19574 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19575 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19577 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19579 * tree.def (OMP_LOOP): New tree code.
19580 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19581 (enum omp_clause_bind_kind): New enum.
19582 (struct tree_omp_clause): Add subcode.bind_kind.
19583 * tree.h (OMP_LOOP_CHECK): Rename to ...
19584 (OMP_LOOPING_CHECK): ... this.
19585 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19586 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19587 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19588 (OMP_CLAUSE_BIND_KIND): Define.
19589 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19590 bind clause entries.
19591 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19592 * tree-pretty-print.c (dump_omp_clause): Likewise.
19593 (dump_generic_node): Handle OMP_LOOP.
19594 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19595 (in_omp_construct): New variable.
19596 (is_gimple_stmt): Handle OMP_LOOP.
19597 (gimplify_scan_omp_clauses): For lastprivate don't set
19598 check_non_private if code == OMP_LOOP. For reduction clause
19599 on OMP_LOOP combined with parallel or teams propagate as shared
19600 on the combined construct. Handle OMP_CLAUSE_BIND.
19601 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19602 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19603 for constructs from a loop construct to gimplify_scan_omp_clauses.
19604 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19605 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19606 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19607 to match the implicit ORT_TARGET construct around whole body.
19608 Temporarily clear in_omp_construct when processing body.
19609 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19610 etc. temporarily set in_omp_construct when processing body.
19611 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19612 * omp-low.c (struct omp_context): Add loop_p.
19613 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19614 in that the original var might be private.
19615 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19616 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19617 addition of loop construct.
19618 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19620 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19621 lastprivate non-addressable iterator of a collapse(1) simd.
19623 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19625 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19628 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19630 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19631 refer to default conditions. Warn for the 'y' spec which is ignored
19632 by current linkers.
19634 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19636 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19637 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19638 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19639 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19640 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19641 init_cumulative_args, rs6000_promote_function_mode,
19642 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19643 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19644 rs6000_function_arg_boundary, rs6000_parm_offset,
19645 rs6000_parm_start, rs6000_arg_size,
19646 rs6000_darwin64_record_arg_advance_flush,
19647 rs6000_darwin64_record_arg_advance_recurse,
19648 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19649 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19650 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19651 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19652 rs6000_finish_function_arg, rs6000_function_arg,
19653 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19654 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19655 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19656 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19657 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19658 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19659 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19660 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19661 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19662 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19663 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19664 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19665 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19666 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19667 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19668 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19669 get_element_number, altivec_expand_vec_set_builtin,
19670 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19671 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19672 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19673 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19674 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19675 rs6000_expand_builtin, rs6000_vector_type,
19676 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19677 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19678 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19680 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19681 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19682 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19683 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19684 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19685 init_cumulative_args, rs6000_promote_function_mode,
19686 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19687 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19688 rs6000_function_arg_boundary, rs6000_parm_offset,
19689 rs6000_parm_start, rs6000_arg_size,
19690 rs6000_darwin64_record_arg_advance_flush,
19691 rs6000_darwin64_record_arg_advance_recurse,
19692 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19693 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19694 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19695 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19696 rs6000_finish_function_arg, rs6000_function_arg,
19697 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19698 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19699 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19700 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19701 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19702 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19703 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19704 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19705 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19706 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19707 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19708 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19709 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19710 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19711 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19712 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19713 get_element_number, altivec_expand_vec_set_builtin,
19714 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19715 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19716 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19717 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19718 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19719 rs6000_expand_builtin, rs6000_vector_type,
19720 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19721 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19722 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19723 to here from rs6000.c.
19724 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19725 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19726 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19727 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19728 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19729 rs6000_return_in_memory, rs6000_return_in_msb,
19730 rs6000_pass_by_reference, setup_incoming_varargs,
19731 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19732 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19733 rs6000_function_arg_padding, rs6000_function_arg,
19734 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19735 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19736 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19737 rs6000_passes_long_double, rs6000_passes_vector,
19738 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19739 altivec_builtin_mask_for_load) Add declarations.
19740 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19741 * config/config.gcc: Add new source file rs6000-call.c to garbage
19742 collector and extra_objs.
19744 2019-07-19 Jeff Law <law@redhat.com>
19746 PR tree-optimization/86061
19747 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19748 strncpy. Drop some trivial dead code.
19749 (maybe_trim_memstar_call): Handle strncpy.
19751 2019-07-19 Richard Biener <rguenther@suse.de>
19753 PR tree-optimization/91211
19754 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19755 memset encoding size.
19757 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19760 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19762 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19765 * ipa-inline.c (recursive_inlining): Fix limits check.
19767 2019-07-19 Richard Biener <rguenther@suse.de>
19769 PR tree-optimization/91200
19770 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19771 no PHI nodes in middle-bb.
19773 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19775 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19777 * config/aarch64/aarch64-option-extensions.def: Likewise.
19779 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19781 PR middle-end/91190
19782 * function.c (insert_temp_slot_address): Store into the hash table
19783 a copy of address to avoid RTL sharing issues.
19785 2019-07-19 Richard Biener <rguenther@suse.de>
19787 PR tree-optimization/91207
19789 2019-07-17 Richard Biener <rguenther@suse.de>
19791 PR tree-optimization/91178
19792 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19793 loads with a gap larger than the vector size always use
19795 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19796 avoid loading vectors that are only contained in the gap
19797 and thus are not needed.
19799 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19801 * config/i386/i386.md (*addqi_2_slp): Remove.
19802 (*<code>qi_2_slp): Ditto.
19804 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19806 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19807 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19808 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19809 Rename function from rs6000_prefixed_address.
19810 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19812 (TARGET_TOC): Likewise.
19813 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19815 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19817 (TARGET_TOC): Likewise.
19818 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19820 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19822 (TARGET_TOC): Likewise.
19823 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19824 check to require -mcmodel=medium for pc-relative addressing.
19825 (create_TOC_reference): Add assertion for TARGET_TOC.
19826 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19828 (rs6000_emit_move): Likewise.
19829 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19830 to 'TOC_alias_set'.
19831 (get_TOC_alias_set): Likewise.
19832 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19834 (rs6000_can_eliminate): Likewise.
19835 (rs6000_prefixed_address_mode_p): Rename function from
19836 rs6000_prefixed_address.
19837 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19838 TARGET_HAS_TOC and not pc-relative.
19839 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19840 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19842 (TARGET_TOC): Likewise.
19843 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19846 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19849 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19850 for operand 0. Do not use (match_dup) to match operand 1 with
19851 operand 0. Add check in insn constraint that either input operand
19852 matches operand 0. Use SWI12 mode iterator to also handle
19854 (*and<mode>_1_slp): Ditto.
19855 (*<code>qi_1_slp): Ditto.
19856 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19857 Do not use (match_dup) to match operand 1 with operand 0. Add
19858 check in insn constraint that operand 1 matches operand 0.
19859 Use SWI12 mode iterator to also handle HImode operands.
19860 (*ashl<mode>3_1_slp): Ditto.
19861 (*<shift_insn><mode>3_1_slp): Ditto.
19862 (*<rotate_insn><mode>3_1_slp): Ditto.
19864 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19866 * config/arm/arm-builtins.c
19867 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19868 (arm_expand_unop_builtin): Likewise.
19869 * config/arm/crypto.md
19870 (crypto_sha1h): Convert from define_insn to define_expand.
19871 (crypto_<crypto_pattern>): Likewise.
19872 (crypto_sha1h_lb): New define_insn.
19873 (crypto_<crypto_pattern>_lb): Likewise.
19875 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19878 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19879 (vsha1cq_u32): Likewise.
19880 (vsha1pq_u32): Likewise.
19881 (vsha1mq_u32): Likewise.
19882 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19884 (crypto_sha1c): Correct vec select.
19885 (crypto_sha1m): Likewise.
19886 (crypto_sha1p): Likewise.
19888 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19890 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19891 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19892 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19893 (subdi_zesidi_zesidi): Likewise.
19894 (negdi2_compare, negdi2_insn): Likewise.
19895 (negdi_extensidi): Likewise.
19896 (negdi_zero_extendsidi): Likewise.
19897 (arm_cmpdi_insn): Likewise.
19898 (subsi3_carryin): Use arm_borrow_operation.
19899 (subsi3_carryin_const): Likewise.
19900 (subsi3_carryin_const0): Likewise.
19901 (subsi3_carryin_compare): Likewise.
19902 (subsi3_carryin_compare_const): Likewise.
19903 (subsi3_carryin_compare_const0): Likewise.
19904 (subsi3_carryin_shift): Likewise.
19905 (rsbsi3_carryin_shift): Likewise.
19906 (negsi2_carryin_compare): Likewise.
19908 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19910 PR tree-optimization/91137
19911 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19912 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19913 Init, use and fini the above new field.
19914 (determine_base_object_1): New function.
19915 (determine_base_object): Reimplement using walk_tree.
19917 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19919 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19920 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19921 CLEANUP_FORCE_FAST_DCE is set.
19922 * ifcvt.c (rest_of_handle_if_conversion): Pass
19923 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19924 if-conversion succeeded.
19926 2019-07-18 Richard Biener <rguenther@suse.de>
19928 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19929 branches to make code less indented.
19931 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19933 PR middle-end/81824
19934 * attribs.c (decls_mismatched_attributes): Simplify the logic
19935 that avoids duplicates and false positives.
19937 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19939 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19940 data into data section when generating PIC code.
19941 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19942 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19943 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19944 return 2 for SOM and 0 for other targets.
19946 2019-07-17 Jeff Law <law@redhat.com>
19948 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19949 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19950 avoid unexpected switch statement fallthru.
19952 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19954 * config/i386/i386.md (*add<dwi>3_doubleword):
19955 Remove redundant constraints.
19956 (*add<mode>_1): Ditto.
19959 (*addqi_1_slp): Ditto.
19960 (*add<mode>_2): Ditto.
19961 (*addv<mode>4): Ditto.
19962 (*sub<dwi>3_doubleword): Ditto.
19963 (*sub<mode>_1): Ditto.
19964 (*subqi_1_slp): Ditto.
19965 (*sub<mode>_2): Ditto.
19966 (*subv<mode>4): Ditto.
19967 (*sub<mode>_3): Ditto.
19968 (@add<mode>3_carry): Ditto.
19969 (@sub<mode>3_carry): Ditto.
19970 (*add<mode>3_cc_overflow_1): Ditto.
19971 (*add<mode>3_zext_cc_overflow_2): Ditto.
19973 (*and<mode>_1): Ditto.
19975 (*andqi_1_slp): Ditto.
19977 (*andqi_2_maybe_si): Ditto.
19978 (*and<mode>_2): Ditto.
19979 (*andqi_2_slp): Ditto.
19980 (*<code><mode>_1): Ditto.
19981 (*<code>qi_1): Ditto.
19982 (*<code>qi_1_slp): Ditto.
19983 (*<code><mode>_2): Ditto.
19984 (*<code>qi_2_slp): Ditto.
19986 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19988 * alias.c (record_component_aliases): Do not simplify pointed-to
19989 types of ODR types.
19991 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19993 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19994 partial reg stall on alternative 2.
19996 2019-07-17 Richard Biener <rguenther@suse.de>
19998 PR tree-optimization/91178
19999 * tree-ssa.c (release_defs_bitset): Iterate from higher to
20000 lower SSA names to avoid quadratic behavior in the common case.
20001 * tree-data-ref.c (split_constant_offset): Add limit argument
20002 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20003 (split_constant_offset_1): Add limit argument and use it to
20004 limit SSA def walking. Optimize the common plus/minus case.
20006 2019-07-17 Richard Biener <rguenther@suse.de>
20008 PR tree-optimization/91178
20009 * tree-vect-stmts.c (get_group_load_store_type): For SLP
20010 loads with a gap larger than the vector size always use
20012 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20013 avoid loading vectors that are only contained in the gap
20014 and thus are not needed.
20016 2019-07-17 Richard Biener <rguenther@suse.de>
20018 PR tree-optimization/91180
20019 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20020 computation for memset partial defs.
20022 2019-07-17 Jakub Jelinek <jakub@redhat.com>
20024 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20025 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20026 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20027 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20028 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20029 * omp-grid.c (grid_process_grid_body,
20030 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20031 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20032 == GF_OMP_FOR_KIND_SIMD.
20033 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20034 check_omp_nesting_restrictions, scan_omp_1_stmt,
20035 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20036 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20037 omp_find_scan): Likewise.
20038 * omp-expand.c (expand_omp_for): Likewise.
20039 * omp-general.c (omp_extract_for_data): Likewise.
20041 PR tree-optimization/91157
20042 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20043 a vector boolean with scalar mode.
20044 (expand_vector_condition): Handle first operand being a vector boolean
20046 (expand_vector_operations_1): For comparisons, don't bail out early
20047 if the return type is vector boolean with scalar mode, but comparison
20048 operand type is not.
20050 2019-07-17 Richard Biener <rguenther@suse.de>
20052 PR tree-optimization/91181
20053 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20054 IFN_LOADs as calls.
20056 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20058 * config/i386/i386.md (*testdi_1): Match CCZmode for
20059 constants that might have the SImode sign bit set.
20060 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20061 Use correct constraints for pentium pairing.
20062 (*test<mode>_1): Ditto.
20064 2019-07-16 Jeff Law <law@redhat.com>
20066 PR rtl-optimization/91173
20067 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20068 SSA_NAME with a constant value, fold its value into the offset
20069 and clear the base before calling gen_addr_rtx.
20071 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20073 PR rtl-optimization/91164
20074 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20075 invalidate dominance info.
20077 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20079 * read-md.h (md_reader::record_potential_iterator_use): Add a
20080 file_location parameter.
20081 * read-rtl.c (attribute_use::loc): New field.
20082 (map_attr_string): Take a file_location parameter. Report cases
20083 in which attributes map to multiple distinct values.
20084 (apply_attribute_uses): Update call accordingly.
20085 (md_reader::handle_overloaded_name): Likewise.
20086 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20088 (record_attribute_use): Take a file_location parameter.
20089 Initialize attribute_use::loc.
20090 (md_reader::record_potential_iterator_use): Take a file_location
20091 parameter. Update call to record_attribute_use.
20092 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20093 (rtx_reader::read_rtx_code): Likewise.
20094 (rtx_reader::read_rtx_operand): Likewise. Record a location
20095 for implicitly-expanded empty strings.
20097 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20099 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20100 Use file_location instead of separate fields.
20101 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20102 separate filename and line number.
20103 * read-md.c (ptr_loc): As above.
20104 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20105 (md_reader::fprint_md_ptr_loc): Likewise.
20106 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20107 instead of a separate filename and line number.
20108 (md_reader::read_string): Update call accordingly.
20110 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20112 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20113 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20114 leaving the choice between SFDF and P implicit.
20115 (*mov<mode>_update2): Likewise.
20116 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20117 rather than leaving the choice betweem IBM128 and GPR implicit.
20118 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20119 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20121 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20122 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20123 * config/rs6000/vsx.md
20124 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20125 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20126 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20127 and VSX_EXTRACT_I implicit.
20129 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20131 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20132 Explicitly use <MOVEP1:MODE> for the mode attribute.
20134 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20137 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20139 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20142 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20143 .machine directive.
20145 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20147 * config/i386/i386.md (@test<mode>_ccno_1):
20148 Rename from test<mode>_ccno_1.
20149 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20150 (*testqi_1_maybe_si): Remove modrm attribute.
20151 (*test<mode>_1): Ditto.
20152 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20153 gen_test_ccno_1 and gen_extend_insn.
20155 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20157 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20160 2019-07-15 Richard Biener <rguenther@suse.de>
20162 PR middle-end/91162
20163 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20164 node make sure to replace all uses with something valid.
20166 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20168 PR tree-optimization/88497
20169 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20170 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20171 function undistribute_bitref_for_vector.
20172 (undistribute_bitref_for_vector): New function.
20173 (cleanup_vinfo_map): Likewise.
20174 (sort_by_mach_mode): Likewise.
20176 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20178 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20179 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20180 and testdi_ccno_1 using SWI48 mode attribute.
20181 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20182 x86_64_szext_general_operand.
20183 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20184 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20185 instead of genera_operand mode attribute.
20187 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20189 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20190 fopen and fclose to their respective types.
20191 (DotFn.invoke): Ditto.
20193 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20195 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20196 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20197 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20198 (array_index_predicate): Remove.
20199 (analyze_function_body): Account cost for variable ofsetted array
20201 (estimate_node_size_and_time): Do not compute array index hint.
20202 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20203 (inline_read_section): Do not read array index hint.
20204 (ipa_fn_summary_write): Do not write array index hint.
20205 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20206 * ipa-cp.c (hint_time_bonus): Remove.
20207 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20208 (ipa_fnsummary): Remove array_index.
20209 * ipa-inline.c (want_inline_small_function_p): Do not use
20211 (edge_badness): Likewise.
20212 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20214 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20217 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20218 superfluous "builtin function" phrasing.
20220 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20222 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20224 (aliasing_component_refs_walk): Break out from ...
20225 (aliasing_component_refs_p): ... here.
20227 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20230 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20231 "builtin function" phrasing.
20233 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20236 * recog.h (temporary_volatile_ok): New class.
20237 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20238 volatile_ok temporarily to true using temporary_volatile_ok.
20239 * expr.c (emit_block_move_via_cpymem): Likewise.
20240 * optabs.c (maybe_legitimize_operand): Likewise.
20242 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20244 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20245 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20246 uses inside of order(concurrent) constructs.
20247 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20248 OMP_CLAUSE_ORDER is seen.
20249 * omp-low.c (struct omp_context): Add order_concurrent member.
20250 (scan_sharing_clauses): Set ctx->order_concurrent if
20251 OMP_CLAUSE_ORDER is seen.
20252 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20253 of simd order(concurrent). Diagnose constructs not allowed inside of
20254 for order(concurrent).
20255 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20256 complaining about static double setjmp (double); or class static
20257 methods or non-global namespace setjmps.
20258 (omp_runtime_api_call): New function.
20259 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20260 order(concurrent) loops.
20262 2019-07-12 Martin Sebor <msebor@redhat.com>
20264 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20265 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20266 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20267 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20269 2019-07-12 Jan Hubicka <jh@suse.cz>
20271 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20272 (indirect_refs_may_alias_p): ... here.
20273 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20274 mem refs in the access paths.
20276 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20278 PR tree-optimization/89430
20279 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20280 store elimination for local variable without address escape.
20282 2019-07-12 Jeff Law <law@redhat.com>
20284 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20285 for the ".far" section.
20287 2019-07-12 Richard Biener <rguenther@suse.de>
20289 PR tree-optimization/91145
20290 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20293 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20295 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20296 rather than this_state as the lowering context for the ELSE
20297 seq in a GIMPLE_EH_ELSE.
20299 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20301 * vector-builder.h (vector_builder::elt): Allow already-supplied
20302 elements to be read back before building is complete.
20304 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20306 PR rtl-optimization/91136
20307 * df-core.c (ACCESSING REFS): Fix typos in comment.
20308 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20309 the beginning of the block to the initial set of live registers.
20311 2019-07-12 Richard Biener <rguenther@suse.de>
20313 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20314 * fold-const.c (get_array_ctor_element_at_index): Add
20315 ctor_idx output parameter informing the caller where in
20316 the constructor the element was (not) found. Add early exit
20317 for when the ctor is sorted.
20318 * gimple-fold.c (fold_array_ctor_reference): Support constant
20319 folding across multiple array elements.
20321 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20323 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20324 doesn't have location, set the current location to the function's end.
20326 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20328 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20329 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20330 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20331 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20332 * config/aarch64/aarch64-simd.md
20333 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20334 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20335 * config/aarch64/aarch64-sve.md
20336 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20337 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20339 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20341 * doc/md.texi: Document that @ patterns can have different
20342 numbers of operands.
20343 * genemit.c (handle_overloaded_gen): Handle this case.
20344 * genopinit.c (handle_overloaded_gen): Likewise.
20345 * gensupport.c (replace_operands_with_dups): Iterate over
20346 the new rtx's format rather than the old one's.
20348 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20350 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20351 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20352 order clause entries.
20353 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20354 * tree-pretty-print.c (dump_omp_clause): Likewise.
20355 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20357 * omp-low.c (scan_sharing_clauses): Likewise.
20358 * tree-nested.c (convert_nonlocal_omp_clauses,
20359 convert_local_omp_clauses): Likewise.
20361 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20363 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20364 fallthrough target of current basic block isn't the placed
20367 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20370 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20371 (_mm512_storeu_epi64): Likewise.
20372 (_mm512_loadu_epi32): Likewise.
20373 (_mm512_storeu_epi32): Likewise.
20374 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20375 (_mm_storeu_epi64): Likewise.
20376 (_mm256_storeu_epi32): Likewise.
20377 (_mm_storeu_epi32): Likewise.
20379 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20381 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20383 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20385 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20388 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20391 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20392 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20393 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20394 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20395 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20396 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20398 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20399 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20400 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20402 (sse2_cvttpd2dq<mask_name>): Change into ...
20403 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20404 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20405 (*sse2_cvtpd2dq<mask_name>): Change into ...
20406 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20407 Add "C" constraint to const0_operand.
20408 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20409 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20413 * config/i386/i386-builtin-types.def
20414 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20415 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20416 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20417 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20418 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20419 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20420 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20421 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20422 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20423 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20424 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20425 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20426 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20427 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20428 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20429 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20430 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20431 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20432 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20433 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20434 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20435 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20436 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20437 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20438 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20439 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20440 __builtin_ia32_vpdpbusd_v4si_maskz,
20441 __builtin_ia32_vpdpbusds_v16si_mask,
20442 __builtin_ia32_vpdpbusds_v16si_maskz,
20443 __builtin_ia32_vpdpbusds_v8si_mask,
20444 __builtin_ia32_vpdpbusds_v8si_maskz,
20445 __builtin_ia32_vpdpbusds_v4si_mask,
20446 __builtin_ia32_vpdpbusds_v4si_maskz,
20447 __builtin_ia32_vpdpwssd_v16si_mask,
20448 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20449 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20450 __builtin_ia32_vpdpwssd_v4si_maskz,
20451 __builtin_ia32_vpdpwssds_v16si_mask,
20452 __builtin_ia32_vpdpwssds_v16si_maskz,
20453 __builtin_ia32_vpdpwssds_v8si_mask,
20454 __builtin_ia32_vpdpwssds_v8si_maskz,
20455 __builtin_ia32_vpdpwssds_v4si_mask,
20456 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20457 suffixed types rather than *_INT.
20458 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20459 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20460 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20461 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20462 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20463 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20465 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20467 * tree-vrp.c (intersect_ranges): If we know the intersection is
20468 empty, there is no need to conservatively add anything else to
20471 2019-07-11 Richard Biener <rguenther@suse.de>
20473 PR middle-end/91131
20474 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20475 when the object is volatile and we have not cleared it even though
20476 there are no nonzero elements.
20478 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20480 * config/rs6000/predicates.md (cint34_operand): Update
20481 SIGNED_34BIT_OFFSET_P call.
20482 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20483 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20484 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20485 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20486 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20488 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20489 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20490 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20491 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20492 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20494 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20496 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20497 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20498 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20499 (DEF_MIN_OSX_VERSION): New.
20501 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20503 * fold-const.c (fold_relational_const): Fix folding of
20504 vector-to-scalar NE_EXPRs.
20505 (test_vector_folding): Add more tests.
20507 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20510 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20511 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20512 (vec_setv2di_internal): Reexpress as...
20513 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20514 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20515 rather than gen_neon_vset_lane<mode>.
20517 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20520 * lra-constraints.c (process_alt_operands): Don't match user
20521 defined regs only if they are early clobbers.
20523 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20525 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20527 2019-07-10 Richard Biener <rguenther@suse.de>
20529 PR tree-optimization/91126
20530 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20531 native encoding offset for BYTES_BIG_ENDIAN.
20532 (vn_reference_lookup_3): Likewise.
20534 2019-07-10 Richard Biener <rguenther@suse.de>
20536 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20537 LHS whenever possible.
20539 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20541 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20542 from ...; work also on duplicated types.
20543 (nonoverlapping_component_refs_since_match): ... here
20544 (ncr_type_uid): Break out from ...
20545 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20547 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20548 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20550 2019-07-09 Martin Sebor <msebor@redhat.com>
20552 PR tree-optimization/90989
20553 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20554 optimization to just single character stores.
20556 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20558 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20559 Swap operands only once.
20561 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20563 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20564 for both call instructions.
20566 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20568 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20569 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20571 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20573 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20574 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20575 function from rs6000-logue.c back to rs6000.c.
20576 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20578 2019-07-09 Martin Sebor <msebor@redhat.com>
20581 * auto-profile.c: Change class-key of PODs to struct and others
20583 * basic-block.h: Same.
20584 * bitmap.c (bitmap_alloc): Same.
20586 * builtins.c (expand_builtin_prefetch): Same.
20587 (expand_builtin_interclass_mathfn): Same.
20588 (expand_builtin_strlen): Same.
20589 (expand_builtin_mempcpy_args): Same.
20590 (expand_cmpstr): Same.
20591 (expand_builtin___clear_cache): Same.
20592 (expand_ifn_atomic_bit_test_and): Same.
20593 (expand_builtin_thread_pointer): Same.
20594 (expand_builtin_set_thread_pointer): Same.
20595 * caller-save.c (setup_save_areas): Same.
20596 (replace_reg_with_saved_mem): Same.
20597 (insert_restore): Same.
20598 (insert_save): Same.
20599 (add_used_regs): Same.
20600 * cfg.c (get_bb_copy): Same.
20601 (set_loop_copy): Same.
20604 * cfgexpand.c (alloc_stack_frame_space): Same.
20605 (add_stack_var): Same.
20606 (add_stack_var_conflict): Same.
20607 (add_scope_conflicts_1): Same.
20608 (update_alias_info_with_stack_vars): Same.
20609 (expand_used_vars): Same.
20610 * cfghooks.c (redirect_edge_and_branch_force): Same.
20611 (delete_basic_block): Same.
20612 (split_edge): Same.
20613 (make_forwarder_block): Same.
20614 (force_nonfallthru): Same.
20615 (duplicate_block): Same.
20616 (lv_flush_pending_stmts): Same.
20617 * cfghooks.h: Same.
20618 * cfgloop.c (flow_loops_cfg_dump): Same.
20619 (flow_loop_nested_p): Same.
20620 (superloop_at_depth): Same.
20621 (get_loop_latch_edges): Same.
20622 (flow_loop_dump): Same.
20623 (flow_loops_dump): Same.
20624 (flow_loops_free): Same.
20625 (flow_loop_nodes_find): Same.
20626 (establish_preds): Same.
20627 (flow_loop_tree_node_add): Same.
20628 (flow_loop_tree_node_remove): Same.
20629 (flow_loops_find): Same.
20630 (find_subloop_latch_edge_by_profile): Same.
20631 (find_subloop_latch_edge_by_ivs): Same.
20632 (mfb_redirect_edges_in_set): Same.
20633 (form_subloop): Same.
20634 (merge_latch_edges): Same.
20635 (disambiguate_multiple_latches): Same.
20636 (disambiguate_loops_with_multiple_latches): Same.
20637 (flow_bb_inside_loop_p): Same.
20638 (glb_enum_p): Same.
20639 (get_loop_body_with_size): Same.
20640 (get_loop_body): Same.
20641 (fill_sons_in_loop): Same.
20642 (get_loop_body_in_dom_order): Same.
20643 (get_loop_body_in_custom_order): Same.
20644 (release_recorded_exits): Same.
20645 (get_loop_exit_edges): Same.
20646 (num_loop_branches): Same.
20647 (remove_bb_from_loops): Same.
20648 (find_common_loop): Same.
20649 (delete_loop): Same.
20650 (cancel_loop): Same.
20651 (verify_loop_structure): Same.
20652 (loop_preheader_edge): Same.
20653 (loop_exit_edge_p): Same.
20654 (single_exit): Same.
20655 (loop_exits_to_bb_p): Same.
20656 (loop_exits_from_bb_p): Same.
20657 (get_loop_location): Same.
20658 (record_niter_bound): Same.
20659 (get_estimated_loop_iterations_int): Same.
20660 (max_stmt_executions_int): Same.
20661 (likely_max_stmt_executions_int): Same.
20662 (get_estimated_loop_iterations): Same.
20663 (get_max_loop_iterations): Same.
20664 (get_max_loop_iterations_int): Same.
20665 (get_likely_max_loop_iterations): Same.
20666 * cfgloop.h (simple_loop_desc): Same.
20668 (loop_depth): Same.
20669 (loop_outer): Same.
20670 (loop_iterator::next): Same.
20671 (loop_outermost): Same.
20672 * cfgloopanal.c (mark_irreducible_loops): Same.
20673 (num_loop_insns): Same.
20674 (average_num_loop_insns): Same.
20675 (expected_loop_iterations_unbounded): Same.
20676 (expected_loop_iterations): Same.
20677 (mark_loop_exit_edges): Same.
20678 (single_likely_exit): Same.
20679 * cfgloopmanip.c (fix_bb_placement): Same.
20680 (fix_bb_placements): Same.
20681 (remove_path): Same.
20682 (place_new_loop): Same.
20684 (scale_loop_frequencies): Same.
20685 (scale_loop_profile): Same.
20686 (create_empty_if_region_on_edge): Same.
20687 (create_empty_loop_on_edge): Same.
20690 (fix_loop_placements): Same.
20691 (copy_loop_info): Same.
20692 (duplicate_loop): Same.
20693 (duplicate_subloops): Same.
20694 (loop_redirect_edge): Same.
20695 (can_duplicate_loop_p): Same.
20696 (duplicate_loop_to_header_edge): Same.
20697 (mfb_keep_just): Same.
20698 (has_preds_from_loop): Same.
20699 (create_preheader): Same.
20700 (create_preheaders): Same.
20701 (lv_adjust_loop_entry_edge): Same.
20702 (loop_version): Same.
20703 * cfgloopmanip.h: Same.
20705 * cgraphbuild.c: Same.
20706 * combine.c (make_extraction): Same.
20707 * config/i386/i386-features.c: Same.
20708 * config/i386/i386-features.h: Same.
20709 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20710 (ix86_emit_outlined_ms2sysv_restore): Same.
20711 (ix86_noce_conversion_profitable_p): Same.
20712 (ix86_init_cost): Same.
20713 (ix86_simd_clone_usable): Same.
20714 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20716 * coretypes.h: Same.
20717 * data-streamer-in.c (string_for_index): Change class-key of PODs
20718 to struct and others to class.
20719 (streamer_read_indexed_string): Same.
20720 (streamer_read_string): Same.
20721 (bp_unpack_indexed_string): Same.
20722 (bp_unpack_string): Same.
20723 (streamer_read_uhwi): Same.
20724 (streamer_read_hwi): Same.
20725 (streamer_read_gcov_count): Same.
20726 (streamer_read_wide_int): Same.
20727 * data-streamer.h (streamer_write_bitpack): Same.
20728 (bp_unpack_value): Same.
20729 (streamer_write_char_stream): Same.
20730 (streamer_write_hwi_in_range): Same.
20731 (streamer_write_record_start): Same.
20732 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20733 (add_cross_iteration_register_deps): Same.
20734 (build_intra_loop_deps): Same.
20735 * df-core.c (df_analyze): Same.
20736 (loop_post_order_compute): Same.
20737 (loop_inverted_post_order_compute): Same.
20738 * df-problems.c (df_rd_alloc): Same.
20739 (df_rd_simulate_one_insn): Same.
20740 (df_rd_local_compute): Same.
20741 (df_rd_init_solution): Same.
20742 (df_rd_confluence_n): Same.
20743 (df_rd_transfer_function): Same.
20744 (df_rd_free): Same.
20745 (df_rd_dump_defs_set): Same.
20746 (df_rd_top_dump): Same.
20747 (df_lr_alloc): Same.
20748 (df_lr_reset): Same.
20749 (df_lr_local_compute): Same.
20750 (df_lr_init): Same.
20751 (df_lr_confluence_n): Same.
20752 (df_lr_free): Same.
20753 (df_lr_top_dump): Same.
20754 (df_lr_verify_transfer_functions): Same.
20755 (df_live_alloc): Same.
20756 (df_live_reset): Same.
20757 (df_live_init): Same.
20758 (df_live_confluence_n): Same.
20759 (df_live_finalize): Same.
20760 (df_live_free): Same.
20761 (df_live_top_dump): Same.
20762 (df_live_verify_transfer_functions): Same.
20763 (df_mir_alloc): Same.
20764 (df_mir_reset): Same.
20765 (df_mir_init): Same.
20766 (df_mir_confluence_n): Same.
20767 (df_mir_free): Same.
20768 (df_mir_top_dump): Same.
20769 (df_word_lr_alloc): Same.
20770 (df_word_lr_reset): Same.
20771 (df_word_lr_init): Same.
20772 (df_word_lr_confluence_n): Same.
20773 (df_word_lr_free): Same.
20774 (df_word_lr_top_dump): Same.
20775 (df_md_alloc): Same.
20776 (df_md_simulate_one_insn): Same.
20777 (df_md_reset): Same.
20778 (df_md_init): Same.
20779 (df_md_free): Same.
20780 (df_md_top_dump): Same.
20781 * df-scan.c (df_insn_delete): Same.
20782 (df_insn_rescan): Same.
20783 (df_notes_rescan): Same.
20784 (df_sort_and_compress_mws): Same.
20785 (df_install_mws): Same.
20786 (df_refs_add_to_chains): Same.
20787 (df_ref_create_structure): Same.
20788 (df_ref_record): Same.
20789 (df_def_record_1): Same.
20790 (df_find_hard_reg_defs): Same.
20791 (df_uses_record): Same.
20792 (df_get_conditional_uses): Same.
20793 (df_get_call_refs): Same.
20794 (df_recompute_luids): Same.
20795 (df_get_entry_block_def_set): Same.
20796 (df_entry_block_defs_collect): Same.
20797 (df_get_exit_block_use_set): Same.
20798 (df_exit_block_uses_collect): Same.
20799 (df_mws_verify): Same.
20800 (df_bb_verify): Same.
20801 * df.h (df_scan_get_bb_info): Same.
20802 * doc/tm.texi: Same.
20803 * dse.c (record_store): Same.
20804 * dumpfile.h: Same.
20805 * emit-rtl.c (const_fixed_hasher::equal): Same.
20806 (set_mem_attributes_minus_bitpos): Same.
20807 (change_address): Same.
20808 (adjust_address_1): Same.
20809 (offset_address): Same.
20810 * emit-rtl.h: Same.
20811 * except.c (dw2_build_landing_pads): Same.
20812 (sjlj_emit_dispatch_table): Same.
20813 * explow.c (allocate_dynamic_stack_space): Same.
20814 (emit_stack_probe): Same.
20815 (probe_stack_range): Same.
20816 * expmed.c (store_bit_field_using_insv): Same.
20817 (store_bit_field_1): Same.
20818 (store_integral_bit_field): Same.
20819 (extract_bit_field_using_extv): Same.
20820 (extract_bit_field_1): Same.
20821 (emit_cstore): Same.
20822 * expr.c (emit_block_move_via_cpymem): Same.
20823 (expand_cmpstrn_or_cmpmem): Same.
20824 (set_storage_via_setmem): Same.
20825 (emit_single_push_insn_1): Same.
20826 (expand_assignment): Same.
20827 (store_constructor): Same.
20828 (expand_expr_real_2): Same.
20829 (expand_expr_real_1): Same.
20830 (try_casesi): Same.
20832 * function.c (try_fit_stack_local): Same.
20833 (assign_stack_local_1): Same.
20834 (assign_stack_local): Same.
20835 (cut_slot_from_list): Same.
20836 (insert_slot_to_list): Same.
20837 (max_slot_level): Same.
20838 (move_slot_to_level): Same.
20839 (temp_address_hasher::equal): Same.
20840 (remove_unused_temp_slot_addresses): Same.
20841 (assign_temp): Same.
20842 (combine_temp_slots): Same.
20843 (update_temp_slot_address): Same.
20844 (preserve_temp_slots): Same.
20845 * function.h: Same.
20847 * gcc-rich-location.h: Same.
20849 * genattrtab.c (check_attr_test): Same.
20850 (check_attr_value): Same.
20851 (convert_set_attr_alternative): Same.
20852 (convert_set_attr): Same.
20853 (check_defs): Same.
20854 (copy_boolean): Same.
20855 (get_attr_value): Same.
20856 (expand_delays): Same.
20857 (make_length_attrs): Same.
20859 (make_alternative_compare): Same.
20860 (simplify_test_exp): Same.
20861 (tests_attr_p): Same.
20862 (get_attr_order): Same.
20863 (clear_struct_flag): Same.
20865 (compares_alternatives_p): Same.
20868 (find_attrs_to_cache): Same.
20869 (write_test_expr): Same.
20870 (walk_attr_value): Same.
20871 (write_attr_get): Same.
20872 (eliminate_known_true): Same.
20873 (write_insn_cases): Same.
20874 (write_attr_case): Same.
20875 (write_attr_valueq): Same.
20876 (write_attr_value): Same.
20877 (write_dummy_eligible_delay): Same.
20878 (next_comma_elt): Same.
20880 (make_internal_attr): Same.
20881 (copy_rtx_unchanging): Same.
20882 (gen_insn_reserv): Same.
20883 (check_tune_attr): Same.
20884 (make_automaton_attrs): Same.
20885 (handle_arg): Same.
20886 * genextract.c (gen_insn): Same.
20887 (VEC_char_to_string): Same.
20888 * genmatch.c (print_operand): Same.
20890 (parser::parse_operation): Same.
20891 (parser::parse_capture): Same.
20892 (parser::parse_c_expr): Same.
20893 (parser::parse_simplify): Same.
20895 * genoutput.c (output_operand_data): Same.
20896 (output_get_insn_name): Same.
20897 (compare_operands): Same.
20898 (place_operands): Same.
20899 (process_template): Same.
20900 (validate_insn_alternatives): Same.
20901 (validate_insn_operands): Same.
20902 (gen_expand): Same.
20903 (note_constraint): Same.
20904 * genpreds.c (write_one_predicate_function): Same.
20905 (add_constraint): Same.
20906 (process_define_register_constraint): Same.
20907 (write_lookup_constraint_1): Same.
20908 (write_lookup_constraint_array): Same.
20909 (write_insn_constraint_len): Same.
20910 (write_reg_class_for_constraint_1): Same.
20911 (write_constraint_satisfied_p_array): Same.
20912 * genrecog.c (optimize_subroutine_group): Same.
20913 * gensupport.c (process_define_predicate): Same.
20914 (queue_pattern): Same.
20915 (remove_from_queue): Same.
20916 (process_rtx): Same.
20917 (is_predicable): Same.
20918 (change_subst_attribute): Same.
20919 (subst_pattern_match): Same.
20920 (alter_constraints): Same.
20921 (alter_attrs_for_insn): Same.
20922 (shift_output_template): Same.
20923 (alter_output_for_subst_insn): Same.
20924 (process_one_cond_exec): Same.
20926 (process_define_cond_exec): Same.
20927 (mnemonic_htab_callback): Same.
20928 (gen_mnemonic_attr): Same.
20929 (read_md_rtx): Same.
20930 * ggc-page.c: Same.
20931 * gimple-loop-interchange.cc (dump_reduction): Same.
20932 (dump_induction): Same.
20933 (loop_cand::~loop_cand): Same.
20934 (free_data_refs_with_aux): Same.
20935 (tree_loop_interchange::interchange_loops): Same.
20936 (tree_loop_interchange::map_inductions_to_loop): Same.
20937 (tree_loop_interchange::move_code_to_inner_loop): Same.
20938 (compute_access_stride): Same.
20939 (compute_access_strides): Same.
20940 (proper_loop_form_for_interchange): Same.
20941 (tree_loop_interchange_compute_ddrs): Same.
20942 (prune_datarefs_not_in_loop): Same.
20943 (prepare_data_references): Same.
20944 (pass_linterchange::execute): Same.
20945 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20946 (unroll_jam_possible_p): Same.
20947 (fuse_loops): Same.
20948 (adjust_unroll_factor): Same.
20949 (tree_loop_unroll_and_jam): Same.
20950 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20951 (loop_versioning::expensive_stmt_p): Same.
20952 (loop_versioning::version_for_unity): Same.
20953 (loop_versioning::dump_inner_likelihood): Same.
20954 (loop_versioning::find_per_loop_multiplication): Same.
20955 (loop_versioning::analyze_term_using_scevs): Same.
20956 (loop_versioning::record_address_fragment): Same.
20957 (loop_versioning::analyze_expr): Same.
20958 (loop_versioning::analyze_blocks): Same.
20959 (loop_versioning::prune_conditions): Same.
20960 (loop_versioning::merge_loop_info): Same.
20961 (loop_versioning::add_loop_to_queue): Same.
20962 (loop_versioning::decide_whether_loop_is_versionable): Same.
20963 (loop_versioning::make_versioning_decisions): Same.
20964 (loop_versioning::implement_versioning_decisions): Same.
20965 * gimple-ssa-evrp-analyze.c
20966 (evrp_range_analyzer::record_ranges_from_phis): Same.
20967 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20968 (count_multiple_uses): Same.
20969 (split_group): Same.
20970 (imm_store_chain_info::output_merged_store): Same.
20971 (pass_store_merging::process_store): Same.
20972 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20973 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20975 (alloca_call_type): Same.
20976 (pass_walloca::execute): Same.
20977 * gimple-streamer-in.c (input_phi): Same.
20978 (input_gimple_stmt): Same.
20979 * gimple-streamer.h: Same.
20980 * godump.c (go_force_record_alignment): Same.
20981 (go_format_type): Same.
20982 (go_output_type): Same.
20983 (go_output_fndecl): Same.
20984 (go_output_typedef): Same.
20985 (keyword_hash_init): Same.
20986 (find_dummy_types): Same.
20987 * graph.c (draw_cfg_nodes_no_loops): Same.
20988 (draw_cfg_nodes_for_loop): Same.
20989 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20990 * hsa-brig.c: Same.
20991 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20992 * hsa-dump.c (dump_hsa_cfun): Same.
20993 * hsa-gen.c (gen_function_def_parameters): Same.
20994 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20995 * input.c (dump_line_table_statistics): Same.
20996 (test_lexer): Same.
20998 * internal-fn.c (get_multi_vector_move): Same.
20999 (expand_load_lanes_optab_fn): Same.
21000 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21001 (expand_GOMP_SIMT_EXIT): Same.
21002 (expand_GOMP_SIMT_LAST_LANE): Same.
21003 (expand_GOMP_SIMT_ORDERED_PRED): Same.
21004 (expand_GOMP_SIMT_VOTE_ANY): Same.
21005 (expand_GOMP_SIMT_XCHG_BFLY): Same.
21006 (expand_GOMP_SIMT_XCHG_IDX): Same.
21007 (expand_addsub_overflow): Same.
21008 (expand_neg_overflow): Same.
21009 (expand_mul_overflow): Same.
21010 (expand_call_mem_ref): Same.
21011 (expand_mask_load_optab_fn): Same.
21012 (expand_scatter_store_optab_fn): Same.
21013 (expand_gather_load_optab_fn): Same.
21014 * ipa-cp.c (ipa_get_parm_lattices): Same.
21015 (print_all_lattices): Same.
21016 (ignore_edge_p): Same.
21017 (build_toporder_info): Same.
21018 (free_toporder_info): Same.
21019 (push_node_to_stack): Same.
21020 (ipcp_lattice<valtype>::set_contains_variable): Same.
21021 (set_agg_lats_to_bottom): Same.
21022 (ipcp_bits_lattice::meet_with): Same.
21023 (set_single_call_flag): Same.
21024 (initialize_node_lattices): Same.
21025 (ipa_get_jf_ancestor_result): Same.
21026 (ipcp_verify_propagated_values): Same.
21027 (propagate_scalar_across_jump_function): Same.
21028 (propagate_context_across_jump_function): Same.
21029 (propagate_bits_across_jump_function): Same.
21030 (ipa_vr_operation_and_type_effects): Same.
21031 (propagate_vr_across_jump_function): Same.
21032 (set_check_aggs_by_ref): Same.
21033 (set_chain_of_aglats_contains_variable): Same.
21034 (merge_aggregate_lattices): Same.
21035 (agg_pass_through_permissible_p): Same.
21036 (propagate_aggs_across_jump_function): Same.
21037 (call_passes_through_thunk_p): Same.
21038 (propagate_constants_across_call): Same.
21039 (devirtualization_time_bonus): Same.
21040 (good_cloning_opportunity_p): Same.
21041 (context_independent_aggregate_values): Same.
21042 (gather_context_independent_values): Same.
21043 (perform_estimation_of_a_value): Same.
21044 (estimate_local_effects): Same.
21045 (value_topo_info<valtype>::add_val): Same.
21046 (add_all_node_vals_to_toposort): Same.
21047 (value_topo_info<valtype>::propagate_effects): Same.
21048 (ipcp_propagate_stage): Same.
21049 (ipcp_discover_new_direct_edges): Same.
21050 (same_node_or_its_all_contexts_clone_p): Same.
21051 (cgraph_edge_brings_value_p): Same.
21052 (gather_edges_for_value): Same.
21053 (create_specialized_node): Same.
21054 (find_more_scalar_values_for_callers_subset): Same.
21055 (find_more_contexts_for_caller_subset): Same.
21056 (copy_plats_to_inter): Same.
21057 (intersect_aggregates_with_edge): Same.
21058 (find_aggregate_values_for_callers_subset): Same.
21059 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21060 (decide_about_value): Same.
21061 (decide_whether_version_node): Same.
21062 (spread_undeadness): Same.
21063 (identify_dead_nodes): Same.
21064 (ipcp_store_vr_results): Same.
21065 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21066 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21067 (redirect_to_unreachable): Same.
21068 (edge_set_predicate): Same.
21069 (evaluate_conditions_for_known_args): Same.
21070 (evaluate_properties_for_edge): Same.
21071 (ipa_fn_summary_t::duplicate): Same.
21072 (ipa_call_summary_t::duplicate): Same.
21073 (dump_ipa_call_summary): Same.
21074 (ipa_dump_fn_summary): Same.
21075 (eliminated_by_inlining_prob): Same.
21076 (set_cond_stmt_execution_predicate): Same.
21077 (set_switch_stmt_execution_predicate): Same.
21078 (compute_bb_predicates): Same.
21079 (will_be_nonconstant_expr_predicate): Same.
21080 (phi_result_unknown_predicate): Same.
21081 (analyze_function_body): Same.
21082 (compute_fn_summary): Same.
21083 (estimate_edge_devirt_benefit): Same.
21084 (estimate_edge_size_and_time): Same.
21085 (estimate_calls_size_and_time): Same.
21086 (estimate_node_size_and_time): Same.
21087 (remap_edge_change_prob): Same.
21088 (remap_edge_summaries): Same.
21089 (ipa_merge_fn_summary_after_inlining): Same.
21090 (ipa_fn_summary_generate): Same.
21091 (inline_read_section): Same.
21092 (ipa_fn_summary_read): Same.
21093 (ipa_fn_summary_write): Same.
21094 * ipa-fnsummary.h: Same.
21095 * ipa-hsa.c (ipa_hsa_read_section): Same.
21096 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21097 * ipa-icf.c (sem_function::param_used_p): Same.
21098 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21099 * ipa-inline.c (edge_badness): Same.
21100 (inline_small_functions): Same.
21101 * ipa-polymorphic-call.c
21102 (ipa_polymorphic_call_context::stream_out): Same.
21103 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21104 (predicate::remap_after_inlining): Same.
21105 (predicate::stream_out): Same.
21106 * ipa-predicate.h: Same.
21107 * ipa-profile.c (ipa_profile_read_summary): Same.
21108 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21109 (count_formal_params): Same.
21110 (ipa_dump_param): Same.
21111 (ipa_alloc_node_params): Same.
21112 (ipa_print_node_jump_functions_for_edge): Same.
21113 (ipa_print_node_jump_functions): Same.
21114 (ipa_load_from_parm_agg): Same.
21115 (get_ancestor_addr_info): Same.
21116 (ipa_compute_jump_functions_for_edge): Same.
21117 (ipa_analyze_virtual_call_uses): Same.
21118 (ipa_analyze_stmt_uses): Same.
21119 (ipa_analyze_params_uses_in_bb): Same.
21120 (update_jump_functions_after_inlining): Same.
21121 (try_decrement_rdesc_refcount): Same.
21122 (ipa_impossible_devirt_target): Same.
21123 (update_indirect_edges_after_inlining): Same.
21124 (combine_controlled_uses_counters): Same.
21125 (ipa_edge_args_sum_t::duplicate): Same.
21126 (ipa_write_jump_function): Same.
21127 (ipa_write_indirect_edge_info): Same.
21128 (ipa_write_node_info): Same.
21129 (ipa_read_edge_info): Same.
21130 (ipa_prop_read_section): Same.
21131 (read_replacements_section): Same.
21132 * ipa-prop.h (ipa_get_param_count): Same.
21133 (ipa_get_param): Same.
21134 (ipa_get_type): Same.
21135 (ipa_get_param_move_cost): Same.
21136 (ipa_set_param_used): Same.
21137 (ipa_get_controlled_uses): Same.
21138 (ipa_set_controlled_uses): Same.
21139 (ipa_get_cs_argument_count): Same.
21140 * ipa-pure-const.c (analyze_function): Same.
21141 (pure_const_read_summary): Same.
21143 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21144 * ipa-split.c (test_nonssa_use): Same.
21145 (dump_split_point): Same.
21146 (dominated_by_forbidden): Same.
21147 (split_part_set_ssa_name_p): Same.
21148 (find_split_points): Same.
21149 * ira-build.c (finish_loop_tree_nodes): Same.
21150 (low_pressure_loop_node_p): Same.
21151 * ira-color.c (ira_reuse_stack_slot): Same.
21153 * ira.c (setup_reg_equiv): Same.
21154 (print_insn_chain): Same.
21156 * loop-doloop.c (doloop_condition_get): Same.
21158 (record_reg_sets): Same.
21159 (doloop_optimize): Same.
21160 * loop-init.c (loop_optimizer_init): Same.
21161 (fix_loop_structure): Same.
21162 * loop-invariant.c (merge_identical_invariants): Same.
21163 (compute_always_reached): Same.
21164 (find_exits): Same.
21165 (may_assign_reg_p): Same.
21166 (find_invariants_bb): Same.
21167 (find_invariants_body): Same.
21168 (replace_uses): Same.
21169 (can_move_invariant_reg): Same.
21170 (free_inv_motion_data): Same.
21171 (move_single_loop_invariants): Same.
21172 (change_pressure): Same.
21173 (mark_ref_regs): Same.
21174 (calculate_loop_reg_pressure): Same.
21175 * loop-iv.c (biv_entry_hasher::equal): Same.
21176 (iv_extend_to_rtx_code): Same.
21177 (check_iv_ref_table_size): Same.
21178 (clear_iv_info): Same.
21179 (latch_dominating_def): Same.
21180 (iv_get_reaching_def): Same.
21181 (iv_constant): Same.
21187 (get_biv_step): Same.
21189 (analyzed_for_bivness_p): Same.
21190 (record_biv): Same.
21191 (iv_analyze_biv): Same.
21192 (iv_analyze_expr): Same.
21193 (iv_analyze_def): Same.
21194 (iv_analyze_op): Same.
21195 (iv_analyze): Same.
21196 (iv_analyze_result): Same.
21198 (eliminate_implied_conditions): Same.
21199 (simplify_using_initial_values): Same.
21200 (shorten_into_mode): Same.
21201 (canonicalize_iv_subregs): Same.
21202 (determine_max_iter): Same.
21203 (check_simple_exit): Same.
21204 (find_simple_exit): Same.
21205 (get_simple_loop_desc): Same.
21206 * loop-unroll.c (report_unroll): Same.
21207 (decide_unrolling): Same.
21208 (unroll_loops): Same.
21209 (loop_exit_at_end_p): Same.
21210 (decide_unroll_constant_iterations): Same.
21211 (unroll_loop_constant_iterations): Same.
21212 (compare_and_jump_seq): Same.
21213 (unroll_loop_runtime_iterations): Same.
21214 (decide_unroll_stupid): Same.
21215 (unroll_loop_stupid): Same.
21216 (referenced_in_one_insn_in_loop_p): Same.
21217 (reset_debug_uses_in_loop): Same.
21218 (analyze_iv_to_split_insn): Same.
21219 * lra-eliminations.c (lra_debug_elim_table): Same.
21220 (setup_can_eliminate): Same.
21222 (lra_get_elimination_hard_regno): Same.
21223 (lra_eliminate_regs_1): Same.
21224 (eliminate_regs_in_insn): Same.
21225 (update_reg_eliminate): Same.
21226 (init_elimination): Same.
21227 (lra_eliminate): Same.
21229 * lra-lives.c (initiate_live_solver): Same.
21230 * lra-remat.c (create_remat_bb_data): Same.
21231 * lra-spills.c (lra_spill): Same.
21232 * lra.c (lra_set_insn_recog_data): Same.
21233 (lra_set_used_insn_alternative_by_uid): Same.
21234 (init_reg_info): Same.
21235 (expand_reg_info): Same.
21236 * lto-cgraph.c (output_symtab): Same.
21237 (read_identifier): Same.
21238 (get_alias_symbol): Same.
21239 (input_node): Same.
21240 (input_varpool_node): Same.
21242 (input_edge): Same.
21243 (input_cgraph_1): Same.
21244 (input_refs): Same.
21245 (input_symtab): Same.
21246 (input_offload_tables): Same.
21247 (output_cgraph_opt_summary): Same.
21248 (input_edge_opt_summary): Same.
21249 (input_cgraph_opt_section): Same.
21250 * lto-section-in.c (lto_free_raw_section_data): Same.
21251 (lto_create_simple_input_block): Same.
21252 (lto_free_function_in_decl_state_for_node): Same.
21253 * lto-streamer-in.c (lto_tag_check_set): Same.
21254 (lto_location_cache::revert_location_cache): Same.
21255 (lto_location_cache::input_location): Same.
21256 (lto_input_location): Same.
21257 (stream_input_location_now): Same.
21258 (lto_input_tree_ref): Same.
21259 (lto_input_eh_catch_list): Same.
21260 (input_eh_region): Same.
21261 (lto_init_eh): Same.
21262 (make_new_block): Same.
21264 (fixup_call_stmt_edges): Same.
21265 (input_struct_function_base): Same.
21266 (input_function): Same.
21267 (lto_read_body_or_constructor): Same.
21268 (lto_read_tree_1): Same.
21269 (lto_read_tree): Same.
21270 (lto_input_scc): Same.
21271 (lto_input_tree_1): Same.
21272 (lto_input_toplevel_asms): Same.
21273 (lto_input_mode_table): Same.
21274 (lto_reader_init): Same.
21275 (lto_data_in_create): Same.
21276 * lto-streamer-out.c (output_cfg): Same.
21277 * lto-streamer.h: Same.
21278 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21279 (generate_prolog_epilog): Same.
21280 (mark_loop_unsched): Same.
21281 (dump_insn_location): Same.
21282 (loop_canon_p): Same.
21283 (sms_schedule): Same.
21284 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21285 (expand_omp_for_generic): Same.
21286 (expand_omp_for_static_nochunk): Same.
21287 (expand_omp_for_static_chunk): Same.
21288 (expand_omp_simd): Same.
21289 (expand_omp_taskloop_for_inner): Same.
21290 (expand_oacc_for): Same.
21291 (expand_omp_atomic_pipeline): Same.
21292 (mark_loops_in_oacc_kernels_region): Same.
21293 * omp-offload.c (oacc_xform_loop): Same.
21294 * omp-simd-clone.c (simd_clone_adjust): Same.
21295 * optabs-query.c (get_traditional_extraction_insn): Same.
21296 * optabs.c (expand_vector_broadcast): Same.
21297 (expand_binop_directly): Same.
21298 (expand_twoval_unop): Same.
21299 (expand_twoval_binop): Same.
21300 (expand_unop_direct): Same.
21301 (emit_indirect_jump): Same.
21302 (emit_conditional_move): Same.
21303 (emit_conditional_neg_or_complement): Same.
21304 (emit_conditional_add): Same.
21305 (vector_compare_rtx): Same.
21306 (expand_vec_perm_1): Same.
21307 (expand_vec_perm_const): Same.
21308 (expand_vec_cond_expr): Same.
21309 (expand_vec_series_expr): Same.
21310 (maybe_emit_atomic_exchange): Same.
21311 (maybe_emit_sync_lock_test_and_set): Same.
21312 (expand_atomic_compare_and_swap): Same.
21313 (expand_atomic_load): Same.
21314 (expand_atomic_store): Same.
21315 (maybe_emit_op): Same.
21316 (valid_multiword_target_p): Same.
21317 (create_integer_operand): Same.
21318 (maybe_legitimize_operand_same_code): Same.
21319 (maybe_legitimize_operand): Same.
21320 (create_convert_operand_from_type): Same.
21321 (can_reuse_operands_p): Same.
21322 (maybe_legitimize_operands): Same.
21323 (maybe_gen_insn): Same.
21324 (maybe_expand_insn): Same.
21325 (maybe_expand_jump_insn): Same.
21326 (expand_insn): Same.
21327 * optabs.h (create_expand_operand): Same.
21328 (create_fixed_operand): Same.
21329 (create_output_operand): Same.
21330 (create_input_operand): Same.
21331 (create_convert_operand_to): Same.
21332 (create_convert_operand_from): Same.
21334 * poly-int.h: Same.
21335 * predict.c (optimize_insn_for_speed_p): Same.
21336 (optimize_loop_for_size_p): Same.
21337 (optimize_loop_for_speed_p): Same.
21338 (optimize_loop_nest_for_speed_p): Same.
21339 (get_base_value): Same.
21340 (predicted_by_loop_heuristics_p): Same.
21341 (predict_extra_loop_exits): Same.
21342 (predict_loops): Same.
21343 (predict_paths_for_bb): Same.
21344 (predict_paths_leading_to): Same.
21345 (propagate_freq): Same.
21346 (pass_profile::execute): Same.
21348 * profile-count.c (profile_count::differs_from_p): Same.
21349 (profile_probability::differs_lot_from_p): Same.
21350 * profile-count.h: Same.
21351 * profile.c (branch_prob): Same.
21352 * regrename.c (free_chain_data): Same.
21353 (mark_conflict): Same.
21354 (create_new_chain): Same.
21355 (merge_overlapping_regs): Same.
21356 (init_rename_info): Same.
21357 (merge_chains): Same.
21358 (regrename_analyze): Same.
21359 (regrename_do_replace): Same.
21360 (scan_rtx_reg): Same.
21361 (record_out_operands): Same.
21362 (build_def_use): Same.
21363 * regrename.h: Same.
21365 * reload1.c (init_reload): Same.
21366 (maybe_fix_stack_asms): Same.
21367 (copy_reloads): Same.
21368 (count_pseudo): Same.
21369 (count_spilled_pseudo): Same.
21371 (find_reload_regs): Same.
21372 (select_reload_regs): Same.
21373 (spill_hard_reg): Same.
21374 (fixup_eh_region_note): Same.
21375 (set_reload_reg): Same.
21376 (allocate_reload_reg): Same.
21377 (compute_reload_subreg_offset): Same.
21378 (reload_adjust_reg_for_icode): Same.
21379 (emit_input_reload_insns): Same.
21380 (emit_output_reload_insns): Same.
21381 (do_input_reload): Same.
21382 (inherit_piecemeal_p): Same.
21384 * sanopt.c (maybe_get_dominating_check): Same.
21385 (maybe_optimize_ubsan_ptr_ifn): Same.
21386 (can_remove_asan_check): Same.
21387 (maybe_optimize_asan_check_ifn): Same.
21388 (sanopt_optimize_walker): Same.
21389 * sched-deps.c (add_dependence_list): Same.
21390 (chain_to_prev_insn): Same.
21391 (add_insn_mem_dependence): Same.
21392 (create_insn_reg_set): Same.
21393 (maybe_extend_reg_info_p): Same.
21394 (sched_analyze_reg): Same.
21395 (sched_analyze_1): Same.
21396 (get_implicit_reg_pending_clobbers): Same.
21397 (chain_to_prev_insn_p): Same.
21398 (deps_analyze_insn): Same.
21399 (deps_start_bb): Same.
21400 (sched_free_deps): Same.
21402 (init_deps_reg_last): Same.
21404 * sched-ebb.c: Same.
21405 * sched-int.h: Same.
21406 * sched-rgn.c (add_branch_dependences): Same.
21407 (concat_insn_mem_list): Same.
21409 (sched_rgn_compute_dependencies): Same.
21410 * sel-sched-ir.c (reset_target_context): Same.
21411 (copy_deps_context): Same.
21412 (init_id_from_df): Same.
21413 (has_dependence_p): Same.
21414 (change_loops_latches): Same.
21415 (bb_top_order_comparator): Same.
21416 (make_region_from_loop_preheader): Same.
21417 (sel_init_pipelining): Same.
21418 (get_loop_nest_for_rgn): Same.
21419 (make_regions_from_the_rest): Same.
21420 (sel_is_loop_preheader_p): Same.
21421 * sel-sched-ir.h (inner_loop_header_p): Same.
21422 (get_all_loop_exits): Same.
21423 * selftest.h: Same.
21424 * sese.c (sese_build_liveouts): Same.
21425 (sese_insert_phis_for_liveouts): Same.
21426 * sese.h (defined_in_sese_p): Same.
21427 * sreal.c (sreal::stream_out): Same.
21429 * streamer-hooks.h: Same.
21430 * target-globals.c (save_target_globals): Same.
21431 * target-globals.h: Same.
21432 * target.def: Same.
21434 * targhooks.c (default_has_ifunc_p): Same.
21435 (default_empty_mask_is_expensive): Same.
21436 (default_init_cost): Same.
21437 * targhooks.h: Same.
21439 * tree-affine.c (aff_combination_mult): Same.
21440 (aff_combination_expand): Same.
21441 (aff_combination_constant_multiple_p): Same.
21442 * tree-affine.h: Same.
21443 * tree-cfg.c (build_gimple_cfg): Same.
21444 (replace_loop_annotate_in_block): Same.
21445 (replace_uses_by): Same.
21447 (dump_cfg_stats): Same.
21448 (gimple_duplicate_sese_region): Same.
21449 (gimple_duplicate_sese_tail): Same.
21450 (move_block_to_fn): Same.
21451 (replace_block_vars_by_duplicates): Same.
21452 (move_sese_region_to_fn): Same.
21453 (print_loops_bb): Same.
21454 (print_loop): Same.
21455 (print_loops): Same.
21457 (debug_loops): Same.
21458 * tree-cfg.h: Same.
21459 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21460 (chrec_fold_multiply_poly_poly): Same.
21461 (chrec_evaluate): Same.
21462 (chrec_component_in_loop_num): Same.
21463 (reset_evolution_in_loop): Same.
21464 (is_multivariate_chrec): Same.
21465 (chrec_contains_symbols): Same.
21466 (nb_vars_in_chrec): Same.
21467 (chrec_convert_1): Same.
21468 (chrec_convert_aggressive): Same.
21469 * tree-chrec.h: Same.
21470 * tree-core.h: Same.
21471 * tree-data-ref.c (dump_data_dependence_relation): Same.
21472 (canonicalize_base_object_address): Same.
21473 (data_ref_compare_tree): Same.
21474 (prune_runtime_alias_test_list): Same.
21475 (get_segment_min_max): Same.
21476 (create_intersect_range_checks): Same.
21477 (conflict_fn_no_dependence): Same.
21478 (object_address_invariant_in_loop_p): Same.
21479 (analyze_ziv_subscript): Same.
21480 (analyze_siv_subscript_cst_affine): Same.
21481 (analyze_miv_subscript): Same.
21482 (analyze_overlapping_iterations): Same.
21483 (build_classic_dist_vector_1): Same.
21484 (add_other_self_distances): Same.
21485 (same_access_functions): Same.
21486 (build_classic_dir_vector): Same.
21487 (subscript_dependence_tester_1): Same.
21488 (subscript_dependence_tester): Same.
21489 (access_functions_are_affine_or_constant_p): Same.
21490 (get_references_in_stmt): Same.
21491 (loop_nest_has_data_refs): Same.
21492 (graphite_find_data_references_in_stmt): Same.
21493 (find_data_references_in_bb): Same.
21494 (get_base_for_alignment): Same.
21495 (find_loop_nest_1): Same.
21496 (find_loop_nest): Same.
21497 * tree-data-ref.h (dr_alignment): Same.
21498 (ddr_dependence_level): Same.
21499 * tree-if-conv.c (fold_build_cond_expr): Same.
21500 (add_to_predicate_list): Same.
21501 (add_to_dst_predicate_list): Same.
21502 (phi_convertible_by_degenerating_args): Same.
21503 (idx_within_array_bound): Same.
21504 (all_preds_critical_p): Same.
21505 (pred_blocks_visited_p): Same.
21506 (predicate_bbs): Same.
21507 (build_region): Same.
21508 (if_convertible_loop_p_1): Same.
21509 (is_cond_scalar_reduction): Same.
21510 (predicate_scalar_phi): Same.
21511 (remove_conditions_and_labels): Same.
21512 (combine_blocks): Same.
21513 (version_loop_for_if_conversion): Same.
21514 (versionable_outer_loop_p): Same.
21515 (ifcvt_local_dce): Same.
21516 (tree_if_conversion): Same.
21517 (pass_if_conversion::gate): Same.
21518 * tree-if-conv.h: Same.
21519 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21520 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21522 (stmt_has_scalar_dependences_outside_loop): Same.
21523 (copy_loop_before): Same.
21524 (create_bb_after_loop): Same.
21525 (const_with_all_bytes_same): Same.
21526 (generate_memset_builtin): Same.
21527 (generate_memcpy_builtin): Same.
21528 (destroy_loop): Same.
21529 (build_rdg_partition_for_vertex): Same.
21530 (compute_access_range): Same.
21531 (data_ref_segment_size): Same.
21532 (latch_dominated_by_data_ref): Same.
21533 (compute_alias_check_pairs): Same.
21534 (fuse_memset_builtins): Same.
21535 (finalize_partitions): Same.
21536 (find_seed_stmts_for_distribution): Same.
21537 (prepare_perfect_loop_nest): Same.
21538 * tree-parloops.c (lambda_transform_legal_p): Same.
21539 (loop_parallel_p): Same.
21540 (reduc_stmt_res): Same.
21541 (add_field_for_name): Same.
21542 (create_call_for_reduction_1): Same.
21543 (replace_uses_in_bb_by): Same.
21544 (transform_to_exit_first_loop_alt): Same.
21545 (try_transform_to_exit_first_loop_alt): Same.
21546 (transform_to_exit_first_loop): Same.
21548 (gen_parallel_loop): Same.
21549 (gather_scalar_reductions): Same.
21550 (get_omp_data_i_param): Same.
21551 (try_create_reduction_list): Same.
21552 (oacc_entry_exit_single_gang): Same.
21553 (parallelize_loops): Same.
21554 * tree-pass.h: Same.
21555 * tree-predcom.c (determine_offset): Same.
21556 (last_always_executed_block): Same.
21557 (split_data_refs_to_components): Same.
21558 (suitable_component_p): Same.
21559 (valid_initializer_p): Same.
21560 (find_looparound_phi): Same.
21561 (insert_looparound_copy): Same.
21562 (add_looparound_copies): Same.
21563 (determine_roots_comp): Same.
21564 (predcom_tmp_var): Same.
21565 (initialize_root_vars): Same.
21566 (initialize_root_vars_store_elim_1): Same.
21567 (initialize_root_vars_store_elim_2): Same.
21568 (finalize_eliminated_stores): Same.
21569 (initialize_root_vars_lm): Same.
21570 (remove_stmt): Same.
21571 (determine_unroll_factor): Same.
21572 (execute_pred_commoning_cbck): Same.
21573 (base_names_in_chain_on): Same.
21574 (combine_chains): Same.
21575 (pcom_stmt_dominates_stmt_p): Same.
21576 (try_combine_chains): Same.
21577 (prepare_initializers_chain_store_elim): Same.
21578 (prepare_initializers_chain): Same.
21579 (prepare_initializers): Same.
21580 (prepare_finalizers_chain): Same.
21581 (prepare_finalizers): Same.
21582 (insert_init_seqs): Same.
21583 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21584 (compute_overall_effect_of_inner_loop): Same.
21585 (add_to_evolution_1): Same.
21586 (add_to_evolution): Same.
21587 (follow_ssa_edge_binary): Same.
21588 (follow_ssa_edge_expr): Same.
21589 (backedge_phi_arg_p): Same.
21590 (follow_ssa_edge_in_condition_phi_branch): Same.
21591 (follow_ssa_edge_in_condition_phi): Same.
21592 (follow_ssa_edge_inner_loop_phi): Same.
21593 (follow_ssa_edge): Same.
21594 (analyze_evolution_in_loop): Same.
21595 (analyze_initial_condition): Same.
21596 (interpret_loop_phi): Same.
21597 (interpret_condition_phi): Same.
21598 (interpret_rhs_expr): Same.
21599 (interpret_expr): Same.
21600 (interpret_gimple_assign): Same.
21601 (analyze_scalar_evolution_1): Same.
21602 (analyze_scalar_evolution): Same.
21603 (analyze_scalar_evolution_for_address_of): Same.
21604 (get_instantiated_value_entry): Same.
21605 (loop_closed_phi_def): Same.
21606 (instantiate_scev_name): Same.
21607 (instantiate_scev_poly): Same.
21608 (instantiate_scev_binary): Same.
21609 (instantiate_scev_convert): Same.
21610 (instantiate_scev_not): Same.
21611 (instantiate_scev_r): Same.
21612 (instantiate_scev): Same.
21613 (resolve_mixers): Same.
21614 (initialize_scalar_evolutions_analyzer): Same.
21615 (scev_reset_htab): Same.
21616 (scev_reset): Same.
21617 (derive_simple_iv_with_niters): Same.
21618 (simple_iv_with_niters): Same.
21619 (expression_expensive_p): Same.
21620 (final_value_replacement_loop): Same.
21621 * tree-scalar-evolution.h (block_before_loop): Same.
21622 * tree-ssa-address.h: Same.
21623 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21624 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21625 (record_edge_info): Same.
21626 * tree-ssa-live.c (var_map_base_fini): Same.
21627 (remove_unused_locals): Same.
21628 * tree-ssa-live.h: Same.
21629 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21630 (pass_ch_vect::execute): Same.
21631 (pass_ch::process_loop_p): Same.
21632 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21633 (movement_possibility): Same.
21634 (outermost_invariant_loop): Same.
21636 (determine_max_movement): Same.
21637 (invariantness_dom_walker::before_dom_children): Same.
21638 (move_computations): Same.
21639 (may_move_till): Same.
21640 (force_move_till_op): Same.
21641 (force_move_till): Same.
21642 (memref_free): Same.
21643 (record_mem_ref_loc): Same.
21644 (set_ref_stored_in_loop): Same.
21645 (mark_ref_stored): Same.
21646 (sort_bbs_in_loop_postorder_cmp): Same.
21647 (sort_locs_in_loop_postorder_cmp): Same.
21648 (analyze_memory_references): Same.
21649 (mem_refs_may_alias_p): Same.
21650 (find_ref_loc_in_loop_cmp): Same.
21651 (rewrite_mem_ref_loc::operator): Same.
21652 (first_mem_ref_loc_1::operator): Same.
21653 (sm_set_flag_if_changed::operator): Same.
21654 (execute_sm_if_changed_flag_set): Same.
21655 (execute_sm): Same.
21656 (hoist_memory_references): Same.
21657 (ref_always_accessed::operator): Same.
21658 (refs_independent_p): Same.
21659 (record_dep_loop): Same.
21660 (ref_indep_loop_p_1): Same.
21661 (ref_indep_loop_p): Same.
21662 (can_sm_ref_p): Same.
21663 (find_refs_for_sm): Same.
21664 (loop_suitable_for_sm): Same.
21665 (store_motion_loop): Same.
21666 (store_motion): Same.
21667 (fill_always_executed_in): Same.
21668 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21669 (estimated_unrolled_size): Same.
21670 (loop_edge_to_cancel): Same.
21671 (remove_exits_and_undefined_stmts): Same.
21672 (remove_redundant_iv_tests): Same.
21673 (unloop_loops): Same.
21674 (estimated_peeled_sequence_size): Same.
21675 (try_peel_loop): Same.
21676 (canonicalize_loop_induction_variables): Same.
21677 (canonicalize_induction_variables): Same.
21678 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21680 (stmt_after_inc_pos): Same.
21681 (contains_abnormal_ssa_name_p): Same.
21682 (niter_for_exit): Same.
21685 (find_givs_in_bb): Same.
21686 (find_induction_variables): Same.
21687 (find_interesting_uses_cond): Same.
21688 (outermost_invariant_loop_for_expr): Same.
21689 (idx_find_step): Same.
21690 (add_candidate_1): Same.
21691 (add_iv_candidate_derived_from_uses): Same.
21692 (alloc_use_cost_map): Same.
21693 (prepare_decl_rtl): Same.
21694 (generic_predict_doloop_p): Same.
21695 (computation_cost): Same.
21696 (determine_common_wider_type): Same.
21697 (get_computation_aff_1): Same.
21698 (get_use_type): Same.
21699 (determine_group_iv_cost_address): Same.
21701 (difference_cannot_overflow_p): Same.
21702 (may_eliminate_iv): Same.
21703 (determine_set_costs): Same.
21704 (cheaper_cost_pair): Same.
21705 (compare_cost_pair): Same.
21706 (iv_ca_cand_for_group): Same.
21707 (iv_ca_recount_cost): Same.
21708 (iv_ca_set_remove_invs): Same.
21709 (iv_ca_set_no_cp): Same.
21710 (iv_ca_set_add_invs): Same.
21711 (iv_ca_set_cp): Same.
21712 (iv_ca_add_group): Same.
21713 (iv_ca_cost): Same.
21714 (iv_ca_compare_deps): Same.
21715 (iv_ca_delta_reverse): Same.
21716 (iv_ca_delta_commit): Same.
21717 (iv_ca_cand_used_p): Same.
21718 (iv_ca_delta_free): Same.
21720 (iv_ca_free): Same.
21721 (iv_ca_dump): Same.
21722 (iv_ca_extend): Same.
21723 (iv_ca_narrow): Same.
21724 (iv_ca_prune): Same.
21725 (cheaper_cost_with_cand): Same.
21726 (iv_ca_replace): Same.
21727 (try_add_cand_for): Same.
21728 (get_initial_solution): Same.
21729 (try_improve_iv_set): Same.
21730 (find_optimal_iv_set_1): Same.
21731 (create_new_iv): Same.
21732 (rewrite_use_compare): Same.
21733 (remove_unused_ivs): Same.
21734 (determine_scaling_factor): Same.
21735 * tree-ssa-loop-ivopts.h: Same.
21736 * tree-ssa-loop-manip.c (create_iv): Same.
21737 (compute_live_loop_exits): Same.
21738 (add_exit_phi): Same.
21739 (add_exit_phis): Same.
21740 (find_uses_to_rename_use): Same.
21741 (find_uses_to_rename_def): Same.
21742 (find_uses_to_rename_in_loop): Same.
21743 (rewrite_into_loop_closed_ssa): Same.
21744 (check_loop_closed_ssa_bb): Same.
21745 (split_loop_exit_edge): Same.
21746 (ip_end_pos): Same.
21747 (ip_normal_pos): Same.
21748 (copy_phi_node_args): Same.
21749 (gimple_duplicate_loop_to_header_edge): Same.
21750 (can_unroll_loop_p): Same.
21751 (determine_exit_conditions): Same.
21752 (scale_dominated_blocks_in_loop): Same.
21753 (niter_for_unrolled_loop): Same.
21754 (tree_transform_and_unroll_loop): Same.
21755 (rewrite_all_phi_nodes_with_iv): Same.
21756 * tree-ssa-loop-manip.h: Same.
21757 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21758 (number_of_iterations_ne): Same.
21759 (assert_no_overflow_lt): Same.
21760 (assert_loop_rolls_lt): Same.
21761 (number_of_iterations_lt): Same.
21762 (adjust_cond_for_loop_until_wrap): Same.
21763 (tree_simplify_using_condition): Same.
21764 (simplify_using_initial_conditions): Same.
21765 (simplify_using_outer_evolutions): Same.
21766 (loop_only_exit_p): Same.
21767 (ssa_defined_by_minus_one_stmt_p): Same.
21768 (number_of_iterations_popcount): Same.
21769 (number_of_iterations_exit): Same.
21770 (find_loop_niter): Same.
21771 (finite_loop_p): Same.
21772 (chain_of_csts_start): Same.
21773 (get_val_for): Same.
21774 (loop_niter_by_eval): Same.
21775 (derive_constant_upper_bound_ops): Same.
21776 (do_warn_aggressive_loop_optimizations): Same.
21777 (record_estimate): Same.
21778 (get_cst_init_from_scev): Same.
21779 (record_nonwrapping_iv): Same.
21780 (idx_infer_loop_bounds): Same.
21781 (infer_loop_bounds_from_ref): Same.
21782 (infer_loop_bounds_from_array): Same.
21783 (infer_loop_bounds_from_pointer_arith): Same.
21784 (infer_loop_bounds_from_signedness): Same.
21785 (bound_index): Same.
21786 (discover_iteration_bound_by_body_walk): Same.
21787 (maybe_lower_iteration_bound): Same.
21788 (estimate_numbers_of_iterations): Same.
21789 (estimated_loop_iterations): Same.
21790 (estimated_loop_iterations_int): Same.
21791 (max_loop_iterations): Same.
21792 (max_loop_iterations_int): Same.
21793 (likely_max_loop_iterations): Same.
21794 (likely_max_loop_iterations_int): Same.
21795 (estimated_stmt_executions_int): Same.
21796 (max_stmt_executions): Same.
21797 (likely_max_stmt_executions): Same.
21798 (estimated_stmt_executions): Same.
21799 (stmt_dominates_stmt_p): Same.
21800 (nowrap_type_p): Same.
21801 (loop_exits_before_overflow): Same.
21802 (scev_var_range_cant_overflow): Same.
21803 (scev_probably_wraps_p): Same.
21804 (free_numbers_of_iterations_estimates): Same.
21805 * tree-ssa-loop-niter.h: Same.
21806 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21807 (idx_analyze_ref): Same.
21808 (analyze_ref): Same.
21809 (gather_memory_references_ref): Same.
21810 (mark_nontemporal_store): Same.
21811 (emit_mfence_after_loop): Same.
21812 (may_use_storent_in_loop_p): Same.
21813 (mark_nontemporal_stores): Same.
21814 (should_unroll_loop_p): Same.
21815 (volume_of_dist_vector): Same.
21816 (add_subscript_strides): Same.
21817 (self_reuse_distance): Same.
21818 (insn_to_prefetch_ratio_too_small_p): Same.
21819 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21820 (patch_loop_exit): Same.
21821 (find_or_create_guard_phi): Same.
21822 (easy_exit_values): Same.
21823 (connect_loop_phis): Same.
21824 (connect_loops): Same.
21825 (compute_new_first_bound): Same.
21826 (split_loop): Same.
21827 (tree_ssa_split_loops): Same.
21828 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21829 (is_maybe_undefined): Same.
21830 (tree_may_unswitch_on): Same.
21831 (simplify_using_entry_checks): Same.
21832 (tree_unswitch_single_loop): Same.
21833 (tree_unswitch_loop): Same.
21834 (tree_unswitch_outer_loop): Same.
21835 (empty_bb_without_guard_p): Same.
21836 (used_outside_loop_p): Same.
21837 (get_vop_from_header): Same.
21838 (hoist_guard): Same.
21839 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21840 (get_lsm_tmp_name): Same.
21841 * tree-ssa-loop.h: Same.
21842 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21843 (build_and_add_sum): Same.
21844 (no_side_effect_bb): Same.
21846 (linearize_expr): Same.
21847 (should_break_up_subtract): Same.
21848 (linearize_expr_tree): Same.
21849 * tree-ssa-scopedtables.c: Same.
21850 * tree-ssa-scopedtables.h: Same.
21851 * tree-ssa-structalias.c (condense_visit): Same.
21852 (label_visit): Same.
21853 (dump_pred_graph): Same.
21854 (perform_var_substitution): Same.
21855 (move_complex_constraints): Same.
21856 (remove_preds_and_fake_succs): Same.
21857 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21858 (determine_bb_domination_status): Same.
21859 (duplicate_thread_path): Same.
21860 (thread_through_all_blocks): Same.
21861 * tree-ssa-threadupdate.h: Same.
21862 * tree-streamer-in.c (streamer_read_string_cst): Same.
21863 (input_identifier): Same.
21864 (unpack_ts_type_common_value_fields): Same.
21865 (unpack_ts_block_value_fields): Same.
21866 (unpack_ts_translation_unit_decl_value_fields): Same.
21867 (unpack_ts_omp_clause_value_fields): Same.
21868 (streamer_read_tree_bitfields): Same.
21869 (streamer_alloc_tree): Same.
21870 (lto_input_ts_common_tree_pointers): Same.
21871 (lto_input_ts_vector_tree_pointers): Same.
21872 (lto_input_ts_poly_tree_pointers): Same.
21873 (lto_input_ts_complex_tree_pointers): Same.
21874 (lto_input_ts_decl_minimal_tree_pointers): Same.
21875 (lto_input_ts_decl_common_tree_pointers): Same.
21876 (lto_input_ts_decl_non_common_tree_pointers): Same.
21877 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21878 (lto_input_ts_field_decl_tree_pointers): Same.
21879 (lto_input_ts_function_decl_tree_pointers): Same.
21880 (lto_input_ts_type_common_tree_pointers): Same.
21881 (lto_input_ts_type_non_common_tree_pointers): Same.
21882 (lto_input_ts_list_tree_pointers): Same.
21883 (lto_input_ts_vec_tree_pointers): Same.
21884 (lto_input_ts_exp_tree_pointers): Same.
21885 (lto_input_ts_block_tree_pointers): Same.
21886 (lto_input_ts_binfo_tree_pointers): Same.
21887 (lto_input_ts_constructor_tree_pointers): Same.
21888 (lto_input_ts_omp_clause_tree_pointers): Same.
21889 (streamer_read_tree_body): Same.
21890 * tree-streamer.h: Same.
21891 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21892 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21893 (vect_analyze_possibly_independent_ddr): Same.
21894 (vect_analyze_data_ref_dependence): Same.
21895 (vect_compute_data_ref_alignment): Same.
21896 (vect_enhance_data_refs_alignment): Same.
21897 (vect_analyze_data_ref_access): Same.
21898 (vect_check_gather_scatter): Same.
21899 (vect_find_stmt_data_reference): Same.
21900 (vect_create_addr_base_for_vector_ref): Same.
21901 (vect_setup_realignment): Same.
21902 (vect_supportable_dr_alignment): Same.
21903 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21904 (adjust_phi_and_debug_stmts): Same.
21905 (vect_set_loop_mask): Same.
21906 (add_preheader_seq): Same.
21907 (vect_maybe_permute_loop_masks): Same.
21908 (vect_set_loop_masks_directly): Same.
21909 (vect_set_loop_condition_masked): Same.
21910 (vect_set_loop_condition_unmasked): Same.
21911 (slpeel_duplicate_current_defs_from_edges): Same.
21912 (slpeel_add_loop_guard): Same.
21913 (slpeel_can_duplicate_loop_p): Same.
21914 (create_lcssa_for_virtual_phi): Same.
21916 (vect_update_ivs_after_vectorizer): Same.
21917 (vect_gen_vector_loop_niters_mult_vf): Same.
21918 (slpeel_update_phi_nodes_for_loops): Same.
21919 (slpeel_update_phi_nodes_for_guard1): Same.
21920 (find_guard_arg): Same.
21921 (slpeel_update_phi_nodes_for_guard2): Same.
21922 (slpeel_update_phi_nodes_for_lcssa): Same.
21923 (vect_do_peeling): Same.
21924 (vect_create_cond_for_alias_checks): Same.
21925 (vect_loop_versioning): Same.
21926 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21927 (vect_inner_phi_in_double_reduction_p): Same.
21928 (vect_analyze_scalar_cycles_1): Same.
21929 (vect_fixup_scalar_cycles_with_patterns): Same.
21930 (vect_get_loop_niters): Same.
21931 (bb_in_loop_p): Same.
21932 (vect_get_max_nscalars_per_iter): Same.
21933 (vect_verify_full_masking): Same.
21934 (vect_compute_single_scalar_iteration_cost): Same.
21935 (vect_analyze_loop_form_1): Same.
21936 (vect_analyze_loop_form): Same.
21937 (vect_active_double_reduction_p): Same.
21938 (vect_analyze_loop_operations): Same.
21939 (neutral_op_for_slp_reduction): Same.
21940 (vect_is_simple_reduction): Same.
21941 (vect_model_reduction_cost): Same.
21942 (get_initial_def_for_reduction): Same.
21943 (get_initial_defs_for_reduction): Same.
21944 (vect_create_epilog_for_reduction): Same.
21945 (vectorize_fold_left_reduction): Same.
21946 (vectorizable_reduction): Same.
21947 (vectorizable_induction): Same.
21948 (vectorizable_live_operation): Same.
21949 (loop_niters_no_overflow): Same.
21950 (vect_get_loop_mask): Same.
21951 (vect_transform_loop_stmt): Same.
21952 (vect_transform_loop): Same.
21953 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21954 (vect_determine_precisions): Same.
21955 (vect_pattern_recog_1): Same.
21956 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21957 * tree-vect-stmts.c (stmt_vectype): Same.
21958 (process_use): Same.
21959 (vect_init_vector_1): Same.
21960 (vect_truncate_gather_scatter_offset): Same.
21961 (get_group_load_store_type): Same.
21962 (vect_build_gather_load_calls): Same.
21963 (vect_get_strided_load_store_ops): Same.
21964 (vectorizable_simd_clone_call): Same.
21965 (vectorizable_store): Same.
21966 (permute_vec_elements): Same.
21967 (vectorizable_load): Same.
21968 (vect_transform_stmt): Same.
21969 (supportable_widening_operation): Same.
21970 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21971 (vec_info::free_stmt_vec_info): Same.
21972 (vect_free_loop_info_assumptions): Same.
21973 (vect_loop_vectorized_call): Same.
21974 (set_uid_loop_bbs): Same.
21975 (vectorize_loops): Same.
21976 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21977 * tree.c (add_tree_to_fld_list): Same.
21978 (fld_type_variant_equal_p): Same.
21979 (fld_decl_context): Same.
21980 (fld_incomplete_type_of): Same.
21981 (free_lang_data_in_binfo): Same.
21982 (need_assembler_name_p): Same.
21983 (find_decls_types_r): Same.
21984 (get_eh_types_for_runtime): Same.
21985 (find_decls_types_in_eh_region): Same.
21986 (find_decls_types_in_node): Same.
21987 (assign_assembler_name_if_needed): Same.
21988 * value-prof.c (stream_out_histogram_value): Same.
21989 * value-prof.h: Same.
21990 * var-tracking.c (use_narrower_mode): Same.
21991 (prepare_call_arguments): Same.
21992 (vt_expand_loc_callback): Same.
21993 (resolve_expansions_pending_recursion): Same.
21994 (vt_expand_loc): Same.
21995 * varasm.c (const_hash_1): Same.
21996 (compare_constant): Same.
21997 (tree_output_constant_def): Same.
21998 (simplify_subtraction): Same.
21999 (get_pool_constant): Same.
22000 (output_constant_pool_2): Same.
22001 (output_constant_pool_1): Same.
22002 (mark_constants_in_pattern): Same.
22003 (mark_constant_pool): Same.
22004 (get_section_anchor): Same.
22005 * vr-values.c (compare_range_with_value): Same.
22006 (vr_values::extract_range_from_phi_node): Same.
22007 * vr-values.h: Same.
22008 * web.c (unionfind_union): Same.
22009 * wide-int.h: Same.
22011 2019-07-09 Martin Sebor <msebor@redhat.com>
22014 * align.h: Change class-key from class to struct and vice versa
22015 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22016 * alloc-pool.h: Same.
22017 * asan.c (shadow_mem_size): Same.
22018 * auto-profile.c: Same.
22019 * basic-block.h: Same.
22021 * cfgexpand.c (set_rtl): Same.
22022 (expand_one_stack_var_at): Same.
22023 * cfghooks.h: Same.
22026 * config/i386/i386.h: Same.
22027 * df-problems.c (df_print_bb_index): Same.
22029 * df.h (df_single_use): Same.
22030 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22031 (layout::annotation_line_showed_range_p): Same.
22032 (get_printed_columns): Same.
22033 (correction::ensure_terminated): Same.
22034 (line_corrections::~line_corrections): Same.
22037 * dump-context.h: Same.
22038 * dumpfile.h: Same.
22039 * dwarf2out.c: Same.
22040 * edit-context.c: Same.
22041 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22043 * function.c (assign_stack_local): Same.
22044 * function.h: Same.
22046 * gcov.c (block_info::block_info): Same.
22047 * genattrtab.c: Same.
22048 * genextract.c: Same.
22049 * genmatch.c (comparison_code_p): Same.
22050 (id_base::id_base): Same.
22051 (decision_tree::print): Same.
22052 * genoutput.c: Same.
22053 * genpreds.c (write_one_predicate_function): Same.
22054 * genrecog.c (validate_pattern): Same.
22055 (find_operand_positions): Same.
22056 (optimize_subroutine_group): Same.
22057 (merge_pattern_transition::merge_pattern_transition): Same.
22058 (merge_pattern_info::merge_pattern_info): Same.
22059 (merge_state_result::merge_state_result): Same.
22060 (merge_into_state): Same.
22061 * gensupport.c: Same.
22062 * gensupport.h: Same.
22063 * ggc-common.c (init_ggc_heuristics): Same.
22064 * ggc-tests.c (test_union): Same.
22065 * gimple-loop-interchange.cc (dump_induction): Same.
22066 * gimple-loop-versioning.cc: Same.
22067 * gimple-match.h (gimple_match_cond::any_else): Same.
22068 * gimple-ssa-backprop.c: Same.
22069 * gimple-ssa-sprintf.c: Same.
22070 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22072 (store_immediate_info::store_immediate_info): Same.
22073 (merged_store_group::apply_stores): Same.
22074 (get_location_for_stmts): Same.
22075 * gimple-ssa-strength-reduction.c: Same.
22076 * gimple-ssa-warn-alloca.c: Same.
22077 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22078 * godump.c (go_type_decl): Same.
22079 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22080 * hash-map.h: Same.
22081 * hash-set-tests.c (test_set_of_strings): Same.
22082 * hsa-brig.c: Same.
22083 * hsa-common.h: Same.
22084 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22085 * input.c (assert_loceq): Same.
22088 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22089 * ipa-fnsummary.h: Same.
22090 * ipa-inline.h: Same.
22091 * ipa-prop.h: Same.
22092 * ipa-split.c (visit_bb): Same.
22093 * ira-int.h (minmax_set_iter_next): Same.
22094 * loop-invariant.c: Same.
22096 * lra-eliminations.c: Same.
22098 * lra-lives.c (mark_regno_dead): Same.
22099 * lra-remat.c: Same.
22100 * lra-spills.c: Same.
22101 * lto-streamer.h: Same.
22102 * mem-stats.h: Same.
22103 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22104 * omp-low.c (omp_clause_aligned_alignment): Same.
22105 * optabs-query.h (get_vcond_eq_icode): Same.
22107 * opts.c (wrap_help): Same.
22108 * poly-int.h: Same.
22109 * predict.c (predict_paths_leading_to_edge): Same.
22110 * pretty-print.h: Same.
22111 * profile-count.h: Same.
22113 * read-rtl-function.c: Same.
22116 * regrename.c: Same.
22117 * regrename.h: Same.
22119 * rtl-iter.h: Same.
22120 * rtl.h (costs_add_n_insns): Same.
22122 * sched-int.h: Same.
22123 * sel-sched-ir.h: Same.
22124 * selftest.h: Same.
22125 * sese.h (vec_find): Same.
22127 * target-globals.h: Same.
22128 * tree-affine.c (aff_combination_find_elt): Same.
22129 * tree-affine.h: Same.
22130 * tree-data-ref.h: Same.
22131 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22132 * tree-predcom.c: Same.
22133 * tree-scalar-evolution.c (find_var_scev_info): Same.
22134 * tree-ssa-alias.h: Same.
22135 * tree-ssa-ccp.c: Same.
22136 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22137 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22138 (rewrite_mem_refs): Same.
22139 (execute_sm_if_changed): Same.
22140 (hoist_memory_references): Same.
22141 * tree-ssa-loop-ivopts.c (operator<=): Same.
22142 * tree-ssa-loop.h: Same.
22143 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22144 * tree-ssa-structalias.c: Same.
22145 * tree-switch-conversion.h (cluster::cluster): Same.
22146 (simple_cluster::simple_cluster): Same.
22147 * tree-vect-patterns.c (type_conversion_p): Same.
22148 * tree-vectorizer.c (dump_stmt_cost): Same.
22149 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22150 * tree.c (protected_set_expr_location): Same.
22151 * tree.h (desired_pro_or_demotion_p): Same.
22152 (fndecl_built_in_p): Same.
22153 * unique-ptr-tests.cc: Same.
22154 * var-tracking.c (delete_variable_part): Same.
22155 * varasm.c (assemble_real): Same.
22156 (tree_output_constant_def): Same.
22158 * wide-int-bitmask.h: Same.
22159 * wide-int.h (decompose): Same.
22161 2019-07-09 Richard Biener <rguenther@suse.de>
22163 PR tree-optimization/91114
22164 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22165 find a vector type isn't fatal.
22167 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22169 * config/aarch64/aarch64-simd.md
22170 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22171 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22172 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22173 (*aarch64_crypto_aese_fused,
22174 *aarch64_crypto_aesd_fused): Update to new definition.
22175 * config/aarch64/aarch64.c
22176 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22178 2019-07-09 Richard Biener <rguenther@suse.de>
22180 * gimple-match.h (gimple_match_op::resimplify): New.
22181 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22182 gimple_resimplify4, gimple_resimplify5): Remove.
22183 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22184 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22186 (gimple_match_op::resimplify): New.
22187 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22188 according to availability. Use gimple_match_op::resimplify.
22190 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22192 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22194 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22196 * config/arm/crypto.md:
22197 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22198 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22199 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22200 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22202 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22203 * config/arm/aarch-common-protos.h
22204 (aarch_crypto_can_dual_issue): Remove.
22205 * config/arm/aarch-common.c
22206 (aarch_crypto_can_dual_issue): Likewise.
22207 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22208 * config/arm/cortex-a53.md: Likewise.
22209 * config/arm/cortex-a57.md: Likewise.
22210 * config/arm/iterators.md:
22211 (CRYPTO_BINARY): Redefine.
22212 (CRYPTO_UNARY): Removed.
22213 (CRYPTO_AES, CRYPTO_AESMC): New.
22215 2019-07-09 Richard Biener <rguenther@suse.de>
22217 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22218 (vn_reference_lookup_3): If the main ref has no access path recorded
22219 but orig_ref has use it to do access-path based disambiguation.
22220 (vn_reference_lookup_pieces): Adjust.
22221 (vn_reference_lookup): Pass down original ref if we valueized.
22223 2019-07-09 Martin Liska <mliska@suse.cz>
22225 * doc/extend.texi: Document influence on loop
22228 2019-07-09 Martin Liska <mliska@suse.cz>
22230 * lto-compress.c (lto_normalized_zstd_level): Do not use
22231 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22232 of libzstd. One can use 0 as a default compression level.
22234 2019-07-09 Martin Liska <mliska@suse.cz>
22236 * doc/invoke.texi: Add link from -fprofile-dir option.
22237 Use better wording for 'gcno filename'.
22239 2019-07-08 Martin Sebor <msebor@redhat.com>
22241 PR middle-end/71924
22242 PR middle-end/90549
22243 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22245 (args_loc_t): New type.
22246 (args_loc_t, locmap_t): same.
22247 (diag_returned_locals): New function.
22248 (is_addr_local): Same.
22249 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22250 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22251 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22253 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22255 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22256 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22257 and casts in offset when different, both through gimple stmts
22258 and through trees. Rewritten using loops to minimize code duplication
22261 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22263 * emit-rtl.c (set_insn_locations): New function moved from...
22264 * function.c (set_insn_locations): ...here.
22265 * ira-emit.c (emit_moves): Propagate location of the first instruction
22266 to the inserted move instructions.
22267 * reg-stack.c (compensate_edge): Set the location if the sequence is
22268 inserted on the edge.
22269 * rtl.h (set_insn_locations): Declare.
22271 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22273 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22274 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22277 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22279 PR rtl-optimization/88233
22280 * common.opt (fsplit-wide-types-early): New option.
22281 * common/config/rs6000/rs6000-common.c
22282 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22284 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22285 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22286 flag_split_wide_types_early.
22287 (pass_data_lower_subreg3): New.
22288 (pass_lower_subreg3): New.
22289 (make_pass_lower_subreg3): New.
22290 * passes.def (pass_lower_subreg2): Move after the loop passes.
22291 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22292 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22293 the pass pipeline; its previous place is taken by ...
22294 (make_pass_lower_subreg3): ... this.
22296 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22298 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22299 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22301 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22303 * config/s390/constraints.md: Add new jsc constraint.
22304 * config/s390/predicates.md: New predicates.
22305 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22306 * config/s390/s390.c (s390_valid_shift_count): New function.
22307 (print_shift_count_operand): Use s390_valid_shift_count.
22308 (print_operand): Likewise.
22309 * config/s390/s390.md: Use new predicate.
22310 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22311 * config/s390/vector.md: Use new predicate.
22313 2019-07-08 Andrew Waterman <andrew@sifive.com>
22314 Jim Wilson <jimw@sifive.com>
22316 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22317 bitsize instead of BITS_PER_WORD.
22319 2019-07-08 Martin Liska <mliska@suse.cz>
22321 * collect2.c (defined): Revert to before r254460.
22322 (scan_prog_file): Revert to before r254460.
22324 2019-07-08 Richard Biener <rguenther@suse.de>
22326 PR tree-optimization/83518
22327 * tree-ssa-sccvn.c: Include splay-tree.h.
22328 (struct pd_range, struct pd_data): New.
22329 (struct vn_walk_cb_data): Add data to track partial definitions.
22330 (vn_walk_cb_data::~vn_walk_cb_data): New.
22331 (vn_walk_cb_data::push_partial_def): New.
22332 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22333 (vn_reference_lookup_2): When partial defs are registered give up.
22334 (vn_reference_lookup_3): Track partial defs for memset and
22335 constructor zeroing and for defs from constants.
22337 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22339 * doc/install.texi (bootstrap-Og): Document.
22341 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22343 * config/riscv/pic.md (*local_pic_load_s<mode>)
22344 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22345 referenced by <mode>, giving...
22346 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22347 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22348 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22349 use <X:MODE> for the mode attribute.
22351 2019-07-07 Jeff Law <law@redhat.com>
22353 PR tree-optimization/91090
22354 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22355 in handling of ranges to simplify switch statements.
22357 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22359 * config/darwin.c (darwin_override_options): Make a final check on PIC
22362 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22364 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22365 on for kernel code.
22367 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22370 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22371 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22372 instead of matching them to "l" output operands.
22374 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22376 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22377 and check whether addr.reg is nonnull before using it.
22379 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22381 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22382 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22383 variable(s). For conditional lastprivate look through outer
22384 GIMPLE_OMP_SCAN context.
22385 (lower_omp_1): For conditional lastprivate look through outer
22386 GIMPLE_OMP_SCAN context.
22388 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22389 member to combined_into_simd_safelen1.
22390 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22391 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22392 clauses if ctx->combined_into_simd_safelen1 put statements after the
22393 predicate conditionalized block rather than into it.
22395 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22397 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22399 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22400 Make the choice of <mode> explicit, giving...
22401 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22403 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22405 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22406 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22408 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22409 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22410 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22411 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22412 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22413 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22414 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22415 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22416 (*avx512f_scatterdi<mode>): Likewise.
22417 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22419 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22421 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22422 specify the mode iterator referenced by <mode>, giving...
22423 (*push1_h8300hs_<QHI:mode>): ...this.
22425 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22427 * config/gcn/gcn-valu.md
22428 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22429 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22430 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22431 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22432 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22433 but using the _exec comparison patterns.
22434 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22435 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22436 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22437 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22438 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22439 but using the _exec comparison patterns.
22441 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22443 * config/arm/sync.md
22444 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22445 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22446 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22447 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22448 <SIDI:cas_cmp_str>.
22450 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22452 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22453 (maybe_lookup_ctx): Add forward declaration.
22454 (omp_find_scan): Likewise. Walk into body of simd if composited
22455 with worksharing loop.
22456 (scan_omp_simd_scan): New function.
22457 (scan_omp_1_stmt): Call it.
22458 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22459 ctx->for_simd_scan_phase.
22460 (lower_rec_input_clauses): Do much less work for inscan reductions
22461 in ctx->for_simd_scan_phase is_simd regions.
22462 (lower_omp_scan): Set is_simd also on simd constructs composited
22463 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22464 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22465 emit their body after in simd constructs composited with worksharing
22467 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22469 * omp-low.c (omp_find_scan): Make static.
22470 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22471 the second loop, var2 represents the first partial sum and so needs
22472 to go before rprivb[ivar].
22474 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22476 * config/rs6000/rs6000-logue.c: Remove unused code.
22478 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22480 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22482 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22485 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22486 check with a frame laid out check.
22488 2019-07-05 Richard Biener <rguenther@suse.de>
22490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22491 when comparing against a store with possibly the same value.
22493 2019-07-05 Richard Biener <rguenther@suse.de>
22495 PR tree-optimization/91091
22496 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22497 (walk_non_aliased_vuses): Likewise.
22498 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22499 (get_continuation_for_phi): New tbaa_p parameter and pass
22501 (walk_non_aliased_vuses): Likewise.
22502 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22503 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22504 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22506 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22507 (adjust_offsets_for_equal_base_address): New function.
22508 (vn_reference_lookup_3): Use it to catch more base equivalences.
22509 Handle and pass down tbaa_p flag.
22510 (vn_reference_lookup_pieces): Adjust.
22511 (vn_reference_lookup): Remove alias-set altering, instead pass
22512 down false as tbaa_p.
22514 2019-07-05 Richard Biener <rguenther@suse.de>
22516 PR tree-optimization/91091
22517 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22518 accesses can happen with -fno-strict-aliasing.
22520 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22522 * tree-ssa-alias.c (alias_stats): Add
22523 nonoverlapping_component_refs_since_match_p_must_overlap.
22524 (dump_alias_stats): Print it.
22525 (nonoverlapping_component_refs_since_match_p): Add early exit.
22526 (nonoverlapping_component_refs_p): Do not account early exit.
22528 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22530 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22531 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22532 (emit_eh_dispatch): Delete.
22533 (lower_catch): Emit the eh_dispatch manually and set the location of
22534 the first catch statement onto it.
22535 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22536 (lower_eh_dispatch): Propagate location.
22537 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22538 (eliminate_build): Likewise.
22540 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22542 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22543 phi nodes if possible.
22544 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22545 location info on the newly created statement.
22546 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22547 newly created increment if needed.
22549 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22551 PR middle-end/78884
22552 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22553 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22554 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22555 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22556 ctx->add_safelen1 is set.
22558 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22559 GOMP_loop_start at the start of second worksharing loop in a scan.
22560 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22561 worksharing loop in a scan even if there are conditional lastprivates,
22562 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22564 2019-07-04 Jan Hubicka <jh@suse.cz>
22566 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22567 Fix check for match in the ref walk.
22569 2019-07-04 Martin Liska <mliska@suse.cz>
22571 * tree-ssa-loop-niter.c
22572 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22573 (estimate_numbers_of_iterations):
22574 Support __builtin_expect_with_probability for analysis
22575 of # of loop iterations.
22577 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22579 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22580 * except.c: Likewise.
22581 * expr.c (expand_expr_real_1): Reject it.
22582 * gimplify.c (gimplify_expr): Gimplify it, within
22584 * tree-dump.c (dequeue_and_dump): Dump it.
22585 * tree-pretty-print.c (dump_generic_node): Likewise.
22586 * tree.c (block_may_fallthru): Handle it.
22587 * tree.def (EH_ELSE_EXPR): Introduce it.
22588 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22589 with GIMPLE_EH_ELSE as try/finally/else.
22591 2019-07-04 Richard Biener <rguenther@suse.de>
22594 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22595 parameter whether to disable GC collection.
22596 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22598 (execute_all_ipa_transforms): Likewise and pass it down.
22599 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22600 collection from applying IPA transforms.
22601 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22602 from applying IPA transforms.
22604 2019-07-04 Richard Biener <rguenther@suse.de>
22606 PR tree-optimization/90911
22607 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22608 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22609 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22610 scalar_loop_scaling.
22611 (vect_transform_loop): Scale scalar loop profile if needed.
22612 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22613 the loop copy from if-conversion adjust edge probabilities
22614 and scale the vectorized loop body profile, queue the scalar
22615 profile for updating after peeling.
22617 2019-07-04 Jan Hubicka <jh@suse.cz>
22619 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22620 parameters; return early for must-alias.
22621 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22622 outer types match, try nonoverlapping_component_refs
22623 if must-alias is not obvious.
22624 (indirect_refs_may_alias_p): Likewise.
22625 (refs_may_alias_p_2): Likewise.
22627 2019-07-04 Richard Biener <rguenther@suse.de>
22629 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22631 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22633 (struct vn_walk_cb_data): New callback data struct.
22634 (vn_reference_lookup_2): Adjust.
22635 (vn_reference_lookup_3): Likewise.
22636 (vn_reference_lookup_pieces): Likewise.
22637 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22638 (visit_reference_op_load): Adjust.
22640 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22642 PR tree-optimization/91063
22643 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22644 stmt from stmts sequence before calling vect_init_vector_1.
22647 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22650 * fwprop.c (reg_single_def_p): New function.
22651 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22652 (forward_propagate_into): New parameter reg_prop_only
22653 with default value false.
22654 Propagate def's src into loop only if SET_SRC and SET_DEST
22655 of def_set have single definitions.
22656 Likewise if reg_prop_only is set to true.
22657 (fwprop): New param fwprop_addr_p.
22658 Integrate fwprop_addr into fwprop.
22659 (fwprop_addr): Remove.
22660 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22662 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22663 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22664 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22666 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22668 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22669 in worksharing loop scans.
22671 PR tree-optimization/91074
22672 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22675 PR rtl-optimization/90756
22676 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22679 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22681 * config/aarch64/aarch64.md: Remove redundant constraints from
22682 define_expand but keep some patterns untouched if they are
22683 specially selected by TARGET_SECONDARY_RELOAD hook.
22684 * config/aarch64/aarch64-sve.md: Likewise.
22685 * config/aarch64/atomics.md: Remove redundant constraints from
22687 * config/aarch64/aarch64-simd.md: Likewise.
22689 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22691 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22692 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22693 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22695 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22698 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22700 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22701 (STARTFILE_SPEC): Split crt3 into a separate spec.
22702 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22703 (DARWIN_CRT2_SPEC): New.
22704 (DARWIN_CRT3_SPEC): New.
22705 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22706 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22707 (DARWIN_CRT3_SPEC): New.
22709 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22711 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22712 Change the RTL attribute "length" from "4" to "*" to allow the
22713 length attribute to be adjusted automatically for prefixed load,
22714 store, and add immediate instructions.
22715 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22717 (extendsi<mode>2, EXTSI iterator): Likewise.
22718 (movsi_internal1): Likewise.
22719 (movsi_from_sf): Likewise.
22720 (movdi_from_sf_zero_ext): Likewise.
22721 (mov<mode>_internal): Likewise.
22722 (movcc_internal1, QHI iterator): Likewise.
22723 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22724 (movsf_from_si): Likewise.
22725 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22726 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22727 (mov<mode>, FMOVE128 iterator): Likewise.
22728 (movdi_internal64): Likewise.
22729 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22731 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22732 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22733 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22734 (vsx_splat_v4sf): Likewise.
22736 2019-07-03 Mark Wielaard <mark@klomp.org>
22739 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22740 DW_AT_addr_base if there is actually a .debug_addr section with
22742 (output_addr_table): Add DWARF5 table header generation here after
22743 checking there are actually any addresses from...
22744 (dwarf2out_finish): ...here.
22746 2019-07-03 Richard Biener <rguenther@suse.de>
22748 PR middle-end/91069
22749 * match.pd (vec_perm -> bit_insert): Fix element read from
22752 2019-07-03 Martin Liska <mliska@suse.cz>
22754 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22755 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22757 * generic-match-head.c: Include dbgcnt.h.
22758 * gimple-match-head.c: Likewise.
22760 2019-07-03 Martin Liska <mliska@suse.cz>
22762 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22763 (GCOV_COUNTER_V_TOPN): New.
22764 (GCOV_COUNTER_V_INDIR): Use _topn.
22765 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22766 (GCOV_TOPN_VALUES): New.
22767 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22768 (GCOV_TOPN_VALUES_COUNTERS): New.
22769 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22771 (gimple_init_gcov_profiler): Rename variables from one_value
22773 (gimple_gen_one_value_profiler): Remove.
22774 (gimple_gen_topn_values_profiler): New function.
22775 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22776 names instead of SINGLE_VALUE.
22777 (stream_out_histogram_value): Likewise.
22778 (stream_in_histogram_value): Likewise.
22779 (get_most_common_single_value): Likewise.
22780 (gimple_divmod_fixed_value_transform): Likewise.
22781 (gimple_stringops_transform): Likewise.
22782 (gimple_divmod_values_to_profile): Likewise.
22783 (gimple_stringops_values_to_profile): Likewise.
22784 (gimple_find_values_to_profile): Likewise.
22785 * value-prof.h (enum hist_type): Rename to TOPN.
22786 (gimple_gen_one_value_profiler): Remove.
22787 (gimple_gen_topn_values_profiler): New.
22789 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22791 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22792 if it has the DW_AT_data_member_location attribute.
22794 2019-07-03 Richard Biener <rguenther@suse.de>
22796 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22799 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22801 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22802 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22803 (tlsdesc_small_sve_<mode>): Likewise.
22805 2019-07-03 Martin Liska <mliska@suse.cz>
22807 * Makefile.in: Define ZSTD_LIB.
22808 * common.opt: Adjust compression level
22809 to support also zstd levels.
22810 * config.in: Regenerate.
22811 * configure: Likewise.
22812 * configure.ac: Add --with-zstd and --with-zstd-include options
22814 * doc/install.texi: Mention zstd dependency.
22815 * gcc.c: Print supported LTO compression algorithms.
22816 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22817 (lto_compression_zstd): Likewise.
22818 (lto_uncompression_zstd): Likewise.
22819 (lto_end_compression): Dispatch in between zlib and zstd.
22820 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22821 (lto_uncompression_zlib): Make it static.
22822 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22823 * lto-section-in.c (lto_get_section_data): Pass info
22824 about used compression.
22825 * lto-streamer-out.c: By default use zstd when possible.
22826 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22827 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22829 2019-07-03 Martin Liska <mliska@suse.cz>
22831 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22832 * lto-section-out.c (lto_destroy_simple_output_block): Never
22833 compress LTO_section_lto section.
22834 * lto-streamer-out.c (produce_asm): Do not set major_version
22836 (lto_output_toplevel_asms): Likewise.
22837 (produce_lto_section): New function.
22838 (lto_output): Call produce_lto_section.
22839 (lto_write_mode_table): Do not set major_version and
22841 (produce_asm_for_decls): Likewise.
22842 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22844 (struct lto_header): Remove.
22845 (struct lto_section): New struct.
22846 (struct lto_simple_header): Do not inherit from lto_header.
22847 (struct lto_file_decl_data): Add lto_section_header field.
22849 2019-07-03 Martin Liska <mliska@suse.cz>
22851 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22853 * reg-stack.c (check_asm_stack_operands): Likewise.
22854 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22855 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22856 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22857 force_expand_binop.
22859 2019-07-03 Martin Liska <mliska@suse.cz>
22861 PR tree-optimization/90892
22862 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22863 in string constants.
22865 2019-07-03 Martin Liska <mliska@suse.cz>
22867 PR middle-end/90899
22868 * multiple_target.c (create_dispatcher_calls): Add to comdat
22869 group only if set for ifunc.
22871 2019-07-03 Martin Liska <mliska@suse.cz>
22874 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22875 Define local_object_name in outer scope in order to handle
22876 use-after-scope issue.
22878 2019-07-03 Martin Liska <mliska@suse.cz>
22880 * common.opt: Add fprofile-note.
22881 * coverage.c (coverage_init): Append the option
22883 * doc/invoke.texi: Document -fprofile-note.
22885 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22887 PR tree-optimization/91033
22888 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22889 vect_analyze_data_refs): Add bool * arguments.
22890 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22891 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22892 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22893 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22894 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22895 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22896 vect_analyze_data_refs caller.
22898 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22900 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22901 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22902 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22903 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22904 OMP_CLAUSE__SCANTEMP_ entry.
22905 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22906 * tree-pretty-print.c (dump_omp_clause): Likewise.
22907 * tree-nested.c (convert_nonlocal_omp_clauses,
22908 convert_local_omp_clauses): Likewise.
22909 * omp-general.h (struct omp_for_data): Add have_scantemp and
22910 have_nonctrl_scantemp members.
22911 * omp-general.c (omp_extract_for_data): Initialize them.
22912 * omp-low.c (struct omp_context): Add scan_exclusive member.
22913 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22914 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22915 ctx->scan_exclusive.
22916 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22917 of !ctx->scan_inclusive.
22918 (lower_rec_input_clauses): Simplify gimplification of dtors using
22919 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22920 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22921 loops. Don't add barrier for reduction_omp_orig_ref if
22922 ctx->scan_??xclusive.
22923 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22924 (lower_omp_scan): Use ctx->scan_exclusive instead
22925 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22926 reductions. Use new_vard != new_var instead of repeated
22927 omp_is_reference calls.
22928 (omp_find_scan, lower_omp_for_scan): New functions.
22929 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22931 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22932 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22933 and fd->have_scantemp.
22935 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22936 on worksharing loop propagate it as shared clause to containing
22939 * omp-expand.c (expand_omp_for_static_nochunk,
22940 expand_omp_for_static_chunk): For nowait worksharing loop with
22941 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22944 2019-07-02 qing zhao <qing.zhao@oracle.com>
22946 PR preprocessor/90581
22947 * doc/cppopts.texi: Add document for -fmax-include-depth.
22948 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22950 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22952 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22953 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22954 (mmx_packssdw): Ditto.
22955 (mmx_punpckhbw): Ditto.
22956 (mmx_punpcklbw): Ditto.
22957 (mmx_punpckhwd): Ditto.
22958 (mmx_punpcklwd): Ditto.
22959 (mmx_punpckhdq): Ditto.
22960 (mmx_punpckldq): Ditto.
22961 (*vec_dupv4hi): Ditto.
22962 (*vec_dupv2si): Ditto.
22963 (mmx_pmovmskb): Ditto.
22964 * config/i386/sse.md (sse_cvtpi2ps): Use
22965 TARGET_SSE2 && SSE_REG_P in split condition.
22966 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22967 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22968 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22969 (ssse3_pshufbv8qi3): Ditto.
22970 (ssse3_palignrdi): Ditto.
22972 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22974 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22975 with inlined save and restore.
22977 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22979 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22980 to be inserted on single successor edge of the entry block. Then call
22981 commit_edge_insertions instead of inserting the instructions manually.
22982 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22983 RTL expansion and rebuild jump labels chain.
22985 2019-07-02 Richard Biener <rguenther@suse.de>
22987 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22989 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22991 * tree.c (build_common_tree_nodes): Initialize them.
22992 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22993 Make declarations comments.
22994 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22995 chrec_known): Remove definitions.
22996 (initialize_scalar_evolutions_analyzer): Remove.
22997 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22998 * tree-streamer.c (preload_common_nodes): Do not preload
22999 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23001 2019-07-02 Jan Hubicka <jh@suse.cz>
23003 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23006 2019-07-02 Jan Hubicka <jh@suse.cz>
23008 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23010 (nonoverlapping_component_refs_since_match_p): ... this one;
23011 handle also non-decl bases; return -1 if search gave up.
23012 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23013 nonoverlapping_component_refs_of_decl_p_no_alias to
23014 nonoverlapping_component_refs_since_match_p_may_alias,
23015 nonoverlapping_component_refs_since_match_p_no_alias.
23016 (dump_alias_stats): Update dumping.
23017 (aliasing_matching_component_refs_p): Break out from ...;
23018 dispatch to nonoverlapping_component_refs_for_decl_p
23019 and nonoverlapping_component_refs_since_match_p.
23020 (aliasing_component_refs_p): ... here; call
23021 nonoverlapping_component_refs_p in scenarios where we can not
23022 precisely determine base match.
23023 (decl_refs_may_alias_p): Use
23024 nonoverlapping_component_refs_since_match_p.
23025 (indirect_ref_may_alias_decl_p): Do not call
23026 nonoverlapping_component_refs_p.
23027 (indirect_refs_may_alias_p): Likewise.
23029 2019-07-02 Jan Hubicka <jh@suse.cz>
23031 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23032 to clobber of return value.
23034 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23036 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23037 for is_neon_type instructions that have not already been categorized.
23039 2019-07-02 Richard Biener <rguenther@suse.de>
23041 PR tree-optimization/58483
23042 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23043 for MEM_REF base hashing.
23044 (equal_mem_array_ref_p): Likewise for base comparison.
23046 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23048 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23049 parameterized name.
23050 (signbit<mode>2): Use that name. Simplify.
23052 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23054 PR middle-end/66726
23055 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23056 Tune heuristic from PR71016 to allow MIN / MAX.
23058 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23060 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23061 parameterized name.
23062 (abs<mode>2): Use that name. Simplify.
23064 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23066 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23067 parameterized name.
23068 (neg<mode>2): Use that name. Simplify.
23070 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23072 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23074 (abs<mode>2): Use that name. Simplify.
23076 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23078 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23080 (neg<mode>2): Use that name. Simplify.
23082 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23084 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23085 ("enabled" attribute): Handle sse_noavx isa attribute.
23086 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23087 Use TARGET_SSE && SSE_REGNO_P in split condition.
23088 (*vec_dupv2sf): Ditto.
23090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23092 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23094 (floatsi<mode>2): Use that name. Simplify.
23096 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23098 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23099 parameterized name.
23100 (extenddf<mode>2_vsx): Make this a parameterized name.
23101 (extenddf<mode>2): Use those names. Simplify.
23103 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23105 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23107 (eh_return): Use that name. Simplify.
23109 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23111 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23112 (doloop_end): Use that name. Simplify.
23114 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23116 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23117 parameterized name.
23118 (indirect_jump): Use that name. Simplify.
23120 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23122 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23123 parameterized name.
23124 (abs<mode>2): Use that name. Simplify.
23126 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23128 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23129 parameterized name.
23130 (fix_trunc<mode>si2): Use that name. Simplify.
23132 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23134 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23135 (allocate_stack): Use that name. Simplify.
23137 2019-07-01 Martin Sebor <msebor@redhat.com>
23139 PR middle-end/90923
23140 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23141 (hash_map::get_or_insert): Same. Reformat comment.
23142 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23143 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23144 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23145 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23146 (hash_table::hash_table (const hash_table&)): Use copy ctor
23147 instead of assignment to copy elements.
23149 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23150 John David Anglin <danglin@gcc.gnu.org>
23153 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23154 using saved frame pointer.
23156 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23158 PR middle-end/64242
23159 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23160 Add frame clobber and schedule blockage.
23162 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23164 * doc/invoke.texi (Link Options): Further editorial changes to
23165 -flinker-output docs.
23167 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23169 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23170 Load both operands of a PLUS into registers separately.
23172 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23174 * config/s390/vector.md: Fix shift count operand printing.
23176 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23178 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23180 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23182 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23183 Use recog_data to test for an output operand.
23185 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23187 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23188 exclude any others that are disparaged or that are bound to need
23190 (ira_get_dup_out_num): Expand comment.
23192 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23194 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23195 constraint string for each operand/alternative combo. Only handle
23196 '%' at the start of constraint strings, and look for it outside
23199 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23201 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23202 alternative_mask instead of HARD_REG_SET to represent a
23203 bitmask of alternatives.
23204 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23205 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23207 2019-07-01 Martin Liska <mliska@suse.cz>
23209 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23210 use () for a constructor call.
23211 (test_applying_fixits_line_out_of_range): Likewise.
23212 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23214 (free_page): Likewise.
23216 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23218 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23219 parameter names to match usage (no functional change).
23220 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23222 2019-07-01 Richard Biener <rguenther@suse.de>
23224 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23226 (pass_fre::execute): Honor it.
23227 * passes.def: Adjust pass_fre invocations to allow iterating,
23228 add non-iterating pass_fre before late threading/dom.
23230 2019-07-01 Richard Biener <rguenther@suse.de>
23232 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23233 TARGET_MEM_REF handling to also handle address-taken ones.
23235 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23237 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23238 hardware attributes): Document avx512vp2intersect.
23240 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23242 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23243 (abs<mode>2): New expander.
23244 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23245 Use CODE_FOR_ssse3_absv8qi2.
23246 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23247 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23249 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23251 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23252 to sse, sse_noavx and avx. Update all uses.
23254 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23256 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23257 (*mmx_<plusminus_insn><mode>3): Ditto.
23258 (*mmx_mulv4hi3"): Ditto.
23259 (*mmx_smulv4hi3_highpart): Ditto.
23260 (*mmx_umulv4hi3_highpart): Ditto.
23261 (*mmx_pmaddwd): Ditto.
23262 (*sse2_umulv1siv1di3): Ditto.
23263 (*mmx_<code>v4hi3): Ditto.
23264 (*mmx_<code>v8qi3): Ditto.
23265 (mmx_ashr<mode>3): Ditto.
23266 ("mmx_<shift_insn><mode>3): Ditto.
23267 (*mmx_eq<mode>3): Ditto.
23268 (mmx_gt<mode>3): Ditto.
23269 (mmx_andnot<mode>3): Ditto.
23270 (*mmx_<code><mode>3): Ditto.
23271 (*mmx_pinsrw): Ditto.
23272 (*mmx_pextrw): Ditto.
23273 (mmx_pshufw_1): Ditto.
23274 (*mmx_uavgv8qi3): Ditto.
23275 (*mmx_uavgv4hi3): Ditto.
23276 ("mmx_psadbw): Ditto.
23277 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23278 (sse_cvttps2pi): Ditto.
23279 (ssse3_pmaddubsw): Ditto.
23280 (*ssse3_pmulhrswv4hi3): Ditto.
23281 (ssse3_psign<mode>3): Ditto.
23283 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23285 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23286 adjustment for bit-fields to all aggregate types.
23288 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23290 * config/rs6000/predicates.md (pcrel_address): Use
23291 SYMBOL_REF_LOCAL_P to determine if a label is local.
23292 (pcrel_external_address): New predicate.
23293 (non_prefixed_mem_operand): Delete, predicate not used.
23294 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23295 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23297 (SYMBOL_REF_PCREL_P): Likewise.
23300 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23302 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23303 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23304 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23306 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23308 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23309 override on extra_headers.
23311 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23313 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23314 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23316 (darwin_driver_init): Likewise.
23318 2019-06-28 Jan Beulich <jbeulich@suse.com>
23320 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23321 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23322 Eliminate redundant alternative.
23324 2019-06-28 Jan Beulich <jbeulich@suse.com>
23326 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23327 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23328 Use vector_operand.
23330 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23332 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23333 having a lower cost regardless of the speed option.
23335 2019-06-28 Jan Beulich <jbeulich@suse.com>
23337 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23338 vector_operand plus, on both alternatives, "Bm" constraint.
23340 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23342 * config/arm/arm.md: Remove redundant constraints from
23343 define_expand but leave reload_inm and reload_outm patterns
23344 untouched since they need special constraints to work.
23345 * config/arm/arm-fixed.md: Remove redundant constraints from
23347 * config/arm/iwmmxt.md: Likewise.
23348 * config/arm/neon.md: Likewise.
23349 * config/arm/sync.md: Likewise.
23350 * config/arm/thumb1.md: Likewise.
23351 * config/arm/vec-common.md: Likewise.
23353 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23355 * doc/install.texi: Document --disable-tm-clone-registry.
23357 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23360 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23363 PR tree-optimization/91010
23364 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23365 return true. Otherwise, don't call operand_equal_p if offset1 or
23366 offset2 is NULL and just return false.
23368 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23370 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23371 user-specified float mode choice for kernel mode code.
23373 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23375 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23378 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23380 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23381 use longcall for 64b code.
23383 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23385 * builtins.c (get_memory_rtx): Fix comment.
23386 * optabs.def (movmem_optab): Change to cpymem_optab.
23387 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23388 (emit_block_move_hints): Change movmem to cpymem.
23389 * defaults.h: Change movmem to cpymem.
23390 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23391 (default_use_by_pieces_infrastructure_p): Ditto.
23392 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23393 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23395 * config/aarch64/aarch64.h: Change movmem to cpymem.
23396 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23397 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23398 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23400 * config/arc/arc-protos.h: Change movmem to cpymem.
23401 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23402 * config/arc/arc.h: Change movmem to cpymem in comment.
23403 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23404 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23405 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23406 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23407 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23408 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23409 * config/avr/avr-protos.h: Change movmem to cpymem.
23410 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23411 avr_out_movmem): Change movmem to cpymem.
23412 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23413 Change movmem to cpymem.
23414 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23415 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23416 Change movmem to cpymem.
23417 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23418 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23419 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23420 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23421 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23422 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23423 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23424 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23425 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23426 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23427 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23428 expand_small_cpymem_or_setmem,
23429 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23430 expand_set_or_cpymem_constant_prologue,
23431 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23432 * config/i386/i386-protos.h: Change movmem to cpymem.
23433 * config/i386/i386.h: Change movmem to cpymem in comment.
23434 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23435 (setmem<mode>): Change expansion function name.
23436 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23437 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23438 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23439 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23440 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23441 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23442 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23444 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23445 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23446 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23447 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23448 Change movmem to cpymem.
23449 * config/mips/mips.h: Change movmem to cpymem.
23450 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23451 * config/nds32/nds32-memory-manipulation.c
23452 (nds32_expand_movmemsi_loop_unknown_size,
23453 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23454 nds32_expand_movmemsi_unroll,
23455 nds32_expand_movmemsi): Change movmem to cpymem.
23456 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23457 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23458 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23459 (pa_adjust_insn_length): Change call to compute_movmem_length.
23460 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23461 movmemdi, movmemdi_prereload,
23462 movmemdi_postreload): Change movmem to cpymem.
23463 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23464 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23465 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23466 * config/riscv/riscv.h: Change movmem to cpymem.
23467 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23468 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23469 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23471 * config/s390/s390-protos.h: Change movmem to cpymem.
23472 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23473 s390_expand_insv): Change movmem to cpymem.
23474 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23475 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23476 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23477 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23478 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23479 for nonexistent function.
23480 * config/vax/vax.h: Change movmem to cpymem in comment.
23481 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23482 * config/visium/visium.h: Change movmem to cpymem in comment.
23483 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23484 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23485 * doc/md.texi: Change movmem to cpymem and update description to match.
23486 * doc/rtl.texi: Change movmem to cpymem.
23487 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23488 * doc/tm.texi: Regenerate.
23490 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23492 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23493 -fvariable-expansion-in-unroller by default.
23494 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23497 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23500 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23501 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23503 * config.gcc(rs6000-*-*): Define target_gtfiles.
23505 2019-06-27 Jan Hubicka <jh@suse.cz>
23507 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23508 (add_type_duplicate): When odr hash is not allocated, to nothing.
23509 (odr_based_tbaa_p): New function.
23510 (set_type_canonical_for_odr_type): New function.
23511 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23512 set_type_canonical_for_odr_type): New.
23513 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23514 ODR based TBAA are not equivalent to non-ODR types.
23516 2019-06-27 Martin Liska <mliska@suse.cz>
23518 PR tree-optimization/90974
23519 PR rtl-optimization/90975
23520 PR rtl-optimization/90976
23522 PR tree-optimization/91017
23523 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23525 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23526 initial commit of IRA.
23527 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23529 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23530 Remove unused mode1.
23531 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23534 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23537 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23538 instead of register_operand for operands[1], add m to its constraints
23539 if operands[2] uses "C" constraint. Ensure in condition that if
23540 operands[2] is not 0, then operands[1] is not a MEM. For last two
23541 alternatives, use unaligned loads instead of aligned if operands[1] is
23542 misaligned_operand.
23544 2019-06-27 Martin Liska <mliska@suse.cz>
23546 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23548 * bt-load.c (move_btr_def): Likewise.
23549 * builtins.c (expand_builtin_apply_args_1): Likewise.
23550 (expand_builtin_apply): Likewise.
23551 * cfgexpand.c (expand_asm_stmt): Likewise.
23552 (construct_init_block): Likewise.
23553 * cfghooks.c (verify_flow_info): Likewise.
23554 * cfgloopmanip.c (remove_path): Likewise.
23555 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23556 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23557 * combine.c (simplify_if_then_else): Likewise.
23558 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23559 (choose_basereg): Likewise.
23560 (ix86_expand_prologue): Likewise.
23561 (ix86_preferred_output_reload_class): Likewise.
23562 * cselib.c (cselib_record_sets): Likewise.
23563 * df-scan.c (df_scan_alloc): Likewise.
23564 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23565 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23566 * emit-rtl.c (try_split): Likewise.
23567 * graphite-scop-detection.c (assign_parameter_index_in_region):
23569 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23570 * ira-color.c (setup_profitable_hard_regs): Likewise.
23571 * ira.c (rtx_moveable_p): Likewise.
23572 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23573 * read-rtl.c (read_subst_mapping): Likewise.
23574 * regrename.c (scan_rtx): Likewise.
23575 * reorg.c (fill_slots_from_thread): Likewise.
23576 * tree-inline.c (tree_function_versioning): Likewise.
23577 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23578 * tree-ssa-sink.c (statement_sink_location): Likewise.
23579 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23580 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23581 (vect_create_epilog_for_reduction): Likewise.
23582 * tree.c (build_nonstandard_integer_type): Likewise.
23584 2019-06-27 Richard Biener <rguenther@suse.de>
23586 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23588 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23590 PR tree-optimization/89772
23591 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23592 out-of-bound accesses checking.
23594 2019-06-27 Martin Liska <mliska@suse.cz>
23596 PR tree-optimization/91014
23597 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23598 when LHS is NULL_TREE.
23600 2019-06-27 Martin Liska <mliska@suse.cz>
23602 * symbol-summary.h (traverse): Pass
23603 argument a to the call of callback.
23604 (gt_ggc_mx): Mark arguments as unused.
23605 (gt_pch_nx): Likewise.
23607 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23610 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23613 2019-06-26 Jeff Law <law@redhat.com>
23615 PR tree-optimization/90883
23616 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23617 (delete_dead_or_redundant_assignment): Likewise.
23619 PR tree-optimization/90883
23620 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23621 * tree-ssa-dse.c: Update various comments to distinguish between
23622 dead and redundant stores.
23623 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23624 (dse_optimize_redundant_stores): New function.
23625 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23626 Distinguish between dead and redundant calls in dump output. All
23628 (delete_dead_or_redundant_assignment): Similarly for assignments.
23629 (dse_optimize_stmt): Handle _CHK variants. For statements which
23630 store 0 into multiple memory locations, try to prove a subsequent
23631 store is redundant.
23633 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23636 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23637 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23639 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23641 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23642 (branch_islands): New extern.
23643 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23644 * config/rs6000/rs6000.c: .. here.
23646 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23648 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23649 (powerpc*-*-*) ... to here.
23651 2019-06-26 Jeff Law <law@redhat.com>
23653 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23654 memcpy, memmove and memset builtins.
23655 (maybe_trim_memstar_call): Likewise.
23657 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23659 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23661 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23663 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23665 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23667 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23669 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23671 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23674 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23676 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23678 2019-06-26 Richard Biener <rguenther@suse.de>
23681 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23683 2019-06-26 Richard Biener <rguenther@suse.de>
23685 * lto-streamer.h (lto_bitmap_alloc): Remove.
23686 (lto_bitmap_free): Likewise.
23687 * lto-streamer.c (lto_bitmap_alloc): Remove.
23688 (lto_bitmap_free): Likewise.
23689 (lto_obstack): Likewise.
23690 (lto_obstack_initialized): Likewise.
23691 * lto-streamer-out.c (lto_output): Use own obstack for local
23692 bitmap, free it consistently.
23694 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23697 * config/i386/sse.md
23698 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23699 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23700 insns if operands[2] is misaligned_operand.
23702 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23704 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23706 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23709 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23711 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23713 2019-06-26 Martin Liska <mliska@suse.cz>
23715 PR tree-optimization/90973
23716 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23717 epilogue_cost_vec instead of prologue_cost_vec for
23720 2019-06-26 Martin Liska <mliska@suse.cz>
23722 * bb-reorder.c (connect_better_edge_p): Add missing else
23723 statement in the middle of if-else statements.
23725 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23726 H.J. Lu <hongjiu.lu@intel.com>
23727 Olga Makhotina <olga.makhotina@intel.com>
23729 * common/config/i386/i386-common.c
23730 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23731 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23732 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23733 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23734 (ix86_handle_option): Handle -mavx512vp2intersect.
23735 * config/i386/avx512vp2intersectintrin.h: New.
23736 * config/i386/avx512vp2intersectvlintrin.h: New.
23737 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23738 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23739 AVX512VP2INTERSECT.
23740 * config/i386/i386-builtin-types.def: Add new types.
23741 * config/i386/i386-builtin.def: Add new builtins.
23742 * config/i386/i386-builtins.c: (enum processor_features): Add
23743 F_AVX512VP2INTERSECT.
23744 (static const _isa_names_table isa_names_table): Ditto.
23745 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23746 __AVX512VP2INTERSECT__.
23747 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23748 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23749 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23750 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23751 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23752 * config/i386/i386-options.c (ix86_target_string): Add
23753 -mavx512vp2intersect.
23754 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23755 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23756 P2HImode and P2QImode.
23757 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23758 number for P2QImode and P2HImode.
23759 (ix86_regmode_natural_size): New function.
23760 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23761 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23762 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23763 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23764 * config/i386/i386.opt: Add -mavx512vp2intersect.
23765 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23766 avx512vp2intersectvlintrin.h.
23767 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23768 (define_mode_iterator VI48_AVX512VP2VL): New.
23769 (avx512vp2intersect_2intersect<mode>,
23770 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23771 * config.gcc: Add avx512vp2intersectvlintrin.h and
23772 avx512vp2intersectintrin.h to extra_headers.
23773 * doc/invoke.texi: Document -mavx512vp2intersect.
23775 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23777 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23779 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23781 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23782 savres_routine_syms, savres_routine_name, morestack_ref,
23783 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23784 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23785 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23786 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23787 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23788 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23789 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23790 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23791 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23792 get_stack_clash_protection_probe_interval,
23793 get_stack_clash_protection_guard_size,
23794 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23795 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23796 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23797 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23798 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23799 gen_frame_mem_offset, rs6000_savres_routine_name,
23800 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23801 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23802 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23803 rs6000_global_entry_point_prologue_needed_p,
23804 rs6000_get_separate_components, rs6000_components_for_bb,
23805 rs6000_disqualify_components, rs6000_emit_prologue_components,
23806 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23807 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23808 rs6000_output_savres_externs, rs6000_output_function_prologue,
23809 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23810 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23811 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23812 rs6000_output_function_epilogue, gen_add3_const,
23813 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23814 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23816 (machine_function): Moved to rs6000.h.
23817 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23819 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23820 savres_routine_syms, savres_routine_name, morestack_ref,
23821 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23822 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23823 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23824 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23825 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23826 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23827 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23828 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23829 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23830 get_stack_clash_protection_probe_interval,
23831 get_stack_clash_protection_guard_size,
23832 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23833 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23834 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23835 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23836 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23837 gen_frame_mem_offset, rs6000_savres_routine_name,
23838 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23839 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23840 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23841 rs6000_global_entry_point_prologue_needed_p,
23842 rs6000_get_separate_components, rs6000_components_for_bb,
23843 rs6000_disqualify_components, rs6000_emit_prologue_components,
23844 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23845 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23846 rs6000_output_savres_externs, rs6000_output_function_prologue,
23847 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23848 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23849 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23850 rs6000_output_function_epilogue, gen_add3_const,
23851 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23852 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23853 to here from rs6000.c.
23854 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23855 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23856 quad_address_offset_p) Moved to here from rs6000.c.
23857 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23858 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23861 2019-06-25 Martin Liska <mliska@suse.cz>
23863 * hash-table.c (hashtab_chk_error): Move here from ...
23864 * hash-table.h (hashtab_chk_error): ... here.
23866 2019-06-25 Martin Liska <mliska@suse.cz>
23868 PR tree-optimization/90978
23869 * df-scan.c (df_update_entry_block_defs): Remove dead else
23871 (df_update_exit_block_uses): Likewise.
23873 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23874 Andrew Stubbs <ams@codesourcery.com>
23876 * config.gcc (thread_file): Set to gcn for AMD GCN.
23877 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23878 (TARGET_EMUTLS_VAR_INIT): New hook.
23880 2019-06-25 Martin Jambor <mjambor@suse.cz>
23883 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23885 2019-06-25 Richard Biener <rguenther@suse.de>
23887 PR tree-optimization/90930
23888 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23889 into parallel form in the last pass instance.
23891 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23893 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23894 (arc_legitimize_pic_address): Simplify and cleanup the function.
23895 (SYMBOLIC_CONST): Remove.
23896 (prepare_pic_move): Likewise.
23897 (prepare_move_operands): Handle complex mov cases here.
23898 (arc_legitimize_address_0): Remove call to
23899 arc_legitimize_pic_address.
23900 (arc_legitimize_address): Remove call to
23901 arc_legitimize_tls_address.
23902 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23903 (movhi_insn): Likewise.
23905 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23907 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23909 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23910 format of "__intN" types for UINTMAX_TYPE.
23911 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23912 format of "__intN" types for SIZETYPE.
23913 * tree.c (build_common_tree_nodes): Accept "__intN__"
23914 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23915 * doc/invoke.texi: Document that __intN__ disables pedantic
23918 2019-06-25 Jan Hubicka <jh@suse.cz>
23920 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23921 base2_alias_set is non-zero before doing TBAA based disambiguation.
23923 2019-06-25 Martin Liska <mliska@suse.cz>
23925 PR tree-optimization/90973
23926 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23927 of prologue and epilogue.
23929 2019-06-24 Jan Hubicka <jh@suse.cz>
23931 * ipa-utils.h (type_with_linkage_p): Verify that type is
23933 (odr_type_p): Remove extra return.
23934 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23935 hash STRING_FLAG only for arrays and integers.
23936 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23937 Update analogously.
23938 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23940 * print-tree.c (print_node): Print cxx-odr-p
23942 * tree.c (need_assembler_name_p): Also check that type
23944 (verify_type_variant): Update verification of SRING_FLAG;
23945 also check CXX_ODR_P.
23946 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23947 (TYPE_STRING_FLAG): Use it.
23948 (TYPE_CXX_ODR_P): New macro.
23949 * dwarf2out.c (gen_array_type_die): First check that type
23950 is an array and then test string flag.
23952 2019-06-24 Richard Biener <rguenther@suse.de>
23954 PR tree-optimization/90972
23955 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23956 in common code, dealing with STRING_CST properly.
23958 2019-06-24 Richard Biener <rguenther@suse.de>
23960 PR tree-optimization/90930
23961 PR tree-optimization/90316
23962 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23963 decrement of limit.
23965 2019-06-24 Martin Sebor <msebor@redhat.com>
23967 * tree-pretty-print.h: Remove unnecessary punctuation characters
23969 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23971 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23973 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23974 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23975 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23977 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23979 * config/rs6000/darwin.h: Handle GCC target pragma.
23981 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23983 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23985 2019-06-22 Jeff Law <law@redhat.com>
23987 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23989 2019-06-22 Jan Hubicka <jh@suse.cz>
23991 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23992 give up on bitfields; continue searching for different refs
23995 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23997 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23998 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23999 containing the offset as possible simd lane access. Look through
24000 widening conversion. Move the
24001 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24003 2019-06-21 Richard Biener <rguenther@suse.de>
24005 PR tree-optimization/90930
24006 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24007 flag on new stmts to avoid re-processing them.
24009 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
24011 PR c++/90875 - added -Wswitch-outside-range option
24012 * doc/invoke.texi (Wswitch-outside-range): Document.
24014 2019-06-21 Jeff Law <law@redhat.com>
24016 PR tree-optimization/90949
24017 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24018 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24020 2019-06-21 Richard Biener <rguenther@suse.de>
24023 * dwarf2out.c (prune_unused_types_walk): Always consider
24024 function-local extern declarations as used.
24026 2019-06-21 Richard Biener <rguenther@suse.de>
24028 PR tree-optimization/90913
24029 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24030 the scalar variant of if-conversion versioning.
24032 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24034 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24035 create another "omp scan inscan exclusive" array if
24036 !ctx->scan_inclusive.
24037 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24038 (lower_omp_scan): Likewise.
24039 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24040 2-bit bitfield for simd_lane_access_p member.
24041 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24042 aux == (void *)-4 as simd lane access.
24043 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
24044 comment with permutations to show the canonical permutation order.
24045 (vectorizable_scan_store): Handle exclusive scan.
24046 (vectorizable_store): Call vectorizable_scan_store even for
24047 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24049 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24050 "omp simd array" arrays with one byte elements.
24052 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24054 * config/alpha/alpha.md (@unaligned_store<mode>):
24055 Rename from unaligned_store<mode>.
24056 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24057 * config/alpha/sync.md (@load_locked_<mode>): Rename
24058 from load_locked_<mode>.
24059 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24060 (@atomic_compare_and_swap<mode>_1): Rename
24061 from atomic_compare_and_swap<mode>_1.
24062 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24063 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24064 Use gen_reload_in_aligned and gen_unaligned_store.
24065 (emit_load_locked): Remove.
24066 (emit_store_conditional): Ditto.
24067 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24068 (alpha_split_compare_and_swap): Ditto.
24069 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24070 (alpha_split_compare_and_swap_12): Use gen_load_locked
24071 and gen_store_conditional.
24072 (alpha_split_atomic_exchange): Ditto.
24073 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24074 (alpha_split_atomic_exchange_12): Use gen_load_locked
24075 and gen_store_conditional.
24077 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24079 * config/aarch64/aarch64-errata.h: New file.
24080 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24081 (CA53_ERR_843419_SPEC): Delete.
24082 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24083 * config/aarch64/aarch64-linux.h: Likewise.
24084 * config/aarch64/aarch64-netbsd.h: Likewise.
24085 * config/aarch64/aarch64-freebsd.h: Likewise.
24087 2019-06-20 Marek Polacek <polacek@redhat.com>
24089 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24091 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24093 * config/rs6000/rs6000.md (isa attribute): Add support for
24094 for a future processor.
24096 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24099 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24100 standard scalar operation pattern for V2DF.
24101 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24102 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24103 (*ieee_<ieee_maxmin><mode>3): Likewise.
24104 (vec_setv2df_0): Likewise.
24106 2019-06-20 Jan Hubicka <jh@suse.cz>
24108 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24109 parameter; it has no use in gimple memory model.
24110 (indirect_ref_may_alias_decl_p): Update.
24112 2019-06-20 Martin Liska <mliska@suse.cz>
24114 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24117 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24119 * tree-vect-stmts.c (enum scan_store_kind): New type.
24120 (scan_store_can_perm_p): Change last argument from int * to
24121 vec<enum scan_store_kind> *, record precisely which permutations
24122 need whole vector left shift or that plus VEC_COND_EXPR.
24123 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24124 and additional VEC_COND_EXPR only for those iterations that need it.
24126 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24128 * config.gcc: Fix ARM --with-fpu checking and error message.
24130 2019-06-19 Marek Polacek <polacek@redhat.com>
24132 PR c++/60364 - noreturn after first decl not diagnosed.
24133 * attribs.c (get_attribute_namespace): No longer static.
24134 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24136 (attr_noreturn_exclusions): Make it extern.
24137 * attribs.h (get_attribute_namespace): Declare.
24138 * tree-inline.c (function_attribute_inlinable_p): Use
24139 get_attribute_name.
24141 2019-06-19 Martin Sebor <msebor@redhat.com>
24143 PR tree-optimization/90626
24144 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24146 PR tree-optimization/90626
24147 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24148 (handle_builtin_string_cmp): Call it.
24150 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24152 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24153 and DARWIN_NOPIE_SPEC.
24154 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24155 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24156 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24157 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24158 (DARWIN_EXPORT_DYNAMIC): Delete.
24159 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24160 and pie options processing to darwin.h.
24161 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24163 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24165 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24166 in computing the number of options to be moved.
24168 2019-06-19 Maya Rashish <coypu@sdf.org>
24170 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24171 (CLEAR_INSN_CACHE) Use it.
24173 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24175 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24177 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24179 PR middle-end/84521
24180 * builtins.c (expand_builtin_setjmp_setup): Save
24181 hard_frame_pointer_rtx.
24182 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24184 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24186 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24188 (remove_reg_equal_offset_note): Remove unused function.
24189 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24191 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24192 (arc_builtin_setjmp_frame_value): Remove function.
24193 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24194 (avr_builtin_setjmp_frame_value): Remove function.
24195 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24196 (ix86_builtin_setjmp_frame_value): Remove function.
24197 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24198 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24199 (sparc_builtin_setjmp_frame_value): Remove function.
24200 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24201 (vax_builtin_setjmp_frame_value): Remove function.
24202 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24203 pointer if has_nonlocal_label.
24205 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24207 * doc/md.texi: Document vec_shl_<mode> pattern.
24208 * optabs.def (vec_shl_optab): New optab.
24209 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24210 argument, if == vec_shl_optab, check for left whole vector shift
24211 pattern rather than right shift.
24212 (expand_vec_perm_const): Add vec_shl_optab support.
24213 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24215 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24216 can be handled by vec_shl_optab.
24217 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24218 (check_scan_store): Use it.
24219 (vectorizable_scan_store): If target can't do normal permutations,
24220 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24222 * config/i386/sse.md (vec_shl_<mode>): New expander.
24224 * omp-low.c (lower_rec_input_clauses): Handle references properly
24226 (lower_omp_scan): Likewise.
24228 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24230 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24231 mem_mode is BLKmode.
24233 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24236 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24237 pointer adjustment for the case of no callee-saved registers and
24238 stack frame bigger than 128 bytes.
24240 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24242 PR middle-end/90862
24243 * omp-low.c (check_omp_nesting_restrictions): Handle
24244 GF_OMP_TARGET_KIND_OACC_DECLARE.
24246 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24248 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24249 (@add<mode>3_carry): Rename from add<mode>3_carry.
24250 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24251 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24252 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24253 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24254 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24255 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24256 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24257 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24258 (cmpstrnsi): Use gen_cmp_1.
24259 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24260 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24261 (@umonitor_<mode>): Rename from umonitor_<mode>.
24262 * config/i386/i386-expand.c (ix86_expand_copysign):
24263 Use gen_copysign3_const and gen_copysign3_var.
24264 (ix86_expand_xorsign): Use gen_xorsign3_1.
24265 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24266 gen_sub3_carry_ccgz and gen_cmp1.
24267 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24268 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24269 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24270 (ix86_split_lshr): Ditto.
24271 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24273 2019-06-18 Jason Merrill <jason@redhat.com>
24275 * tree.c (build_constructor): Add MEM_STAT_DECL.
24277 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24279 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24280 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24281 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24282 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24283 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24284 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24285 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24286 Use CC_NZC instead of CC.
24287 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24288 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24289 (aarch64_print_operand): Handle E_CC_NZCmode.
24290 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24291 of gen_set_clobber_cc.
24293 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24295 * config/aarch64/aarch64-sve.md: Tabify file.
24297 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24299 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24300 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24301 * config/aarch64/aarch64-sve.md: Use it.
24303 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24305 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24306 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24307 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24308 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24309 (aarch64_expand_sve_vec_cmp_int): Use it.
24310 (aarch64_expand_sve_vec_cmp_float): Likewise.
24311 * config/aarch64/aarch64-sve.md: Likewise throughout.
24313 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24314 Kugan Vivekanandarajah <kuganv@linaro.org>
24316 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24317 (*cond_<optab><mode>_z): Fold into...
24318 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24319 operand 4 can be tied to operand 0 (either inherently or via RA).
24321 2019-06-18 Richard Biener <rguenther@suse.de>
24324 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24325 as if optimized away.
24327 2019-06-18 Tom de Vries <tdevries@suse.de>
24329 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24330 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24331 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24333 (define_insn "@set_softstack_<mode>"): ... this.
24334 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24335 (define_insn "@omp_simt_enter_<mode>"): ... this.
24336 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24337 (define_insn "@omp_simt_exit_<mode>"): ... this.
24339 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24341 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24342 vf parameter. Restore the previous iv step of nscalars_step,
24343 but give it iv_type rather than compare_type. Tweak code order
24344 to match the comments.
24345 (vect_set_loop_condition_masked): Update accordingly.
24346 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24347 for iv_precision. Tweak comment formatting.
24349 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24351 * config/darwin.c: Strip trailing whitespace.
24353 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24355 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24356 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24358 2019-06-18 Martin Jambor <mjambor@suse.cz>
24361 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24362 caller does not have flag_ipa_cp set.
24364 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24366 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24367 from "*fold_left_plus_<mode>", updated operands order.
24368 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24369 * internal-fn.c (mask_fold_left_direct): New define.
24370 (expand_mask_fold_left_optab_fn): Likewise.
24371 (direct_mask_fold_left_optab_supported_p): Likewise.
24372 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24373 * optabs.def (mask_fold_left_plus_optab): New optab.
24374 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24375 masked internal_fn for a reduction ifn.
24376 (vectorize_fold_left_reduction): Add support for masking reductions.
24378 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24380 PR middle-end/80791
24381 * target.def (predict_doloop_p): New hook.
24382 * targhooks.h (default_predict_doloop_p): New declaration.
24383 * targhooks.c (default_predict_doloop_p): New function.
24384 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24385 * doc/tm.texi: Regenerate.
24386 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24387 (TARGET_PREDICT_DOLOOP_P): New macro.
24388 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24390 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24392 * omp-low.c (struct omp_context): Add scan_inclusive field.
24393 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24395 (struct omplow_simd_context): Add lastlane member.
24396 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24397 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24399 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24400 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24401 (lower_omp_scan): New function.
24402 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24403 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24404 check 3rd argument if present rather than 2nd.
24405 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24406 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24408 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24409 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24411 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24412 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24413 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24415 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24416 IFN_GOMP_SIMD_LANE argument.
24417 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24418 encoded ->aux value.
24419 * tree-vect-stmts.c: Include attribs.h.
24420 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24421 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24423 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24424 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24426 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24429 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24430 (*nabs<mode>2_1): Ditto.
24431 (nabs sse-reg splitter): New splitter.
24432 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24434 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24436 PR bootstrap/90873.
24437 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24440 2019-06-17 Tom de Vries <tdevries@suse.de>
24442 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24443 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24444 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24446 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24448 (define_insn "omp_simt_enter_insn"): Rename to ...
24449 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24450 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24451 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24452 gen_omp_simt_enter_si.
24453 (define_expand "omp_simt_exit"): New.
24454 (define_insn "omp_simt_exit"): Rename to ...
24455 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24458 2019-06-17 Matthew Green <mrg@eterna.com.au>
24459 Maya Rashish <coypu@sdf.org>
24461 * config.gcc (aarch64*-*-netbsd*): New target.
24462 * config/aarch64/aarch64-netbsd.h: New file.
24463 * config/aarch64/t-aarch64-netbsd: Likewise.
24465 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24467 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24468 the access path from base to first VIEW_CONVERT_EXPR or
24471 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24473 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24474 access path on BIT_FIELD_REFs.
24476 2019-06-17 Martin Liska <mliska@suse.cz>
24479 * ipa-utils.h (odr_type_p): Remove dead code.
24481 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24483 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24484 alternative Solaris 11.4 format.
24485 * configure: Regenerate.
24487 2019-06-17 Tom de Vries <tdevries@suse.de>
24489 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24490 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24492 (define_insn "call_value_insn"): Rename to ...
24493 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24495 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24498 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24500 PR middle-end/64242
24501 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24502 frame clobbers and schedule block.
24503 (builtin_longjmp): Likewise.
24505 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24507 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24508 describe how to perform MSPABI compliant 64-bit shift.
24509 * config/msp430/msp430.md (ashldi3): New define_expand.
24510 (ashrdi3): New define_expand.
24511 (lshrdi3): New define_expand.
24513 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24515 * doc/sourcebuild.texi: Document new effective target keyword
24518 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24520 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24521 indirect_refs_may_alias_p): Revert accidental commits.
24523 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24524 at the end of structures.
24526 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24528 * config/darwin.c (machopic_indirect_call_target): Use renamed
24529 darwin_picsymbol_stubs to decide on output.
24530 (darwin_override_options): Handle darwin_picsymbol_stubs.
24531 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24532 (LD64_VERSION): Revise default.
24533 * config/darwin.opt: (mpic-symbol-stubs): New option.
24534 (darwin_picsymbol_stubs): New variable.
24535 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24536 rename to TARGET_MACHO_PICSYM_STUBS.
24537 * config/i386/i386.c (output_pic_addr_const): Likewise.
24538 * config/i386/i386.h Likewise.
24539 * config/rs6000/darwin.h: Likewise.
24540 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24541 darwin_picsymbol_stubs.
24543 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24545 * config/darwin.opt (prebind, noprebind, seglinkedit,
24546 noseglinkedit): Add RejectNegative.
24548 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24550 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24551 in my previous patch.
24553 2019-06-16 Tom de Vries <tdevries@suse.de>
24555 PR tree-optimization/89376
24556 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24558 2019-06-15 Maya Rashish <coypu@sdf.org>
24560 * doc/invoke.texi (Spec Files): Update location of the
24563 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24565 * doc/extend.texi (Common Function Attributes): Clarify
24566 no_sanitize. Fix grammar.
24568 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24570 * tree-ssa-alias.c (alias_stats): Add
24571 nonoverlapping_component_refs_p_may_alias,
24572 nonoverlapping_component_refs_p_no_alias,
24573 nonoverlapping_component_refs_of_decl_p_may_alias,
24574 nonoverlapping_component_refs_of_decl_p_no_alias.
24575 (dump_alias_stats): Dump them.
24576 (nonoverlapping_component_refs_of_decl_p): Add stats.
24577 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24580 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24582 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24583 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24585 (*anddi3_doubleword): Split before reload. Merge with
24586 anddi->zext pre-reload splitter.
24587 (*andndi3_doubleword): Split before reload.
24588 (*<code>di3_doubleword): Ditto.
24589 (*one_cmpldi2_doubleword): Ditto.
24591 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24593 PR middle-end/90779
24594 * gimplify.c: Include omp-offload.h and context.h.
24595 (gimplify_bind_expr): Add "omp declare target" attributes
24596 to static block scope variables inside of target region or target
24599 2019-06-15 Tom de Vries <tdevries@suse.de>
24601 PR tree-optimization/90009
24602 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24603 Return NULL if bb contains IFN_UNIQUE.
24605 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24607 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24608 (un): New define_mode_attr.
24609 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24610 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24611 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24613 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24615 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24617 * config/darwin.opt: Add RejectNegative where needed, reorder
24618 and add minimal functional descriptions.
24620 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24622 PR rtl-optimization/90765
24623 * calls.c (update_stack_alignment_for_call): New function.
24624 (expand_call): Call update_stack_alignment_for_call when
24625 outgoing parameter is passed in the stack.
24626 (emit_library_call_value_1): Likewise.
24627 * function.c (locate_and_pad_parm): Don't update
24628 stack_alignment_needed and preferred_stack_boundary.
24630 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24633 * config/i386/i386-features.c
24634 (dimode_scalar_chain::compute_convert_gain): Replace
24635 mmxsse_to_integer with sse_to_integer.
24636 * config/i386/i386.c (ix86_register_move_cost): Verify that
24637 moves between MMX and non-MMX units require secondary memory.
24638 Correct costs of moves between SSE and integer units.
24639 * config/i386/i386.h (processor_costs): Rename cost of moving
24640 SSE register to integer to sse_to_integer. Rename cost of
24642 2019-06-14 Matt Thomas <matt@3am-software.com>
24643 Matthew Green <mrg@eterna.com.au>
24644 Nick Hudson <skrll@netbsd.org>
24645 Maya Rashish <coypu@sdf.org>
24646 Richard Earnshaw <rearnsha@arm.com>
24648 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24649 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24650 * config/arm/netbsd-eabi.h: New file.
24651 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24653 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24654 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24655 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24656 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24658 2019-06-14 Richard Biener <rguenther@suse.de>
24660 * tree-loop-distribution.c (classify_partition): Return
24661 whether a reduction appeared in all partitions and do not
24662 stop builtin detection because of this.
24663 (distribute_loop): Sort a non-builtin partition last if
24664 there's a reduction in all partitions and make sure the
24665 partition prevailing as last is not a builtin.
24667 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24670 * ipa-prop.c (add_to_agg_contents_list): New function.
24671 (clobber_by_agg_contents_list_p): Likewise.
24672 (extract_mem_content): Likewise.
24673 (get_place_in_agg_contents_list): Delete.
24674 (determine_known_aggregate_parts): Renamed from
24675 determine_locally_known_aggregate_parts. New parameter
24678 2019-06-13 Martin Sebor <msebor@redhat.com>
24680 PR tree-optimization/90662
24681 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24684 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24687 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24688 dbase is not TARGET_MEM_REF.
24690 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24692 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24694 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24695 Do not generate DImode extends for 32bit targets.
24696 (and->zext post-reload splitter): Use gen_extend_insn
24697 instead of indirect functions.
24698 (anddi->zext pre-reload splitter): New.
24699 (*zext<mode>_doubleword_and): Remove.
24700 (*zext<mode>_doubleword): Ditto.
24701 (*zextsi_doubleword): Dittto.
24703 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24705 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24706 Use gen_sub3_insn instead of indirect function.
24707 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24709 (ix86_adjust_counter): Ditto.
24711 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24712 Lijia He <helijia@linux.ibm.com>
24714 PR tree-optimization/77820
24715 * tree-ssa-threadedge.c
24716 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24718 (thread_across_edge): Add call to
24719 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24721 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24723 * config/darwin-driver.c (validate_macosx_version_min): New.
24724 (darwin_default_min_version): Cleanup and validate supplied version.
24725 (darwin_driver_init): Likewise and push cleaned version into opts.
24727 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24729 PR tree-optimization/90869
24730 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24731 converts in MEM_REF referencing decl rather than view converts
24732 from decl type to MEM_REF type.
24734 2019-06-13 Richard Biener <rguenther@suse.de>
24736 PR tree-optimization/90856
24737 * tree-sra.c (build_ref_for_model): Only use
24738 build_reconstructed_reference when address-spaces are the same.
24740 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24742 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24743 wrap ei variable name in the declaration in ()s.
24744 (nvptx_single): Actually use mode_label variable. Formatting fix.
24746 2019-06-13 Richard Biener <rguenther@suse.de>
24748 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24749 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24750 also return the condition stmt.
24751 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24752 loop we can version and version that, reusing the loop version
24753 created by if-conversion instead of versioning again.
24755 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24757 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24759 * tree-vrp (value_range_base::may_contain_p): Call into
24760 value_inside_range.
24761 (value_inside_range): Make private inside value_range_base class.
24762 Take min/max from *this.
24763 (range_includes_p): Remove.
24764 * tree-vrp.h (value_range_base): Add value_inside_range.
24765 (range_includes_p): Remove.
24766 (range_includes_zero_p): Call may_contain_p.
24767 * vr-values.c (compare_range_with_value): Same.
24769 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24771 * doc/extend.texi (ARC Function Attributes): Update info.
24773 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24775 PR tree-optimization/89713
24776 * doc/invoke.texi (-ffinite-loops): Document new option.
24777 * common.opt (-ffinite-loops): New option.
24778 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24779 IFN_GOACC_LOOP calls as necessary.
24780 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24782 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24783 IFN_GOACC_LOOP call is not used.
24784 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24786 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24789 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24790 compare_type is not with Pmode size, we will create an IV with
24791 Pmode size with truncated use (i.e. converted to the correct type).
24792 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24793 (vect_iv_limit_for_full_masking): New. Factored out of
24794 vect_set_loop_condition_masked.
24795 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24796 (vect_iv_limit_for_full_masking): Declare.
24798 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24801 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24802 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24803 (get_alias_ptr_type_for_ptr_address): Likewise.
24804 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24805 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24806 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24809 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24811 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24813 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24815 * common/config/pru/pru-common.c: New file.
24816 * config.gcc: Add PRU target.
24817 * config/pru/alu-zext.md: New file.
24818 * config/pru/constraints.md: New file.
24819 * config/pru/predicates.md: New file.
24820 * config/pru/pru-opts.h: New file.
24821 * config/pru/pru-passes.c: New file.
24822 * config/pru/pru-pragma.c: New file.
24823 * config/pru/pru-protos.h: New file.
24824 * config/pru/pru.c: New file.
24825 * config/pru/pru.h: New file.
24826 * config/pru/pru.md: New file.
24827 * config/pru/pru.opt: New file.
24828 * config/pru/t-pru: New file.
24829 * doc/extend.texi: Document PRU pragmas.
24830 * doc/invoke.texi: Document PRU-specific options.
24831 * doc/md.texi: Document PRU asm constraints.
24833 2019-06-12 Martin Sebor <msebor@redhat.com>
24835 PR middle-end/90676
24836 * tree-pretty-print.c (dump_mem_ref): New function. Include
24837 MEM_REF type in output when different size than operand.
24838 (dump_generic_node): Move code to dump_mem_ref and call it.
24840 2019-06-12 Martin Sebor <msebor@redhat.com>
24842 PR tree-optimization/90662
24843 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24846 2019-06-12 Tom de Vries <tdevries@suse.de>
24848 PR tree-optimization/90009
24849 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24851 2019-06-12 Martin Liska <mliska@suse.cz>
24853 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24855 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24856 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24857 Do not sanitize created maps.
24859 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24861 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24862 value_range::singleton_p.
24863 * tree-vrp.c (value_range_constant_singleton): Remove.
24864 * tree-vrp.h (value_range_constant_singleton): Remove.
24865 * vr-values.c (vr_values::singleton): Use
24866 value_range::singleton_p.
24868 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24871 * cfgexpand.c (align_local_variable): Add really_expand argument,
24872 don't SET_DECL_ALIGN if it is false.
24873 (add_stack_var): Add really_expand argument, pass it through to
24874 align_local_variable.
24875 (expand_one_stack_var_1): Pass true as really_expand to
24876 align_local_variable.
24877 (expand_one_ssa_partition): Pass true as really_expand to
24879 (expand_one_var): Pass really_expand through to add_stack_var.
24881 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24883 * config/arm/iterators.md (VABAL): New int iterator.
24884 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24885 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24886 UNSPEC_VABAL_U values.
24888 2019-06-12 Martin Liska <mliska@suse.cz>
24890 * value-prof.c (stream_out_histogram_value): Only first value
24893 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24896 * symtab.c (symtab_node::set_section): Allow being called on aliases
24897 as long as they aren't analyzed yet.
24899 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24901 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24902 to `mips_set_text_contents_type' to indicate whether a
24903 non-debug insn follows.
24905 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24907 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24908 enabling -mpcrel by default.
24909 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24910 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24911 that the test against -mcpu=future is done first. Then test if
24912 -mprefixed-addr is on for -mpcrel.
24913 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24915 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24918 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24919 instead of and.u%d.
24921 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24923 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24925 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24927 PR c++/90449 - add -Winaccessible-base option.
24928 * doc/invoke.texi (Winaccessible-base): Document.
24930 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24932 PR tree-optimization/62041
24933 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24935 2019-06-11 Jason Merrill <jason@redhat.com>
24937 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24938 * tree.c (get_tree_code_name): Likewise.
24939 * print-tree.c (print_node): Only briefly print a node with an
24942 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24945 * trans-mem.c (tm_memopt_compute_available): Add assertion
24946 that blocks is not empty. Formatting fix.
24948 2019-06-11 Martin Liska <mliska@suse.cz>
24951 * hash-table.h: Extend create_gcc, add one parameter
24952 that is passed into hash_table::hash_table.
24954 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24956 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24958 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24959 Emit clobber also for non-sse operations.
24960 (ix86_split_fp_absneg_operator): New function.
24961 * config/i386/i386.md (SSEMODEF): New mode iterator.
24962 (ssevecmodef): New mode attribute.
24963 (<code>tf2): Use absneg code iterator.
24964 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24965 Add three-operand AVX alternatives.
24966 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24967 Use absneg code iterator and X87MODEF mode iterator.
24968 (absneg fp_reg non-sse splitter): Call absneg code iterator
24969 and X87MODEF mode iterator.
24970 (absneg general_reg non-sse splitter): Use absneg code iterator
24971 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24972 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24973 code iterator. Add three-operand AVX alternative.
24974 (absneg sse_reg splitter): Use absneg code iterator
24975 and SSEMODEF mode iterator. Handle AVX operands.
24976 (absneg fp_reg splitter): Use absneg code iterator
24977 and MODEF mode iterator.
24978 (absneg general_reg splitter): Merge splitters using MODEF mode
24979 iterator. Use absneg code iterator. Call
24980 ix86_split_fp_absneg_operator.
24981 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24982 Do not enable for non-sse modes before reload.
24983 (CSGNMODE): Remove.
24984 (CSGNVMODE): Ditto.
24985 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24986 ssevecmodef mode attribute instaed of CSGNVMODE.
24987 (copysign<mode>3_const): Ditto.
24988 (copysign<mode>3_var): Ditto.
24989 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24990 Use absneg code iterator. Simplify code using std::swap.
24991 * config/i386/predicates.md (absneg_operator): Remove.
24993 2019-06-10 Martin Sebor <msebor@redhat.com>
24995 * gimple-fold.c (get_range_strlen): Update comment that didn't
24996 make it into r267503 or related commits.
24998 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
25000 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25001 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25003 2019-06-10 Jakub Jelinek <jakub@redhat.com>
25005 * tree.def (OMP_SCAN): New tree code.
25006 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25007 OMP_CLAUSE_EXCLUSIVE.
25008 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25009 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25010 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25011 OMP_CLAUSE_{IN,EX}CLUSIVE.
25012 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25013 * tree-nested.c (convert_nonlocal_reference_stmt,
25014 convert_local_reference_stmt, convert_gimple_call): Handle
25016 * tree-pretty-print.c (dump_omp_clause): Handle
25017 OMP_CLAUSE_{IN,EX}CLUSIVE.
25018 (dump_generic_node): Handle OMP_SCAN.
25019 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25020 * gimple.h (gomp_scan): New type.
25021 (is_a_helper <gomp_scan *>::test,
25022 is_a_helper <const gomp_scan *>::test): New templates.
25023 (gimple_build_omp_scan): Declare.
25024 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25025 gimple_omp_scan_set_clauses): New inline functions.
25026 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25027 * gimple.c (gimple_build_omp_scan): New function.
25028 (gimple_copy): Handle GIMPLE_OMP_SCAN.
25029 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25030 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25031 GIMPLE_OMP_TASKGROUP.
25032 (dump_gimple_omp_scan): New function.
25033 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25034 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25035 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25036 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25037 (is_gimple_stmt): Handle OMP_SCAN.
25038 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25039 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25040 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25041 mentioned in nested #pragma omp scan. Handle
25042 OMP_CLAUSE_{IN,EX}CLUSIVE.
25043 (gimplify_expr): Handle OMP_SCAN.
25044 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25045 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25047 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25050 2019-06-10 Martin Liska <mliska@suse.cz>
25052 * ipa-cp.c (ignore_edge_p): New function.
25053 (build_toporder_info): Use it.
25054 * ipa-inline.c (ignore_edge_p): New function.
25055 (inline_small_functions): Use it.
25056 * ipa-pure-const.c (ignore_edge_for_nothrow):
25057 Verify opt_for_fn for caller and callee.
25058 (ignore_edge_for_pure_const): Likewise.
25059 * ipa-reference.c (ignore_edge_p): Extend to check
25061 * ipa-utils.c (searchc): Refactor.
25062 * ipa-utils.h: Fix coding style.
25064 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25066 * config/arc/arc.c (arc_rtx_costs): Update costs.
25068 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25070 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25071 (arc_split_ior): Likewise.
25072 (arc_check_mov_const): Likewise.
25073 (arc_split_mov_const): Likewise.
25074 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25075 (arc_rtx_costs): Replace check Crr with Cax constraint.
25076 (prepare_move_operands): Cleanup, remove unused code.
25077 (arc_split_ior): New function.
25078 (arc_check_ior_const): Likewise.
25079 (arc_split_mov_const): Likewise.
25080 (arc_check_mov_const): Likewise.
25081 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25082 in define_insn_and_split pattern.
25083 (iorsi3): Likewise.
25084 (mulsi3_v2): Add new matching variant.
25085 (andsi3_i): Cleanup pattern.
25086 (rotrsi3_cnt1): Update pattern.
25087 (rotrsi3_cnt8): New pattern.
25088 (ashlsi2_cnt8): Likewise.
25089 (ashlsi2_cnt16): Likewise.
25090 * config/arc/constraints.md (C0p): Update constraint.
25092 (C0x): New pattern.
25093 (Cax): New pattern.
25095 2019-06-10 Martin Liska <mliska@suse.cz>
25097 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25098 Update coding style.
25099 (sem_item_optimizer::dump_cong_classes):
25100 Print how many items are in a non-singular class. Improve
25103 2019-06-10 Martin Liska <mliska@suse.cz>
25105 * value-prof.c (dump_histogram_value): Change dump format.
25106 (gimple_mod_subtract_transform): Remove legacy comment.
25108 2019-06-10 Martin Liska <mliska@suse.cz>
25110 * value-prof.c (dump_histogram_value): Print histogram values
25113 2019-06-10 Martin Liska <mliska@suse.cz>
25115 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25116 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25117 * ipa-profile.c (ipa_profile_generate_summary):
25118 Use get_most_common_single_value.
25119 * tree-profile.c (gimple_init_gcov_profiler):
25120 Instrument with __gcov_one_value_profiler_v2
25121 and __gcov_indirect_call_profiler_v4.
25122 * value-prof.c (dump_histogram_value):
25123 Print all values for HIST_TYPE_SINGLE_VALUE.
25124 (stream_out_histogram_value): Update assert for
25126 (stream_in_histogram_value): Set number of
25127 counters for HIST_TYPE_SINGLE_VALUE.
25128 (get_most_common_single_value): New.
25129 (gimple_divmod_fixed_value_transform):
25130 Use get_most_common_single_value.
25131 (gimple_ic_transform): Likewise.
25132 (gimple_stringops_transform): Likewise.
25133 (gimple_find_values_to_profile): Set number
25134 of counters for HIST_TYPE_SINGLE_VALUE.
25135 * value-prof.h (get_most_common_single_value): New.
25137 2019-06-10 Martin Liska <mliska@suse.cz>
25139 * hash-map.h: Pass default value to hash_table ctor.
25140 * hash-table.h: Add default value to call of a ctor.
25142 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25144 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25145 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25147 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25150 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25151 Call pa_output_function_label.
25152 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25153 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25154 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25156 (pa_linux_output_function_prologue): Declare.
25157 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25158 (pa_output_function_label): New.
25159 (pa_output_function_prologue): Revise to use pa_output_function_label.
25160 (pa_linux_output_function_prologue): New.
25161 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25163 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25165 * tree-vrp.h (value_range_base::intersect): New.
25166 (value_range::intersect_helper): Move from here...
25167 (value_range_base::intersect_helper): ...to here.
25168 * tree-vrp.c (value_range::intersect_helper): Rename to...
25169 (value_range_base::intersect_helper): ...this, and rewrite to
25170 return a value instead of modifying THIS in place.
25171 Also, move equivalence handling...
25172 (value_range::intersect): ...here, while calling intersect_helper.
25173 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25175 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25177 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25179 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25181 * Makefile.in (genprogerr): Add condmd.
25182 (genprog): Remove it here.
25184 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25186 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25188 2019-06-07 Richard Biener <rguenther@suse.de>
25191 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25192 that appear after user labels.
25194 2019-06-07 Martin Liska <mliska@suse.cz>
25196 * cselib.c (cselib_init): Disable hash table
25198 * hash-set.h: Pass new default argument to m_table.
25199 * hash-table.c: Add global variable with hash table
25200 sanitization limit.
25201 * hash-table.h (Allocator>::hash_table): Add new argument
25203 (hashtab_chk_error): New.
25204 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25205 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25206 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25208 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25210 * common.opt (flto-odr-type-merging): Ignore.
25211 * invoke.texi (-flto-odr-type-merging): Remove.
25212 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25213 (can_be_vtable_hashed_p): Remove.
25214 (hash_odr_vtable): Remove.
25215 (odr_vtable_hasher::hash): Remove.
25216 (types_same_for_odr): Remove.
25217 (types_odr_comparable): Remove.
25218 (odr_vtable_hasher::equal): Remove.
25219 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25220 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25221 (get_odr_type): Do not use vtable hash.
25222 (dump_odr_type): Remove commented out code.
25223 (build_type_inheritance_graph): Do not allocate vtable hash.
25224 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25225 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25226 (odr_type_p): Likewise.
25227 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25230 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25232 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25233 immediately after same_types_for_tbaa_p returns -1 and continue
25234 looking for possible exact match; if matching types are arrays
25235 watch for partial overlaps.
25236 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25237 (indirect_refs_may_alias_p): Do type based disambiguation first;
25240 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25242 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25244 2019-06-07 Martin Liska <mliska@suse.cz>
25246 * doc/invoke.texi: Remove param.
25247 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25249 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25250 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25251 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25252 * profile.c (instrument_values): Remove
25253 HIST_TYPE_INDIR_CALL_TOPN.
25254 * tree-profile.c (init_ic_make_global_vars):
25255 Always build __gcov_indirect_call only.
25256 (gimple_init_gcov_profiler): Remove usage
25257 of PARAM_INDIR_CALL_TOPN_PROFILE.
25258 (gimple_gen_ic_profiler): Likewise.
25259 * value-prof.c (dump_histogram_value): Likewise.
25260 (stream_in_histogram_value): Likewise.
25261 (gimple_indirect_call_to_profile): Likewise.
25262 (gimple_find_values_to_profile): Likewise.
25263 * value-prof.h (enum hist_type): Likewise.
25265 2019-06-07 Martin Liska <mliska@suse.cz>
25267 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25270 2019-06-07 Martin Liska <mliska@suse.cz>
25272 PR tree-optimization/78902
25273 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25274 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25275 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25276 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25277 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25278 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25279 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25280 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25281 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25282 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25283 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25284 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25285 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25287 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25288 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25289 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25290 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25291 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25292 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25293 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25294 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25295 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25296 warn_unused_result attribute.
25297 (BUILT_IN_STRDUP): Likewise.
25298 (BUILT_IN_STRNDUP): Likewise.
25299 (BUILT_IN_ALLOCA): Likewise.
25300 (BUILT_IN_CALLOC): Likewise.
25301 (BUILT_IN_MALLOC): Likewise.
25302 (BUILT_IN_REALLOC): Likewise.
25304 2019-06-06 Jim Wilson <jimw@sifive.com>
25307 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25308 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25309 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25311 2019-06-06 Martin Sebor <msebor@redhat.com>
25313 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25314 (handle_builtin_malloc): Remove trailing spaces.
25315 (handle_builtin_memset): Same.
25316 (handle_builtin_memcmp): Same.
25317 (compute_string_length): Same.
25318 (determine_min_objsize): Same.
25319 (handle_builtin_string_cmp): Same.
25320 (handle_char_store): Same. Break up excessively long line.
25322 2019-06-06 Martin Jambor <mjambor@suse.cz>
25324 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25327 2019-06-06 Martin Jambor <mjambor@suse.cz>
25329 * tree-sra.c (struct access): New field grp_same_access_path.
25330 (dump_access): Dump it.
25331 (build_reconstructed_reference): New function.
25332 (build_ref_for_model): Use it if possible.
25333 (path_comparable_for_same_access): New function.
25334 (same_access_path_p): Likewise.
25335 (sort_and_splice_var_accesses): Set the new flag.
25336 (analyze_access_subtree): Likewise.
25337 (propagate_subaccesses_across_link): Propagate zero value of the new
25338 flag down the access tree.
25340 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25342 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25343 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25344 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25345 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25348 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25350 PR tree-optimization/90332
25351 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25352 Handle VALS containing two vectors.
25353 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25355 (@aarch64_combinez<mode>): ... This.
25356 (*aarch64_combinez_be<mode>): Rename to...
25357 (@aarch64_combinez_be<mode>): ... This.
25358 (vec_init<mode><Vhalf>): New define_expand.
25359 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25361 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25363 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25364 library functions only when not optimizing for size.
25365 (ashlsi3): Likewise.
25366 (ashrhi3): Likewise.
25367 (ashrsi3): Likewise.
25368 (lshrhi3): Likewise.
25369 (lshrsi3): Likewise.
25371 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25373 PR rtl-optimization/88751
25374 * ira.c (ira): Use the number of the actually referenced registers
25375 when calculating the threshold.
25377 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25379 * configure: Regenerate.
25381 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25383 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25384 register if it is in memory, so the shift can be emulated with a rotate
25386 (ashrhi3): Likewise.
25387 (lshrhi3): Likewise.
25389 2019-06-06 Martin Liska <mliska@suse.cz>
25391 PR tree-optimization/87954
25392 * match.pd: Simplify mult where both arguments are 0 or 1.
25394 2019-06-06 Richard Biener <rguenther@suse.de>
25396 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25397 put equivalences on UNDEFINED ranges.
25398 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25399 Make sure to drop defs of stmts added during simplification
25402 2019-06-06 Richard Biener <rguenther@suse.de>
25404 * tree-ssa-structalias.c: Include tree-cfg.h.
25405 (make_heapvar): Do not make heap vars artificial.
25406 (find_func_aliases_for_builtin_call): Handle stack allocation
25408 (find_func_aliases): Delay processing of simple enough returns
25410 (set_uids_in_ptset): Adjust.
25411 (find_what_var_points_to): Likewise.
25412 (solve_constraints): Do not dump points-to sets here.
25413 (compute_points_to_sets): Post-process return statements,
25414 amending the escaped solution. Dump points-to sets afterwards.
25415 (ipa_pta_execute): Dump points-to sets.
25417 2019-06-06 Martin Liska <mliska@suse.cz>
25420 * doc/install.texi: Fix HTML headers and
25421 titles for 'Installing GCC' pages.
25423 2019-06-06 Martin Liska <mliska@suse.cz>
25425 * ipa-icf-gimple.h (dump_message_1): Remove.
25426 (dump_message): Likewise.
25427 (return_false_with_message_1): Print also file.
25428 (return_false_with_msg): Likewise.
25429 (return_with_result): Likewise.
25430 (return_with_debug): Likewise.
25431 * ipa-icf.c (sem_function::equals_private): Remove call
25434 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25436 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25437 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25438 memory operand for it.
25439 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25441 2019-06-05 Martin Sebor <msebor@redhat.com>
25443 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25444 Adjust quoting and hyphenation.
25445 * convert.c (convert_to_real_1): Same.
25446 * gcc.c (driver_wrong_lang_callback): Same.
25447 (driver::handle_unrecognized_options): Same.
25448 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25449 * opts-common.c (cmdline_handle_error): Same.
25450 (read_cmdline_option): Same.
25451 * opts-global.c (complain_wrong_lang): Same.
25452 (print_ignored_options): Same.
25453 (handle_common_deferred_options): Same.
25454 * pretty-print.h: Same.
25455 * print-rtl.c (debug_bb_n_slim): Same.
25456 * sched-rgn.c (make_pass_sched_fusion): Same.
25457 * tree-cfg.c (verify_gimple_assign_unary): Same.
25458 (verify_gimple_label): Same.
25459 * tree-ssa-operands.c (verify_ssa_operands): Same.
25460 * varasm.c (do_assemble_alias): Same.
25461 (assemble_alias): Same.
25463 2019-06-05 Richard Henderson <rth@twiddle.net>
25465 * config/alpha/alpha.c (direct_return): Move down after
25466 struct machine_function definition; use saved frame_size;
25468 (struct machine_function): Add sa_mask, sa_size, frame_size.
25469 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25470 (alpha_compute_frame_layout): ... new function.
25471 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25472 (alpha_initial_elimination_offset): Use saved sa_size.
25473 (alpha_vms_initial_elimination_offset): Likewise.
25474 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25475 (alpha_expand_prologue): Use saved frame data. Merge integer
25476 and fp register save loops.
25477 (alpha_expand_epilogue): Likewise.
25478 (alpha_start_function): Use saved frame data.
25479 * config/alpha/alpha-protos.h (direct_return): Update.
25480 (alpha_sa_size): Remove.
25482 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25484 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25485 multiplication by a power-of-two value.
25486 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25487 and turn the modulo operation into a masking operation.
25489 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25492 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25493 with VOIDmode inner operands.
25495 2019-06-05 Richard Biener <rguenther@suse.de>
25497 PR middle-end/90726
25498 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25499 turn an expression graph into a tree.
25501 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25503 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25505 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25506 treat it like explicit monotonic schedule modifier.
25507 (expand_omp_for): Initialize has_lastprivate_conditional.
25508 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25511 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25512 references, lookup in in hash map MEM_REF operand instead of the
25514 (lower_omp_1): When looking for lastprivate conditional assignments,
25515 handle MEM_REFs with REFERENCE_TYPE operands.
25517 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25518 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25519 and references a VLA. Handle references to non-VLAs if is_simd
25520 all privatization clauses like reductions.
25521 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25522 If omp_is_reference, use always omp simd arrays and set
25523 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25524 fails, emit reference initialization.
25526 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25529 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25530 _mm_mask_fpclass_sd_mask): New intrinsics.
25531 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25532 * config/i386/i386-builtin.def
25533 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25535 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25536 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25537 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25538 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25539 case QI_FTYPE_V2SF_INT): Ditto.
25540 * config/i386/sse.md
25541 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25542 Extended to insnstructions with mask operands.
25544 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25546 * config/rs6000/constraints.md (define_register_constraint "wp"):
25548 (define_register_constraint "wq"): Delete.
25549 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25550 (rs6000_init_hard_regno_mode_ok): Adjust.
25551 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25552 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25553 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25554 (define_mode_attr VSa): Delete.
25555 (define_mode_attr VSisa): New.
25556 (rest of file): Adjust.
25557 * doc/md.texi (Machine Constraints): Adjust.
25559 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25561 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25562 (define_attr "enabled"): Handle those new isa values.
25564 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25566 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25567 (define_mode_attr VSr5): Delete.
25568 (define_mode_attr VStype_sqrt): Delete.
25569 (define_mode_iterator VSX_SPDP): Delete.
25570 (define_mode_attr VS_spdp_res): Delete.
25571 (define_mode_attr VS_spdp_insn): Delete.
25572 (define_mode_attr VS_spdp_type): Delete.
25573 (*vsx_sqrt<mode>2): Adjust.
25574 (vsx_<VS_spdp_insn>): Delete, split to...
25575 (vsx_xscvdpsp): ... this. New. And...
25576 (vsx_xvcvspdp): ... this. New. And...
25577 (vsx_xvcvdpsp): ... this. New.
25579 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25581 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25583 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25584 (rest of file): Adjust.
25586 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25588 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25589 (vsx_extract_<mode>_var): Ditto.
25591 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25593 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25598 * config/rs6000/constraints.md (define_register_constraint "ww"):
25600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25601 (rs6000_init_hard_regno_mode_ok): Adjust.
25602 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25603 RS6000_CONSTRAINT_ww.
25604 * config/rs6000/rs6000.md: Adjust.
25605 * config/rs6000/vsx.md: Adjust.
25606 * doc/md.texi (Machine Constraints): Adjust.
25608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25610 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25611 (define_mode_attr sd): New.
25612 (define_mode_attr s): New.
25613 (define_mode_attr Ftrad): Delete.
25614 (define_mode_attr Fvsx): Delete.
25615 (define_mode_attr Fs): Delete.
25616 (rest of file): Use the new mode attributes.
25617 * config.rs6000/vsx.md: Use the new mode attributes.
25619 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25621 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25624 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25626 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25627 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25628 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25630 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25633 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25634 C++ with strict ANSI requirements.
25636 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25638 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25639 computations when step is 1.
25641 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25643 * config/rs6000/constraints.md (define_register_constraint "wf"):
25645 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25646 (rs6000_init_hard_regno_mode_ok): Adjust.
25647 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25648 RS6000_CONSTRAINT_wf.
25649 * config/rs6000/rs6000.md: Adjust.
25650 * config/rs6000/vsx.md: Adjust.
25651 * doc/md.texi (Machine Constraints): Adjust.
25653 2019-06-04 Andrew Pinski <apinski@marvell.com>
25655 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25660 * config/rs6000/constraints.md (define_register_constraint "wd"):
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_wd.
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/rs6000.md (define_mode_attr Fv2): Delete.
25673 (rest of file): Adjust.
25675 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25677 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25678 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25679 (vsx_splat_<mode>_reg): Adjust.
25681 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25683 * config/rs6000/constraints.md (define_register_constraint "ws"):
25685 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25686 (rs6000_init_hard_regno_mode_ok): Adjust.
25687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25688 RS6000_CONSTRAINT_ws.
25689 * config/rs6000/rs6000.md: Adjust.
25690 * config/rs6000/vsx.md: Adjust.
25691 * doc/md.texi (Machine Constraints): Adjust.
25693 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25695 * config/rs6000/constraints.md (define_register_constraint "wv"):
25697 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25698 (rs6000_init_hard_regno_mode_ok): Adjust.
25699 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25700 RS6000_CONSTRAINT_wv.
25701 * config/rs6000/rs6000.md: Adjust.
25702 * config/rs6000/vsx.md: Adjust.
25703 * doc/md.texi (Machine Constraints): Adjust.
25705 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25707 * config/rs6000/constraints.md (define_register_constraint "wi"):
25709 (define_register_constraint "wt"): Delete.
25710 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25711 (rs6000_init_hard_regno_mode_ok): Adjust.
25712 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25713 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25714 * config/rs6000/rs6000.md: Adjust.
25715 * config/rs6000/vsx.md: Adjust.
25716 * doc/md.texi (Machine Constraints): Adjust.
25718 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25720 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25722 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25723 default_elf_asm_output_external.
25725 2019-06-04 Martin Liska <mliska@suse.cz>
25727 * ipa-icf.c (INCLUDE_LIST): Remove.
25728 (sem_item_optimizer::execute): Remove call to init_wpa.
25729 * ipa-icf.h (init_wpa): Remove.
25731 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25733 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25734 conditional on combined for simd.
25735 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25737 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25738 constructs, don't remove lastprivate_conditional_map, but instead set
25739 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25740 to parent construct temporaries.
25741 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25742 like !ctx->lastprivate_conditional_map.
25743 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25744 use up->outer context instead of up.
25745 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25746 gimple_omp_for_combined_p.
25747 (expand_omp_for_static_nochunk): Likewise.
25748 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25749 probably moved over into expand_omp_for_generic rather than being copied
25752 2019-06-04 Martin Liska <mliska@suse.cz>
25754 * value-prof.c (dump_histogram_value): Fix typo.
25755 (gimple_mod_subtract_transform): Likewise.
25757 2019-06-04 Richard Biener <rguenther@suse.de>
25759 PR middle-end/90726
25760 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25761 (tree_contains_chrecs): Likewise.
25762 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25763 exponential behaivor from ...
25764 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25766 (expression_expensive_p): Avoid exponential behavior and compute
25767 expanded size, rejecting any expansion.
25768 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25769 (idx_contains_abnormal_ssa_name_p): Likewise.
25770 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25771 (contains_abnormal_ssa_name_p): Simplify and use
25772 walk_tree_without_duplicates.
25774 2019-06-04 Richard Biener <rguenther@suse.de>
25776 PR tree-optimization/90738
25778 2019-06-03 Richard Biener <rguenther@suse.de>
25780 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25781 full reference tree and record in ref->ref.
25782 (vn_reference_lookup_3): Pass in original ref to
25783 ao_ref_init_from_vn_reference.
25784 (vn_reference_lookup): Likewise.
25785 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25786 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25787 Handle non-decl bases in the original reference.
25789 2019-06-04 Martin Liska <mliska@suse.cz>
25791 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25792 number of references.
25793 (sem_item_optimizer::do_congruence_step):
25794 (sem_item_optimizer::worklist_push): Dump how references
25796 (sem_item_optimizer::worklist_pop): Use heap.
25797 (sem_item_optimizer::process_cong_reduction): Likewise.
25798 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25800 2019-06-04 Martin Liska <mliska@suse.cz>
25802 * ipa-icf.h (struct sem_usage_pair_hash): New.
25803 (sem_usage_pair_hash::hash): Likewise.
25804 (sem_usage_pair_hash::equal): Likewise.
25805 (struct sem_usage_hash): Likewise.
25806 * ipa-icf.c (sem_item::sem_item): Initialize
25807 referenced_by_count.
25808 (sem_item::add_reference): Register a reference
25809 in ref_map and not in target->usages.
25810 (sem_item::setup): Remove initialization of
25812 (sem_item::~sem_item): Remove usage of dead vectors.
25813 (sem_item::dump): Remove dump of references.
25814 (sem_item_optimizer::sem_item_optimizer): Initialize
25816 (sem_item_optimizer::read_section): Remove useless
25818 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25819 (sem_item_optimizer::build_graph): Pass m_references
25820 to ::add_reference.
25821 (sem_item_optimizer::verify_classes): Remove usage of dead
25823 (sem_item_optimizer::traverse_congruence_split): Return true
25824 when a class is split.
25825 (sem_item_optimizer::do_congruence_step_for_index): Use
25826 hash_map for look up of (sem_item *, index). That brings
25827 significant speed up.
25828 (sem_item_optimizer::do_congruence_step): Return true
25829 when a split is done.
25830 (congruence_class::is_class_used): Use referenced_by_count.
25832 2019-06-04 Alan Modra <amodra@gmail.com>
25835 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25838 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25840 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25841 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25842 (rs6000_secondary_reload_simple_move): Adjust.
25843 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25844 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25845 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25848 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25849 (floatunssi<mode>2_lfiwzx): Adjust.
25850 (fix_trunc<mode>si2_stfiwx): Adjust.
25851 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25852 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25853 (mfpgpr): Mark as deprecated.
25854 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25855 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25856 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25858 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25860 * config/rs6000/constraints.md (define_register_constraint "wg"):
25862 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25863 RS6000_CONSTRAINT_wg.
25864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25865 (rs6000_init_hard_regno_mode_ok): Adjust.
25866 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25867 Delete "wg" alternatives.
25868 * doc/md.texi (Machine Constraints): Adjust.
25870 2019-06-03 Alan Modra <amodra@gmail.com>
25872 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25873 (get_uncond_jump_length): Assert length less than INT_MAX and
25876 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25878 PR middle-end/64242
25879 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25881 (expand_builtin_nonlocal_goto): Likewise.
25883 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25885 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25886 (aarch64_asm_output_external): Declare.
25887 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25888 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25889 (aarch64_asm_output_alias): New.
25890 (aarch64_asm_output_external): New.
25891 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25892 (ASM_OUTPUT_EXTERNAL): Define.
25894 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25895 * tree-vrp.h (value_range_base::nonzero_p): New.
25896 (value_range_base::set_nonnull): Rename to...
25897 (value_range_base::set_nonzero): ...this.
25898 (value_range_base::set_null): Rename to...
25899 (value_range_base::set_zero): ...this.
25900 (value_range::set_nonnull): Remove.
25901 (value_range::set_null): Remove.
25902 * tree-vrp.c (range_is_null): Remove.
25903 (range_is_nonnull): Remove.
25904 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25905 instead of range_is_*null.
25906 (extract_range_from_unary_expr): Same.
25907 (value_range_base::set_nonnull): Rename to...
25908 (value_range_base::set_nonzero): ...this.
25909 (value_range::set_nonnull): Remove.
25910 (value_range_base::set_null): Rename to...
25911 (value_range_base::set_zero): ...this.
25912 (value_range::set_null): Remove.
25913 (extract_range_from_binary_expr): Rename set_*null uses to
25915 (extract_range_from_unary_expr): Same.
25916 (union_helper): Same.
25917 * vr-values.c (get_value_range): Use set_*zero instead of
25919 (vr_values::extract_range_from_binary_expr): Same.
25920 (vr_values::extract_range_basic): Same.
25922 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25925 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25927 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25929 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25930 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25932 (aarch64_<su>abd<mode>_3): ... This.
25933 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25935 2019-06-03 Richard Biener <rguenther@suse.de>
25937 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25938 full reference tree and record in ref->ref.
25939 (vn_reference_lookup_3): Pass in original ref to
25940 ao_ref_init_from_vn_reference.
25941 (vn_reference_lookup): Likewise.
25942 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25943 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25944 Handle non-decl bases in the original reference.
25946 2019-06-03 Martin Liska <mliska@suse.cz>
25948 * doc/generic.texi: Remove Java Trees.
25950 2019-06-03 Martin Liska <mliska@suse.cz>
25952 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25953 returns 0 when operands are equal.
25955 2019-06-03 Richard Biener <rguenther@suse.de>
25957 PR tree-optimization/90716
25958 * tree-loop-distribution.c (destroy_loop): Process blocks in
25961 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25964 * vector-builder.h (vector_builder::count_dups): New method.
25965 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25967 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25968 (vec_init<mode><Vel>): New pattern.
25969 * config/aarch64/aarch64.c (emit_insr): New function.
25970 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25971 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25972 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25973 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25975 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25977 PR tree-optimization/90681
25978 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25979 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25980 special case for SLP, but fail on non-groupped loads.
25982 2019-06-03 Martin Liska <mliska@suse.cz>
25984 * cfg.c (debug): Use TDF_DETAILS for debug and
25985 print edge info only once.
25987 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25990 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25992 2019-06-01 Martin Sebor <msebor@redhat.com>
25994 PR middle-end/90694
25995 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25997 2019-05-31 Jan Hubicka <jh@suse.cz>
25999 * alias.c: Include ipa-utils.h.
26000 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26001 * ipa-devirt.c (prevailing_odr_type): New.
26002 * ipa-utils.h (previaling_odr_type): Declare.
26004 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
26005 Hongtao Liu <hongtao.liu@intel.com>
26008 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26009 NOTE_INSN_DELETED_LABEL check.
26011 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
26012 Robert Suchanek <robert.suchanek@mips.com>
26014 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26015 and 3rd operands of the fmadd/fmsub/maddv builtin.
26017 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26019 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26020 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26021 on OMP_SIMD if not nested inside of worksharing loop that also has
26022 lastprivate conditional clause for the same decl.
26023 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26024 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26026 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
26028 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26030 (lower_lastprivate_clauses): Likewise.
26031 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26032 calling lower_rec_input_clauses.
26033 (lower_omp_for): Likewise.
26034 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26035 clause on simd construct.
26036 * omp-expand.c (expand_omp_simd): Initialize cond_var if
26037 OMP_CLAUSE__CONDTEMP_ clause is present.
26039 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26042 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
26045 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26046 TEX_D32, TEX_D64 or TEX_D128.
26048 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26050 * match.pd (~(vec?cst1:cst2)): New transformation.
26052 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26054 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26055 ((size_t)(A /[ex] B) CMP C): New transformation.
26057 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26059 * doc/md.texi: Document define_insn_and_rewrite.
26060 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26061 * gensupport.c (queue_elem): Update comment.
26062 (replace_operands_with_dups): New function.
26063 (gen_rewrite_sequence): Likewise.
26064 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26065 * read-rtl.c (apply_subst_iterator): Likewise.
26066 (add_condition_to_rtx, named_rtx_p): Likewise.
26067 (rtx_reader::read_rtx_operand): Likewise.
26068 * config/aarch64/aarch64-sve.md
26069 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26070 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26071 define_insn_and_rewrite.
26072 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26073 Remove separate define_split.
26075 2019-05-31 Jan Hubicka <jh@suse.cz>
26077 * tree-ssa-alias.c (type_has_components_p): New function.
26078 (aliasing_component_refs_p): Use it.
26080 2019-05-31 Martin Liska <mliska@suse.cz>
26082 * gdbhooks.py: Add const_tree to TreePrinter.
26084 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26087 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26088 * doc/invoke.texi (Debugging Options): Document new default of
26089 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26091 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26093 PR tree-optimization/90671
26094 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26095 template_block used to be empty on the first call, don't use
26096 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26097 seq with bb_seq and set it with set_bb_seq.
26099 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26101 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26103 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26104 Michael Meissner <meissner@linux.ibm.com>
26106 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26107 (prefixed_mem_operand): Likewise.
26108 (non_prefixed_mem_operand): Likewise.
26109 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26111 * config/rs6000/rs6000.c (print_operand_address): Handle
26112 PC-relative addresses.
26113 (mode_supports_prefixed_address_p): New function.
26114 (rs6000_prefixed_address): New function.
26115 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26116 (SYMBOL_REF_PCREL_P): Likewise.
26118 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26120 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26121 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26122 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26123 is nested inside of parallel region, add _condtemp_ clause to both.
26124 * tree-nested.c (convert_nonlocal_omp_clauses,
26125 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26127 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26129 * omp-general.c (omp_extract_for_data): Compute it.
26130 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26131 (lower_rec_input_clauses): Likewise.
26132 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26133 clause is already present, just add one further one after it.
26134 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26135 (lower_send_shared_vars): Clear _condtemp_ vars.
26136 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26137 or section or taskgroup.
26138 * omp-expand.c (determine_parallel_type): Disallow combining only if
26139 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26140 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26141 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26142 expand_omp_for_static_chunk, expand_omp_for): Use
26143 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26144 determine if a special set of API routines are needed and if condtemp
26145 needs to be initialized, while always initialize cond_var if
26146 fd->lastprivate_conditional is non-zero.
26148 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26149 Michael Meissner <meissner@linux.ibm.com>
26151 * config/rs6000/constraints.md (eI): New constraint.
26152 * config/rs6000/predicates.md (cint34_operand): New predicate.
26153 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26154 (SIGNED_34BIT_OFFSET_P): Likewise.
26155 * doc/md.texi (eI): Document constraint.
26157 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26159 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26161 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26162 Michael Meissner <meissner@linux.ibm.com>
26164 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26165 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26166 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26167 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26168 (OTHER_FUTURE_MASKS): Likewise.
26169 (POWERPC_MASKS): Likewise.
26170 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26171 specified without -mprefixed-addr or -mcpu=future. Error if
26172 -mprefixed-addr is specified without -mcpu=future.
26173 (rs6000_opt_masks): Add entry for prefixed-addr.
26174 * rs6000.opt (mprefixed-addr): New option.
26176 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26178 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26179 cfun->is_thunk check.
26181 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26183 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26186 2019-05-30 Martin Liska <mliska@suse.cz>
26188 * gdbinit.in: Fix 'ptc' command. Add trt
26189 that prints TREE_TYPE($).
26191 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26192 Alan Modra <amodra@gmail.com>
26194 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26196 (rs6000_indirect_call_template_1): ...and here.
26197 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26198 plt16_ha, plt16_lo, mtctr indirect calls. Use
26199 rs6000_pltseq_enum.
26200 (rs6000_decl_ok_for_sibcall): New function.
26201 (rs6000_function_ok_for_sibcall): Refactor.
26202 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26203 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26204 when pcrel. Reorganize.
26205 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26206 * rs6000.h (rs6000_pltseq_enum): New enum.
26207 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26208 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26209 (*pltseq_plt16_ha): Likewise.
26210 (*pltseq_plt16_lo): Likewise.
26211 (*pltseq_mtctr): Likewise.
26212 (*pltseq_plt_pcrel): New insn.
26213 (*call_local_aix): Handle @notoc calls.
26214 (*call_value_local_aix): Likewise.
26215 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26216 (*call_value_nonlocal_aix): Likewise.
26217 (*call_indirect_pcrel): New insn.
26218 (*call_value_indirect_pcrel): Likewise.
26220 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26222 * config/i386/sse.md (*save_multiple<mode>): Rename from
26223 save_multiple<mode>.
26224 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26225 (*restore_multiple_and_return<mode>): Rename from
26226 restore_multiple_and_return<mode>.
26227 (*restore_multiple_leave_return<mode>): Rename from
26228 restore_multiple_leave_return<mode>.
26230 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26232 * config.gcc (rx-*-linux*): New target.
26233 * config/rx/elf.opt: New file.
26234 * config/rx/linux.h: Likewise.
26235 * config/rx/t-linux: Likewise.
26236 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26238 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26239 (ASM_APP_OFF): Likewise.
26240 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26243 2019-05-29 Jan Hubicka <jh@suse.cz>
26245 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26246 variants are pointer equivalent.
26248 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26250 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26251 * config/aarch64/aarch64-sve2.md: New file.
26252 (<u>avg<mode>3_floor): New pattern.
26253 (<u>avg<mode>3_ceil): Likewise.
26254 (*<sur>h<addsub><mode>): Likewise.
26255 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26256 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26258 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26261 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26262 for var_opt_string printing. In cl_optimization_print_diff, print
26263 (null) instead of invoking undefined behavior if one of the
26264 var_opt_string pointers is NULL and use && instead of first || in the
26265 guarding condition. For var_target_other options, handle const char *
26266 target variables similarly to const char * optimize node variables.
26268 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26270 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26271 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26272 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26273 Add autib1716 and pacib1716 initialisation.
26274 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26275 for autib1716 and pacib1716.
26276 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26277 aarch64_post_cfi_startproc): Define.
26278 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26279 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26280 aarch64_handle_pac_ret_protection): Set default sign key to A.
26281 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26282 aarch64_expand_prologue): Add check for b-key.
26283 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26284 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26285 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26286 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26287 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26288 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26289 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26290 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26291 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26292 pauth_hint_num_a with pauth_hint_num.
26293 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26294 pauth_hint_num_a with pauth_hint_num.
26295 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26296 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26297 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26298 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26299 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26300 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26301 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26302 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26303 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26304 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26305 UNSPEC_AUTIA1716 respectively.
26306 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26307 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26308 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26309 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26310 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26311 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26313 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26315 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26316 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26317 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26318 explicit clause on combined parallel into implicit shared clause.
26319 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26320 and firstprivate if the decl has one too from combined parallel to
26321 the worksharing construct.
26323 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26324 Michael Meissner <meissner@linux.ibm.com>
26326 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26328 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26330 * rtl.h (LABEL_REF_P): New #define.
26332 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26334 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26336 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26338 * internal-fn.c: Marked mask_load_direct as vectorizable.
26339 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26340 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26341 combined even if masks different with allow_slp_p param.
26342 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26343 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26344 dissolve SLP-only vectorizable groups when SLP has been discarded.
26345 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26346 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26348 (vect_build_slp_tree_1): Fixed comment typo.
26349 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26350 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26351 loads for SLP only.
26352 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26354 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26356 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26358 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26359 Remove obsolete use_thunk reference.
26360 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26361 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26362 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26363 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26364 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26365 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26366 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26367 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26368 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26370 2019-05-28 Nathan Sidwell <nathan@acm.org>
26372 * tree.h (IDENTIFIER_ANON_P): New.
26373 (anon_aggrname_format, anon_aggname_p): Don't declare.
26374 (make_anon_name): Declare.
26375 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26376 (hash_tree): Likewise.
26377 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26378 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26379 (anon_cnt, make_anon_name): New.
26381 2019-05-28 Martin Liska <mliska@suse.cz>
26384 * opts-global.c (decode_options): Print help for all
26385 help_option_arguments.
26386 * opts.c (print_help): Add new argument.
26387 (common_handle_option): Remember all values into
26388 help_option_arguments.
26389 * opts.h (print_help): Add new argument.
26391 2019-05-28 Martin Liska <mliska@suse.cz>
26394 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26395 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26396 (func_checker::compare_bb): Call compare_loops.
26398 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26400 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26401 on sections construct.
26402 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26404 (lower_omp_sections): Handle lastprivate conditional.
26405 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26406 lastprivate_conditional_map.
26407 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26409 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26410 critical, taskgroup and section regions when looking for a region
26411 with non-NULL lastprivate_conditional_map.
26413 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26415 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26416 (*ix86_gen_sub3): Ditto.
26417 (*ix86_gen_sub3_carry): Ditto.
26418 (*ix86_gen_one_cmpl2): Ditto.
26419 (*ix86_gen_andsp): Ditto.
26420 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26421 (gen_and2_insn): New static function.
26422 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26423 Use gen_add3_insn instead of ix86_gen_add3.
26424 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26425 instead of ix86_gen_add3.
26426 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26427 Use gen_sub3_insn instead of ix86_gen_sub3.
26428 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26429 instead of ix86_gen_add3.
26430 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26431 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26432 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26433 * config/i386/i386-options.c (ix86_option_override_internal):
26434 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26435 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26437 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26439 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26440 and DW_OP_GNU_const_index opcodes.
26442 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26444 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26446 2019-05-27 Richard Biener <rguenther@suse.de>
26448 PR tree-optimization/90637
26449 * tree-ssa-sink.c (statement_sink_location): Honor the
26450 computed sink location for single-uses.
26452 2019-05-27 Richard Biener <rguenther@suse.de>
26454 PR middle-end/90610
26455 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26458 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26460 * config/i386/i386.md (@sub<mode>3_carry): Rename
26461 from sub<mode>3_carry.
26462 (@leave_<mode>): New expander.
26463 (*leave): Rename from leave.
26464 (*leave_rex64): Rename from leave_rex64.
26465 (@monitorx_<mode>): Rename from monitorx_<mode>.
26466 (@clzero_<mode>): Rename from clzero_<mode>.
26467 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26468 from sse3_monitor_<mode>.
26469 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26470 (*ix86_gen_leave): Ditto.
26471 (*ix86_gen_monitor): Ditto.
26472 (*ix86_gen_monitorx): Ditto.
26473 (*ix86_gen_clzero): Ditto.
26474 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26475 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26476 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26477 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26478 Use gen_sse3_monitor instead of ix86_gen_monitor.
26479 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26480 instead of ix86_gen_monitorx.
26481 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26482 instead of ix86_gen_clzero.
26483 * config/i386/i386-options.c (ix86_option_override_internal):
26484 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26485 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26487 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26489 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26490 Rename from tls_global_dynamic_64_<mode>.
26491 (@tls_local_dynamic_base_64_<mode>): Rename from
26492 tls_local_dynamic_base_64_<mode>.
26493 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26494 Remove indirect function.
26495 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26496 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26497 instead of ix86_gen_tls_global_dynamic_64.
26498 Use gen_tls_local_dynamic_base_64 instead of
26499 ix86_gen_tls_local_dynamic_base_64.
26500 * config/i386/i386-options.c (ix86_option_override_internal):
26501 Do not initialize ix86_gen_tls_global_dynamic_64 and
26502 ix86_gen_tls_local_dynamic_base_64.
26504 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26506 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26507 Rename from pro_epilogue_adjust_stack_<mode>_add.
26508 (@pro_epilogue_adjust_stack_sub_<mode>)
26509 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26510 (@allocate_stack_worker_probe_<mode>):
26511 Rename from allocate_stack_worker_probe_<mode>.
26512 (allocate_stack): Use gen_allocate_stack_worker_probe.
26513 (probe_stack): Use gen_probe_stack_1.
26514 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26515 (@adjust_stack_and_probe_<mode>): Rename from
26516 adjust_stack_and_probe<mode>.
26517 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26518 (stack_protect_set): Use gen_stack_protect_set_1.
26519 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26520 (stack_protect_test): Use gen_stack_protect_test_1.
26521 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26522 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26523 Remove indirect function.
26524 (*ix86_gen_adjust_stack_and_probe): Ditto.
26525 (*ix86_gen_probe_stack_range): Ditto.
26526 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26527 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26528 (ix86_adjust_stack_and_probe_stack_clash): Use
26529 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26530 (ix86_adjust_stack_and_probe): Ditto.
26531 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26532 of ix86_gen_probe_stack_range.
26533 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26534 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26535 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26536 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26537 CODE_FOR_stack_protect_test_{si,di}.
26538 * config/i386/i386-options.c (ix86_option_override_internal):
26539 Do not initialize ix86_gen_allocate_stack_worker,
26540 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26542 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26544 * doc/invoke.texi (Link Options): Many editorial changes around
26547 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26549 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26550 pre-Solaris 11 referene and most Studio compiler details.
26552 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26555 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26556 DImode to SImode in floating-point registers on 64-bit target.
26557 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26558 register_operand in xmpyu patterns.
26560 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26562 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26563 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26564 OMP_CLAUSE__REDUCTEMP_.
26565 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26566 OMP_CLAUSE__CONDTEMP_.
26567 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26568 * tree-pretty-print.c (dump_omp_clause): Likewise.
26569 * tree-nested.c (convert_nonlocal_omp_clauses,
26570 convert_local_omp_clauses): Likewise.
26571 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26572 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26573 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26575 (gimplify_omp_for): Warn and disable conditional modifier from
26576 lastprivate on loop iterators.
26577 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26579 * omp-general.c (omp_extract_for_data): Initialize it.
26580 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26582 (delete_omp_context): Delete it.
26583 (lower_lastprivate_conditional_clauses): New function.
26584 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26585 handle lastprivate conditional clauses.
26586 (lower_reduction_clauses): Add CLIST argument, emit it into
26587 the critical section if any.
26588 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26589 lower_reduction_clauses callers.
26590 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26591 to lower_lastprivate_clauses.
26592 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26593 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26594 clist into a critical section if not emitted there already by
26595 lower_reduction_clauses.
26596 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26598 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26599 conditional variables.
26600 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26602 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26603 expand_omp_for_static_chunk): Handle lastprivate conditional.
26604 (expand_omp_for): Handle fd.lastprivate_conditional like
26607 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26609 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26610 kernel does not exit cleanly.
26611 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26613 2019-05-24 Jason Merrill <jason@redhat.com>
26616 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26618 2019-05-24 Richard Biener <rguenther@suse.de>
26621 * tree-loop-distribution.c (struct partition): Add location
26623 (partition_alloc): Initialize all fields.
26624 (generate_memset_builtin): Use the location recorded in the
26625 partition for the generated call.
26626 (generate_memcpy_builtin): Likewise.
26627 (classify_partition): Record the location of a single store
26628 as location for the partition.
26630 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26632 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26635 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26638 * common/config/aarch64/aarch64-common.c
26639 (aarch64_rewrite_selected_cpu): Change local temporary variable
26640 type from unsigned long to uint64_t.
26641 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26642 aarch64_get_extension_string_for_isa_flags): Change declaration to
26643 match new definition by replacing unsigned long with uint64_t.
26645 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26648 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26649 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26650 Handle stack_protect_test_<mode> codegen similarly to corresponding
26653 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26655 * config/i386/darwin.h: Reject -mfentry*.
26656 * doc/sourcebuild.texi: Document mfentry target support.
26658 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26660 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26661 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26662 false for PC-relative functions.
26663 (rs6000_output_function_prologue): Change called function name to
26664 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26665 name,1" for PC-relative functions.
26666 (rs6000_elf_declare_function_name): Change called function name to
26667 rs6000_global_entry_point_prologue_needed_p.
26669 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26672 * config/i386/i386.c (gen_rtx_cost):
26673 Use ix86_tune_cost instead of ix86_cost.
26675 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26676 Michael Meissner <meissner@linux.ibm.com>
26677 Segher Boessenkool <segher@kernel.crashing.org>
26679 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26681 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26682 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26683 (rs6000_fndecl_pcrel_p): Likewise.
26684 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26685 error if -mpcrel is requested without -mcpu=future.
26686 (rs6000_opt_masks): Add entry for pcrel.
26687 (rs6000_fndecl_pcrel_p): New function.
26688 (rs6000_pcrel_p): Likewise.
26689 * config/rs6000/rs6000.opt (mpcrel): New option.
26690 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26692 2019-05-23 Jan Hubicka <jh@suse.cz>
26693 Martin Liska <mliska@suse.cz>
26695 PR tree-optimization/90576
26696 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26698 (aliasing_component_refs_p): Fix three way size compare conditional;
26699 give up earlier in case we can not decide on equivalence.
26701 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26702 Michael Meissner <meissner@linux.ibm.com>
26703 Segher Boessenkool <segher@kernel.crashing.org>
26705 * config.gcc: Add future cpu.
26706 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26707 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26709 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26710 (RS6000_CPU): New instantiation for future cpu.
26711 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26713 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26714 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26715 * config/rs6000/rs6000-tables.opt: Regenerate.
26716 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26717 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26718 (rs6000_machine_from_flags): Handle future cpu.
26719 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26720 PROCESSOR_POWER9 for now.
26721 (rs6000_adjust_cost): Likewise.
26722 (rs6000_issue_rate): Likewise.
26723 (rs6000_register_move_cost): Likewise.
26724 (rs6000_opt_masks): Add entry for future.
26725 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26726 (MASK_FUTURE): New #define.
26727 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26728 * config/rs6000/rs6000.opt (mfuture): New target option.
26729 * doc/invoke.texi (mcpu): Add future cpu.
26731 2019-05-23 Martin Liska <mliska@suse.cz>
26734 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26735 operation points to a temporary (pointed via tree_to_wide_ref)
26736 that is out of scope after the &.
26738 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26741 * doc/extend.texi (Function Names): Add missing word.
26743 2019-05-23 Richard Biener <rguenther@suse.de>
26745 PR tree-optimization/88440
26746 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26748 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26750 (generate_memcpy_builtin): Likewise.
26751 (distribute_loop): Pass in whether to only distribute patterns.
26752 (prepare_perfect_loop_nest): Also allow size optimization.
26753 (pass_loop_distribution::execute): When optimizing a loop
26754 nest for size allow pattern replacement.
26756 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26759 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26762 2019-05-23 Martin Liska <mliska@suse.cz>
26765 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26766 expression similarly to gimplify_decl_expr.
26768 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26770 * cse.c (cse_dump_path): s/dump_file/f.
26772 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26775 * diagnostic-format-json.cc: Include "selftest.h".
26776 (json_from_expanded_location): Only add "file" key for non-NULL
26778 (json_from_location_range): Don't add "start" and "finish"
26779 children if they are UNKNOWN_LOCATION.
26780 (selftest::test_unknown_location): New selftest.
26781 (selftest::test_bad_endpoints): New selftest.
26782 (selftest::diagnostic_format_json_cc_tests): New function.
26783 * json.cc (json::object::get): New function.
26784 (selftest::test_object_get): New selftest.
26785 (selftest::json_cc_tests): Call it.
26786 * json.h (json::object::get): New decl.
26787 * selftest-run-tests.c (selftest::run_tests): Call
26788 selftest::diagnostic_format_json_cc_tests.
26789 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26792 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26793 Andrew Stubbs <amd@codesourcery.com>
26795 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26796 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26797 (kernel): Rename to...
26798 (main_kernel): ... this.
26799 (load_image): Load _init_array and _fini_array kernels.
26800 (run): Add argument for kernel to run.
26801 (main): Run init_array_kernel before main_kernel, and
26802 fini_array_kernel after.
26803 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26804 amdgpu_hsa_kernel attribute on functions.
26805 (gcn_disable_constructors): Delete.
26806 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26807 * config/gcn/crt0.c (size_t): Define.
26808 (_init_array, _fini_array): New.
26809 (__preinit_array_start, __preinit_array_end,
26810 __init_array_start, __init_array_end,
26811 __fini_array_start, __fini_array_end): Declare weak references.
26813 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26815 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26817 2019-05-22 Jason Merrill <jason@redhat.com>
26819 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26821 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26824 * config/i386/i386-options.c (ix86_init_machine_status): Set
26825 stack_frame_required to true.
26826 * config/i386/i386.c (ix86_get_frame_size): New function.
26827 (ix86_frame_pointer_required): Replace get_frame_size with
26828 ix86_get_frame_size.
26829 (ix86_compute_frame_layout): Likewise.
26830 (ix86_find_max_used_stack_alignment): Changed to void. Set
26831 stack_frame_required.
26832 (ix86_finalize_stack_frame_flags): Always call
26833 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26834 ix86_get_frame_size.
26835 * config/i386/i386.h (machine_function): Add stack_frame_required.
26837 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26839 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26841 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26843 * common/config/aarch64/aarch64-common.c
26844 (struct aarch64_option_extension, struct processor_name_to_arch,
26845 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26846 aarch64_contains_opt,
26847 aarch64_get_extension_string_for_isa_flags): Change type of
26848 variables storing flags to uint64_t.
26849 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26850 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26851 * config/aarch64/aarch64.c (struct processor,
26852 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26853 aarch64_validate_march, aarch64_override_options,
26854 aarch64_option_print, aarch64_handle_attr_isa_flags,
26855 aarch64_declare_function_name, aarch64_start_file): Make flag
26856 variables uint64_t.
26857 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26858 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26859 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26860 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26861 * config/aarch64/driver-aarch64.c
26862 (struct aarch64_arch_extension, struct aarch64_core_data,
26863 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26864 flag variables uint64_t.
26865 * doc/invoke.texi: Add documentation for new arguments.
26867 2019-05-22 Richard Biener <rguenther@suse.de>
26869 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26871 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26873 2019-05-22 Martin Liska <mliska@suse.cz>
26876 * doc/extend.texi: Document the change.
26878 2019-05-22 Richard Biener <rguenther@suse.de>
26880 PR tree-optimization/90450
26881 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26882 (mem_ref_hasher::equal): Check it.
26883 (mem_ref_alloc): Initialize it.
26884 (gather_mem_refs_stmt): Set it.
26886 2019-05-22 Richard Biener <rguenther@suse.de>
26888 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26890 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26893 2019-05-22 Alan Modra <amodra@gmail.com>
26895 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26896 (ASM_CPU_SPEC): Conditionally add -many.
26897 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26898 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26899 (rs6000_file_start): ..extracted from here, and modified to
26901 (rs6000_output_function_prologue): Emit .machine as necessary.
26903 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26905 PR middle-end/90553
26906 * ira-lives.c (process_bb_node_lives): Consider defs
26907 for a call insn to be die before the call, not after.
26909 * function.c (assign_parm_setup_block): Raise alignment of
26910 stacked parameter only for STRICT_ALIGNMENT targets.
26912 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26914 * config/rs6000/constraints.md (define_register_constraint "wz"):
26916 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26917 RS6000_CONSTRAINT_wz.
26918 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26919 (rs6000_init_hard_regno_mode_ok): Adjust.
26920 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26921 * doc/md.texi (Machine Constraints): Adjust.
26923 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26925 * config/rs6000/constraints.md (define_register_constraint "wl"):
26927 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26928 RS6000_CONSTRAINT_wl.
26929 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26930 (rs6000_init_hard_regno_mode_ok): Adjust.
26931 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26932 * doc/md.texi (Machine Constraints): Adjust.
26934 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26936 * config/rs6000/constraints.md (define_register_constraint "wm"):
26938 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26939 RS6000_CONSTRAINT_wm.
26940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26941 (rs6000_init_hard_regno_mode_ok): Adjust.
26942 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26943 * doc/md.texi (Machine Constraints): Adjust.
26945 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26947 * config/rs6000/constraints.md (define_register_constraint "wk"):
26949 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26950 RS6000_CONSTRAINT_wk.
26951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26952 (rs6000_init_hard_regno_mode_ok): Adjust.
26953 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26954 * doc/md.texi (Machine Constraints): Adjust.
26956 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26958 * config/rs6000/constraints.md (define_register_constraint "wj"):
26960 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26961 RS6000_CONSTRAINT_wj.
26962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26963 (rs6000_init_hard_regno_mode_ok): Adjust.
26964 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26966 * config/rs6000/vsx.md: Ditto.
26967 * doc/md.texi (Machine Constraints): Adjust.
26969 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26971 * config/rs6000/constraints.md (define_register_constraint "wh"):
26973 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26974 RS6000_CONSTRAINT_wh.
26975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26976 (rs6000_init_hard_regno_mode_ok): Adjust.
26977 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26978 * doc/md.texi (Machine Constraints): Adjust.
26980 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26983 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26984 Avoid calling gen_lowpart with CONST operand.
26986 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26988 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26989 field template_last_to_copy.
26990 (ssa_create_duplicates): Set it, and use it. Attempt to
26991 preserve more debug stmts.
26993 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26995 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26996 (signbit<mode>2): New expander
26998 2019-05-21 James Clarke <jrtc27@jrtc27.com>
27001 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27002 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27004 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27006 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27007 %ebx and %ecx bafore calling cpuid with leaf 1 or
27008 non-constant leaf argument.
27010 2019-05-21 Alan Modra <amodra@gmail.com>
27013 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27014 power9 direct move cost.
27016 2019-05-21 Richard Biener <rguenther@suse.de>
27018 PR middle-end/90510
27019 * fold-const.c (fold_read_from_vector): New function.
27020 * fold-const.h (fold_read_from_vector): Declare.
27021 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27022 single-element insert permutations. Canonicalize selector
27023 further and fix issue with last commit.
27025 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27027 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27028 parameter with default value false to declaration.
27029 (split_edges_for_insertion): New inline function. Wrapper for
27030 split_critical_edges with for_edge_insertion_p = true.
27031 * tree-cfg.c (split_critical_edges): Don't split non-critical
27032 edges if for_edge_insertion_p is false. Fix whitespace.
27033 * tree-ssa-pre.c (pass_pre::execute): Call
27034 split_edges_for_insertion instead of split_critical_edges.
27035 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27036 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27037 (pass_data_sink_code): Update function name in the comment.
27039 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27041 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27042 around is_value_included_in that knows how to handle BIT_AND_EXPR.
27043 (is_pred_expr_subset_of): Use the new function. Handle more cases where
27044 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27047 2019-05-21 Martin Liska <mliska@suse.cz>
27049 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27051 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27052 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27054 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27056 (rs6000_function_arg): Likewise.
27057 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27058 (rs6000_expand_ternop_builtin): Use interval syntax.
27059 (get_element_number): Likewise.
27060 (altivec_expand_builtin): Likewise.
27061 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27063 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27067 * function.h (struct function): Add calls_eh_return member.
27068 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27069 gimplifying __builtin_eh_return call.
27070 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27072 (expand_call_inline): Or in src_cfun->calls_eh_return into
27073 dst_cfun->calls_eh_return.
27074 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27075 cfun->calls_eh_return.
27076 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27077 * lto-streamer-out.c (output_struct_function_base): Write
27080 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27082 PR rtl-optimization/43147
27083 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27084 IX86_BUILTIN_SHUFPD.
27086 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27088 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27089 (refs_may_alias_p_1): ... here; update stats.
27090 (refs_may_alias_p): Do not update stats here.
27092 2019-05-20 Richard Biener <rguenther@suse.de>
27094 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27095 doesn't produce pointers.
27096 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27097 the first operand points to.
27099 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27101 * tree-ssa-alias.c (compare_sizes): New function.
27102 (sompare_type_sizes): New function
27103 (aliasing_component_refs_p): Use it.
27104 (indirect_ref_may_alias_decl_p): Likewise.
27106 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27108 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27110 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27112 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27113 (LIBLSAN_EARLY_SPEC): Likewise.
27114 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27116 2019-05-20 Martin Liska <mliska@suse.cz>
27118 * config/i386/i386.c (ix86_libc_has_fast_function):
27119 Add ATTRIBUTE_UNUSED for the argument.
27121 2019-05-20 Richard Biener <rguenther@suse.de>
27123 * gimple-match-head.c: Include vec-perm-indices.h.
27124 * generic-match-head.c: Likewise.
27125 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27127 * fold-const.c (fold_vec_perm): Export.
27128 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27129 (match.pd): ...here.
27131 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27133 * cfgloop.h (struct loop): Add simdlen member.
27134 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27135 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27136 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27137 as new argument to autovectorize_vector_sizes target hook. If
27138 loop->simdlen, pick up vector size where the vectorization factor
27139 is equal to loop->simd, and if there is none, fall back to the first
27141 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27143 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27144 * omp-general.c (omp_max_vf): Likewise.
27145 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27146 * tree-vect-slp.c (vect_slp_bb): Likewise.
27147 * target.def (autovectorize_vector_sizes): Add ALL argument and
27149 * doc/tm.texi: Adjust documentation.
27150 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27151 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27152 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27154 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27155 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27156 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27157 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27158 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27159 preferred vector size is not 512-bit or 256-bit, just put those
27160 unpreferred ones last.
27162 2019-05-20 Martin Liska <mliska@suse.cz>
27164 * targhooks.c (default_libc_has_fast_function): New function.
27165 * targhooks.h (default_libc_has_fast_function): Likewise.
27167 2019-05-20 Martin Liska <mliska@suse.cz>
27169 PR middle-end/90263
27170 * builtins.c (expand_builtin_memory_copy_args): When having a
27171 target with fast mempcpy implementation do now use memcpy.
27172 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27173 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27174 * doc/tm.texi: Likewise.
27175 * doc/tm.texi.in: Likewise.
27177 * expr.c (emit_block_move_hints): Add 2 new arguments.
27178 * expr.h (emit_block_move_hints): Bail out when libcall
27179 to memcpy would be used.
27181 2019-05-20 Martin Liska <mliska@suse.cz>
27183 * profile-count.c: Add vertical spacing in order
27184 to separate functions.
27185 * profile-count.h: Likewise.
27187 2019-05-20 Martin Liska <mliska@suse.cz>
27189 * profile-count.h: Do not use full qualified
27191 * profile-count.c (profile_count::to_frequency): Likewise.
27193 2019-05-20 Martin Liska <mliska@suse.cz>
27195 * profile-count.h (enum profile_quality): Use capital letters
27196 for enum value names. Use the adjusted names.
27197 * profile-count.c: Use the adjusted names.
27199 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27201 * config/rs6000/constraints.md (define_register_constraint "wH"):
27203 (define_register_constraint "wI"): Delete.
27204 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27205 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27207 (rs6000_init_hard_regno_mode_ok): Adjust.
27208 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27209 resp. "d", or with "wa" as appropriate, all with "p8v".
27210 * config/rs6000/vsx.md: Ditto.
27211 * doc/md.texi (Machine Constraints): Adjust.
27213 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27215 * config/rs6000/constraints.md (define_register_constraint "wy"):
27217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27218 RS6000_CONSTRAINT_wy.
27219 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27220 (rs6000_init_hard_regno_mode_ok): Adjust.
27221 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27222 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27223 (define_mode_attr Fisa): New.
27224 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27225 * doc/md.texi (Machine Constraints): Adjust.
27227 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27229 * config/rs6000/constraints.md (define_register_constraint "wu"):
27231 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27232 RS6000_CONSTRAINT_wu.
27233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27234 (rs6000_init_hard_regno_mode_ok): Adjust.
27235 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27237 (define_mode_attr Fa): Delete.
27238 * config/rs6000/vsx.md: Ditto.
27239 * doc/md.texi (Machine Constraints): Adjust.
27241 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27243 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27245 (define_register_constraint "wK"): Delete.
27246 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27247 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27248 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27249 (rs6000_init_hard_regno_mode_ok): Adjust.
27250 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27251 Replace "wK" constraint by "wH" with "p9v".
27252 * config/rs6000/vsx.md: Ditto.
27253 * doc/md.texi (Machine Constraints): Adjust.
27255 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27257 * config/rs6000/constraints.md (define_register_constraint "wb"):
27259 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27260 RS6000_CONSTRAINT_wb.
27261 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27262 (rs6000_init_hard_regno_mode_ok): Adjust.
27263 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27264 * config/rs6000/vsx.md: Ditto.
27265 * doc/md.texi (Machine Constraints): Adjust.
27267 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27269 * config/rs6000/constraints.md (define_register_constraint "wo"):
27271 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27272 RS6000_CONSTRAINT_wo.
27273 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27274 (rs6000_init_hard_regno_mode_ok): Adjust.
27275 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27276 * config/rs6000/altivec.md: Ditto.
27277 * doc/md.texi (Machine Constraints): Adjust.
27279 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27281 * config/darwin-c.c (darwin_register_objc_includes): Do not
27282 prepend the sysroot when building gnu-runtime header search
27285 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27287 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27288 instead of direct output of the asm.
27290 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27292 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27293 argument to be type bool (was int before).
27294 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27295 at first use. Use type bool for some variables. Fix a theoretical
27296 eh_return bug for svr4.
27298 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27300 * config/rs6000/rs6000.md (isa): New attribute.
27301 (enabled): New attribute.
27303 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27305 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27306 assemble_start_function and assemble_end_function.
27308 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27310 PR middle-end/89433
27311 * omp-general.c (oacc_verify_routine_clauses): Change formal
27312 parameters. Add checking if already marked with an OpenACC
27313 'routine' directive. Adjust all users.
27315 PR middle-end/89433
27316 * omp-general.c (oacc_build_routine_dims): Move some of its
27318 (oacc_verify_routine_clauses): ... this new function.
27319 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27321 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27323 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27324 formating of picbase labels to match other ports.
27326 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27328 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27329 in the generated code.
27331 2019-05-16 Martin Sebor <msebor@redhat.com>
27333 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27334 identifiers, keywords, operators, and types in diagnostics. Correct
27335 quoting, spelling, and sentence capitalization issues.
27336 (expand_builtin_atomic_is_lock_free): Same.
27337 (fold_builtin_next_arg): Same.
27338 * cfgexpand.c (expand_one_var): Same.
27339 (tree_conflicts_with_clobbers_p): Same.
27340 (expand_asm_stmt): Same.
27341 (verify_loop_structure): Same.
27342 * cgraphunit.c (process_function_and_variable_attributes): Same.
27343 * collect-utils.c (collect_execute): Same.
27344 * collect2.c (maybe_run_lto_and_relink): Same.
27345 (is_lto_object_file): Same.
27346 (scan_prog_file): Same.
27347 * convert.c (convert_to_real_1): Same.
27348 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27349 * except.c (verify_eh_tree): Same.
27350 * gcc.c (execute): Same.
27351 (eval_spec_function): Same.
27352 (run_attempt): Same.
27353 (driver::set_up_specs): Same.
27354 (compare_debug_auxbase_opt_spec_function): Same.
27355 * gcov-tool.c (unlink_gcda_file): Same.
27357 (do_rewrite): Same.
27358 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27359 * gimplify.c (gimplify_asm_expr): Same.
27360 (gimplify_adjust_omp_clauses): Same.
27361 * hsa-gen.c (gen_hsa_addr_insns): Same.
27362 (gen_hsa_insns_for_load): Same.
27363 (gen_hsa_cmp_insn_from_gimple): Same.
27364 (gen_hsa_insns_for_operation_assignment): Same.
27365 (gen_get_level): Same.
27366 (gen_hsa_alloca): Same.
27367 (omp_simple_builtin::generate): Same.
27368 (gen_hsa_atomic_for_builtin): Same.
27369 (gen_hsa_insns_for_call): Same.
27370 * input.c (dump_location_info): Same.
27371 * ipa-devirt.c (compare_virtual_tables): Same.
27372 * ira.c (ira_setup_eliminable_regset): Same.
27373 * lra-assigns.c (lra_assign): Same.
27374 * lra-constraints.c (lra_constraints): Same.
27375 * lto-streamer-in.c (lto_input_mode_table): Same.
27376 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27377 (merge_and_complain): Same.
27378 (compile_offload_image): Same.
27379 (compile_images_for_offload_targets): Same.
27380 (debug_objcopy): Same.
27383 * opts.c (print_specific_help): Same.
27384 (parse_no_sanitize_attribute): Same.
27385 (print_help): Same.
27386 (handle_param): Same.
27387 * plugin.c (add_new_plugin): Same.
27388 (parse_plugin_arg_opt): Same.
27389 (try_init_one_plugin): Same.
27390 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27391 operators, and types in diagnostics. Correct quoting and spelling
27393 * read-rtl-function.c (parse_edge_flag_token): Same.
27394 (function_reader::parse_enum_value): Same.
27395 * reg-stack.c (check_asm_stack_operands): Same.
27396 * regcprop.c (validate_value_data): Same.
27397 * sched-rgn.c (make_pass_sched_fusion): Same.
27398 * stmt.c (check_unique_operand_names): Same.
27399 * targhooks.c (default_target_option_pragma_parse): Same.
27400 * tlink.c (recompile_files): Same.
27401 * toplev.c (process_options): Same.
27402 (do_compile): Same.
27403 * trans-mem.c (diagnose_tm_1): Same.
27404 (ipa_tm_scan_irr_block): Same.
27405 (ipa_tm_diagnose_transaction): Same.
27406 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27407 format a tree code name in a diagnostic.
27408 (verify_types_in_gimple_min_lval): Same.
27409 (verify_types_in_gimple_reference): Same.
27410 (verify_gimple_call): Same.
27411 (verify_gimple_assign_unary): Same.
27412 (verify_gimple_assign_binary): Same.
27413 (verify_gimple_assign_ternary): Same.
27414 (verify_gimple_assign_single): Same.
27415 (verify_gimple_switch): Same.
27416 (verify_gimple_label): Same.
27417 (verify_gimple_phi): Same.
27418 (verify_gimple_in_seq): Same.
27419 (verify_eh_throw_stmt_node): Same.
27420 (collect_subblocks): Same.
27421 (gimple_verify_flow_info): Same.
27422 (do_warn_unused_result): Same.
27423 * tree-inline.c (expand_call_inline): Same.
27424 * tree-into-ssa.c (update_ssa): Same.
27425 * tree.c (tree_int_cst_elt_check_failed): Same.
27426 (tree_vec_elt_check_failed): Same.
27427 (omp_clause_operand_check_failed): Same.
27428 (verify_type_variant): Same.
27429 (verify_type): Same.
27430 * value-prof.c (verify_histograms): Same.
27431 * varasm.c (assemble_start_function): Same.
27433 2019-05-16 Martin Sebor <msebor@redhat.com>
27435 * config/i386/i386-expand.c (get_element_number): Quote keywords
27436 and other internal names in diagnostics. Adjust other diagnostic
27437 formatting issues noted by -Wformat-diag.
27438 * config/i386/i386-features.c
27439 (ix86_mangle_function_version_assembler_name): Same.
27440 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27441 * config/i386/i386.c (ix86_function_type_abi): Same.
27442 (ix86_function_ms_hook_prologue): Same.
27443 (classify_argument): Same.
27444 (ix86_expand_prologue): Same.
27445 (ix86_md_asm_adjust): Same.
27446 (ix86_memmodel_check): Same.
27448 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27450 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27451 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27454 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27457 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27458 intrinsics without SSE/SSE2/SSSE3.
27459 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27461 (*mmx_uavgv8qi3): Likewise.
27463 2019-05-17 Richard Biener <rguenther@suse.de>
27465 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27466 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27468 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27470 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27471 vec_sldw insn pattern.
27473 2019-05-17 Richard Biener <rguenther@suse.de>
27475 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27477 2019-05-17 Martin Liska <mliska@suse.cz>
27480 * toplev.c (output_stack_usage): With LTO and sanitizer it
27481 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27482 has no file location.
27484 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27487 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27488 sz0 is equal to sz1, instead return false in that case.
27490 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27491 has non-constant expression, force sctx.lane and use two
27492 argument IFN_GOMP_SIMD_LANE instead of single argument.
27493 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27494 two argument IFN_GOMP_SIMD_LANE without lhs.
27495 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27497 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27499 (LOOP_REQUIRES_VERSIONING): Or in
27500 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27501 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27503 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27504 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27505 from simd if clause if needed.
27507 2019-05-16 Richard Biener <rguenther@suse.de>
27509 * tree-affine.c (expr_to_aff_combination): New function split
27511 (tree_to_aff_combination): ... here.
27512 (aff_combination_expand): Avoid building a GENERIC tree.
27514 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27516 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27517 assemble_start_function and assemble_end_function calls.
27518 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27519 assemble_start_function and assemble_end_function.
27520 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27521 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27522 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27523 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27524 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27525 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27526 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27527 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27528 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27529 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27530 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27531 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27533 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27534 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27535 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27536 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27537 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27538 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27539 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27540 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27541 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27542 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27543 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27544 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27545 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27546 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27548 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27549 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27550 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27552 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27554 * tree-ssa-alias.c (alias_stats): Add
27555 aliasing_component_refs_p_may_alias and
27556 aliasing_component_refs_p_no_alias.
27557 (dump_alias_stats): Print aliasing_component_refs_p stats.
27558 (aliasing_component_refs_p): Update stats.
27560 2019-05-16 Martin Liska <mliska@suse.cz>
27563 * multiple_target.c (expand_target_clones): Do not allow
27564 target_clones being used with a symbol that is an alias.
27566 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27568 PR tree-optimization/90394
27569 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27570 positives rather than ICE for cases where (code2 == NE_EXPR
27571 && code1 == BIT_AND_EXPR).
27573 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27576 * tree-core.h (struct tree_decl_common): Document
27577 decl_nonshareable_flag for PARM_DECLs.
27578 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27579 * calls.c (expand_call): Don't try tail call if caller
27580 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27581 passed on the stack and callee needs to pass any arguments on the
27583 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27584 else if instead of series of mutually exclusive ifs. Handle
27585 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27586 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27588 * lto-streamer.h (LTO_major_version): Bump to 9.
27590 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27592 PR tree-optimization/90106
27593 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27594 new parameter as new internal function call, also move it to new
27596 (use_internal_fn): Pass internal function call to
27597 shrink_wrap_one_built_in_call_with_conds.
27599 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27601 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27603 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27604 safelen_int and set loop->dont_vectorize.
27606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27609 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27611 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27613 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27614 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27615 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27621 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27622 define_insn_and_split to support SSE emulation.
27623 (*vec_extractv2sf_0): Likewise.
27624 (*vec_extractv2sf_1): Likewise.
27625 (*vec_extractv2si_0): Likewise.
27626 (*vec_extractv2si_1): Likewise.
27627 (*vec_extractv2si_zext_mem): Likewise.
27628 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27629 (vec_extractv2sf_1 splitter): Likewise.
27630 (vec_extractv2sfsf): Likewise.
27631 (vec_setv2si): Likewise.
27632 (vec_extractv2si_1 splitter): Likewise.
27633 (vec_extractv2sisi): Likewise.
27634 (vec_setv4hi): Likewise.
27635 (vec_extractv4hihi): Likewise.
27636 (vec_setv8qi): Likewise.
27637 (vec_extractv8qiqi): Likewise.
27638 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27639 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27640 (vec_extractv2sisi): Likewise.
27641 (vec_extractv4hihi): Likewise.
27642 (vec_extractv8qiqi): Likewise.
27643 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27644 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27645 (vec_initv2sisi): Likewise.
27646 (vec_initv4hihi): Likewise.
27647 (vec_initv8qiqi): Likewise.
27648 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27649 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27650 (vec_setv4hi): Likewise.
27651 (vec_setv8qi): Likewise.
27653 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27656 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27657 TARGET_MMX_WITH_SSE.
27658 (MMXMODE:*mov<mode>_internal): Likewise.
27659 (MMXMODE:movmisalign<mode>): Likewise.
27661 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27664 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27665 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27666 (sse2_cvtpd2pi): Ditto.
27667 (sse2_cvttpd2pi): Ditto.
27668 (*vec_concatv2sf_sse4_1): Ditto.
27669 (*vec_concatv2sf_sse): Ditto.
27670 (*vec_concatv2si_sse4_1): Ditto.
27671 (*vec_concatv2si): Ditto.
27672 (*vec_concatv4si_0): Ditto.
27673 (*vec_concatv2di_0): Ditto.
27675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27678 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27680 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27683 * config/i386/sse.md (ssse3_palignrdi): Changed to
27684 define_insn_and_split to support SSE emulation.
27686 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27689 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27694 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27695 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27698 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27701 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27702 or TARGET_MMX_WITH_SSE.
27703 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27708 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27710 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27713 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27714 Changed to define_insn_and_split to support SSE emulation.
27716 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27719 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27720 Changed to define_insn_and_split to support SSE emulation.
27722 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27725 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27726 (*mmx_<emms>): This.
27727 (mmx_<emms>): New expander.
27729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27732 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27734 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27736 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27739 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27744 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27749 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27750 TARGET_MMX_WITH_SSE.
27751 (*mmx_uavgv4hi3): Add SSE emulation.
27753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27756 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27757 and TARGET_MMX_WITH_SSE.
27758 (*mmx_uavgv8qi3): Add SSE emulation.
27760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27763 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27764 maskmovdqu for __MMX_WITH_SSE__.
27766 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27769 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27770 TARGET_MMX and TARGET_MMX_WITH_SSE.
27771 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27776 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27777 define_insn_and_split to support SSE emulation.
27779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27782 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27783 and TARGET_MMX_WITH_SSE.
27784 (mmx_<code>v8qi3): Likewise.
27785 (smaxmin:<code>v4hi3): New.
27786 (umaxmin:<code>v8qi3): Likewise.
27787 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27788 (umaxmin:*mmx_<code>v8qi3): Likewise.
27790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27793 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27794 TARGET_MMX_WITH_SSE.
27795 (*mmx_pinsrw): Add SSE emulation.
27797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27800 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27805 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27806 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27812 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27813 (sse_cvttps2pi): Likewise.
27815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27818 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27819 TARGET_MMX_WITH_SSE.
27820 (mmx_pshufw_1): Add SSE emulation.
27821 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27822 TARGET_MMX_WITH_SSE to support SSE emulation.
27824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27827 * config/i386/constraints.md (Yw): New constraint.
27828 * config/i386/mmx.md (*vec_dupv2si): Changed to
27829 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27830 support SSE emulation.
27832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27835 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27836 TARGET_MMX_WITH_SSE.
27837 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27839 (mmx_gt<mode>3): Likewise.
27841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27844 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27845 TARGET_MMX_WITH_SSE. Add SSE support.
27847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27850 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27851 TARGET_MMX_WITH_SSE.
27852 (any_logic:<code><mode>3): New.
27853 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27859 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27860 TARGET_MMX_WITH_SSE. Add SSE emulation.
27861 (mmx_<shift_insn><mode>3): Likewise.
27862 (ashr<mode>3): New.
27863 (<shift_insn><mode>3): Likewise.
27865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27868 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27869 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27874 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27875 TARGET_MMX_WITH_SSE.
27876 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27879 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27882 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27883 TARGET_MMX_WITH_SSE.
27885 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27891 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27892 (plusminus:mmx_<plusminus_insn><mode>3): Check
27893 TARGET_MMX_WITH_SSE.
27894 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27895 (<plusminus_insn><mode>3): New.
27896 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27897 (*mmx_<plusminus_insn><mode>3): Likewise.
27899 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27902 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27903 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27905 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27906 define_insn_and_split to support SSE emulation.
27907 (mmx_punpcklbw): Likewise.
27908 (mmx_punpckhwd): Likewise.
27909 (mmx_punpcklwd): Likewise.
27910 (mmx_punpckhdq): Likewise.
27911 (mmx_punpckldq): Likewise.
27913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27914 Uros Bizjak <ubizjak@gmail.com>
27917 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27919 (ix86_split_mmx_pack): Likewise.
27920 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27922 (ix86_split_mmx_pack): Likewise.
27923 * config/i386/i386.md (mmx_isa): New.
27924 (enabled): Also check mmx_isa.
27925 * config/i386/mmx.md (any_s_truncate): New code iterator.
27926 (s_trunsuffix): New code attr.
27927 (mmx_packsswb): Removed.
27928 (mmx_packssdw): Likewise.
27929 (mmx_packuswb): Likewise.
27930 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27931 MMX packsswb/packuswb with SSE2.
27932 (mmx_packssdw): Likewise.
27933 * config/i386/predicates.md (register_mmxmem_operand): New.
27935 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27938 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27939 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27940 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27941 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27942 (ix86_vector_mode_supported_p): Likewise.
27943 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27945 2019-05-15 Martin Liska <mliska@suse.cz>
27947 PR middle-end/90478
27948 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27949 Check for overflow.
27951 2019-05-15 Richard Biener <rguenther@suse.de>
27953 * tree-into-ssa.c (pass_build_ssa::execute): Run
27954 update_address_taken before going into SSA.
27956 2019-05-15 Richard Biener <rguenther@suse.de>
27958 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27959 as __BIT_FIELD_REF with type with -gimple.
27961 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27963 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27964 semantically equivalent branches (left over after prior refactorings).
27966 2019-05-15 Richard Biener <rguenther@suse.de>
27968 PR tree-optimization/88828
27969 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27972 2019-05-14 Richard Biener <rguenther@suse.de>
27974 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27975 as __VIEW_CONVERT with -gimple.
27977 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27980 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27983 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27985 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27986 define_split to become a define_insn_and_split.
27988 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27990 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27992 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27993 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27994 (sibcall_epilogue): Adjust.
27995 (epilogue): Adjust.
27997 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27999 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28000 to unsupported ones.
28001 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28002 * config.host: Likewise.
28003 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28004 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28005 __svr4__]: Remove "brand" fallback.
28006 [!KSTAT_DATA_STRING]: Remove.
28007 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28009 (comdat_group): Likewise.
28010 (set_have_as_tls): Likewise.
28011 (gcc_cv_target_dl_iterate_phdr): Likewise.
28012 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28013 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28014 * configure: Regenerate.
28015 * doc/install.texi: Simplify Solaris target triplets.
28016 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28017 (Specific, *-*-solaris2*): Document Solaris 10 removal.
28018 Remove Solaris 10 references.
28019 Remove obsolete Solaris bug reference.
28020 (Specific, sparc-sun-solaris2.10): Remove.
28022 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
28024 * config/i386/i386.md (any_div): New code iterator.
28025 (paired_mod): New code attribute.
28026 (sgnprefix): Handle DIV and UDIV RTXes.
28028 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28029 and udivmod<mode>4 patterns using any_div code iterator.
28030 (divmod splitters): Macroize splitters using any_div code iterator.
28031 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28032 (*udivmodsi4_pow2_zext_2): Ditto.
28033 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28034 and *udivmod<mode>4_noext patterns using any_div code iterator.
28035 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28036 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28037 patterns using any_div code iterator.
28038 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28039 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28040 patterns using any_div code iterator.
28041 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28042 udivmodhiqi3 patterns using any_extend code iterator.
28044 2019-05-14 Richard Biener <rguenther@suse.de>
28045 H.J. Lu <hongjiu.lu@intel.com>
28047 PR tree-optimization/88828
28048 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28049 permuting in a single non-constant element not extracted
28052 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28054 * internal-fn.def (SIGNBIT): New.
28055 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28057 (signbitv4sf2): Likewise.
28059 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28062 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28063 next insn when the SRC reg is dead.
28065 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28067 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28068 (alloc_cand_and_find_basis): Ditto.
28069 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28070 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28071 (create_add_imm_cand, slsr_process_cast): Ditto.
28072 (slsr_process_copy, replace_mult_candidate): Ditto.
28073 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28074 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28075 (pass_strength_reduction::execute): Init the first NULL element.
28077 2019-05-13 Nathan Sidwell <nathan@acm.org>
28079 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28080 (run_attempt): Reformat line break.
28082 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28085 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28086 data registers in sibcall epilogues.
28087 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28089 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28092 * configure.ac (--enable-frame-pointer):
28093 Disable by default for cygwin and mingw.
28094 * configure: Regenerate.
28096 2019-05-13 Nathan Sidwell <nathan@acm.org>
28098 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28100 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28101 (gen_member_die): Move abstract origin check earlier. Only VARs
28102 can be static_inline_p. Simplify splicing control flow.
28104 2019-05-13 Richard Biener <rguenther@suse.de>
28106 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28108 (vect_build_slp_tree_1): Likewise.
28110 2019-05-13 Richard Biener <rguenther@suse.de>
28112 PR tree-optimization/90402
28113 * tree-if-conv.c (tree_if_conversion): Value number only
28114 the loop body by making the latch an exit of the region
28116 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28118 (do_rpo_vn): Deal with multiple edges into the entry block
28119 that are not backedges inside the region by skipping PHIs
28120 of the entry block.
28122 2019-05-13 Richard Biener <rguenther@suse.de>
28124 PR tree-optimization/90316
28125 * tree-ssa-pre.c (insert_aux): Fold into ...
28126 (insert): ... this function. Use a RPO walk to reduce the
28127 number of required iterations.
28129 2019-05-13 Martin Liska <mliska@suse.cz>
28131 PR tree-optimization/90416
28132 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28133 string instead of passing the second part as va_arg argument.
28135 2019-05-13 Martin Liska <mliska@suse.cz>
28137 PR gcov-profile/90380
28138 * gcov.c (handle_cycle): Do not support zero cycle count,
28139 it should not be possible.
28140 (path_contains_zero_cycle_arc): New function.
28141 (circuit): Ignore zero cycle arc counts.
28143 2019-05-13 Martin Liska <mliska@suse.cz>
28145 PR gcov-profile/90380
28146 * gcov.c (enum loop_type): Remove the enum and
28148 (handle_cycle): Assert that we should not reach
28150 (circuit): Use loop_found instead of a tri-state loop_type.
28151 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28154 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28157 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28158 (ix86_output_indirect_branch_via_reg): Use output mechanism
28159 accounting for __USER_LABEL_PREFIX__.
28160 (ix86_output_indirect_branch_via_push): Likewise.
28161 (ix86_output_function_return): Likewise.
28162 (ix86_output_indirect_function_return): Likewise.
28164 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28166 * doc/md.texi: Document use of code attributes in rtx patterns.
28167 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28168 * read-rtl.c (find_code): Split out search loops into...
28169 (maybe_find_code): ...this new function.
28170 (check_code_iterator): Make the error message more informative.
28171 (check_code_attribute): New function.
28172 (rtx_reader::rtx_alloc_for_name): Likewise.
28173 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28174 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28175 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28176 <max_opp> directly as an rtx code instead of via a match_operator.
28177 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28178 (<su>abd<mode>_3): Update accordingly.
28180 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28182 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28183 is given, print the state of the EH "save world" computation for
28186 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28189 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28190 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28192 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28194 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28195 Use pinsrd for TARGET_SSE4_1.
28196 * config/i386/sse.md (movdi_to_sse): Ditto.
28198 2019-05-10 Richard Biener <rguenther@suse.de>
28200 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28201 (do_rpo_vn): Initialize next_value_id.
28203 2019-05-10 Martin Liska <mliska@suse.cz>
28205 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28208 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28210 PR tree-optimization/90385
28211 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28212 arguments of the exit phis.
28215 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28216 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28218 (copy_tree_body_r): Likewise.
28219 (copy_fn): Set id.do_not_fold to true.
28221 2019-05-10 Martin Liska <mliska@suse.cz>
28223 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28224 Reapply changes from r269790.
28226 2019-05-10 Martin Liska <mliska@suse.cz>
28228 PR middle-end/90340
28229 * doc/invoke.texi: New params.
28230 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28231 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28232 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28234 * tree-switch-conversion.h (struct jump_table_cluster):
28237 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28239 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28241 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28243 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28245 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28247 PR rtl-optimization/88879
28248 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28250 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28253 * config/arm/arm.c (callee_saved_reg_p): Move before
28254 thumb_find_work_register.
28255 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28256 thumb_find_work_register. Only call df_get_live_out once.
28257 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28258 (thumb_find_work_register): Use
28259 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28260 algorithms to locate a spare call clobbered reg.
28262 2019-05-09 Martin Liska <mliska@suse.cz>
28264 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28265 and MAX_EXPR in GIMPLE FE format.
28267 2019-05-09 Martin Liska <mliska@suse.cz>
28269 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28270 * gimple-pretty-print.c (dump_gimple_bb_header):
28272 (pp_cfg_jump): Dump edge probability.
28273 * profile-count.c (profile_quality_as_string): Simplify
28274 with a static array.
28275 (parse_profile_quality): New function.
28276 (profile_count::dump): Simplify with a static array.
28277 (profile_count::from_gcov_type): Add new argument.
28278 * profile-count.h (parse_profile_quality): Likewise.
28279 * predict.h (set_hot_bb_threshold): New.
28280 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28282 * predict.c (get_hot_bb_threshold): Set from the new param.
28283 (set_hot_bb_threshold): New.
28285 2019-05-09 Richard Biener <rguenther@suse.de>
28287 PR tree-optimization/90395
28288 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28289 rewrite vector stores that throw internally.
28291 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28293 * cif-code.def (CHKP): Remove.
28296 * configure.ac (--enable-frame-pointer): Disable by default for
28298 * configure: Regenerate.
28300 2019-05-09 Alan Modra <amodra@gmail.com>
28303 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28304 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28305 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28306 cost for general <-> vsx when direct moves are available.
28307 Cost union classes at minimal cost for any reg in the class.
28308 Correct calculation for moves between vsx, float, and altivec.
28309 Don't return a low cost for moves between special regs. Don't
28310 use hard coded register numbers.
28311 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28312 (rs6000_ira_change_pseudo_allocno_class): New function.
28313 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28314 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28316 (movsi_internal1): Don't disparage vector alternatives.
28317 (mov<mode>_internal): Likewise, excepting alternative that
28319 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28320 we <- b alternative.
28322 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28325 PR tree-optimization/89060
28326 * tree-ssa-live.h (live_vars_map): New typedef.
28327 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28328 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28329 (struct compute_live_vars_data): New type.
28330 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28331 live_vars_at_stmt, destroy_live_vars): New functions.
28332 * tree-tailcall.c: Include tree-ssa-live.h.
28333 (live_vars, live_vars_vec): New global variables.
28334 (find_tail_calls): Perform variable life analysis before punting.
28335 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28336 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28338 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28339 Perform variable life analysis to select variables that really need
28341 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28342 instead set id->eh_landing_pad_dest and assert it is the same.
28343 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28345 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28346 Richard Earnshaw <rearnsha@arm.com>
28349 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28351 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28352 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28353 register if both the epilogue and prologue can use call-clobbered
28355 (thumb1_unexpanded_epilogue): Use
28356 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28357 picking temporaries for restoring high regs to match that of the
28358 prologue where possible.
28359 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28360 the list of work registers. Detect if the return address is still live
28361 at the end of the prologue and avoid using it for a work register if so.
28362 If the return address is not live, add LR to the list of pushable regs
28363 after the first pass.
28365 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28367 PR tree-optimization/90078
28368 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28369 (INFTY): Increase the value for infinite cost.
28370 (struct comp_cost): Promote type of members to int64_t.
28371 (infinite_cost): Don't set complexity in initialization.
28372 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28373 overflows to infinite_cost.
28374 (adjust_setup_cost): Promote type of parameter and cost computation
28376 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28378 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28379 cost computation to int64_t.
28380 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28381 int64_t's format specifier in dump.
28383 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28385 PR tree-optimization/90240
28386 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28387 with respect to scaling factor pre-computed for each basic block.
28388 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28389 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28390 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28391 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28392 live range for array of loop's basic blocks. Cleanup aux field of
28393 loop's basic blocks.
28395 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28397 PR tree-optimization/90356
28398 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28400 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28402 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28403 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28404 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28405 (ix86_handle_option): Handle -mavx512bf16.
28406 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28408 * config/i386/avx512bf16vlintrin.h: New.
28409 * config/i386/avx512bf16intrin.h: New.
28410 * config/i386/cpuid.h (bit_AVX512BF16): New.
28411 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28412 * config/i386/i386-builtin-types.def: Add new types.
28413 * config/i386/i386-builtin.def: Add new builtins.
28414 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28416 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28417 (ix86_option_override_internal): Handle BF16.
28418 (ix86_valid_target_attribute_inner_p): Ditto.
28419 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28420 * config/i386/i386-builtin.c (enum processor_features): Add
28422 (static const _isa_names_table isa_names_table): Ditto.
28423 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28424 (PTA_AVX512BF16): Ditto.
28425 * config/i386/i386.opt: Add -mavx512bf16.
28426 * config/i386/immintrin.h: Include avx512bf16intrin.h
28427 and avx512bf16vlintrin.h.
28428 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28429 avx512f_cvtneps2bf16_<mode><mask_name>,
28430 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28431 * config/i386/subst.md (mask_half): Add new subst.
28432 * doc/invoke.texi: Document -mavx512bf16.
28434 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28436 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28437 Delete declaration.
28438 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28439 (rs6000_debug_legitimize_reload_address): Delete.
28440 (rs6000_legitimize_reload_address_ptr): Delete.
28441 (rs6000_option_override_internal): Adjust.
28442 (mem_operand_gpr): Adjust comment.
28443 (legitimate_lo_sum_address_p): Ditto.
28444 (rs6000_legitimize_reload_address): Delete.
28445 (rs6000_debug_legitimize_reload_address): Delete.
28446 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28448 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28451 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28452 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28453 to compute vector element selector for both constant and variable
28456 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28458 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28459 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28460 ashrdi3_cvt using SWI48 mode iterator.
28462 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28464 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28465 (aarch64_<su>abd<mode>_3): Likewise.
28466 (*aarch64_<su>abd<mode>_3): New define_insn.
28467 (<sur>sad<vsi2qi>): New define_expand.
28468 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28469 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28470 (build_vect_cond_expr): Likewise.
28472 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28474 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28475 clobbers outside of accessible_reg_set.
28476 * config/i386/i386.c (ix86_conditional_register_usage):
28477 Disable register sets by clearing corresponding bits in
28478 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28479 call_used_regs and don't clear corresponding reg_names array members.
28481 2019-05-07 Richard Biener <rguenther@suse.de>
28483 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28484 not specified still compute a comp_vectype for invariant
28487 2019-05-07 Richard Biener <rguenther@suse.de>
28489 PR tree-optimization/90316
28490 * tree-ssa-pre.c (translate_vuse_through_block): When
28491 same_valid is NULL do not bother to search for a virtual
28493 (phi_translate_1): When operands changed we cannot keep
28494 the same value-number so do not bother to ask whether
28495 that's possible from translate_vuse_through_block.
28497 2019-05-07 Martin Liska <mliska@suse.cz>
28499 * bitmap.c (bitmap_register): Come up with
28500 alloc_descriptor_max_uid and assign it for
28502 (register_overhead): Use get_descriptor as
28504 (release_overhead): New.
28505 (bitmap_elem_to_freelist): Call it.
28506 (bitmap_elt_clear_from): Likewise.
28507 (bitmap_obstack_free): Likewise.
28508 (bitmap_move): Sensitively release memory.
28509 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28510 (bitmap_initialize): Initialize alloc_descriptor to zero.
28511 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28513 2019-05-07 Richard Biener <rguenther@suse.de>
28515 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28516 we build a SLP node. Remove max_size and limiting.
28517 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28519 2019-05-07 Richard Biener <rguenther@suse.de>
28521 PR tree-optimization/90316
28522 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28523 limit by reference.
28524 (walk_non_aliased_vuses): Take walking limit argument.
28525 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28526 walking if it is reached instead of just counting.
28527 (get_continuation_for_phi): Likewise.
28528 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28529 limiting to the callback.
28530 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28531 (vn_reference_lookup_3): Likewise.
28532 (vn_reference_lookup_pieces): Likewise.
28533 (vn_reference_lookup): Likewise.
28534 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28535 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28536 (avail_exprs_stack::lookup_avail_expr): Likewise.
28538 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28540 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28541 for comparaible types in the second direction even if first one
28542 hits incomparable type.
28544 2019-05-07 Richard Biener <rguenther@suse.de>
28547 * lto-wrapper.c (debug_objcopy): Use the original filename
28548 including archive offset for the filename used for -save-temps.
28550 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28552 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28555 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28556 Hongtao Liu <hongtao.liu@intel.com>
28560 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28561 Modified, original implementation isn't correct.
28563 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28565 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28566 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28567 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28568 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28569 (FRAME_POINTER_REGNUM): Change numbering.
28570 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28571 (alt_reg_names): Adjust.
28572 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28574 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28575 (DWARF_FRAME_REGISTERS): Delete.
28576 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28577 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28579 (REG_ALLOC_ORDER): Adjust.
28580 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28581 (REG_CLASS_CONTENTS): Adjust.
28582 (RETURN_ADDR_RTX): Change comment.
28583 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28585 (REGISTER_NAMES): Adjust.
28586 (ADDITIONAL_REGISTER_NAMES): Adjust.
28587 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28589 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28591 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28593 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28594 (DWARF_FRAME_REGISTERS): Adjust.
28595 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28597 (REG_ALLOC_ORDER): Adjust.
28598 (enum reg_class): Delete SPR_REGS.
28599 (REG_CLASS_NAMES): Delete SPR_REGS.
28600 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28601 (REGISTER_NAMES): Adjust.
28602 (ADDITIONAL_REGISTER_NAMES): Adjust.
28603 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28604 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28605 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28606 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28607 (htm_spr_regno): Delete.
28608 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28610 (rs6000_dbx_register_number): Adjust.
28612 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28614 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28616 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28618 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28619 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28621 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28623 PR tree-optimization/88709
28624 PR tree-optimization/90271
28625 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28626 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28627 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28629 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28630 of the store merging group is larger than
28631 PARAM_STORE_MERGING_MAX_SIZE parameter.
28632 (split_group): Add bzero_first argument. If set, always emit first
28633 the first store which must be = {} of the whole area and then for the
28634 rest of the stores consider all zero bytes as paddings.
28635 (imm_store_chain_info::output_merged_store): Check if first store
28636 is = {} of the whole area and if yes, determine which setting of
28637 bzero_first for split_group gives smaller number of stores. Adjust
28638 split_group callers.
28639 (lhs_valid_for_store_merging_p): Allow decls.
28640 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28642 (pass_store_merging::process_store): Likewise.
28644 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28647 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28648 handling of V1TImode.
28650 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28653 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28654 and enable_frame_pointer ...
28655 * configure.ac: ... here. Update help strings for
28656 --enable-frame-pointer.
28657 * configure: Regenerate.
28658 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28659 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28660 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28661 (USE_X86_64_FRAME_POINTER): Ditto.
28663 2019-05-06 Martin Liska <mliska@suse.cz>
28665 * config.gcc: Append to target_gtfiles and fix indentation.
28667 2019-05-06 Richard Biener <rguenther@suse.de>
28669 PR tree-optimization/90358
28670 * tree-vect-stmts.c (get_group_load_store_type): Properly
28671 detect unused upper half of load.
28672 (vectorizable_load): Likewise.
28674 2019-05-06 Richard Biener <rguenther@suse.de>
28676 PR tree-optimization/88828
28677 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28678 (simplify_vector_constructor): ...here. Handle constants in
28681 2019-05-06 Richard Biener <rguenther@suse.de>
28683 PR tree-optimization/90328
28684 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28685 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28686 is valid in the loop nest before using it.
28687 (initialize_data_dependence_relation): Adjust.
28688 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28689 loop as loop-nest to dr_may_alias_p.
28691 2019-05-06 Richard Biener <rguenther@suse.de>
28693 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28695 2019-05-06 Richard Biener <rguenther@suse.de>
28697 PR tree-optimization/90316
28698 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28699 compute target on demand.
28700 (get_continuation_for_phi): Remove code walking stmts to
28701 get to a target virtual operand which could end up being
28704 2019-05-06 Martin Liska <mliska@suse.cz>
28707 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28708 when -mabi is selected to a non-default version.
28710 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28711 Martin Liska <mliska@suse.cz>
28713 * Makefile.in: Add lto-dump.texi.
28714 * cgraph.h: Add new functions get_visibility_string and
28715 get_symtab_type_string.
28716 * doc/gcc.texi: Include lto-dump section.
28717 * doc/lto-dump.texi: New file.
28718 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28719 (parse_dump_option): Factor out this function.
28720 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28721 (parse_dump_option): Export the function.
28722 * symtab.c (symtab_node::get_visibility_string): New function.
28723 (symtab_node::get_symtab_type_string): Likewise.
28725 2019-05-06 Martin Liska <mliska@suse.cz>
28727 * config/i386/i386-builtins.c: New file.
28728 * config/i386/i386-builtins.h: New file.
28729 * config/i386/i386-expand.c: New file.
28730 * config/i386/i386-expand.h: New file.
28731 * config/i386/i386-features.c: New file.
28732 * config/i386/i386-features.h: New file.
28733 * config/i386/i386-options.c: New file.
28734 * config/i386/i386-options.h: New file.
28735 * config.gcc: Add new files into extra_objs and
28737 * config/i386/i386.c: Split content of the file
28738 into newly introduced files.
28739 * config/i386/i386.h: Declare common variables
28741 * config/i386/t-i386: Define dependencies for new files.
28743 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28746 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28747 Restrict 'all' variant to 32-bit configurations.
28748 (unaligned_loadhiu): Likewise.
28749 (unaligned_storehi): Likewise.
28750 (unaligned_storesi): Likewise.
28751 (unaligned_loadhis): Disable when compiling for thumb1.
28753 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28755 PR tree-optimization/90269
28756 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28759 2019-05-03 Martin Liska <mliska@suse.cz>
28761 * hash-map.h: Add is_empty function.
28762 * hash-set.h: Likewise.
28763 * hash-table.h: Likewise.
28764 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28765 elements () == 0 (and similar usages).
28766 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28767 * gimplify.c (gimplify_bind_expr): Likewise.
28768 (gimplify_switch_expr): Likewise.
28769 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28770 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28771 * postreload-gcse.c (dump_hash_table): Likewise.
28772 (gcse_after_reload_main): Likewise.
28773 * predict.c (combine_predictions_for_bb): Likewise.
28774 * tree-parloops.c (reduction_phi): Likewise.
28775 (separate_decls_in_region): Likewise.
28776 (transform_to_exit_first_loop): Likewise.
28777 (gen_parallel_loop): Likewise.
28778 (gather_scalar_reductions): Likewise.
28779 (try_create_reduction_list): Likewise.
28780 * var-tracking.c (dump_vars): Likewise.
28781 (emit_notes_for_changes): Likewise.
28782 (vt_emit_notes): Likewise.
28784 2019-05-03 Richard Biener <rguenther@suse.de>
28786 PR tree-optimization/90316
28787 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28790 2019-05-03 Richard Biener <rguenther@suse.de>
28792 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28793 peeling for gaps by loading only lower halves of vectors
28795 (vectorizable_load): Likewise.
28797 2019-05-03 Richard Biener <rguenther@suse.de>
28799 PR middle-end/89518
28800 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28802 2019-05-03 Richard Biener <rguenther@suse.de>
28804 PR middle-end/87314
28805 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28806 Handle STRING_CST vs DECL or STRING_CST.
28808 2019-05-03 Richard Biener <rguenther@suse.de>
28810 PR tree-optimization/88963
28811 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28812 vector loads feeding only BIT_FIELD_REFs to component
28813 loads. Rewrite stores fed by CONSTRUCTORs to component
28816 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28818 * opts.h (finish_options): Remove lang_mask argument.
28819 (print_help, help_option_argument): Declare.
28820 * opts.c (print_help): Remove forward declaration, no longer static.
28821 (finish_options): Remove lang_mask argument, don't call print_help
28823 * opts-global.c (decode_options): Adjust finish_option caller, call
28826 PR tree-optimization/90303
28827 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28828 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28830 2019-05-03 Richard Biener <rguenther@suse.de>
28832 PR tree-optimization/89698
28833 * gimple-fold.c (canonicalize_constructor_val): Early out
28834 for constants, handle unfolded INTEGER_CSTs as they appear in
28835 C++ virtual table ctors.
28837 2019-05-03 Richard Biener <rguenther@suse.de>
28839 * passes.c (execute_function_todo): Remove dead code.
28841 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28843 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28844 the internal register number, for any "real" register.
28846 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28848 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28849 correct numbers for TFHAR, TFIAR, TEXASR.
28851 2019-05-02 Richard Biener <rguenther@suse.de>
28853 PR tree-optimization/89653
28854 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28855 update-address-taken before the pass.
28856 * passes.def (pass_tree_loop_init): Put comment before it.
28858 2019-05-02 Richard Biener <rguenther@suse.de>
28860 PR tree-optimization/89509
28861 * tree-ssa-structalias.c (compute_dependence_clique): Look
28862 at the first subvar when determining whether it is restrict.
28864 2019-05-02 Richard Biener <rguenther@suse.de>
28866 PR tree-optimization/90273
28867 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28868 useless debug stmts.
28870 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28872 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28874 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28876 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28877 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28878 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28879 (vectorizable_reduction): Use the functions above to vectorize in a
28880 fully masked loop codes that don't have a conditional internal
28883 2019-05-02 Martin Liska <mliska@suse.cz>
28885 * cgraphclones.c: Call valid_attribute_p with 1 for
28887 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28888 it's for target attribute.
28889 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28890 Add new boolean argument.
28891 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28893 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28894 to ix86_valid_target_attribute_inner_p.
28895 (ix86_valid_target_attribute_p): Pass flags argument to
28896 ix86_valid_target_attribute_inner_p.
28897 (get_builtin_code_for_version): Use 0 as it's target attribute.
28899 2019-05-02 Martin Liska <mliska@suse.cz>
28901 * gcc.c (process_command): Add dummy file only
28903 * opts-global.c (decode_options): Pass lang_mask.
28904 * opts.c (print_help): New function.
28905 (finish_options): Print --help if help_option_argument
28907 (common_handle_option): Factor out content of OPT__help_
28909 * opts.h (finish_options): Add new argument.
28911 2019-05-02 Martin Liska <mliska@suse.cz>
28914 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28915 With -minline-all-stringops use inline expansion using 4B loop.
28916 * doc/invoke.texi: Document the change of
28917 -minline-all-stringops.
28919 2019-05-01 Jeff Law <law@redhat.com>
28921 PR tree-optimization/88797
28922 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28923 PHI feeds a conditional on the RHS of an assignment.
28925 2019-04-30 Andrew Waterman <andrew@sifive.com>
28926 Jim Wilson <jimw@sifive.com>
28928 * config/riscv/constraints.md (L): New.
28929 * config/riscv/predicates.md (lui_operand): New.
28930 (sfb_alu_operand): New.
28931 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28932 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28933 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28934 * config/riscv/risc.md (type): Add sfb_alu.
28935 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28936 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28937 (branch_zero<mode>): Delete.
28938 (mov<mode>cc): New.
28939 (mov<GPR:mode><X:mode>cc): Likewise.
28940 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28942 2019-04-30 Nathan Sidwell <nathan@acm.org>
28944 * tree.h (MARK_TS_EXP): New.
28946 2019-04-30 Martin Liska <mliska@suse.cz>
28948 * opts.c (enable_warning_as_error): Provide hints
28949 for unknown options.
28951 2019-04-30 Martin Liska <mliska@suse.cz>
28954 * doc/invoke.texi: Add missing dash for gas-locview-support
28955 and gno-as-locview-support.
28957 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28960 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28961 whitespace at the start of target attribute string.
28963 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28966 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28967 Define __ARM_FEATURE_ATOMICS.
28969 2019-04-30 Martin Liska <mliska@suse.cz>
28971 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28972 into built_in_function enum. Remove code for endp == 2 and
28973 use BUILT_IN_* constants.
28974 (gimple_fold_builtin): Call the function with fcode.
28976 2019-04-30 Martin Liska <mliska@suse.cz>
28978 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28979 DECL_FUNCTION_CODE into ix86_builtins enum before
28980 the switch statement.
28982 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28984 PR tree-optimization/89475
28985 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28988 2019-04-30 Martin Liska <mliska@suse.cz>
28990 PR translation/90274
28991 * opts.c (print_filtered_help): Wrap string in _(...).
28993 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28995 PR tree-optimization/90240
28997 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28999 PR tree-optimization/90078
29000 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29001 checks for infinite_cost overflow.
29003 2019-04-29 Jeff Law <law@redhat.com>
29005 * passes.def: Move -Wrestrict pass after copy propagation.
29007 2019-04-29 Maya Rashish <coypu@sdf.org>
29009 * config.gcc (default_gnu_indirect_function): Default to yes
29010 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29011 sparc*-*-netbsd*, x86_64-*-netbsd*.
29013 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
29015 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29016 where cond2 is NE_EXPR.
29017 (is_value_included_in): Update comment.
29019 2019-04-29 Richard Biener <rguenther@suse.de>
29021 PR tree-optimization/90278
29022 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29023 EH on comparison simplification.
29025 2019-04-29 Jason Merrill <jason@redhat.com>
29027 PR c++/82081 - tail call optimization breaks noexcept
29028 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29029 nothrow function to a might-throw function into a tail call.
29031 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
29033 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29034 (DDR_INNER_LOOP): Likewise.
29035 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29036 (initialize_data_dependence_relation): Likewise.
29037 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29039 2019-04-29 Jakub Jelinek <jakub@redhat.com>
29041 PR rtl-optimization/90257
29042 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29046 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29050 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29053 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29056 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29058 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29060 2019-04-29 Richard Biener <rguenther@suse.de>
29062 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29065 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29067 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29068 varasm.h, and netbsd-protos.h.
29070 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29073 * config/i386/i386-protos.h (ix86_data_alignment): Change
29074 the second argument type to unsigned int.
29075 * config/i386/i386.c (ix86_data_alignment): Change "align"
29076 argument type to unsigned int.
29078 2019-04-27 Martin Liska <mliska@suse.cz>
29080 PR middle-end/90258
29081 * opt-suggestions.c (option_proposer::build_option_suggestions):
29082 When get_valid_option_values returns empty values, add the
29083 misspelling candidate.
29085 2019-04-26 Jim Wilson <jimw@sifive.com>
29087 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29089 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29090 Pass orig_mode to riscv_build_integer.
29091 (riscv_split_integer): Pass mode to riscv_move_integer.
29092 (riscv_legitimize_const_move): Likewise.
29093 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29094 promoted_mode. Replace force_reg call with code to load constant into
29095 promoted reg and then subreg it for the store.
29096 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29097 riscv_move_integer.
29099 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29101 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29104 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29106 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29107 commentary about the encoding of precision.
29109 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29111 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29112 * config/i386/t-freebsd64: New file.
29113 * config.gcc: Add the t-freebsd64 for multilib support.
29115 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29117 * doc/extend.texi (vector_size): Add missing comma after @xref.
29119 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29121 * BASE-VER: Set to 10.0.0.
29123 2019-04-25 Richard Biener <rguenther@suse.de>
29125 PR middle-end/89765
29126 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29127 VIEW_CONVERT_EXPR into one operating on an rvalue.
29129 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29132 * config/i386/i386.c (feature_priority): Moved to file scope.
29133 (processor_features): Likewise.
29134 (processor_model): Likewise.
29135 (_arch_names_table): Likewise.
29136 (arch_names_table): Likewise.
29137 (_feature_list): Removed.
29138 (feature_list): Likewise.
29139 (_isa_names_table): Moved to file scope. Add priority.
29140 (isa_names_table): Likewise.
29141 (get_builtin_code_for_version): Replace feature_list with
29142 isa_names_table. Update error message for P_ZERO priority.
29144 2019-04-25 Richard Biener <rguenther@suse.de>
29146 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29147 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29149 2019-04-24 Jeff Law <law@redhat.com>
29151 PR tree-optimization/90037
29152 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29153 * passes.def: Replace all instance of phi-only cprop with the
29154 lattice propagator. Move propagation pass from after erroneous
29155 path isolation to before erroneous path isolation.
29156 * tree-ssa-phionlycprop.c: Remove.
29158 2019-04-24 Richard Biener <rguenther@suse.de>
29160 PR middle-end/90213
29161 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29162 by size and BITS_PER_UNIT on poly-wide-ints.
29164 2019-04-25 Richard Biener <rguenther@suse.de>
29166 PR middle-end/90194
29167 * match.pd: Add pattern to simplify view-conversion of an
29170 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29172 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29173 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29174 for Go on 32 bit AIX.
29175 * config/rs6000/aix72.h: Likewise.
29177 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29180 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29181 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29183 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29186 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29187 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29188 for restored hard frame pointer.
29189 (s390_sched_dependencies_evaluation): Implement new target hook.
29190 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29192 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29194 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29195 * config/arc/arc.c (arc_init): Cleanup warning message.
29196 (arc_override_options): Likewise.
29198 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29201 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29202 a register if both if_true and if_false are MEMs.
29204 PR tree-optimization/90208
29205 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29206 after labels of new_bb, not before them.
29208 PR tree-optimization/90211
29209 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29210 which are not SSA_NAMEs.
29212 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29214 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29216 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29218 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29220 PR rtl-optimization/87979
29221 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29224 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29226 PR rtl-optimization/84032
29227 * modulo-sched.c (ps_insn_find_column): Change condition so that
29228 branch will always be the last insn in a row inside partial
29231 2019-04-23 Richard Biener <rguenther@suse.de>
29234 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29235 dest_single_pred_p argument.
29236 (remove_forwarder_block): Adjust.
29237 (remove_forwarder_block_with_phi): Likewise.
29239 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29240 Bernd Edlinger <bernd.edlinger@hotmail.de>
29241 Jakub Jelinek <jakub@redhat.com>
29244 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29245 if used with general-regs-only.
29246 (arm_conditional_register_usage): Don't add non-general regs if
29248 (arm_valid_target_attribute_rec): Handle general-regs-only.
29249 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29251 (TARGET_HARD_FLOAT_SUB): Define.
29252 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29253 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29254 (TARGET_REALLY_IWMMXT2): Likewise.
29255 * config/arm/arm.opt: Add -mgeneral-regs-only.
29256 * doc/extend.texi: Document ARM general-regs-only target.
29257 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29259 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29261 PR tree-optimization/90078
29262 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29263 checks for infinite_cost overflow.
29265 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29267 PR tree-optimization/90021
29268 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29269 and check univariate against it.
29270 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29271 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29273 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29277 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29280 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29283 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29285 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29287 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29289 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29290 names using operand format, rather than hard-wired.
29291 (speculation_barrier): Likewise.
29293 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29295 PR tree-optimization/88055
29296 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29297 (gen_one_condition): Use it if !HONOR_NANS.
29299 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29301 PR middle-end/90139
29302 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29303 assign_temp instead of gen_reg_rtx.
29305 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29307 PR translation/90118
29308 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29309 Add missing space before %<.
29311 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29313 PR rtl-optimization/87871
29314 * ira-lives.c (make_object_dead): Don't add conflicts to
29315 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29317 2019-04-18 Martin Sebor <msebor@redhat.com>
29319 PR middle-end/89797
29320 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29321 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29322 assuming type size fits in SHWI.
29324 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29327 * ipa-inline.c (flatten_function): New parameter UPDATE.
29328 (ipa_inline, early_inliner): Use it.
29330 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29332 * fold-const.c (int_const_binop): Return early on failure.
29334 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29336 PR middle-end/85164
29337 * combine.c (force_int_to_mode): Cast the argument rather than
29338 the result of known_alignment.
29339 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29341 2019-04-18 Richard Biener <rguenther@suse.de>
29344 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29346 (remove_forwarder_block): ... here.
29347 (remove_forwarder_block_with_phi): Also move debug stmts here.
29349 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29351 PR translation/79183
29352 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29353 inform where appropriate.
29355 2019-04-18 Richard Biener <rguenther@suse.de>
29357 * tree.c (get_qualified_type): Put found type variants at the
29358 head of the variant list.
29360 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29362 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29364 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29367 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29368 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29369 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29370 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29371 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29373 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29375 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29376 even for allocno's with no conflicts.
29377 (print_conflicts): Print an extra newline.
29379 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29381 * auto-inc-dec.c (attempt_change): Set the alignment of the
29382 temporary memory to that of the original.
29384 2019-04-17 Joao Moreira <jmoreira@suse.de>
29386 * targhooks.c (default_print_patchable_function_entry): Emit
29387 __patchable_function_entries section with writable flags to allow
29388 relocation resolution.
29390 2019-04-17 Jonny Grant <jg@jguk.org>
29392 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29394 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29396 PR middle-end/90095
29397 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29398 on lowpart SUBREGs.
29400 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29402 * config/arc/arc.c (arc_init): Format diagnostic string.
29403 (arc_override_options): Likewise.
29404 (check_if_valid_regno_const): Likewise.
29405 (arc_reorg): Likewise.
29407 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29410 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29412 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29414 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29415 (*movdi_update1): Use Pmode.
29416 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29417 (movdi_<mode>_update_stack): Rename to ...
29418 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29420 (*movsi_update1): Use Pmode.
29421 (*movsi_update2): Use Pmode.
29422 (movsi_update): Rename to ...
29423 (movsi_<mode>_update): ... this. Use Pmode.
29424 (movsi_update_stack): Fix condition.
29425 (*movhi_update1): Use Pmode. Fix argument to
29426 avoiding_indexed_address_p.
29427 (*movhi_update2): Ditto.
29428 (*movhi_update3): Ditto.
29429 (*movhi_update4): Ditto.
29430 (*movqi_update1): Ditto.
29431 (*movqi_update2): Ditto.
29432 (*movqi_update3): Ditto.
29433 (*movsf_update1, *movdf_update1): Merge, rename to...
29434 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29435 avoiding_indexed_address_p. Add "size" attribute.
29436 (*movsf_update2, *movdf_update2): Merge, rename to...
29437 (*mov<mode>_update2): This. Ditto.
29438 (*movsf_update3): Use Pmode. Fix argument to
29439 avoiding_indexed_address_p.
29440 (*movsf_update4): Ditto.
29441 (allocate_stack): Simplify condition. Adjust pattern names.
29443 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29446 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29447 whitespace at the start of target attribute string.
29449 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29452 * config/rs6000/power9.md: Add store forwarding bypass.
29454 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29457 * valtrack.c (dead_debug_insert_temp): Reset debug references
29458 to the return value of a call being removed.
29460 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29462 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29463 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29464 implement target hook.
29465 (arc_memory_move_cost): New function.
29466 (TARGET_REGISTER_MOVE_COST): Define.
29467 (TARGET_MEMORY_MOVE_COST): Likewise.
29468 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29469 (MEMORY_MOVE_COST): Likewise.
29471 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29473 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29474 (sibcall_value_insn): Likewise.
29475 * config/arc/constraints.md (Rs5): Remove.
29477 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29479 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29480 for last two fake registers.
29481 (arc_conditional_register_usage): Make sure fake frame and arg
29482 pointer regs are in general regs class.
29483 (FRAME_POINTER_MASK): Remove.
29484 (RETURN_ADDR_MASK): Remove.
29485 (arc_must_save_register): Use hard frame regnum.
29486 (frame_restore_reg): Use hard_frame_pointer_rtx.
29487 (arc_save_callee_saves): Likewise.
29488 (arc_restore_callee_saves): Likewise.
29489 (arc_save_callee_enter): Likewise.
29490 (arc_restore_callee_leave): Likewise.
29491 (arc_save_callee_milli): Likewise.
29492 (arc_eh_return_address_location): Likewise.
29493 (arc_check_multi): Use hard frame regnum.
29494 (arc_can_eliminate): Likewise.
29495 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29496 for register allocator.
29497 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29498 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29499 (FRAME_POINTER_REGNUM): Change it to a fake register.
29500 (HARD_FRAME_POINTER_REGNUM): Defined.
29501 (ARG_POINTER_REGNUM): Change it to a new fake register.
29502 (ELIMINABLE_REGS): Update.
29503 (REGISTER_NAMES): Update names.
29504 * config/arc/arc.md (LP_START): Remove.
29505 (LP_END): Likewise.
29506 (shift_si3_loop): Update pattern.
29508 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29510 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29511 to avoid delay slot scheduling.
29512 (arc_must_save_register): Don't save SP.
29513 * config/arc/arc.md (stack_tie): Remove.
29514 (UNSPEC_ARC_STKTIE): Likewise.
29516 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29517 Shiva Chen <shiva0217@gmail.com>
29519 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29520 code gen with large shift amount.
29522 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29524 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29527 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29530 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29531 print -m64/-mx32/-m32 if it is true.
29532 (ix86_debug_options, ix86_function_specific_print): Pass true as
29533 ADD_ABI_P to ix86_target_string.
29534 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29535 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29536 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29538 PR rtl-optimization/90082
29539 * dce.c (can_delete_call): New function.
29540 (deletable_insn_p, mark_insn): Use it.
29542 PR tree-optimization/90090
29543 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29545 (is_division_by_square): Likewise. Formatting fix.
29547 2019-04-16 Richard Biener <rguenther@suse.de>
29549 PR tree-optimization/56049
29550 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29551 equality check if alias-set zero will prevail.
29553 2019-04-15 Jeff Law <law@redhat.com>
29555 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29556 size and alignment as unsigned.
29558 2019-04-15 Richard Biener <rguenther@suse.de>
29561 * tree-loop-distribution.c (destroy_loop): Preserve correct
29564 2019-04-15 Richard Biener <rguenther@suse.de>
29566 PR tree-optimization/90071
29567 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29568 abnormal operands from def stmts.
29570 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29572 PR rtl-optimization/89794
29573 * combine.c (count_auto_inc): New function.
29574 (try_combine): Count how many auto_inc expressions there were in the
29575 original instructions. Ensure we have the same number in the new
29576 instructions. Remove the code that tried to ensure auto_inc side
29577 effects on i1 and i0 are not lost.
29579 2019-04-15 Richard Biener <rguenther@suse.de>
29582 * tree.h (auto_var_p): Declare.
29583 * tree.c (auto_var_p): New function, split out from ...
29584 (auto_var_in_fn_p): ... here.
29585 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29587 (new_var_info): Initialize it.
29588 (set_uids_in_ptset): Also set the shadow variable uid if required.
29589 (ipa_pta_execute): Postprocess points-to solutions assigning
29590 shadow variable uids for locals that may reach their containing
29591 function recursively.
29592 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29593 assert but instead check whether the points-to solution is
29596 2019-04-15 Martin Jambor <mjambor@suse.cz>
29599 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29602 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29604 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29606 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29607 Kito Cheng <kito.cheng@gmail.com>
29608 Shiva Chen <shiva0217@gmail.com>
29610 * config/nds32/nds32-md-auxiliary.c
29611 (nds32_legitimize_pic_address): Use new PIC pattern.
29612 (nds32_legitimize_tls_address): Use new TLS pattern.
29613 (nds32_output_symrel): New.
29614 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29615 (nds32_alloc_relax_group_id): Ditto.
29616 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29617 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29619 (nds32_group_tls_insn): Ditto.
29620 (nds32_group_float_insns): Ditto.
29621 * config/nds32/nds32.md (tls_le): New.
29624 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29626 * configure: Add nds32 target for dwarf2 debug_line checking.
29627 * configure.ac: Regenerated.
29629 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29632 * ipa-devirt.c (skip_in_fields_list_p): New.
29633 (odr_types_equivalent_p): Use it.
29635 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29638 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29639 instead of strncmp when checking for thumb and arm. Formatting fixes.
29641 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29643 * doc/install.texi: Document --with-target-system-zlib.
29645 2019-04-12 Martin Sebor <msebor@redhat.com>
29651 * targhooks.c (default_vector_alignment): Avoid assuming
29652 argument fits in SHWI.
29653 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29654 a shift expression.
29655 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29657 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29659 PR rtl-optimization/89965
29660 * dce.c: Include rtl-iter.h.
29661 (struct check_argument_load_data): New type.
29662 (check_argument_load): New function.
29663 (find_call_stack_args): Check for loads from stack slots still tracked
29664 in sp_bytes and punt if any is found.
29666 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29668 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29670 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29671 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29673 2019-04-12 Martin Liska <mliska@suse.cz>
29675 PR middle-end/89970
29676 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29678 (separate_attrs): Handle multiple 'default's.
29679 (expand_target_clones): Rework error handling code.
29681 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29684 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29685 mode of vector rather than mode of destination for move instruction.
29686 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29687 Use QI inner mode with V16QI vector mode.
29689 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29692 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29693 "invalid %%t operand" in output_operand_lossage message.
29695 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29697 * config/s390/predicates.md (permute_pattern_operand): New
29699 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29700 operand for the permute pattern.
29701 ("*vec_perm<mode>"): New insn definition.
29702 ("bswap<mode>"): Generate the permute pattern operand in the
29703 expander and perform the operand reloads for pre arch13 level
29705 ("*bswap<mode>_emu"): Rename to ...
29706 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29707 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29708 Add the USE operand for the permute pattern.
29709 ("*vec_set_bswap_vec<mode>"): Likewise.
29711 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29714 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29715 and gcc_unreachable if it fails, just call tree_to_uhwi which
29716 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29717 Start warning message with a lower-case letter. Formatting fixes.
29719 PR rtl-optimization/90026
29720 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29721 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29722 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29723 in cfglayout mode, use emit_barrier_after_bb.
29725 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29727 PR rtl-optimization/87763
29728 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29731 2019-04-11 Tom de Vries <tdevries@suse.de>
29733 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29734 max macro using statement expression.
29736 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29738 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29739 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29740 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29741 read_only_private_data_section using xcoff_private_rodata_section_name.
29742 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29744 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29747 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29749 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29751 PR rtl-optimization/89965
29752 * dce.c (sp_based_mem_offset): New function.
29753 (find_call_stack_args): Use sp_based_mem_offset.
29755 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29757 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29759 2019-04-11 Richard Biener <rguenther@suse.de>
29761 PR tree-optimization/90020
29762 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29763 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29764 * tree-ssa-pre.c (compute_avail): Use it to not put
29765 possibly trapping references after a call that might not
29766 return into EXP_GEN.
29767 * gcse.c (compute_hash_table_work): Do not elide
29768 marking a block containing a call if the call might not
29771 2019-04-11 Richard Biener <rguenther@suse.de>
29773 PR tree-optimization/90018
29774 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29775 Test both SLP and interleaving variants.
29777 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29779 * config/s390/8561.md: New file.
29780 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29781 Add arch13 cpu model.
29782 * config/s390/s390-opts.h (enum processor_type): Likewise.
29783 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29784 (s390_get_unit_mask): Likewise.
29785 (s390_is_fpd): Likewise.
29786 (s390_is_fxd): Likewise.
29787 * config/s390/s390.h (s390_tune_attr): Likewise.
29788 * config/s390/s390.md: Include arch13 pipeline description.
29789 * config/s390/s390.opt: Add arch13.
29791 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29793 PR rtl-optimization/87763
29794 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29796 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29798 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29800 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29801 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29802 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29803 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29805 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29807 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29808 "Although" in -fipa-icf documentation.
29810 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29811 of using multiple -g options.
29813 2019-04-10 Martin Liska <mliska@suse.cz>
29815 PR gcov-profile/89959
29816 * doc/gcov.texi: Make documentation of -x option
29819 2019-04-10 Richard Biener <rguenther@suse.de>
29821 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29823 (DR_GROUP_SAME_DR_STMT): Remove.
29824 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29825 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29826 replace with assert.
29827 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29828 (vect_record_grouped_load_vectors): Remove unreachable code.
29830 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29833 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29834 obsolete reference to N.
29836 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29838 PR middle-end/90025
29839 * expr.c (store_expr): Set properly size on the MEM passed to
29843 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29844 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29845 translation is needed, and when translation is needed, only append
29846 ... if the string length is hostsz or more bytes long. Avoid using
29849 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29852 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29853 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29855 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29856 differences directly.
29857 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29859 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29861 PR translation/90011
29862 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29864 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29866 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29867 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29868 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29869 trailing space from -gsplit-dwarf diagnostics.
29871 PR tree-optimization/89998
29872 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29873 instead of integer_type_node if possible, don't add ranges if return
29874 type is not compatible with int.
29875 * gimple-fold.c (gimple_fold_builtin_sprintf,
29876 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29879 2019-04-09 Martin Liska <mliska@suse.cz>
29881 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29882 * doc/install.texi: Document the new config.
29884 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29886 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29887 use gimple_expr_type for load and store calls. Skip over the
29888 condition argument in a conditional internal function.
29889 Protect use of TREE_INT_CST_LOW.
29891 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29894 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29895 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29896 trailing period from it too.
29898 2019-04-08 wu yuan <wuyuan5@huawei.com>
29900 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29901 * config/aarch64/aarch64.md: Add "tsv110.md".
29902 * config/aarch64/tsv110.md: New file.
29904 2019-04-08 Richard Biener <rguenther@suse.de>
29906 PR tree-optimization/90006
29907 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29910 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29913 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29915 (fma_root_node): Likewise.
29916 (func_fma_steering): Likewise.
29918 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29920 PR rtl-optimization/89865
29921 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29923 PR rtl-optimization/89865
29924 * config/i386/i386.md
29925 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29926 numbers not to clash with the additional operands[4].
29927 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29928 with extra register copy in the middle.
29930 2019-04-08 Martin Liska <mliska@suse.cz>
29932 PR gcov-profile/89961
29933 * doc/gcov.texi: Document data_file.
29934 * gcov.c (generate_results): Add data_info into JSON output.
29936 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29938 PR tree-optimization/89725
29939 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29940 loop's chrec as invariant symbol.
29941 * tree-chrec.h (chrec_contains_symbols): New parameter.
29942 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29943 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29944 function of loops not in DDR's loop_nest.
29945 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29947 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29950 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29953 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29956 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29957 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29959 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29961 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29962 targetm.fixed_condition_code_regs.
29964 2019-04-05 Richard Biener <rguenther@suse.de>
29968 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29969 debug bind stmts but reset them if they are not valid at the
29972 2019-04-05 Martin Liska <mliska@suse.cz>
29974 PR translation/89936
29975 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29976 order to wrap keywords or arguments.
29977 * collect2.c (main): Likewise.
29978 (scan_prog_file): Likewise.
29979 (scan_libraries): Likewise.
29980 * common/config/riscv/riscv-common.c
29981 (riscv_subset_list::parsing_subset_version): Likewise.
29982 (riscv_subset_list::parse_std_ext): Likewise.
29983 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29985 * config/arm/arm.c (arm_option_override): Likewise.
29986 * config/cris/cris.c (cris_print_operand): Likewise.
29987 * config/darwin-c.c (darwin_pragma_options): Likewise.
29988 (darwin_pragma_unused): Likewise.
29989 (darwin_pragma_ms_struct): Likewise.
29990 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29991 * config/i386/i386.c (print_reg): Likewise.
29992 (ix86_print_operand): Likewise.
29993 * config/i386/xm-djgpp.h: Likewise.
29994 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29995 * config/m32c/m32c.c (m32c_option_override): Likewise.
29996 * config/msp430/msp430.c (msp430_option_override): Likewise.
29997 * config/nds32/nds32.c (nds32_option_override): Likewise.
29998 * config/nvptx/mkoffload.c (main): Likewise.
29999 * config/rx/rx.c (rx_print_operand): Likewise.
30000 (valid_psw_flag): Likewise.
30001 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30002 (vms_pragma_nomember_alignment): Likewise.
30003 (vms_pragma_extern_model): Likewise.
30004 * lto-wrapper.c (compile_offload_image): Likewise.
30005 * omp-offload.c (oacc_parse_default_dims): Likewise.
30006 * symtab.c (symtab_node::verify_base): Likewise.
30007 * tlink.c (recompile_files): Likewise.
30008 (start_tweaking): Likewise.
30009 * tree-profile.c (parse_profile_filter): Likewise.
30011 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
30013 PR tree-optimization/89956
30014 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30015 multiple negates of the same value.
30017 2019-04-04 Martin Sebor <msebor@redhat.com>
30019 PR middle-end/89957
30020 PR middle-end/89911
30021 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30022 have the same precision since the function crashes otherwise.
30023 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30024 has non-zero arguments.
30026 2019-04-04 Martin Sebor <msebor@redhat.com>
30028 PR middle-end/89934
30029 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30030 out if the number of arguments is less than expected.
30032 2019-04-04 Jeff Law <law@redhat.com>
30034 PR rtl-optimization/89399
30035 * ree.c (combine_set_extension): Use single_set rather than
30036 digging into PATTERN for items on the candidate list.
30037 (combine_reaching_defs): Likewise.
30039 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
30041 PR rtl-optimization/46590
30042 * loop-invariant.c (find_defs): Move df_remove_problem and
30043 df_process_deferred_rescans to move_invariants.
30044 Move df_live_add_problem and df_live_set_all_dirty calls
30045 to move_invariants.
30046 (move_invariants): Likewise.
30047 (move_loop_invariants): Likewise, making the df_live calls
30048 conditional on -O. Remove the problem again if we added it
30051 2019-04-03 qing zhao <qing.zhao@oracle.com>
30053 PR tree-optimization/89730
30054 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30055 -flive-patching=inline-only-static.
30056 (can_inline_edge_by_limits_p): Add the checking for
30057 -flive-patching=inline-only-static and grant always_inline
30058 even when -flive-patching=inline-only-static is specified.
30060 2019-04-03 Jeff Law <law@redhat.com>
30062 PR rtl-optimization/81025
30063 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30065 2019-04-03 Richard Biener <rguenther@suse.de>
30067 PR tree-optimization/84101
30068 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30069 regs.h for hard_regno_nregs.
30070 (cfun_returns): New helper.
30071 (vect_model_store_cost): When vectorizing a store to a decl
30072 we return and the function ABI returns in a multi-reg location
30073 account for the possible spilling that will happen.
30075 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30077 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30078 displacement addresses for vector mode operands.
30080 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30082 * config/arc/arc.c (GMASK_LEN): Define.
30083 (arc_restore_callee_saves): Restore first blink when
30086 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30088 * doc/extend.texi: Add deprecated comment on sign-return-address
30089 function attribute and add mbranch-protection.
30090 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30092 2019-04-03 Richard Biener <rguenther@suse.de>
30095 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30096 the all target phony.
30098 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30102 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30103 Return false for variable DImode shifts.
30104 (dimode_scalar_chain::compute_convert_gain): Do not handle
30105 register count operand in variable DImode shifts.
30106 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30107 count argument of a variable shift instruction to a vector register.
30108 (dimode_scalar_chain::convert_reg): Remove support to convert
30109 count argument of a variable shift instruction.
30111 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30113 PR rtl-optimization/84206
30114 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30115 iterating over loop headers.
30117 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30119 PR rtl-optimization/85876
30120 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30121 beyond the original fence.
30123 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30125 * config.gcc: Mark spu* targets as deprecated/obsolete.
30127 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30129 * config/s390/s390-builtin-types.def: New builtin function type
30130 definitions. Remove unused types.
30131 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30132 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30133 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30134 overloaded builtins.
30135 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30136 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30137 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30138 (vec_double, vec_signed, vec_unsigned): Define to use the new
30139 overloaded builtins.
30140 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30143 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30145 * config/s390/s390-builtin-types.def: New builtin function type
30147 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30148 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30149 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30150 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30151 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30152 constant definitions.
30153 * config/s390/vecintrin.h (vec_search_string_cc)
30154 (vec_search_string_until_zero_cc): New builtin name definitions.
30155 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30157 ("vec_vstrs<mode>"): New insn definition.
30159 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30161 * config/s390/s390-builtin-types.def: Add new builtin function
30163 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30164 New overloaded builtins.
30165 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30167 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30168 (UNSPEC_VEC_SLDBYTE): ... this.
30169 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30170 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30172 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30173 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30174 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30176 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30178 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30179 New insn definition.
30180 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30181 * config/s390/vector.md (V_HW_HSD): ... here.
30183 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30185 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30186 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30187 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30188 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30189 New insn definitions.
30191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30193 * config/s390/s390-builtin-types.def: Add new builtin function type.
30194 * config/s390/s390-builtins.def: Add overloaded builtin
30195 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30196 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30197 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30198 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30199 ("eltswap<mode>"): New expander.
30200 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30203 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30205 * config/s390/s390-builtin-types.def: Add new builtin function types.
30206 * config/s390/s390-builtins.def: Add overloaded builtin
30207 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30209 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30210 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30211 ("bswap<mode>"): New expander.
30212 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30214 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30216 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30217 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30218 vector builtin version number in __VEC__.
30220 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30222 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30224 (SFSI): New mode attribute.
30225 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30226 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30228 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30229 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30230 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30231 ("floatsi<mode>2"): Add wcefb instruction.
30233 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30235 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30236 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30238 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30239 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30240 support 32 bit fp-int conversions. Rename to ...
30241 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30242 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30243 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30244 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30247 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30249 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30250 if-then-else constructs if we can use the select instruction.
30251 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30253 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30255 * config/s390/s390.md ("*popcountdi_arch13_cc")
30256 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30258 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30259 Append _z196 to make it ...
30260 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30261 ("popcounthi2_z196"): ... this.
30262 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30263 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30265 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30267 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30268 certain compares for arch13 in order to make use of the condition
30269 code result produced by the new instructions.
30270 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30271 nxrk, and nxgrk instruction patterns.
30272 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30273 (inv_no): Add new code iterator together with some attributes.
30274 ("*andc_split_<mode>"): Disable splitter for arch13.
30275 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30276 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30277 ("*<ANDOR:bitops_name>c<GPR:mode>")
30278 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30279 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30280 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30281 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30283 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30285 * common/config/s390/s390-common.c (processor_flags_table): New
30287 * config.gcc: Support arch13 with the --with-arch= configure flag.
30288 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30289 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30290 * config/s390/s390.c (s390_get_sched_attrmask)
30291 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30292 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30293 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30294 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30295 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30297 * config/s390/s390.opt: Support arch13 as processor type in
30298 command line options.
30300 2019-04-02 Martin Liska <mliska@suse.cz>
30302 PR translation/89912
30303 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30304 Fix param description of graphite-max-arrays-per-scop.
30306 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30308 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30309 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30310 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30312 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30314 PR rtl-optimization/85412
30315 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30316 sel_sched_region_1, not after.
30318 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30320 PR rtl-optimization/86928
30321 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30322 compute_live if necessary.
30323 (sel_redirect_edge_and_branch): Likewise.
30325 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30327 PR rtl-optimization/89865
30328 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30329 register if it is a part of small class.
30331 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30333 PR rtl-optimization/87273
30334 * sel-sched-ir.c (merge_fences): Remove assert.
30336 2019-04-01 Richard Biener <rguenther@suse.de>
30338 PR tree-optimization/46590
30339 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30340 (dom_walker::m_reachability): Add in place of...
30341 (dom_walker::m_skip_unreachable_blocks): ...this.
30342 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30343 Move complex initialization ...
30344 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30345 lazily and initialize edge flags on each invocation.
30346 (dom_walker::bb_reachable): Use m_reachability.
30348 2019-04-01 Martin Liska <mliska@suse.cz>
30351 * opt-suggestions.c (option_proposer::build_option_suggestions):
30352 Add variant without any argument in order to provide better
30355 2019-04-01 Richard Biener <rguenther@suse.de>
30358 * gimple.c: Include langhooks.h.
30359 (gimple_get_alias_set): Treat enumeral types as the underlying
30362 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30363 Eric Botcazou <ebotcazou@adacore.com>
30365 PR rtl-optimization/89862
30366 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30367 that operates on the full registers for WORD_REGISTER_OPERATIONS
30370 2019-03-29 Jim Wilson <jimw@sifive.com>
30372 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30373 Clear MASK_RVC and then set if C subset supported.
30375 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30378 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30379 non-addressable complit into its initializer if it is volatile.
30381 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30383 * opts-common.c (integral_argument): Set errno properly in one case.
30385 2019-03-29 Martin Liska <mliska@suse.cz>
30387 * doc/invoke.texi: Remove -Wchkp from documentation.
30389 2019-03-29 Martin Liska <mliska@suse.cz>
30391 * dbgcnt.c (print_limit_reach): New function.
30394 2019-03-29 Martin Liska <mliska@suse.cz>
30396 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30397 (dbg_cnt_process_opt): Parse first tokens aas
30398 dbg_cnt_process_single_pair is also using strtok.
30400 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30402 PR rtl-optimization/87485
30403 * function.c (expand_function_end): Move stack_protect_epilogue
30404 before loading of return value into hard register(s).
30406 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30408 PR middle-end/89621
30409 * tree-inline.h (struct copy_body_data): Add
30410 dont_remap_vla_if_no_change flag.
30411 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30412 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30413 and remap_type_2 returns false.
30414 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30415 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30416 only from where it is copied to nested contexts.
30418 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30421 * config/i386/i386.md (RMW operation with LEA peephole):
30422 Use LEAMODE mode attribute instead of SWI mode iterator for
30425 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30428 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30429 Also process XEXP (src, 0) of a shift insn.
30431 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30433 PR middle-end/89725
30434 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30435 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30437 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30439 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30441 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30442 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30443 immediately after first one with df_analyze in between, but rather
30444 process all bbs, queueing ones that need second pass in a worklist,
30445 df_analyze, process queued debug insn changes and if second pass is
30446 needed, process bbs from worklist, df_analyze, process queued debug
30449 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30450 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30451 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30453 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30456 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30459 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30462 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30463 function for 32-bit MS_ABI.
30464 (function_value_ms_32): New function.
30466 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30468 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30469 (movdi): Call gen_movdi_symbol_save_scc.
30470 (gen_movdi_symbol_save_scc): New insn and split.
30472 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30474 PR rtl-optimization/89313
30475 * function.c (matching_constraint_num): New static function.
30476 (match_asm_constraints_1): Use it. Fixup white space and comment.
30477 Don't replace inputs with non-matching constraints which conflict
30478 with early clobber outputs.
30480 2019-03-27 Jeff Law <law@redhat.com>
30482 PR rtl-optimization/87761
30483 PR rtl-optimization/89826
30484 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30486 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30487 note problem to get REG_DEAD/REG_UNUSED notes updated.
30489 2019-03-27 Richard Biener <rguenther@suse.de>
30491 PR tree-optimization/89463
30492 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30493 queue edges to remove.
30494 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30495 dead stmts. Delay edge removal until PHIs are removed to
30496 make debug-stmt creation not confused by seemingly degenerate
30499 2019-03-27 Alan Modra <amodra@gmail.com>
30501 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30503 * config/rs6000/darwin.h: Likewise.
30504 * config/rs6000/rs6000.c: Likewise.
30506 2019-03-27 Alan Modra <amodra@gmail.com>
30508 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30509 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30511 2019-03-26 Andrew Waterman <andrew@sifive.com>
30512 Jim Wilson <jimw@sifive.com>
30514 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30515 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30516 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30517 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30518 (generic_alu): Add auipc to type list.
30519 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30520 (riscv_microarchitecture): Declare.
30521 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30522 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30524 (riscv_microarchitecture): New.
30525 (sifive_7_tune_info): New.
30526 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30527 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30529 (riscv_store_data_bypass_p): New.
30530 (riscv_option_override): Set riscv_microarchitecture from
30531 cpu->microarchitecture.
30532 * config/riscv/riscv.md: Include sifive-7.md.
30535 (auipc<mode>): Change type to auipc.
30536 (restore_stack_nonlocal): New.
30537 * config/riscv/sifive-7.md: New.
30538 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30540 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30543 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30544 Also process XEXP (src, 0) of a shift insn.
30546 2019-03-26 Richard Biener <rguenther@suse.de>
30548 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30549 (copy_debug_stmt): Likewise.
30550 (expand_call_inline): Likewise.
30551 (copy_bb): Avoid redundant lookup & set of gimple_block.
30552 * gimple-low.c (lower_gimple_return): Likewise.
30553 (lower_builtin_setjmp): Likewise.
30555 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30557 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30558 is constant 0, turn into static const data member initialized to false.
30559 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30560 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30562 2019-03-26 Jason Merrill <jason@redhat.com>
30563 Jakub Jelinek <jakub@redhat.com>
30565 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30567 (mem_alloc_description::release_object_overhead): Fix comment typos.
30568 * hash-table.h (hash_table::~hash_table): Call
30569 release_instance_overhead only if m_entries is non-NULL, otherwise
30570 call unregister_descriptor.
30572 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30574 PR tree-optimization/81740
30575 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30576 In case of outer loop vectorization, check for backward dependence
30577 at the inner loop if outer loop dependence is reversed.
30579 2019-03-26 Alan Modra <amodra@gmail.com>
30581 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30582 rs6000_vector_mem init. Correct wI and wJ comment.
30584 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30586 PR rtl-optimization/88347
30587 PR rtl-optimization/88423
30588 * sched-deps.c (sched_analyze_insn): Take into account that for
30589 tablejumps the barrier appears after a label and a jump_table_data.
30591 2019-03-25 Martin Sebor <msebor@redhat.com>
30594 * c-common.c (check_user_alignment): Rename local. Correct maximum
30595 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30596 convert it to UHWI when it fits.
30598 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30601 * dwarf2out.c (premark_used_variables): New function.
30602 (prune_unused_types_walk): Do not mark not premarked external
30604 (prune_unused_types): Call premark_used_variables.
30606 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30608 PR rtl-optimization/89676
30609 * lra-constraints.c (curr_insn_transform): Do match reload for
30610 early clobbers when the match was successful only for different
30613 2019-03-25 Martin Sebor <msebor@redhat.com>
30615 * doc/extend.texi (Common Type Attributes): Document vector_size.
30616 (Common Variable Attributes): Mention size constraint. Correct
30618 (Vector Extensions): Use @dfn when defining bas type. Clarify
30619 base type and size constraints.
30621 2019-03-25 Richard Biener <rguenther@suse.de>
30623 PR tree-optimization/89789
30624 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30625 changes from non-undefined back to undefined.
30627 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30629 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30630 heap string and a gc string, but since this variable is unknown to
30631 ggc the gc string might get reused and corrupted. Fixed by always
30632 using a heap string.
30634 2019-03-25 Richard Biener <rguenther@suse.de>
30636 PR tree-optimization/89779
30637 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30638 to remove IV defs, delay actual removal.
30639 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30640 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30641 very end, properly also reset loop control IV information.
30643 2019-03-25 Richard Biener <rguenther@suse.de>
30645 PR tree-optimization/89802
30646 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30647 move EH data to folded stmt.
30649 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30651 * config/s390/s390-builtin-types.def: Remove few unused types and
30652 fix sort order for others.
30654 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30656 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30657 expected and found types with -mdebug during builtin matching.
30659 2019-03-25 Richard Biener <rguenther@suse.de>
30661 PR middle-end/89790
30662 * fold-const.c (operand_equal_p): Revert last change with
30665 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30667 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30668 notes for the result of the __tls_get_addr calls.
30669 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30671 2019-03-24 Jeff Law <law@redhat.com>
30673 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30675 PR rtl-optimization/87761
30676 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30677 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30679 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30680 rescans. Reprocess blocks as needed, calling df_analyze before
30681 reprocessing. Always call df_analyze before fixing up debug bind
30684 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30686 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30689 2019-03-22 Andrew Pinski <apinski@marvell.com>
30691 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30692 attrribute for uxtw.
30694 2019-03-26 Jeff Law <law@redhat.com>
30696 PR rtl-optimization/87761
30697 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30698 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30699 (mips_split_move): Accept new INSN argument. Try to forward SRC
30700 into the next instruction.
30701 (mips_split_move_insn): Pass INSN through to mips_split_move.
30703 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30705 PR rtl-optimization/89676
30706 * lra-constraints.c (curr_insn_transform): Do match reload for
30707 early clobbers even if the match was successful.
30709 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30712 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30714 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30716 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30718 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30720 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30721 <avx512>_fmsub_<mode>_mask3<round_name>,
30722 <avx512>_fnmadd_<mode>_mask3<round_name>,
30723 <avx512>_fnmsub_<mode>_mask3<round_name>,
30724 avx512f_vmfmadd_<mode>_mask3<round_name>,
30725 avx512f_vmfmsub_<mode>_mask3<round_name>,
30726 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30727 instead of register_operand and %v instead of v for match_operand 1.
30728 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30729 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30730 <round_nimm_predicate> instead of register_operand and %v instead of v
30731 for match_operand 1.
30733 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30734 <avx512>_fmadd_<mode>_mask3<round_name>,
30735 <avx512>_fmsub_<mode>_mask<round_name>,
30736 <avx512>_fmsub_<mode>_mask3<round_name>,
30737 <avx512>_fnmadd_<mode>_mask<round_name>,
30738 <avx512>_fnmadd_<mode>_mask3<round_name>,
30739 <avx512>_fnmsub_<mode>_mask<round_name>,
30740 <avx512>_fnmsub_<mode>_mask3<round_name>,
30741 <avx512>_fmaddsub_<mode>_mask<round_name>,
30742 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30743 <avx512>_fmsubadd_<mode>_mask<round_name>,
30744 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30745 <round_nimm_predicate> instead of nonimmediate_operand.
30746 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30747 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30748 Use register_operand instead of <round_nimm_predicate> for the
30749 operand that needs to match output.
30750 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30751 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30752 Likewise. Formatting fixes.
30755 * config/i386/i386.c (enum ix86_builtins): Remove
30756 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30757 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30758 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30759 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30760 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30761 __builtin_ia32_vfmsubss3_mask3): New builtins.
30762 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30763 avx512f_vmfmadd_<mode>_mask3<round_name>,
30764 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30765 *avx512f_vmfmsub_<mode>_mask<round_name>,
30766 avx512f_vmfmsub_<mode>_mask3<round_name>,
30767 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30768 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30769 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30770 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30771 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30772 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30773 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30774 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30775 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30776 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30777 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30778 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30779 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30780 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30781 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30782 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30783 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30784 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30785 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30786 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30787 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30788 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30789 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30790 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30791 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30792 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30793 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30794 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30796 2019-03-21 Martin Sebor <msebor@redhat.com>
30798 PR tree-optimization/89350
30799 * builtins.c (compute_objsize): Also ignore offsets whose upper
30801 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30802 (builtin_memref::builtin_memref): Initialize new member.
30803 Allow EXPR to be null.
30804 (builtin_memref::extend_offset_range): Replace local with a member.
30805 Avoid assuming pointer offsets are unsigned.
30806 (builtin_memref::set_base_and_offset): Determine base object
30807 before computing offset range.
30808 (builtin_access::builtin_access): Handle memset.
30809 (builtin_access::generic_overlap): Replace local with a member.
30810 (builtin_access::strcat_overlap): Same.
30811 (builtin_access::overlap): Same.
30812 (maybe_diag_overlap): Same.
30813 (maybe_diag_access_bounds): Same.
30814 (wrestrict_dom_walker::check_call): Handle memset.
30815 (check_bounds_or_overlap): Same.
30817 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30818 Jakub Jelinek <jakub@redhat.com>
30821 * tree.c (fld_type_variant, fld_incomplete_type_of,
30822 fld_process_array_type): Call fld->pset.add and don't call
30823 add_tree_to_fld_list if it returns true.
30824 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30825 non-marked types from TYPE_NEXT_VARIANT list.
30826 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30828 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30830 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30831 to false, if true, don't alloc_entries during construction, but defer
30832 it to the first method that needs m_entries allocated.
30833 (hash_table::hash_table, hash_table::~hash_table,
30834 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30835 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30836 hash_table::clear_slot, hash_table::traverse_noresize,
30837 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30838 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30840 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30841 NO_INSERT instead of find_with_hash.
30842 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30843 hash_set::m_table): Add Lazy to template params of hash_table.
30844 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30845 * attribs.c (test_attribute_exclusions): Likewise.
30846 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30847 hash_set. Add tests for hash_set with Lazy = true.
30849 2019-03-21 Richard Biener <rguenther@suse.de>
30851 PR tree-optimization/89779
30852 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30853 checks with respect to released SSA names now having error_mark_node
30855 * fold-const.c (operand_equal_p): Likewise.
30857 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30860 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30862 (s390_optimize_register_info): Use global_not_special_regno_p to
30863 check for global regs.
30865 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30868 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30869 update this_alternative nor this_alternative_set.
30871 2019-03-19 Jim Wilson <jimw@sifive.com>
30874 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30875 align, size, offset. Use them to handle a BLKmode reference. Update
30877 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30879 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30881 PR rtl-optimization/89768
30882 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30883 instead of GEN_INT.
30884 (unroll_loop_runtime_iterations): Likewise.
30886 2019-03-19 Martin Sebor <msebor@redhat.com>
30888 PR tree-optimization/89644
30889 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30890 rather than endptr as an indicator of nul-termination.
30892 PR tree-optimization/89644
30893 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30894 arrays in determining sequence sizes in strncpy and stpncpy.
30896 2019-03-19 Martin Liska <mliska@suse.cz>
30898 PR middle-end/89737
30899 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30900 unlikely_edges if there's an edge that belongs to both these sets.
30902 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30905 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30906 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30907 go via a stack temporary.
30909 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30912 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30913 instead of gen_rtx_SUBREG.
30914 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30916 2019-03-19 Richard Biener <rguenther@suse.de>
30919 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30921 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30925 * tree.c (free_lang_data_in_decl): Do not free context of C++
30928 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30931 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30932 subs for the first alternative except when operands[3] is 1.
30935 * gimplify.c (gimplify_asm_expr): For output argument with
30936 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30939 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30941 PR rtl-optimization/89753
30942 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30943 explicit unrolling factor even more robust.
30945 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30948 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30949 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30950 signed zeros, do another copysign after the compensation.
30952 2019-03-18 Martin Sebor <msebor@redhat.com>
30954 PR tree-optimization/89720
30955 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30956 more conservatively, the same as anti-range.
30958 2019-03-18 Richard Biener <rguenther@suse.de>
30960 PR middle-end/88945
30961 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30962 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30963 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30964 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30966 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30968 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30969 Extend queue to 1024 entries.
30970 Add "consumed" field.
30971 (gomp_print_output): Remove print_index parameter.
30972 Add final parameter.
30973 Change limit to unsigned.
30974 Use consumed field to implement circular buffer.
30975 Detect interrupted print in final pass.
30976 Flush output at the end.
30977 (run): Update gomp_print_output usage.
30978 (main): Initialize kernargs->output_data.consumed.
30980 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30982 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30983 calculation of the minimum number of scalar iterations for
30984 fully-predicated loops.
30986 2019-03-18 Martin Jambor <mjambor@suse.cz>
30988 PR tree-optimization/89546
30989 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30990 any propagation to its children took place.
30992 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30995 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30996 parameter, and make use of it.
30997 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30999 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31001 * config/arc/arc.opt (mcode-density-frame): Get the inital value
31002 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31003 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31004 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31005 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31006 match what the ops is doing.
31007 (push_multi_fp_blink): Likewise.
31008 * config/arc/arc.c (arc_override_options): Enable enter/leave when
31009 compiling for size and elf target.
31010 (arc_save_callee_enter): Adjust note to match what enter/leave
31013 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31015 * config/arc/arc.md (tst_movb): Fix constraint.
31017 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31019 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31021 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31023 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31024 * config/arc/arc.c (arc_conditional_register_usage): Remove all
31025 reg_alloc_order references.
31026 (size_alloc_order): Define.
31027 (arc_adjust_reg_alloc_order): New function.
31028 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31030 (ADJUST_REG_ALLOC_ORDER): Define.
31031 (HONOR_REG_ALLOC_ORDER): Likewise.
31033 2019-03-18 Richard Biener <rguenther@suse.de>
31036 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31037 loads and stores a bit more.
31039 2019-03-18 Richard Biener <rguenther@suse.de>
31042 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31043 load pessimization to stores as well.
31045 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31047 PR middle-end/86979
31048 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31049 successor, use NULL as its av set.
31051 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31053 PR rtl-optimization/89721
31054 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31056 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31059 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31060 When handling vec_extract, use modular arithmetic to allow
31061 constant selectors greater than vector length.
31062 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31063 V1TImode vectors to have constant selector values greater than 0.
31064 Use modular arithmetic to compute vector index.
31065 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31066 index for in-memory vectors. Correct code generation for
31067 in-register vectors.
31068 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31071 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31075 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31078 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31081 * tree.c (inchash::add_expr): Strip any location wrappers.
31082 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31083 after hash verification.
31086 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31087 SIGN_EXTEND and ZERO_EXTEND.
31089 2019-03-14 Jason Merrill <jason@redhat.com>
31090 Jakub Jelinek <jakub@redhat.com>
31092 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31093 than if is_empty (*slot).
31094 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31095 existing elt and for elt removal.
31096 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31097 of already removed elt.
31099 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31102 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31103 REG_EH_REGION note.
31105 2019-03-14 Martin Liska <mliska@suse.cz>
31108 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31110 2019-03-14 Richard Biener <rguenther@suse.de>
31113 * config/i386/i386.c (make_resolver_func): Properly set
31114 DECL_CONTEXT on the RESULT_DECL.
31115 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31117 2019-03-14 Richard Biener <rguenther@suse.de>
31119 * gimple-pretty-print.c: Include cfgloop.h.
31120 (dump_gimple_phi): Adjust.
31121 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31122 (pp_cfg_jump): Adjust.
31123 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31124 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31125 (lower_phi_internal_fn): Remove.
31126 (verify_gimple_call): Remove IFN_PHI special-casing.
31127 (dump_function_to_file): Dump IL state.
31128 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31129 done to deal with PHI nodes being present in non-SSA state.
31131 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31134 * multiple_target.c (create_dispatcher_calls): Change
31135 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31136 In the node->iterate_referring loop, push *ref rather than ref, call
31137 ref->remove_reference () and always pass 0 to iterate_referring.
31139 PR rtl-optimization/89679
31140 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31141 would contain a paradoxical SUBREG.
31143 2019-03-14 Richard Biener <rguenther@suse.de>
31145 PR tree-optimization/89710
31146 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31149 2019-03-14 Martin Liska <mliska@suse.cz>
31151 * coverage.c (coverage_begin_function): Stream also
31153 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31154 documentation about function declaration location.
31155 * gcov-dump.c (tag_function): Print whole range
31156 of function declaration.
31157 * gcov.c (struct function_info): Add end_column field.
31158 (function_info::function_info): Initialize it.
31159 (output_json_intermediate_file): Output {start,end}_column
31161 (read_graph_file): Read end_column.
31163 2019-03-14 Richard Biener <rguenther@suse.de>
31165 PR middle-end/89698
31166 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31167 that the access types are similar.
31169 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31171 PR tree-optimization/89703
31172 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31173 aren't compatible also with builtin_decl_explicit. Check pure
31174 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31175 and BUILT_IN_STPNCPY{,_CHK}.
31177 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31180 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31181 addr32 prefix to VSIB address for X32.
31182 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31184 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31185 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31186 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31187 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31188 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31189 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31190 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31191 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31192 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31193 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31194 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31195 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31196 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31197 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31198 (*avx512f_scatterdi<mode>): Likewise.
31200 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31203 * lra-constraints.c (inherit_in_ebb): Update
31204 potential_reload_hard_regs along with live_hard_regs.
31206 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31209 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31211 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31213 2019-03-13 Martin Sebor <msebor@redhat.com>
31215 PR tree-optimization/89662
31216 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31219 2019-03-13 Richard Biener <rguenther@suse.de>
31221 PR middle-end/89677
31222 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31223 throw FP expressions at tree-affine.
31225 2019-03-14 Richard Biener <rguenther@suse.de>
31227 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31228 dump negative integer constants using _Literal (type) -num.
31230 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31232 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31233 nonlocal_value member.
31235 PR middle-end/88588
31236 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31237 (ipa_simd_modify_function_body): Handle PHIs.
31239 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31241 * config/s390/s390.c (s390_option_override_internal): Use more
31242 aggressive inlining parameters.
31244 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31246 * config/s390/3906.md: New file.
31247 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31248 (LONGRUNNING_THRESHOLD): Remove.
31249 (MAX_SCHED_MIX_SCORE): Decrease.
31250 (MAX_SCHED_MIX_DISTANCE): Decrease.
31251 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31252 (struct s390_sched_state): New struct to hold scheduling state.
31253 (S390_SCHED_STATE_NORMAL): Remove.
31254 (S390_SCHED_STATE_CRACKED): Remove.
31255 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31256 (s390_get_sched_attrmask): Use new attribute.
31257 (s390_get_unit_mask): Use new units.
31258 (s390_is_fpd): New function.
31259 (s390_is_fxd): New function.
31260 (s390_is_longrunning): New function.
31261 (s390_sched_score): Use new functions.
31262 (s390_sched_reorder): Likewise.
31263 (s390_sched_variable_issue): Rework and use new functions.
31264 (s390_sched_init): Use new functions.
31265 * config/s390/s390.h (s390_tune_attr): Add z14.
31266 * config/s390/s390.md: Add z14.
31268 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31270 * config/s390/2964.md: Update pipeline description.
31271 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31272 (LONGRUNNING_THRESHOLD): Remove.
31273 (LATENCY_FACTOR): Remove.
31274 (s390_get_unit_mask): Add unit.
31275 (s390_sched_score): Use fxd/fpd.
31276 (s390_sched_variable_issue): Use fxd/fpd.
31278 2019-03-12 Martin Liska <mliska@suse.cz>
31280 * config/i386/i386.c: Reword an error message.
31282 2019-03-12 Martin Jambor <mjambor@suse.cz>
31284 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31285 terminate with newline.
31287 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31290 * config/s390/s390.md (tabort): Use %wd instead of
31291 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31292 letters and periods.
31293 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31294 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31297 PR middle-end/89663
31298 * builtins.c (expand_builtin_int_roundingfn,
31299 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31300 gcc_unreachable if validate_arglist fails.
31302 2019-03-12 Richard Biener <rguenther@suse.de>
31304 PR tree-optimization/89664
31305 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31306 free the occurance tree after the early out.
31308 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31310 PR middle-end/89655
31312 * vr-values.c (vr_values::update_value_range): If
31313 old_vr->varying_p (), don't update it, make new_vr also VARYING
31316 2019-03-11 Martin Liska <mliska@suse.cz>
31318 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31319 Fix double string quoting.
31321 2019-03-11 Martin Liska <mliska@suse.cz>
31323 * collect-utils.c (collect_wait): Wrap apostrophes
31324 in gcc internal format with %'.
31325 * collect2.c (main): Likewise.
31326 (scan_prog_file): Likewise.
31327 (scan_libraries): Likewise.
31328 * config/i386/i386.c (ix86_expand_call): Likewise.
31329 (ix86_handle_interrupt_attribute): Likewise.
31330 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31331 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31332 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31333 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31334 * symtab.c (symtab_node::verify_base): Likewise.
31335 * tree-cfg.c (verify_gimple_label): Likewise.
31336 * tree.c (verify_type_variant): Likewise.
31338 2019-03-11 Martin Liska <mliska@suse.cz>
31340 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31341 in a string format message and fix GNU coding style.
31342 (expand_builtin_set_thread_pointer): Likewise.
31343 * common/config/aarch64/aarch64-common.c
31344 (aarch64_rewrite_selected_cpu): Likewise.
31345 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31346 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31347 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31348 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31349 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31350 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31351 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31352 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31353 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31354 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31356 * common/config/riscv/riscv-common.c
31357 (riscv_subset_list::parsing_subset_version): Likewise.
31358 (riscv_subset_list::parse_std_ext): Likewise.
31359 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31360 (riscv_subset_list::parse): Likewise.
31361 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31362 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31363 (aarch64_override_options_internal): Likewise.
31364 (aarch64_validate_mcpu): Likewise.
31365 (aarch64_validate_march): Likewise.
31366 (aarch64_validate_mtune): Likewise.
31367 (aarch64_override_options): Likewise.
31368 * config/alpha/alpha.c (alpha_option_override): Likewise.
31369 * config/arc/arc.c (arc_init): Likewise.
31370 (parse_mrgf_banked_regs_option): Likewise.
31371 (arc_override_options): Likewise.
31372 (arc_expand_builtin_aligned): Likewise.
31373 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31374 (arm_expand_builtin): Likewise.
31375 * config/arm/arm.c (arm_option_check_internal): Likewise.
31376 (arm_configure_build_target): Likewise.
31377 (arm_option_override): Likewise.
31378 (arm_options_perform_arch_sanity_checks): Likewise.
31379 (arm_handle_cmse_nonsecure_entry): Likewise.
31380 (arm_handle_cmse_nonsecure_call): Likewise.
31381 (arm_tls_referenced_p): Likewise.
31382 (thumb1_expand_prologue): Likewise.
31383 * config/avr/avr.c (avr_option_override): Likewise.
31384 * config/bfin/bfin.c (bfin_option_override): Likewise.
31385 * config/c6x/c6x.c (c6x_option_override): Likewise.
31386 * config/cr16/cr16.c (cr16_override_options): Likewise.
31387 * config/cris/cris.c (cris_option_override): Likewise.
31388 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31389 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31390 * config/darwin.c (darwin_override_options): Likewise.
31391 * config/frv/frv.c (frv_expand_builtin): Likewise.
31392 * config/h8300/h8300.c (h8300_option_override): Likewise.
31393 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31394 (ix86_option_override_internal): Likewise.
31395 (warn_once_call_ms2sysv_xlogues): Likewise.
31396 (ix86_expand_prologue): Likewise.
31397 (split_stack_prologue_scratch_regno): Likewise.
31398 (ix86_warn_parameter_passing_abi): Likewise.
31399 * config/ia64/ia64.c (fix_range): Likewise.
31400 * config/m68k/m68k.c (m68k_option_override): Likewise.
31401 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31402 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31403 (mips_set_compression_mode): Likewise.
31404 * config/mmix/mmix.c (mmix_option_override): Likewise.
31405 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31406 * config/msp430/msp430.c (msp430_option_override): Likewise.
31407 * config/nds32/nds32.c (nds32_option_override): Likewise.
31408 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31409 (nios2_option_override): Likewise.
31410 (nios2_expand_custom_builtin): Likewise.
31411 * config/nvptx/mkoffload.c (main): Likewise.
31412 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31413 * config/pa/pa.c (fix_range): Likewise.
31414 (pa_option_override): Likewise.
31415 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31416 (riscv_option_override): Likewise.
31417 * config/rl78/rl78.c (rl78_option_override): Likewise.
31418 * config/rs6000/aix61.h: Likewise.
31419 * config/rs6000/aix71.h: Likewise.
31420 * config/rs6000/aix72.h: Likewise.
31421 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31422 * config/rs6000/freebsd64.h: Likewise.
31423 * config/rs6000/linux64.h: Likewise.
31424 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31425 (rs6000_expand_zeroop_builtin): Likewise.
31426 (rs6000_expand_mtfsb_builtin): Likewise.
31427 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31428 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31429 (rs6000_invalid_builtin): Likewise.
31430 (rs6000_expand_split_stack_prologue): Likewise.
31431 * config/rs6000/rtems.h: Likewise.
31432 * config/rx/rx.c (valid_psw_flag): Likewise.
31433 (rx_expand_builtin): Likewise.
31434 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31435 * config/s390/s390.c (s390_expand_builtin): Likewise.
31436 (s390_function_profiler): Likewise.
31437 (s390_option_override_internal): Likewise.
31438 (s390_option_override): Likewise.
31439 * config/sh/sh.c (sh_option_override): Likewise.
31440 (sh_builtin_saveregs): Likewise.
31441 (sh_fix_range): Likewise.
31442 * config/sh/vxworks.h: Likewise.
31443 * config/sparc/sparc.c (sparc_option_override): Likewise.
31444 * config/spu/spu.c (spu_option_override): Likewise.
31445 (fix_range): Likewise.
31446 * config/visium/visium.c (visium_option_override): Likewise.
31447 (visium_handle_interrupt_attr): Likewise.
31448 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31449 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31450 (dbg_cnt_process_opt): Likewise.
31451 * dwarf2out.c (output_dwarf_version): Likewise.
31452 * except.c (expand_eh_return): Likewise.
31453 * gcc.c (defined): Likewise.
31454 (driver_handle_option): Likewise.
31455 (process_command): Likewise.
31456 (compare_files): Likewise.
31457 (driver::prepare_infiles): Likewise.
31458 (driver::do_spec_on_infiles): Likewise.
31459 (driver::maybe_run_linker): Likewise.
31460 * omp-offload.c (oacc_parse_default_dims): Likewise.
31461 * opts-global.c (handle_common_deferred_options): Likewise.
31462 * opts.c (parse_sanitizer_options): Likewise.
31463 (common_handle_option): Likewise.
31464 (enable_warning_as_error): Likewise.
31465 * passes.c (enable_disable_pass): Likewise.
31466 * plugin.c (parse_plugin_arg_opt): Likewise.
31467 (default_plugin_dir_name): Likewise.
31468 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31469 (default_pch_valid_p): Likewise.
31470 * toplev.c (init_asm_output): Likewise.
31471 (process_options): Likewise.
31472 (toplev::run_self_tests): Likewise.
31473 * tree-cfg.c (verify_gimple_call): Likewise.
31474 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31475 (tree_inlinable_function_p): Likewise.
31476 * var-tracking.c (vt_find_locations): Likewise.
31478 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31480 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31481 only on the else branch.
31483 2019-03-11 Martin Liska <mliska@suse.cz>
31485 * gcov.c (output_intermediate_json_line): Print function
31487 (output_json_intermediate_file): Add new argument.
31488 * doc/gcov.texi: Document the change.
31490 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31492 PR rtl-optimization/89588
31493 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31494 explicit unrolling factor more robust.
31496 2019-03-11 Richard Biener <rguenther@suse.de>
31498 PR tree-optimization/89649
31499 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31500 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31501 on the prolog and epilog loops.
31502 (vect_loop_versioning): Return copy of loop.
31503 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31504 on the non-vectorized version of the loop.
31506 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31509 * config/i386/sse.md (*vec_extractv2di_0_sse):
31510 Add (=r,x) alternative and corresponding splitter.
31512 2019-03-10 Martin Jambor <mjambor@suse.cz>
31514 PR tree-optimization/85762
31515 PR tree-optimization/87008
31516 PR tree-optimization/85459
31517 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31518 it points to if there is a type changing MEM_REF. Adjust all callers.
31519 (build_accesses_from_assign): Disable total scalarization if
31520 contains_vce_or_bfcref_p returns true through the new parameter, for
31523 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31526 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31527 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31530 * common.opt (fdiagnostics-show-labels,
31531 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31532 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31533 gas-locview-support, ginline-points, ginternal-reset-location-views):
31534 Terminate description text with a dot.
31535 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31536 * config/mcore/mcore.opt (m210, m340): Likewise.
31537 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31538 mnops=): Start description text with a capital letter.
31539 * config/arc/arc.opt (msize-level=): Likewise.
31540 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31541 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31542 mnewlib): Likewise.
31543 * config/ft32/ft32.opt (msim): Likewise.
31544 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31545 (mnodiv, mnopm): Terminate description text with a dot.
31546 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31548 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31550 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31553 PR rtl-optimization/89634
31554 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31555 are modified in BB_END (e->src) instruction.
31557 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31560 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31561 messages more amenable to translation, and improve wording.
31563 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31565 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31566 ud- and du-chains between phases.
31568 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31571 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31572 instead of POLY_INT_CST.
31574 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31576 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31579 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31584 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31585 (_mm_storeu_si64): Ditto.
31587 2019-03-08 Martin Liska <mliska@suse.cz>
31590 * config/i386/i386.c (ix86_option_override_internal): Disable
31591 jump tables when retpolines are used.
31593 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31596 * ipa-split.c (execute_split_functions): Do not split
31597 'noinline' or 'section' function.
31599 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31602 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31603 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31604 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31607 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31608 from diagnostics. Formatting fixes.
31611 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31612 warn_odr diagnostics.
31615 * lra-constraints.c (process_alt_operands): Avoid one space before
31616 " at the end of line and another after " on another line in a string
31618 * attribs.c (handle_dll_attribute): Likewise.
31619 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31621 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31622 warning_at or inform messages in G_() if there is no ?:.
31624 PR tree-optimization/89550
31625 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31626 returned true. Formatting fixes.
31627 (expand_builtin_strnlen): Formatting fixes.
31628 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31629 if warning_at returned true.
31630 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31632 2019-03-08 Richard Biener <rguenther@suse.de>
31634 PR middle-end/89578
31635 * cfgloop.h (struct loop): Add owned_clique field.
31636 * cfgloopmanip.c (copy_loop_info): Copy it.
31637 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31639 * tree-inline.c (copy_loops): Remap owned_clique.
31640 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31641 * lto-streamer-out.c (output_cfg): Likewise.
31643 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31646 * config/darwin.c: Include intl.h.
31647 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31648 composing the message out of two separate parts.
31650 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31653 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31654 doesn't start with a capital letter and doesn't end with a dot.
31655 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31656 with a capital letter.
31657 (ix86_mangle_function_version_assembler_name): Likewise.
31658 (ix86_generate_version_dispatcher_body): Likewise.
31659 (fold_builtin_cpu): Likewise.
31660 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31661 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31662 translators, wrap full type name in %qs.
31664 PR translation/79999
31665 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31666 depend clause with source (or sink) modifier.
31667 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31670 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31671 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31672 (avx512f_load<mode>_mask): New define_expand.
31673 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31674 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31675 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31676 __builtin_ia32_movess_mask): New builtins.
31677 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31678 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31679 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31680 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31682 2019-03-07 Martin Jambor <mjambor@suse.cz>
31685 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31686 for extern inline functions.
31688 2019-03-07 Martin Jambor <mjambor@suse.cz>
31691 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31692 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31693 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31694 have multiple callees. At the end check if declarations match as
31695 opposed to cgraph_nodes.
31697 2019-03-07 Martin Liska <mliska@suse.cz>
31699 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31700 which is equivalent to searching for this in clones chain.
31701 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31702 names with a neighbour and special case first node in a chain.
31704 2019-01-25 Jason Merrill <jason@redhat.com>
31706 PR c++/80916 - spurious "static but not defined" warning.
31707 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31708 for an internal symbol with DECL_EXTERNAL.
31710 2019-04-07 Richard Biener <rguenther@suse.de>
31712 PR middle-end/89618
31713 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31714 * tree-inline.c (copy_loops): Simplify.
31716 2019-03-07 Martin Liska <mliska@suse.cz>
31718 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31720 2019-03-07 Richard Biener <rguenther@suse.de>
31722 PR tree-optimization/89595
31723 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31724 stmt iterator as reference, take boolean output parameter to
31725 indicate whether the stmt was removed and thus the iterator
31727 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31728 stmts created by folding.
31730 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31733 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31736 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31738 PR rtl-optimization/88845
31739 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31741 * lra.c (remove_scratches_1): New function.
31742 (remove_scratches): Use it.
31743 (lra_emit_move): Likewise.
31745 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31747 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31748 unaligned_access variable.
31749 * config/arc/arc.c (arc_override_options): Set unaligned access
31750 default on for HS CPUs.
31751 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31753 2019-03-06 Martin Liska <mliska@suse.cz>
31755 PR gcov-profile/89577
31756 * doc/gcov.texi: Prefer to use --coverage.
31757 * doc/sourcebuild.texi: Likewise.
31759 2019-03-02 Jason Merrill <jason@redhat.com>
31761 PR c++/86485 - -Wmaybe-unused with empty class ?:
31762 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31764 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31767 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31770 PR middle-end/89590
31771 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31772 exactly one argument.
31774 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31775 Richard Sandiford <richard.sandiford@arm.com>
31777 PR tree-optimization/89570
31778 * match.pd (vec_cond into cond_op simplification): Don't use
31779 get_conditional_internal_fn, use as_internal_fn (cond_op).
31781 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31784 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31785 to decide when to split off a non-zero offset from a symbol.
31786 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31787 in function symbols.
31789 2019-03-05 Richard Biener <rguenther@suse.de>
31791 PR tree-optimization/89594
31792 * tree-if-conv.c (pass_if_conversion::execute): Handle
31793 case where .LOOP_VECTORIZED_FUNCTION was removed.
31795 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31798 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31799 instead alloca it only when needed with the needed size.
31801 PR tree-optimization/89570
31802 * match.pd (vec_cond into cond_op simplification): Guard with
31803 vectorized_internal_fn_supported_p test and #if GIMPLE.
31805 PR tree-optimization/89566
31806 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31807 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31808 Punt if get_user_idx_format succeeds, but idx_format argument is
31809 not provided or doesn't have pointer type, or if idx_args is above
31810 number of provided arguments.
31812 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31814 PR tree-optimization/89437
31815 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31817 2019-03-04 Richard Biener <rguenther@suse.de>
31819 PR middle-end/89572
31820 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31823 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31825 PR tree-optimization/89487
31826 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31827 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31828 (distribute_loop): Don't do runtime alias check if there is non-
31829 addressable data reference.
31830 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31831 is a register variable.
31833 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31836 * config/arm/arm.md (cmpsi2_addneg): Use
31837 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31838 If operands[2] is 0 or INT_MIN, force use of subs.
31839 (*compare_scc splitter): Use gen_int_mode.
31840 (*negscc): Likewise.
31841 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31843 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31844 Monk Chiang <sh.chiang04@gmail.com>
31846 * common/config/riscv/riscv-common.c: Include sstream.
31847 (riscv_subset_list::to_string): New.
31848 (riscv_arch_str): Likewise.
31849 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31850 * config.in: Regen.
31851 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31852 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31853 (riscv_emit_attribute): New.
31854 (riscv_file_start): Emit attribute if needed.
31855 (riscv_option_override): Init riscv_emit_attribute_p.
31856 * config/riscv/riscv.opt (mriscv-attribute): New option.
31857 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31858 * configure: Regen.
31859 * doc/install.texi: Document --with-riscv-attribute.
31860 * doc/invoke.texi: Document -mriscv-attribute.
31862 * common/config/riscv/riscv-common.c:
31863 Include config/riscv/riscv-protos.h.
31864 (INCLUDE_STRING): Defined.
31865 (RISCV_DONT_CARE_VERSION): Defined.
31866 (riscv_subset_t): Declare.
31867 (riscv_subset_t::riscv_subset_t): New.
31868 (riscv_subset_list): Declare.
31869 (riscv_subset_list::riscv_subset_list): New.
31870 (riscv_subset_list::~riscv_subset_list): Likewise.
31871 (riscv_subset_list::parsing_subset_version): Likewise.
31872 (riscv_subset_list::parse_std_ext): Likewise.
31873 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31874 (riscv_subset_list::add): Likewise.
31875 (riscv_subset_list::lookup): Likewise.
31876 (riscv_subset_list::xlen): Likewise.
31877 (riscv_subset_list::parse): Likewise.
31878 (riscv_supported_std_ext): Likewise.
31879 (current_subset_list): Likewise.
31880 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31883 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31885 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31886 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31887 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31889 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31891 PR rtl-optimization/85899
31892 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31893 fallthru edges leading to the exit block.
31895 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31898 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31899 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31901 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31903 PR tree-optimization/89535
31904 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31905 for each operand. Calculate the fallback choice for mask operands
31906 and pass it to vect_get_vec_def_for_operand.
31908 2019-03-01 Richard Biener <rguenther@suse.de>
31910 PR middle-end/89541
31911 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31912 get virtual operands.
31913 (get_expr_operands): Handle CONST_DECL like other decls.
31915 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31917 PR middle-end/89503
31918 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31919 on DECL_P and EXPR_P.
31921 2019-03-01 Richard Biener <rguenther@suse.de>
31923 PR middle-end/89497
31924 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31925 argument, defaulted to zero.
31926 * passes.c (execute_function_todo): Pass down SSA update flags
31927 to cleanup_tree_cfg.
31928 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31929 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31931 (cleanup_tree_cfg): Get and pass down SSA update flags.
31933 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31936 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31937 early_lto_debug argument.
31939 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31941 PR tree-optimization/89536
31942 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31943 only whether bit #0 of the value is 0 instead of the entire value.
31945 2019-02-28 Marek Polacek <polacek@redhat.com>
31947 PR c++/87068 - missing diagnostic with fallthrough statement.
31948 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31949 at the end of a seq, save its location to walk_stmt_info.
31950 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31953 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31956 * tree.c (find_atomic_core_type): Move ahead in file.
31957 (check_base_type): Correctly compare alignments of atomic types.
31959 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31962 * config/i386/i386.c (get_builtin_code_for_version): Identify
31963 Westmere from PCLMUL, instead of AES.
31965 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31968 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31969 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31972 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31975 * config/aarch64/aarch64-option-extensions.def: Document it.
31976 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31979 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31982 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31983 builtins if they don't have a single scalar floating point argument.
31986 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31988 PR rtl-optimization/89490
31989 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31990 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31991 block section is not mergeable.
31993 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31996 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31997 old define_insn to ...
31998 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31999 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32000 Rename old define_insn to ...
32001 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
32002 (thumb2_casesi_internal_pic): New define_expand. Rename old
32004 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
32005 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32006 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32008 2019-02-27 Richard Biener <rguenther@suse.de>
32011 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32013 2019-02-27 Richard Biener <rguenther@suse.de>
32015 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32018 2019-02-27 Richard Biener <rguenther@suse.de>
32021 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32022 parameter, prefix section name with .gnu.debuglto_ if true.
32023 (dwarf2out_finish): Pass false to output_comdat_type_unit.
32024 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32026 2019-02-27 Richard Biener <rguenther@suse.de>
32029 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32030 rather than on use_debug_types, doing what output_die does.
32031 (value_format): Likewise.
32033 2019-02-27 Martin Jambor <mjambor@suse.cz>
32034 Martin Sebor <msebor@redhat.com>
32036 * doc/invoke.texi (Warning Options): Reword description of
32037 -Wno-absolute-value.
32039 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32041 PR tree-optimization/89280
32042 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32043 builtin_setjmp_setup_bb): New functions.
32044 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32045 When visiting __builtin_setjmp_setup block, queue in special
32046 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32047 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32048 from visited after the loop if they don't have any visited successor
32051 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32053 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32055 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32057 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32060 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32061 with types other than sizetype/ssizetype.
32063 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32065 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32066 (enum sparc_processor_type): ...this.
32067 (enum sparc_code_model_type): New enumeration type.
32068 (enum sparc_memory_model_type): Tweak comments.
32069 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32071 (mcmodel): Use sparc_code_model enumeration and variable.
32072 (sparc_code_model): New enumeration.
32073 (mdebug): Add Undocumented marker.
32074 * config/sparc/sparc.h (enum cmodel): Delete.
32075 (sparc_cmodel): Likewise.
32076 (TARGET_CM_MEDLOW): Adjust to above renaming.
32077 (TARGET_CM_MEDMID): Likewise.
32078 (TARGET_CM_MEDANY): Likewise.
32079 (TARGET_CM_EMBMEDANY): Likewise.
32080 * config/sparc/sparc.c (sparc_cmodel): Delete.
32081 (sparc_option_override): Remove string/value mapping support for the
32082 code model. Move code and memory model support to after the handling
32083 of target flags. Do private machine setup last.
32084 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32085 (sparc_legitimize_reload_address): Likewise.
32086 (sparc_output_mi_thunk): Likewise.
32087 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32089 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32091 PR tree-optimization/89500
32092 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32093 (handle_builtin_strlen): Remove noncst_bound variable. Always
32094 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32095 cst if the first cst bytes starting at x are known to be non-zero,
32096 even if the string is not zero terminated. Don't try to modify
32097 *si for strnlen. Update strlen_to_stridx only for strlen or if
32098 we can prove strnlen returns the same value as strlen would.
32100 2019-02-26 Martin Liska <mliska@suse.cz>
32102 * alloc-pool.h (struct pool_usage): Remove extra
32104 * bitmap.h (struct bitmap_usage): Likewise.
32105 * ggc-common.c (struct ggc_usage): Likewise.
32106 * mem-stats.h (struct mem_usage): Likewise.
32107 (mem_alloc_description::dump): Print dash lines
32108 here and repeat header at the end of a table report.
32109 It's then more readable.
32110 * tree-phinodes.c (phinodes_print_statistics): Make
32111 horizontal alignment.
32112 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32113 * vec.c (struct vec_usage): Remove extra print_dash_line.
32114 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32116 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32118 * doc/extend.texi (__builtin_object_size):
32119 Use @pxref instead of @xref inside parenthesis.
32120 (__builtin_has_attribute): Add missing comma after @xref.
32121 (__builtin_object_size): Ditto.
32122 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32124 2019-02-26 Jeff Law <law@redhat.com>
32126 PR rtl-optimization/87761
32127 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32128 detect obviously dead insns and delete them.
32130 2019-02-26 Richard Biener <rguenther@suse.de>
32132 PR tree-optimization/89505
32133 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32134 to handle restrict pointed-to vars with multiple subvars
32137 2019-02-26 Richard Biener <rguenther@suse.de>
32139 PR tree-optimization/89489
32140 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32142 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32144 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32145 and move around comment.
32146 <BIT_AND_EXPR>: Likewise.
32147 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32149 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32152 * config/i386/i386.c (remove_partial_avx_dependency): Call
32153 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32154 after changing possibly many instructions to use that pseudo. Fix up
32155 insertion of v4sf_const0 setter at the start of bb.
32157 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32160 * doc/extend.texi (Variadic Pointer Args): New section.
32162 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32163 Martin Sebor <msebor@gmail.com>
32165 * common.opt (Wattribute-alias): Likewise.
32166 * doc/invoke.texi (Option Summary): List general form of
32167 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32168 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32169 Add cross-references.
32170 (-Wattribute-alias): Rewrite and correct default. Mention
32171 considered attributes (same as for -Wmissing-attributes).
32173 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32175 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32176 (_mm_cvtpd_ps): Likewise.
32177 (_mm_cvttpd_epi32): Likewise.
32180 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32181 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32184 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32186 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32189 * common/config/aarch64/aarch64-common.c
32190 (struct aarch64_option_extension): Add is_synthetic.
32191 (all_extensions): Use it.
32192 (TARGET_OPTION_INIT_STRUCT): Define hook.
32193 (struct gcc_targetm_common): Moved to end.
32194 (all_extensions_by_on): New.
32195 (opt_ext_cmp, typedef opt_ext): New.
32196 (aarch64_option_init_struct): New.
32197 (aarch64_contains_opt): New.
32198 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32199 * config/aarch64/aarch64-option-extensions.def
32200 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32201 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32202 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32203 Set is_synthetic to false.
32204 (crypto): Set is_synthetic to true.
32205 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32208 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32210 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32211 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32212 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32213 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32214 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32215 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32216 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32217 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32219 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32220 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32221 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32222 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32223 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32224 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32225 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32226 vfmlsl_laneq_high_f16): ... To this.
32227 * config/arm/neon.md: Update comments.
32229 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32231 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32232 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32233 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32234 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32235 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32236 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32237 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32238 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32240 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32241 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32242 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32243 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32244 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32245 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32246 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32247 vfmlslq_laneq_high_f16): ... To this.
32249 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32251 PR rtl-optimization/86096
32252 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32253 comparing mw_order values.
32255 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32258 * config/arm/arm.md (*subsi3_carryin_const): Use
32259 arm_neg_immediate_operand predicate instead of
32260 arm_not_immediate_operand, "L" constraint instead of "K" and
32261 print it using %n2 instead of %B2.
32262 (*subsi3_carryin_const0): New define_insn.
32263 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32264 instead of arm_not_operand and "I" constraint instead of "K" and
32265 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32266 another match_operand and in the condition check that it is negation
32268 (*subsi3_carryin_compare_const0): New define_ins.
32269 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32270 *subsi3_carryin_const.
32271 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32272 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32275 * config/arm.vfp.md (*negdf2_vfp): Use
32276 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32277 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32279 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32281 PR rtl-optimization/89445
32282 * simplify-rtx.c (simplify_ternary_operation): Don't use
32283 simplify_merge_mask on operands that may trap.
32284 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32285 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32286 second operand is CONST_VECTOR, check if any element could be zero.
32287 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32288 their operands can trap.
32290 2019-02-23 Martin Sebor <msebor@redhat.com>
32292 * gimple-ssa-sprintf.c (target_strtol): Rename...
32293 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32294 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32295 check for range error.
32297 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32300 * opts-common.c (prune_options): Also prune joined switches
32301 with Negative and RejectNegative.
32302 * config/i386/i386.opt (march=): Add Negative(march=).
32303 (mtune=): Add Negative(mtune=).
32304 * doc/options.texi: Document Negative used together with Joined
32305 and RejectNegative.
32307 2019-02-22 Martin Sebor <msebor@redhat.com>
32309 * doc/extend.texi (Other Builtins): Add
32310 __builtin_is_constant_evaluated.
32312 2019-02-22 Richard Biener <rguenther@suse.de>
32314 PR tree-optimization/87609
32315 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32317 2019-02-22 Jeff Law <law@redhat.com>
32319 PR rtl-optimization/87761
32320 * config/mips/mips.md: Add new combiner pattern to recognize
32321 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32323 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32326 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32327 destination register in peepholes generating patterns for ADDS/SUBS.
32328 (add<mode>3_compare0,
32329 *addsi3_compare0_uxtw, add<mode>3_compareC,
32330 add<mode>3_compareV_imm, add<mode>3_compareV,
32331 *adds_<optab><ALLX:mode>_<GPI:mode>,
32332 *subs_<optab><ALLX:mode>_<GPI:mode>,
32333 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32334 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32335 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32336 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32337 sub<mode>3_compare1): Allow stack pointer for source register.
32338 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32340 2019-02-22 Martin Sebor <msebor@redhat.com>
32342 PR tree-optimization/88993
32343 PR tree-optimization/88853
32344 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32346 (sprintf_dom_walker::call_info::is_string_func): New helper.
32347 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32348 for formatted string functions.
32349 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32351 2019-02-22 Martin Sebor <msebor@redhat.com>
32354 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32355 unreachable subexpressions.
32357 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32358 Hongtao Liu <hongtao.liu@intel.com>
32359 Sunil K Pandey <sunil.k.pandey@intel.com>
32362 * config/i386/i386-passes.def: Add
32363 pass_remove_partial_avx_dependency.
32364 * config/i386/i386-protos.h
32365 (make_pass_remove_partial_avx_dependency): New.
32366 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32368 (pass_data_remove_partial_avx_dependency): New.
32369 (pass_remove_partial_avx_dependency): Likewise.
32370 (make_pass_remove_partial_avx_dependency): Likewise.
32371 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32372 (*extendsfdf2): Add avx_partial_xmm_update.
32373 (truncdfsf2): Likewise.
32374 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32375 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32377 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32379 PR middle-end/85598
32380 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32383 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32386 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32387 (PTA_SKYLAKE): Add PTA_AES.
32388 (PTA_GOLDMONT): Likewise.
32390 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32392 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32393 instruction if enabled.
32394 (aarch64_override_options): Remove reference to return address key.
32396 2019-02-22 Richard Biener <rguenther@suse.de>
32398 PR tree-optimization/89440
32399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32400 not necessary assert.
32402 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32405 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32406 (oacc_replace_fn_attrib_attr): ... this new function.
32407 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32408 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32410 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32412 * config/arm/arm-cpus.in (ares): Rename to...
32413 (neoverse-n1): ... This. Add ares as alias.
32414 * config/arm/arm-tables.opt: Regenerate.
32415 * config/arm/arm-tune.md: Likewise.
32416 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32418 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32420 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32421 * config/aarch64/aarch64-tune.md: Regenerate.
32422 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32424 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32426 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32427 (neoversen1_tunings): ... This.
32428 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32429 (neoverse-n1): New CPU.
32430 * config/aarch64/aarch64-tune.md: Regenerate.
32431 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32433 2019-02-22 Richard Biener <rguenther@suse.de>
32435 PR middle-end/87609
32436 * cfghooks.h (dependence_hash): New typedef.
32437 (struct copy_bb_data): New type.
32438 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32439 (duplicate_block): Likewise.
32440 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32441 (copy_bbs): Create and pass down copy_bb_data.
32442 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32443 (rtl_duplicate_bb): Likewise.
32444 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32445 remap dependence info.
32447 2019-02-22 Richard Biener <rguenther@suse.de>
32449 PR tree-optimization/87609
32450 * tree-core.h (tree_base): Document special clique values.
32451 * tree-inline.c (remap_dependence_clique): Do not use the
32452 special clique value of one.
32453 (maybe_set_dependence_info): Use clique one.
32454 (clear_dependence_clique): New callback.
32455 (compute_dependence_clique): Clear clique one from all refs
32456 before assigning it (again).
32458 2019-02-21 Martin Sebor <msebor@redhat.com>
32460 * doc/extend.texi (__clear_cache): Correct signature.
32462 2019-02-21 Ian Lance Taylor <iant@golang.org>
32465 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32466 than output_constant_def.
32467 (add_constant_to_table): New static function.
32468 (output_constant_def): Call add_constant_to_table.
32469 (tree_output_constant_def): Likewise.
32471 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32474 * builtins.c (fold_builtin_arith_overflow): If first two args are
32475 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32478 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32481 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32482 error for -mindirect-branch/-mfunction-return with incompatible
32485 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32488 * constraints.md (q): Remove.
32489 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32492 2019-02-21 Martin Jambor <mjambor@suse.cz>
32495 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32496 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32497 (omp_adjust_for_condition): ...here. Added necessary parameters.
32498 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32499 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32500 proper values to new parameters of omp_adjust_for_condition.
32502 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32504 PR middle-end/89412
32505 * expr.c (expand_assignment): If result is a MEM, use change_address
32506 instead of simplify_gen_subreg.
32508 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32509 David Malcolm <dmalcolm@redhat.com>
32511 PR middle-end/89091
32512 * fold-const.c (decode_field_reference): Return NULL_TREE if
32513 lang_hooks.types.type_for_size returns NULL. Check it before
32514 overwriting *exp_. Use return NULL_TREE instead of return 0.
32516 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32518 PR middle-end/88074
32519 PR middle-end/89415
32520 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32523 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32526 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32527 TARGET_SSE in addition to TARGET_SSE_MATH.
32529 (ix86_excess_precision): Ditto.
32530 (ix86_float_exceptions_rounding_supported_p): Ditto.
32531 (use_rsqrt_p): Ditto.
32532 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32534 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32537 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32538 linenum_arith_t when determining if two adjacent line spans are
32539 close enough to merge.
32540 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32541 lines within each line_span.
32543 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32546 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32547 paradoxical SUBREGS.
32549 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32552 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32553 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32554 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32557 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32559 * config/gcn/gcn.c (print_operand): Fix typo.
32561 2019-02-19 Richard Biener <rguenther@suse.de>
32563 PR middle-end/88074
32564 * toplev.c (do_compile): Initialize mpfr's exponent range
32565 based on available float modes.
32567 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32569 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32570 as long as the epilogue isn't completed.
32572 2019-02-18 Martin Sebor <msebor@redhat.com>
32574 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32575 __has_cpp_attribute, and __has_include.
32577 2019-02-18 Martin Sebor <msebor@redhat.com>
32579 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32581 2019-02-18 Martin Sebor <msebor@redhat.com>
32583 PR middle-end/89294
32584 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32586 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32588 2019-02-18 Richard Biener <rguenther@suse.de>
32590 PR tree-optimization/89296
32591 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32592 of no-warning flag to cases that might emit the bogus warning.
32594 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32597 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32599 * config/arm/vfp.md (*movdi_vfp): Likewise.
32600 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32601 "q" constraint for operands[0].
32604 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32605 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32606 pattern in a temporary buffer.
32607 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32608 than 64-operands[2].
32611 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32612 s390_indirect_branch_settings): Define unconditionally.
32613 (s390_set_current_function): Likewise, but guard the whole body except
32614 the s390_indirect_branch_settings call with
32615 #if S390_USE_TARGET_ATTRIBUTE.
32616 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32618 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32619 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32620 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32621 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32622 HOST_WIDE_INT_1U instead of 1ULL.
32623 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32624 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32625 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32626 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32628 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32631 2019-02-18 Martin Jambor <mjambor@suse.cz>
32633 PR tree-optimization/89209
32634 * tree-sra.c (create_access_replacement): New optional parameter
32635 reg_tree. Use it as a type if non-NULL and access type is not of
32637 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32638 to create_access_replacement.
32639 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32640 Check lacc is non-NULL before attempting to re-create it on the RHS.
32642 2019-02-18 Martin Liska <mliska@suse.cz>
32645 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32647 (symbol_table::free_edge): Recycle m_summary_id.
32648 * cgraph.h (get_summary_id): New.
32649 (symbol_table::release_symbol): Set m_summary_id to -1
32651 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32652 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32653 function_summary to fast_function_summary.
32654 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32655 * ipa-pure-const.c (class funct_state_summary_t):
32656 Switch from function_summary to fast_function_summary.
32657 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32658 (class ipa_ref_opt_summary_t): Switch from function_summary
32659 to fast_function_summary.
32660 * symbol-summary.h (class function_summary_base): New class
32661 that is created from base of former function_summary.
32662 (function_summary_base::unregister_hooks): New.
32663 (class function_summary): Inherit from function_summary_base.
32664 (class call_summary_base): New class
32665 that is created from base of former call_summary.
32666 (class call_summary): Inherit from call_summary_base.
32667 (struct is_same): New.
32668 (class fast_function_summary): New summary class.
32669 (class fast_call_summary): New summary class.
32670 * vec.h (vec_safe_grow_cleared): New function.
32672 2019-02-18 Martin Liska <mliska@suse.cz>
32674 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32675 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32676 * doc/tm.texi: Document new target hook.
32677 * doc/tm.texi.in: Likewise.
32678 * target.def: Add new target macro.
32679 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32682 2019-02-17 Alan Modra <amodra@gmail.com>
32685 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32686 output reg on add insn.
32687 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32689 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32692 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32693 (PMULHRSW): Likewise.
32694 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32696 (ssse3_pmulhrswv4hi3): New expander.
32698 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32700 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32701 MMX. Add isa attribute.
32703 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32705 PR rtl-optimization/66152
32706 * builtins.h (c_readstr): Declare.
32707 * builtins.c (c_readstr): Remove forward declaration. Add
32708 null_terminated_p argument, if false, read all bytes from the
32709 string instead of stopping after '\0'.
32710 * expr.c (string_cst_read_str): New function.
32711 (store_expr): Use string_cst_read_str instead of
32712 builtin_strncpy_read_str. Try to store by pieces the whole
32713 exp_len first, and only if that fails, split it up into
32714 store by pieces followed by clear_storage. Formatting fix.
32716 * config/i386/i386.md (*movqi_internal): Remove static from
32717 buf variable. Use output_asm_insn (buf, operands); return "";
32718 instead of return buf;.
32719 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32720 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32721 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32723 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32725 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32726 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32727 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32728 (CC1_SPEC): Likewise.
32729 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32731 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32733 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32734 the base address on 64-bit strict-alignment platforms.
32736 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32738 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32740 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32742 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32744 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32746 PR rtl-optimization/88308
32747 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32748 on copied instruction.
32750 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32752 * final.c (insn_current_reference_address): Replace test on JUMP_P
32753 with test on jump_to_label_p.
32754 * config/visium/visium-passes.def: New file.
32755 * config/visium/t-visium (PASSES_EXTRA): Define.
32756 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32757 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32758 (TRAMPOLINE_ALIGNMENT): Define.
32759 * config/visium/visium.c (visium_option_override): Do not register
32760 the machine-specific reorg pass here.
32761 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32763 (output_branch): Adjust threshold for long branch instruction.
32764 * config/visium/visium.md (cpu): Move around.
32765 (length): Adjust for the GR6.
32767 2019-02-15 Richard Biener <rguenther@suse.de>
32768 Jakub Jelinek <jakub@redhat.com>
32770 PR tree-optimization/89278
32771 * tree-loop-distribution.c: Include tree-eh.h.
32772 (generate_memset_builtin, generate_memcpy_builtin): Call
32773 rewrite_to_non_trapping_overflow on builtin->size before passing it
32774 to force_gimple_operand_gsi.
32776 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32779 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32781 * opth-gen.awk: Likewise.
32783 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32785 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32786 Enable MMX, SSE and SSE2 by default.
32787 * config/i386/i386.c (ix86_option_override_internal): Do not
32788 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32790 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32792 PR rtl-optimization/89354
32793 * combine.c (make_extraction): Punt if extraction_mode is narrower
32796 2019-02-14 Maya Rashish <coypu@sdf.org>
32798 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32799 * config/netbsd-d.c: New file.
32800 * config/t-netbsd: Add netbsd-d.o
32802 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32804 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32805 affects_type_identity to true for aarch64_vector_pcs.
32806 (aarch64_comp_type_attributes): New function.
32807 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32809 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32812 * config/arm/iterators.md (ANY64): Add V4HF.
32814 2019-02-14 Martin Liska <mliska@suse.cz>
32816 PR rtl-optimization/89242
32817 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32818 process a transformation.
32820 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32822 PR tree-optimization/89314
32823 * fold-const.c (fold_binary_loc): Cast strlen argument to
32824 const char * before dereferencing it. Formatting fixes.
32826 PR middle-end/89284
32827 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32829 2019-02-13 Ian Lance Taylor <iant@golang.org>
32831 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32832 and set current index for other optimizations.
32834 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32836 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32837 nonimmediate_operand as operand 2 predicate.
32838 (vec_set<VF2_512_256:mode>_0): Ditto.
32839 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32840 (*vec_concatv2si): Remove alternative 2.
32841 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32842 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32843 (vec_concatv2di): Split alternatives 4,5,6 to ...
32844 (*vec_concatv2di_0) ... new pattern.
32846 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32849 * config/arm/arm.c (ldm_stm_operation_p) Set
32850 addr_reg_in_reglist correctly for first register.
32851 (load_multiple_sequence): Remove dead base check.
32852 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32854 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32857 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32858 Expose as @aarch64_pred_mov.
32859 * config/aarch64/aarch64.c (aarch64_classify_address):
32860 Use expand_insn which legitimizes operands.
32862 2019-02-13 Martin Liska <mliska@suse.cz>
32864 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32865 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32866 and pointer_offset fields.
32867 (initialize_argument_information): Remove usage of dead
32869 * cgraph.h (struct cgraph_thunk_info): Remove
32870 add_pointer_bounds_args.
32871 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32873 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32875 * config/i386/i386.c (ix86_function_arg_advance): Remove
32877 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32878 (def_builtin): Remove usage of dead fields.
32879 (ix86_add_new_builtins): Likewise.
32880 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32881 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32882 (sem_function::init): Likewise.
32883 (sem_variable::merge): Likewise.
32884 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32885 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32886 * lto-cgraph.c (lto_output_node): Likewise.
32887 (lto_output_varpool_node): Likewise.
32888 (input_node): Likewise.
32889 (input_varpool_node): Likewise.
32890 * lto-streamer-out.c (lto_output): Likewise.
32891 * tree-inline.c (expand_call_inline): Remove usage of
32893 * tree-inline.h (struct copy_body_data): Likewise.
32894 * varpool.c (varpool_node::dump): Likewise.
32896 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32898 PR middle-end/89303
32899 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32900 into pt->vars_contains_escaped_heap instead of setting
32901 pt->vars_contains_escaped_heap to it.
32903 PR middle-end/89281
32904 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32905 INTVAL (size), compare it to GET_MODE_MASK instead of
32906 1 << GET_MODE_BITSIZE.
32909 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32910 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32913 2019-02-13 Martin Liska <mliska@suse.cz>
32916 * cfgrtl.c (remove_barriers_from_footer): New function.
32917 (try_redirect_by_replacing_jump): Use it.
32918 (cfg_layout_redirect_edge_and_branch): Likewise.
32920 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32922 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32923 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32924 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32925 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32926 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32927 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32929 * config/rs6000/rs6000.c (builtin_function_type)
32930 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32931 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32932 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32933 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32934 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32936 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32938 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32939 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32941 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32944 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32945 268678 and revision 268657.
32946 (*movti_internal): Likewise.
32948 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32951 * config/s390/s390.c (s390_decompose_address): Update comment.
32952 (s390_check_qrst_address): Reject invalid address forms after
32955 2019-02-12 Martin Liska <mliska@suse.cz>
32958 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32959 we need default values of funct_state for a function that
32962 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32964 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32965 the object to pick the size of stores on strict-alignment platforms.
32967 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32968 (*movdi_insn_sp32): Likewise.
32969 (*movdi_insn_sp64): Likewise.
32971 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32974 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32975 types that needs constructiong.
32976 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32978 2019-02-12 Richard Biener <rguenther@suse.de>
32980 PR tree-optimization/89253
32981 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32982 duplicate the loop.
32984 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32987 * input.c (selftest::test_line_offset_overflow): New selftest.
32988 (selftest::input_c_tests): Call it.
32990 2019-02-11 Martin Sebor <msebor@redhat.com>
32992 PR tree-optimization/88771
32993 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32994 when -Wstringop-overflow is set.
32995 (builtin_memref::builtin_memref): Adjust excessive upper bound
32996 only when lower bound is not excessive.
32997 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32998 -Wstringop-ovefflow.
32999 (maybe_diag_offset_bounds): Rename...
33000 (maybe_diag_access_bounds): ...to this.
33001 (check_bounds_or_overlap): Adjust for name change above.
33003 2019-02-11 Martin Sebor <msebor@redhat.com>
33006 * builtins.c (max_object_size): Move from here...
33007 * builtins.h (max_object_size): ...and here...
33008 * tree.c (max_object_size): ...to here...
33009 * tree.h (max_object_size): ...and here.
33011 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
33013 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33014 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33015 for correct semantics.
33017 2019-02-11 Alan Modra <amodra@gmail.com>
33019 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33020 -mlongcall and -mpltseq.
33021 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33022 (RS/6000 and PowerPC Options <-mpltseq>): Document.
33023 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33024 * config/rs6000/sysv4.opt (mpltseq): New option.
33025 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33026 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33027 support is lacking. Don't allow -mpltseq with -mbss-plt.
33028 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33029 -mpltseq given for ELFv1.
33030 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33031 Only use UNSPEC_PLTSEQ for inline PLT calls.
33032 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
33033 use UNSPEC_PLTSEQ for inline PLT calls.
33034 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33035 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33036 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33037 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33038 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33039 (pltseq_mtctr_<mode>): Likewise.
33041 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33043 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33045 * configure: Regenerate.
33047 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33050 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33053 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33055 * function.c (assign_parm_setup_block): Use the stored
33056 size, not the passed size, when allocating stack-space,
33057 also for a parameter with alignment larger than
33058 MAX_SUPPORTED_STACK_ALIGNMENT.
33060 2019-02-11 Martin Liska <mliska@suse.cz>
33063 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33064 * ipa-inline.c (inline_small_functions): Likewise.
33065 * ipa-pure-const.c (propagate_pure_const): Likewise.
33066 (propagate_nothrow): Likewise.
33067 * ipa-reference.c (propagate): Likewise.
33068 * ipa-utils.c (struct searchc_env): Remove unused field.
33069 (searchc): Always search across AVAIL_INTERPOSABLE.
33070 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33071 the only called IPA pure const can properly not propagate
33072 across interposable boundary.
33073 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33075 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33077 * config/nds32/nds32.md (call_internal, call_value_internal,
33078 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33080 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33082 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33085 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33087 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33090 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33092 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33094 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33096 PR tree-optimization/89268
33097 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33098 if preds is non-NULL.
33100 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33103 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33106 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33108 * config/nds32/nds32.md (trap): New pattern.
33110 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33112 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33115 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33117 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33120 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33122 * ipa-visibility.c (localize_node): Also do not localize
33123 LDPR_PREVAILING_DEF_IRONLY_EXP.
33125 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33128 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33129 instead of type_with_linkage.
33131 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33134 * params.def (uninlined-function-insns, uninlined-function-time,
33135 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33136 bound so we don't get overflows.
33138 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33140 * config/rs6000/rs6000-string.c (expand_compare_loop,
33141 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33144 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33146 PR middle-end/89246
33147 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33148 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33149 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33151 2019-02-09 Alan Modra <amodra@gmail.com>
33154 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33155 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33158 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33160 PR middle-end/88560
33161 * lra-constraints.c (process_alt_operands): Don't increase reject
33162 for memory when offset memory is required.
33164 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33166 * config/s390/vector.md: Implement vector copysign.
33168 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33170 * expr.c (expand_constructor): Correct indentations.
33172 2019-02-08 Richard Biener <rguenther@suse.de>
33174 PR tree-optimization/89247
33175 * tree-if-conv.c: Include tree-cfgcleanup.h.
33176 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33177 (tree_if_conversion): Pass through predicate vector.
33178 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33179 inline, see if any if-converted loops we refrece in
33180 LOOP_VECTORIZED calls vanished and fixup.
33181 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33183 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33185 * config/s390/constraints.md (jdd): New constraint.
33187 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33190 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33191 upper 16 vector registers without TARGET_AVX512VL.
33192 (*movti_internal): Likewise.
33194 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33196 PR rtl-optimization/89234
33197 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33198 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33199 (copy_reg_eh_region_note_backward): Likewise.
33201 2019-02-08 Richard Biener <rguenther@suse.de>
33203 PR middle-end/89223
33204 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33205 doesn't fit in HWI.
33206 (analyze_subscript_affine_affine): Handle failure from
33207 initialize_matrix_A.
33209 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33211 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33214 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33216 PR tree-optimization/86637
33217 PR tree-optimization/89235
33218 * tree-vect-loop.c (optimize_mask_stores): Add an
33219 auto_purge_vect_location sentinel to ensure that vect_location is
33221 * tree-vectorizer.c
33222 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33223 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33224 to ensure that vect_location is purged on exit.
33225 (pass_slp_vectorize::execute): Likewise, replacing the manual
33227 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33229 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33231 * config/aarch64/iterators.md (max_opp): New code_attr.
33232 (USMAX): New code iterator.
33233 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33234 (aarch64_smax): Likewise.
33235 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33236 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33239 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33242 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33243 for TARGET_AVX512VL.
33244 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33246 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33248 * config/s390/s390-builtin-types.def: Add new types.
33249 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33250 (s390_vec_xlw4): Make the memory operand into a const pointer.
33251 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33253 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33254 a new vector type with the alignment of the scalar memory operand.
33256 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33257 Jakub Jelinek <jakub@redhat.com>
33260 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33261 arm_count_ldrdstrd_insns): New declarations.
33262 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33264 (valid_operands_ldrd_strd): New function.
33265 (arm_count_ldrdstrd_insns): New function.
33266 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33267 sets instead of single DImode set and define new insns to match this.
33269 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33271 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33272 Make it a C initializer.
33274 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33277 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33279 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33281 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33282 Use neon_dot<q> for type.
33283 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33285 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33287 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33288 Use neon_dot<q> for type.
33289 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33290 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33292 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33294 PR rtl-optimization/89225
33295 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33298 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33300 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33301 after restoring registers saved to allocate the frame on Windows.
33303 2019-02-06 Richard Biener <rguenther@suse.de>
33305 PR tree-optimization/89182
33306 * graphite.h (cached_scalar_evolution_in_region): Declare.
33307 * graphite.c (struct seir_cache_key): New.
33308 (struct sese_scev_hash): Likewise.
33309 (seir_cache): New global.
33310 (cached_scalar_evolution_in_region): New function.
33311 (graphite_transform_loops): Allocate and release seir_cache.
33312 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33313 cached_scalar_evolution_in_region.
33314 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33316 (scop_detection::graphite_can_represent_expr: Use
33317 cached_scalar_evolution_in_region.
33318 (scop_detection::stmt_simple_for_scop_p): Likewise.
33319 (find_params_in_bb): Likewise.
33320 (gather_bbs::before_dom_children): Likewise.
33321 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33322 (add_loop_constraints): Likewise.
33324 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33326 PR middle-end/89210
33327 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33328 operand to new_unary_operation only if both element types are integral
33329 and it isn't a widening conversion. Return NULL_TREE if
33330 new_unary_operation failed.
33332 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33335 * config/s390/s390.md: Remove load and test FP splitter.
33337 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33340 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33341 expand_compare_loop, expand_block_compare_gpr,
33342 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33343 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33344 #include "profile-count.h" and "predict.h" for types and functions
33345 needed to work with REG_BR_PROB notes.
33347 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33350 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33351 for the long branch case.
33353 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33356 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33357 can throw, non-call exceptions are enabled and we can't delete
33358 dead exceptions or alter cfg. Set must_clean if
33359 delete_insn_and_edges returns true, don't set it blindly for calls.
33360 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33362 PR rtl-optimization/89195
33363 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33364 of the original MEM.
33366 2019-02-05 Martin Liska <mliska@suse.cz>
33368 PR gcov-profile/89000
33369 * gcov.c (function_summary): Remove argument.
33370 (file_summary): New function.
33371 (print_usage): Replace tabs with spaces.
33372 (generate_results): Use new function file_summary.
33374 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33377 * optabs.c (prepare_cmp_insn): Pass x and y to
33378 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33380 2019-02-05 Richard Biener <rguenther@suse.de>
33382 PR middle-end/89150
33383 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33384 (struct bitmap_element): Drop chain_prev so we properly recurse on
33385 the prev member, supporting tree views.
33386 (struct bitmap_head): GTY skip the obstack member.
33388 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33391 * doc/extend.texi (Vector Extensions): Add an example of using vector
33392 types together with x86 intrinsics.
33394 2019-02-04 Alan Modra <amodra@gmail.com>
33396 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33397 str[] size to 160, and comment.
33399 2019-02-04 Alan Modra <amodra@gmail.com>
33401 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33402 (rs6000_pltseq_template): Guard output of TLS markers with
33403 TARGET_TLS_MARKERS.
33404 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33405 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33406 to use inline PLT sequences.
33407 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33408 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33409 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33411 2019-02-04 Martin Liska <mliska@suse.cz>
33414 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33415 out when ipa_fn_summaries does not contain entry for callee.
33417 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33419 * config/sparc/sparc.h: Remove superfluous blank lines.
33420 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33421 (got_register_rtx): ...this.
33422 (sparc_got): Adjust to above renaming.
33423 (sparc_tls_got): Likewise.
33424 (sparc_delegitimize_address): Likewise.
33425 (sparc_output_mi_thunk): Likewise.
33426 (sparc_init_pic_reg): Likewise.
33427 (save_local_or_in_reg_p): Fix test on the GOT register.
33428 (USE_HIDDEN_LINKONCE): Move around.
33429 (get_pc_thunk_name): Likewise.
33430 (gen_load_pcrel_sym): Likewise.
33431 (load_got_register): Likewise.
33433 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33435 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33436 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33438 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33440 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33441 into consideration.
33443 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33445 * config.gcc (with_nds32_lib, glibc):
33446 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33447 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33448 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33450 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33453 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33454 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33455 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33456 (*rcpsf2_sse): Ditto.
33457 (*rsqrtsf2_sse): Ditto.
33458 (sse4_1_round<mode<2): Ditto.
33460 2019-02-03 Richard Biener <rguenther@suse.de>
33463 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33466 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33468 PR middle-end/87887
33469 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33470 Punt with warning on aggregate return or argument types. Ignore
33471 type/mode checking for uniform arguments.
33473 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33475 * combine.c (try_combine): Do not print "Can't combine" messages unless
33476 printing failed combination attempts.
33478 2019-02-01 Martin Jambor <mjambor@suse.cz>
33481 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33482 segment and global segment variables before making them static.
33484 2019-02-01 Martin Jambor <mjambor@suse.cz>
33486 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33487 missed optimization dump with dump_enabled_p.
33489 2019-02-01 Richard Biener <rguenther@suse.de>
33491 PR middle-end/88597
33492 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33493 the instantiate cache.
33494 (instantiate_scev_binary): Elide second operand procesing
33495 if equal to the first.
33496 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33497 (chrec_contains_undetermined): Likewise.
33498 (tree_contains_chrecs): Likewise.
33500 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33502 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33504 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33506 PR tree-optimization/89143
33507 * wide-int-range.h (wide_int_range_absu): Declare.
33508 * wide-int-range.cc (wide_int_range_absu): New function.
33509 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33511 PR tree-optimization/88107
33512 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33513 instead of assertion that eh_region_outermost is non-NULL, if it
33514 is NULL, set *ALL to true and return NULL.
33515 (move_sese_region_to_fn): Adjust caller, if all is set, call
33516 duplicate_eh_regions with NULL region.
33518 2019-02-01 Richard Biener <rguenth@suse.de>
33520 PR rtl-optimization/88593
33521 * mode-switching.c (optimize_mode_switching): Free dominators before
33522 calling cleanup_cfg.
33524 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33526 PR tree-optimization/88932
33527 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33529 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33531 PR middle-end/89137
33532 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33533 bogus clang warning.
33535 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33538 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33539 alternative to avoid partial SSE register stall for TARGET_AVX.
33540 (truncdfsf2): Ditto.
33541 (sse4_1_round<mode>2): Ditto.
33543 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33545 PR tree-optimization/89008
33546 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33547 process anything of the form X * 0.
33549 2019-01-31 Richard Biener <rguenther@suse.de>
33551 PR tree-optimization/89135
33552 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33553 with abnormal preds.
33555 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33558 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33559 always_inline callees into no_sanitize_address callers.
33561 2019-01-31 Richard Biener <rguenther@suse.de>
33563 PR rtl-optimization/89115
33564 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33566 2019-01-30 Martin Sebor <msebor@redhat.com>
33569 * doc/extend.texi (cast to a union): Correct and expand.
33571 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33573 PR rtl-optimization/87246
33574 * lra-constraints.c (simplify_operand_subreg): Reload memory
33575 in subreg if the address became invalid.
33577 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33580 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33581 Disable for little-endian.
33583 2019-01-30 Richard Biener <rguenther@suse.de>
33585 PR rtl-optimization/89115
33586 * opts.c (default_options_optimization): Reduce
33587 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33588 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33591 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33593 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33594 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33595 type of vector element when vec_extract is implemented by direct
33598 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33600 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33602 2019-01-30 Richard Biener <rguenther@suse.de>
33604 PR tree-optimization/89111
33605 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33606 canonicalization to appropriately sized access types.
33608 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33611 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33612 for arguments to functions that are TU-local and shouldn't be
33613 referenced by assembly.
33615 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33617 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33620 2019-01-29 Martin Sebor <msebor@redhat.com>
33623 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33625 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33629 * omp-simd-clone.c (simd_clone_clauses_extract)
33630 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33631 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33633 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33635 * config.gcc: Force .init_array for ARC.
33637 2019-01-29 Richard Biener <rguenther@suse.de>
33640 * dwarf2out.c (collect_skeleton_dies): New helper.
33641 (copy_decls_for_unworthy_types): Call it.
33642 (build_abbrev_table): Assert we do not try to replace
33643 DW_AT_signature refs with local refs.
33645 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33647 PR middle-end/89002
33648 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33649 for lastprivate/linear IV, push gimplify context around gimplify_assign
33650 and, if it needed any temporaries, pop it into a gimple bind around the
33653 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33655 * common.opt (-Wattribute-alias): Remove "no-" from name.
33656 Make -Wattribute-alias command line option and
33657 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33659 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33662 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33663 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33665 (bmi2): Add missing @opindex.
33666 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33667 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33668 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33669 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33670 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33671 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33672 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33673 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33674 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33675 xsavec, xsaveopt and xsaves options.
33677 2019-01-28 Richard Biener <rguenther@suse.de>
33680 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33683 2019-01-28 Richard Biener <rguenther@suse.de>
33685 PR tree-optimization/88739
33686 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33687 BIT_FIELD_REFs only are applied to mode-precision operands
33688 when they are integral.
33689 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33690 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33691 BIT_FIELD_REFs of non-mode-precision integral operands.
33693 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33696 * config/i386/sse.md
33697 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33698 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33699 first constants in pairs are multiples of 2. Formatting fixes.
33700 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33701 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33702 first constants in each quadruple are multiples of 4. Formatting fixes.
33704 2019-01-26 Martin Jambor <mjambor@suse.cz>
33707 * tree-inline.c: Include tree-cfgcleanup.h.
33708 (delete_unreachable_blocks_update_callgraph): Move...
33709 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33710 ...here, make externally visible, make second argument bool, adjust
33712 * tree-cfgcleanup.c: Include cgraph.h.
33713 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33715 * ipa-prop.c: Include tree-cfgcleanup.h.
33716 (ipcp_transform_function): Call
33717 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33719 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33721 PR rtl-optimization/88846
33722 * ira.c (process_set_for_memref_referenced_p): New.
33723 (memref_referenced_p): Add new param. Use
33724 process_set_for_memref_referenced_p. Add new switch cases.
33725 (memref_used_between_p): Pass new arg to memref_referenced_p.
33727 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33730 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33731 argument ABI_BREAK. Set to true if the calculated alignment has
33732 changed in gcc-9. Check bit-fields for their base type alignment.
33733 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33734 (aarch64_function_arg_boundary): Likewise.
33735 (aarch64_gimplify_va_arg_expr): Likewise.
33737 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33739 PR middle-end/89037
33740 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33741 instead of accessing TREE_INT_CST_ELT directly.
33743 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33745 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33746 fenv_exceptions description.
33748 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33750 PR rtl-optimization/87763
33751 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33752 Allow SUBREG when matching CC_NZmode compare.
33754 2019-01-25 Richard Biener <rguenther@suse.de>
33756 PR tree-optimization/89049
33757 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33758 Look at the pattern stmt to determine if the stmt is vectorized.
33760 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33762 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33763 (pred_mov<mode>): Handle all-register forms using both a new
33764 alternative and a split.
33766 2019-01-25 Richard Biener <rguenther@suse.de>
33768 PR tree-optimization/86865
33769 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33770 Reject non-do-while loops.
33772 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33774 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33775 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33776 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33777 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33778 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33779 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33780 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33781 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33782 vlogical_operand, gpc_reg_operand, int_reg_operand,
33783 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33784 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33785 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33786 (save_world_operation, restore_world_operation, lmw_operation,
33787 stmw_operation): Use MEM_P and REG_P.
33788 (tie_operand): Use MEM_P.
33789 (vrsave_operation, crsave_operation): Use REG_P.
33790 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33791 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33792 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33793 (call_operand): Use HARD_REGISTER_P.
33794 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33796 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33797 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33798 quad_aligned_load_p, replace_swapped_aligned_store,
33799 recombine_lvx_pattern, replace_swapped_aligned_load,
33800 recombine_stvx_pattern): Use MEM_P.
33801 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33802 Use MEM_P and SYMBOL_REF_P.
33803 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33804 (insn_is_swappable_p): Use REG_P and MEM_P.
33805 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33806 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33808 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33809 Use CONST_DOUBLE_P.
33810 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33812 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33813 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33814 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33815 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33817 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33818 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33819 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33820 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33821 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33822 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33823 rs6000_split_logical_di): Use CONST_INT_P.
33824 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33825 REG_P and SYMBOL_REF_P.
33826 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33827 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33828 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33829 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33830 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33831 (small_data_operand, print_operand_address): Use CONST_INT_P and
33833 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33834 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33835 Use HARD_REGISTER_NUM_P.
33836 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33837 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33838 SUBREG_P and SYMBOL_REF_P.
33839 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33840 and HARD_REGISTER_NUM_P.
33841 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33843 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33844 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33846 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33847 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33848 find_addr_reg): Use REG_P.
33849 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33850 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33851 (offsettable_ok_by_alignment, constant_pool_expr_p,
33852 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33853 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33854 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33855 rs6000_assemble_integer, create_TOC_reference,
33856 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33857 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33858 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33859 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33860 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33861 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33862 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33863 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33864 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33865 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33866 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33867 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33868 and cbranch<mode>4): Use CONST_INT_P.
33869 (multiple define_splits): Use REG_P and SUBREG_P.
33870 (define_expands call, call_value): Use MEM_P.
33871 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33872 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33873 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33874 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33875 and HARD_REGISTER_NUM_P.
33876 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33878 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33880 PR rtl-optimization/88948
33881 * rtl.h (prepare_copy_insn): New prototype.
33882 * gcse.c (prepare_copy_insn): New function, split out from
33883 process_insert_insn.
33884 (process_insert_insn): Use prepare_copy_insn.
33885 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33886 instead of gen_move_insn.
33888 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33891 * config/i386/i386.c (ix86_pic_register_p): Return true for
33892 UNSPEC_SET_GOT too.
33894 PR tree-optimization/88964
33895 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33896 punt if HONOR_SNANS (chrec).
33898 PR middle-end/89015
33899 * tree-nested.c (convert_nonlocal_reference_stmt,
33900 convert_local_reference_stmt, convert_tramp_reference_stmt,
33901 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33902 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33903 or GIMPLE_OMP_TASK.
33905 PR tree-optimization/89027
33906 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33907 for "omp simd array" variables.
33909 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33912 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33913 force the alignment of m_val.
33915 2019-01-24 Richard Biener <rguenther@suse.de>
33918 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33919 When in "legacy" debug mode make sure to reset self-origins.
33921 2019-01-24 Martin Liska <mliska@suse.cz>
33923 PR gcov-profile/88994
33924 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33925 result will be always smaller or equal to the original.
33926 * gcov.c (mangle_name): Fix else branch where we should
33927 also copy to PTR and shift the pointer.
33929 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33931 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33932 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33934 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33936 * common/config/i386/i386-common.c
33937 (OPTION_MASK_ISA_ENQCMD_SET,
33938 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33939 (ix86_handle_option): Handle -menqcmd.
33940 * config.gcc (enqcmdintrin.h): New header file.
33941 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33942 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33944 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33946 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33947 __builtin_ia32_enqcmds): New builtins.
33948 * config/i386/i386-c.c (__ENQCMD__): New macro.
33949 * config/i386/i386-option.c (ix86_target_string): Add
33951 (ix86_valid_target_attribute_inner_p): Likewise.
33952 * config/i386/i386-expand.c
33953 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33954 IX86_BUILTIN_ENQCMDS.
33955 * config/i386/i386.h (TARGET_ENQCMD): New.
33956 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33957 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33958 (movdir64b_<mode>): Parameterize to enable share expansion code
33959 with ENQCMD in function ix86_expand_builtin.
33960 * config/i386/i386.opt: Add -menqcmd.
33961 * config/i386/immintrin.h: Include enqcmdintrin.h.
33962 * config/i386/enqcmdintrin.h: New intrinsic file.
33963 * doc/invoke.texi: Add -menqcmd.
33965 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33966 Steve Ellcey <sellcey@marvell.com>
33969 * recog.c (address_operand): Return false on wrong mode for address.
33970 (constrain_operands): Check for mode with 'p' constraint.
33972 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33975 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33976 Disparage MMX alternative.
33977 (sse2_cvtpd2pi): Ditto.
33978 (sse2_cvttpd2pi): Ditto.
33980 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33983 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33984 use-after-free of the result of
33985 aarch64_get_extension_string_for_isa_flags.
33987 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33990 * doc/extend.texi: Document break and continue behavior in
33991 statement expressions.
33993 2019-01-23 Richard Biener <rguenther@suse.de>
33995 PR tree-optimization/89008
33996 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33997 not leave another stray operand.
33999 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34001 * BASE-VER: Bump to 9.0.1.
34003 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
34005 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34006 thunk that returns by reference, use the type of the return object
34007 of the thunk instead of that of the alias to build the dereference.
34009 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
34011 * config/arc/atomic.md: Add operand to DMB instruction.
34013 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34015 PR tree-optimization/88964
34016 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34017 build_zero_cst instead of build_int_cst. Return false for loop
34018 invariants which honor signed zeros.
34020 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
34022 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34024 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34027 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34028 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34029 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34031 PR middle-end/88968
34032 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34033 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34036 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34037 Disable for little endian.
34039 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34042 * config/arm/arm.c (arm_needs_double_word_align): Check
34043 DECL_BIT_FIELD_TYPE.
34045 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34046 H.J. Lu <hongjiu.lu@intel.com>
34049 * config/i386/i386-builtin.def: Add mask2 to all builtin
34050 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34052 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34053 (BDESC_FIRST): Likewise.
34054 (define_builtin): Add an argument for mask2. Updated to handle
34055 both ix86_isa_flags and ix86_isa_flags2.
34056 (define_builtin_const): Likewise.
34057 (define_builtin_pure): Likewise.
34058 (define_builtin2): Deleted.
34059 (define_builtin_const2): Likewise.
34060 (builtin_description): Add a member, mask2.
34061 (bdesc_*): Add mask2 to builtin initializations.
34062 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34063 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34065 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34067 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34070 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34073 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34076 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34077 alignment is dominated by a bitfield with 64-bit aligned base type.
34078 (arm_function_arg): Emit a warning if the alignment has changed since
34079 earlier GCC releases.
34080 (arm_function_arg_boundary): Likewise.
34081 (arm_setup_incoming_varargs): Likewise.
34083 2019-01-22 Richard Biener <rguenther@suse.de>
34085 PR tree-optimization/88862
34086 * graphite-scop-detection.c
34087 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34089 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34091 * doc/extend.tex (AMD GCN Function Attributes): New section.
34092 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34093 * doc/invoke.texi (AMD GCN Options): New section.
34094 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34096 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34098 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34099 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34101 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34103 PR tree-optimization/88044
34104 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34105 is false in the first iteration, but !every_iteration, return false
34106 instead of true with niter->niter zero.
34108 PR rtl-optimization/88904
34109 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34110 any nonequal registers before processing BB_END (b).
34113 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34115 (expand_binop_directly, expand_doubleword_clz,
34116 expand_doubleword_popcount, expand_ctz, expand_ffs,
34117 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34119 PR rtl-optimization/49429
34121 PR rtl-optimization/86334
34123 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34124 addressable from here...
34125 (emit_block_op_via_libcall): ... to here.
34127 2019-01-22 Richard Biener <rguenther@suse.de>
34129 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34130 auto_vec for cost vector to fix memleak.
34131 (vectorize_fold_left_reduction): Properly gather SLP defs.
34132 (vectorizable_comparison): Do not swap operands to properly
34135 2019-01-22 Alan Modra <amodra@gmail.com>
34138 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34139 stays a reg. Allow a const_int.
34140 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34141 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34142 (IS_NOMARK_TLSGETADDR): Define.
34143 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34144 (rs6000_output_tlsargs): New function.
34145 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34146 __tls_get_addr call takes an arg.
34147 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34148 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34150 (call_value_nonlocal_sysv): ..or here, delete split.
34151 (tls_gdld_nomark): Delete.
34152 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34153 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34154 (call_value_nonlocal_sysv): Likewise.
34155 (call_value_nonlocal_sysv_secure): Likewise.
34156 (call_value_nonlocal_aix): Likewise.
34157 (call_value_indirect_aix): Likewise.
34158 (call_value_indirect_elfv2): Likewise.
34159 (call_value_local32, call_value_local64): Disable for no-mark tls.
34160 (call_value_local_aix): Likewise.
34162 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34165 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34166 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34168 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34170 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34171 string contents as hash_map keys.
34173 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34176 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34177 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34178 instead of TYPE_ALIGN.
34179 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34180 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34181 pointer from TYPE_STUB_DECL.
34183 2019-01-21 Richard Biener <rguenther@suse.de>
34185 PR tree-optimization/88934
34186 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34187 at the possibly non-constant operand.
34188 (vect_get_constant_vectors): Adjust.
34190 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34193 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34194 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34195 instead of _X86INTRIN_H_INCLUDED.
34196 * onfig/i386/clwbintrin.h: Likewise.
34197 * config/i386/pkuintrin.h: Likewise.
34198 * config/i386/prfchwintrin.h: Likewise.
34199 * config/i386/rdseedintrin.h: Likewise.
34200 * config/i386/wbnoinvdintrin.h: Likewise.
34201 * config/i386/xsavecintrin.h: Likewise.
34202 * config/i386/xsavesintrin.h: Likewise.
34203 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34204 * config/i386/xsaveintrin.h: Likewise.
34205 * config/i386/xsaveoptintrin.h: Likewise.
34206 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34207 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34208 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34209 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34210 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34211 * config/i386/immintrin.h: Here.
34213 2019-01-20 Martin Jambor <mjambor@suse.cz>
34216 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34217 with aa_walk_budget.
34218 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34219 aa_walk_budget_p parameter.
34220 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34221 walk. Updated all callers.
34222 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34223 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34225 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34226 parameter info. Extract info from fbi. Pass fbi to recursive calls
34227 and to unmodified_parm.
34228 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34229 info, updated call to will_be_nonconstant_expr_predicate.
34230 (param_change_prob): New parameter fbi, limit AA walking.
34231 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34232 calls to various above functions.
34233 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34234 parameter. Use it to limit AA walking.
34235 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34236 fbi, limit AA walk.
34237 (detect_type_change): New parameter fbi, pass it on to
34238 detect_type_change_from_memory_writes.
34239 (detect_type_change_ssa): Likewise.
34240 (aa_overwalked): Removed.
34241 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34242 accordingly, adjust to the neew AA limiting scheme.
34243 (parm_ref_data_preserved_p): Likewise.
34244 (ipa_compute_jump_functions_for_edge): Adjust call to
34246 (ipa_analyze_call_uses): Likewise.
34247 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34248 (ipa_analyze_node): Initialize aa_walk_budget.
34249 (ipcp_transform_function): Likewise.
34250 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34251 to get_dynamic_type.
34253 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34255 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34256 outside of #if CHECKING_P code.
34258 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34260 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34261 New function, split out from...
34262 (loop_versioning::analyze_stride): ...here.
34263 (loop_versioning::find_per_loop_multiplication): Use gassign.
34264 (loop_versioning::analyze_term_using_scevs): Return a success code.
34265 (loop_versioning::analyze_arbitrary_term): New function.
34266 (loop_versioning::analyze_address_fragment): Use
34267 analyze_arbitrary_term if all else fails.
34269 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34272 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34275 2019-01-18 Richard Biener <rguenther@suse.de>
34277 PR tree-optimization/88903
34278 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34279 scalar stmts a SLP shift amount is composed of when detecting
34282 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34285 * config/arm/arm-cpus.in (mp): New feature.
34286 (sec): New feature.
34287 (fgroup ARMv7ve): Add mp and sec features.
34288 (arch armv7-a): Add options to allow mp and sec extensions.
34289 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34290 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34291 extenstions to the base architecture.
34292 (cpu cortex-a8): Add sec extension to the base architecture.
34293 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34294 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34295 variants down to the base v7-a varaint.
34296 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34297 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34298 of permitted extensions for -march=armv7-a and for
34299 -mcpu=generic-armv7-a.
34301 2019-01-18 Martin Liska <mliska@suse.cz>
34303 * params.def: Fix comment.
34304 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34306 (gimple_gen_ic_func_profiler): Likewise.
34308 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34310 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34311 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34312 and put in error checks for stack protector guard options.
34313 (aarch64_stack_protect_guard): New.
34314 (TARGET_STACK_PROTECT_GUARD): Define.
34315 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34316 (reg_stack_protect_address<mode>): New.
34317 (stack_protect_set): Adjust for SSP_GLOBAL.
34318 (stack_protect_test): Likewise.
34319 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34320 (-mstack-protector-guard): Likewise.
34321 (-mstack-protector-guard-offset): Likewise.
34323 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34325 PR tree-optimization/86214
34326 * tree-inline.h (struct copy_body_data): Add
34327 add_clobbers_to_eh_landing_pads member.
34328 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34329 (copy_edges_for_bb): Call it if EH edge destination is <
34330 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34331 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34332 if flag_stack_reuse != SR_NONE and clear it afterwards.
34334 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34337 * doc/install.texi (with-multilib-list): Document for aarch64.
34339 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34342 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34343 (("..."))) with ("...").
34345 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34347 * doc/extend.texi (Built-in Functions for Memory Model Aware
34348 Atomic Operations): Document atomic fetch and nand.
34350 2019-01-18 Martin Liska <mliska@suse.cz>
34351 Richard Biener <rguenther@suse.de>
34353 PR middle-end/88587
34354 * cgraph.h (create_version_clone_with_body): Add new argument
34356 * cgraphclones.c (cgraph_node::create_version_clone): Add
34357 DECL_ATTRIBUTES to a newly created decl. And call
34358 valid_attribute_p so that proper cl_target_optimization_node
34359 is set for the newly created declaration.
34360 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34362 (expand_target_clones): Do not call valid_attribute_p, it must
34364 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34367 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34370 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34371 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34372 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34374 2019-01-17 Martin Sebor <msebor@redhat.com>
34376 PR middle-end/88273
34377 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34378 Handle anti-ranges the same as no range at all.
34380 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34382 * config/aarch64/aarch64.c (cgraph.h): New include.
34383 (intl.h): New include.
34384 (supported_simd_type): New function.
34385 (currently_supported_simd_type): Ditto.
34386 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34387 (aarch64_simd_clone_adjust): Ditto.
34388 (aarch64_simd_clone_usable): Ditto.
34389 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34390 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34391 (TARGET_SIMD_CLONE_USABLE): Ditto.
34392 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34393 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34396 2019-01-17 Martin Sebor <msebor@redhat.com>
34398 PR tree-optimization/88800
34399 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34400 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34401 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34402 redundant argument. Add new argument and issue diagnostics under
34403 its control. Detect out-of-bounds access even with warnings
34405 (check_bounds_or_overlap): Change return type. Add argument.
34406 (wrestrict_dom_walker::check_call): Adjust.
34407 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34408 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34409 check_bounds_or_overlap's return value.
34410 (handle_builtin_stxncpy): Same.
34411 (handle_builtin_strcat): Same.
34413 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34414 Kwok Cheung Yeung <kcy@codesourcery.com>
34415 Julian Brown <julian@codesourcery.com>
34416 Tom de Vries <tom@codesourcery.com>
34418 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34420 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34422 * doc/sourcebuild.texi: Document dg-require-effective-target
34423 llvm_binutils and offload_gcn.
34425 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34426 Kwok Cheung Yeung <kcy@codesourcery.com>
34427 Julian Brown <julian@codesourcery.com>
34428 Tom de Vries <tom@codesourcery.com>
34430 * doc/sourcebuild.texi: Document dg-required-effective-target
34433 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34434 Kwok Cheung Yeung <kcy@codesourcery.com>
34435 Julian Brown <julian@codesourcery.com>
34436 Tom de Vries <tom@codesourcery.com>
34437 Jan Hubicka <hubicka@ucw.cz>
34438 Martin Jambor <mjambor@suse.cz>
34440 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34441 * configure.ac: Check for dlopen.
34442 * configure: Regenerate.
34444 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34445 Kwok Cheung Yeung <kcy@codesourcery.com>
34446 Julian Brown <julian@codesourcery.com>
34447 Tom de Vries <tom@codesourcery.com>
34448 Jan Hubicka <hubicka@ucw.cz>
34449 Martin Jambor <mjambor@suse.cz>
34451 * common/config/gcn/gcn-common.c: New file.
34452 * config/gcn/driver-gcn.c: New file.
34453 * config/gcn/gcn-builtins.def: New file.
34454 * config/gcn/gcn-hsa.h: New file.
34455 * config/gcn/gcn-modes.def: New file.
34456 * config/gcn/gcn-opts.h: New file.
34457 * config/gcn/gcn-passes.def: New file.
34458 * config/gcn/gcn-protos.h: New file.
34459 * config/gcn/gcn-run.c: New file.
34460 * config/gcn/gcn-tree.c: New file.
34461 * config/gcn/gcn.c: New file.
34462 * config/gcn/gcn.h: New file.
34463 * config/gcn/gcn.opt: New file.
34464 * config/gcn/t-gcn-hsa: New file.
34466 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34467 Kwok Cheung Yeung <kcy@codesourcery.com>
34468 Julian Brown <julian@codesourcery.com>
34469 Tom de Vries <tom@codesourcery.com>
34470 Jan Hubicka <hubicka@ucw.cz>
34471 Martin Jambor <mjambor@suse.cz>
34473 * config/gcn/constraints.md: New file.
34474 * config/gcn/gcn-valu.md: New file.
34475 * config/gcn/gcn.md: New file.
34476 * config/gcn/predicates.md: New file.
34478 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34480 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34481 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34482 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34483 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34485 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34488 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34489 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34490 it and document registers.
34492 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34494 * config/aarch64/aarch64.c (ares_tunings): Define.
34495 * config/aarch64/aarch64-cores.def (ares): Use the above.
34497 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34501 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34503 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34504 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34505 (_mm512_maskz_fixupimm_round_pd): Ditto.
34506 (_mm512_fixupimm_round_ps): Ditto.
34507 (_mm512_maskz_fixupimm_round_ps): Ditto.
34508 (_mm_fixupimm_round_sd): Ditto.
34509 (_mm_maskz_fixupimm_round_sd): Ditto.
34510 (_mm_fixupimm_round_ss): Ditto.
34511 (_mm_maskz_fixupimm_round_ss): Ditto.
34512 (_mm512_fixupimm_pd): Ditto.
34513 (_mm512_maskz_fixupimm_pd): Ditto.
34514 (_mm512_fixupimm_ps): Ditto.
34515 (_mm512_maskz_fixupimm_ps): Ditto.
34516 (_mm_fixupimm_sd): Ditto.
34517 (_mm_maskz_fixupimm_sd): Ditto.
34518 (_mm_fixupimm_ss): Ditto.
34519 (_mm_maskz_fixupimm_ss): Ditto.
34520 (_mm512_mask_fixupimm_round_pd): Update builtin.
34521 (_mm512_mask_fixupimm_round_ps): Ditto.
34522 (_mm_mask_fixupimm_round_sd): Ditto.
34523 (_mm_mask_fixupimm_round_ss): Ditto.
34524 (_mm512_mask_fixupimm_pd): Ditto.
34525 (_mm512_mask_fixupimm_ps): Ditto.
34526 (_mm_mask_fixupimm_sd): Ditto.
34527 (_mm_mask_fixupimm_ss): Ditto.
34528 * config/i386/avx512vlintrin.h:
34529 (_mm256_fixupimm_pd): Update parameters and builtin.
34530 (_mm256_maskz_fixupimm_pd): Ditto.
34531 (_mm256_fixupimm_ps): Ditto.
34532 (_mm256_maskz_fixupimm_ps): Ditto.
34533 (_mm_fixupimm_pd): Ditto.
34534 (_mm_maskz_fixupimm_pd): Ditto.
34535 (_mm_fixupimm_ps): Ditto.
34536 (_mm_maskz_fixupimm_ps): Ditto.
34537 (_mm256_mask_fixupimm_pd): Update builtin.
34538 (_mm256_mask_fixupimm_ps): Ditto.
34539 (_mm_mask_fixupimm_pd): Ditto.
34540 (_mm_mask_fixupimm_ps): Ditto.
34541 * config/i386/i386-builtin-types.def: Add new types and remove
34543 * config/i386/i386-builtin.def: Update builtin definitions.
34544 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34545 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34546 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34547 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34548 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34549 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34550 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34551 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34552 * config/i386/subst.md:
34553 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34554 (round_saeonly_sd_mask_op4): Ditto.
34555 (round_saeonly_expand_operand5): Ditto.
34556 (round_saeonly_expand): Update.
34558 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34562 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34564 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34565 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34566 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34567 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34568 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34569 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34570 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34572 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34576 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34579 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34580 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34581 instead of UNSPEC_FIXUPIMM.
34583 2019-01-17 Richard Biener <rguenther@suse.de>
34586 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34587 and friends for the LTO part of debug info.
34589 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34591 PR tree-optimization/86214
34592 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34595 PR rtl-optimization/88870
34596 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34597 throw if we can't alter the cfg or delete dead exceptions.
34598 (mark_insn): Don't call find_call_stack_args for such calls.
34600 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34602 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34603 prototypes for vec_st.
34604 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34605 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34606 mainly on signed/unsigned long long and double.
34608 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34611 * combine.c (delete_noop_moves): Convert to "bool" return,
34612 returning true if any edges are eliminated.
34613 (combine_instructions): Also return true if delete_noop_moves
34616 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34618 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34619 correct max nunits for endian swap.
34620 (aarch64_expand_fcmla_builtin): Correct subreg code.
34621 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34622 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34625 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34627 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34628 Handle split indirect COMPLEX_TYPE arguments.
34630 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34633 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34634 bit is set by add and compare.
34635 (CC_ADC): New CC_MODE.
34636 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34637 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34638 comparison. Add detection for CC_ADCmode.
34639 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34641 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34642 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34643 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34644 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34645 to eliminate the need for zero-extending the operands.
34646 (add<mode>3_compareC_imm): Delete. Merge into ...
34647 (add<mode>3_compareC): ... this. Restructure the comparison to
34648 eliminate the need for zero-extending the operands.
34649 (add<mode>3_carryin): Use LTU for the overflow detection.
34650 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34651 Reexpress comparison for overflow.
34652 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34653 (add<mode>3_carryinC): Likewise.
34654 (add<mode>3_carryinV): Use LTU for carry between partials.
34655 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34656 handling of CC_Cmode and add CC_ADCmode.
34657 (aarch64_borrow_operation): Likewise.
34659 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34661 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34662 Remove patternmode.
34663 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34664 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34665 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34666 Remove endianness conversion.
34668 2019-01-16 Martin Liska <mliska@suse.cz>
34670 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34672 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34674 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34675 (path_prefix_reset): Move up in the source file.
34676 (find_fortran_preinclude_file): Make complex search for the
34677 fortran header files.
34679 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34681 * godump.c (go_output_typedef): When outputting a typedef, refer
34682 to the underlying type by its name and not its structure.
34684 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34687 * tree.c (build_function_type): Assert that arg_types is not
34690 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34692 PR inline-asm/52813
34693 * doc/extend.texi: Document that listing the stack pointer in the
34694 clobber list of an asm is a deprecated feature.
34695 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34696 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34697 warning instead of an error for clobbers of the stack pointer.
34698 Add a note explaining why.
34700 2019-01-15 Richard Biener <rguenther@suse.de>
34703 * dwarf2out.c (gen_member_die): Do not generate inheritance
34706 2019-01-15 Richard Biener <rguenther@suse.de>
34708 PR tree-optimization/88855
34709 * tree-if-conv.c (combine_blocks): Collect
34710 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34712 2019-01-15 Tom de Vries <tdevries@suse.de>
34715 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34716 lhs == NULL_TREE for gang-level reduction.
34718 2019-01-15 Richard Biener <rguenther@suse.de>
34719 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34722 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34723 return true if SSA_NAME is already marked in visited bitmap.
34724 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34726 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34728 PR tree-optimization/88775
34729 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34730 equal == 0 equality pointer comparisons some more if compared in
34731 integral types and either one points to an automatic var and the
34732 other to a global, or we can prove at least one points to the middle
34733 or both point to start or both point to end.
34735 2019-01-14 Andi Kleen <ak@linux.intel.com>
34737 * Makefile.in: Lower autofdo sampling rate by 10x.
34738 * Makefile.tpl: Dito.
34740 2019-01-14 Tom Honermann <tom@honermann.net>
34742 * defaults.h: Define CHAR8_TYPE.
34744 2019-01-14 Martin Sebor <msebor@redhat.com>
34747 * doc/extend.texi (Darwin Format Checks): Clarify.
34749 2019-01-14 Richard Biener <rguenther@suse.de>
34751 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34752 whether we are in (simplify ...) or (match ...) context.
34754 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34756 PR rtl-optimization/88796
34757 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34758 * cfgexpand.c (stack_protect_prologue): Initialize
34759 crtl->stack_protect_guard_decl.
34760 * function.c (stack_protect_epilogue): Use it instead of calling
34761 targetm.stack_protect_guard again.
34762 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34763 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34764 crtl->stack_protect_guard_decl.
34765 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34766 on the returned MEM_EXPR.
34768 2019-01-12 Tom de Vries <tdevries@suse.de>
34770 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34771 vector length using -fopenacc-dim.
34773 2019-01-12 Tom de Vries <tdevries@suse.de>
34775 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34776 lengths into account.
34778 2019-01-12 Svante Signell <svante.signell@gmail.com>
34780 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34781 (TARGET_CAN_SPLIT_STACK): Define.
34782 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34784 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34786 * params.def (inline-unit-growth): Set to 40.
34788 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34790 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34792 2019-01-12 Tom de Vries <tdevries@suse.de>
34794 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34795 region calling vector-partitionable routine, set default_vector_length
34798 2019-01-12 Tom de Vries <tdevries@suse.de>
34800 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34801 variable default_vector_length.
34803 2019-01-12 Tom de Vries <tdevries@suse.de>
34805 PR middle-end/88703
34806 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34807 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34810 2019-01-12 Tom de Vries <tdevries@suse.de>
34812 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34813 (nvptx_goacc_validate_dims): Add used parameter.
34814 * doc/tm.texi: Regenerate.
34815 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34816 argument to call to targetm.goacc.validate_dims.
34817 (default_goacc_validate_dims): Add used
34819 * target.def (validate_dims): Add used parameter in DEFHOOK.
34820 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34822 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34824 PR middle-end/85956
34826 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34828 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34829 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34830 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34831 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34833 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34835 PR rtl-optimization/87305
34837 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34838 for little endian pseudos used as paradoxical subreg.
34840 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34842 PR tree-optimization/88693
34843 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34844 for STRING_CSTs that don't contain any NUL characters in the first
34845 TREE_STRING_LENGTH bytes.
34847 2019-01-11 Alan Modra <amodra@gmail.com>
34851 * genattrtab.c (min_fn): Don't translate values.
34852 (min_attr_value): Return INT_MAX when the value can't be calculated.
34853 Return minimum among any values that can be calculated.
34854 (max_attr_value): Adjust.
34856 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34858 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34860 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34862 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34863 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34864 (aarch64_return_call_with_max_clobbers): New function.
34865 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34866 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34868 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34869 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34870 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34871 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34872 * cselib.c (cselib_process_insn): Add argument to
34873 targetm.hard_regno_call_part_clobbered call.
34874 * ira-conflicts.c (ira_build_conflicts): Ditto.
34875 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34876 * lra-constraints.c (inherit_reload_reg): Ditto.
34877 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34878 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34879 argument. Call targetm.return_call_with_max_clobbers.
34880 Add argument to targetm.hard_regno_call_part_clobbered call.
34881 (calls_have_same_clobbers_p): New function.
34882 (process_bb_lives): Add call_insn and last_call_insn variables.
34883 Pass call_insn to check_pseudos_live_through_calls.
34884 Modify if stmt to check targetm.return_call_with_max_clobbers.
34885 Update setting of flush variable.
34886 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34888 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34889 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34890 targetm.hard_regno_call_part_clobbered call.
34891 * reginfo.c (choose_hard_reg_mode): Ditto.
34892 * regrename.c (check_new_reg_p): Ditto.
34893 * reload.c (find_equiv_reg): Ditto.
34894 * reload1.c (emit_reload_insns): Ditto.
34895 * sched-deps.c (deps_analyze_insn): Ditto.
34896 * sel-sched.c (init_regs_for_mode): Ditto.
34897 (mark_unavailable_hard_regs): Ditto.
34898 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34899 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34900 (return_call_with_max_clobbers): New target function.
34901 * doc/tm.texi: Regenerate.
34902 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34903 * hooks.c (hook_bool_uint_mode_false): Change to
34904 hook_bool_insn_uint_mode_false.
34905 * hooks.h (hook_bool_uint_mode_false): Ditto.
34907 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34909 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34910 (aarch64_remove_extra_call_preserved_regs): New function.
34911 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34912 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34913 * doc/tm.texi: Regenerate.
34914 * final.c (get_call_reg_set_usage): Call new hook.
34915 * target.def (remove_extra_call_preserved_regs): New hook.
34916 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34917 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34919 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34922 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34923 inside of pass_combine_1 dump rather than pass_profile_1.
34925 2019-01-11 Tom de Vries <tdevries@suse.de>
34927 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34928 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34929 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34930 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34933 2019-01-11 Tom de Vries <tdevries@suse.de>
34935 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34937 2019-01-11 Jan Beulich <jbeulich@suse.com>
34939 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34940 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34941 sse2_cvtsi2sd): Add {l}.
34942 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34945 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34948 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34950 (*float<floatunssuffix>v2div2sf2): New define_insn.
34951 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34952 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34953 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34954 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34955 match_operands with "const0_operand" "C".
34957 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34959 * config/aarch64/aarch64-builtins.c
34960 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34961 (aarch64_init_simd_builtins): ...Here
34963 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34965 PR rtl-optimization/87305
34967 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34968 allocation for big endian pseudos used as paradoxical subregs and
34969 spill them if it is wrong.
34970 * lra-constraints.c (lra_constraints): Add a comment.
34972 2019-01-10 Richard Biener <rguenther@suse.de>
34974 PR tree-optimization/88792
34975 * tree-ssa-pre.c (get_representative_for): Do not return a
34978 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34980 PR middle-end/84877
34982 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34983 (assign_parm_setup_block): Do the argument slot realignment here
34986 2019-01-10 Stefan Agner <stefan@agner.ch>
34989 * config/arm/arm.c (arm_option_override_internal): Force
34990 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34992 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34995 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34998 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35000 * config/arm/arm-builtins.c
35001 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35002 (MAC_LANE_PAIR_QUALIFIERS): New.
35003 (arm_expand_builtin_args): Use it.
35004 (arm_expand_builtin_1): Likewise.
35005 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35006 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35007 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35008 * config/arm/arm_neon.h:
35009 (vcadd_rot90_f16): New.
35010 (vcaddq_rot90_f16): New.
35011 (vcadd_rot270_f16): New.
35012 (vcaddq_rot270_f16): New.
35015 (vcmla_lane_f16): New.
35016 (vcmla_laneq_f16): New.
35017 (vcmlaq_lane_f16): New.
35018 (vcmlaq_laneq_f16): New.
35019 (vcmla_rot90_f16): New.
35020 (vcmlaq_rot90_f16): New.
35021 (vcmla_rot90_lane_f16): New.
35022 (vcmla_rot90_laneq_f16): New.
35023 (vcmlaq_rot90_lane_f16): New.
35024 (vcmlaq_rot90_laneq_f16): New.
35025 (vcmla_rot180_f16): New.
35026 (vcmlaq_rot180_f16): New.
35027 (vcmla_rot180_lane_f16): New.
35028 (vcmla_rot180_laneq_f16): New.
35029 (vcmlaq_rot180_lane_f16): New.
35030 (vcmlaq_rot180_laneq_f16): New.
35031 (vcmla_rot270_f16): New.
35032 (vcmlaq_rot270_f16): New.
35033 (vcmla_rot270_lane_f16): New.
35034 (vcmla_rot270_laneq_f16): New.
35035 (vcmlaq_rot270_lane_f16): New.
35036 (vcmlaq_rot270_laneq_f16): New.
35037 (vcadd_rot90_f32): New.
35038 (vcaddq_rot90_f32): New.
35039 (vcadd_rot270_f32): New.
35040 (vcaddq_rot270_f32): New.
35043 (vcmla_lane_f32): New.
35044 (vcmla_laneq_f32): New.
35045 (vcmlaq_lane_f32): New.
35046 (vcmlaq_laneq_f32): New.
35047 (vcmla_rot90_f32): New.
35048 (vcmlaq_rot90_f32): New.
35049 (vcmla_rot90_lane_f32): New.
35050 (vcmla_rot90_laneq_f32): New.
35051 (vcmlaq_rot90_lane_f32): New.
35052 (vcmlaq_rot90_laneq_f32): New.
35053 (vcmla_rot180_f32): New.
35054 (vcmlaq_rot180_f32): New.
35055 (vcmla_rot180_lane_f32): New.
35056 (vcmla_rot180_laneq_f32): New.
35057 (vcmlaq_rot180_lane_f32): New.
35058 (vcmlaq_rot180_laneq_f32): New.
35059 (vcmla_rot270_f32): New.
35060 (vcmlaq_rot270_f32): New.
35061 (vcmla_rot270_lane_f32): New.
35062 (vcmla_rot270_laneq_f32): New.
35063 (vcmlaq_rot270_lane_f32): New.
35064 (vcmlaq_rot270_laneq_f32): New.
35065 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35066 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35067 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35068 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35069 vcmlaq_lane270): New.
35070 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35071 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35072 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35073 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35074 (arm_option_reconfigure_globals): Use them.
35075 * config/arm/iterators.md (VDF, VQ_HSF): New.
35076 (VCADD, VCMLA): New.
35077 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35078 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35080 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35081 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35083 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35085 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35086 Add qualifier_lane_pair_index.
35087 (emit-rtl.h): Include.
35088 (TYPES_QUADOP_LANE_PAIR): New.
35089 (aarch64_simd_expand_args): Use it.
35090 (aarch64_simd_expand_builtin): Likewise.
35091 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35093 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35094 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35095 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35096 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35097 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35098 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35099 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35100 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35101 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35102 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35103 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35104 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35105 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35106 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35107 Add __ARM_FEATURE_COMPLEX.
35108 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35109 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35110 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35111 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35112 fcmlaq_lane270): New.
35113 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35114 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35115 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35116 * config/aarch64/arm_neon.h:
35117 (vcadd_rot90_f16): New.
35118 (vcaddq_rot90_f16): New.
35119 (vcadd_rot270_f16): New.
35120 (vcaddq_rot270_f16): New.
35123 (vcmla_lane_f16): New.
35124 (vcmla_laneq_f16): New.
35125 (vcmlaq_lane_f16): New.
35126 (vcmlaq_rot90_lane_f16): New.
35127 (vcmla_rot90_laneq_f16): New.
35128 (vcmla_rot90_lane_f16): New.
35129 (vcmlaq_rot90_f16): New.
35130 (vcmla_rot90_f16): New.
35131 (vcmlaq_laneq_f16): New.
35132 (vcmla_rot180_laneq_f16): New.
35133 (vcmla_rot180_lane_f16): New.
35134 (vcmlaq_rot180_f16): New.
35135 (vcmla_rot180_f16): New.
35136 (vcmlaq_rot90_laneq_f16): New.
35137 (vcmlaq_rot270_laneq_f16): New.
35138 (vcmlaq_rot270_lane_f16): New.
35139 (vcmla_rot270_laneq_f16): New.
35140 (vcmlaq_rot270_f16): New.
35141 (vcmla_rot270_f16): New.
35142 (vcmlaq_rot180_laneq_f16): New.
35143 (vcmlaq_rot180_lane_f16): New.
35144 (vcmla_rot270_lane_f16): New.
35145 (vcadd_rot90_f32): New.
35146 (vcaddq_rot90_f32): New.
35147 (vcaddq_rot90_f64): New.
35148 (vcadd_rot270_f32): New.
35149 (vcaddq_rot270_f32): New.
35150 (vcaddq_rot270_f64): New.
35154 (vcmla_lane_f32): New.
35155 (vcmla_laneq_f32): New.
35156 (vcmlaq_lane_f32): New.
35157 (vcmlaq_laneq_f32): New.
35158 (vcmla_rot90_f32): New.
35159 (vcmlaq_rot90_f32): New.
35160 (vcmlaq_rot90_f64): New.
35161 (vcmla_rot90_lane_f32): New.
35162 (vcmla_rot90_laneq_f32): New.
35163 (vcmlaq_rot90_lane_f32): New.
35164 (vcmlaq_rot90_laneq_f32): New.
35165 (vcmla_rot180_f32): New.
35166 (vcmlaq_rot180_f32): New.
35167 (vcmlaq_rot180_f64): New.
35168 (vcmla_rot180_lane_f32): New.
35169 (vcmla_rot180_laneq_f32): New.
35170 (vcmlaq_rot180_lane_f32): New.
35171 (vcmlaq_rot180_laneq_f32): New.
35172 (vcmla_rot270_f32): New.
35173 (vcmlaq_rot270_f32): New.
35174 (vcmlaq_rot270_f64): New.
35175 (vcmla_rot270_lane_f32): New.
35176 (vcmla_rot270_laneq_f32): New.
35177 (vcmlaq_rot270_lane_f32): New.
35178 (vcmlaq_rot270_laneq_f32): New.
35179 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35180 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35181 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35182 (FCADD, FCMLA): New.
35184 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35186 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35190 * config/pa/pa.c: Change "can not" to "cannot".
35191 * gimple-ssa-evrp-analyze.c: Likewise.
35192 * ipa-icf.c: Likewise.
35193 * ipa-polymorphic-call.c: Likewise.
35194 * ipa-pure-const.c: Likewise.
35195 * lra-constraints.c: Likewise.
35196 * lra-remat.c: Likewise.
35197 * reload1.c: Likewise.
35198 * reorg.c: Likewise.
35199 * tree-ssa-uninit.c: Likewise.
35201 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35205 * Makefile.in: Mechanically replace "can not" with "cannot".
35206 * alias.c: Likewise.
35207 * builtins.c: Likewise.
35208 * calls.c: Likewise.
35209 * cgraph.c: Likewise.
35210 * cgraph.h: Likewise.
35211 * cgraphclones.c: Likewise.
35212 * cgraphunit.c: Likewise.
35213 * combine-stack-adj.c: Likewise.
35214 * combine.c: Likewise.
35215 * common/config/i386/i386-common.c: Likewise.
35216 * config/aarch64/aarch64.c: Likewise.
35217 * config/alpha/sync.md: Likewise.
35218 * config/arc/arc.c: Likewise.
35219 * config/arc/predicates.md: Likewise.
35220 * config/arm/arm-c.c: Likewise.
35221 * config/arm/arm.c: Likewise.
35222 * config/arm/arm.h: Likewise.
35223 * config/arm/arm.md: Likewise.
35224 * config/arm/cortex-r4f.md: Likewise.
35225 * config/csky/csky.c: Likewise.
35226 * config/csky/csky.h: Likewise.
35227 * config/darwin-f.c: Likewise.
35228 * config/epiphany/epiphany.md: Likewise.
35229 * config/i386/i386.c: Likewise.
35230 * config/i386/sol2.h: Likewise.
35231 * config/m68k/m68k.c: Likewise.
35232 * config/mcore/mcore.h: Likewise.
35233 * config/microblaze/microblaze.md: Likewise.
35234 * config/mips/20kc.md: Likewise.
35235 * config/mips/sb1.md: Likewise.
35236 * config/nds32/nds32.c: Likewise.
35237 * config/nds32/predicates.md: Likewise.
35238 * config/pa/pa.c: Likewise.
35239 * config/rs6000/e300c2c3.md: Likewise.
35240 * config/rs6000/rs6000.c: Likewise.
35241 * config/s390/s390.h: Likewise.
35242 * config/sh/sh.c: Likewise.
35243 * config/sh/sh.md: Likewise.
35244 * config/spu/vmx2spu.h: Likewise.
35245 * cprop.c: Likewise.
35246 * dbxout.c: Likewise.
35247 * df-scan.c: Likewise.
35248 * doc/cfg.texi: Likewise.
35249 * doc/extend.texi: Likewise.
35250 * doc/fragments.texi: Likewise.
35251 * doc/gty.texi: Likewise.
35252 * doc/invoke.texi: Likewise.
35253 * doc/lto.texi: Likewise.
35254 * doc/md.texi: Likewise.
35255 * doc/objc.texi: Likewise.
35256 * doc/rtl.texi: Likewise.
35257 * doc/tm.texi: Likewise.
35259 * emit-rtl.c: Likewise.
35260 * emit-rtl.h: Likewise.
35261 * except.c: Likewise.
35262 * expmed.c: Likewise.
35263 * expr.c: Likewise.
35264 * fold-const.c: Likewise.
35265 * genautomata.c: Likewise.
35266 * gimple-fold.c: Likewise.
35267 * hard-reg-set.h: Likewise.
35268 * ifcvt.c: Likewise.
35269 * ipa-comdats.c: Likewise.
35270 * ipa-cp.c: Likewise.
35271 * ipa-devirt.c: Likewise.
35272 * ipa-fnsummary.c: Likewise.
35273 * ipa-icf.c: Likewise.
35274 * ipa-inline-transform.c: Likewise.
35275 * ipa-inline.c: Likewise.
35276 * ipa-polymorphic-call.c: Likewise.
35277 * ipa-profile.c: Likewise.
35278 * ipa-prop.c: Likewise.
35279 * ipa-pure-const.c: Likewise.
35280 * ipa-reference.c: Likewise.
35281 * ipa-split.c: Likewise.
35282 * ipa-visibility.c: Likewise.
35284 * ira-build.c: Likewise.
35285 * ira-color.c: Likewise.
35286 * ira-conflicts.c: Likewise.
35287 * ira-costs.c: Likewise.
35288 * ira-int.h: Likewise.
35289 * ira-lives.c: Likewise.
35292 * loop-invariant.c: Likewise.
35293 * loop-unroll.c: Likewise.
35294 * lower-subreg.c: Likewise.
35295 * lra-assigns.c: Likewise.
35296 * lra-constraints.c: Likewise.
35297 * lra-eliminations.c: Likewise.
35298 * lra-lives.c: Likewise.
35299 * lra-remat.c: Likewise.
35300 * lra-spills.c: Likewise.
35302 * lto-cgraph.c: Likewise.
35303 * lto-streamer-out.c: Likewise.
35304 * postreload-gcse.c: Likewise.
35305 * predict.c: Likewise.
35306 * profile-count.h: Likewise.
35307 * profile.c: Likewise.
35308 * recog.c: Likewise.
35310 * reload.c: Likewise.
35311 * reload1.c: Likewise.
35312 * reorg.c: Likewise.
35313 * resource.c: Likewise.
35314 * rtl.def: Likewise.
35316 * rtlanal.c: Likewise.
35317 * sched-deps.c: Likewise.
35318 * sched-ebb.c: Likewise.
35319 * sched-rgn.c: Likewise.
35320 * sel-sched-ir.c: Likewise.
35321 * sel-sched.c: Likewise.
35322 * shrink-wrap.c: Likewise.
35323 * simplify-rtx.c: Likewise.
35324 * symtab.c: Likewise.
35325 * target.def: Likewise.
35326 * toplev.c: Likewise.
35327 * tree-call-cdce.c: Likewise.
35328 * tree-cfg.c: Likewise.
35329 * tree-complex.c: Likewise.
35330 * tree-core.h: Likewise.
35331 * tree-eh.c: Likewise.
35332 * tree-inline.c: Likewise.
35333 * tree-loop-distribution.c: Likewise.
35334 * tree-nrv.c: Likewise.
35335 * tree-profile.c: Likewise.
35336 * tree-sra.c: Likewise.
35337 * tree-ssa-alias.c: Likewise.
35338 * tree-ssa-dce.c: Likewise.
35339 * tree-ssa-dom.c: Likewise.
35340 * tree-ssa-forwprop.c: Likewise.
35341 * tree-ssa-loop-im.c: Likewise.
35342 * tree-ssa-loop-ivcanon.c: Likewise.
35343 * tree-ssa-loop-ivopts.c: Likewise.
35344 * tree-ssa-loop-niter.c: Likewise.
35345 * tree-ssa-phionlycprop.c: Likewise.
35346 * tree-ssa-phiopt.c: Likewise.
35347 * tree-ssa-propagate.c: Likewise.
35348 * tree-ssa-threadedge.c: Likewise.
35349 * tree-ssa-threadupdate.c: Likewise.
35350 * tree-ssa-uninit.c: Likewise.
35351 * tree-ssanames.c: Likewise.
35352 * tree-streamer-out.c: Likewise.
35353 * tree.c: Likewise.
35354 * tree.h: Likewise.
35355 * vr-values.c: Likewise.
35357 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35359 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35360 (ix86_split_xorsign): Ditto.
35361 * config/i386/i386.c (ix86_expand_xorsign): New function.
35362 (ix86_split_xorsign): Ditto.
35363 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35364 (xorsign<mode>3): New expander.
35365 (xorsign<mode>3_1): New insn_and_split pattern.
35366 * config/i386/sse.md (xorsign<mode>3): New expander.
35368 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35370 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35371 (*tablejump_sp64): Likewise.
35372 (*tablejump<P:mode>): ...this.
35373 (*call_address_sp32): Merge into...
35374 (*call_address_sp64): Likewise.
35375 (*call_address<P:mode>): ...this.
35376 (*call_symbolic_sp32): Merge into...
35377 (*call_symbolic_sp64): Likewise.
35378 (*call_symbolic<P:mode>): ...this.
35379 (call_value): Remove constraint and add predicate.
35380 (*call_value_address_sp32): Merge into...
35381 (*call_value_address_sp64): Likewise.
35382 (*call_value_address<P:mode>): ...this.
35383 (*call_value_symbolic_sp32): Merge into...
35384 (*call_value_symbolic_sp64): Likewise.
35385 (*call_value_symbolic<P:mode>): ...this.
35386 (*sibcall_symbolic_sp32): Merge into...
35387 (*sibcall_symbolic_sp64): Likewise.
35388 (*sibcall_symbolic<P:mode>): ...this.
35389 (sibcall_value): Remove constraint and add predicate.
35390 (*sibcall_value_symbolic_sp32): Merge into...
35391 (*sibcall_value_symbolic_sp64): Likewise.
35392 (*sibcall_value_symbolic<P:mode>): ...this.
35393 (window_save): Minor tweak.
35394 (*branch_sp32): Merge into...
35395 (*branch_sp64): Likewise.
35396 (*branch<P:mode>): ...this.
35398 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35399 James Clarke <jrtc27@jrtc27.com>
35402 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35403 consistently in TLS address generation and adjust code to the renaming
35404 of patterns. Mark calls to __tls_get_addr as const.
35405 * config/sparc/sparc.md (tgd_hi22): Turn into...
35406 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35407 (tgd_lo10): Turn into...
35408 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35409 (tgd_add32): Merge into...
35410 (tgd_add64): Likewise.
35411 (tgd_add<P:mode>): ...this and use Pmode throughout.
35412 (tldm_hi22): Turn into...
35413 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35414 (tldm_lo10): Turn into...
35415 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35416 (tldm_add32): Merge into...
35417 (tldm_add64): Likewise.
35418 (tldm_add<P:mode>): ...this and use Pmode throughout.
35419 (tldm_call32): Merge into...
35420 (tldm_call64): Likewise.
35421 (tldm_call<P:mode>): ...this and use Pmode throughout.
35422 (tldo_hix22): Turn into...
35423 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35424 (tldo_lox10): Turn into...
35425 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35426 (tldo_add32): Merge into...
35427 (tldo_add64): Likewise.
35428 (tldo_add<P:mode>): ...this and use Pmode throughout.
35429 (tie_hi22): Turn into...
35430 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35431 (tie_lo10): Turn into...
35432 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35433 (tie_ld64): Use DImode throughout.
35434 (tie_add32): Merge into...
35435 (tie_add64): Likewise.
35436 (tie_add<P:mode>): ...this and use Pmode throughout.
35437 (tle_hix22_sp32): Merge into...
35438 (tle_hix22_sp64): Likewise.
35439 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35440 (tle_lox22_sp32): Merge into...
35441 (tle_lox22_sp64): Likewise.
35442 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35443 (*tldo_ldub_sp32): Merge into...
35444 (*tldo_ldub_sp64): Likewise.
35445 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35446 (*tldo_ldub1_sp32): Merge into...
35447 (*tldo_ldub1_sp64): Likewise.
35448 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35449 (*tldo_ldub2_sp32): Merge into...
35450 (*tldo_ldub2_sp64): Likewise.
35451 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35452 (*tldo_ldsb1_sp32): Merge into...
35453 (*tldo_ldsb1_sp64): Likewise.
35454 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35455 (*tldo_ldsb2_sp32): Merge into...
35456 (*tldo_ldsb2_sp64): Likewise.
35457 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35458 (*tldo_ldub3_sp64): Use DImode throughout.
35459 (*tldo_ldsb3_sp64): Likewise.
35460 (*tldo_lduh_sp32): Merge into...
35461 (*tldo_lduh_sp64): Likewise.
35462 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35463 (*tldo_lduh1_sp32): Merge into...
35464 (*tldo_lduh1_sp64): Likewise.
35465 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35466 (*tldo_ldsh1_sp32): Merge into...
35467 (*tldo_ldsh1_sp64): Likewise.
35468 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35469 (*tldo_lduh2_sp64): Use DImode throughout.
35470 (*tldo_ldsh2_sp64): Likewise.
35471 (*tldo_lduw_sp32): Merge into...
35472 (*tldo_lduw_sp64): Likewise.
35473 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35474 (*tldo_lduw1_sp64): Use DImode throughout.
35475 (*tldo_ldsw1_sp64): Likewise.
35476 (*tldo_ldx_sp64): Likewise.
35477 (*tldo_stb_sp32): Merge into...
35478 (*tldo_stb_sp64): Likewise.
35479 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35480 (*tldo_sth_sp32): Merge into...
35481 (*tldo_sth_sp64): Likewise.
35482 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35483 (*tldo_stw_sp32): Merge into...
35484 (*tldo_stw_sp64): Likewise.
35485 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35486 (*tldo_stx_sp64): Use DImode throughout.
35488 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35490 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35491 check configure option to set BTI and Return Address Signing.
35492 * configure.ac: Add --enable-standard-branch-protection and
35493 --disable-standard-branch-protection.
35494 * configure: Regenerated.
35495 * doc/install.texi: Document the same.
35497 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35498 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35500 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35501 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35502 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35504 * config/aarch64/aarch64-bti-insert.c: New file.
35505 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35507 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35509 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35510 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35511 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35512 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35514 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35516 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35517 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35518 Disable bti for -mbranch-protection=none.
35519 (aarch64_handle_standard_branch_protection): Enable bti for
35520 -mbranch-protection=standard.
35521 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35522 -mbranch-protection.
35523 (aarch64_bti_enabled): Check if bti is enabled.
35524 * config/aarch64/aarch64.opt: Declare target variable.
35525 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35527 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35529 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35530 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35531 (aarch64_expand_epilogue): Likewise.
35532 (aarch64_output_mi_thunk): Likewise.
35533 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35534 TAILCALL_ADDR_REGS to x16 and x17.
35535 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35537 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35539 * config/aarch64/aarch64-option-extensions.def: Define
35540 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35541 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35542 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35543 (AARCH64_FL_PREDRES): New.
35544 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35545 AARCH64_FL_PREDRES by default.
35546 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35548 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35550 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35552 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35553 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35554 * doc/invoke.texi: Document ARMv8.5-A.
35556 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35558 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35559 (xorsign<mode>3): Likewise.
35561 2019-01-09 Jelinek <jakub@redhat.com>
35563 PR middle-end/88758
35564 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35565 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35567 PR rtl-optimization/88331
35568 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35569 not currently_expanding_to_rtl.
35571 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35573 * doc/invoke.texi (-Os): Remove trailing spaces.
35574 (-finline-functions): Remove reference to -O2.
35576 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35578 PR rtl-optimization/79593
35579 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35581 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35582 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35584 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35587 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35591 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35592 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35594 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35597 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35598 ix86_avx_u128_mode_entry.
35600 2019-01-08 Martin Liska <mliska@suse.cz>
35602 PR tree-optimization/88753
35603 * tree-switch-conversion.c (switch_conversion::build_one_array):
35604 Come up with local variable constructor. Convert first to
35605 type of constructor values.
35607 2019-01-08 Richard Biener <rguenther@suse.de>
35609 PR tree-optimization/86554
35610 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35611 rpo_avail): Move earlier.
35612 (visit_nary_op): When value-numbering to expressions
35613 with different overflow behavior make sure there's an
35614 available expression on the path.
35616 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35618 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35619 aarch64_parse_branch_protection,
35620 struct aarch64_branch_protect_type,
35621 aarch64_handle_no_branch_protection,
35622 aarch64_handle_standard_branch_protection,
35623 aarch64_validate_mbranch_protection,
35624 aarch64_handle_pac_ret_protection,
35625 aarch64_handle_attr_branch_protection,
35626 accepted_branch_protection_string,
35627 aarch64_pac_ret_subtypes,
35628 aarch64_branch_protect_types,
35629 aarch64_handle_pac_ret_leaf): Define.
35630 (aarch64_override_options_after_change_1, aarch64_override_options):
35631 Add check for accepted_branch_protection_string.
35632 (aarch64_option_save): Save accepted_branch_protection_string.
35633 (aarch64_option_restore): Save accepted_branch_protection_string.
35634 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35635 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35636 msign-return-address.
35637 * doc/invoke.texi: Add mbranch-protection.
35639 2019-01-08 Alan Modra <amodra@gmail.com>
35642 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35643 Delete "unknownp" parameter. Adjust callers. Handle
35644 CONST_INT, PLUS, MINUS, and MULT.
35645 (attr_value_aligned): Renamed from or_attr_value.
35646 (min_attr_value): Return INT_MIN for unhandled rtl case..
35647 (min_fn): ..and translate to INT_MAX here.
35648 (write_length_unit_log): Modify to cope without "unknown".
35649 (write_attr_value): Handle IF_THEN_ELSE.
35651 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35653 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35654 optimization for masked stores.
35656 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35658 PR middle-end/88567
35659 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35660 output vector directly to duplicate_and_interleave instead of
35661 going through a temporary. Postpone insertion of ctor_seq to
35662 the end of the loop.
35664 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35667 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35668 unsigned_p. Handle signed and unsigned overflow correction as
35670 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35672 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35674 (add<mode>3_compareV_imm): Make this callable for expanding.
35675 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35676 aarch64_plus_operand for operand 2.
35677 (subv<GPI:mode>_insn): New insn pattern.
35678 (subv<GPI:mode>_imm): Likewise.
35679 (negv<GPI:mode>3): New expand pattern.
35680 (negv<GPI:mode>_insn): New insn pattern.
35681 (negv<GPI:mode>_cmp_only): Likewise.
35682 (cmpv<GPI:mode>_insn): Likewise.
35683 (subvti4): Use register_operand for operand 1. Update call to
35684 aarch64_expand_subvti.
35685 (usubvti4): Likewise.
35686 (negvti3): New expand pattern.
35687 (negdi_carryout): New insn pattern.
35688 (negvdi_carryinV): New insn pattern.
35689 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35690 version the named version.
35691 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35693 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35695 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35697 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35698 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35699 (sub<mode>3_carryinCV): Delete.
35700 (sub<GPI:mode>3_carryinV): New expand pattern.
35701 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35703 2019-01-07 Richard Biener <rguenther@suse.de>
35705 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35706 of tree_operand_hash.
35708 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35710 PR tree-optimization/88598
35711 * tree.h (single_nonzero_element): Declare.
35712 * tree.c (single_nonzero_element): New function.
35713 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35714 if I is the only nonzero element of CST.
35716 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35718 PR tree-optimization/88598
35719 * tree.h (initializer_each_zero_or_onep): Declare.
35720 * tree.c (initializer_each_zero_or_onep): New function.
35721 (signed_or_unsigned_type_for): Handle float types too.
35722 (unsigned_type_for, signed_type_for): Update comments accordingly.
35723 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35724 x & { 0 or -1, 0 or -1, ... }.
35726 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35728 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35729 with x86_64-pc-linux-gnu.
35731 2019-01-07 Tom de Vries <tdevries@suse.de>
35734 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35736 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35739 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35741 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35742 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35743 TARGET_AVX512F as condition.
35746 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35747 const_not_ok_for_debug_p target hook.
35748 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35749 on UNSPEC and subexpressions thereof if all subexpressions of the
35750 UNSPEC are CONSTANT_P.
35752 PR tree-optimization/88676
35753 * tree-ssa-phiopt.c (two_value_replacement): New function.
35754 (tree_ssa_phiopt_worker): Call it.
35757 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35758 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35761 * tree-vect-generic.c: Include insn-config.h and recog.h.
35762 (expand_vector_piecewise): Add defaulted ret_type argument,
35763 if non-NULL, use that in preference to type for the result type.
35764 (expand_vector_parallel): Formatting fix.
35765 (do_vec_conversion, do_vec_narrowing_conversion,
35766 expand_vector_conversion): New functions.
35767 (expand_vector_operations_1): Call expand_vector_conversion
35768 for VEC_CONVERT ifn calls.
35769 * internal-fn.def (VEC_CONVERT): New internal function.
35770 * internal-fn.c (expand_VEC_CONVERT): New function.
35771 * fold-const-call.c (fold_const_vec_convert): New function.
35772 (fold_const_call): Use it for CFN_VEC_CONVERT.
35773 * doc/extend.texi (__builtin_convertvector): Document.
35775 2019-01-07 Tom de Vries <tdevries@suse.de>
35777 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35778 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35779 vector_red_partition, vector_red_sym): New global variables.
35780 (nvptx_option_override): Initialize vector_red_sym.
35781 (nvptx_declare_function_name): Restore red_partition register.
35782 (nvptx_file_end): Emit code to declare the vector reduction variables.
35783 (nvptx_output_red_partition): New function.
35784 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35785 large vector reductions.
35786 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35787 (nvptx_init_builtins): Add VECTOR_ADDR.
35788 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35789 Handle nvptx_expand_shared_addr.
35790 (nvptx_get_shared_red_addr): Add vector argument and handle large
35792 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35794 (nvptx_goacc_reduction_init): Likewise.
35795 (nvptx_goacc_reduction_fini): Likewise.
35796 (nvptx_goacc_reduction_teardown): Likewise.
35797 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35798 init,fini,teardown}.
35799 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35800 (nvptx_set_current_function): Init vector_red_partition.
35801 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35802 (nvptx_red_partition): New insn.
35803 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35805 2019-01-07 Tom de Vries <tdevries@suse.de>
35808 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35811 2019-01-07 Tom de Vries <tdevries@suse.de>
35813 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35814 (nvptx_option_override): Init oacc_bcast_partition.
35815 (nvptx_init_oacc_workers): New function.
35816 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35817 (nvptx_needs_shared_bcast): New function.
35818 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35819 to propagate state.
35820 (nvptx_shared_propagate): Initialize vector bcast partition and
35821 synchronization state.
35822 (nvptx_single): Generalize to enable vectors to use shared-memory
35823 to propagate state.
35824 (nvptx_process_pars): Likewise.
35825 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35826 * config/nvptx/nvptx.h (struct machine_function): Add
35827 bcast_partition and sync_bar members.
35829 2019-01-07 Tom de Vries <tdevries@suse.de>
35831 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35832 (nvptx_apply_dim_limits): New function.
35833 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35836 2019-01-07 Tom de Vries <tdevries@suse.de>
35838 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35839 as late as possible.
35841 2019-01-07 Tom de Vries <tdevries@suse.de>
35843 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35844 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35845 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35846 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35847 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35849 2019-01-07 Tom de Vries <tdevries@suse.de>
35851 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35853 2019-01-07 Tom de Vries <tdevries@suse.de>
35855 * omp-offload.c (oacc_get_min_dim): New function.
35856 * omp-offload.h (oacc_get_min_dim): Declare.
35858 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35861 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35862 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35864 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35868 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35870 * ipa-inline.c (edge_badness): Use inlined_time instead of
35871 inline_summaries->get.
35873 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35875 * opts.c (enable_fdo_optimizations): Enable
35876 version-loops-for-strides, loop-interchange, unrol-and-jam
35877 and tree-loop-distribution.
35878 * invoke.texi: Document newly enabled options.
35880 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35882 * doc/invoke.texi (max-inline-insns-small): New parameters.
35883 * ipa-inline.c (want_early_inline_function_p): simplify.
35884 (want_inline_small_function_p): Fix pasto from previous patch;
35885 use max-inline-insns-small bound.
35886 * params.def (max-inline-insns-small): New param.
35887 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35888 variables correctly.
35890 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35892 * doc/invoke.texi: Document max-inline-insns-size,
35893 uninlined-function-insns, uninlined-function-time,
35894 uninlined-thunk-insns and uninlined-thunk-time.
35895 * params.def: Add max-inline-insns-size,
35896 uninlined-function-insns, uninlined-function-time,
35897 uninlined-thunk-insns and uninlined-thunk-time.
35898 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35900 * ipa-inline.c (can_inline_edge_by_limits_p,
35901 want_inline_small_function_p): Use new parameters.
35903 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35905 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35907 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35909 PR middle-end/82564
35911 * expr.c (expand_assignment): For calls returning VLA structures
35912 if to_rtx is not a MEM, force it into a stack temporary.
35915 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35916 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35917 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35918 subexpressions of both operands.
35919 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35920 subrtxes are CONSTANT_P.
35921 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35922 2018-11-09 changes.
35924 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35926 * params.def (hot-bb-count-ws-permille): Set to 990.
35928 2019-01-04 Martin Sebor <msebor@redhat.com>
35931 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35934 2019-01-04 Martin Sebor <msebor@redhat.com>
35937 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35939 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35941 * gdbinit.in: Turn off pagination for the skip commands, restore
35942 it to previous state afterwards.
35944 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35947 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35948 of GET_MODE (opN) as modes of the libcall arguments.
35950 2019-01-04 Jan Beulich <jbeulich@suse.com>
35952 * config/i386/sse.md
35953 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35954 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35955 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35956 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35957 avx512f_vmcmp<mode>3<round_saeonly_name>,
35958 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35959 avx512f_maskcmp<mode>3,
35960 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35961 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35962 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35963 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35964 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35965 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35966 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35967 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35968 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35969 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35970 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35971 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35972 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35973 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35974 avx512cd_maskb_vec_dup<mode>,
35975 avx512cd_maskw_vec_dup<mode>,
35976 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35977 avx512dq_vmfpclass<mode>,
35978 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35981 2019-01-03 Martin Sebor <msebor@redhat.com>
35983 PR tree-optimization/88659
35984 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35986 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35988 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35989 unaligned vsx and avoid lxvd2x/stxvd2x.
35990 (gen_lvx_v4si_move): New function.
35992 2019-01-03 Tom de Vries <tdevries@suse.de>
35994 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35995 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35997 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35999 2019-01-03 Tom de Vries <tdevries@suse.de>
36001 * config/nvptx/nvptx.c (struct offload_attrs): New.
36002 (populate_offload_attrs): New function. Factor mask extraction out of
36003 nvptx_reorg. Add extraction of dimensions.
36004 (nvptx_reorg): Use populate_offload_attrs.
36006 2019-01-03 Tom de Vries <tdevries@suse.de>
36008 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36009 cases for oacc_min_dims_p and routine_p. Add asserts for
36010 oacc_default_dims_p and offload_region_p.
36012 2019-01-03 Tom de Vries <tdevries@suse.de>
36014 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36015 factored out of ...
36016 (nvptx_goacc_validate_dims): ... here.
36018 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36020 PR tree-optimization/85574
36021 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36023 (struct ssa_equip_hash_traits): Declare.
36024 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36026 2019-01-03 Jakub Jelinek <jakub@redhat.com>
36029 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36030 change it to qualified_type.
36032 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36034 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36035 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36037 2019-01-02 Martin Sebor <msebor@redhat.com>
36038 Jeff Law <law@redhat.com>
36040 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36041 (get_range_strlen_tree): Update appropriately.
36043 * gimple-fold.h (get_range_strlen): Drop unused last argument.
36045 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36046 rather than set_range_info.
36047 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36048 maybe_set_strlen_range. Handle potentially boundary crossing
36049 cases more conservatively.
36050 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36051 Call set_strlen_range.
36052 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36054 PR middle-end/88663
36055 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36056 need the flexp argument.
36057 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36058 from calls to get_range_strlen. Update comments. Just update
36059 VAL for an unterminated const char array and let the reset of the
36060 code handle it normally. No longer try to set *flexp. Adjust
36062 (get_range_strlen): Update for the new get_range_strlen API.
36063 (get_maxval_strlen): Similarly.
36064 (gimple_fold_builtin_strlen): Handle update meaning of return value
36065 from get_range_strlen.
36066 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36067 get_range_strlen API.
36069 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36072 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36073 false at WPA time when body was removed.
36075 2019-01-02 Martin Liska <mliska@suse.cz>
36077 PR tree-optimization/88650
36078 * predict.c (set_even_probabilities): Calculate probability
36079 remainer only when really used.
36081 2019-01-02 Richard Biener <rguenther@suse.de>
36083 PR middle-end/88651
36084 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36085 widest_ints when mangling max_stmt_execution results.
36087 2019-01-02 Richard Biener <rguenther@suse.de>
36089 PR tree-optimization/88621
36090 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36091 bitfields when canoncalizing.
36093 2019-01-02 Richard Biener <rguenther@suse.de>
36096 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36097 cost of cheap SSE instruction.
36099 2019-01-02 Richard Biener <rguenther@suse.de>
36102 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36103 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36105 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36106 set after UIDs before splitting them.
36108 2019-01-01 Martin Sebor <msebor@redhat.com>
36109 Jeff Law <law@redhat.com>
36111 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36112 length is optimistic. If it is, then arrange to compute the
36113 conservative length as well.
36115 * gimple-fold.h (get_range_strlen): Update prototype.
36116 * builtins.c (check_access): Update call to get_range_strlen to use
36117 c_strlen_data pointer. Change various variable accesses to instead
36118 pull data from the c_strlen_data structure.
36119 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36120 * calls.c (maybe_warn_nonstring_arg): Likewise.
36121 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36122 minimum length if maximum lengh is unknown.
36123 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36124 that used c_strlen, it's no longer needed. Restructure slightly.
36125 (format_string): Set unlikely range appropriately.
36126 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36128 (get_range_strlen): Accept c_strlen_data pointer for external
36129 call sites as well. Pass through to call to internal get_range_strlen.
36130 Adjust minlen, maxlen and maxbound as needed.
36131 (get_maxval_strlen): Update comments.
36132 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36133 to use c_strlen_data pointer. Change variable accesses to instead
36134 use c_strlen_data data members.
36136 * gimple-fold.c (get_range_strlen): Update prototype.
36137 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36138 local variables. Use pdata to return information to caller.
36139 Update calls to get_range_strlen. Update pdata->maxbound.
36140 (get_range_strlen -- static version): Similarly.
36141 (get_range_strlen -- extern version): Update for internal
36142 get_range_strlen API change. Convert to external data format.
36143 (get_maxval_strlen): Similarly.
36145 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36147 * coverage.c (get_coverage_counts): Use current_function_decl.
36148 * profile.c (read_thunk_profile): New function.
36149 (branch_prob): Add THUNK parameter.
36150 * tree-profile.c (tree_profiling): Handle thunks.
36151 * value-prof.c (init_node_map): Handle thunks.
36152 * value-prof.h (branch_prob): Upate prototype.
36153 (read_thunk_profile): Declare.
36155 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36157 Update copyright years.
36159 * gcc.c (process_command): Update copyright notice dates.
36160 * gcov-dump.c (print_version): Ditto.
36161 * gcov.c (print_version): Ditto.
36162 * gcov-tool.c (print_version): Ditto.
36163 * gengtype.c (create_file): Ditto.
36164 * doc/cpp.texi: Bump @copying's copyright year.
36165 * doc/cppinternals.texi: Ditto.
36166 * doc/gcc.texi: Ditto.
36167 * doc/gccint.texi: Ditto.
36168 * doc/gcov.texi: Ditto.
36169 * doc/install.texi: Ditto.
36170 * doc/invoke.texi: Ditto.
36172 Copyright (C) 2019 Free Software Foundation, Inc.
36174 Copying and distribution of this file, with or without modification,
36175 are permitted in any medium without royalty provided the copyright
36176 notice and this notice are preserved.