Use PLI to load up large constants if -mcpu=future.
[official-gcc.git] / gcc / ChangeLog
blob233771c4f83497d1712429ee4b932ec214ee03de
1 2019-12-17  Michael Meissner  <meissner@linux.ibm.com>
3         * config/rs6000/rs6000.c (num_insns_constant_gpr): Return 1 if the
4         constant can be loaded with PLI if -mcpu=future.
5         * config/rs6000/rs6000.md (movdi_internal64): Add alternative to
6         use PLI to load up 34-bit constants if -mcpu=future.
8 2019-12-17  Jakub Jelinek  <jakub@redhat.com>
10         PR target/92841
11         * config/i386/i386.md (@stack_protect_set_1_<mode>,
12         @stack_protect_test_1_<mode>): Use output_asm_insn.
13         (*stack_protect_set_2_<mode>, *stack_protect_set_3): New define_insns
14         and corresponding define_peephole2s.
16 2019-12-17  Jan Hubicka  <hubicka@ucw.cz>
18         * symtab.c (symtab_node::get_partitioning_class): Aliases of external
19         symbols are external.
21 2019-12-17  Christophe Lyon  <christophe.lyon@linaro.org>
23         * config/arm/arm-protos.h (thumb1_gen_const_int): Add new prototype.
24         * config/arm/arm.c (arm_option_check_internal): Remove restriction
25         on MOVT for -mpure-code.
26         (thumb1_gen_const_int): New function.
27         (thumb1_legitimate_address_p): Support -mpure-code.
28         (thumb1_rtx_costs): Likewise.
29         (thumb1_size_rtx_costs): Likewise.
30         (arm_thumb1_mi_thunk): Likewise.
31         * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Likewise.
32         * config/arm/thumb1.md (thumb1_movsi_symbol_ref): New.
33         (*thumb1_movhf): Support -mpure-code.
34         * doc/invoke.texi (-mpure-code): Remove restriction on MOVT.
36 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
38         * tree-vect-loop.c (vect_create_epilog_for_reduction): Mention pr92772
39         in the comments.
41 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
43         * config/gcn/gcn-valu.md (extract_last_<mode>): New expander.
44         (fold_extract_last_<mode>): New expander.
46 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
48         * config/gcn/gcn.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
49         (CTZ_DEFINED_VALUE_AT_ZERO): Define.
50         * config/gcn/gcn.md (s_mnemonic): Add clz and ctz.
51         (expander): Likewise.
52         (countzeros): New code iterator.
53         (<expander>si2): New insn pattern.
54         (<expander>di2): New insn pattern.
56 2019-12-17  Jakub Jelinek  <jakub@redhat.com>
58         PR target/92962
59         * common/config/i386/i386-common.c (processor_alias_table): Formatting
60         fixes.
61         * doc/invoke.texi (bdver3, bdver4, znver1): Add missing closing paren.
62         (znver2): Likewise.  Add RDPID and WBNOINVD, remove spurious comma
63         before CLWB.
65 2019-12-17  Hongyu Wang  <hongyu.wang@intel.com>
67         PR target/92651
68         * config/i386/i386.h (TARGET_EXPAND_ABS): New macro.
69         * config/i386/x86-tune.def (X86_TUNE_EXPAND_ABS): New.
70         * config/i386/i386.md (abs<SWI48x>2): New define_expand.
72 2019-12-17  H.J. Lu  <hjl.tools@gmail.com>
74         PR target/92807
75         * config/i386/i386.c (ix86_lea_outperforms): Check !TARGET_BONNELL.
76         (ix86_avoid_lea_for_addr): When not optimizing for Bonnell, use add
77         for a = a + b and a = b + a.
79 2019-12-16  Martin Sebor  <msebor@redhat.com>
81         PR middle-end/92952
82         * builtins.c (compute_objsize): Adjust offset by the array low bound.
84 2019-12-16  David Malcolm  <dmalcolm@redhat.com>
86         * pretty-print.c (pp_write_text_as_html_like_dot_to_stream): New
87         function.
88         * pretty-print.h (pp_write_text_as_html_like_dot_to_stream): New decl.
90 2019-12-16  Segher Boessenkool  <segher@kernel.crashing.org>
92         * config/rs6000/rs6000.md (movsi_to_cr_one): Use CR0_REGNO instead of
93         hardcoding the (old, expired) register number.
94         (*mtcrfsi): Ditto.
96 2019-12-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
98         * config.gcc: s/msp430*-*-*/msp430-*-*.
99         Handle msp430-*-elfbare.
100         * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define.
101         (_MSPMKSTR): Define.
102         (__MSPMKSTR): Define.
103         (rest_of_devices_path): Use TARGET_SUBDIR value in string.
104         * config/msp430/msp430.c (msp430_option_override): Error if
105         -fuse-cxa-atexit is used when it has been disabled at configure time.
106         * config/msp430/t-msp430: Define TARGET_SUBDIR when building
107         msp430-devices.o.
108         * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare.
109         * doc/invoke.texi: Update documentation about which path devices.csv is
110         searched for.
112 2019-12-16  Andreas Krebbel  <krebbel@linux.ibm.com>
114         PR target/92950
115         * config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
116         and lhrl with llc.
118 2019-12-14  Martin Sebor  <msebor@redhat.com>
120         * doc/extend.texi (attribute access): Correct typos.
122 2019-12-14  Jakub Jelinek  <jakub@redhat.com>
124         PR ipa/92357
125         * ipa-fnsummary.c (ipa_fn_summary_write): Use
126         lto_symtab_encoder_iterator with lsei_start_function_in_partition and
127         lsei_next_function_in_partition instead of walking all cgraph nodes
128         in encoder.
130         PR tree-optimization/92930
131         * ipa-pure-const.c (special_builtin_state): Don't handle
132         BUILT_IN_APPLY.  Formatting fixes.
133         (check_call): Formatting fixes.
135 2019-12-14  Iain Sandoe  <iain@sandoe.co.uk>
137         * config/darwin.h (DARWIN_EXTRA_SPECS): Add new
138         bundle spec. (DARWIN_BUNDLE1_SPEC): New.
139         (STARTFILE_SPEC): Use darwin bundle spec.
140         * config/rs6000/darwin.h (DARWIN_BUNDLE1_SPEC): New.
141         (DARWIN_DYLIB1_SPEC): Delete duplicate.
143 2019-12-13  Martin Sebor  <msebor@redhat.com>
145         PR middle-end/91582
146         PR middle-end/92868
147         * builtins.c (addr_decl_size): New function.
148         (gimple_call_alloc_size): Add arguments.
149         (compute_objsize): Add an argument.  Set *PDECL even for allocated
150         objects.
151         Correct checking for negative wide_int.
152         Correct handling of negative outer offsets into unknown regions
153         or with unknown inner offsets.
154         Extend offsets to at most sizetype precision.
155         Only handle constant subobject sizes.
156         * builtins.h (gimple_call_alloc_size): Add arguments.
157         * tree.c (component_ref_size): Always return sizetype.
158         * tree-ssa-strlen.c (strinfo::alloc): New member.
159         (get_addr_stridx): Add argument.
160         (get_stridx): Use ptrdiff_t.  Add argument.
161         (new_strinfo): Set new member.
162         (get_string_length): Handle alloca and VLA.
163         (dump_strlen_info): Dump more state.
164         (maybe_invalidate): Print more info.  Decrease indentation.
165         (unshare_strinfo): Set new member.
166         (valid_builtin_call): Handle alloca and VLA.
167         (maybe_warn_overflow): Check and set no-warning bit.  Improve
168         handling of offsets.  Print allocated objects.
169         (handle_builtin_strlen): Handle strinfo records with null lengths.
170         (handle_builtin_strcpy): Add argument.  Call maybe_warn_overflow.
171         (is_strlen_related_p): Handle dynamically allocated objects.
172         (get_range): Add argument.
173         (handle_builtin_malloc): Rename...
174         (handle_alloc): ...to this and handle all allocation functions.
175         (handle_builtin_memset): Call maybe_warn_overflow.
176         (count_nonzero_bytes): Handle more MEM_REF forms.
177         (strlen_check_and_optimize_call): Call handle_alloc_call.  Pass
178         arguments to more callees.
179         (handle_integral_assign): Add argument.  Create strinfo entries
180         for MEM_REF assignments.
181         (check_and_optimize_stmt): Handle more MEM_REF forms.
183 2019-12-13  Iain Sandoe  <iain@sandoe.co.uk>
185         * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
187 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
189         * lto-streamer-in.c (input_function): Add node parameter.
190         (lto_read_body_or_constructor): Use it.
192 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
194         PR rtl-optimization/92591
195         * modulo-sched.c (ps_add_node_check_conflicts): Improve checking
196         for history > 0 case.
198 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
200         * modulo-sched.c (sms_schedule): Use param_sms_max_ii_factor
201         value instead of macro.  Adjust comment.
202         (sms_schedule_by_order): Use parameter value without macro.
203         * params.opt: Add ranges for modulo scheduler parameters,
204         set param_sms_max_ii_factor = 2 by default.
206 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
208         PR rtl-optimization/90001
209         * ddg.c (create_ddg): Init max_dist array for each node.
210         (free_ddg): Free max_dist array.
211         (create_ddg_edge): Use bool field instead of aux union.
212         (set_recurrence_length): Use prepared max_dist information instead
213         of calling longest_simple_path.
214         (create_scc): Remove graph argument, fill node's aux.count with
215         SCC id, and move set_recurrence_length call to...
216         (create_ddg_all_sccs): ...here, after filling all max_dist arrays
217         using Floyd–Warshall-like algorithm.
218         (update_dist_to_successors): Remove the whole function.
219         (longest_simple_path): Likewise.
220         * ddg.h (struct ddg_node): Add max_dist pointer.
221         (struct ddg_edge): Use bool field instead of unused aux union.
223 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
225         * config/gcn/gcn-valu.md (mulv64si3<exec>): Rename to ...
226         (mul<mode>3<exec>): ... this, and implement sub-dword patterns.
227         (mulv64si3_dup<exec>): Rename to ...
228         (mul<mode>3_dup<exec>): ... this, and implement sub-dword patterns.
230 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
232         * ipa-utils.c (ipa_merge_profiles): Improve dumping; merge common
233         targets.
235 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
237         * config/gcn/gcn-valu.md (sdwa): New mode attribute.
238         (VCVT_FROM_MODE): Rename to ...
239         (VCVT_MODE): ... this.
240         (VCVT_TO_MODE): Delete mode iterator.
241         (VCVT_FMODE): New mode iterator.
242         (VCVT_IMODE): Likewise.
243         (<cvt_name><VCVT_FROM_MODE:mode><VCVT_TO_MODE:mode>2<exec>): Change ...
244         (<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): ... to this.
245         (<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): New.
246         (zero_convert): New code iterator.
247         (convop): New code attribute.
248         (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
249         : New.
250         (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
251         : New.
252         (vec_truncatev64div64si): Rename to ...
253         (truncv64di<mode>2): ... this and implement sub-dword patterns.
254         (vec_truncatev64div64si_exec): Rename to ...
255         (truncv64di<mode>2_exec): ... this and implement sub-dword patterns.
256         (<convop><mode>v64di2): New insn_and_split.
257         (<convop><mode>v64di2_exec): Likewise.
258         (mask_gather_load<mode>): Update truncate names.
259         (mask_scatter_store<mode>): Likewise.
260         * config/gcn/gcn.c (gcn_expand_scaled_offsets): Update truncate names.
262 2019-12-13  Dennis Zhang  <dennis.zhang@arm.com>
264         * config/aarch64/aarch64-arches.def (armv8.6-a): New.
265         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
266         __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC and
267         __ARM_FEATURE_BF16_SCALAR_ARITHMETIC when enabled.
268         * config/aarch64/aarch64-option-extensions.def (i8mm, bf16): New.
269         (fp): Disabling fp also disables i8mm and bf16.
270         (simd): Disabling simd also disables i8mm.
271         * config/aarch64/aarch64.h (AARCH64_FL_V8_6): New macro.
272         (AARCH64_FL_I8MM, AARCH64_FL_BF16, AARCH64_FL_FOR_ARCH8_6): Likewise.
273         (AARCH64_ISA_V8_6, AARCH64_ISA_I8MM, AARCH64_ISA_BF16): Likewise.
274         (TARGET_I8MM, TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
275         * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options
276         and add a new table to list permissible values for ARCH.
278 2019-12-13  Jakub Jelinek  <jakub@redhat.com>
280         PR target/92908
281         * simplify-rtx.c (simplify_relational_operation): Punt for vector
282         cmp_mode and scalar mode, if simplify_relational_operation returned
283         const_true_rtx.
284         (simplify_const_relational_operation): Change VOID_mode in function
285         comment to VOIDmode.
287 2019-12-13  Kewen Lin  <linkw@gcc.gnu.org>
289         * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
290         (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
291         stmt_cost.
293 2019-12-12  Jakub Jelinek  <jakub@redhat.com>
295         PR target/92904
296         * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
297         not need_temp, decrease alignment of the read because the GPR save
298         area only guarantees 8-byte alignment.
300 2019-12-12  Georg-Johann Lay  <avr@gjlay.de>
302         Add support for some more AVR devices from avrxmega3 family.
304         * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
305         (attiny402, attiny404, attiny406)
306         (attiny804, attiny806, attiny807)
307         (attiny202, attiny204): Add AVR_MCU lines to support them.
308         * doc/avr-mmcu.texi: Regenerate.
310 2019-12-12  Jan Hubicka  <hubicka@ucw.cz>
312         * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
313         of execution of function call parameters.
315 2019-12-12  Vineet Gupta  <vgupta@synopsys.com>
317         * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
318         helps codegen generate exceptions even for quiet NaN.
319         * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
320         (get_arc_condition_code): Likewise.
321         (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
322         * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
323         * config/arc/predicates.md (proper_comparison_operator): Likewise.
324         * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
325         (cmpdf_fpu_trap): Likewise.
327 2019-12-12  Claudiu Zissulescu  <claziss@synopsys.com>
329         * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
330         (cstoredi4): Use TARGET_HARD_FLOAT.
332 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
334         * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
335         entry from -O3 or later section to -O2 or later section.
336         * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
337         option is enabled by default at -O2+ rather than just at -O3.
339         PR target/92723
340         * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
341         vect_internal_def, use oprnd1 as is, without trying to cast it.
342         Formatting fix.
344 2019-12-11  Martin Sebor  <msebor@redhat.com>
346         * builtins.c (compute_objsize): Add an argument and set it to offset
347         into destination.
348         * builtins.h (compute_objsize): Add an argument.
349         * tree-object-size.c (addr_object_size): Add an argument and set it
350         to offset into destination.
351         (compute_builtin_object_size): Same.
352         * tree-object-size.h (compute_builtin_object_size): Add an argument.
353         * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
354         to offset into destination.
355         (maybe_warn_overflow): New function.
356         (handle_store): Call maybe_warn_overflow to issue warnings.
358 2019-12-11  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
360         * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
361         crtbegin_no_eh.o if building for the C language.
362         [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
363         except C.
364         (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for 
365         the C language.
366         [fno-exceptions]: Use crtend_no_eh.o if building for any language
367         except C.
368         * config/msp430/t-msp430: Add -fno-exceptions multilib.
369         * doc/install.texi: Document --disable-no-exceptions multilib configure
370         option.
371         * doc/sourcebuild.texi: Document exceptions_enabled effective target.
373 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
375         * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
376         (pretty_printer::clone): New vfunc implementation.
377         * pretty-print.h (format_postprocessor::clone): New pure vfunc
378         decl.
379         (pretty_printer::pretty_printer): New copy-ctor decl.
380         (pretty_printer::clone): New vfunc decl.
382 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
384         * function-tests.c (selftest::make_fndecl): Make non-static.
385         * selftest.h (selftest::make_fndecl): New decl.
387 2019-12-11  Lewis Hyatt  <lhyatt@gmail.com>
389         PR 91853
390         * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
391         multibyte input.  Fix off-by-one-bug printing the last byte before a
392         hex-escaped output.
393         (pp_character): Don't apply line wrapping in the middle of multibyte
394         characters.
395         (test_utf8): New test.
396         (pretty_print_c_tests): Call the new test.
398 2019-12-11  Richard Earnshaw  <rearnsha@arm.com>
400         * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
401         (ALL_SIMD): Use it.
402         (ALL_FPU_EXTERNAL): New fgroup.
403         (ALL_FP): Use it.
404         (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
405         +simd from architecture specification.
406         (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
407         * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
408         (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
409         (isa_all_fpbits): New bitmap.
410         (arm_option_override): Initialize it.
411         (arm_configure_build_target): If the target isa does not have any
412         FP enabled, do not warn about mismatches in FP-related feature bits.
414 2019-12-11  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
416         * real.c (struct arm_bfloat_half_format,
417         encode_arm_bfloat_half, decode_arm_bfloat_half): New.
418         * real.h (arm_bfloat_half_format): New.
420 2019-12-11  Hongtao Liu  <hongtao.liu@intel.com>
422         PR target/92865
423         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
424         integer mask cmov when available even with TARGET_XOP.
426 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
428         PR tree-optimization/92891
429         * builtins.c (gimple_call_alloc_size): Convert size to sizetype
430         before returning it.
432 2019-12-10  Vladimir Makarov  <vmakarov@redhat.com>
434         PR rtl-optimization/92796
435         * lra-int.h (lra_risky_transformations_p): Rename to
436         check_and_force_assignment_correctness_p.
437         * lra-assigns.c: Ditto.
438         (lra_assign): Reset check_and_force_assignment_correctness_p.
439         * lra-constraints.c (lra_risky_transformations_p): Rename to
440         check_and_force_assignment_correctness_p.
441         (lra_constraints): Set up check_and_force_assignment_correctness_p
442         only for the 1st sub-pass.
443         * lra-eliminations.c (process_insn_for_elimination): Set up
444         check_and_force_assignment_correctness_p if the insn chnaged its
445         code.
447 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
449         PR rtl-optimization/92882
450         * regstat.c (regstat_bb_compute_calls_crossed): Don't check
451         INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
452         NONDEBUG_INSN_P.
454         PR ipa/92883
455         * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
456         than *jfunc->m_vr to intersect.  Formatting fix.
458         PR middle-end/92825
459         * cfgexpand.c (add_stack_protection_conflicts): Change return type
460         from void to bool, return true if at least one stack_vars[i].decl
461         is addressable.
462         (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
463         (expand_used_vars): Don't call stack_protect_decl_p, instead for
464         -fstack-protector-strong set gen_stack_protect_signal to true
465         if add_stack_protection_conflicts returned true.  Formatting fixes.
466         * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
467         out variables or variables not living on the stack don't count.
468         (-fstack-protector): Likewise.  Clarify it affects >= 8 byte arrays
469         rather than > 8 byte.
471         * ipa-param-manipulation.c
472         (ipa_param_body_adjustments::register_replacement): Fix comment typo
473         - accross -> across.
474         * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
475         Likewise.
476         (param_splitting_across_edge): Fix typo in dump message - accross
477         -> across.
479 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
481         * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
482         * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
483         * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
484         (expand_all_functions): First expand ordered section and then
485         unordered.
486         * profile.c (compute_value_histograms): Error on out of range
487         tp_first_runs.
489 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
491         * predict.c (compute_function_frequency): Check for presence of IPA
492         profile.
494 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
496         * varasm.c (default_function_section): Fix confused tests for
497         tp_first_run reordering.
499 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
501         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
502         allow SVE modes in GPRs.
504 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
506         * config/aarch64/iterators.md (vccore): New iterator.
507         * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
508         of vwcore.
509         (*vec_series<mode>_plus): Likewise.
511 2019-12-10  Frederik Harwath  <frederik@codesourcery.com>
513         * omp-low.c (scan_omp_for): Use clause location in warning.
515 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
517         * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
518         (add_const_value_attribute): Likewise.
520 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
522         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
523         handling direct_slp_reduc, allow the PHI arguments to have
524         a different type from the vector elements.
526 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
528         * tree-vect-stmts.c (vectorizable_condition): Record the loop
529         masks required for extract-last reductions.
531 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
533         * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
534         original scalar statement rather than a pattern statement.
535         (vectorizable_condition): Likewise, in the handling of extract-last
536         reductions.
538 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
540         * tree-vect-loop.c (vectorizable_reduction): Don't use
541         EXTRACT_LAST_REDUCTION for chained reductions.
543 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
545         * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
546         * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
547         second demangled name.
549 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
551         * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
553 2019-12-10  Martin Liska  <mliska@suse.cz>
555         PR tree-optimization/92862
556         * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
557         * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
558         instead of true;
560 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
562         * gcc-rich-location.c
563         (maybe_range_label_for_tree_type_mismatch::get_text): Replace
564         label_text ctor call with label_text::borrow.
565         * gcc-rich-location.h (text_range_label::get_text): Replace
566         label_text ctor called with false with label_text::borrow.
568 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
570         * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
571         newline.
572         (selftest::test_diagnostic_show_locus_unknown_location): Remove
573         initial newline from expected outputs.
574         (selftest::test_one_liner_simple_caret): Likewise.
575         (selftest::test_one_liner_caret_and_range): Likewise.
576         (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
577         (selftest::test_one_liner_fixit_insert_before): Likewise.
578         (selftest::test_one_liner_fixit_insert_after): Likewise.
579         (selftest::test_one_liner_fixit_remove): Likewise.
580         (selftest::test_one_liner_fixit_replace): Likewise.
581         (selftest::test_one_liner_fixit_replace_non_equal_range):
582         Likewise.
583         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
584         Likewise.
585         (selftest::test_one_liner_fixit_validation_adhoc_locations):
586         Likewise.
587         (selftest::test_one_liner_many_fixits_1): Likewise.
588         (selftest::test_one_liner_many_fixits_2): Likewise.
589         (selftest::test_one_liner_labels): Likewise.
590         (selftest::test_one_liner_simple_caret_utf8): Likewise.
591         (selftest::test_one_liner_caret_and_range_utf8): Likewise.
592         (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
593         Likewise.
594         (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
595         (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
596         (selftest::test_one_liner_fixit_remove_utf8): Likewise.
597         (selftest::test_one_liner_fixit_replace_utf8): Likewise.
598         (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
599         Likewise.
600         (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
601         Likewise.
602         (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
603         Likewise.
604         (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
605         (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
606         (selftest::test_one_liner_labels_utf8): Likewise.
607         (selftest::test_add_location_if_nearby): Likewise.
608         (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
609         (selftest::test_overlapped_fixit_printing): Likewise.
610         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
611         (selftest::test_overlapped_fixit_printing_2): Likewise.
612         (selftest::test_fixit_insert_containing_newline): Likewise.
613         (selftest::test_fixit_insert_containing_newline_2): Likewise.
614         (selftest::test_fixit_replace_containing_newline): Likewise.
615         (selftest::test_fixit_deletion_affecting_newline): Likewise.
616         (selftest::test_line_numbers_multiline_range): Likewise.
617         * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
618         before call to diagnostic_show_locus.
619         (diagnostic_append_note): Likewise.
621 2019-12-09  Martin Sebor  <msebor@redhat.com>
623         PR middle-end/92761
624         PR middle-end/92762
625         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
626         up tests.
627         * hash-table.h (hash_table::expand): Use placement new to copy
628         construct objects in uninitialized storage.
629         (hash_table::empty_slow): Avoid invoking copy assignment on
630         uninitialized objects.
632 2019-12-09  Lewis Hyatt  <lhyatt@gmail.com>
634         PR preprocessor/49973
635         * input.c (location_compute_display_column): New function to help with
636         multibyte awareness in diagnostics.
637         (test_cpp_utf8): New self-test.
638         (input_c_tests): Call the new test.
639         * input.h (location_compute_display_column): Declare.
640         * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
641         to all classes and functions.
642         (enum column_unit): New enum.
643         (class exploc_with_display_col): New class.
644         (class layout_point): Convert m_column member to array m_columns[2].
645         (layout_range::contains_point): Add col_unit argument.
646         (test_layout_range_for_single_point): Pass new argument.
647         (test_layout_range_for_single_line): Likewise.
648         (test_layout_range_for_multiple_lines): Likewise.
649         (line_bounds::convert_to_display_cols): New function.
650         (layout::get_state_at_point): Add col_unit argument.
651         (make_range): Use empty filename rather than dummy filename.
652         (get_line_width_without_trailing_whitespace): Rename to...
653         (get_line_bytes_without_trailing_whitespace): ...this.
654         (test_get_line_width_without_trailing_whitespace): Rename to...
655         (test_get_line_bytes_without_trailing_whitespace): ...this.
656         (class layout): m_exploc changed to exploc_with_display_col from
657         plain expanded_location.
658         (layout::get_linenum_width): New accessor member function.
659         (layout::get_x_offset_display): Likewise.
660         (layout::calculate_linenum_width): New subroutine for the constuctor.
661         (layout::calculate_x_offset_display): Likewise.
662         (layout::layout): Use the new subroutines. Add multibyte awareness.
663         (layout::print_source_line): Add multibyte awareness.
664         (layout::print_line): Likewise.
665         (layout::print_annotation_line): Likewise.
666         (line_label::line_label): Likewise.
667         (layout::print_any_labels): Likewise.
668         (layout::annotation_line_showed_range_p): Likewise.
669         (get_printed_columns): Likewise.
670         (class line_label): Rename m_length to m_display_width.
671         (get_affected_columns): Rename to...
672         (get_affected_range): ...this; add col_unit argument and multibyte
673         awareness.
674         (class correction): Add m_affected_bytes and m_display_cols
675         members.  Rename m_len to m_byte_length for clarity.  Add multibyte
676         awareness throughout.
677         (correction::insertion_p): Add multibyte awareness.
678         (correction::compute_display_cols): New function.
679         (correction::ensure_terminated): Use new member name m_byte_length.
680         (line_corrections::add_hint): Add multibyte awareness.
681         (layout::print_trailing_fixits): Likewise.
682         (layout::get_x_bound_for_row): Likewise.
683         (test_one_liner_simple_caret_utf8): New self-test analogous to the one
684         with _utf8 suffix removed, testing multibyte awareness.
685         (test_one_liner_caret_and_range_utf8): Likewise.
686         (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
687         (test_one_liner_fixit_insert_before_utf8): Likewise.
688         (test_one_liner_fixit_insert_after_utf8): Likewise.
689         (test_one_liner_fixit_remove_utf8): Likewise.
690         (test_one_liner_fixit_replace_utf8): Likewise.
691         (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
692         (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
693         (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
694         (test_one_liner_many_fixits_1_utf8): Likewise.
695         (test_one_liner_many_fixits_2_utf8): Likewise.
696         (test_one_liner_labels_utf8): Likewise.
697         (test_diagnostic_show_locus_one_liner_utf8): Likewise.
698         (test_overlapped_fixit_printing_utf8): Likewise.
699         (test_overlapped_fixit_printing): Adapt for changes to
700         get_affected_columns, get_printed_columns and class corrections.
701         (test_overlapped_fixit_printing_2): Likewise.
702         (test_linenum_sep): New constant.
703         (test_left_margin): Likewise.
704         (test_offset_impl): Helper function for new test.
705         (test_layout_x_offset_display_utf8): New test.
706         (diagnostic_show_locus_c_tests): Call new tests.
708 2019-12-09  Eric Botcazou  <ebotcazou@adacore.com>
710         * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
711         TYPE_CANONICAL from the element type only if it is true.  Remove a few
712         obsolete lines and adjust recursive call.
713         (fld_process_array_type): Adjust call to build_array_type_1.
714         (build_array_type): Likewise.
715         (build_nonshared_array_type): Likewise.
717 2019-12-09  Andrew Stubbs  <ams@codesourcery.com>
719         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
720         %s to %o in asm output.
721         (gather<mode>_insn_2offsets<exec>): Likewise.
723 2019-12-09  Richard Earnshaw  <rearnsha@arm.com>
725         * config/arm/t-multilib: Use arm->thumb multilib reuse rules
726         on a-profile.
728 2019-12-09  Segher Boessenkool  <segher@kernel.crashing.org>
730         * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
731         set<mode>_cc.
732         (unnamed define_insn_and_split): Delete.
733         (unnamed define_insn): Delete.
734         (unnamed define_insn): Delete.
735         (unnamed define_split): Delete.
737 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
739         * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
740         avoid a warning.
742 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
744         PR middle-end/92410
745         * bb-reorder.c (pass_reorder_blocks::execute): Recompute
746         dataflow luids once basic blocks have been reordered.
747         * haifa-sched.c (reemit_notes): Create df insn record for each
748         new note.
749         * regstat.c (regstat_bb_compute_calls_crossed): Assert every
750         insn has an insn record before trying to use it.
752 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
754         * common/config/i386/i386-common.c
755         (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
756         OPTION_MASK_ISA2_AVX5124FMAPS_SET.
757         (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
758         OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
759         OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
760         OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
761         OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
762         OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
763         OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
764         OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
765         OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
766         OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
767         OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
768         OPTION_MASK_ISA_AVX512BF16_UNSET,
769         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
770         OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
771         OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
772         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
773         OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
774         OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
775         OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
776         OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
777         OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
778         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
779         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
780         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
781         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
782         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
783         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
784         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
785         OPTION_MASK_ISA_ENQCMD): Ditto.
786         * config/i386/i386-builtin.def
787         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
788         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
789         OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
790         OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
791         OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
792         * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
793         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
794         OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
795         * config/i386/i386-c.c
796         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
797         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
798         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
799         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
800         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
801         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
802         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
803         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
804         OPTION_MASK_ISA_ENQCMD): Ditto.
805         * config/i386/i386-option.c: Ditto
806         * config/i386/i386.opt: Ditto..
807         * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
808         TARGET_ISA_AVX5124VNNIW,  TARGET_ISA_AVX512BF16,
809         TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
810         TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
811         TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
812         TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
813         TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
814         TARGET_ISA_ENQCMD): Ditto.
816 2019-12-09  Sudakshina Das  <sudi.das@arm.com>
817             Richard Sandiford  <richard.sandiford@arm.com>
819         * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
820         vect_model_simple_cost call on scalar_shift_arg.
822 2019-12-09  Jakub Jelinek  <jakub@redhat.com>
824         PR tree-optimization/92834
825         * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
826         A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
828 2019-12-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
830         PR tree-optimization/89007
831         * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
832         target support available, generate code to distribute rshift over plus
833         and add a carry.
835 2019-12-09  Martin Liska  <mliska@suse.cz>
837         PR ipa/92737
838         * cgraph.c (symbol_table_test::symbol_table_test): Fix
839         coding style.
840         * cgraph.h (symtab_node::symtab_node): New constructor.
841         (cgraph_node::cgraph_node): Likewise.
842         (varpool_node::varpool_node): Likewise.
843         (symbol_table::allocate_cgraph_symbol): Use newly
844         created constructor.
845         (symbol_table::allocate_cgraph_symbol): Remove.
846         * cgraphunit.c (symtab_terminator): Likewise.
847         * varpool.c (varpool_node::create_empty): Use newly
848         created constructor.
850 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
852         PR target/92686
853         * config/i386/sse.md
854         (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
855         *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
856         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
857         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
858         * config/i386/i386.c (ix86_print_operand): New operand substitution.
859         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
860         New function.
861         (ix86_expand_sse_cmp): Relax condition for integer mask from
862         512-bit vector to all 128/256/512-bit vector. Delete code gen
863         for avx512f compare patterns since we have generic pattern now.
864         (ix86_expand_sse_movcc): Adjust condition and codegen for
865         maskcmp.
866         (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
867         when corresponding vector compare is available.
869 2019-12-08  Sandra Loosemore  <sandra@codesourcery.com>
871         Revert:
872         2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
874         * config/nios2/linux.h (LINK_EH_SPEC): Define.
876 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
878         * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
879         * cgraph.h (cgrpah_node): Likewise.
880         (tp_first_run_node_cmp): Deeclare.
881         * cgraphunit.c (node_cmp): Rename to ...
882         (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
883         clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
884         (expand_all_functions): Collect tp_first_run and normal functions to
885         two vectors so the other functions remain sorted. Do not check for
886         flag_profile_reorder_functions it is function local flag.
887         * profile.c (compute_value_histograms): Update tp_first_run printing.
889 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
891         * opts.c (common_handle_option): Do not clear ipa_reference for
892         -fprofile-use.
894 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
896         * ipa-split.c (split_function): Preserve 0 tp_first_run.
898 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
900         * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
901         sanity check.
903 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
905         PR tree-optimization/92860
906         * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
907         Optimization flag.
909 2019-12-07  Marek Polacek  <polacek@redhat.com>
911         PR c++/91678 - wrong error with decltype and location wrapper.
912         * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
914 2019-12-07  Eric Botcazou  <ebotcazou@adacore.com>
916         PR middle-end/90840
917         * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
918         sure to pass a valid inner mode in calls to simplify_gen_subreg.
920 2019-12-07  Tobias Burnus  <tobias@codesourcery.com>
921             David Malcolm  <dmalcolm@redhat.com>
922             Jakub Jelinek  <jakub@redhat.com>
924         PR c/87488
925         * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
926         instead of ST sequence to terminate OSC 8 strings.
928 2019-12-06  Andreas Krebbel  <krebbel@linux.ibm.com>
929             Vladimir Makarov  <vmakarov@redhat.com>
931         PR rtl-optimization/92176
932         * lra.c (simplify_subreg_regno): Don't permit unconditional
933         changing mode for LRA too.
935 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
937         * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
938         (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
939         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
940         Handle them.
942 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
944         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
945         in the asm output.
947 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
949         * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
950         (VEC_1REG_ALT): Likewise.
951         (VEC_ALL1REG_MODE): New mode iterator.
952         (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
953         (VEC_1REG_INT_ALT): Likewise.
954         (VEC_ALL1REG_INT_MODE): New mode interator.
955         (VEC_ALL1REG_INT_ALT): Likewise.
956         (VEC_REG_MODE): Remove V64QI and V64HI.
957         (VEC_ALLREG_MODE): New mode interator.
958         (vec_merge): Change to VEC_ALLREG_MODE.
959         (vec_merge_with_clobber): Likewise.
960         (vec_merge_with_vcc): Likewise.
961         (mov<mode>): Likewise.
962         (mov<mode>_unspec): Likewise.
963         (*mov<mode>): Change to VEC_ALL1REG_MODE.
964         (mov<mode>_exec): Likewise.
965         (*mov<mode>_exec_match): Likewise.
966         (mov<mode>_sgprbase): Likewise.
967         (reload_in<mode>): Change to VEC_ALLREG_MODE.
968         (reload_out<mode>): Likewise.
969         (scalar address splits): Likewise.
970         (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
971         (vec_set<mode>): Change to VEC_ALLREG_MODE.
972         (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
973         (vec_duplicate<mode><exec>): Likewise.
974         (vec_extract<mode><scalar_mode>): Likewise.
975         (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
976         (gather_load<mode>): Likewise.
977         (gather<mode>_exec): Likewise.
978         (gather<mode>_expr<exec>): Likewise.
979         (gather<mode>_insn_1offset<exec>): Likewise.
980         (gather<mode>_insn_1offset_ds<exec>): Likewise.
981         (gather<mode>_insn_2offsets<exec>): Likewise.
982         (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
983         (VEC_INT_MODE): Remove V64QI and V64HI.
984         (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
985         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
986         VEC_ALL1REG_MODE.
987         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
988         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
989         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
990         (maskload<mode>di): Change to VEC_ALL1REG_MODE.
991         (maskstore<mode>di): Likewise.
992         (mask_gather_load<mode>): Likewise.
993         (mov_from_lane63_<mode>): Likewise.
994         * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
995         and V64HImode vectorization.
996         (gcn_related_vector_mode): New function.
997         (TARGET_VECTORIZE_RELATED_MODE): New define.
999 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
1000             Kwok Cheung Yeung  <kcy@codesourcery.com>
1002         * omp-low.c (lower_omp_target): For optional arguments, deref once
1003         more to obtain the type.
1005 2019-12-06  Richard Biener  <rguenther@suse.de>
1007         * match.pd (nop_convert): Remove empty match.  Use nop_convert?
1008         everywhere.
1010 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
1012         * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
1013         for empty vectors.  Avoid using ordered_remove and instead
1014         shuffle the vector as we go.
1016 2019-12-06  Richard Biener  <rguenther@suse.de>
1018         * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
1019         VIEW_CONVERT{0,1,2}.
1020         (expr::opt_grp): Add and initialize.
1021         (lower_opt_convert): Rename to ...
1022         (lower_opt): ... and work on opt_grp, simply switching operations
1023         from being optional to being present or not.
1024         (has_opt_convert): Rename to ...
1025         (has_opt): ... and adjust.
1026         (parser::parse_operation): Return the optional opt_grp,
1027         remove special-casing of conditional operations and more generally
1028         parse [digit]'?'.
1029         (parser::parse_expr): Stick on the parsed opt_grp and perform
1030         rough verification.
1031         (parser::parse_for): Remove now unnecessary code.
1032         (main): Likewise.
1033         * doc/match-and-simplify.texi: Mention ? now works on all
1034         unary operations and also match predicates.
1036 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
1038         * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
1039         functions, not inline clones.
1041 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
1043         * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
1045 2019-12-06  Richard Biener  <rguenther@suse.de>
1047         * genmatch.c (c_expr::gen_transform): Emit newlines from line
1048         number changes rather than after every semicolon.
1050 2019-12-06  Richard Biener  <rguenther@suse.de>
1052         PR tree-optimization/92819
1053         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
1054         into the last lane.  For two-element vectors try inserting
1055         into the last lane when inserting into the first fails.
1057 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
1059         * common.opt (fprofile-partial-training): Terminate description with
1060         full stop.
1062 2019-12-05  Martin Sebor  <msebor@redhat.com>
1064         PR middle-end/92622
1065         * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
1066         left uninitialized by get_addr_base_and_unit_offset on failure.
1068 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1070         * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
1071         (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
1072         (detect_type_change): Likewise.
1073         (detect_type_change_ssa): Likewise.
1074         (ipa_analyze_virtual_call_uses): Update.
1076 2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
1078         * config/nios2/linux.h (LINK_EH_SPEC): Define.
1080 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1082         * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
1084 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1086         * cgraphclones.c (localize_profile): New function.
1087         (cgraph_node::create_clone): Use it for partial profiles.
1088         * common.opt (fprofile-partial-training): New flag.
1089         * doc/invoke.texi (-fprofile-partial-training): Document.
1090         * ipa-cp.c (update_profiling_info): For partial profiles do not
1091         set function profile to zero.
1092         * profile.c (compute_branch_probabilities): With partial profile
1093         watch if edge count is zero and turn all probabilities to guessed.
1094         (compute_branch_probabilities): For partial profiles do not apply
1095         profile when entry count is zero.
1096         * tree-profile.c (tree_profiling): Only do value_profile_transformations
1097         when profile is read.
1099 2019-12-05  Sudakshina Das  <sudi.das@arm.com>
1101         * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
1102         check from if condition.
1104 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
1106         * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
1107         and Fortran's optional arguments, unconditionally add the is-present
1108         condition before the libgomp call.
1110 2019-12-05  Richard Sandiford  <richard.sandiford@arm.com>
1112         PR middle-end/92768
1113         * tree-core.h (OEP_BITWISE): New flag.
1114         * fold-const.c (operand_compare::operand_equal_p): Handle it.
1115         * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
1117 2019-12-05  Richard Biener  <rguenther@suse.de>
1119         PR middle-end/92818
1120         * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
1121         heuristics on what don't care element to choose.
1122         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
1124 2019-12-05  Martin Liska  <mliska@suse.cz>
1126         PR gcov-profile/92817
1127         * coverage.c (build_gcov_exit_decl): Remove superfluous
1128         void_type_node.
1130 2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1132         * config/msp430/msp430.md (cbranch<mode>4): Use
1133         msp430_general_dst_nonv_operand instead of nonimmediate_operand for
1134         dest operand of CMP instruction.
1135         (cbranchpsi4_real): Likewise.
1136         (cbranchqi4_real): Likewise.
1137         (cbranchhi4_real): Likewise.
1138         (cbranchpsi4_reversed): Likewise.
1139         (cbranchqi4_reversed): Likewise.
1140         (cbranchhi4_reversed): Likewise.
1142 2019-12-05  Richard Biener  <rguenther@suse.de>
1144         PR tree-optimization/92803
1145         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1146         invariant vector construction.
1148 2019-12-05  Martin Liska  <mliska@suse.cz>
1150         PR gcov-profile/91971
1151         * coverage.c (coverage_init): Mangle full path
1152         only when -fprofile-dir is used.
1154 2019-12-05  Jakub Jelinek  <jakub@redhat.com>
1156         PR target/92791
1157         * config/i386/i386.md (movstrict<mode>): Move test for
1158         TARGET_PARTIAL_REG_STALL and not optimizing for size from
1159         expander's condition to the body - FAIL; in that case.
1161 2019-12-03  Martin Sebor  <msebor@redhat.com>
1163         PR middle-end/91582
1164         * builtins.c (gimple_call_alloc_size): New function.
1165         (compute_objsize): Add argument.  Call gimple_call_alloc_size.
1166         Handle variable offsets and indices.
1167         * builtins.h (gimple_call_alloc_size): Declare.
1168         (compute_objsize): Add argument.
1169         * gimple-ssa-warn-restrict.c: Remove assertions.
1170         * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
1172 2019-12-04  Julian Brown  <julian@codesourcery.com>
1174         * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
1176 2019-12-04  Peter Bergner <bergner@linux.ibm.com>
1178         PR bootstrap/92661
1179         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
1180         rs6000.h.
1181         (altivec_overloaded_builtins): Move to rs6000-call.c.
1182         * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
1183         rs6000-c.c.
1184         * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
1185         (altivec_overloaded_builtins): Moved from rs6000-c.c.
1186         (rs6000_common_init_builtins): Do no define builtins that overload
1187         builtins that have been disabled.
1189 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1191         * config/arm/arm.c (arm_option_override_internal):
1192         Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
1194 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1196         * config/aarch64/aarch64.c
1197         (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
1198         (thunderx_tunings): Likewise.
1199         (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
1200         (thunderx2t99_tunings): Likewise.
1201         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
1202         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
1204 2019-12-04  Richard Biener  <rguenther@suse.de>
1206         * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
1207         empty CTOR and memset partial-def registering.  Take advantage
1208         of fancy offset analysis in memset handling.
1210 2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
1212         * fold-const.c (native_encode_vector_part): Handle
1213         VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
1214         (native_decode_vector_tree): Delete, moving the bulk of the code to...
1215         (native_interpret_vector_part): ...this new function.  Use a pointer
1216         and length instead of a vec<> and start index.
1217         (native_interpret_vector): Use native_interpret_vector_part.
1218         (fold_view_convert_vector_encoding): Likewise.
1220 2019-12-04  Richard Biener  <rguenther@suse.de>
1222         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
1223         non-constant defs in the most trivial way.
1224         (vn_reference_lookup_3): Also push down SSA partial defs.
1226 2019-12-04  Martin Liska  <mliska@suse.cz>
1228         * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
1229         Initialize count of newly created BB.
1231 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
1233         PR tree-optimization/92734
1234         * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
1235         A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
1237 2019-12-04  Kewen Lin  <linkw@gcc.gnu.org>
1239         PR target/92760
1240         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
1241         VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
1243 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1245         * ipa-fnsummary.c: Include tree-into-ssa.h.
1246         (compute_fn_summary): Call update_ssa.
1248 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1250         * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
1251         is set only for symbol in comdat group.
1252         * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
1254 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1256         * cgraph.c: Include tree-into-ssa.h
1257         (cgraph_node::get_body): Call update_ssa.
1258         * cgraphunit.c (cgraph_node::expand): Likewise.
1259         * lto-streamer-in.c (input_function): Do not call update_ssa.
1261 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1263         * gimplify.c (gimplify_compound_lval): Don't gimplify and install
1264         an array element size if array_element_size is already an invariant.
1265         Similarly don't gimplify and install a field offset if
1266         component_ref_field_offset is already an invariant.
1268 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1270         * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
1271         with POLY_INT_CST size is made to a fixed-size object, force the
1272         object to live in memory.
1274 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
1276         * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
1277         for the data mode.
1279 2019-12-03  Richard Biener  <rguenther@suse.de>
1281         PR tree-optimization/92758
1282         * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
1283         operation on uniform vectors.
1285 2019-12-03  Richard Biener  <rguenther@suse.de>
1287         PR tree-optimization/92645
1288         * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1289         from or to a properly aligned register variable.
1291 2019-12-03  Matthias Klose  <doko@ubuntu.com>
1293         * Makefile.in (SOURCES): Add doc/lto-dump.1.
1294         (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1295         ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1297 2019-12-03  Richard Biener  <rguenther@suse.de>
1299         PR tree-optimization/92751
1300         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1301         when a clobber ends up in the partial-def vector.
1302         (vn_reference_lookup_3): Let clobbers be handled by the
1303         assignment from CTOR handling.
1305 2019-12-03  Jakub Jelinek  <jakub@redhat.com>
1307         PR tree-optimization/92734
1308         * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1309         CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1310         inner subtraction.
1312 2019-12-03  Uroš Bizjak  <ubizjak@gmail.com>
1313             Jakub Jelinek  <jakub@redhat.com>
1315         PR target/92744
1316         * config/i386/i386.md (peephole2 for *swap<mode>): Use
1317         general_reg_operand predicates instead of register_operand.
1319 2019-12-03  Richard Biener  <rguenther@suse.de>
1321         PR tree-optimization/92645
1322         * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1323         a full def of a vector via a BIT_INSERT_EXPR.
1325 2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
1327         * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1328         static.
1329         * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1330         decl.
1332 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1334         PR middle-end/92741
1335         * fold-const.c (fold_convertible_p): Check vector types more
1336         thoroughly.
1338 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1340         * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1341         (aarch64_expand_mov_immediate): Use it when attempting to measure
1342         the length of an SVE vector.
1343         (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1344         SVE is enabled.
1346 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1348         * config/aarch64/aarch64-sve-builtins.h
1349         (gimple_folder::force_vector): Declare.
1350         * config/aarch64/aarch64-sve-builtins.cc
1351         (gimple_folder::force_vector): New function.
1352         * config/aarch64/aarch64-sve-builtins-base.cc
1353         (svcmp_impl::fold): Likewise.
1354         (svdup_impl::fold): Handle svdup_z too.
1356 2019-12-02  Martin Liska  <mliska@suse.cz>
1358         * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1359         function.
1360         (debug_tree_odr_name): New.
1361         * ipa-utils.h (get_odr_name_for_type): New.
1363 2019-12-02  Richard Biener  <rguenther@suse.de>
1365         PR tree-optimization/92742
1366         * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1367         touch the def-type but verify it is consistent with the
1368         original stmts.
1370 2019-12-02  Jakub Jelinek  <jakub@redhat.com>
1372         PR tree-optimization/92712
1373         * match.pd ((A * B) +- A -> (B +- 1) * A,
1374         A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1375         even when we don't know anything about range of A, but do know
1376         something about range of B and the simplification won't introduce
1377         new UB.
1379 2019-12-02  Feng Xue  <fxue@os.amperecomputing.com>
1381         PR ipa/92133
1382         * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1383         (ipa-cp-min-recursive-probability): Likewise.
1384         * params.opt (ipa-cp-max-recursive-depth): New.
1385         (ipa-cp-min-recursive-probability): Likewise.
1386         * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1387         val_p and unlimited.
1388         (self_recursively_generated_p): New function.
1389         (get_val_across_arith_op): Likewise.
1390         (propagate_vals_across_arith_jfunc): Add constant propagation for
1391         self-recursive function.
1392         (incorporate_penalties): Do not penalize pure self-recursive function.
1393         (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1394         (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1395         (get_info_about_necessary_edges): Relax hotness check for edge to
1396         self-recursive function.
1397         * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1399 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
1401         PR target/92499
1403         * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1404         objects of flexible types to be small if they have internal linkage
1405         or are declared extern.
1406         * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1407         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
1408         instead of the size of the object initializer.
1409         * tree.c (flexible_array_type_p): Move from C front end, and
1410         generalize to handle fields in non-C structures.
1411         * tree.h (flexible_array_type_p): Declare.
1413 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1415         * profile-count.h (profile_count::operator<): Use IPA value for
1416         comparsion.
1417         (profile_count::operator>): Likewise.
1418         (profile_count::operator<=): Likewise.
1419         (profile_count::operator>=): Likewise.
1420         * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1422 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1424         * ipa-inline.c (compute_max_insns): Return int64_t.
1425         (inline_small_functions): Simplify.
1427 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1429         * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1430         scaling happen.
1432 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1434         * cgraph.h (symtab_node): Add symver flag.
1435         * cgraphunit.c (process_symver_attribute): New.
1436         (process_common_attributes): Use process_symver_attribute.
1437         * lto-cgraph.c (lto_output_node): Stream symver.
1438         (lto_output_varpool_node): Stream symver.
1439         (input_overwrite_node): Stream symver.
1440         (input_varpool_node): Stream symver.
1441         * output.h (do_assemble_symver): Decalre.
1442         * symtab.c (symtab_node::dump_base): Dump symver.
1443         (symtab_node::verify_base): Verify symver.
1444         (symtab_node::resolve_alias): Handle symver.
1445         * varasm.c (do_assemble_symver): New function.
1446         * varpool.c (varpool_node::assemble_aliases): Use it.
1447         * doc/extend.texi: (symver attribute): Document.
1448         * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1450 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1452         * target.h (type_context_kind): New enum.
1453         (verify_type_context): Declare.
1454         * target.def (verify_type_context): New target hook.
1455         * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1456         * doc/tm.texi: Regenerate.
1457         * tree.c (verify_type_context): New function.
1458         * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1459         Declare.
1460         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1461         New function.
1462         * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1463         (TARGET_VERIFY_TYPE_CONTEXT): Define.
1465 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1467         * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1468         * cgraph.h (cgraph_node): Add unit_id and
1469         merged_extern_inline.
1470         (symbol_table): Add max_unit.
1471         (symbol_table::symbol_table): Initialize it.
1472         * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1473         merged_comdat, merged_extern_inline.
1474         (cgraph_node::create_clone): Likewise.
1475         (cgraph_node::create_version_clone): Likewise.
1476         * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1477         calls.
1478         * ipa-fnsummary.h (cross_module_call_p): New inline function.
1479         * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1480         * ipa-inline.c (inline_small_functions): Likewise.
1481         * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1482         copy merged_comdat and merged_extern_inline.
1483         * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1484         merged_extern_inline and unit_id.
1485         (input_overwrite_node): Stream in these.
1486         (input_cgraph_1): Set unit_base.
1487         * lto-streamer.h (lto_file_decl_data): Add unit_base.
1488         * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1490 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
1492         * gcc.c (process_command): Only warn about an ineffective `-x'
1493         option if any input files have actually been supplied.
1495 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
1497         * doc/install.texi (Options specification): Remove the list of
1498         target library subdirectories supporting
1499         `--enable-version-specific-runtime-libs'.  Document defaults for
1500         the option.
1502 2019-11-29  Vladimir Makarov  <vmakarov@redhat.com>
1504         PR rtl-optimization/92283
1505         * lra.c (lra): Update reg notes after inheritance sub-pass and
1506         before constraint sub-pass.
1508 2019-11-29  Richard Biener  <rguenther@suse.de>
1510         PR tree-optimization/91003
1511         * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1512         operand number, avoid handling the non-condition operands of
1513         COND_EXPRs as comparisons.
1514         (vect_get_constant_vectors): Pass down the operand number.
1515         (vect_get_slp_defs): Likewise.
1517 2019-11-29  Frederik Harwath  <frederik@codesourcery.com>
1519         * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1520         generic_expr_could_trap_p to check if the condition of COND_EXPR or
1521         VEC_COND_EXPR can trap.
1523 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1525         PR tree-optimization/92677
1526         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1527         to zero when dissolving a group of strided accesses.
1529 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1531         PR tree-optimization/92596
1532         * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1533         operations.
1534         (vectorizable_operation): Likewise, instead of relying on
1535         vect_get_mask_type_for_stmt to do this.
1536         (vect_get_vector_types_for_stmt): Always return a vector type
1537         immediately, rather than deferring the choice for boolean results.
1538         Use a vector mask type instead of a normal vector if
1539         vect_use_mask_type_p.
1540         (vect_get_mask_type_for_stmt): Delete.
1541         * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1542         mask_producers argument and special boolean_type_node handling.
1543         (vect_determine_vf_for_stmt): Remove mask_producers argument and
1544         update calls to vect_determine_vf_for_stmt_1.  Remove doubled call.
1545         (vect_determine_vectorization_factor): Update call accordingly.
1546         * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1547         boolean_type_node handling.
1548         (vect_slp_analyze_node_operations_1): Likewise.
1550 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1552         * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1553         (vect_use_mask_type_p): New function.
1554         * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1555         mask precision to the pattern statement.
1556         (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1557         and use it to initialize the new stmt's mask precision.
1558         (search_type_for_mask_1): Delete.
1559         (search_type_for_mask): Replace with...
1560         (integer_type_for_mask): ...this new function.  Use the information
1561         cached in the stmt_vec_info.
1562         (vect_recog_bool_pattern): Update accordingly.
1563         (build_mask_conversion): Pass the scalar type associated with the
1564         mask type to append_pattern_def_seq.
1565         (vect_recog_mask_conversion_pattern): Likewise.  Call
1566         integer_type_for_mask instead of search_type_for_mask.
1567         (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1568         of search_type_for_mask.
1569         (possible_vector_mask_operation_p): New function.
1570         (vect_determine_mask_precision): Likewise.
1571         (vect_determine_stmt_precisions): Call it.
1573 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1575         * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1576         the slp_tree parameter with a group size parameter.
1577         (vect_get_mask_type_for_stmt): Likewise.
1578         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1579         (vect_get_mask_type_for_stmt): Likewise.
1580         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1581         call accordingly.
1583 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1585         * tree-vect-stmts.c (vectorizable_operation): Punt early
1586         on codes that are handled elsewhere.
1588 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1590         * doc/sourcebuild.texi (vect_bool_cmp): Document.
1591         * tree-vect-patterns.c (search_type_for_mask_1): If neither
1592         operand to a boolean comparison is a natural vector mask,
1593         handle both operands like normal integers instead.
1595 2019-11-29  Richard Biener  <rguenther@suse.de>
1597         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1598         out early for too large objects.
1600 2019-11-29  Martin Jambor  <mjambor@suse.cz>
1602         PR ipa/92476
1603         * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1604         the summary only if the summary exists.
1605         (find_more_scalar_values_for_callers_subset): Check node_dead in
1606         the summary only if the summary exists.
1607         (ipcp_store_bits_results): Ignore nodes without lattices.
1608         (ipcp_store_vr_results): Likewise.
1609         * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1610         header files required by them.
1611         (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1613 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1615         PR tree-optimization/92710
1616         * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1617         vector mask arguments.
1619 2019-11-29  Jan Hubicka  <hubicka@ucw.cz>
1621         * profile-count.c (profile_count::to_cgraph_frequency,
1622         profile_count::to_sreal_scale): Check for compaibility of counts.
1623         * profile-count.h (compatible_p): Make public; add checking for
1624         global0 versus global types.
1625         * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1627 2019-11-29  Richard Biener  <rguenther@suse.de>
1629         PR tree-optimization/92715
1630         * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1631         out for uniform vectors and source vectors with less elements
1632         than the destination.
1634 2019-11-29  Martin Liska  <mliska@suse.cz>
1636         PR lto/91574
1637         * ipa-devirt.c (types_same_for_odr): Check for existence
1638         of TYPE_NAMEs first.
1640 2019-11-29  Richard Biener  <rguenther@suse.de>
1642         PR tree-optimization/92704
1643         * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1644         in loops performing only loads.
1646 2019-11-29  Julian Brown  <julian@codesourcery.com>
1648         * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1649         BT_DFLOAT128_PTR) Remove.
1650         * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1651         TI_DFLOAT128_PTR_TYPE): Remove.
1652         * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1653         dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1654         * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1655         dfloat128_ptr_type_node): Remove macros.
1657 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1659         * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
1660         formatting.
1661         (*movdi_internal64): Ditto.
1663 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1665         PR target/92602
1666         * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1667         indexed_or_indirect_operand to be memory_operand.
1668         (bswap<mode>2_store for HSI): Ditto.
1669         (bswapdi2_load): Ditto.
1670         (bswapdi2_store): Ditto.
1672 2019-11-28  Martin Liska  <mliska@suse.cz>
1674         PR debug/46558
1675         * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1676         headers for translation.
1678 2019-11-28  Martin Liska  <mliska@suse.cz>
1680         PR lto/92609
1681         * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1682         consistently.
1684 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1686         * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1687         checks.
1689 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1691         * profile-count.c (profile_count::combine_with_ipa_count): Return
1692         uninitialized count if called on ininitialized count.
1694 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1696         * ipa-inline-transform.c (inline_transform): Scale profile before
1697         redirecting.
1699 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1701         * profile-count.h (profile_count::max): Work on profiles of different
1702         type.
1703         (profile_count::apply_scale): Be sure that ret is not local or global0
1704         type if num is global.
1706 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1708         * profile-count.h (profile_count::max): Work on profiles of different
1709         type.
1710         (profile_count::apply_scale): Be sure that ret is not local or global0
1711         type if num is global.
1713 2019-11-28  Martin Jambor  <mjambor@suse.cz>
1715         PR ipa/92697
1716         * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1717         ifunc_resolvers.
1718         * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1719         Removed trailig whitespace.
1721 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1723         * profile-count.h (profile_count::combine_with_ipa_count_within):
1724         Declare.
1725         * profile-count.c (profile_count::combine_with_ipa_count_within):
1726         New.
1727         * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1728         it.
1730 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1732         * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1733         of counters are done same way.
1735 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1737         * ipa-cp.c (update_profiling_info): Fix scaling.
1739 2019-11-28  Richard Biener  <rguenther@suse.de>
1741         PR tree-optimization/92645
1742         * tree-inline.c (remap_gimple_stmt): When the return value
1743         is not wanted, elide GIMPLE_RETURN.
1745 2019-11-28  Richard Biener  <rguenther@suse.de>
1747         PR tree-optimization/92645
1748         * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1749         conversions inside a mode class.  Remove restriction on
1750         preserving the element size.
1751         (simplify_vector_constructor): Deal with the above and for
1752         identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1753         and VEC_PACK_TRUNC_EXPR.
1755 2019-11-28  Georg-Johann Lay  <avr@gjlay.de>
1757         Must use push insn to pass varargs arguments of DFmode because
1758         otherwise the middle-end generates wrong code.
1760         PR target/92055
1761         * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1763 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
1765         PR tree-optimization/92691
1766         * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1767         in function comment.
1768         (strlen_check_and_optimize_call): Likewise.  For handle_printf_call
1769         calls, return !handle_printf_call rather than always returning true.
1770         (check_and_optimize_stmt): Describe return value meaning in function
1771         comment.  Formatting fix.
1773 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1775         * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1776         combination of globa0 and global counters..
1778 2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>
1780         PR target/92566
1781         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1782         by VECTOR_UNIT_NONE_P instead.
1784 2019-11-28  Hongtao Liu  <hongtao.liu@inte.com>
1786         * config/i386/sse.md (avx512f_maskcmp<mode>3):
1787         Refine VF to VF_AVX512VL.
1789 2019-11-27  Michael Meissner  <meissner@linux.ibm.com>
1791         * config/rs6000/rs6000.md (movsi_internal): Reformat.
1792         (movdi_internal64): Reformat.
1794 2019-11-27  Peter Bergner <bergner@linux.ibm.com>
1796         PR bootstrap/92661
1797         * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1798         builtin if we don't have an actual type.
1799         (builtin_function_type): If the builtin function uses a DFP type
1800         and decimal float has been disabled, then return NULL_TREE.
1802 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
1804         PR rtl-optimization/92510
1805         * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1806         of comparison into a comparison with different mode if both imode and
1807         omode are scalar integral modes.
1809 2019-11-27  Vladimir Makarov  <vmakarov@redhat.com>
1811         PR rtl-optimization/90007
1812         * recog.c (constrain_operands): Permit hard registers too for
1813         memory when LRA is used.
1815 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
1817         * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1818         between Coldfire and regular m68k.
1819         * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1821 2019-11-27  Richard Biener  <rguenther@suse.de>
1823         * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1824         * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1825         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1826         * optabs-tree.c (supportable_convert_operation): Do not call
1827         targetm.vectorize.builtin_conversion.  Remove unused decl parameter.
1828         * optabs-tree.h (supportable_convert_operation): Adjust.
1829         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1830         * doc/tm.texi: Regenerate.
1831         * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1832         * tree-vect-generic.c (expand_vector_conversion): Likewise.
1833         * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1834         unused decl parameter and adjust.
1835         (vect_create_vectorized_promotion_stmts): Likewise.
1836         (vectorizable_conversion): Adjust.
1838 2019-11-27  Richard Biener  <rguenther@suse.de>
1840         PR tree-optimization/92690
1841         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1842         converting elements not originally converted.
1844 2019-11-27  Tobias Burnus  <tobias@codesourcery.com>
1846         PR middle-end/92463
1847         * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1848         do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1849         mpfr_rnd_t instead of mp_rnd_t.
1850         * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1851         do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1852         * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1853         Use mpfr_exp_t instead of mp_exp_t.
1854         * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1855         MPFR_RNDx instead of GMP_RNDx.
1856         * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1857         mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1858         * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1859         of mp_rnd_t and remove MPFR_RNDx poisoning.
1860         * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1862 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
1864         PR tree-optimization/91790
1865         * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1866         DR for vect_setup_realignment when first_stmt_info is different
1867         from first_stmt_info_for_drptr.
1869 2019-11-27  Richard Biener  <rguenther@suse.de>
1871         PR tree-optimization/92645
1872         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1873         CTORs with just a subset of the original vectors.
1875 2019-11-27  Richard Biener  <rguenther@suse.de>
1877         PR middle-end/92674
1878         * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1879         edges and instead record blocks in bitmap.
1880         (gimple_expand_calls_inline): Adjust.
1881         (fold_marked_statements): Delay EH cleanup until all folding is
1882         done.
1883         (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1884         inlining finished.
1886 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
1888         * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1889         LRA is enabled.
1890         * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1891         disabled.
1893 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
1895         PR debug/92664
1896         * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1898 2019-11-26  Martin Sebor  <msebor@redhat.com>
1900         PR tree-optimization/92683
1901         * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1902         inadvertently removed in a previous change.  Rename local variable
1903         for clarity.
1905 2019-11-26  Richard Biener  <rguenther@suse.de>
1907         PR middle-end/92669
1908         * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1909         NULL pre_order.
1911 2019-11-26  Robin Dapp  <rdapp@linux.ibm.com>
1913         * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1915 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
1917         PR tree-optimization/92644
1918         * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1919         next to INTEGER_CST checks.
1921 2019-11-26  Richard Biener  <rguenther@suse.de>
1923         PR tree-optimization/92645
1924         * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1925         do not build the operation from scalars if the operand is.
1927 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
1929         * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1930         func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1931         definitions.
1933 2019-11-25  Martin Liska  <mliska@suse.cz>
1935         * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1936         up used dump message.
1938 2019-11-25  Martin Liska  <mliska@suse.cz>
1940         PR bootstrap/92653
1941         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1942         too strict checking assert.
1944 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1946         PR c/91985
1947         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1948         (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1949         error_mark_node if corresponding global tree node is NULL.
1950         * tree.c (build_common_tree_nodes): Do not initialize
1951         dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1952         decimal floating-point not supported.
1954 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1956         * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1957         types.
1959 2019-11-25  Bernd Schmidt  <bernds_cb1@t-online.de>
1961         * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1962         Replace code for non-CONST_INT constants with gcc_unreachable.
1963         * config/m68k/m68k.md (cbranchdi): Don't generate individual
1964         compare and test.
1965         (CMPMODE): New mode_iterator.
1966         (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1967         cbranch<mode>4.
1968         (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1969         cstore<mode>4.
1970         (cmp<mode>_68881): Remove 'F' constraint from first comparison
1971         operand.
1972         (bit test insns patterns): Use nonimmediate_operand, not
1973         register_operand, for source operands that allow memory in
1974         their constraints.
1975         (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1976         Use register_operand, not nonimmediate_operand, for the
1977         destinations.
1978         (DBCC): New mode_iterator.
1979         (dbcc peepholes): Use it to reduce duplication.
1980         (trap): Use const_true_rtx, not const1_rtx.
1981         * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1982         from m68k_subword_comparison_operand and changed to handle
1983         SImode.
1985         PR target/91851
1986         * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1987         declaration.
1988         (m68k_init_cc): New declaration.
1989         (m68k_output_compare_di, m68k_output_compare_si)
1990         (m68k_output_compare_hi, m68k_output_compare_qi)
1991         (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1992         (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1993         (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1994         m68k_output_branch_float, m68k_output_branch_float_rev):
1995         Likewise.
1996         (valid_dbcc_comparison_p_2, flags_in_68881)
1997         (output_btst): Remove declaration.
1998         * config/m68k/m68k.c (INCLDUE_STRING): Define.
1999         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
2000         (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
2001         (flags_compare_op0, flags_compare_op1, flags_operand1,
2002         flags_operand2, flags_valid): New static variables.
2003         (m68k_find_flags_value, m68k_init_cc): New functions.
2004         (handle_flags_for_move, m68k_asm_final_postscan_insn,
2005         remember_compare_flags): New static functions.
2006         (output_dbcc_and_branch): New argument CODE.  Use it, and add
2007         PLUS and MINUS to the possible codes.  All callers changed.
2008         (m68k_output_btst): Renamed from output_btst.  Remove OPERANDS
2009         and INSN arguments, add CODE arg.  Return the comparison code
2010         to use.  All callers changed.  Use CODE instead of
2011         next_insn_tests_no_inequality, and replace cc_status management
2012         with changing the return code.
2013         (m68k_rtx_costs): Instead of testing for COMPARE, test for
2014         RTX_COMPARE or RTX_COMM_COMPARE.
2015         (output_move_simode, output_move_qimode): Call
2016         handle_flags_for_move.
2017         (notice_update_cc): Delete function.
2018         (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
2019         m68k_output_compare_hi, m68k_output_compare_qi,
2020         m68k_output_compare_fp, m68k_output_branch_integer,
2021         m68k_output_branch_integer_rev, m68k_output_scc,
2022         m68k_output_branch_float, m68k_output_branch_float_rev,
2023         m68k_output_scc_float): New functions.
2024         (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
2025         once at the start, and set flags_valid and flags_operand1 if the
2026         flags are usable.
2027         * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
2028         CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
2029         definitions.
2030         (CC_STATUS_INIT): Define.
2031         * config/m68k/m68k.md (flags_valid): New define_attr.
2032         (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
2033         tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
2034         cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
2035         cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
2036         tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
2037         sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
2038         sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
2039         bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
2040         ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
2041         bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
2042         blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
2043         bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
2044         bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
2045         ctrapqi4, conditional_trap): Delete patterns.
2046         (cbranchdi4_insn): New pattern.
2047         (cbranchdi4): Don't generate cc0 patterns.  When testing LT or GE,
2048         test high part only.  When testing EQ or NE, generate beq0_di
2049         and bne0_di patterns directly.
2050         (cstoredi4): When testing LT or GE, test high part only.
2051         (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
2052         patterns.
2053         (scc0_constraints, cmp1_constraints, cmp2_constraints,
2054         scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
2055         cmp2_cf_predicate): New define_mode_attrs.
2056         (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
2057         cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
2058         cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
2059         New patterns.
2060         (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
2061         (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
2062         cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
2063         New patterns.
2064         (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
2065         cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
2066         Likewise.
2067         (BTST): New define_mode_iterator.
2068         (btst_predicate, btst_constraint, btst_range): New
2069         define_mode_attrs.
2070         (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
2071         patterns.
2072         (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
2073         unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
2074         patterns): Set attr "flags_valid".
2075         (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
2076         management.  Set attr "flags_valid".
2077         (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
2078         extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
2079         addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
2080         addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
2081         manual CC_STATUS management.
2082         (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
2083         unnamed strict_lowpart subhi and subqi patterns): Set attr
2084         "flags_valid".
2085         (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
2086         Remove code to operate on address regs and assert the case
2087         does not occur.
2088         (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
2089         manual CC_STATUS_INIT.
2090         (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
2091         xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
2092         negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
2093         one_cmplqi2, unnamed strict_lowpart patterns
2094         for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
2095         one_cmplhi and one_cmplqi): Set attr "flags_valid".
2096         (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
2097         (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
2098         CC_STATUS_INIT.
2099         (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
2100         lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
2101         rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
2102         unnamed strict_low_part patterns for HI and
2103         QI versions): Set attr "flags_valid".
2104         (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
2105         bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
2106         insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
2107         insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
2108         dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
2109         (various unnamed peepholes): Adjust compare/branch sequences
2110         for new cbranch patterns.
2111         (dbcc peepholes): Likewise, and output the comparison here
2112         as well.
2113         * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
2114         (fp_src_operand): Allow constant zero.
2115         (address_reg_operand): New predicate.
2117         * rtl.h (inequality_comparisons_p): Remove declaration.
2118         * recog.h (next_insn_tests_no_inequality): Likewise.
2119         * rtlanal.c (inequality_comparisons_p): Delete function.
2120         * recog.c (next_insn_tests_no_inequality): Likewise.
2122 2019-11-25  Richard Biener  <rguenther@suse.de>
2124         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
2125         (vect_detect_hybrid_slp): Swap lane and instance iteration,
2126         properly re-building the visited hash-map for each lane.
2128 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
2130         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
2131         gcn_md_reorg): Remove unused variables.
2132         (gcn_emutls_var_init): Add missing (but unreachable) return
2133         to silence warning.
2134         (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
2135         target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
2136         an uninitialized variable.
2138 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2140         PR ipa/92109
2141         * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
2142         * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
2143         (cgraph_materialize_clone): Move removel from clone tree to the
2144         the new method and use it instead.
2145         * ipa.c (symbol_table::remove_unreachable_nodes): When removing
2146         bodies of clones, also remove it from the clone tree.
2148 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2150         PR ipa/91956
2151         * ipa-sra.c (process_isra_node_results): Put the new node to the
2152         same comdat group as the original node.
2154 2019-11-25  Georg-Johann Lay  <avr@gjlay.de>
2156         Build double32 / long-double32 multilibs if needed.
2158         PR target/92055
2159         * config/avr/t-avr:
2160         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
2161         (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
2162         (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
2163         tm_defines and pass to genmultilib.awk.
2164         * config/avr/genmultilib.awk: Use these variables to add double32
2165         and / or long-double32 multilib(s) as needed.
2166         * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
2168 2019-11-25  Richard Biener  <rguenther@suse.de>
2170         * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
2171         loop body, defaulted to NULL.
2172         (single_likely_exit): Add exit vector argument
2173         * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
2174         (number_of_iterations_exit): Likewise.
2175         (number_of_iterations_exit_assumptions): Likewise.
2176         * cfgloop.c (get_loop_exit_edges): Use passed in loop body
2177         if not NULL.
2178         * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
2179         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
2180         Compute exit vector around call to single_likely_exit.
2181         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
2182         loop body to loop_only_exit_p.
2183         * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
2184         caller.
2185         (number_of_iterations_exit_assumptions): Get loop body from caller
2186         if not NULL.
2187         (number_of_iterations_exit): Pass through new loop body arg.
2188         (infer_loop_bounds_from_undefined): Get loop body from caller.
2189         (estimate_numbers_of_iterations): Compute loop body once.
2191 2019-11-25  Richard Biener  <rguenther@suse.de>
2193         * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
2194         auto_bb_flag instead of an sbitmap for visited handling.
2196 2019-11-25 Kewen Lin  <linkw@gcc.gnu.org>
2198         * config/rs6000/vector.md (vector_fp_comparison_simple): New code
2199         iterator.
2200         (vector_fp_comparison_complex): Likewise.
2201         (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
2202         define_and_split.
2203         (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
2204         Likewise.
2205         (vector_lt<mode> for VEC_F): Refactor with
2206         vector_fp_comparison_simple.
2207         (vector_le<mode> for VEC_F): Likewise.
2208         (vector_unge<mode> for VEC_F): Likewise.
2209         (vector_unle<mode> for VEC_F): Likewise.
2210         (vector_ne<mode> for VEC_F): Likewise.
2211         (vector_ungt<mode> for VEC_F): Likewise.
2212         (vector_unlt<mode> for VEC_F): Likewise.
2213         (vector_ltgt<mode> for VEC_F): Refactor with
2214         vector_fp_comparison_complex.
2215         (vector_ordered<mode> for VEC_F): Likewise.
2216         (vector_uneq<mode> for VEC_F): Likewise.
2217         (vector_unordered<mode> for VEC_F): Likewise.
2219 2019-11-24  Bernd Schmidt  <bernds_cb1@t-online.de>
2221         * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
2222         COMPARE, representing an overflow detection.
2224         * combine.c (combine_instructions): Record costs for jumps.
2226         * combine.c (can_combine_p): Allow autoinc in jumps.
2228 2019-11-23  Jan Hubicka  <hubicka@ucw.cz>
2230         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
2231         * doc/invoke.texi (max-inline-insns-single-O2,
2232         inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
2233         early-inlining-insns-O2): Remove documentation.
2234         * ipa-fnsummary.c (analyze_function_body,
2235         compute_fn_summary): Use opt_for_fn when accessing parameters.
2236         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2237         inline_insns_auto, can_inline_edge_by_limits_p,
2238         want_early_inline_function_p, big_speedup_p,
2239         want_inline_small_function_p, want_inline_self_recursive_call_p,
2240         recursive_inlining, compute_max_insns, inline_small_functions):
2241         Likewise.
2242         * opts.c (default_options): Add -O3 defaults for
2243         OPT__param_early_inlining_insns_,
2244         OPT__param_inline_heuristics_hint_percent_,
2245         OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
2246         * params.opt (-param=early-inlining-insns-O2=,
2247         -param=inline-heuristics-hint-percent-O2=,
2248         -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
2249         -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
2250         -param=inline-min-speedup=, -param=inline-unit-growth=,
2251         -param=large-function-growth=, -param=large-stack-frame=,
2252         -param=large-stack-frame-growth=, -param=large-unit-insns=,
2253         -param=max-inline-insns-recursive=,
2254         -param=max-inline-insns-recursive-auto=,
2255         -param=max-inline-insns-single=,
2256         -param=max-inline-insns-size=, -param=max-inline-insns-small=,
2257         -param=max-inline-recursive-depth=,
2258         -param=max-inline-recursive-depth-auto=,
2259         -param=min-inline-recursive-probability=,
2260         -param=partial-inlining-entry-probability=,
2261         -param=uninlined-function-insns=, -param=uninlined-function-time=,
2262         -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
2263         Optimization.
2265 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
2267         * ipa-fnsummary.c: Fix comment typos.
2268         * ipa-ref.h: Likewise.
2269         * ipa-predicate.h: Likewise.
2270         * ipa-split.c: Likewise.
2271         * ipa-inline-analysis.c: Likewise.
2272         * ipa-predicate.c: Likewise.
2273         * ipa-devirt.c: Likewise.
2274         * ipa-icf.h: Likewise.
2275         * profile-count.c: Likewise.
2276         * ipa-icf.c: Likewise.
2277         (sem_function::equals_wpa): Fix typos in dump messages.
2278         * ipa-icf-gimple.h: Fix comment typos.
2279         * ipa-inline-transform.c: Likewise.
2280         * ipa-polymorphic-call.c: Likewise.
2281         * ipa-fnsummary.h: Likewise.
2282         * ipa-inline.c: Likewise.
2283         (dump_inline_stats): Fix typo in debug dump message.
2284         * profile-count.h: Fix comment typos.
2286         PR target/92615
2287         * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2288         GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2289         register_operand, force x into register before storing it into dest.
2290         Formatting fix.
2292         PR middle-end/83859
2293         * doc/extend.texi (attribute access): Fix a typo.
2295         PR rtl-optimization/92610
2296         * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2297         cse_cfg_altered is set, even when tem is 0.
2298         (rest_of_handle_cse_after_global_opts): Likewise.
2300 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
2302         PR c++/92458
2303         * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2304         tree_hash): Move to ...
2305         * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2306         (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2307         types.
2308         (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2310         PR tree-optimization/92618
2311         * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2312         containing the auto_vec and a tree.
2313         (undistribute_bitref_for_vector): Handle the case when element type
2314         of vec is not the same as type of the BIT_FIELD_REF.  Formatting
2315         fixes.
2317 2019-11-22  Martin Sebor  <msebor@redhat.com>
2319         PR middle-end/83859
2320         * attribs.h (struct attr_access): New.
2321         * attribs.c (decl_attributes): Add an informational note.
2322         * builtins.c (check_access): Make extern.  Consistently set no-warning
2323         after issuing a warning.  Handle calls through function pointers.  Set
2324         no-warning.
2325         * builtins.h (check_access): Declare.
2326         * calls.c (rdwr_access_hash): New type.
2327         (rdwr_map): Same.
2328         (init_attr_rdwr_indices): New function.
2329         (maybe_warn_rdwr_sizes): Same.
2330         (initialize_argument_information): Call init_attr_rdwr_indices.
2331         Call maybe_warn_rdwr_sizes.
2332         (get_size_range): Avoid null argument.
2333         * doc/extend.texi (attribute access): Document new attribute.
2335 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2337         * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2338         (ACC_LDS_SIZE): Define.
2339         (OTHER_LDS_SIZE): Define.
2340         (LDS_SIZE): Redefine using above.
2341         (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2343 2019-11-22  Martin Sebor  <msebor@redhat.com>
2345         PR middle-end/88226
2346         * builtins.c (check_nul_terminated_array): New function.
2347         (fold_builtin_0): Remove declaration.
2348         (fold_builtin_1): Same.
2349         (fold_builtin_2): Same.
2350         (fold_builtin_3): Same.
2351         (fold_builtin_strpbrk): Add argument.
2352         (fold_builtin_strspn): Same.
2353         (fold_builtin_strcspn): Same.
2354         (expand_builtin_strcat): Call it.  Remove unused argument.
2355         (expand_builtin_stpncpy): Same.
2356         (expand_builtin_strncat): Same.
2357         (expand_builtin_strncpy): Same.  Adjust indentation.
2358         (expand_builtin_strcmp): Same.
2359         (expand_builtin_strncmp): Same.
2360         (expand_builtin_fork_or_exec): Same.
2361         (expand_builtin): Handle more built-ins.
2362         (fold_builtin_2): Add argument.
2363         (fold_builtin_n): Make static.  Add argument.
2364         (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2365         (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2366         (fold_builtin_strpbrk): Add argument.  Call check_nul_terminated_array.
2367         (fold_call_stmt): Pass new argument to fold_builtin_n.
2368         * builtins.h: Correct a comment.
2369         * gimple-fold.c (gimple_fold_builtin_strchr): Call
2370         check_nul_terminated_array.
2371         * tree-ssa-strlen.c (handle_builtin_strlen): Call
2372         check_nul_terminated_array.
2373         (handle_builtin_strchr): Same.
2374         (handle_builtin_string_cmp): Same.
2376 2019-11-22  Martin Sebor  <msebor@redhat.com>
2378         PR tree-optimization/92501
2379         * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2380         handle unterminated arrays.  Rename local variables for clarity.
2382 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2384         * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2385         granulated_sgprs according to architecture.
2387 2019-11-22  Jan Hubicka  <jh@suse.cz>
2389         * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2390         * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2391         (memory_block_pool::reduce_free_list): ... this one.
2392         (memory_block_pool::trim): New static function.
2393         * memory-block.h (memory_block_pool::freelist_size): New constant
2394         (memory_block_pool::clear_free_list): Rename to ...
2395         (memory_block_pool::reduce_free_list): ... this one.
2396         (memory_block_pool::trim): Declare.
2398 2019-11-22  Richard Sandiford  <richard.sandiford@arm.com>
2400         * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2401         vect_cost_for_stmt.
2402         (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2403         here rather than...
2404         * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2406 2019-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
2408         * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2409         (bic_cmp0_noout): New pattern.
2410         (bic_cmp0): Likewise.
2411         (neg_scc_insn): Remove pattern.
2412         (not_scc_insn): Likewise.
2414 2019-11-21  Harald van Dijk  <harald@gigawatt.nl>
2416         * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2418 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
2420         * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2421         pedwarn instead of warning_at for fallthrough not preceding a case
2422         or default label.
2424 2019-11-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2426         PR tree-optimization/92608
2427         * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2428         of dyn_cast.
2430 2019-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
2432         * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2433         New predicate.
2434         * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2435         * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2436         special for FP comparisons that need a cror instruction eventually.
2437         (rs6000_emit_fp_cror): New function.
2438         (rs6000_emit_sCOND): Expand all floating point comparisons to one
2439         instruction, for normal FP modes, with HONOR_NANS.
2440         (rs6000_emit_cbranch): Reformat.
2441         * config/rs6000/rs6000.md (fp_rev): New iterator.
2442         (fp_two): New iterator.
2443         *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2444         *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2445         *cbranch_2insn: New define_insn_and_split.
2447 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2449         PR tree-optimization/92526
2450         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2451         versioning for alignment if the accesses do not have a consistent
2452         mask, rather than asserting that the masks are consistent.
2454 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2456         PR tree-optimization/92595
2457         * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2458         check.
2459         (vectorizable_store, vectorizable_load): Likewise.
2461 2019-11-21  Jan Hubicka  <jh@suse.cz>
2463         * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2464         (resolve_noninline_speculation, inline_small_functions): Avoid
2465         redundant updates.
2467 2019-11-21  Richard Biener  <rguenther@suse.de>
2469         * lra.c (lra_insn_recog_data_pool): New.
2470         (free_insn_recog_data): Adjust.
2471         (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2472         (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2474 2019-11-21  Richard Biener  <rguenther@suse.de>
2476         PR tree-optimization/92596
2477         * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2479 2019-11-21  Jan Hubicka  <jh@suse.cz>
2481         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2482         ready for some vectors to not be allocated.
2483         (evaluate_properties_for_edge): Document better; make
2484         known_vals and known_aggs caller allocated; avoid determining
2485         values of parameters which are not used.
2486         (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2487         known_aggs.
2488         * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2489         (do_estimate_edge_size): Likewise.
2490         (do_estimate_edge_hints): Likewise.
2491         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2492         values are not known.
2493         (ipa_release_agg_values): Add option to not release vector itself.
2494         * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2496 2019-11-21  Richard Biener  <rguenther@suse.de>
2498         * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2499         (loop_iterator::to_visit): Use an auto_vec with internal storage.
2500         (loop_iterator::loop_iterator): Adjust.
2501         * cfganal.c (compute_dominance_frontiers_1): Fold into...
2502         (compute_dominance_frontiers): ... this.  Hoist invariant
2503         get_immediate_dominator call.
2504         (compute_idf): Use a work-set instead of a work-list for more
2505         optimal iteration order and duplicate avoidance.
2506         * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2507         the vector all the time, instead pre-allocate the vector only
2508         once.
2509         (delete_update_ssa): Simplify.
2510         * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2512 2019-11-21  Jakub Jelinek  <jakub@redhat.com>
2514         PR tree-optimization/91355
2515         * tree-ssa-sink.c (select_best_block): Use >= rather than >
2516         for early_bb scaled count with best_bb count comparison.
2518         * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2519         preffer -> prefer.
2520         * ipa-inline.c (edge_badness): Likewise.
2521         * lto-streamer.h (class lto_location_cache): Likewise.
2522         * tree-ssa-sink.c (select_best_block): Likewise.  Fix comment typos,
2523         gratutious -> gratuitous.
2525 2019-11-21  Richard Biener  <rguenther@suse.de>
2527         Revert
2528         2019-09-17  Richard Biener  <rguenther@suse.de>
2530         PR tree-optimization/91790
2531         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2532         use the correct DR for setting up realignment.
2534 2019-11-21  Richard Biener  <rguenther@suse.de>
2536         * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2537         (equiv_class_obstack): New.
2538         (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2539         (perform_var_substitution): Initialize equiv_class_obstack.
2540         (free_var_substitution_info): Free equiv_class_obstack.
2542 2019-11-20  Jan Hubicka  <jh@suse.cz>
2544         * ipa-inline.c (want_early_inline_function_p): Do not estimate
2545         edge growth when callee function is very large.
2546         * ipa-inline.h (estimate_min_edge_growth): New.
2548 2019-11-20  Jan Hubicka  <jh@suse.cz>
2550         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2551         negative time in calls summary; correct roundoff errors
2552         leading to negative times.
2553         (ipa_merge_fn_summary_after_inlining): Update calls size time table
2554         if present.
2555         (ipa_update_overall_fn_summary): Add RESET parameter.
2556         * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2557         * ipa-inline-transform.c (inline_call): Enable incremental updates.
2559 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
2561         * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2562         def types for two-operation SLP.
2564 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
2566         PR testsuite/92366
2567         * doc/sourcebuild.texi (vect_char_add): Document.
2569 2019-11-20  Alexandre Oliva <oliva@adacore.com>
2571         * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2572         * function.c (record_final_call): Record even calls that might
2573         have been in the cgraph.
2574         * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2575         callees.
2577 2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>
2579         * configure.ac: Use https for gcc.gnu.org
2580         * configure: Regenerated.
2581         * doc/install.texi: Use https for gcc.gnu.org.
2582         * doc/sourcebuild.texi: Likewise.
2584 2019-11-20  Julian Brown  <julian@codesourcery.com>
2586         * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2588 2019-11-20  Jan Hubicka  <jh@suse.cz>
2590         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2591         parameter and update call_size_time_table.
2592         (ipa_fn_summary::max_size_time_table_size): New constant.
2593         (estimate_calls_size_and_time_1): Break out from ...
2594         (estimate_calls_size_and_time): ... here; implement summary production.
2595         (summarize_calls_size_and_time): New function.
2596         (ipa_call_context::estimate_size_and_time): Bypass
2597         estimate_calls_size_and_time for leaf functions.
2598         (ipa_update_overall_fn_summary): Likewise.
2599         * ipa-fnsummary.h (call_size_time_table): New.
2600         (ipa_fn_summary::account_size_time): Update prototype.
2602 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
2604         * doc/invoke.texi (-Wc11-c2x-compat): Document.
2606 2019-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
2608         PR85678
2609         * common.opt (fcommon): Change init to 1.
2610         * doc/invoke.texi (-fcommon): Update documentation.
2612 2019-11-20  Jan Hubicka  <jh@suse.cz>
2614         * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2615         to ordinary array.
2617 2019-11-20  Jan Hubicka  <jh@suse.cz>
2619         * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2620         Add allocator parameter.
2621         (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2622         (fibonacci_heap<K,V>::m_allocator): New.
2623         (fibonacci_heap<K,V>::m_own_allocator): New.
2624         (fibonacci_heap<K,V>::insert): Use allocator.
2625         (fibonacci_heap<K,V>::extract_min): Likewise.
2626         (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2627         allocator.
2628         (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2629         on stack.
2630         * fibonacci_heap.c: Include alloc-pool
2631         (test_empty_heap): Initialize allocator.
2632         (test_union): Likewise.
2633         * bb-reorder.c: Include alloc-pool.h.
2634         * tracer.c: Inlclude alloc-pool.h.
2636 2019-11-20  Jan Hubicka  <jh@suse.cz>
2638         * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2639         Preallocate for 32 entries.
2640         (DFS::worklist): Likewise.
2641         (DFS::DFS): Do not initialize sccstack and worklist.
2642         (DFS::~DFS): Do not release sccstack.
2644 2019-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2646         PR target/92573
2647         * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2648         Handle UNORDERED if !HONOR_NANS.
2650 2019-11-20  Jan Hubicka  <jh@suse.cz>
2652         * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2653         (edge_badness): ... here.
2654         (inline_small_functions): Use monotonicity of badness calculation
2655         to avoid redundant updates.
2657 2019-11-20  Richard Biener  <rguenther@suse.de>
2659         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2660         constructors we are actually analyzing.
2661         (vect_slp_check_for_constructors): Do not vectorize uniform
2662         constuctors, do not dump here.
2664 2019-11-20  Richard Biener  <rguenther@suse.de>
2666         PR tree-optimization/92537
2667         * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2668         vectorization validity check...
2669         (vect_slp_analyze_operations): ... here.
2671 2019-11-20  Claudiu Zissulescu  <claziss@synopsys.com>
2673         * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2674         (make_pass_arc_predicate_delay_insns): Likewise.
2675         * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2676         method, remove clone.
2677         (class pass_arc_predicate_delay_insns): Likewise.
2678         (arc_init): Remove registering of ARC specific passes.
2679         * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2680         * config/arc/arc-passes.def: New file.
2682 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
2684         PR middle-end/90840
2685         * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2686         and has a mode that doesn't have corresponding integral type.
2688         PR target/90867
2689         * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2690         clear opts->x_ix86_isa_flags{,2} here...
2691         (ix86_valid_target_attribute_inner_p): ... but here when seeing
2692         arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.
2694         PR c/90898
2695         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2696         assertion.
2697         (insert_clobbers_for_var): Fix a typo in function comment.
2699 2019-11-20  Jiangning Liu  <jiangning.liu@amperecomputing.com>
2700             Jakub Jelinek  <jakub@redhat.com>
2702         PR middle-end/91195
2703         * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2704         earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
2705         load.
2707 2019-11-20  Georg-Johann Lay  <avr@gjlay.de>
2709         Make 0-series device specs work with older versions of avr-gcc.
2711         PR target/92545
2712         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2713         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2714         <*link_pm_base_address>: Don't write spec.
2715         <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2717 2019-11-20  Richard Biener  <rguenther@suse.de>
2719         PR c/92088
2720         * builtins.c (compute_objsize): Deal with VLAs.
2722 2019-11-19  Pat Haugen  <pthaugen@us.ibm.com>
2724         * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2725         from common code.
2726         (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2727         call new function.
2728         (power9_sched_reorder2): Call new function.
2729         (rs6000_sched_reorder2): Likewise.
2731 2019-11-18  Jan Hubicka  <jh@suse.cz>
2733         * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2734         (estimate_calls_size_and_time): Update.
2736 2019-11-18  Jan Hubicka  <jh@suse.cz>
2738         * ipa-inline.c (inlining_speedup): New function.
2739         (edge_badness): Use it.
2741 2019-11-19  Zoran Jovanovic <zoran.jovanovic@mips.com>
2742                         Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
2744         * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2745         Mark as not having "likely" version.
2746         * config/mips/mips.md (insn_count): The simd_div instruction with
2747         TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2748         (can_delay): Exclude simd_branch.
2749         (defile_delay *): Add simd_branch instructions.
2750         They have one regular delay slot.
2752 2019-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2754         Revert:
2755         2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2757         * cse.c (cse_insn): Delete no-op register moves too.
2758         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2759         Take a second comparison to control the value for NE.
2760         (mask_to_comparison): Handle unsigned comparisons.
2761         (simplify_logical_relational_operation): Likewise.  Update call
2762         to comparison_to_mask.  Handle AND if !HONOR_NANs.
2763         (simplify_binary_operation_1): Call the above for AND too.
2765 2019-11-19  Martin Liska  <mliska@suse.cz>
2767         * toplev.c (general_init): Move the call...
2768         (toplev::main): ... here as we need init_options_struct
2769         being called.
2771 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
2773         PR target/79262
2774         * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2775         vec_to_scalar_cost.
2777 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
2779         * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2780         (armv7-a): Likewise.
2781         (armv7ve): Likewise.
2783 2019-11-19  Richard Biener  <rguenther@suse.de>
2785         PR tree-optimization/92581
2786         * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2787         condition reduction chains gather all conditions involved
2788         for computing the index reduction vector.
2790 2019-11-19  Dennis Zhang  <dennis.zhang@arm.com>
2792         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2793         AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2794         AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2795         AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2796         AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2797         (aarch64_init_memtag_builtins): New.
2798         (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2799         (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2800         (aarch64_expand_builtin_memtag): New.
2801         (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2802         (AARCH64_BUILTIN_SUBCODE): New macro.
2803         (aarch64_resolve_overloaded_memtag): New.
2804         (aarch64_resolve_overloaded_builtin_general): New. Call
2805         aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2806         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2807         __ARM_FEATURE_MEMORY_TAGGING when enabled.
2808         (aarch64_resolve_overloaded_builtin): Call
2809         aarch64_resolve_overloaded_builtin_general.
2810         * config/aarch64/aarch64-protos.h
2811         (aarch64_resolve_overloaded_builtin_general): New declaration.
2812         * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2813         (TARGET_MEMTAG): Likewise.
2814         * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2815         (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2816         (irg, gmi, subp, addg, ldg, stg): New instructions.
2817         * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2818         (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2819         (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2820         (__arm_mte_get_tag): Likewise.
2821         * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2822         (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2823         * config/arm/types.md (memtag): New.
2824         * doc/invoke.texi (-memtag): Update description.
2826 2019-11-19  Richard Henderson  <richard.henderson@linaro.org>
2828         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2829         to define __GCC_ASM_FLAG_OUTPUTS__.
2830         * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2831         (arm_option_params_internal): Swap out targetm.md_asm_adjust
2832         depending on TARGET_THUMB1.
2833         * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2835 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2837         PR target/92549
2838         * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2840         PR middle-end/91450
2841         * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2842         operand is negative and one non-negative, compare the non-negative
2843         one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
2844         don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2845         and s2 == 0, unless one of them is known to be negative.  Remove
2846         tem2 variable, use tem where tem2 has been used before.
2848 2019-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2850         * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2852 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2854         PR tree-optimization/92557
2855         * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2856         vmode rather than asserting it always is.
2858 2019-11-19  Richard Biener  <rguenther@suse.de>
2860         PR tree-optimization/92554
2861         * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2862         for the actual condition stmt and deal with sign-changes.
2864 2019-11-19  Richard Biener  <rguenther@suse.de>
2866         PR tree-optimization/92555
2867         * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2868         for non-SLP stmts.
2870 2019-11-19  Martin Liska  <mliska@suse.cz>
2872         PR bootstrap/92540
2873         * config/riscv/riscv.c (riscv_address_insns): Initialize
2874         addr in order to remove boostrap -Wmaybe-uninitialized
2875         error.
2877 2019-11-18  Martin Sebor  <msebor@redhat.com>
2879         PR tree-optimization/92493
2880         * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2881         assignment.
2883 2019-11-18  Giuliano Belinassi  <giuliano.belinassi@usp.br>
2885         * cfgloop.c (get_loop_body_in_custom_order): New.
2886         * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2887         * tree-loop-distribution.c (class loop_distribution): New.
2888         (bb_top_order_cmp): Remove.
2889         (bb_top_order_cmp_r): New.
2890         (create_rdg_vertices): Move into class loop_distribution.
2891         (stmts_from_loop): Same as above.
2892         (update_for_merge): Same as above.
2893         (partition_merge_into): Same as above.
2894         (get_data_dependence): Same as above.
2895         (data_dep_in_cycle_p): Same as above.
2896         (update_type_for_merge): Same as above.
2897         (build_rdg_partition_for-vertex): Same as above.
2898         (classify_builtin_ldst): Same as above.
2899         (classify_partition): Same as above.
2900         (share_memory_accesses): Same as above.
2901         (rdg_build_partitions): Same as above.
2902         (pg_add_dependence_edges): Same as above.
2903         (build_partition_graph): Same as above.
2904         (merge_dep_scc_partitions): Same as above.
2905         (break_alias_scc_partitions): Same as above.
2906         (finalize_partitions): Same as above.
2907         (distribute_loop): Same as above.
2908         (bb_top_order_init): New method
2909         (bb_top_order_destroy): New method.
2910         (get_bb_top_order_index_size): New method.
2911         (get_bb_top_order_index_index): New method.
2912         (get_bb_top_order_index_index): New method.
2913         (loop_distribution::execute): New method.
2914         (pass_loop_distribution::execute): Instantiate loop_distribution.
2916 2019-11-18  Jan Hubicka  <jh@suse.cz>
2918         PR ipa/92508
2919         * ipa-inline.c (inline_small_functions): Add new edges after reseting
2920         caches.
2921         * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2923 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2925         * doc/sourcebuild.texi (vect_check_ptrs): Document.
2926         * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2927         * doc/md.texi: Document them.
2928         * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2929         internal functions.
2930         * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2931         * internal-fn.c (check_ptrs_direct): New macro.
2932         (expand_check_ptrs_optab_fn): Likewise.
2933         (direct_check_ptrs_optab_supported_p): Likewise.
2934         (internal_check_ptrs_fn_supported_p): New fuction.
2935         * tree-data-ref.c: Include internal-fn.h.
2936         (create_ifn_alias_checks): New function.
2937         (create_intersect_range_checks): Use it.
2938         * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2939         (optab, cmp_op): Handle it.
2940         (raw_war, unspec): New int attributes.
2941         * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2942         constants.
2943         * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2944         New predicate.
2945         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2946         expander.
2947         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2948         pattern.
2950 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2952         * tree.c (build_vector_from_ctor): Directly return a zero vector for
2953         empty constructors.
2955 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2957         * cse.c (cse_insn): Delete no-op register moves too.
2958         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2959         Take a second comparison to control the value for NE.
2960         (mask_to_comparison): Handle unsigned comparisons.
2961         (simplify_logical_relational_operation): Likewise.  Update call
2962         to comparison_to_mask.  Handle AND if !HONOR_NANs.
2963         (simplify_binary_operation_1): Call the above for AND too.
2965 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2967         * fold-const.c (native_encode_vector): Turn into a wrapper function,
2968         splitting the main code out into...
2969         (native_encode_vector_part): ...this new function.
2970         (native_decode_vector_tree): New function.
2971         (fold_view_convert_vector_encoding): Likewise.
2972         (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2973         to VECTOR_TYPEs.
2975 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2977         * tree-data-ref.c (create_intersect_range_checks_index): If the
2978         alias pair describes simple WAW and WAR dependencies, just check
2979         whether the first B access overlaps later A accesses.
2980         (create_waw_or_war_checks): New function that performs the same
2981         optimization on addresses.
2982         (create_intersect_range_checks): Call it.
2984 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2986         * lra-constraints.c (valid_address_p): Take the operand and a
2987         constraint as argument.  If the operand is a MEM and the constraint
2988         is a memory constraint, check whether the eliminated form of the
2989         MEM already satisfies the constraint.
2990         (process_address_1): Update calls accordingly.
2992 2019-11-18  Tom Tromey  <tromey@adacore.com>
2994         * doc/tm.texi: Rebuild.
2995         * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2996         * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2998 2019-11-18  Richard Biener  <rguenther@suse.de>
3000         PR tree-optimization/92516
3001         * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
3002         argument, hoist bst_map creation/destruction to ...
3003         (vect_analyze_slp): ... here, forming a true graph with
3004         SLP instances being the entries.
3005         (vect_detect_hybrid_slp_stmts): Remove wrapper.
3006         (vect_detect_hybrid_slp): Use one visited set for all
3007         graph entries.
3008         (vect_slp_analyze_node_operations): Simplify visited/lvisited
3009         to hash-sets of slp_tree.
3010         (vect_slp_analyze_operations): Likewise.
3011         (vect_bb_slp_scalar_cost): Remove wrapper.
3012         (vect_bb_vectorization_profitable_p): Use one visited set for
3013         all graph entries.
3014         (vect_schedule_slp_instance): Elide bst_map use.
3015         (vect_schedule_slp): Likewise.
3017 2019-11-18  Richard Biener  <rguenther@suse.de>
3019         * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
3020         was vectorized with just external refs fail.
3022 2019-11-18  Martin Liska  <mliska@suse.cz>
3024         PR ipa/92525
3025         * ipa-icf.c (sem_function::init): Unset m_checker
3026         at the end of the function.
3028 2019-11-18  Richard Biener  <rguenther@suse.de>
3030         PR tree-optimization/92558
3031         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
3032         reducting the width of a reduction vector def update new_phis.
3034 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3036         * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
3037         and s390*-*-linux-musl* targets.
3038         * configure: Regenerate.
3040 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3042         * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
3043         (MUSL_DYNAMIC_LINKER64): Define.
3045 2019-11-18  Martin Liska  <mliska@suse.cz>
3047         * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
3048         message for an unknown counter.
3049         (dbg_cnt_process_single_pair): Support 0 as minimum value.
3050         (dbg_cnt_process_opt): Remove unreachable code.
3052 2019-11-18  Martin Liska  <mliska@suse.cz>
3054         PR ipa/92529
3055         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
3056         Compare LHS types of NOP_EXPR.
3058 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
3060         * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
3061         "initial_pass_name" argument -- by running "*clean_state" pass.
3062         Also free the "initial_pass_name" when done.
3064 2019-11-18  Richard Biener  <rguenther@suse.de>
3066         PR rtl-optimization/92462
3067         * alias.c (find_base_term): Restrict the look through ANDs.
3068         (find_base_value): Likewise.
3070 2019-11-18  Georg-Johann Lay  <avr@gjlay.de>
3072         Add support for AVR devices from the 0-series.
3074         PR target/92545
3075         * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
3076         * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
3077         * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
3078         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
3079         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3080         <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
3081         for spec definitions.
3082         * doc/avr-mmcu.texi: Regenerate.
3084 2019-11-18  Hongtao Liu  <hongtao.liu@intel.com>
3086         PR target/92448
3087         * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
3088         Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
3089         * config/i386/i386-option.c (ix86_vec_cost): Ditto.
3090         (ix86_reassociation_width): Ditto.
3091         * config/i386/i386-options.c (ix86_option_override_internal):
3092         Replace TARGET_AVX128_OPTIAML with
3093         ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
3094         * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
3095         (TARGET_AVX128_OPTIMAL): Deleted.
3096         * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
3097         DEF_TUNE.
3099 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3101         * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
3102         (@cceq_ior_compare_<mode> for GPR): ... this.  Allow GPR instead of
3103         just SI.
3104         (cceq_rev_compare): Rename to...
3105         (@cceq_rev_compare_<mode> for GPR): ... this.  Allow GPR instead of
3106         just SI.
3107         (define_split for <bd>tf_<mode>): Add SImode first argument to
3108         gen_cceq_ior_compare.
3110 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3112         * common/config/powerpcspe: Delete.
3114 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3116         * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
3117         output in UNSPEC_WRFFR.
3119 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3121         * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
3122         the index tests to have the form (unsigned T) (B - A + bias) <= limit.
3124 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3126         * tree-data-ref.c (create_intersect_range_checks_index)
3127         (create_intersect_range_checks): Print dump messages.
3129 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3131         * tree-data-ref.c (dump_alias_pair): New function.
3132         (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
3134 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3136         * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
3137         * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
3138         merging data references with different steps.
3139         (create_intersect_range_checks_index): Take a
3140         dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
3141         Bail out if DR_ALIAS_MIXED_STEPS is set.
3142         (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
3143         instead of two dr_with_seg_lens.  Update call to
3144         create_intersect_range_checks_index.
3145         (create_runtime_alias_checks): Update call accordingly.
3147 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3149         * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
3150         (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
3151         (dr_with_seg_len_pair_t::sequencing): New enum.
3152         (dr_with_seg_len_pair_t::flags): New member variable.
3153         (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
3154         parameter and initialize the flags member variable.
3155         * tree-loop-distribution.c (compute_alias_check_pairs): Update
3156         call accordingly.
3157         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3158         Ensure the two data references in an alias pair are in statement
3159         order, if there is a defined order.
3160         * tree-data-ref.c (prune_runtime_alias_test_list): Use
3161         DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
3162         swapped the references in a dr_with_seg_len_pair_t.  OR together
3163         the flags when merging two dr_with_seg_len_pair_ts.  After merging,
3164         try to restore the original dr_with_seg_len order, updating the
3165         flags if that fails.
3167 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3169         * tree-data-ref.c (prune_runtime_alias_test_list): Delay
3170         swapping the dr_as based on init values until we've decided
3171         whether to merge them.
3173 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3175         * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
3176         two accesses in each dr_with_seg_len_pair_t before trying to
3177         combine separate dr_with_seg_len_pair_ts.
3178         * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
3179         that here.
3180         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3182 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3184         * config/aarch64/aarch64-sve.md
3185         (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3186         (scatter_store<SVE_24:mode><v_int_container>): ...this.
3187         (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3188         (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
3189         (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3190         (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
3191         (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
3192         pattern.
3193         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3194         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3195         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3196         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3198 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3200         * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
3201         (SVE_4HSI): New mode iterators.
3202         (ANY_EXTEND2): New code iterator.
3203         * config/aarch64/aarch64-sve.md
3204         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
3205         Extend to...
3206         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
3207         ...this, handling extension to partial modes as well as full modes.
3208         Describe the extension as a predicated rather than unpredicated
3209         extension.
3210         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3211         Likewise extend to...
3212         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
3213         ...this, making the same adjustments.
3214         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3215         Likewise extend to...
3216         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
3217         ...this, making the same adjustments.
3218         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3219         Likewise extend to...
3220         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
3221         ...this, making the same adjustments.
3222         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
3223         New pattern.
3224         (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
3225         extension predicate.
3226         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3227         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3228         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3229         Describe the extension as a predicated rather than unpredicated
3230         extension.
3231         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3232         Likewise.  Canonicalize to a constant extension predicate.
3233         * config/aarch64/aarch64-sve-builtins-base.cc
3234         (svld1_gather_extend_impl::expand): Add an extra predicate for
3235         the extension.
3236         (svldff1_gather_extend_impl::expand): Likewise.
3238 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3240         * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
3241         iterators.
3242         * config/aarch64/aarch64-sve.md
3243         (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3244         (gather_load<SVE_24:mode><v_int_container>): ...this.
3245         (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3246         (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
3247         (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3248         (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
3249         (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
3250         New pattern.
3251         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3252         (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3253         Allow the nominal extension predicate to be different from the
3254         load predicate.
3255         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3256         (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3258 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3260         * config/aarch64/aarch64-sve.md
3261         (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
3262         * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
3263         function.
3264         (aarch64_sve_adjust_stmt_cost): Call it.
3266 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3268         * config/aarch64/aarch64-sve.md
3269         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
3270         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3271         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3272         Combine into...
3273         (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3274         ...this new pattern, handling extension to partial modes as well
3275         as full modes.  Describe the extension as a predicated rather than
3276         unpredicated extension.
3277         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3278         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3279         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3280         Combine into...
3281         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3282         ...this new pattern, handling extension to partial modes as well
3283         as full modes.  Describe the extension as a predicated rather than
3284         unpredicated extension.
3285         * config/aarch64/aarch64-sve-builtins.cc
3286         (function_expander::use_contiguous_load_insn): Add an extra
3287         predicate for extending loads.
3288         * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3289         (aarch64_sve_adjust_stmt_cost): Likewise.
3290         (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3291         the cost of SVE vector stmts.
3293 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3295         * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3296         (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3297         * config/aarch64/aarch64-sve.md
3298         (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3299         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3300         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3301         comment.  Avoid new narrower_mask ambiguity.
3302         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3303         (*cond_uxt<mode>_2): Update comment.
3304         (*cond_uxt<mode>_any): Likewise.
3306 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3308         * config/aarch64/aarch64-modes.def: Define partial SVE vector
3309         float modes.
3310         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3311         function.
3312         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3313         new vector float modes.
3314         (aarch64_sve_container_bits): New function.
3315         (aarch64_sve_pred_mode): Likewise.
3316         (aarch64_get_mask_mode): Use it.
3317         (aarch64_sve_element_int_mode): Handle structure modes and partial
3318         modes.
3319         (aarch64_sve_container_int_mode): New function.
3320         (aarch64_vectorize_related_mode): Return SVE modes when given
3321         SVE modes.  Handle partial modes, taking the preferred number
3322         of units from the size of the given mode.
3323         (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3324         in registers.
3325         (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3326         (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3327         (aarch64_split_sve_subreg_move): Use the mode form of
3328         aarch64_sve_pred_mode.
3329         (aarch64_secondary_reload): Handle partial modes in the same way
3330         as full big-endian vectors.
3331         (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3332         (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3333         merging with the Advanced SIMD modes.  If two modes have the
3334         same size, try the Advanced SIMD mode first.
3335         (aarch64_simd_valid_immediate): Use the container rather than
3336         the element mode for INDEX constants.
3337         (aarch64_simd_vector_alignment): Make the alignment of partial
3338         SVE vector modes the same as their minimum size.
3339         (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3340         * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3341         (mov<SVE_ALL:mode>): ...this.
3342         (movmisalign<SVE_FULL:mode>): Extend to...
3343         (movmisalign<SVE_ALL:mode>): ...this.
3344         (*aarch64_sve_mov<mode>_le): Rename to...
3345         (*aarch64_sve_mov<mode>_ldr_str): ...this.
3346         (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3347         (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this.  Handle
3348         partial modes regardless of endianness.
3349         (aarch64_sve_reload_be): Rename to...
3350         (aarch64_sve_reload_mem): ...this and enable for little-endian.
3351         Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3352         (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3353         (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3354         (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3355         (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3356         (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3357         (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3358         (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3359         (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3360         (maskload<SVE_FULL:mode><vpred>): Extend to...
3361         (maskload<SVE_ALL:mode><vpred>): ...this.
3362         (maskstore<SVE_FULL:mode><vpred>): Extend to...
3363         (maskstore<SVE_ALL:mode><vpred>): ...this.
3364         (vec_duplicate<SVE_FULL:mode>): Extend to...
3365         (vec_duplicate<SVE_ALL:mode>): ...this.
3366         (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3367         (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3368         (sve_ld1r<SVE_FULL:mode>): Extend to...
3369         (sve_ld1r<SVE_ALL:mode>): ...this.
3370         (vec_series<SVE_FULL_I:mode>): Extend to...
3371         (vec_series<SVE_I:mode>): ...this.
3372         (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3373         (*vec_series<SVE_I:mode>_plus): ...this.
3374         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3375         new VPRED ambiguity.
3376         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3377         (add<SVE_FULL_I:mode>3): Extend to...
3378         (add<SVE_I:mode>3): ...this.
3379         * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3380         (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3381         (VPRED, vpred): Likewise.
3382         (Vctype): New iterator.
3383         (vw): Remove SVE modes.
3385 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3387         * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3388         (SVE_PARTIAL_I): ...this.
3389         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3391 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3393         * config/aarch64/iterators.md (SVE_ALL): Rename to...
3394         (SVE_FULL): ...this.
3395         (SVE_I): Rename to...
3396         (SVE_FULL_I): ...this.
3397         (SVE_F): Rename to...
3398         (SVE_FULL_F): ...this.
3399         (SVE_BHSI): Rename to...
3400         (SVE_FULL_BHSI): ...this.
3401         (SVE_HSD): Rename to...
3402         (SVE_FULL_HSD): ...this.
3403         (SVE_HSDI): Rename to...
3404         (SVE_FULL_HSDI): ...this.
3405         (SVE_HSF): Rename to...
3406         (SVE_FULL_HSF): ...this.
3407         (SVE_SD): Rename to...
3408         (SVE_FULL_SD): ...this.
3409         (SVE_SDI): Rename to...
3410         (SVE_FULL_SDI): ...this.
3411         (SVE_SDF): Rename to...
3412         (SVE_FULL_SDF): ...this.
3413         (SVE_S): Rename to...
3414         (SVE_FULL_S): ...this.
3415         (SVE_D): Rename to...
3416         (SVE_FULL_D): ...this.
3417         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3418         * config/aarch64/aarch64-sve2.md: Likewise.
3420 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3422         * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3423         New option.
3424         * doc/invoke.texi: Document it.
3425         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3426         By default, return VECT_COMPARE_COSTS for SVE.
3428 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3430         * target.h (VECT_COMPARE_COSTS): New constant.
3431         * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3432         * doc/tm.texi: Regenerate.
3433         * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3434         * targhooks.c (default_autovectorize_vector_modes): Likewise.
3435         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3436         Likewise.
3437         * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3438         * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3439         * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3440         * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3441         * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3442         (_loop_vec_info::vec_inside_cost): New member variables.
3443         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3444         (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3445         (vect_analyze_loop): When autovectorize_vector_modes returns
3446         VECT_COMPARE_COSTS, try vectorizing the loop with each available
3447         vector mode and picking the one with the lowest cost.
3448         (vect_estimate_min_profitable_iters): Record the computed costs
3449         in the loop_vec_info.
3451 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3453         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3454         element type rather than an element mode.
3455         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3456         Use get_vectype_for_scalar_type to query the natural types
3457         for a given element type rather than basing everything on
3458         GET_MODE_SIZE (vinfo->vector_mode).  Limit int_mode_for_size
3459         query to MAX_FIXED_MODE_SIZE.
3460         (duplicate_and_interleave): Update call accordingly.
3461         * tree-vect-loop.c (vectorizable_reduction): Likewise.
3463 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3465         * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3466         optional maximum nunits.
3467         (get_vectype_for_scalar_type): Likewise.  Also declare a form that
3468         takes an slp_tree.
3469         (get_mask_type_for_scalar_type): Take an optional slp_tree.
3470         (vect_get_mask_type_for_stmt): Likewise.
3471         * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3472         the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3473         * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3474         vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3475         to get an assumed vector type for data references.
3476         * tree-vect-slp.c (vect_update_shared_vectype): New function.
3477         (vect_update_all_shared_vectypes): Likewise.
3478         (vect_build_slp_tree_1): Pass the group size to
3479         vect_get_vector_types_for_stmt.  Use vect_update_shared_vectype
3480         for BB vectorization.
3481         (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3482         before building the vectof from scalars.
3483         (vect_analyze_slp_instance): Pass the group size to
3484         get_vectype_for_scalar_type.
3485         (vect_slp_analyze_node_operations_1): Don't recompute the vector
3486         types for BB vectorization here; just handle the case in which
3487         we deferred the choice for booleans.
3488         (vect_get_constant_vectors): Pass the slp_tree to
3489         get_vectype_for_scalar_type.
3490         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3491         (vectorizable_call): Likewise.
3492         (vectorizable_simd_clone_call): Likewise.
3493         (vectorizable_conversion): Likewise.
3494         (vectorizable_shift): Likewise.
3495         (vectorizable_operation): Likewise.
3496         (vectorizable_comparison): Likewise.
3497         (vect_is_simple_cond): Take the slp_tree as argument and
3498         pass it to get_vectype_for_scalar_type.
3499         (vectorizable_condition): Update call accordingly.
3500         (get_vectype_for_scalar_type): Take a group_size argument.
3501         For BB vectorization, limit the the vector to that number
3502         of elements.  Also define an overload that takes an slp_tree.
3503         (get_mask_type_for_scalar_type): Add an slp_tree argument and
3504         pass it to get_vectype_for_scalar_type.
3505         (vect_get_vector_types_for_stmt): Add a group_size argument
3506         and pass it to get_vectype_for_scalar_type.  Don't use the
3507         cached vector type for BB vectorization if a group size is given.
3508         Handle data references in that case.
3509         (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3510         pass it to get_mask_type_for_scalar_type.
3512 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
3514         * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3515         parameter.
3516         (estimate_edge_time): Use it.
3517         * ipa-inline-analysis.c (do_estimate_edge_time): Add
3518         ret_nonspec_time parameter.
3520 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3522         * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3524 2019-11-15  Nick Clifton  <nickc@redhat.com>
3525             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3527         PR target/65649
3528         * config/microblaze/microblaze.c (print_operand): Print value as long.
3530 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
3532         * ipa-inline.c (edge_badness, inline_small_functions): Revert
3533         accidental commit.
3535 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3537         * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3538         (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3540 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3542         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3543         (gcn_conditional_register_usage): Use constants in place of hard-coded
3544         values.
3545         (gcn_hsa_declare_function_name): Set lower bound for number of
3546         SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3547         MAX_NORMAL_VGPR_COUNT.
3549 2019-11-15  Martin Jambor  <mjambor@suse.cz>
3551         * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3552         declaration.
3554 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3556         * config/gcn/gcn.c (default_requested_args): New.
3557         (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3558         set with default_requested_args.
3559         (gcn_conditional_register_usage): Limit register usage of non-kernel
3560         functions.  Reassign fixed registers if a non-standard set of args is
3561         requested.
3562         * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3564 2019-11-15  Feng Xue  <fxue@os.amperecomputing.com>
3566         PR ipa/92528
3567         * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3568         aggregate jump function when inlined-to caller has no edge summary.
3570 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3572         * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3574 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3576         * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3577         prologue use of v0.
3578         (print_operand_address): Use v1 for zero vector offset.
3580 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3582         PR tree-optimization/92515
3583         * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3584         types when converting a vector/scalar shift into a vector/vector one,
3585         using tree_nop_conversion_p instead of useless_type_conversion_p.
3586         Move the conversion code to the transform block.
3588 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3590         * read-rtl-function.c
3591         (function_reader::add_fixup_source_location): Take additional
3592         parameter of a column.
3593         (function_reader::maybe_read_location): Optionally parse column
3594         information and pass to add_fixup_source_location.
3596 2019-11-15  Richard Biener  <rguenther@suse.de>
3598         PR tree-optimization/92512
3599         * tree-vect-loop.c (check_reduction_path): Fix operand index
3600         computability check.  Add check for second use in COND_EXPRs.
3602 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3604         PR target/92515
3605         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3606         VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3608 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3610         * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3611         register class for VCC_LO and VCC_HI.
3612         (gcn_spill_class): Use SGPR_REGS to spill registers in
3613         VCC_CONDITIONAL_REG.
3615 2019-11-15  Richard Biener  <rguenther@suse.de>
3617         PR tree-optimization/92324
3618         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3619         singedness of SLP reduction epilouge operations.  Also reduce
3620         the vector width for SLP reductions before doing elementwise
3621         operations if possible.
3623 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3625         * passes.c (skip_pass): Set epilogue_completed if skipping the
3626         pro_and_epilogue pass.
3628 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3630         * passes.c (should_skip_pass_p): Always run "dfinish".
3632 2019-11-15  Richard Biener  <rguenther@suse.de>
3634         * ipa-inline.c (inline_small_functions): Move assignment
3635         to next before call destroying edge.
3637 2019-11-15  Richard Biener  <rguenther@suse.de>
3639         PR tree-optimization/92039
3640         PR tree-optimization/91975
3641         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3642         previous change, treat invariants consistently as non-constant.
3643         (tree_estimate_loop_size): Ternary ops with just the first op
3644         constant are not optimized away.
3646 2019-11-15  Jakub Jelinek  <jakub@redhat.com>
3648         * gimplify.c (gimplify_call_expr): Don't call
3649         omp_resolve_declare_variant after gimplification.
3650         * omp-general.c (omp_context_selector_matches): For isa that might
3651         match in some other function, defer if in declare simd function.
3652         (omp_context_compute_score): Don't look for " score" in construct
3653         trait set.  Set *score to -1 if it can't ever match.
3654         (omp_resolve_declare_variant): If any variants need to be deferred,
3655         don't punt immediately, but compute scores of all variants and if
3656         ther eis a score winner that doesn't need to be deferred, return that.
3658 2019-11-15  Luo Xiong Hu  <luoxhu@linux.ibm.com>
3660         * ipa-comdats.c: Fix comments typo.
3661         * ipa-profile.c: Fix comments typo.
3662         * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3663         __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3664         (gimple_gen_ic_func_profiler): Likewise.
3665         (pass_ipa_tree_profile::gate): Fix comments typo.
3667 2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>
3669         * ipa-inline.c (inline_small_functions): Update iterator of next.
3671 2019-11-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3673         * lra-spills.c (assign_spill_hard_regs): Check that the spill
3674         register is suitable for the mode.
3676 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
3678         * range-op.h (range_operator::fold_range): Return a bool.
3679         * range-op.cc (range_operator::wi_fold): Assert supported type.
3680         (range_operator::fold_range): Assert supported type and return true.
3681         (operator_equal::fold_range): Return true.
3682         (operator_not_equal::fold_range): Same.
3683         (operator_lt::fold_range): Same.
3684         (operator_le::fold_range): Same.
3685         (operator_gt::fold_range): Same.
3686         (operator_ge::fold_range): Same.
3687         (operator_plus::op1_range): Adjust call to fold_range.
3688         (operator_plus::op2_range): Same.
3689         (operator_minus::op1_range): Same.
3690         (operator_minus::op2_range): Same.
3691         (operator_exact_divide::op1_range): Same.
3692         (operator_lshift::fold_range): Return true and adjust fold_range call.
3693         (operator_rshift::fold_range): Same.
3694         (operator_cast::fold_range): Return true.
3695         (operator_logical_and::fold_range): Same.
3696         (operator_logical_or::fold_range): Same.
3697         (operator_logical_not::fold_range): Same.
3698         (operator_bitwise_not::fold_range): Adjust call to fold_range.
3699         (operator_bitwise_not::op1_range): Same.
3700         (operator_cst::fold_range): Return true.
3701         (operator_identity::fold_range): Return true.
3702         (operator_negate::fold_range): Return true and adjust fold_range call.
3703         (operator_addr_expr::fold_range): Return true.
3704         (operator_addr_expr::op1_range): Adjust call to fold_range.
3705         (range_cast): Same.
3706         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3707         (range_fold_unary_symbolics_p): Same.
3709 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
3711         PR tree-optimization/92506
3712         * range-op.cc (range_operator::fold_range): Start with range undefined.
3713         (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3714         overflow is varying.
3716 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
3718         * range-op.cc (*operator*::*range): Remove calls to
3719         range_intersect, range_invert, and range_union in favor of calling
3720         the in-place API methods.
3721         (range_tests): Same.
3722         * range.cc (range_intersect): Remove.
3723         (range_union): Remove.
3724         (range_invert): Remove.
3725         * range.h (range_intersect): Remove.
3726         (range_union): Remove.
3727         (range_intersect): Remove.
3729 2019-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
3731         PR rtl-optimization/92430
3732         * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3733         (pass_jump_after_combine::execute): Perform jump threading
3734         unconditionally.
3736 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
3737             Doug Rupp <rupp@adacore.com>
3738             Olivier Hainque  <hainque@adacore.com>
3740         * config.gcc: Collapse the arm-vxworks entries into
3741         a single arm-wrs-vxworks7* one, bpabi based.  Update
3742         the default cpu from arm8 to armv7-a
3743         * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3744         we always use ARM_UNWIND_INFO.
3745         (DWARF2_UNWIND_INFO): Remove redefinition.
3746         (ARM_TARGET2_DWARF_FORMAT): Likewise.
3747         (VXWORKS_PERSONALITY): Define, to "llvm".
3748         (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3750 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
3752         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3753         _VX_CPU instead of CPU and handle arm_arch8.
3755 2019-11-14  Doug Rupp  <rupp@adacore.com>
3756             Olivier Hainque  <hainque@adacore.com>
3757             Jerome Lambourg  <lambourg@adacore.com>
3759         * config.gcc: Handle aarch64*-wrs-vxworks7*.
3760         * config/aarch64/aarch64-vxworks.h: New file.
3761         * config/aarch64/t-aarch64-vxworks: New file.
3763 2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
3764             Olivier Hainque  <hainque@adacore.com>
3766         * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3767         definition, pointless with a VxWorks specific version
3768         of crtstuff.
3769         (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3770         * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3771         New local macros, controlling the addition of vxworks specific
3772         crtstuff objects depending on the EH mechanism and kind of
3773         module being linked.
3774         (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3776 2019-11-06  Pat Bernardi  <bernardi@adacore.com>
3777             Jerome Lambourg  <lambourg@adacore.com>
3778             Olivier Hainque  <hainque@adacore.com>
3780         * config.gcc: Add comment to introduce the TARGET_VXWORKS
3781         common macro definitions, conveying VXWORKS7 or 64bit general
3782         variations.  Add a block to set gcc_cv_initfini_array
3783         unconditionally to "yes" for VxWorks7.
3784         config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3785         by default.  Update some comments.
3786         config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3787         default, to be added the end of VXWORKS_LIBS_RTP.
3788         (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3789         and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3790         redefine.
3791         (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3792         (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3793         to account for the now available TLS abilities.
3794         (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3795         (VXWORKS_HAVE_TLS): Likewise.
3797 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3799         * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3800         (vect_slp_convert_to_external): Likewise.
3801         (vect_slp_analyze_node_operations): If analysis fails, try building
3802         the node from scalars instead.
3804 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3806         * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3807         between vector types.
3808         * tree-vect-stmts.c (vectorizable_conversion): Extend the
3809         non-widening and non-narrowing path to handle standard
3810         conversion codes, if the target supports them.
3811         * expr.c (convert_move): Try using the extend and truncate optabs
3812         for vectors.
3813         * optabs-tree.c (supportable_convert_operation): Likewise.
3814         * config/aarch64/iterators.md (Vnarroqw): New iterator.
3815         * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3816         (trunc<mode><Vnarrowq>2): New patterns.
3818 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3820         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3821         require vectype and nunits_vectype to have the same size;
3822         instead assert that nunits_vectype has at least as many
3823         elements as vectype.  Don't compute a separate nunits_vectype
3824         if the scalar type is obviously the same as vectype's.
3825         Tweak dump messages.
3827 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3829         * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3830         function.
3831         (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3832         (TARGET_VECTORIZE_RELATED_MODE): Define.
3834 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3836         * tree-vectorizer.h (vec_info::mode_set): New typedef.
3837         (vec_info::used_vector_mode): New member variable.
3838         (vect_chooses_same_modes_p): Declare.
3839         * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3840         chosen vector mode in vec_info::used_vector_mode.
3841         (vect_chooses_same_modes_p): New function.
3842         * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3843         the same vector statements multiple times.
3844         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3846 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3848         * machmode.h (opt_machine_mode::operator==): New function.
3849         (opt_machine_mode::operator!=): Likewise.
3850         * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3851         (get_related_vectype_for_scalar_type): Delete.
3852         (get_vectype_for_scalar_type_and_size): Declare.
3853         * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3854         whether analysis passed or failed, and with what vector modes.
3855         Use related_vector_mode to check whether trying a particular
3856         vector mode would be redundant with the autodetected mode,
3857         and print a dump message if we decide to skip it.
3858         * tree-vect-loop.c (vect_analyze_loop): Likewise.
3859         (vect_create_epilog_for_reduction): Use
3860         get_related_vectype_for_scalar_type instead of
3861         get_vectype_for_scalar_type_and_size.
3862         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3863         with...
3864         (get_related_vectype_for_scalar_type): ...this new function.
3865         Take a starting/"prevailing" vector mode rather than a vector size.
3866         Take an optional nunits argument, with the same meaning as for
3867         related_vector_mode.  Use related_vector_mode when not
3868         auto-detecting a mode, falling back to mode_for_vector if no
3869         target mode exists.
3870         (get_vectype_for_scalar_type): Update accordingly.
3871         (get_same_sized_vectype): Likewise.
3872         * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3874 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3876         * tree-vect-stmts.c (vectorizable_call): Require the types
3877         to have the same size.
3879 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3881         * tree-vect-stmts.c (vectorizable_call): If an operand is
3882         constant or external, use get_vectype_for_scalar_type
3883         rather than get_same_sized_vectype to get its vector type.
3884         (vectorizable_conversion, vectorizable_shift): Likewise.
3885         (vectorizable_operation): Likewise.
3887 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3889         * tree-vectorizer.h (vec_info::vector_size): Replace with...
3890         (vec_info::vector_mode): ...this new field.
3891         * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3892         (vect_analyze_loop, vect_transform_loop): Likewise.
3893         * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3894         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3895         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3896         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3897         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3899 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3901         * target.h (vector_sizes, auto_vector_sizes): Delete.
3902         (vector_modes, auto_vector_modes): New typedefs.
3903         * target.def (autovectorize_vector_sizes): Replace with...
3904         (autovectorize_vector_modes): ...this new hook.
3905         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3906         Replace with...
3907         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3908         * doc/tm.texi: Regenerate.
3909         * targhooks.h (default_autovectorize_vector_sizes): Delete.
3910         (default_autovectorize_vector_modes): New function.
3911         * targhooks.c (default_autovectorize_vector_sizes): Delete.
3912         (default_autovectorize_vector_modes): New function.
3913         * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3914         of autovectorize_vector_sizes.  Use the number of units in the mode
3915         to calculate the maximum VF.
3916         * omp-low.c (omp_clause_aligned_alignment): Use
3917         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3918         Use a loop based on related_mode to iterate through all supported
3919         vector modes for a given scalar mode.
3920         * optabs-query.c (can_vec_mask_load_store_p): Use
3921         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3922         * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3923         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3924         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3925         Replace with...
3926         (aarch64_autovectorize_vector_modes): ...this new function.
3927         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3928         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3929         * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3930         (arc_autovectorize_vector_modes): ...this new function.
3931         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3932         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3933         * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3934         (arm_autovectorize_vector_modes): ...this new function.
3935         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3936         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3937         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3938         (ix86_autovectorize_vector_modes): ...this new function.
3939         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3940         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3941         * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3942         (mips_autovectorize_vector_modes): ...this new function.
3943         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3944         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3946 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3948         * tree-vect-stmts.c (vectorizable_shift): Check the number
3949         of vector elements as well as the type mode when deciding
3950         whether an op1_vectype is compatible.  Reuse the result of
3951         this check when generating vector statements.
3953 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3955         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3956         targetm.vectorize.preferred_simd_mode returns an integer mode,
3957         use mode_for_vector to decide what the vector type's mode
3958         should actually be.  Use build_vector_type_for_mode instead
3959         of build_vector_type.
3961 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3963         * target.def (get_mask_mode): Take a vector mode itself as argument,
3964         instead of properties about the vector mode.
3965         * doc/tm.texi: Regenerate.
3966         * targhooks.h (default_get_mask_mode): Update to reflect new
3967         get_mode_mask interface.
3968         * targhooks.c (default_get_mask_mode): Likewise.  Use
3969         related_int_vector_mode.
3970         * optabs-query.c (can_vec_mask_load_store_p): Update call
3971         to get_mask_mode.
3972         * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3973         first that the original mode really is a vector.
3974         * tree.c (build_truth_vector_type_for): Likewise.
3975         * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3976         get_mode_mask interface.
3977         (aarch64_expand_sve_vcond): Update call accordingly.
3978         * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3979         get_mode_mask interface.
3980         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3982 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3984         * tree.h (build_truth_vector_type): Delete.
3985         (build_same_sized_truth_vector_type): Likewise.
3986         * tree.c (build_truth_vector_type): Rename to...
3987         (build_truth_vector_type_for): ...this.  Make static and take
3988         a vector type as argument.
3989         (truth_type_for): Update accordingly.
3990         (build_same_sized_truth_vector_type): Delete.
3991         * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3992         instead of build_same_sized_truth_vector_type.
3993         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3994         (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3995         * tree-vect-patterns.c (build_mask_conversion): Likeise.
3996         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3997         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3998         (vect_build_gather_load_calls, vectorizable_call): Likewise.
3999         (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
4000         (vectorizable_store, vectorizable_condition): Likewise.
4001         (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
4002         (vect_get_mask_type_for_stmt): Use truth_type_for instead of
4003         build_truth_vector_type.
4004         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
4005         Use truth_type_for instead of build_same_sized_truth_vector_type.
4006         * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
4008 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4010         * tree.h (build_truth_vector_type_for_mode): Declare.
4011         * tree.c (build_truth_vector_type_for_mode): New function,
4012         split out from...
4013         (build_truth_vector_type): ...here.
4014         (build_opaque_vector_type): Fix head comment.
4015         * tree-vectorizer.h (supportable_narrowing_operation): Remove
4016         vec_info parameter.
4017         (vect_halve_mask_nunits): Replace vec_info parameter with the
4018         mode of the new vector.
4019         (vect_double_mask_nunits): Likewise.
4020         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4021         (vect_double_mask_nunits): Likewise.
4022         * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
4023         (vect_maybe_permute_loop_masks): Remove vinfo parameter.  Update call
4024         to vect_halve_mask_nunits, getting the required mode from the unpack
4025         patterns.
4026         (vect_set_loop_condition_masked): Update call accordingly.
4027         * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
4028         parameter and update call to vect_double_mask_nunits.
4029         (vectorizable_conversion): Update call accordingly.
4030         (simple_integer_narrowing): Likewise.  Remove vec_info parameter.
4031         (vectorizable_call): Update call accordingly.
4032         (supportable_widening_operation): Update call to
4033         vect_halve_mask_nunits.
4034         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4035         Use build_truth_vector_type_mode instead of build_truth_vector_type.
4037 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4039         * machmode.h (mode_for_int_vector): Delete.
4040         (related_int_vector_mode): Declare.
4041         * stor-layout.c (mode_for_int_vector): Delete.
4042         (related_int_vector_mode): New function.
4043         * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
4044         instead of mode_for_int_vector.
4045         (expand_vec_perm_const): Likewise.
4046         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
4047         (aarch64_evpc_sve_tbl): Likewise.
4048         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
4049         (s390_expand_vcond): Likewise.
4051 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4053         * target.def (related_mode): New hook.
4054         * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
4055         * doc/tm.texi: Regenerate.
4056         * targhooks.h (default_vectorize_related_mode): Declare.
4057         * targhooks.c (default_vectorize_related_mode): New function.
4058         * machmode.h (related_vector_mode): Declare.
4059         * stor-layout.c (related_vector_mode): New function.
4060         * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
4061         * optabs-query.c (qimode_for_vec_perm): Likewise.
4062         * tree-vect-stmts.c (get_group_load_store_type): Likewise.
4063         (vectorizable_store, vectorizable_load): Likewise
4065 2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
4067         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
4068         * config/arm/aarch-common.c (arm_md_asm_adjust): New.
4069         * config/arm/arm-c.c (arm_cpu_builtins): Define
4070         __GCC_ASM_FLAG_OUTPUTS__.
4071         * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
4072         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
4073         Define __GCC_ASM_FLAG_OUTPUTS__.
4074         * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
4075         * doc/extend.texi (FlagOutputOperands): Add documentation
4076         for ARM and AArch64.
4078         * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
4079         * config/arm/predicates.md (nz_comparison_operator): Rename
4080         from noov_comparison_operator.
4081         * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
4082         (arm_gen_dicompare_reg): Likewise.
4083         (maybe_get_arm_condition_code): Likewise.
4084         (thumb1_final_prescan_insn): Likewise.
4085         (arm_emit_coreregs_64bit_shift): Likewise.
4086         * config/arm/arm.md (addsi3_compare0): Likewise.
4087         (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
4088         (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
4089         (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
4090         (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
4091         (*mulsi3addsi_compare0_scratch): Likewise.
4092         (*mulsi3addsi_compare0_scratch_v6): Likewise.
4093         (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
4094         (*zeroextractsi_compare0_scratch): Likewise.
4095         (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
4096         (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
4097         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4098         (andsi_not_shiftsi_si_scc): Likewise.
4099         (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
4100         (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
4101         (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
4102         (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
4103         (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
4104         (*notsi_compare0, *notsi_compare0_scratch): Likewise.
4105         (return_addr_mask, *check_arch2): Likewise.
4106         (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
4107         (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
4108         (compare_scc splitters): Likewise.
4109         (movcond_addsi): Likewise.
4110         * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
4111         (*thumb2_addsi3_compare0_scratch): Likewise.
4112         (*thumb2_mulsi_short_compare0): Likewise.
4113         (*thumb2_mulsi_short_compare0_scratch): Likewise.
4114         (compare peephole2s): Likewise.
4115         * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
4116         nz_comparison_operator names.
4117         (cbranchsi4_insn): Likewise.
4119         * config/arm/constraints.md (c): Use cc_register predicate.
4121         * config/aarch64/constraints.md (c): New constraint.
4123 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4125         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
4126         ipa_merge_fn_summary_after_inlining): Micro optimize.
4128 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4130         * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
4132 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4134         * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4135         (ipa_value_range_from_jfunc): New function.
4136         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
4137         known_value_ranges parameter; use it to evalulate conditions.
4138         (evaluate_properties_for_edge): Compute known value ranges.
4139         (ipa_fn_summary_t::duplicate): Update use of
4140         evaluate_conditions_for_known_args.
4141         (estimate_ipcp_clone_size_and_time): Likewise.
4142         (ipa_merge_fn_summary_after_inlining): Likewise.
4143         * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
4145 2019-11-14  Martin Liska  <mliska@suse.cz>
4147         * ipa-inline.c (want_inline_small_function_p): Use
4148         CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
4149         of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
4151 2019-11-14  Martin Liska  <mliska@suse.cz>
4153         * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
4154         of a callee to get value of the param.
4155         * ipa-inline.c (inline_insns_auto): Use proper
4156         opt_for_fn.
4157         * opts.c (maybe_default_option): Do not overwrite param
4158         value if optimization level does not match.  Note that
4159         params usually have default value set via Init() keyword.
4160         * params.opt: Remove -param=max-inline-insns-auto-O2.
4161         * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
4162         * doc/invoke.texi: Remove documentation of
4163         max-inline-insns-auto-O2.
4165 2019-11-14  Martin Liska  <mliska@suse.cz>
4167         * tree-switch-conversion.c (switch_conversion::switch_conversion):
4168         Do not initialize m_other_count.
4169         (switch_conversion::collect): Do not count m_default_count and
4170         m_other_count as we use frequencies for edges.
4171         * tree-switch-conversion.h: Remove m_default_count and m_other_count.
4173 2019-11-14  Martin Liska  <mliska@suse.cz>
4175         PR other/92329
4176         * doc/invoke.texi: Document -fallocation-dce.
4178 2019-11-14  Martin Liska  <mliska@suse.cz>
4180         PR target/92389
4181         * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
4182         PTA_ICELAKE_CLIENT which is later interited by
4183         PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
4185 2019-11-14  Martin Liska  <mliska@suse.cz>
4187         * ipa-icf.c (sem_item_optimizer::execute): Save
4188         loaded_symbols.
4189         (sem_item_optimizer::parse_nonsingleton_classes):
4190         Return number of loaded symbols.
4191         (sem_item_optimizer::merge_classes): Print
4192         statistics about totally needed symbols.
4193         * ipa-icf.h (parse_nonsingleton_classes): Change return
4194         type.
4195         (merge_classes): Add one argument.
4197 2019-11-14  Martin Liska  <mliska@suse.cz>
4199         * ipa-icf-gimple.c (func_checker::hash_operand): Improve
4200         func_checker::hash_operand by handling of FIELD_DECLs.
4202 2019-11-14  Martin Liska  <mliska@suse.cz>
4204         * ipa-icf-gimple.h (func_checker::func_checker): Add
4205         default constructor.
4206         * ipa-icf.c (sem_function::init): Make operand_equal_p
4207         and hash_operand public.
4208         (sem_item::add_expr): Remove.
4209         (sem_item::add_type): Remove.
4210         (sem_function::hash_stmt): Use m_checker for hashing
4211         of GIMPLE statements.
4212         (sem_function::parse): Init with checker.
4213         (sem_variable::parse): Pass NULL as checker.
4214         (sem_item_optimizer::parse_funcs_and_vars):
4215         Pass checker to ::parse function.
4216         (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
4217         (sem_variable::parse): New function.
4218         (sem_variable::get_hash): Only return computed hash value.
4219         (sem_variable::init): Initialize hash of a variable.
4220         * ipa-icf.h: Remove add_expr, add_type and add func_checker
4221         to couple of functions as a new argument.
4223 2019-11-14  Martin Liska  <mliska@suse.cz>
4225         * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
4226         bail out reason.
4227         (func_checker::compare_gimple_assign): Likewise.
4229 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
4231         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
4232         change sse4.2 to sse4_2 and sse4.1 to sse4.1.
4233         * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
4235         * omp-general.c (omp_context_name_list_prop): New function.
4236         (omp_context_selector_matches): Use it.  Return 0 if it returns
4237         NULL.
4238         (omp_context_selector_props_compare): Allow equivalency of an
4239         identifier and a string literal containing no embedded zeros.
4241 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4243         * range-op.cc (RANGE3): Remove.
4244         (range_tests): Remove all selftest that check for multi-ranges.
4245         Put tests in namespace selftest.
4246         * selftest.h: Move range_tests into namespace selftest.
4247         * value-range.h (class value_range): Unfriend range_tests.
4249 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4251         * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4252         normalize_symbolics and normalize_addresses working in place.
4253         (range_fold_unary_symbolics_p): Same.
4254         (range_fold_unary_symbolics_p): Same.
4255         * value-range.cc (num_pairs): Same.
4256         (lower_bound): Same.
4257         (upper_bound): Same.
4258         (contains_p): Same.
4259         (normalize_addresses): Same.
4260         (normalize_symbolics): Same.
4261         * value-range.h (normalize_symbolics): Same.
4262         (normalize_addresses): Same.
4264 2019-11-14  Feng Xue  <fxue@os.amperecomputing.com>
4266         PR ipa/91682
4267         * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
4268         (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
4269         (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
4270         (ipa_agg_jump_function): Remove member function equal_to.
4271         (ipa_agg_jump_function_p): Remove typedef.
4272         (ipa_copy_agg_values, ipa_release_agg_values): New functions.
4273         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
4274         information for aggregate jump function.
4275         (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
4276         record last definition statement.
4277         (load_from_unmodified_param_or_agg): New function.
4278         (ipa_known_agg_contents_list): Add new field type and value, remove
4279         field constant.
4280         (build_agg_jump_func_from_list): Rename parameter const_count to
4281         value_count, build aggregate jump function from ipa_load_agg_data.
4282         (analyze_agg_content_value): New function.
4283         (extract_mem_content): Analyze memory store assignment to prepare
4284         information for aggregate jump function generation.
4285         (determine_known_aggregate_parts): Add new parameter fbi, remove
4286         parameter aa_walk_budeget_p.
4287         (update_jump_functions_after_inlining): Update aggregate jump function.
4288         (ipa_find_agg_cst_for_param): Change type of parameter agg.
4289         (try_make_edge_direct_simple_call): Add new parameter new_root.
4290         (try_make_edge_direct_virtual_call): Add new parameter new_root and
4291         new_root_info.
4292         (update_indirect_edges_after_inlining): Pass new argument to
4293         try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4294         (ipa_write_jump_function): Write aggregate jump function to file.
4295         (ipa_read_jump_function): Read aggregate jump function from file.
4296         (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4297         * ipa-cp.c (ipa_get_jf_arith_result): New function.
4298         (ipa_agg_value_from_node): Likewise.
4299         (ipa_agg_value_set_from_jfunc): Likewise.
4300         (propagate_vals_across_arith_jfunc): Likewise.
4301         (propagate_aggregate_lattice): Likewise.
4302         (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4303         (propagate_vals_across_pass_through): Call
4304         propagate_vals_across_arith_jfunc.
4305         (get_clone_agg_value): Move forward.
4306         (propagate_aggs_across_jump_function): Handle value propagation for
4307         aggregate jump function.
4308         (agg_jmp_p_vec_for_t_vec): Remove.
4309         (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4310         with vec<ipa_agg_value>.
4311         (copy_plats_to_inter, intersect_with_plats): Likewise.
4312         (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4313         (intersect_aggregate_with_edge): Likewise.
4314         (find_aggregate_values_for_callers_subset): Likewise.
4315         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4316         (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4317         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4318         (gather_context_independent_values): Likewise.
4319         (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4320         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4321         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4322         (evaluate_properties_for_edge): Likewise.
4323         (estimate_edge_devirt_benefit): Likewise.
4324         (estimate_edge_size_and_time):  Likewise.
4325         (estimate_calls_size_and_time): Likewise.
4326         (ipa_call_context::ipa_call_context): Likewise.
4327         (estimate_ipcp_clone_size_and_time):  Likewise.
4328         * ipa-fnsummary.h (ipa_call_context): Replace
4329         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4330         * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4331         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4332         (do_estimate_edge_size): Likewise.
4333         (do_estimate_edge_hints): Likewise.
4335 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4337         * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4338         binary operations.
4340 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4342         * ipa-profile.c (check_argument_count): Check properly that e_info
4343         is non-NULL; do not check descriptors.
4345 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4347         * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4348         check for ipa profiles.
4350 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4352         PR c++/92421
4353         * ipa-prop.c (update_indirect_edges_after_inlining):
4354         Mark parameter as used.
4355         * ipa-inline.c (recursive_inlining): Reset node cache
4356         after inlining.
4357         (inline_small_functions): Remove checking ifdef.
4358         * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4359         cache consistency.
4361 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4363         PR ipa/92498
4364         * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4365         is NULL.
4366         (ipa_profile): Fix reversed test.
4368 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4370         * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4371         (propagate_constants_topo): Fix typo.
4373 2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4375         * Makefile.in (OBJS): Add value-range.o.
4376         (GTFILES): Add value-range.h.
4377         * gengtype.c (open_base_files): Add value-range.h to list of
4378         header files.
4379         * tree-vrp.c: Move the following value_range related functions:
4380         ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4381         constant_p, set_undefined, set_varying, may_contain_p,
4382         singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4383         vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4384         set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4385         value_inside_range, ranges_from_anti_range, union_ranges,
4386         intersect_ranges, intersect_helper, union_helper, union_,
4387         normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4388         upper_bound, contains_p, invert, intersect...
4389         * value-range.cc: ...to here.
4390         * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4391         associated inline methods from here...
4392         * value-range.h: ...to here.
4394 2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
4396         * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4397         instead of asserting its value.
4399 (2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4401         * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4402         constructors and set methods so value_range_kind is the last
4403         argument and defaults to VR_RANGE.
4404         * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4405         * ipa-cp.c (propagate_vr_across_jump_function): Same.
4406         * ipa-prop.c (ipa_get_value_range): Same.
4407         (ipa_compute_jump_functions_for_edge): Same.
4408         * range-op.cc (value_range_from_overflowed_bounds): Same.
4409         (operator_cast::op1_range): Same.
4410         (range_tests): Same.
4411         * range.cc (range_nonzero): Same.
4412         * tree-ssanames.c (get_range_info): Same.
4413         * tree-vrp.c (value_range_equiv::set): Same.
4414         (value_range::value_range): Same.
4415         (value_range_equiv::value_range_equiv): Same.
4416         (value_range_equiv::update): Same.
4417         (value_range_equiv::deep_copy): Same.
4418         (value_range_equiv::move): Same.
4419         (value_range_equiv::set_undefined): Same.
4420         (value_range::set): Same.
4421         (value_range::set_nonzero): Same.
4422         (ranges_from_anti_range): Same.
4423         (extract_range_from_plus_minus_expr): Same.
4424         (value_range::intersect_helper): Same.
4425         (value_range_equiv::intersect): Same.
4426         (value_range::union_helper): Same.
4427         (value_range_equiv::union_): Same.
4428         (value_range::normalize_symbolics): Same.
4429         (value_range::invert): Same.
4430         (determine_value_range_1): Same.
4431         * tree-vrp.h (class value_range): Same.
4432         (class value_range_equiv): Same.
4433         * vr-values.c (set_value_range_to_nonnegative): Same.
4434         (set_value_range_to_truthvalue): Same.
4435         (vr_values::update_value_range): Same.
4436         (vr_values::extract_range_for_var_from_comparison_expr): Same.
4437         (vr_values::extract_range_from_binary_expr): Same.
4438         (vr_values::extract_range_from_comparison): Same.
4439         (vr_values::extract_range_basic): Same.
4440         (vr_values::adjust_range_with_scev): Same.
4441         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4442         (vr_values::extract_range_from_phi_node): Same.
4444 2019-11-13  Ulrich Drepper  <drepper@redhat.com>
4446         * tree-dump.c (dequeue_and_dump): Print first tree operand
4447         for VIEW_CONVERT_EXPR.
4449 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
4451         * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4452         DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4453         * real.c (get_max_float): Add norm_max argument.
4454         * real.h (get_max_float): Update prototype.
4455         * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4456         get_max_float.
4458 2019-11-13  Martin Liska  <mliska@suse.cz>
4460         * dbgcnt.c (test_sorted_dbg_counters): New.
4461         (dbgcnt_c_tests): Likewise.
4462         * selftest-run-tests.c (selftest::run_tests): Likewise.
4463         * selftest.h (dbgcnt_c_tests): Likewise.
4465 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4466             Martin Jambor  <mjambor@suse.cz>
4468         PR ipa/92454
4469         * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4470         (identify_dead_nodes): Likewise.
4472 2019-11-13  Martin Liska  <mliska@suse.cz>
4474         * ipa-icf.c (sem_function::equals_private): Do not overuse
4475         push/pop_cfun functions.
4477 2019-11-13  Martin Liska  <mliska@suse.cz>
4479         * common.opt: Document change of -fdbg-cnt option.
4480         * dbgcnt.c (DEBUG_COUNTER): Remove.
4481         (dbg_cnt_is_enabled): Remove.
4482         (dbg_cnt): Work with new intervals.
4483         (dbg_cnt_set_limit_by_index): Set to new
4484         list of intervals.
4485         (dbg_cnt_set_limit_by_name): Likewise.
4486         (dbg_cnt_process_single_pair): Process new format.
4487         (dbg_cnt_process_opt): Likewise.
4488         (dbg_cnt_list_all_counters): Likewise.
4489         * doc/invoke.texi: Document change of -fdbg-cnt option.
4490         (cmp_tuples): New.
4492 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4494         * ipa-inline.c (ipa_inline): Check that function is defined before
4495         flattening.
4497 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4498             Julian Brown  <julian@codesourcery.com>
4500         * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4501         flag_worker_partitioning is not set.
4502         (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4503         * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4505 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4507         * config/gcn/gcn-run.c (heap_region): New global variable.
4508         (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4509         (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4510         (get_kernarg_region): Move contents to ....
4511         (get_memory_region): .... here.
4512         (get_heap_region): New function.
4513         (init_device): Initialize the heap_region.
4514         (device_malloc): Add region parameter.
4515         (struct kernargs): Move heap ....
4516         (heap): ... to global scope.
4517         (main): Allocate heap separate to kernargs.
4519 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4521         * ipa-prop.c (ipa_print_node_jump_functions,
4522         ipa_print_node_params): Print info about missing summaries.
4524 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4526         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4527         the cost of generating loop masks.
4529 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4531         * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4532         New function.
4533         * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4534         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4535         (vect_transform_loop): Likewise.
4536         (vect_analyze_loop_costing): Don't take the cost of versioning
4537         into account for the static profitability threshold if it turns
4538         out that no versioning is needed.
4540 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4542         * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4543         and target_option_default_node to get -fprofile-generate ctors working
4544         right with LTO.
4546 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4548         * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4549         * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4550         (vectorizable_assignment): Don't add a cost for nop conversions.
4551         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4552         Likewise.
4553         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4555 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4557         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4558         number of ncopies as an additional argument.
4559         (vectorizable_conversion): Update call accordingly.  Use "modifier"
4560         to check whether a conversion is between vectors with the same
4561         numbers of units.
4563 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4565         * config/aarch64/aarch64-sve-builtins-functions.h
4566         (unary_count::expand): Use aarch64_sve_int_mode instead of
4567         mode_for_int_vector.
4569 2019-11-13  Martin Liska  <mliska@suse.cz>
4571         * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4573 2019-11-13  Martin Liska  <mliska@suse.cz>
4575         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4576         Remove call to finalize_options_struct.
4578 2019-11-13  Georg-Johann Lay  <avr@gjlay.de>
4580         PR target/92055
4581         * config/avr/t-avr (avr-mcus): Do not depend on
4582         $(srcdir)/config/avr/t-multilib.
4584 2019-11-13  Richard Biener  <rguenther@suse.de>
4586         PR tree-optimization/92473
4587         * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4588         direct optab reduction in the correct type.
4590 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
4592         * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4593         hexadecimal literal.
4595 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
4597         * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4598         UNORDERED if !HONOR_NANS (DFmode).
4599         (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4600         if !HONOR_NANS (<MODE>mode).
4602 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
4604         * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4605         (ipcp_verify_propagated_values): Likewise.
4606         (propagate_constants_across_call): Likewise.
4607         (propagate_constants_topo): Likewise.
4608         (ipcp_propagate_stage): Likewise.
4610 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
4612         PR ipa/92471
4613         * ipa-profile.c (check_argument_count): Break out from ...;
4614         watch for missing summaries.
4615         (ipa_profile): Here.
4617 2019-11-12  Martin Sebor  <msebor@redhat.com>
4619         PR tree-optimization/92412
4620         * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4621         extern variables.
4623 2019-11-12  Martin Sebor  <msebor@redhat.com>
4625         PR middle-end/83688
4626         * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4627         (directive::argno): New member.
4628         (format_result::aliases, format_result::alias_count): New data members.
4629         (format_result::append_alias): New member function.
4630         (fmtresult::dst_offset): New data member.
4631         (pass_sprintf_length::call_info::dst_origin): New data member.
4632         (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4633         (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4634         (get_origin_and_offset): Same.
4635         (format_string): Call it.
4636         (format_directive): Call append_alias and set directive argument
4637         number.
4638         (maybe_warn_overlap): New function.
4639         (pass_sprintf_length::compute_format_length): Call it.
4640         (pass_sprintf_length::handle_gimple_call): Initialize new members.
4641         * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4643 2019-11-12  Ilya Leoshkevich  <iii@linux.ibm.com>
4645         PR rtl-optimization/92430
4646         * cfgcleanup.c (pass_jump_after_combine::execute): Free
4647         dominance info at the beginning.
4649 2019-11-12  Richard Biener  <rguenther@suse.de>
4651         PR tree-optimization/92460
4652         * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4653         expression before gimplifying.
4655 2019-11-12  Richard Biener  <rguenther@suse.de>
4657         PR tree-optimization/92461
4658         * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4659         stmt after propagation.
4661 2019-11-12  Martin Liska  <mliska@suse.cz>
4663         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4664         Use SET_OPTION_IF_UNSET.
4665         (ix86_option_override_internal): Likewise.
4666         * opts.c (default_options_optimization): Likewise.
4667         (finish_options): Likewise.
4668         (enable_fdo_optimizations): Likewise.
4669         (common_handle_option): Likewise.
4671 2019-11-12  Martin Liska  <mliska@suse.cz>
4673         * common/common-target.def: Remove option_validate_param and
4674         option_default_params.
4675         * common/common-targhooks.c (default_option_validate_param):
4676         Remove.
4677         * common/common-targhooks.h (default_option_validate_param):
4678         Remove.
4679         * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4680         Remove usage of this.
4681         (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4682         (aarch64_option_validate_param): Likewise.
4683         (aarch64_option_default_params): Likewise
4684         * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4685         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4686         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4687         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4688         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4689         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4690         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4691         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4692         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4693         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4694         * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4695         guard_size here.
4696         * doc/tm.texi: Remove option_default_params and option_validate_param.
4697         * doc/tm.texi.in: Likewise.
4699 2019-11-12  Martin Liska  <mliska@suse.cz>
4701         * common/common-target.def:
4702         Do not mention set_default_param_value
4703         and set_param_value.
4704         * doc/tm.texi: Likewise.
4706 2019-11-12  Martin Liska  <mliska@suse.cz>
4708         * common.opt: Remove param_values.
4709         * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4710         Remove finalize_options_struct.
4711         * gcc.c (driver::decode_argv): Do not call global_init_params
4712         and finish_params.
4713         (driver::finalize): Do not call params_c_finalize
4714         and finalize_options_struct.
4715         * opt-suggestions.c (option_proposer::get_completions): Remove
4716         special casing of params.
4717         (option_proposer::find_param_completions): Remove.
4718         (test_completion_partial_match): Update expected output.
4719         * opt-suggestions.h: Remove find_param_completions.
4720         * opts-common.c (add_misspelling_candidates): Add
4721         --param with a space.
4722         * opts.c (handle_param): Remove.
4723         (init_options_struct):. Remove init_options_struct and
4724         similar calls.
4725         (finalize_options_struct): Remove.
4726         (common_handle_option): Use SET_OPTION_IF_UNSET.
4727         * opts.h (finalize_options_struct): Remove.
4728         * toplev.c (general_init): Do not call global_init_params.
4729         (toplev::finalize): Do not call params_c_finalize and
4730         finalize_options_struct.
4732 2019-11-12  Martin Liska  <mliska@suse.cz>
4734         * Makefile.in: Remove PARAMS_H and params.list
4735         and params.options.
4736         * params-enum.h: Remove.
4737         * params-list.h: Remove.
4738         * params-options.h: Remove.
4739         * params.c: Remove.
4740         * params.def: Remove.
4741         * params.h: Remove.
4742         * asan.c: Do not include params.h.
4743         * auto-profile.c: Likewise.
4744         * bb-reorder.c: Likewise.
4745         * builtins.c: Likewise.
4746         * cfgcleanup.c: Likewise.
4747         * cfgexpand.c: Likewise.
4748         * cfgloopanal.c: Likewise.
4749         * cgraph.c: Likewise.
4750         * combine.c: Likewise.
4751         * common/config/aarch64/aarch64-common.c: Likewise.
4752         * common/config/gcn/gcn-common.c: Likewise.
4753         * common/config/ia64/ia64-common.c: Likewise.
4754         * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4755         * common/config/rs6000/rs6000-common.c: Likewise.
4756         * common/config/sh/sh-common.c: Likewise.
4757         * config/aarch64/aarch64.c: Likewise.
4758         * config/alpha/alpha.c: Likewise.
4759         * config/arm/arm.c: Likewise.
4760         * config/avr/avr.c: Likewise.
4761         * config/csky/csky.c: Likewise.
4762         * config/i386/i386-builtins.c: Likewise.
4763         * config/i386/i386-expand.c: Likewise.
4764         * config/i386/i386-features.c: Likewise.
4765         * config/i386/i386-options.c: Likewise.
4766         * config/i386/i386.c: Likewise.
4767         * config/ia64/ia64.c: Likewise.
4768         * config/rs6000/rs6000-logue.c: Likewise.
4769         * config/rs6000/rs6000.c: Likewise.
4770         * config/s390/s390.c: Likewise.
4771         * config/sparc/sparc.c: Likewise.
4772         * config/visium/visium.c: Likewise.
4773         * coverage.c: Likewise.
4774         * cprop.c: Likewise.
4775         * cse.c: Likewise.
4776         * cselib.c: Likewise.
4777         * dse.c: Likewise.
4778         * emit-rtl.c: Likewise.
4779         * explow.c: Likewise.
4780         * final.c: Likewise.
4781         * fold-const.c: Likewise.
4782         * gcc.c: Likewise.
4783         * gcse.c: Likewise.
4784         * ggc-common.c: Likewise.
4785         * ggc-page.c: Likewise.
4786         * gimple-loop-interchange.cc: Likewise.
4787         * gimple-loop-jam.c: Likewise.
4788         * gimple-loop-versioning.cc: Likewise.
4789         * gimple-ssa-split-paths.c: Likewise.
4790         * gimple-ssa-sprintf.c: Likewise.
4791         * gimple-ssa-store-merging.c: Likewise.
4792         * gimple-ssa-strength-reduction.c: Likewise.
4793         * gimple-ssa-warn-alloca.c: Likewise.
4794         * gimple-ssa-warn-restrict.c: Likewise.
4795         * graphite-isl-ast-to-gimple.c: Likewise.
4796         * graphite-optimize-isl.c: Likewise.
4797         * graphite-scop-detection.c: Likewise.
4798         * graphite-sese-to-poly.c: Likewise.
4799         * graphite.c: Likewise.
4800         * haifa-sched.c: Likewise.
4801         * hsa-gen.c: Likewise.
4802         * ifcvt.c: Likewise.
4803         * ipa-cp.c: Likewise.
4804         * ipa-fnsummary.c: Likewise.
4805         * ipa-inline-analysis.c: Likewise.
4806         * ipa-inline.c: Likewise.
4807         * ipa-polymorphic-call.c: Likewise.
4808         * ipa-profile.c: Likewise.
4809         * ipa-prop.c: Likewise.
4810         * ipa-split.c: Likewise.
4811         * ipa-sra.c: Likewise.
4812         * ira-build.c: Likewise.
4813         * ira-conflicts.c: Likewise.
4814         * loop-doloop.c: Likewise.
4815         * loop-invariant.c: Likewise.
4816         * loop-unroll.c: Likewise.
4817         * lra-assigns.c: Likewise.
4818         * lra-constraints.c: Likewise.
4819         * modulo-sched.c: Likewise.
4820         * opt-suggestions.c: Likewise.
4821         * opts.c: Likewise.
4822         * postreload-gcse.c: Likewise.
4823         * predict.c: Likewise.
4824         * reload.c: Likewise.
4825         * reorg.c: Likewise.
4826         * resource.c: Likewise.
4827         * sanopt.c: Likewise.
4828         * sched-deps.c: Likewise.
4829         * sched-ebb.c: Likewise.
4830         * sched-rgn.c: Likewise.
4831         * sel-sched-ir.c: Likewise.
4832         * sel-sched.c: Likewise.
4833         * shrink-wrap.c: Likewise.
4834         * stmt.c: Likewise.
4835         * targhooks.c: Likewise.
4836         * toplev.c: Likewise.
4837         * tracer.c: Likewise.
4838         * trans-mem.c: Likewise.
4839         * tree-chrec.c: Likewise.
4840         * tree-data-ref.c: Likewise.
4841         * tree-if-conv.c: Likewise.
4842         * tree-inline.c: Likewise.
4843         * tree-loop-distribution.c: Likewise.
4844         * tree-parloops.c: Likewise.
4845         * tree-predcom.c: Likewise.
4846         * tree-profile.c: Likewise.
4847         * tree-scalar-evolution.c: Likewise.
4848         * tree-sra.c: Likewise.
4849         * tree-ssa-ccp.c: Likewise.
4850         * tree-ssa-dom.c: Likewise.
4851         * tree-ssa-dse.c: Likewise.
4852         * tree-ssa-ifcombine.c: Likewise.
4853         * tree-ssa-loop-ch.c: Likewise.
4854         * tree-ssa-loop-im.c: Likewise.
4855         * tree-ssa-loop-ivcanon.c: Likewise.
4856         * tree-ssa-loop-ivopts.c: Likewise.
4857         * tree-ssa-loop-manip.c: Likewise.
4858         * tree-ssa-loop-niter.c: Likewise.
4859         * tree-ssa-loop-prefetch.c: Likewise.
4860         * tree-ssa-loop-unswitch.c: Likewise.
4861         * tree-ssa-math-opts.c: Likewise.
4862         * tree-ssa-phiopt.c: Likewise.
4863         * tree-ssa-pre.c: Likewise.
4864         * tree-ssa-reassoc.c: Likewise.
4865         * tree-ssa-sccvn.c: Likewise.
4866         * tree-ssa-scopedtables.c: Likewise.
4867         * tree-ssa-sink.c: Likewise.
4868         * tree-ssa-strlen.c: Likewise.
4869         * tree-ssa-structalias.c: Likewise.
4870         * tree-ssa-tail-merge.c: Likewise.
4871         * tree-ssa-threadbackward.c: Likewise.
4872         * tree-ssa-threadedge.c: Likewise.
4873         * tree-ssa-uninit.c: Likewise.
4874         * tree-switch-conversion.c: Likewise.
4875         * tree-vect-data-refs.c: Likewise.
4876         * tree-vect-loop.c: Likewise.
4877         * tree-vect-slp.c: Likewise.
4878         * tree-vrp.c: Likewise.
4879         * tree.c: Likewise.
4880         * value-prof.c: Likewise.
4881         * var-tracking.c: Likewise.
4883 2019-11-12  Martin Liska  <mliska@suse.cz>
4885         * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4886         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
4887         macro.
4888         (asan_sanitize_allocas_p): Likewise.
4889         (asan_emit_stack_protection): Likewise.
4890         (asan_protect_global): Likewise.
4891         (instrument_derefs): Likewise.
4892         (instrument_builtin_call): Likewise.
4893         (asan_expand_mark_ifn): Likewise.
4894         * auto-profile.c (auto_profile): Likewise.
4895         * bb-reorder.c (copy_bb_p): Likewise.
4896         (duplicate_computed_gotos): Likewise.
4897         * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4898         * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4899         (try_crossjump_bb): Likewise.
4900         * cfgexpand.c (defer_stack_allocation): Likewise.
4901         (stack_protect_classify_type): Likewise.
4902         (pass_expand::execute): Likewise.
4903         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4904         (estimate_reg_pressure_cost): Likewise.
4905         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4906         * combine.c (combine_instructions): Likewise.
4907         (record_value_for_reg): Likewise.
4908         * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4909         (aarch64_option_default_params): Likewise.
4910         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4911         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4912         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4913         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4914         * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4915         (aarch64_allocate_and_probe_stack_space): Likewise.
4916         (aarch64_expand_epilogue): Likewise.
4917         (aarch64_override_options_internal): Likewise.
4918         * config/alpha/alpha.c (alpha_option_override): Likewise.
4919         * config/arm/arm.c (arm_option_override): Likewise.
4920         (arm_valid_target_attribute_p): Likewise.
4921         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4922         * config/i386/i386.c (get_probe_interval): Likewise.
4923         (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4924         (ix86_max_noce_ifcvt_seq_cost): Likewise.
4925         * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4926         * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4927         (get_stack_clash_protection_guard_size): Likewise.
4928         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4929         * config/s390/s390.c (allocate_stack_space): Likewise.
4930         (s390_emit_prologue): Likewise.
4931         (s390_option_override_internal): Likewise.
4932         * config/sparc/sparc.c (sparc_option_override): Likewise.
4933         * config/visium/visium.c (visium_option_override): Likewise.
4934         * coverage.c (get_coverage_counts): Likewise.
4935         (coverage_compute_profile_id): Likewise.
4936         (coverage_begin_function): Likewise.
4937         (coverage_end_function): Likewise.
4938         * cse.c (cse_find_path): Likewise.
4939         (cse_extended_basic_block): Likewise.
4940         (cse_main): Likewise.
4941         * cselib.c (cselib_invalidate_mem): Likewise.
4942         * dse.c (dse_step1): Likewise.
4943         * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4944         (get_max_insn_count): Likewise.
4945         (make_debug_insn_raw): Likewise.
4946         (init_emit): Likewise.
4947         * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4948         * final.c (compute_alignments): Likewise.
4949         * fold-const.c (fold_range_test): Likewise.
4950         (fold_truth_andor): Likewise.
4951         (tree_single_nonnegative_warnv_p): Likewise.
4952         (integer_valued_real_single_p): Likewise.
4953         * gcse.c (want_to_gcse_p): Likewise.
4954         (prune_insertions_deletions): Likewise.
4955         (hoist_code): Likewise.
4956         (gcse_or_cprop_is_too_expensive): Likewise.
4957         * ggc-common.c: Likewise.
4958         * ggc-page.c (ggc_collect): Likewise.
4959         * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4960         (MAX_DATAREFS): Likewise.
4961         (OUTER_STRIDE_RATIO): Likewise.
4962         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4963         * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4964         * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4965         * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4966         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4967         (imm_store_chain_info::output_merged_store): Likewise.
4968         (pass_store_merging::process_store): Likewise.
4969         * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4970         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4971         (scop_to_isl_ast): Likewise.
4972         * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4973         (optimize_isl): Likewise.
4974         * graphite-scop-detection.c (build_scops): Likewise.
4975         * haifa-sched.c (set_modulo_params): Likewise.
4976         (rank_for_schedule): Likewise.
4977         (model_add_to_worklist): Likewise.
4978         (model_promote_insn): Likewise.
4979         (model_choose_insn): Likewise.
4980         (queue_to_ready): Likewise.
4981         (autopref_multipass_dfa_lookahead_guard): Likewise.
4982         (schedule_block): Likewise.
4983         (sched_init): Likewise.
4984         * hsa-gen.c (init_prologue): Likewise.
4985         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4986         (cond_move_process_if_block): Likewise.
4987         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4988         (merge_agg_lats_step): Likewise.
4989         (devirtualization_time_bonus): Likewise.
4990         (hint_time_bonus): Likewise.
4991         (incorporate_penalties): Likewise.
4992         (good_cloning_opportunity_p): Likewise.
4993         (ipcp_propagate_stage): Likewise.
4994         * ipa-fnsummary.c (decompose_param_expr): Likewise.
4995         (set_switch_stmt_execution_predicate): Likewise.
4996         (analyze_function_body): Likewise.
4997         (compute_fn_summary): Likewise.
4998         * ipa-inline-analysis.c (estimate_growth): Likewise.
4999         * ipa-inline.c (caller_growth_limits): Likewise.
5000         (inline_insns_single): Likewise.
5001         (inline_insns_auto): Likewise.
5002         (can_inline_edge_by_limits_p): Likewise.
5003         (want_early_inline_function_p): Likewise.
5004         (big_speedup_p): Likewise.
5005         (want_inline_small_function_p): Likewise.
5006         (want_inline_self_recursive_call_p): Likewise.
5007         (edge_badness): Likewise.
5008         (recursive_inlining): Likewise.
5009         (compute_max_insns): Likewise.
5010         (early_inliner): Likewise.
5011         * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
5012         * ipa-profile.c (ipa_profile): Likewise.
5013         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
5014         (ipa_analyze_node): Likewise.
5015         (ipcp_transform_function): Likewise.
5016         * ipa-split.c (consider_split): Likewise.
5017         * ipa-sra.c (allocate_access): Likewise.
5018         (process_scan_results): Likewise.
5019         (ipa_sra_summarize_function): Likewise.
5020         (pull_accesses_from_callee): Likewise.
5021         * ira-build.c (loop_compare_func): Likewise.
5022         (mark_loops_for_removal): Likewise.
5023         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5024         * loop-doloop.c (doloop_optimize): Likewise.
5025         * loop-invariant.c (gain_for_invariant): Likewise.
5026         (move_loop_invariants): Likewise.
5027         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
5028         (decide_unroll_runtime_iterations): Likewise.
5029         (decide_unroll_stupid): Likewise.
5030         (expand_var_during_unrolling): Likewise.
5031         * lra-assigns.c (spill_for): Likewise.
5032         * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
5033         * modulo-sched.c (sms_schedule): Likewise.
5034         (DFA_HISTORY): Likewise.
5035         * opts.c (default_options_optimization): Likewise.
5036         (finish_options): Likewise.
5037         (common_handle_option): Likewise.
5038         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5039         (if): Likewise.
5040         * predict.c (get_hot_bb_threshold): Likewise.
5041         (maybe_hot_count_p): Likewise.
5042         (probably_never_executed): Likewise.
5043         (predictable_edge_p): Likewise.
5044         (predict_loops): Likewise.
5045         (expr_expected_value_1): Likewise.
5046         (tree_predict_by_opcode): Likewise.
5047         (handle_missing_profiles): Likewise.
5048         * reload.c (find_equiv_reg): Likewise.
5049         * reorg.c (redundant_insn): Likewise.
5050         * resource.c (mark_target_live_regs): Likewise.
5051         (incr_ticks_for_insn): Likewise.
5052         * sanopt.c (pass_sanopt::execute): Likewise.
5053         * sched-deps.c (sched_analyze_1): Likewise.
5054         (sched_analyze_2): Likewise.
5055         (sched_analyze_insn): Likewise.
5056         (deps_analyze_insn): Likewise.
5057         * sched-ebb.c (schedule_ebbs): Likewise.
5058         * sched-rgn.c (find_single_block_region): Likewise.
5059         (too_large): Likewise.
5060         (haifa_find_rgns): Likewise.
5061         (extend_rgns): Likewise.
5062         (new_ready): Likewise.
5063         (schedule_region): Likewise.
5064         (sched_rgn_init): Likewise.
5065         * sel-sched-ir.c (make_region_from_loop): Likewise.
5066         * sel-sched-ir.h (MAX_WS): Likewise.
5067         * sel-sched.c (process_pipelined_exprs): Likewise.
5068         (sel_setup_region_sched_flags): Likewise.
5069         * shrink-wrap.c (try_shrink_wrapping): Likewise.
5070         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
5071         * toplev.c (print_version): Likewise.
5072         (process_options): Likewise.
5073         * tracer.c (tail_duplicate): Likewise.
5074         * trans-mem.c (tm_log_add): Likewise.
5075         * tree-chrec.c (chrec_fold_plus_1): Likewise.
5076         * tree-data-ref.c (split_constant_offset): Likewise.
5077         (compute_all_dependences): Likewise.
5078         * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
5079         * tree-inline.c (remap_gimple_stmt): Likewise.
5080         * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
5081         * tree-parloops.c (MIN_PER_THREAD): Likewise.
5082         (create_parallel_loop): Likewise.
5083         * tree-predcom.c (determine_unroll_factor): Likewise.
5084         * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
5085         * tree-sra.c (analyze_all_variable_accesses): Likewise.
5086         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5087         * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
5088         (dse_optimize_redundant_stores): Likewise.
5089         (dse_classify_store): Likewise.
5090         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5091         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
5092         * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
5093         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5094         (try_peel_loop): Likewise.
5095         (tree_unroll_loops_completely): Likewise.
5096         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5097         (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
5098         (MAX_CONSIDERED_GROUPS): Likewise.
5099         (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
5100         * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
5101         * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
5102         * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
5103         (L1_CACHE_SIZE_BYTES): Likewise.
5104         (L2_CACHE_SIZE_BYTES): Likewise.
5105         (should_issue_prefetch_p): Likewise.
5106         (schedule_prefetches): Likewise.
5107         (determine_unroll_factor): Likewise.
5108         (volume_of_references): Likewise.
5109         (add_subscript_strides): Likewise.
5110         (self_reuse_distance): Likewise.
5111         (mem_ref_count_reasonable_p): Likewise.
5112         (insn_to_prefetch_ratio_too_small_p): Likewise.
5113         (loop_prefetch_arrays): Likewise.
5114         (tree_ssa_prefetch_arrays): Likewise.
5115         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
5116         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5117         (convert_mult_to_fma): Likewise.
5118         (math_opts_dom_walker::after_dom_children): Likewise.
5119         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5120         (hoist_adjacent_loads): Likewise.
5121         (gate_hoist_loads): Likewise.
5122         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5123         (compute_partial_antic_aux): Likewise.
5124         * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
5125         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
5126         (vn_reference_lookup): Likewise.
5127         (do_rpo_vn): Likewise.
5128         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
5129         * tree-ssa-sink.c (select_best_block): Likewise.
5130         * tree-ssa-strlen.c (new_stridx): Likewise.
5131         (new_addr_stridx): Likewise.
5132         (get_range_strlen_dynamic): Likewise.
5133         (class ssa_name_limit_t): Likewise.
5134         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
5135         (create_variable_info_for_1): Likewise.
5136         (init_alias_vars): Likewise.
5137         * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
5138         (tail_merge_optimize): Likewise.
5139         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
5140         (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
5141         (thread_jumps::find_jump_threads_backwards): Likewise.
5142         * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5143         * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
5144         * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
5145         (jump_table_cluster::can_be_handled): Likewise.
5146         * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
5147         (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
5148         (param_switch_conversion_branch_ratio): Likewise.
5149         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
5150         (vect_enhance_data_refs_alignment): Likewise.
5151         (vect_prune_runtime_alias_test_list): Likewise.
5152         * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
5153         (vect_get_datarefs_in_loop): Likewise.
5154         (vect_analyze_loop): Likewise.
5155         * tree-vect-slp.c (vect_slp_bb): Likewise.
5156         * tree-vectorizer.h: Likewise.
5157         * tree-vrp.c (find_switch_asserts): Likewise.
5158         (vrp_prop::check_mem_ref): Likewise.
5159         * tree.c (wide_int_to_tree_1): Likewise.
5160         (cache_integer_cst): Likewise.
5161         * var-tracking.c (EXPR_USE_DEPTH): Likewise.
5162         (reverse_op): Likewise.
5163         (vt_find_locations): Likewise.
5165 2019-11-12  Martin Liska  <mliska@suse.cz>
5167         * Makefile.in: Include params.opt.
5168         * flag-types.h (enum parloops_schedule_type): Add
5169         parloops_schedule_type used in params.opt.
5170         * params.opt: New file.
5172 2019-11-12  Martin Liska  <mliska@suse.cz>
5174         * common.opt: Remove --param and --param= options.
5175         * opt-functions.awk: Mark CL_PARAMS for options
5176         that have Param keyword.
5177         * opts-common.c (decode_cmdline_options_to_array):
5178         Replace --param key=value with --param=key=value.
5179         * opts.c (print_filtered_help): Remove special
5180         printing of params.
5181         (print_specific_help): Update title for params.
5182         (common_handle_option): Do not handle OPT__param.
5183         opts.h (SET_OPTION_IF_UNSET): New macro.
5184         * doc/options.texi: Document Param keyword.
5186 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
5187             Frederik Harwath  <frederik@codesourcery.com>
5188             Thomas Schwinge  <thomas@codesourcery.com>
5190         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
5191         enumeration constant.
5192         (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5193         (is_gimple_omp_offloaded): Likewise.
5194         * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
5195         constant.  Adjust the value of ORT_NONE accordingly.
5196         (is_gimple_stmt): Handle OACC_SERIAL.
5197         (oacc_default_clause): Handle ORT_ACC_SERIAL.
5198         (gomp_needs_data_present): Likewise.
5199         (gimplify_adjust_omp_clauses): Likewise.
5200         (gimplify_omp_workshare): Handle OACC_SERIAL.
5201         (gimplify_expr): Likewise.
5202         * omp-expand.c (expand_omp_target):
5203         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5204         (build_omp_regions_1, omp_make_gimple_edges): Likewise.
5205         * omp-low.c (is_oacc_parallel): Rename function to...
5206         (is_oacc_parallel_or_serial): ... this.
5207         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5208         (scan_sharing_clauses): Adjust accordingly.
5209         (scan_omp_for): Likewise.
5210         (lower_oacc_head_mark): Likewise.
5211         (convert_from_firstprivate_int): Likewise.
5212         (lower_omp_target): Likewise.
5213         (check_omp_nesting_restrictions): Handle
5214         GF_OMP_TARGET_KIND_OACC_SERIAL.
5215         (lower_oacc_reductions): Likewise.
5216         (lower_omp_target): Likewise.
5217         * tree.def (OACC_SERIAL): New tree code.
5218         * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
5220         * doc/generic.texi (OpenACC): Document OACC_SERIAL.
5222 2019-11-12  Jakub Jelinek  <jakub@redhat.com>
5224         PR target/92449
5225         * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
5226         don't emit UNORDERED_EXPR guarded libcall.  Formatting fixes.
5228         PR tree-optimization/92452
5229         * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
5230         into NULL_TREE, set up_bound to NULL_TREE instead of computing
5231         MINUS_EXPR on it.
5233 2019-11-12  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5235         * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
5236         safelen with 0.
5238 2019-11-12  Alan Modra  <amodra@gmail.com>
5240         * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
5241         element of unspec vec.
5242         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
5243         PC-relative TLS.
5244         * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
5245         (tls_gd_pcrel, tls_ld_pcrel): New insns.
5246         (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
5247         (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
5249 2019-11-12  Alan Modra  <amodra@gmail.com>
5251         * config/rs6000/rs6000.opt (mtls-markers): Delete.
5252         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5253         (IS_NOMARK_TLSGETADDR): Likewise.
5254         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
5255         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
5256         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
5257         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
5258         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
5259         (rs6000_indirect_call_template_1): Likewise.
5260         (rs6000_pltseq_template): Likewise.
5261         (rs6000_opt_vars): Remove "tls-markers" entry.
5262         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
5263         with TARGET_ELF.
5264         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
5265         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
5266         (pltseq_plt_pcrel<mode>): Likewise.
5267         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
5268         (call_value_local64): Likewise.
5269         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
5270         output and length attribute sub-expression.
5271         (call_value_nonlocal_sysv<mode>),
5272         (call_value_nonlocal_sysv_secure<mode>),
5273         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
5274         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
5275         (call_value_indirect_pcrel<mode>): Likewise.
5276         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
5277         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
5278         * configure: Regenerate.
5279         * config.in: Regenerate.
5281 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
5283         * config/rs6000/predicates.md (prefixed_memory): New predicate.
5284         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
5285         address being a prefixed load/store.
5286         (stack_protect_testdi): Deal with either address being a prefixed
5287         load.
5289 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
5291         PR bootstrap/92433
5292         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5293         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
5294         std::swap.
5296 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
5298         PR tree-optimization/92420
5299         * tree-vect-stmts.c (get_negative_load_store_type): Move further
5300         up file.
5301         (get_group_load_store_type): Use it for reversed SLP accesses.
5303 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
5305         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5306         summary.
5307         (ipcp_transformation_t::duplicate): Break out from ...
5308         (ipa_node_params_t::duplicate): ... here; add copying of agg
5309         replacements.
5310         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5311         (ipcp_transformation_t): Add duplicate.
5313 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
5315         PR fortran/91828
5316         * doc/install.texi: Document that the minimum MPFR version is
5317         3.1.0.
5319 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5321         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5322         use new register constraint letters.
5324 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5326         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5327         as well, if interesting recover the symbol and re-legitimize the
5328         pic address.
5330 2019-11-11  Martin Liska  <mliska@suse.cz>
5332         * dbgcnt.def (DEBUG_COUNTER): Sort counters
5333         alphabetically.
5335 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5337         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5338         account when checking if there are enough iterations to vectorize
5339         epilogue.
5341 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
5342             Kwok Cheung Yeung  <kcy@codesourcery.com>
5344         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5345         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5346         (LANG_HOOKS_DECLS): Rename also here.
5347         * langhooks.h (lang_hooks_for_decls): Rename
5348         omp_is_optional_argument to omp_check_optional_argument; take
5349         additional bool argument.
5350         * omp-general.h (omp_check_optional_argument): Likewise.
5351         * omp-general.h (omp_check_optional_argument): Likewise.
5352         * omp-low.c (lower_omp_target): Update calls; handle absent
5353         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5355 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
5357         PR target/87833
5358         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5359         -fPIC and -shared the last to create offload image.
5361 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
5363         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5364         of 'offset'.
5366         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5367         (config.status): Use/depend on it.
5368         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5369         * configure: Regenerate.
5371 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
5373         PR tree-optimization/88760
5374         * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5375         * common/config/rs6000/rs6000-common.c
5376         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5377         Turn on -funroll-loops and -munroll-only-small-loops.
5378         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5379         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5380         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5381         Turn off -munroll-only-small-loops for explicit -funroll-loops.
5382         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5383         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
5385 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
5387         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5388         Make scalar_load, vector_load, unaligned_load and
5389         vector_gather_load cost more to conform hardware latency and
5390         insn cost settings.
5392 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
5394         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5395         (MACHO_SYMBOL_LINKER_VIS_P): New.
5397 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
5399         * lra-spills.c (assign_spill_hard_regs): Do not spill into
5400         registers in eliminable_regset.
5402 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5404         * ipa-inline.c (compute_uninlined_call_time,
5405         compute_inlined_call_time): Take edge frequency as
5406         parameter rather than computing it by itself.
5407         (big_speedup_p, edge_badness): Manually CSE sreal
5408         frequency calculations.
5410 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5412         * profile-count.c (profile_count::to_sreal_scale): Short circuit
5413         case where profiles are same.
5415 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5417         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5419 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5421         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5422         args summaries of inlined edge unless it holds info about
5423         described reference.
5425 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
5427         * config/rs6000/rs6000.md (CC_any): New mode iterator.
5428         (*movcc_internal1): Rename to...
5429         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
5431 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5433         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5434         (cgraph_node::create_virtual_clone): Copy it.
5435         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5436         summaries.
5437         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5438         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5439         is disabled.
5440         (propagate_constants_across_call): If callee is not analyzed, give up.
5441         (propagate_constants_topo): Lower to bottom latties of all callees of
5442         functions with ipa-cp disabled.
5443         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5444         (cgraph_edge_brings_value_p): Check for availability first.
5445         (create_specialized_node): Set ipcp_clone.
5446         (ipcp_store_bits_results): Check that info is present.
5447         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5448         thunks.
5449         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5450         conservative when callee summary is missing.
5451         (remap_edge_summaries): Lookup call summary only when needed.
5452         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5453         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5454         Use get_create.
5455         (ipa_analyze_node): Use get_create.
5456         (propagate_controlled_uses): Do not propagate when function is not
5457         analyzed.
5458         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5459         (ipa_read_node_info): Use get_create.
5460         * ipa-prop.h (IPA_NODE_REF): Use get.
5461         (IPA_NODE_REF_GET_CREATE): New.
5463 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5465         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5466         on function symbol.
5468 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5470         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5471         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5472         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5473         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5475 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5477         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5478         capping the growth cumulated.
5479         (offline_size): Break out from ...
5480         (estimate_growth): ... here.
5481         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5482         parameters.
5483         (growth_likely_positive): Turn to ...
5484         (growth_positive_p): Re-implement.
5485         * ipa-inline.h (growth_likely_positive): Remove.
5486         (growth_positive_p): Declare.
5487         * ipa-inline.c (want_inline_small_function_p): Use
5488         growth_positive_p.
5489         (want_inline_function_to_all_callers_p): Likewise.
5491 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5493         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5494         calculation of min_size.
5495         (ipa_update_overall_fn_summary): Likewise.
5497 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5499         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5500         estimate_edge_devirt_benefit when not computing hints;
5501         do not compute time when not asked for.
5502         (estimate_calls_size_and_time): Pass NULL hints and time when
5503         these are not computed; do not evaluate hint predicates when these are
5504         not computed.
5505         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5506         frequency.
5508 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
5510         PR tree-optimization/92401
5511         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5512         if res_op->code is an expression with code length 1.
5513         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5514         if res_op->code is an expression with code length 2.
5515         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5516         if res_op->code is an expression with code length 3.
5518 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
5520         * config/darwin.c (machopic_mcount_stub_name): Validate the
5521         symbol stub name when it is created.
5522         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5523         stub validation.
5525 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
5527         * symtab.c: Fix comment typos.
5528         * cgraphunit.c: Likewise.
5529         * cgraph.h: Likewise.
5530         * cgraphclones.c: Likewise.
5531         * cgraph.c: Likewise.
5532         * varpool.c: Likewise.
5533         * tree-ssa-strlen.c: Likewise.
5534         * ipa-sra.c: Likewise.
5535         (scan_expr_access, check_all_callers_for_issues): Fix typo
5536         in a dump message.
5538 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
5540         * config/darwin-protos.h: Add include quard.
5542 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
5544         * range-op.h (range_operator::fold_range): Return result in a
5545         reference parameter instead of by value.
5546         (range_operator::wi_fold): Same.
5547         * range-op.cc (range_operator::wi_fold): Return result in a reference
5548         parameter instead of by value.
5549         (range_operator::fold_range): Same.
5550         (value_range_from_overflowed_bounds): Same.
5551         (value_range_with_overflow): Same
5552         (create_possibly_reversed_range): Same.
5553         (operator_equal::fold_range): Same.
5554         (operator_not_equal::fold_range): Same.
5555         (operator_lt::fold_range): Same.
5556         (operator_le::fold_range): Same.
5557         (operator_gt::fold_range): Same.
5558         (operator_ge::fold_range): Same.
5559         (operator_plus::wi_fold): Same.
5560         (operator_plus::op1_range): Change call to fold_range.
5561         (operator_plus::op2_range): Change call to fold_range.
5562         (operator_minus::wi_fold): Return result via reference parameter.
5563         (operator_minus::op1_range): Change call to fold_range.
5564         (operator_minus::op2_range): Change call to fold_range.
5565         (operator_min::wi_fold): Return result via reference parameter.
5566         (operator_max::wi_fold): Same.
5567         (cross_product_operator::wi_cross_product): Same.
5568         (operator_mult::wi_fold): Same.
5569         (operator_div::wi_fold): Same.
5570         (operator_div op_floor_div): Fix whitespace.
5571         (operator_exact_divide::op1_range): Change call to fold_range.
5572         (operator_lshift::fold_range): Return result via reference parameter.
5573         (operator_lshift::wi_fold): Same.
5574         (operator_rshift::fold_range): Same.
5575         (operator_rshift::wi_fold): Same.
5576         (operator_cast::fold_range): Same.
5577         (operator_cast::op1_range): Change calls to fold_range.
5578         (operator_logical_and::fold_range): Return result via reference.
5579         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5580         (operator_bitwise_and::wi_fold): Return result via reference.
5581         (operator_logical_or::fold_range): Same.
5582         (operator_bitwise_or::wi_fold): Same.
5583         (operator_bitwise_xor::wi_fold): Same.
5584         (operator_trunc_mod::wi_fold): Same.
5585         (operator_logical_not::fold_range): Same.
5586         (operator_bitwise_not::fold_range): Same.
5587         (operator_bitwise_not::op1_range): Change call to fold_range.
5588         (operator_cst::fold_range): Return result via reference.
5589         (operator_identity::fold_range): Same.
5590         (operator_abs::wi_fold): Same.
5591         (operator_absu::wi_fold): Same.
5592         (operator_negate::fold_range): Same.
5593         (operator_negate::op1_range): Change call to fold_range.
5594         (operator_addr_expr::fold_range): Return result via reference.
5595         (operator_addr_expr::op1_range): Change call to fold_range.
5596         (operator_pointer_plus::wi_fold): Return result via reference.
5597         (operator_pointer_min_max::wi_fold): Same.
5598         (operator_pointer_and::wi_fold): Same.
5599         (operator_pointer_or::wi_fold): Same.
5600         (range_op_handler): Change call to fold_range.
5601         (range_cast): Same.
5602         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5603         fold_range.
5604         (range_fold_unary_symbolics_p): Same.
5605         (range_fold_binary_expr): Same.
5606         (range_fold_unary_expr): Same.
5608 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5610         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5611         vector type as an argument rather than reading it from the
5612         stmt_vec_info.
5613         (vect_create_epilog_for_reduction): Update accordingly.
5614         (vectorizable_reduction): Likewise.
5615         (vect_transform_cycle_phi): Likewise.
5617 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
5619         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5620         the comparison codes that make sense for the mode used, and only the
5621         codes that can be done with a single branch instruction.
5623 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5625         PR tree-optimization/92351
5626         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5627         peeling the main loop for alignment, make sure to set the misalignment
5628         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5630 2019-11-08  Richard Biener  <rguenther@suse.de>
5632         * dbgcnt.def (ivopts_loop): Add.
5633         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5634         ivopts_loop before optimizing a loop.
5636 2019-11-08  Richard Biener  <rguenther@suse.de>
5638         PR ipa/92409
5639         * tree-inline.c (declare_return_variable): Properly handle
5640         type mismatches for the return slot.
5642 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5644         PR target/92095
5645         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5646         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5647         change.
5648         (got_helper_needed): New static variable.
5649         (output_load_pcrel_sym): New function.
5650         (get_pc_thunk_name): Remove after inlining...
5651         (load_got_register): ...here.  Rework the initialization of the GOT
5652         register and of the GOT helper.
5653         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5654         (sparc_file_end): Test got_helper_needed to decide whether the GOT
5655         helper must be emitted.  Use output_asm_insn instead of fprintf.
5656         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5657         if optimization is enabled.
5658         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5659         by calling output_load_pcrel_sym.
5661 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5663         * tree-sra.c (create_access): Delay disqualifying the base
5664         for poly_int values until we know we have a base.
5666 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5668         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5669         for loops with SIMDUID set.  Enable epilogue vectorization for loops
5670         with SIMDLEN set after finding a main loop with a VF that matches it.
5672 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
5674         PR target/92038
5675         * gimple-ssa-store-merging.c (find_constituent_stores): For return
5676         value only, return non-NULL if there is a single non-clobber
5677         constituent store even if there are constituent clobbers and return
5678         one of clobber constituent stores if all constituent stores are
5679         clobbers.
5680         (split_group): Handle clobbers.
5681         (imm_store_chain_info::output_merged_store): When computing
5682         bzero_first, look after all clobbers at the start.  Don't count
5683         clobber stmts in orig_num_stmts, except if the first orig store is
5684         a clobber covering the whole area and split_stores cover the whole
5685         area, consider equal number of stmts ok.  Punt if split_stores
5686         contains only ->orig stores and their number plus number of original
5687         clobbers is equal to original number of stmts.  For ->orig, look past
5688         clobbers in the constituent stores.
5689         (imm_store_chain_info::output_merged_stores): Don't remove clobber
5690         stmts.
5691         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5692         rhs.
5693         (store_valid_for_store_merging_p): Allow clobber stmts.
5694         (verify_clear_bit_region_be): Fix up a thinko in function comment.
5696         PR c++/92384
5697         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5698         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5699         slot.
5700         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5701         force creation of a unique data.stack_parm slot.
5703 2019-11-08  Richard Biener  <rguenther@suse.de>
5705         * genmatch.c (expr::gen_transform): Use the resimplify
5706         member function instead of hard-coding the gimple_resimplifyN variant.
5707         (dt_simplify::gen_1): Likewise.
5709 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5711         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5712         POLY_INT_CST.
5714 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5716         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5717         instead of INTEGER_CST.
5719 2019-11-08  Richard Biener  <rguenther@suse.de>
5721         PR tree-optimization/92324
5722         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5723         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5724         sign-conversions as necessary.
5725         (vectorizable_reduction): Reject conversions in the chain
5726         that are not sign-conversions, base analysis on a non-converting
5727         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
5728         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5729         for debug stmts.
5730         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5731         (STMT_VINFO_REDUC_VECTYPE): Likewise.
5733 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
5735         PR target/92055
5736         * config/avr/avr.opt (-mdouble=, -mlong-double=):
5737         Fix a missing '-' when displaying these options in the
5738         help screen.
5740 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5742         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5744 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5746         * config/aarch64/aarch64-builtins.c
5747         (aarch64_builtin_vectorized_function): Remove bswap handling.
5749 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5751         * tree-core.h (tree_type_common::indivisible_p): New member variable.
5752         * tree.h (TYPE_INDIVISIBLE_P): New macro.
5753         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5754         Treat the vector types as indivisible.
5756 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5758         * optabs.def (gather_load_optab, mask_gather_load_optab)
5759         (scatter_store_optab, mask_scatter_store_optab): Turn into
5760         conversion optabs, with the offset mode given explicitly.
5761         * doc/md.texi: Update accordingly.
5762         * config/aarch64/aarch64-sve-builtins-base.cc
5763         (svld1_gather_impl::expand): Likewise.
5764         (svst1_scatter_impl::expand): Likewise.
5765         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5766         (expand_scatter_store_optab_fn): Likewise.
5767         (direct_gather_load_optab_supported_p): Likewise.
5768         (direct_scatter_store_optab_supported_p): Likewise.
5769         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
5770         to be argument 4.
5771         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5772         (internal_gather_scatter_fn_supported_p): Replace the offset sign
5773         argument with the offset vector type.  Require the two vector
5774         types to have the same number of elements but allow their element
5775         sizes to be different.  Treat the optabs as conversion optabs.
5776         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5777         prototype accordingly.
5778         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5779         (supports_vec_convert_optab_p): ...this new function.
5780         (supports_vec_gather_load_p): Update accordingly.
5781         (supports_vec_scatter_store_p): Likewise.
5782         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5783         Replace the offset sign and bits parameters with a scalar type tree.
5784         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5785         Pass back the offset vector type instead of the scalar element type.
5786         Allow the offset to be wider than the memory elements.  Search for
5787         an offset type that the target supports, stopping once we've
5788         reached the maximum of the element size and pointer size.
5789         Update call to internal_gather_scatter_fn_supported_p.
5790         (vect_check_gather_scatter): Update calls accordingly.
5791         When testing a new scale before knowing the final offset type,
5792         check whether the scale is supported for any signed or unsigned
5793         offset type.  Check whether the target supports the source and
5794         target types of a conversion before deciding whether to look
5795         through the conversion.  Record the chosen offset_vectype.
5796         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5797         (vect_recog_gather_scatter_pattern): Get the scalar offset type
5798         directly from the gs_info's offset_vectype instead.  Pass a zero
5799         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5800         * tree-vect-stmts.c (check_load_store_masking): Update call to
5801         internal_gather_scatter_fn_supported_p, passing the offset vector
5802         type recorded in the gs_info.
5803         (vect_truncate_gather_scatter_offset): Update call to
5804         vect_check_gather_scatter, leaving it to search for a valid
5805         offset vector type.
5806         (vect_use_strided_gather_scatters_p): Convert the offset to the
5807         element type of the gs_info's offset_vectype.
5808         (vect_get_gather_scatter_ops): Get the offset vector type directly
5809         from the gs_info.
5810         (vect_get_strided_load_store_ops): Likewise.
5811         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5812         and IFN_MASK_GATHER_LOAD.
5813         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5814         (gather_load<mode><v_int_equiv>): ...this.
5815         (mask_gather_load<mode>): Rename to...
5816         (mask_gather_load<mode><v_int_equiv>): ...this.
5817         (scatter_store<mode>): Rename to...
5818         (scatter_store<mode><v_int_equiv>): ...this.
5819         (mask_scatter_store<mode>): Rename to...
5820         (mask_scatter_store<mode><v_int_equiv>): ...this.
5822 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
5824         PR target/92132
5825         * config/rs6000/predicates.md
5826         (signed_or_equality_comparison_operator): New predicate.
5827         (unsigned_or_equality_comparison_operator): Likewise.
5828         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5829         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5830         * config/rs6000/vector.md
5831         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5832         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5833         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5834         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5835         vector modes and same-size integer vector modes.
5836         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5837         (vector_lt<mode> for VEC_F): New expand.
5838         (vector_le<mode> for VEC_F): Likewise.
5839         (vector_ne<mode> for VEC_F): Likewise.
5840         (vector_unge<mode> for VEC_F): Likewise.
5841         (vector_ungt<mode> for VEC_F): Likewise.
5842         (vector_unle<mode> for VEC_F): Likewise.
5843         (vector_unlt<mode> for VEC_F): Likewise.
5844         (vector_uneq<mode>): Expose name.
5845         (vector_ltgt<mode>): Likewise.
5846         (vector_unordered<mode>): Likewise.
5847         (vector_ordered<mode>): Likewise.
5849 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
5851         PR target/92295
5852         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5853         Enhance ix86_expand_vector_init_concat.
5855 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
5857         * doc/invoke.texi (-Wold-style-definition): Document () not being
5858         considered an old-style definition for C2x.
5860 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
5862         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5863         Enhance comment.
5864         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5865         insn patterns using ldcw instruction.
5866         (memory_barrier): Remove insn pattern using sync instruction.
5867         * config/pa/pa.opt (coherent-ldcw): New option.
5868         (ordered): New option.
5870 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5872         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5873         valid conditions.
5875 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
5877         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5878         typo - mistmatch -> mismatch.
5879         * ipa-profile.c (ipa_profile): Likewise.
5880         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5881         - mistmatch -> mismatch.
5883 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5885         * simplify-rtx.c (comparison_to_mask): New function.
5886         (mask_to_comparison): New function.
5887         (simplify_logical_relational_operation): New function.
5888         (simplify_binary_operation_1): Call
5889         simplify_logical_relational_operation.
5891 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
5893         PR other/92090
5894         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5895         modes for integer constants.
5897 2019-11-07  Jan Hubicka  <jh@suse.cz>
5899         PR ipa/92406
5900         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5901         summary.
5903 2019-11-07  Jan Hubicka  <jh@suse.cz>
5905         * optc-save-gen.awk: Generate cl_target_option_free
5906         and cl_optimization_option_free.
5907         * opth-en.awk: Declare cl_target_option_free
5908         and cl_optimization_option_free.
5909         * tree.c (free_node): Use it.
5911 2019-11-06  Jan Hubicka  <jh@suse.cz>
5913         * lto-streamer-in.c: Include alloc-pool.h.
5914         (freeing_string_slot_hasher): Remove.
5915         (string_slot_allocator): New object allocator.
5916         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5917         (file_name_obstack): New obstack.
5918         (canon_file_name): Allocate in obstack and allocator.
5919         (lto_reader_init): Initialize obstack and allocator.
5920         (lto_free_file_name_hash): New function.
5921         * lto-streamer.h (lto_free_file_name_hash): New.
5923 2019-11-07  Feng Xue  <fxue@os.amperecomputing.com>
5925         PR tree-optimization/89134
5926         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5927         * params.def: Add min-loop-cond-split-prob.
5928         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5929         outside checks on loop into the function.
5930         (split_info): New class.
5931         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5932         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5933         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5934         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5935         (stmt_semi_invariant_p, branch_removable_p): Likewise.
5936         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5937         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5938         (split_loop_on_cond): Likewise.
5939         (tree_ssa_split_loops): Add loop split on conditional statement.
5941 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
5943         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5944         pattern.
5946 2019-11-07  Richard Biener  <rguenther@suse.de>
5948         PR tree-optimization/92405
5949         * tree-vect-loop.c (vectorizable_reduction): Appropriately
5950         restrict lane-reducing ops to single stmt chains.
5952 2019-11-07  Martin Jambor  <mjambor@suse.cz>
5954         PR lto/70929
5955         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5956         * cgraph.h (gimple_check_call_matching_types): Remove
5957         * cgraph.c (gimple_check_call_args): Likewise.
5958         (gimple_check_call_matching_types): Likewise.
5959         (symbol_table::create_edge): Do not call
5960         gimple_check_call_matching_types.
5961         (cgraph_edge::make_direct): Likewise.
5962         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5963         * value-prof.h (check_ic_target): Remove.
5964         * value-prof.c (check_ic_target): Remove.
5965         (gimple_ic_transform): Do nat call check_ic_target.
5966         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5967         (afdo_indirect_call): Likewise.
5968         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5969         gimple_check_call_matching_types.
5970         * ipa-inline.c (early_inliner): Likewise.
5972 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5974         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5975         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5976         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5977         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5978         * config/arm/iterators.md (USSAT16): New int_iterator.
5979         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5980         (sup): Likewise.
5981         * config/arm/predicates.md (ssat16_imm): New predicate.
5982         (usat16_imm): Likewise.
5983         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5985 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5987         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5988         New define_insns.
5989         (arm_<simd32_op>): New define_expands.
5990         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5991         __smuad, __smuadx): Define.
5992         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5993         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5994         (SIMD32_BINOP_Q): Likewise.
5995         (simd32_op): Handle the above.
5996         * config/arm/unspecs.md: Define unspecs for the above.
5998 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6000         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
6001         * config/arm/arm.md (APSRGE_REGNUM): Define.
6002         (arm_<simd32_op>): New define_insn.
6003         (arm_sel): Likewise.
6004         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
6005         (CALL_USED_REGISTERS): Likewise.
6006         (REG_ALLOC_ORDER): Likewise.
6007         (FIRST_PSEUDO_REGISTER): Update value.
6008         (ARM_GE_BITS_READ): Define.
6009         * config/arm/arm.c (arm_conditional_register_usage): Clear
6010         APSRGE_REGNUM from operand_reg_set.
6011         (arm_ge_bits_access): Define.
6012         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
6013         ARM_BUIILTIN_sel.
6014         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
6015         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
6016         FAIL if ARM_GE_BITS_READ.
6017         (*arm_add<mode>3): New define_insn.
6018         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
6019         (*arm_sub<mode>3): New define_insn.
6020         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
6021         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
6022         __usub16): Define.
6023         * config/arm/arm_acle_builtins.def: Define builtins for the above.
6024         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
6025         (simd32_op): Handle the above.
6026         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
6027         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
6028         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
6029         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
6031 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6033         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
6034         (arm_smlabb): New define_expand.
6035         (*maddhisi4tb): Rename to...
6036         (maddhisi4tb): ... This.
6037         (*maddhisi4tt): Rename to...
6038         (maddhisi4tt): ... This.
6039         (arm_smlatb_setq): New define_insn.
6040         (arm_smlatb): New define_expand.
6041         (arm_smlatt_setq): New define_insn.
6042         (arm_smlatt): New define_expand.
6043         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
6044         (arm_<smlaw_op>): New define_expand.
6045         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
6046         __smlawb, __smlawt): Define.
6047         * config/arm_acle_builtins.def: Define builtins for the above.
6048         * config/arm/iterators.md (SMLAWBT): New int_iterator.
6049         (slaw_op): New int_attribute.
6050         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
6052 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6054         * config/arm/arm.md (arm_<ss_op>): New define_expand.
6055         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
6056         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
6057         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
6058         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
6059         (ss_op): New code_attr.
6061 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6063         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
6064         * config/arm/arm.md (APSRQ_REGNUM): Define.
6065         (add_setq): New define_subst.
6066         (add_clobber_q_name): New define_subst_attr.
6067         (add_clobber_q_pred): Likewise.
6068         (maddhisi4): Change to define_expand.  Split into mult and add if
6069         ARM_Q_BIT_READ.
6070         (arm_maddhisi4): New define_insn.
6071         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
6072         (*maddhisi4tt): Likewise.
6073         (arm_ssat): New define_expand.
6074         (arm_usat): Likewise.
6075         (arm_get_apsr): New define_insn.
6076         (arm_set_apsr): Likewise.
6077         (arm_saturation_occurred): New define_expand.
6078         (arm_set_saturation): Likewise.
6079         (*satsi_<SAT:code>): Rename to...
6080         (satsi_<SAT:code><add_clobber_q_name>): ... This.
6081         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
6082         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
6083         (CALL_USED_REGISTERS): Mark apsrq.
6084         (FIRST_PSEUDO_REGISTER): Update value.
6085         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
6086         (machine_function): Add q_bit_access.
6087         (ARM_Q_BIT_READ): Define.
6088         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
6089         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
6090         operand_reg_set.
6091         (arm_q_bit_access): Define.
6092         * config/arm/arm-builtins.c: Include stringpool.h.
6093         (arm_sat_binop_imm_qualifiers,
6094         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
6095         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
6096         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
6097         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
6098         SET_SAT_QUALIFIERS): Likewise.
6099         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
6100         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
6101         Handle 0 argument expander.
6102         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
6103         (arm_check_builtin_call): Define.
6104         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
6105         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
6106         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
6107         (arm_q_bit_access): Likewise.
6108         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
6109         __saturation_occurred, __set_saturation_occurred): Define.
6110         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
6111         saturation_occurred, set_saturation_occurred.
6112         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
6113         (UNSPEC_APSR_READ): Likewise.
6114         (VUNSPEC_APSR_WRITE): Likewise.
6115         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
6116         (*arm_ssadd<mode>3): New define_insn.
6117         (sssub<mode>3): Convert to define_expand.
6118         (*arm_sssub<mode>3): New define_insn.
6119         (ssmulsa3): Convert to define_expand.
6120         (*arm_ssmulsa3): New define_insn.
6121         (usmulusa3): Convert to define_expand.
6122         (*arm_usmulusa3): New define_insn.
6123         (ssmulha3): FAIL if ARM_Q_BIT_READ.
6124         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
6125         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
6127 2019-11-07  Martin Liska  <mliska@suse.cz>
6129         PR c++/92354
6130         * cgraph.c (delete_function_version): Clear global
6131         variable version_info_node if equal to deleted
6132         function.
6134 2019-11-07  Martin Liska  <mliska@suse.cz>
6136         * fold-const.c (operand_compare::operand_equal_p): Add comparison
6137         of CONSTRUCTOR_NO_CLEARING.
6138         (operand_compare::hash_operand): Likewise.
6140 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
6142         Support 64-bit double and 64-bit long double configurations.
6144         PR target/92055
6145         * config.gcc (tm_defines) [avr]: Set from --with-double=,
6146         --with-long-double=.
6147         * config/avr/t-multilib: Remove.
6148         * config/avr/t-avr: Output of genmultilib.awk is now fully
6149         dynamically generated and no more part of the repo.
6150         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
6151         Pass them down to...
6152         * config/avr/genmultilib.awk: ...here and handle them.
6153         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
6154         (-mlong-double=, avr_long_double). New option and var.
6155         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
6156         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
6157         Set default as requested by --with-double=
6158         (TARGET_HANDLE_OPTION): Define to this...
6159         (avr_handle_option): ...new hook worker.
6160         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
6161         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
6162         (avr_double_lib): New proto for spec function.
6163         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
6164         (DRIVER_SELF_SPECS): Call %:double-lib.
6165         * config/avr/avr.c (avr_option_override): Assert
6166         sizeof(long double) >= sizeof(double) for the target.
6167         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
6168         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
6169         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
6170         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
6171         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
6172         New built-in define depending on --with-double=, --with-long-double=.
6173         * config/avr/driver-avr.c (avr_double_lib): New spec function.
6174         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
6175         * doc/install.texi (Cross-Compiler-Specific Options)
6176         <--with-double=, --with-long-double=>: Doc.
6178 2019-11-07  Richard Biener  <rguenther@suse.de>
6180         * dbgcnt.def (gimple_unroll): New.
6181         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
6182         gimple_unroll debug counter before applying transform.
6183         (try_peel_loop): Likewise.
6185 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
6187         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
6188         frame pointer in multiple registers.
6189         (ira_setup_eliminable_regset): Setup eliminable_regset,
6190         ira_no_alloc_regs and regs_ever_live for frame pointer in
6191         multiple registers.
6193 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6195         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
6196         V2DI modes.
6198 2019-11-06  Jan Hubicka  <jh@suse.cz>
6200         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
6201         allocations.
6202         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
6203         Do not silently ignore summary corruptions.
6205 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6207         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
6208         the epilogue if there are peeled iterations for it to handle.
6210 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6212         * config/arc/arc.c (arc_split_ior): Add asserts.
6213         (arc_split_mov_const): Likewise.
6214         (arc_check_ior_const): Do not match known short immediate values.
6215         * config/arc/arc.md (movsi): Don't split predicated instructions
6216         (iorsi): Likewise.
6218 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6220         * config/arc/arc.opt (mea): Update help string.
6221         * doc/invoke.texi(ARC): Update mea option info.
6223 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6225         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
6226         (zero_extendqisi2_ac): Likewise.
6227         (zero_extendhisi2_i): Likewise.
6228         (extendqihi2_i): Likewise.
6229         (extendqisi2_ac): Likewise.
6230         (extendhisi2_i): Likewise.
6232 2019-11-06  Richard Biener  <rguenther@suse.de>
6234         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
6235         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
6236         Simplify single_defuse_cycle condition.
6238 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6240         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
6241         epilogue loop, make sure that the VF is small enough or that
6242         the epilogue loop can be fully-masked.
6244 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6246         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
6247         loop when we've finished, rather than returning directly from
6248         the loop.  Use a local variable to track whether we're still
6249         searching for the preferred simdlen.  Make vect_epilogues
6250         record whether the next iteration should try to treat the
6251         loop as an epilogue.
6253 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
6255         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
6256         __arc_hard_float__, __ARC_HARD_FLOAT__,
6257         __arc_soft_float__, __ARC_SOFT_FLOAT__
6259 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6261         PR tree-optimization/92317
6262         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
6263         update phi's with constant phi arguments.
6265 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6266             Alexandre Oliva  <oliva@adacore.com>
6268         * common.opt (-fcallgraph-info[=]): New option.
6269         * doc/invoke.texi (Developer options): Document it.
6270         * opts.c (common_handle_option): Handle it.
6271         * builtins.c (expand_builtin_alloca): Record allocation if
6272         -fcallgraph-info=da.
6273         * calls.c (expand_call): If -fcallgraph-info, record the call.
6274         (emit_library_call_value_1): Likewise.
6275         * flag-types.h (enum callgraph_info_type): New type.
6276         * explow.c: Include stringpool.h.
6277         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
6278         * function.c (allocate_stack_usage_info): New.
6279         (allocate_struct_function): Call it for -fcallgraph-info.
6280         (prepare_function_start): Call it otherwise.
6281         (record_final_call, record_dynamic_alloc): New.
6282         * function.h (struct callinfo_callee): New.
6283         (CALLEE_FROM_CGRAPH_P): New.
6284         (struct callinfo_dalloc): New.
6285         (struct stack_usage): Add callees and dallocs.
6286         (record_final_call, record_dynamic_alloc): Declare.
6287         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6288         object if -fcallgraph-info=da.
6289         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6290         * print-tree.h (print_decl_identifier): Declare.
6291         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6292         * print-tree.c: Include print-tree.h.
6293         (print_decl_identifier): New function.
6294         * toplev.c: Include print-tree.h.
6295         (callgraph_info_file): New global variable.
6296         (callgraph_info_external_printed): Likewise.
6297         (output_stack_usage): Rename to...
6298         (output_stack_usage_1): ... this.  Make it static, add cf
6299         parameter.  If -fcallgraph-info=su, print stack usage to cf.
6300         If -fstack-usage, use print_decl_identifier for
6301         pretty-printing.
6302         (INDIRECT_CALL_NAME): New.
6303         (dump_final_node_vcg_start): New.
6304         (dump_final_callee_vcg, dump_final_node_vcg): New.
6305         (output_stack_usage): New.
6306         (lang_dependent_init): Open and start file if
6307         -fcallgraph-info.  Allocated callgraph_info_external_printed.
6308         (finalize): If callgraph_info_file is not null, finish it,
6309         close it, and release callgraph_info_external_printed.
6311 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
6312             Frederik Harwath  <frederik@codesourcery.com>
6313             Thomas Schwinge  <thomas@codesourcery.com>
6315         * omp-low.c (struct omp_context): New fields
6316         local_reduction_clauses, outer_reduction_clauses.
6317         (new_omp_context): Initialize these.
6318         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6319         (scan_omp_for): Check reduction clauses for incorrect nesting.
6321 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
6323         PR inline-asm/92352
6324         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6325         operands with non-memory constraints.
6327 2019-11-05  Martin Sebor  <msebor@redhat.com>
6329         PR tree-optimization/92373
6330         * tree.c (component_ref_size): Only consider initializers of objects
6331         of matching struct types.
6332         Return null for instances of interior zero-length arrays.
6334 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
6336         * doc/md.texi (Insn Splitting): Fix combiner documentation.
6338 2019-11-05  Jason Merrill  <jason@redhat.com>
6340         PR tree-optimization/91825
6341         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6343 2019-11-05  Jim Wilson  <jimw@sifive.com>
6345         PR middle-end/92263
6346         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6347         optimize_insn_for_speed_p is true.
6349 2019-11-05  Martin Sebor  <msebor@redhat.com>
6351         PR middle-end/92333
6352         PR middle-end/82608
6353         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6354         size.
6355         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6356         name and location for a temporary variable.
6358 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6360         * tree-vrp.c (value_range::value_range): Fix whitespace.
6361         (defined_ranges_p): Same.
6362         (range_fold_binary_symbolics_p): Same.
6363         (value_range::intersect_helper): Same.
6364         (value_range::union_helper): Same.
6365         * tree-vrp.h (range_fold_binary_expr): Same.
6367 2019-11-04  Martin Sebor  <msebor@redhat.com>
6369         PR middle-end/92341
6370         PR middle-end/82612
6371         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6372         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6373         of message printed in a warning for empty arrays.
6374         (vrp_prop::check_mem_ref): Also handle function parameters and
6375         empty arrays.
6377 2019-11-05  Richard Biener  <rguenther@suse.de>
6379         PR tree-optimization/92371
6380         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6381         on the original stmt of live stmts in the chain.
6382         (vectorizable_live_operation): Look at the original stmt when
6383         checking STMT_VINFO_REDUC_DEF.
6385 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6387         * gimple-fold.c, gimple-loop-versioning.cc,
6388         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6389         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6390         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6391         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6392         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6393         value_range_equiv, and value_range_base to value_range.
6395 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6397         * expr.c (build_personality_function): Fix generated type to
6398         match actual personality functions.
6400 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6402         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6403         enough bytes for the NULL character.
6405 2019-11-05  Richard Biener  <rguenther@suse.de>
6407         PR tree-optimization/92280
6408         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6409         had a single use do not create a new CTOR.
6410         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6411         BIT_FIELD_REF of a CTOR via GENERIC.
6413 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
6415         * config/s390/s390.c (s390_vector_alignment): Check if the value
6416         fits into uhwi before using it.
6418 2019-11-05  Martin Liska  <mliska@suse.cz>
6420         * symbol-summary.h: Use ggc_delete.
6422 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
6424         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6425         Change vec_perm field to 10.
6427 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
6429         * doc/install.texi: Further fix syntax for html generation.
6431 2019-11-05  Martin Liska  <mliska@suse.cz>
6433         * symbol-summary.h: Rename allocator to m_allocator and
6434         add comment.
6436 2019-11-05  Richard Biener  <rguenther@suse.de>
6438         PR tree-optimization/92324
6439         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6440         all signed or unsigned operations.
6442 2019-11-05  Jan Hubicka  <jh@suse.cz>
6444         * hsa-brig.c: Include alloc-pool.h
6445         * hsa-dump.c: Likewise.
6446         * hsa-gen.c: Likewise.
6447         * hse-regalloc.c: Likewise.
6448         * ipa-hsa.c: Likewise.
6449         * ipa-predicate.c: Likewise.
6450         * ipa-reference.c: Likewise.
6451         * ipa-sra.c: Likewise.
6452         * omp-expand.c: Likewise.
6453         * omp-general.c: Likewise.
6454         * omp-low.c: Likewise.
6455         * sumbol-summary.h (function_summary_base): Add allocator.
6456         (function_summary<T *>::function_summary): Update construction.
6457         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6458         (call_summary_base): Add allcator.
6459         (call_summary<T *>::call_summary): Update construction.
6460         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6462 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
6464         PR tree-optimization/91945
6465         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6466         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6467         Formatting fix.
6469 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6471         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6472         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6473         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6474         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6475         (vrp_set_zero_nonzero_bits): Move to...
6476         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6477         (vr_values::simplify_bit_ops_using_ranges): Rename
6478         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6480 2019-11-05  Martin Liska  <mliska@suse.cz>
6482         PR c++/92339
6483         * fold-const.c (operand_compare::hash_operand): Remove
6484         FIELD_DECL handling.
6486 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6488         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6489         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6490         static.
6492 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6494         * tree-vrp.c (value_range_base::operator==): Use equal_p to
6495         properly handle symbolics.
6496         (range_compatible_p): Remove.
6498 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
6500         * common.opt (-fabi-version): Document =14.
6501         * doc/invoke.texi (C++ Dialect Options): Likewise.
6503 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6505         * tree-vrp.c (value_range_base::set): Do not special case pointers.
6507 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
6509         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6510         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6511         gcn_omp_device_kind_arch_isa.
6512         * config/gcn/t-omp-device: New file.
6513         * configure.ac: Support gcn for omp_device_property.
6514         * configure: Regenerate.
6516 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6518         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6519         (vrp_val_max): Same.
6520         (vrp_val_is_min): Same.
6521         (vrp_val_is_max): Same.
6522         (value_range_base::nonzero_p): Remove last argument to
6523         vrp_val_is_max.
6524         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6525         (vrp_val_max): Same.
6526         (vrp_val_is_min): Same.
6527         (vrp_val_is_max): Same.
6528         (value_range_base::set_varying): Remove last argument to vrp_val*.
6529         (value_range_base::dump): Same.
6530         (value_range_base::set): Same.
6531         (value_range_base::normalize_symbolics): Same.
6532         (value_range_base::num_pairs): Same.
6533         (value_range_base::lower_bound): Same.
6534         (value_range_base::upper_bound): Same.
6535         (ranges_from_anti_range): Remove handle_pointers argument.
6536         (value_range_base::singleton_p): Remove last argument to
6537         ranges_from_anti_range.
6539 2019-11-04  Jan Hubicka  <jh@suse.cz>
6541         * ipa-reference.c (init_function_info): Initialize
6542         info->global.statics_read.
6544 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6546         * tree-vrp.c (value_range_base::invert): Use constructors to build
6547         range.
6549 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6551         * tree-vrp.c (range_int_cst_singleton_p): Remove.
6552         * tree-vrp.h (range_int_cst_singleton_p): Remove.
6554 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6556         * tree-vrp.c (value_range_base::normalize_addresses): Handle
6557         VR_UNDEFINED.
6559 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6561         * tree-vrp.c (dump_assert_info): New.
6562         (dump_asserts_info): New.
6564 2019-11-04  Jan Hubicka  <jh@suse.cz>
6566         * ipa-inline-transform.c: Include ipa-utils.h
6567         (inline_call): Set thunk_expansion flag.
6568         * ipa-utils.h (thunk_expansion): Declare.
6569         * ipa-devirt.c (thunk_expansion): New global var.
6570         (devirt_node_removal_hook): Do not invalidate cache while
6571         doing thunk expansion.
6573 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
6575         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6577 2019-11-04  Martin Sebor  <msebor@redhat.com>
6579         PR tree-optimization/92349
6580         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6581         memebers have constant sizes.
6583 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6585         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6586         parameter.
6587         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6588         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6589         vect_analyze_loop.
6591 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
6593         * expr.c (store_constructor): Modify to handle single element vectors.
6594         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6595         constructors.
6596         (vect_slp_check_for_constructors): New function.
6597         (vect_slp_analyze_bb_1): Call new function to check for vector
6598         constructors.
6599         (vectorize_slp_instance_root_stmt): New function.
6600         (vect_schedule_slp): Call new function to vectorize root stmt of vector
6601         constructors.
6602         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6604 2019-11-04  Richard Biener  <rguenther@suse.de>
6606         PR tree-optimization/92345
6607         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6608         we produced a reduction chain.
6609         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6610         LOOP_VINFO_REDUCTIONS.
6612 2019-11-04  Jan Hubicka  <jh@suse.cz>
6614         * cgraphclones.c (cgraph_node::create_version_clone): Do not
6615         duplicate summaries.
6616         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6617         first.
6618         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6619         access call summaries.
6620         (dump_ipa_call_summary): Be ready for missing edge summaries.
6621         (analyze_function_body): Use get instead of get_create to access
6622         edge summary.
6623         (estimate_calls_size_and_time): Do not access summaries of
6624         inlined edges; sanity check they are missing.
6625         (ipa_call_context::estimate_size_and_time): Use get instead
6626         of get_create to access node summary.
6627         (inline_update_callee_summaries): Do not update depth of
6628         inlined edge.
6629         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6630         growth caches.
6631         (ipa_merge_fn_summary_after_inlining): Use get instead
6632         of get_create.
6633         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6634         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6635         fast summary.
6636         (initialize_growth_caches): Update.
6637         (do_estimate_edge_time): Remove redundant copy of context.
6638         (ipa_remove_from_growth_caches): New function.
6639         * ipa-inline.c (flatten_function): Update overall summary
6640         only when optimizing.
6641         (inline_to_all_callers): Update overall summary of function
6642         inlined to.
6643         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6644         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6645         to false.
6647 2019-11-04  Richard Biener  <rguenther@suse.de>
6649         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6650         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6652 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
6654         * ggc-common.c: Include system.h before malloc.h.
6656 2019-11-04  Alexandre Oliva <oliva@adacore.com>
6658         * configure.ac: Pass --enable-obsolete=* and
6659         --enable-option-checking=* down to build configure, and fail
6660         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
6661         * configure: Rebuild.
6662         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6663         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6665 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6667         * config.in: Regenerate.
6668         * config/msp430/msp430.c (msp430_option_override): Emit an error if
6669         -mtiny-printf is used without GCC being configured with
6670         --enable-newlib-nano-formatted-io.
6671         * config/msp430/msp430.h (LINK_SPEC): Pass 
6672         "--wrap puts --wrap printf" when -mtiny-printf is used.
6673         * config/msp430/msp430.opt: Document -mtiny-printf.
6674         * configure: Regenerate.
6675         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6676         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6677         --enable-newlib-nano-formatted-io is passed.
6678         * doc/invoke.texi: Document -mtiny-printf.
6680 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6682         * configure: Regenerate.
6684 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6686         * config/msp430/driver-msp430.c
6687         (msp430_get_linker_devices_include_path): New spec function.
6688         * config/msp430/msp430-devices.c (msp430_dirname): New function.
6689         (extract_devices_dir_from_exec_prefix): New function.
6690         (extract_devices_dir_from_collect_gcc): New function.
6691         (msp430_check_env_var_for_devices): New function.
6692         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6693         (parse_devices_csv): Call msp430_check_env_var_for_devices if
6694         devices.csv was not found using other methods.
6695         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6696         New prototype.
6697         (msp430_dirname): Likewise.
6698         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6699         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6700         msp430_get_linker_devices_include_path.
6701         (TARGET_EXTRA_PRE_INCLUDES): Define.
6702         * doc/invoke.texi: Document new ways of searching for support files.
6704 2019-11-04  Richard Biener  <rguenther@suse.de>
6706         PR tree-optimization/92301
6707         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6708         as required by epilogue generation
6710 2019-11-04  Martin Liska  <mliska@suse.cz>
6712         PR ipa/92304
6713         * fold-const.c (operand_compare::hash_operand): Fix field
6714         hashing of CONSTRUCTOR.
6716 2019-11-04  Martin Liska  <mliska@suse.cz>
6718         * ggc.h (ggc_delete): New function.
6719         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6720         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6721         (ipa_free_all_node_params): Likewise.
6722         * ipa-sra.c (ipa_sra_analysis): Likewise.
6724 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6726         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6727         set_switch_stmt_execution_predicate, compute_bb_predicates,
6728         will_be_nonconstant_expr_predicate,
6729         phi_result_unknown_predicate,
6730         analyze_function_body): Pass arround params summary.
6731         (ipa_call_context::duplicate_from): New comment;
6732         only duplicate useful values.
6733         (ipa_call_context::equal_to): Only compare useful values.
6734         (remap_edge_summaries): Pass params_summary.
6735         (remap_hint_predicate): Likewise.
6736         (ipa_merge_fn_summary_after_inlining): Likewise.
6737         (inline_read_section): Initialize params summary used flags.
6738         * ipa-predicate.c (predicate::remap_after_inlining): Pass
6739         around param_summary.
6740         (add_condition): Initialized used params summary flags.
6741         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6742         (inline_param_summary::useless_p): New predicate.
6743         (remap_after_inlining, add_condition): Update prototype
6744         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6745         move_cost.
6746         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6747         summaries.
6748         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6749         (ipa_analyze_virtual_call_uses): Likewise.
6750         (update_indirect_edges_after_inlining): Update param summaries.
6751         (ipa_print_node_params): Print used flags.
6752         (ipa_read_indirect_edge_info): Update param summareis.
6753         * ipa-prop.h (ipa_param_descriptor): Add
6754         used_by_ipa_predicates, used_by_indirect_call
6755         and used_by_polymorphic_call.
6756         (ipa_set_param_used_by_ipa_predicates,
6757         ipa_set_param_used_by_indirect_call,
6758         ipa_set_param_used_by_polymorphic_call,
6759         ipa_is_param_used_by_ipa_predicates,
6760         ipa_is_param_used_by_indirect_call,
6761         ipa_is_param_used_by_polymorphic_call): New inline functions.
6763 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6765         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6766         member function.
6767         (ipa_call_context::release): Add ALL parameter.
6768         (ipa_call_context::equal_to): New member function.
6769         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6770         duplicate_form, release, equal_to and exists_p member functoins.
6771         * ipa-inline-analysis.c (node_context_cache_entry): New
6772         class.
6773         (node_context_summary): Likewise.
6774         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6775         node_context_clear): New static vars.
6776         (initialize_growth_caches): New function.
6777         (free_growth_caches): Also delete node_context_cache; output stats.
6778         (do_estimate_edge_time): Cache contexts.
6779         (reset_node_cache): New function.
6780         * ipa-inline.c (reset_edge_caches): Reset also node cache.
6781         (inline_small_functions): Initialize growth caches.
6782         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6783         Declare.
6784         * ipa-predicate.h (inline_param_summary::equal_to): New.
6785         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6786         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6787         (ipa_agg_jump_function): Implement equal_to member function.
6789 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6791         * ipa-fnsummary.c (inline_read_section): Set vector size
6792         ahead of time.
6794 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6796         * ipa-fnsummary.c (ipa_call_context): New constructor.
6797         (estimate_node_size_and_time): Turn to ...
6798         (ipa_call_context::estimate_size_and_time): ... this one.
6799         (ipa_call_context::release): New.
6800         * ipa-fnsummary.h (ipa_call_context): New class.
6801         (estimate_node_size_and_time): Remove.
6802         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6803         do_estimate_edge_hints): Update.
6805 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6807         * config.in: Regenerate.
6808         * configure: Regenerate.
6809         * configure.ac: Check for mallinfo.
6810         * ggc-common.c: Include malloc.h if available;
6811         include options.h
6812         (report_heap_memory_use): New functoin.
6813         * ggc-page.c (ggc_grow): Do not print "start".
6814         * ggc.h (report_heap_memory_use): Declare.
6815         * pases.c (execute_one_pass): Report memory after IPA passes.
6816         (ipa_read_summaries_1): Likewise.
6817         (ipa_read_optimization_summaries_1): Likewise.
6819 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
6821         * gimplify.h (omp_construct_selector_matches): Change return
6822         type to int, add a new SCORES argument.
6823         * gimplify.c (omp_construct_selector_matches): Likewise.  If
6824         SCORES is non-NULL, compute scores of each construct.
6825         * omp-general.h (omp_get_context_selector): Declare.
6826         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6827         Adjust omp_construct_selector_matches callers.
6828         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6829         (omp_context_compute_score): New function.
6830         (omp_resolve_declare_variant): Compute scores and decide based on
6831         that.
6833         PR bootstrap/92314
6834         * configure.ac: Don't look for omp-device-properties files from
6835         installed offloading compilers.  Instead add tmake_file snippets
6836         for configured offloading targets and use files they generate.
6837         * Makefile.in (install): Don't depend on
6838         install-omp-device-properties.
6839         (install-omp-device-properties): Remove goal.
6840         * config/i386/t-omp-device: New file.
6841         * config/i386/t-intelmic (omp-device-properties): Remove goal.
6842         * config/nvptx/t-omp-device: New file.
6843         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6844         * configure: Regenerated.
6846         * omp-general.h (omp_context_selector_set_compare): Declare.
6847         * omp-general.c (omp_construct_simd_compare,
6848         omp_context_selector_props_compare, omp_context_selector_set_compare,
6849         omp_context_selector_compare): New functions.
6850         (omp_resolve_declare_variant): Prune variants that are strict subset
6851         of another variant.
6853 2019-11-01  Martin Sebor  <msebor@redhat.com>
6855         PR middle-end/91679
6856         PR middle-end/91647
6857         PR middle-end/91463
6858         PR middle-end/92312
6859         * doc/invoke.texi (-Wzero-length-bounds): Document.
6860         * gimple-match-head.c (try_conditional_simplification): Use memcpy
6861         instead of a hand-rolled loop to avoid PR 92323.
6862         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6863         with initializers.
6864         (vrp_prop::check_mem_ref): Handle declared struct objects.
6865         * tree.c (last_field): New function.
6866         (array_at_struct_end_p): Handle MEM_REF.
6867         (get_initializer_for): New helper.
6868         (component_ref_size): Add argument.  Rename locals.  Call
6869         get_initializer_for instead of fold_ctor_reference.  Correct handling
6870         of flexible array members.
6871         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6873 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6875         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6876         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6877         UNSPEC_VSX_CVSPUXDS): Remove.
6878         (vsx_xvcvspdp): New define_expand, old define_insn split to...
6879         (vsx_xvcvspdp_be): ... this.  New.  And...
6880         (vsx_xvcvspdp_le): ... this.  New.
6881         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6882         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
6883         (vsx_xvcv<su>xwdp_le): ... this.  New.
6884         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6885         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
6886         (vsx_xvcvsp<su>xds_le): ... this.  New.
6888 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6890         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6891         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6892         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6893         UNSPEC_VSX_XVCVSPSXWS): Remove.
6894         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6895         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6897 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6899         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6900         (UNSPEC_VSX_XVCDPSP): Remove.
6901         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6902         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6904 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
6906         * hooks.c (hook_tree_tree_bool_null): New.
6907         * hooks.h (hook_tree_tree_bool_null): Declare.
6908         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6909         (LANG_HOOKS_DECLS): Add it.
6910         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6911         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6912         (lower_omp_target): Handle Fortran array with descriptor in
6913         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6915 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
6917         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6918         Assert that the type we store in abi_vector_types is its own
6919         main variant.
6920         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6922 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6924         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6925         from a CONST_INT address when TARGET_THUMB2.
6927 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6929         * config/arm/arm.md (add_not_cin): New insn.
6930         (add_not_shift_cin): Likewise.
6932 2019-10-31  Martin Liska  <mliska@suse.cz>
6934         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6935         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6936         and compare_memory_operand.
6938 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
6940         * configure.ac: Compute and substitute omp_device_properties and
6941         omp_device_property_deps.
6942         * Makefile.in (generated_files): Add omp-device-properties.h.
6943         (omp-general.o): Depend on omp-device-properties.h.
6944         (omp_device_properties): New make variable.
6945         (omp-device-properties.h, s-omp-device-properties-h,
6946         install-omp-device-properties): New goals.
6947         (install): Depend on install-omp-device-properties for accelerators.
6948         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6949         * target.h (enum omp_device_kind_arch_isa): New enum.
6950         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6951         documentation.
6952         * omp-general.c: Include omp-device-properties.h.
6953         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6954         colon instead of comma.
6955         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6956         functions.
6957         (omp_context_selector_matches): Implement device set arch/isa
6958         selectors, improve device set kind selector handling.
6959         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6960         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6961         TARGET_SIMD_CLONE_USABLE): Formatting fix.
6962         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6963         ix86_omp_device_kind_arch_isa.
6964         * config/i386/i386-options.c (struct ix86_target_opts): Move type
6965         definition from ix86_target_string to file scope.
6966         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6967         to file scope.
6968         (ix86_omp_device_kind_arch_isa): New function.
6969         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6970         isa_opts definitions to file scope.
6971         * config/i386/t-intelmic (omp-device-properties): New goal.
6972         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6973         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6974         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6975         nvptx_omp_device_kind_arch_isa.
6976         * configure: Regenerate.
6977         * doc/tm.texi: Regenerate.
6979         PR middle-end/92231
6980         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6981         DECL_BUILT_IN in comment.  Remove redundant ()s around return
6982         argument.
6983         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6984         before calling fndecl_built_in_p.
6985         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6986         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6987         fndecl_built_in_p on it.
6989 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6991         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6993 2019-10-31  Martin Liska  <mliska@suse.cz>
6995         * config/arm/arm.c (arm_get_pcs_model): Remove usage
6996         of cgraph_local_info and use local_info_node instead.
6997         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6998         (bfin_function_ok_for_sibcall): Likewise.
6999         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
7000         (must_reload_pic_reg_p): Likewise.
7002 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
7004         PR c++/90947
7005         * tree.h (type_initializer_zero_p): Remove.
7006         * tree.c (type_initializer_zero_p): Remove.
7008 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7010         * doc/invoke.texi (-Wshadow, -Wshadow=global
7011         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
7013 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7015         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
7016         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
7017         and 'target exit data'.
7019 2019-10-30  Martin Jambor  <mjambor@suse.cz>
7021         ipa/92278
7022         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
7023         availability comparison.
7025 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7027         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
7028         calls to __mspabi_mpy* functions.
7029         * config/msp430/msp430.md (mulhisi3): New define_expand.
7030         (umulhisi3): New define_expand.
7031         (*mulhisi3_inline): Use old mulhisi3 define_insn.
7032         (*umulhisi3_inline): Use old umulhisi3 define_insn.
7034 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7036         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
7037         (msp430_check_plus_not_high_mem): New.
7038         (msp430_op_not_in_high_mem): Use new functions to check if the operand
7039         might be in low memory.
7040         Indicate that a 16-bit absolute address is in lower memory.
7042 2019-10-30  Martin Jambor  <mjambor@suse.cz>
7044         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
7045         ultimate_alias_target.
7047 2019-10-30  Richard Biener  <rguenther@suse.de>
7049         PR tree-optimization/92275
7050         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
7051         Copy all loop-closed PHIs.
7053 2019-10-30  Martin Liska  <mliska@suse.cz>
7055         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
7056         const_tree as function argument.
7057         (func_checker::compare_decl): Likewise.
7058         (func_checker::operand_equal_p): Likewise.
7059         (func_checker::compare_variable_decl): Likewise.
7060         (func_checker::parse_labels): Likewise.
7061         * ipa-icf-gimple.h: Likewise.
7063 2019-10-30  Martin Liska  <mliska@suse.cz>
7065         * ipa-icf-gimple.c (func_checker::compatible_types_p):
7066         Do not compare alias sets.  It's handled by operand_equal_p.
7068 2019-10-30  Martin Liska  <mliska@suse.cz>
7070         * ipa-icf-gimple.c (func_checker::func_checker): Do not
7071         initialize m_compare_polymorphic.
7072         (func_checker::compare_decl): Do not compare polymorphic types.
7073         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
7074         * ipa-icf.c (sem_function::equals_private): Do not call
7075         compare_polymorphic_p.
7077 2019-10-30  Martin Liska  <mliska@suse.cz>
7079         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
7080         compare_operand.
7081         (func_checker::compare_memory_operand): Remove.
7082         (func_checker::compare_cst_or_decl): Remove.
7083         (func_checker::operand_equal_valueize): Do not handle
7084         FIELD_DECL.
7085         (func_checker::compare_gimple_call): Call compare_operand.
7086         (func_checker::compare_gimple_assign): Likewise.
7087         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
7088         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
7089         * ipa-icf.h (icf_handled_component_p): Remove.
7091 2019-10-30  Martin Liska  <mliska@suse.cz>
7093         * ipa-icf-gimple.c (func_checker::hash_operand): New.
7094         (func_checker::compare_cst_or_decl): Remove handling
7095         of FIELD_DECL.
7096         (func_checker::compare_operand): Transform to ...
7097         (func_checker::operand_equal_p): ... this.
7098         * ipa-icf-gimple.h (class func_checker): Add
7099         operand_equal_p and hash_operand.
7100         * ipa-icf.c (sem_function::equals_private): Fix
7101         pushing and popping of cfun.
7103 2019-10-30  Martin Liska  <mliska@suse.cz>
7105         * fold-const.c (operand_equal_p): Move to ...
7106         (operand_compare::operand_equal_p): ... here.
7107         (operand_compare::verify_hash_value): New.
7108         (add_expr): Move to ...
7109         (operand_compare::hash_operand): ... here.
7110         * fold-const.h (operand_equal_p): Move to the class.
7111         (class operand_compare): New.
7112         * tree.c (add_expr): Remove.
7114 2019-10-30  Martin Liska  <mliska@suse.cz>
7116         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
7117         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
7119 2019-10-30  Martin Liska  <mliska@suse.cz>
7121         PR lto/91393
7122         PR lto/88220
7123         * cgraph.c (cgraph_node::get_create): Overwrite node->order
7124         from a first_clone in order to get proper LTO section
7125         in LTO stream.
7126         (cgraph_node::get_untransformed_body):
7127         Use lto_get_section_data where symtab_node::order
7128         must be provided.
7129         * cgraphclones.c (cgraph_node::find_replacement):
7130         Update also symbol order.
7131         * ipa-fnsummary.c (ipa_fn_summary_read):
7132         Use new function lto_get_summary_section_data.
7133         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
7134         * ipa-icf.c (sem_item_optimizer::read_summary):
7135         Likewise.
7136         * ipa-prop.c (ipa_prop_read_jump_functions):
7137         Likewise.
7138         (ipcp_read_transformation_summaries): Likewise.
7139         * ipa-sra.c (ipa_sra_read_summary): Likewise.
7140         * lto-cgraph.c (input_node): Add also order_base.
7141         (input_varpool_node): Likewise.
7142         (input_cgraph_1): Assign the order_base.
7143         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
7144         * lto-opts.c (lto_write_options): Pass new argument.
7145         * lto-section-in.c (lto_get_section_data): Add new argumente order.
7146         (lto_get_summary_section_data): New.
7147         (lto_get_raw_section_data): Add order argument.
7148         (lto_create_simple_input_block): Likewise.
7149         * lto-section-out.c (lto_destroy_simple_output_block):
7150         Likewise.
7151         * lto-streamer-in.c (lto_input_toplevel_asms):
7152         Use lto_get_summary_section_data.
7153         (lto_input_mode_table): Likewise.
7154         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
7155         (lto_output_toplevel_asms): Pass new argument.
7156         (copy_function_or_variable): Likewise.
7157         (produce_lto_section):Likewise.
7158         (produce_symtab): Likewise.
7159         (lto_write_mode_table): Likewise.
7160         (produce_asm_for_decls): Likewise.
7161         * lto-streamer.c (lto_get_section_name): Concat symbol name
7162         and symbol order.
7163         * lto-streamer.h (lto_get_section_data): Add order argument.
7164         (lto_get_summary_section_data): New.
7165         (lto_get_raw_section_data): Add order argument.
7166         (lto_get_section_name): Likewise.
7167         * varpool.c (varpool_node::get_constructor): Pass order argument.
7169 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
7171         PR tree-optimization/92262
7172         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
7173         ubase or cbase here.
7174         (remove_unused_ivs): Unshare comp before using it.
7176 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
7178         * ipa-prop.c (update_jump_functions_after_inlining):
7179         Watch for missing summaries.
7181 2019-10-30  Richard Biener  <rguenther@suse.de>
7183         PR tree-optimization/65930
7184         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
7185         chains also allow a leading and trailing conversion.
7186         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7187         intermediate reduction chains.
7188         (vect_analyze_slp_instance): Likewise.  Build a SLP
7189         node for a trailing conversion manually.
7191 2019-10-30  Martin Liska  <mliska@suse.cz>
7193         * cgraph.c (cgraph_node::local_info): Transform to ...
7194         (cgraph_node::local_info_node): ... this.
7195         (cgraph_node::dump): Remove cgraph_local_info and
7196         put its fields directly into cgraph_node.
7197         (cgraph_node::get_availability): Likewise.
7198         (cgraph_node::make_local): Likewise.
7199         (cgraph_node::verify_node): Likewise.
7200         * cgraph.h (struct GTY): Likewise.
7201         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
7202         (duplicate_thunk_for_node): Likewise.
7203         (cgraph_node::create_clone): Likewise.
7204         (cgraph_node::create_virtual_clone): Likewise.
7205         (cgraph_node::create_version_clone): Likewise.
7206         * cgraphunit.c (cgraph_node::reset): Likewise.
7207         (cgraph_node::finalize_function): Likewise.
7208         (cgraph_node::add_new_function): Likewise.
7209         (analyze_functions): Likewise.
7210         * combine.c (setup_incoming_promotions): Likewise.
7211         * config/i386/i386.c (ix86_function_regparm): Likewise.
7212         (ix86_function_sseregparm): Likewise.
7213         (init_cumulative_args): Likewise.
7214         * ipa-cp.c (determine_versionability): Likewise.
7215         (count_callers): Likewise.
7216         (set_single_call_flag): Likewise.
7217         (initialize_node_lattices): Likewise.
7218         (estimate_local_effects): Likewise.
7219         (create_specialized_node): Likewise.
7220         (identify_dead_nodes): Likewise.
7221         * ipa-fnsummary.c (compute_fn_summary): Likewise.
7222         (ipa_fn_summary_generate): Likewise.
7223         * ipa-hsa.c (check_warn_node_versionable): Likewise.
7224         (process_hsa_functions): Likewise.
7225         * ipa-icf.c (set_local): Likewise.
7226         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
7227         * ipa-inline.c (speculation_useful_p): Likewise.
7228         * ipa-profile.c (ipa_propagate_frequency): Likewise.
7229         (ipa_profile): Likewise.
7230         * ipa-split.c (split_function): Likewise.
7231         (execute_split_functions): Likewise.
7232         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7233         (ipa_sra_ipa_function_checks): Likewise.
7234         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7235         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7236         * lto-cgraph.c (lto_output_node): Likewise.
7237         (input_overwrite_node): Likewise.
7238         * multiple_target.c (expand_target_clones): Likewise.
7239         * omp-simd-clone.c (simd_clone_create): Likewise.
7240         * trans-mem.c (expand_call_tm): Likewise.
7241         (ipa_tm_mayenterirr_function): Likewise.
7242         (ipa_tm_diagnose_tm_safe): Likewise.
7243         (ipa_tm_diagnose_transaction): Likewise.
7244         (ipa_tm_create_version): Likewise.
7245         (ipa_tm_transform_calls_redirect): Likewise.
7246         (ipa_tm_execute): Likewise.
7247         * tree-inline.c (expand_call_inline): Likewise.
7249 2019-10-29  Martin Liska  <mliska@suse.cz>
7251         * symbol-summary.h (function_summary): Pass memory location
7252         to underlaying hash_map (or vec).
7253         (V>::fast_function_summary): Likewise.
7255 2019-10-29  Martin Liska  <mliska@suse.cz>
7257         * ggc.h (ggc_alloc_no_dtor): New function.
7258         * ipa-fnsummary.c (ipa_free_fn_summary): Call
7259         destructor and ggc_free.
7260         (ipa_free_size_summary): Call delete instead
7261         of release.
7262         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
7263         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
7264         (ipa_free_all_edge_args): Call destructor and ggc_free.
7265         (ipa_free_all_node_params): Likewise.
7266         (ipcp_free_transformation_sum): Likewise.
7267         * ipa-prop.h (ipa_check_create_node_params):
7268         Call new ggc_alloc_no_dtor.
7269         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
7270         (ipa_sra_analysis): Call destructor and ggc_free.
7271         Replace release with delete operator.
7272         * symbol-summary.h (release): Remove ..
7273         (V>::~fast_function_summary): and move logic here.
7274         Likewise for other classes.
7276 2019-10-29  Richard Biener  <rguenther@suse.de>
7278         PR tree-optimization/92260
7279         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
7280         lane-reducing ops.
7282 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7284         PR tree-optimization/88915
7285         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7286         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7287         and make the valueize function pointer also take a void pointer.
7288         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7289         around vn_valueize, to call it without a context.
7290         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7291         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7292         (~_loop_vec_info): Release epilogue_vinfos.
7293         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7294         number of iterations of epilogue.
7295         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7296         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
7297         versioning threshold needed for main loop.
7298         (vect_analyze_loop): Likewise.
7299         (find_in_mapping): New helper function.
7300         (update_epilogue_loop_vinfo): New function.
7301         (vect_transform_loop): When vectorizing epilogues re-use analysis done
7302         on main loop and call update_epilogue_loop_vinfo to update it.
7303         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7304         stmts on loop preheader edge.
7305         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7306         we decided to vectorize epilogues.  Update epilogues NITERS and
7307         construct ADVANCE to update epilogues data references where needed.
7308         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7309         (vect_do_peeling, vect_update_inits_of_drs,
7310          determine_peel_for_niter, vect_analyze_loop): Add or update
7311         declarations.
7312         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7313         created loop_vec_info's for epilogues when available.  Otherwise analyse
7314         epilogue separately.
7316 2019-10-29  Richard Biener  <rguenther@suse.de>
7318         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7319         example.
7321 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7323         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7324         index for the COND_EXPR from stmt_info rather than reduc_info.
7326 2019-10-29  Richard Biener  <rguenther@suse.de>
7328         PR tree-optimization/65930
7329         * tree-vect-loop.c (check_reduction_path): Relax single-use
7330         check allowing out-of-loop uses.
7331         (vect_is_simple_reduction): SLP reduction chains cannot have
7332         intermediate stmts used outside of the loop.
7333         (vect_create_epilog_for_reduction): The adjustment might need
7334         to be converted.
7335         (vectorizable_reduction): Annotate live stmts of the reduction
7336         chain with STMT_VINFO_REDUC_DEF.
7337         * tree-vect-stms.c (process_use): Remove no longer true asserts.
7339 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7341         * calls.c (pass_by_reference): Leave the target to decide whether
7342         POLY_INT_CST-sized arguments should be passed by value or reference,
7343         rather than forcing them to be passed by reference.
7344         (must_pass_in_stack_var_size): Likewise.
7345         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7346         V31_REGNUM to P15_REGNUM.
7347         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7348         Take an extra "silent_p" parameter, defaulting to false.
7349         (aarch64_sve::svbool_type_p): Declare.
7350         (aarch64_sve::nvectors_if_data_type): Likewise.
7351         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7352         (aarch64_frame::reg_offset): Turn into poly_int64s.
7353         (aarch64_frame::save_regs_size): Likewise.
7354         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7355         (aarch64_frame::sve_callee_adjust): Likewise.
7356         (aarch64_frame::spare_reg_reg): Likewise.
7357         (ARM_PCS_SVE): New arm_pcs value.
7358         (CUMULATIVE_ARGS::aapcs_nprn): New field.
7359         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7360         (CUMULATIVE_ARGS::silent_p): Likewise.
7361         (BITS_PER_SVE_PRED): New macro.
7362         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7363         function.  Reject aarch64_vector_pcs attributes on SVE functions.
7364         (aarch64_attribute_table): Use the above handler.
7365         (aarch64_sve_abi): New function.
7366         (aarch64_sve_argument_p): Likewise.
7367         (aarch64_returns_value_in_sve_regs_p): Likewise.
7368         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7369         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7370         descriptor for them.
7371         (aarch64_simd_decl_p): Delete.
7372         (aarch64_emit_cfi_for_reg_p): New function.
7373         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7374         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
7375         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7376         as partly clobbered for the SVE PCS.
7377         (aarch64_function_ok_for_sibcall): Check whether the two functions
7378         use the same ABI, rather than checking specifically for whether
7379         they're aarch64_vector_pcs functions.
7380         (aarch64_pass_by_reference): Raise an error for attempts to pass
7381         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
7382         if there are not enough free registers left, or if the argument is
7383         variadic.
7384         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7385         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7386         tuples in memory.
7387         (aarch64_layout_arg): Take a function_arg_info rather than
7388         individual properties.  Handle SVE predicates, vectors and tuples.
7389         Raise an error if they are passed to unprototyped functions.
7390         (aarch64_function_arg): If the silent_p flag is set, suppress the
7391         usual error about using float registers without TARGET_FLOAT.
7392         (aarch64_init_cumulative_args): Take a silent_p parameter and store
7393         it in the cumulative_args structure.  Initialize aapcs_nprn and
7394         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
7395         error about using float registers without TARGET_FLOAT.
7396         If the silent_p flag is not set, also raise an error about
7397         using SVE functions when SVE is disabled.
7398         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7399         and call it for SVE functions too.  Update aapcs_nprn similarly
7400         to the other register counts.
7401         (aarch64_layout_frame): If a big-endian function needs to save
7402         and restore Z8-Z15, search for a spare predicate that it can use.
7403         Store SVE predicates at the bottom of the register save area,
7404         followed by SVE vectors, then followed by the normal slots.
7405         Keep pointing the hard frame pointer at the base of the normal slots,
7406         above the SVE vectors.  Update the various frame creation and
7407         tear-down strategies for the new layout, initializing the new
7408         sve_callee_adjust field.  Add an additional layout for frames
7409         whose saved registers are all SVE registers.
7410         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7411         (aarch64_return_address_signing_enabled): Likewise.
7412         (aarch64_push_regs, aarch64_pop_regs): Update calls to
7413         aarch64_reg_save_mode.
7414         (aarch64_adjust_sve_callee_save_base): New function.
7415         (aarch64_add_cfa_expression): Move earlier in file.  Take the
7416         saved register as an rtx rather than a register number and use
7417         its mode for the MEM slot.
7418         (aarch64_save_callee_saves): Remove the mode argument and instead
7419         use aarch64_reg_save_mode to get the mode of each save slot.
7420         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
7421         offsets.  Allow GP offsets to be saved at a VL-based offset from
7422         the stack, handling this case using the frame pointer if available
7423         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
7424         big-endian SVE functions; use normal moves for other SVE saves.
7425         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7426         returns true.  Add explicit CFA notes when not storing via the
7427         stack pointer.  Do not try to pair SVE saves.
7428         (aarch64_restore_callee_saves): Cope with poly_int64 register
7429         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7430         use normal moves for other SVE restores.  Only add CFA restore notes
7431         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
7432         SVE restores.
7433         (aarch64_get_separate_components): Always keep the first SVE save
7434         in the prologue if we need to use it as a stack probe.  Don't allow
7435         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7436         Likewise the spare predicate register that they need.  Update the
7437         offset calculation to account for the SVE save area.  Use the
7438         appropriate range check for SVE LDR and STR instructions.
7439         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7440         (aarch64_process_components): Likewise.  Update the offset
7441         calculation to account for the SVE save area.  Only mark the
7442         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7443         Do not try to pair SVE saves.
7444         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7445         reg_offsets.  When handling the final allocation, expect the
7446         first SVE register save to be part of the initial allocation
7447         and for it to act as a probe at SP.  Account for the SVE callee
7448         save area in the dump information.
7449         (aarch64_expand_prologue): Update the frame diagram.  Fold the
7450         SVE callee allocation into the initial allocation if stack clash
7451         protection is enabled.  Use new variables to track the offset
7452         of the frame chain (and hard frame pointer) from the current
7453         stack pointer, and likewise the offset of the bottom of the
7454         register save area.  Update calls to aarch64_save_callee_saves
7455         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
7456         saving the FP&SIMD registers.  Save the predicate registers.
7457         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7458         into account when setting the stack pointer from the frame pointer,
7459         and when deciding whether we can inherit the initial adjustment
7460         amount from the prologue.  Restore the predicate registers after
7461         the vector registers, then apply sve_callee_adjust, then restore
7462         the general registers.
7463         (aarch64_secondary_reload): Don't use secondary SVE reloads
7464         for VNx16BImode.
7465         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7466         (aarch64_short_vector_p): Return false for SVE types.
7467         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7468         at the start of the function.  Return false for SVE types.
7469         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7470         functions too.
7471         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7472         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7473         to big-endian targets for bytewise moves.
7474         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7476 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7477             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7478             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7480         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7481         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7482         aarch64-sve-builtins-base.o to extra_objs.  Add
7483         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7484         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7485         (aarch64-sve-builtins-shapes.o): Likewise.
7486         (aarch64-sve-builtins-base.o): New rules.
7487         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7488         (aarch64_resolve_overloaded_builtin): Likewise.
7489         (aarch64_check_builtin_call): Likewise.
7490         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7491         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
7492         pragma.
7493         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7494         (aarch64_svprfop): New enum.
7495         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7496         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7497         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7498         (aarch64_output_sve_cnt_pat_immediate): Likewise.
7499         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7500         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7501         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7502         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7503         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7504         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7505         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7506         (aarch64_sve::mangle_builtin_type): Likewise.
7507         (aarch64_sve::resolve_overloaded_builtin): Likewise.
7508         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7509         (aarch64_sve::expand_builtin): Likewise.
7510         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7511         (aarch64_sve_int_mode): Likewise.
7512         (aarch64_ptrue_all_mode): New function.
7513         (aarch64_convert_sve_data_to_pred): Make public.
7514         (svprfop_token): New function.
7515         (aarch64_output_sve_prefetch): Likewise.
7516         (aarch64_fold_sve_cnt_pat): Likewise.
7517         (aarch64_output_sve_cnt_pat_immediate): Likewise.
7518         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7519         instead of gen_while_ult.
7520         (aarch64_replace_reg_mode): Make public.
7521         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7522         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7523         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7524         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7525         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7526         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7527         (aarch64_sve_ptrue_svpattern_p): Likewise.
7528         (aarch64_sve_pred_valid_immediate): Check
7529         aarch64_sve_ptrue_svpattern_p.
7530         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7531         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7532         functions.
7533         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7534         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7535         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7536         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7537         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7538         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7539         New unspecs.
7540         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7541         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7542         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7543         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7544         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7545         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7546         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7547         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7548         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7549         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7550         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7551         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7552         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7553         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7554         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7555         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7556         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7557         (Vesize): Handle partial vector modes.
7558         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7559         mode attributes.
7560         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7561         iterators.
7562         (s, paired_extend, inc_dec): New code attributes.
7563         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7564         (SVE_INT_UNARY): Add UNSPEC_RBIT.
7565         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7566         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7567         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7568         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7569         UNSPEC_COND_FMULX.
7570         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7571         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7572         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7573         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7574         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7575         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7576         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7577         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7578         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7579         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7580         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7581         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7582         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7583         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7584         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7585         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7586         UNSPEC_COND_FSCALE.
7587         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7588         (binqops_op, binqops_op_rev, last_op): New int attributes.
7589         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7590         (fn, ab): New int attributes.
7591         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7592         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7593         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7594         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7595         UNSPEC_RBIT.
7596         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7597         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7598         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7599         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7600         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7601         UNSPEC_COND_FMULX.
7602         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7603         (brk_reg_con, brk_reg_opno): New int attributes.
7604         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7605         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7606         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7607         UNSPEC_COND_FMIN.
7608         (max_elem_bits): New int attribute.
7609         (min_elem_bits): Handle UNSPEC_RBIT.
7610         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7611         TRUNCATE as well as SUBREG.
7612         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7613         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7614         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7615         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7616         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7617         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7618         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7619         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7620         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7621         (aarch64_gather_scale_operand_h): New predicates.
7622         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7623         (vgd, vgh, vgw, vsQ, vsS): New constraints.
7624         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7625         (*aarch64_sve_reinterpret<mode>): Allow any source register
7626         instead of requiring an exact match.
7627         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7628         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7629         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7630         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7631         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7632         (aarch64_update_ffrt): New patterns.
7633         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7634         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7635         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7636         (@aarch64_ld<fn>f1<mode>): New patterns.
7637         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7638         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7639         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7640         (@aarch64_ldnt1<mode>): New patterns.
7641         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7642         the scalar part of the address.
7643         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7644         scalar part of the addresse and add an alternative for handling
7645         nonzero offsets.
7646         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7647         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7648         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7649         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7650         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7651         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7652         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7653         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7654         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7655         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7656         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7657         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7658         (@aarch64_sve_prefetch<mode>): New patterns.
7659         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7660         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7661         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7662         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7663         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7664         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7665         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7666         (@aarch64_stnt1<mode>): New patterns.
7667         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7668         the scalar part of the address.
7669         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7670         the scalar part of the addresse and add an alternative for handling
7671         nonzero offsets.
7672         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7673         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7674         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7675         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7676         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7677         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7678         New patterns.
7679         (vec_duplicate<mode>): Use QI as the mode of the input operand.
7680         (extract_last_<mode>): Generalize to...
7681         (@extract_<LAST:last_op>_<mode>): ...this.
7682         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7683         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7684         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7685         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7686         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7687         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7688         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7689         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7690         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7691         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7692         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7693         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7694         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7695         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7696         (*aarch64_adr_uxtw_unspec): Likewise.
7697         (*aarch64_adr_uxtw): Rename to...
7698         (*aarch64_adr_uxtw_and): ...this.
7699         (@aarch64_adr<mode>_shift): New expander.
7700         (*aarch64_adr_shift_sxtw): New pattern.
7701         (aarch64_<su>abd<mode>_3): Rename to...
7702         (@aarch64_pred_<su>abd<mode>): ...this.
7703         (<su>abd<mode>_3): Update accordingly.
7704         (@aarch64_cond_<su>abd<mode>): New expander.
7705         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7706         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7707         (*<su>mul<mode>3_highpart): Rename to...
7708         (@aarch64_pred_<optab><mode>): ...this.
7709         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7710         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7711         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7712         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7713         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7714         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7715         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7716         (*v<ASHIFT:optab><mode>3): Rename to...
7717         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7718         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7719         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7720         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7721         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7722         (@cond_asrd<mode>): New expander.
7723         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7724         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7725         (*sdiv_pow2<mode>3): Delete.
7726         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7727         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7728         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7729         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7730         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7731         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7732         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7733         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7734         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7735         (*add<SVE_F:mode>3): Rename to...
7736         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7737         for SVE_STRICT_GP.
7738         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7739         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7740         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7741         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7742         (*sub<SVE_F:mode>3): Rename to...
7743         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7744         for SVE_STRICT_GP.
7745         (@aarch64_pred_abd<SVE_F:mode>): New expander.
7746         (*fabd<SVE_F:mode>3): Rename to...
7747         (*aarch64_pred_abd<SVE_F:mode>): ...this.
7748         (@aarch64_cond_abd<SVE_F:mode>): New expander.
7749         (*mul<SVE_F:mode>3): Rename to...
7750         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7751         for SVE_STRICT_GP.
7752         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7753         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7754         to...
7755         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7756         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7757         (*<nlogical><PRED_ALL:mode>3): Rename to...
7758         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7759         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7760         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7761         (*<logical_nn><PRED_ALL:mode>3): Rename to...
7762         (aarch64_pred_<logical_nn><mode>_z): ...this.
7763         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7764         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7765         (*fma<SVE_I:mode>4): Rename to...
7766         (@aarch64_pred_fma<SVE_I:mode>): ...this.
7767         (*fnma<SVE_I:mode>4): Rename to...
7768         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7769         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7770         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7771         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7772         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7773         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7774         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7775         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7776         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7777         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7778         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7779         (@aarch64_sve_tmad<mode>): Likewise.
7780         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7781         (*aarch64_sel_dup<mode>): Rename to...
7782         (@aarch64_sel_dup<mode>): ...this.
7783         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7784         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7785         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7786         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7787         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7788         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7789         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7790         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7791         (*fcm<cmp_op><mode>): Rename to...
7792         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
7793         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7794         (*fcmuo<mode>): Rename to...
7795         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
7796         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7797         (@aarch64_pred_fac<cmp_op><mode>): New expander.
7798         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7799         (fold_extract_last_<mode>): Generalize to...
7800         (@fold_extract_<last_op>_<mode>): ...this.
7801         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7802         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7803         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7804         DImode result explicit.
7805         (reduc_plus_scal_<mode>): Update accordingly.
7806         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7807         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7808         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7809         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7810         (*aarch64_sve_tbl<mode>): Rename to...
7811         (@aarch64_sve_tbl<mode>): ...this.
7812         (@aarch64_sve_compact<mode>): New pattern.
7813         (*aarch64_sve_dup_lane<mode>): Rename to...
7814         (@aarch64_sve_dup_lane<mode>): ...this.
7815         (@aarch64_sve_dupq_lane<mode>): New pattern.
7816         (@aarch64_sve_splice<mode>): Likewise.
7817         (aarch64_sve_<perm_insn><mode>): Rename to...
7818         (@aarch64_sve_<perm_insn><mode>): ...this.
7819         (*aarch64_sve_ext<mode>): Rename to...
7820         (@aarch64_sve_ext<mode>): ...this.
7821         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7822         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7823         to...
7824         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7825         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7826         Rename to...
7827         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7828         ...this.
7829         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7830         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7831         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7832         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7833         to...
7834         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7835         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7836         a "@" marker.
7837         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7838         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7839         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7840         pattern.
7841         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7842         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7843         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7844         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7845         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7846         "@" marker.
7847         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7848         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7849         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7850         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7851         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7852         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7853         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7854         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7855         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7856         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7857         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7858         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7859         (aarch64_sve_cnt_pat): Likewise.
7860         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7861         (*aarch64_sve_incsi_pat): Likewise.
7862         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7863         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7864         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7865         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7866         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7867         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7868         (*aarch64_sve_decsi_pat): Likewise.
7869         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7870         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7871         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7872         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7873         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7874         (@aarch64_pred_cntp<mode>): Likewise.
7875         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7876         New expander.
7877         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7878         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7879         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7880         New expander.
7881         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7882         New pattern.
7883         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7884         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7885         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7886         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7887         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7888         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7889         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7890         New expander.
7891         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7892         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7893         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7894         New expander.
7895         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7896         New pattern.
7897         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7898         expander.
7899         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7900         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7901         expander.
7902         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7903         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7904         expander.
7905         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7906         * config/aarch64/arm_sve.h: New file.
7907         * config/aarch64/aarch64-sve-builtins.h: Likewise.
7908         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7909         * config/aarch64/aarch64-sve-builtins.def: Likewise.
7910         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7911         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7912         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7913         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7914         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7915         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7917 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7919         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7920         New pattern.
7921         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7922         SVE modes.
7924 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7926         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7927         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7928         FFRT_REGNUM + 1.
7929         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7930         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7931         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7932         (aarch64_hard_regno_nregs): Handle the new register classes.
7933         (aarch64_hard_regno_mode_ok): Likewise.
7934         (aarch64_regno_regclass): Likewise.
7935         (aarch64_class_max_nregs): Likewise.
7936         (aarch64_register_move_cost): Likewise.
7937         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7938         as general register_operands.
7940 2019-10-29  Martin Liska  <mliska@suse.cz>
7942         * ggc-common.c: One can't subtract unsigned types
7943         in compare function.
7945 2019-10-29  Martin Liska  <mliska@suse.cz>
7947         * cgraphunit.c (symbol_table::compile): Pass
7948         title as dump_memory_report argument.
7949         * toplev.c (dump_memory_report):  New argument.
7950         (finalize): Pass new argument.
7951         * toplev.h (dump_memory_report): Add argument.
7953 2019-10-29  Martin Liska  <mliska@suse.cz>
7955         * ggc-common.c: Move Leak to the first column.
7957 2019-10-29  Martin Liska  <mliska@suse.cz>
7959         * cgraphunit.c (symbol_table::compile): Remove argument
7960         for dump_memory_report.
7961         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7962         (compare_final): Remove in order to make report
7963         better readable.
7964         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
7965         * mem-stats.h (mem_alloc_description::get_list):
7966         Do not pass cmp.
7967         (mem_alloc_description::dump): Likewise here.
7968         * toplev.c (dump_memory_report): Remove final
7969         argument.
7970         (finalize): Likewise.
7971         * toplev.h (dump_memory_report): Remove argument.
7973 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7975         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7976         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7977         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7978         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7979         accept "const".
7981 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7983         * coretypes.h (string_int_pair): New typedef.
7984         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7985         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7986         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7988 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7990         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7991         (simulate_builtin_function_decl): Declare.
7992         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7993         (LANG_HOOKS_INITIALIZER): Include it.
7994         * langhooks.c (add_builtin_function_common): Rename to...
7995         (build_builtin_function): ...this.  Add a location parameter and use
7996         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
7997         the decl instead.
7998         (add_builtin_function): Update accordingly, passing the returned
7999         decl to the lang hook.
8000         (add_builtin_function_ext_scope): Likewise
8001         (simulate_builtin_function_decl): New function.
8003 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
8005         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
8006         example, use actual names of supported offload targets.
8008         PR target/92258
8009         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
8011 2019-10-28  Martin Sebor  <msebor@redhat.com>
8013         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
8014         (handle_store): Pass argument to get_addr_stridx.
8016 2019-10-28  Martin Sebor  <msebor@redhat.com>
8018         PR tree-optimization/92226
8019         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
8020         the offset is in the open range outlined by SI's length.
8022 2019-10-28  Martin Sebor  <msebor@redhat.com>
8024         PR c/66970
8025         * doc/cpp.texi (__has_builtin): Document.
8026         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
8028 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8030         PR target/82981
8031         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
8032         doubleword and low doubleword result of multiplication on
8033         MIPS64R6.
8035         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
8036         pure qualifier to the built-in.
8037         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
8038         built-ins.
8039         (struct mips_builtin_description): Add is_pure flag.
8040         (mips_init_builtins): Mark built-in as pure if the flag in the
8041         corresponding mips_builtin_description struct is set.
8043         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
8044         alternative which covers the floating-point input value. Also
8045         forbid the split of insert.d pattern for floating-point values.
8047 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8049         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
8050         * config/riscv/riscv-sr.c: New file.
8051         * config/riscv/riscv.c (riscv_reorg): New function.
8052         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8053         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
8054         (riscv_remove_unneeded_save_restore_calls): Declare.
8055         * config/riscv/t-riscv (riscv-sr.o): New build rule.
8057 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8059         PR tree-optimization/92163
8060         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
8061         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
8062         before calling bitmap_set_bit.
8063         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
8064         delete_dead_or_redundant_assignment.
8065         (dse_dom_walker::dse_optimize_stmt): Likewise.
8066         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
8068 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8070         PR middle-end/91272
8071         * tree-vect-stmts.c (vectorizable_condition): Support
8072         EXTRACT_LAST_REDUCTION with fully-masked loops.
8074 2019-10-28  Richard Biener  <rguenther@suse.de>
8076         PR tree-optimization/92252
8077         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
8078         STMT_VINFO_REDUC_IDX when swapping operands.
8080 2019-10-28  Richard Biener  <rguenther@suse.de>
8082         PR tree-optimization/92241
8083         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
8084         we failed to update the reduction index do not use the pattern
8085         stmts for the reduction chain.
8086         (vectorizable_reduction): When the reduction chain is corrupt,
8087         fail.
8088         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
8089         fail to update the reduction chain.
8091 2019-10-28  Richard Biener  <rguenther@suse.de>
8093         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8094         STMT_VINFO_REDUC_IDX from the actual stmt.
8095         (vect_transform_reduction): Likewise.
8096         (vectorizable_reduction): Compute the reduction chain length,
8097         do not recompute the reduction operand index.  Remove no longer
8098         necessary restriction for condition reduction chains.
8100 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
8102         PR target/92225
8103         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
8104         condition for V2DImode.
8106 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
8108         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
8109         Remove %k operand modifier.
8110         (*vec_extractv2df_1_sse): Remove %q operand modifier.
8112 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
8114         PR rtl-optimization/92007
8115         * cfgcleanup.c (thread_jump): Add an assertion that we don't
8116         call it after reload if hot/cold partitioning has been done.
8117         (class pass_postreload_jump): Rename to
8118         pass_jump_after_combine.
8119         (make_pass_postreload_jump): Rename to
8120         make_pass_jump_after_combine.
8121         * passes.def(pass_postreload_jump): Move before reload, rename
8122         to pass_jump_after_combine.
8123         * tree-pass.h (make_pass_postreload_jump): Rename to
8124         make_pass_jump_after_combine.
8126 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
8128         PR ipa/92242
8129         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
8130         for missing EDGE_REF
8131         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
8133 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
8135         PR tree-optimization/88760
8136         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
8137         Enable -funroll-loops for -O2 and above.
8138         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
8139         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
8140         do not turn on web and rngreg implicitly, if the unroller is not
8141         explicitly enabled.
8143 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8145         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
8146         jump functions.
8148 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
8150         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
8151         * cgraph.h (cgraph_node::rtl_info): Likewise.
8153 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8155         * ipa-cp.c (propagate_constants_across_call): If args are not available
8156         just drop everything to varying.
8157         (find_aggregate_values_for_callers_subset): Watch for missing
8158         edge summary.
8159         (find_more_scalar_values_for_callers_subs): Likewise.
8160         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8161         update_jump_functions_after_inlining, propagate_controlled_uses):
8162         Watch for missing summaries.
8163         (ipa_propagate_indirect_call_infos): Remove summary after propagation
8164         is finished.
8165         (ipa_write_node_info): Watch for missing summaries.
8166         (ipa_read_edge_info): Create new ref.
8167         (ipa_edge_args_sum_t): Add remove.
8168         (IPA_EDGE_REF_GET_CREATE): New macro.
8169         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
8170         edge summary.
8171         (remap_edge_change_prob): Likewise.
8173 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8175         * ipa-inline-transform.c (inline_call): update function summaries
8176         after expanidng thunk.
8178 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8180         * ipa-icf.c (sem_function::merge): Update function summaries.
8181         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
8183 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
8185         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
8186         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
8187         operand already has scalar mode.
8188         (iptr): Remove SF/DF.
8190 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
8192         PR target/91289
8193         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
8194         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
8195         this.
8197 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8199         * config/i386/sse.md
8200         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
8201         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
8202         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
8203         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
8204         <sse>_vmmaskcmp<mode>3):
8205         Change predicates from vector_operand to nonimmediate_operand,
8206         constraints xBm to xm, since scalar operations don't need
8207         memory address alignment.
8208         (avx512f_vmcmp<mode>3<round_saeonly_name>,
8209         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
8210         round_saeonly_nimm_predicate with
8211         round_saeonly_nimm_scalar_predicate.
8212         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8213         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
8214         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8215         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
8216         avx512f_vmfmadd_<mode>_mask3<round_name>,
8217         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8218         *avx512f_vmfmsub_<mode>_mask<round_name>,
8219         avx512f_vmfmsub_<mode>_mask3<round_name>,
8220         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
8221         *avx512f_vmfnmadd_<mode>_mask<round_name>,
8222         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8223         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8224         *avx512f_vmfnmsub_<mode>_mask<round_name>,
8225         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
8226         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
8227         cvtusi2<ssescalarmodesuffix>32<round_name>,
8228         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
8229         round_nimm_predicate with round_nimm_scalr_predicate.
8230         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
8231         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
8232         avx512er_vmrcp28<mode><round_saeonly_name>,
8233         avx512er_vmrsqrt28<mode><round_saeonly_name>,
8234         ): Replace round_saeonly_nimm_predicate with
8235         round_saeonly_nimm_scalar_predicate.
8236         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
8237         vector_operand with nonimmediate_operand.
8238         * config/i386/subst.md (round_scalar_nimm_predicate,
8239         round_saeonly_scalar_nimm_predicate): Replace
8240         vector_operand with nonimmediate_operand.
8242 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8244         PR target/89071
8245         * config/i386/i386.md (*rcpsf2_sse): Add
8246         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
8247         (*rsqrtsf2_sse): Ditto.
8248         (*sqrt<mode>2_sse): Ditto.
8249         (sse4_1_round<mode>2): separate constraint vm, add
8250         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
8251         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
8252         by pass rpad.
8253         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
8254         Ditto.
8255         (*sse_vmrsqrtv4sf2): Ditto.
8256         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8257         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
8258         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
8259         <iptr> pointer size modifier since vround support memory operand.
8261 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
8263         PR target/85969
8264         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
8265         static function.
8267 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8268             Tobias Burnus  <tobias@codesourcery.com>
8270         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
8271         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8272         common block decls.
8274 2019-10-25  Richard Biener  <rguenther@suse.de>
8276         PR tree-optimization/92222
8277         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
8278         (_slp_oprnd_info::second_pattern): Likewise.
8279         (_slp_oprnd_info::any_pattern): New.
8280         (vect_create_oprnd_info): Adjust.
8281         (vect_get_and_check_slp_defs): Compute whether any stmt is
8282         in a pattern.
8283         (vect_build_slp_tree_2): Avoid building up a node from scalars
8284         if any of the operand defs, not just the first, is in a pattern.
8286 2019-10-25  Richard Biener  <rguenther@suse.de>
8288         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8289         swapping if we actually have to modify the IL on a shared stmt.
8290         (vect_build_slp_tree_2): Never fail swapping on shared stmts
8291         because we no longer modify the IL.
8293 2019-10-25  Martin Liska  <mliska@suse.cz>
8295         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8297 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
8299         * tree-vect-loop.c (vectorizable_reduction): Restrict the
8300         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8301         handled by vect_transform_reduction.  Allow fully-masked loops
8302         to be used with reduction chains.
8303         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8304         operations in fully-masked loops.
8305         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8306         operations in fully-masked loops.
8308 2019-10-25  Richard Biener  <rguenther@suse.de>
8310         * tree-vect-loop.c (vectorizable_reduction): Verify
8311         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8312         correctly.
8313         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8314         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8315         stmts.
8317 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
8319         * gimplify.h (omp_construct_selector_matches): Declare.
8320         * gimplify.c (struct gimplify_omp_ctx): Add code member.
8321         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8322         called function if needed for flag_openmp.
8323         (gimplify_scan_omp_clauses): Set ctx->code.
8324         (omp_construct_selector_matches): New function.
8325         * omp-general.h (omp_constructor_traits_to_codes,
8326         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8327         * omp-general.c (omp_constructor_traits_to_codes,
8328         omp_context_selector_matches, omp_resolve_declare_variant): New
8329         functions.
8331         * config/arc/arc.c (hwloop_optimize): Add missing space in string
8332         literal.
8333         * config/rx/rx.c (rx_print_operand): Likewise.
8334         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8335         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8336         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8337         Likewise.
8338         * genemit.c (emit_c_code): Likewise.
8339         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
8341 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8343         * symbols-summary.h (fast_function_summary<T *, V>::release,
8344         fast_call_summary<T *, V>::release): Free m_vector.
8346 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8348         * cgraphunit.c (symbol_table::process_new_functions): Call
8349         ipa_free_size_summary.
8350         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8351         (devirtualization_time_bonus): Update.
8352         (ipcp_propagate_stage): Update.
8353         * ipa-fnsummary.c (ipa_size_summaries): New.
8354         (ipa_fn_summary_alloc): Alloc size summary.
8355         (dump_ipa_call_summary): Update.
8356         (ipa_dump_fn_summary): Update.
8357         (analyze_function_body): Update.
8358         (compute_fn_summary): Likewise.
8359         (ipa_get_stack_frame_offset): New function.
8360         (inline_update_callee_summaries): Do not update frame offsets.
8361         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8362         remove call and function summary.
8363         (ipa_update_overall_fn_summary): Update.
8364         (inline_read_section): Update.
8365         (ipa_fn_summary_write): Update.
8366         (ipa_free_fn_summary): Do not remove summaries.
8367         (ipa_free_size_summary): New.
8368         (release summary pass): Also run at WPA.
8369         * ipa-fnsummary.h (ipa_size_summary): Declare.
8370         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8371         estimated_self_stack_size.
8372         (ipa_size_summary_t): New type.
8373         (ipa_size_summaries): Declare.
8374         (ipa_free_size_summary): Declare.
8375         (ipa_get_stack_frame_offset): Declare.
8376         * ipa-icf.c (sem_function::merge): Update.
8377         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8378         (estimate_growth): Update.
8379         (growth_likely_positive): Update.
8380         (clone_inlined_nodes): Update.
8381         (inline_call): Update.
8382         * ipa-inline.c (caller_growth_limits): Update.
8383         (edge_badness): Update.
8384         (recursive_inlining): Update.
8385         (inline_small_functions): Update.
8386         (inline_to_all_callers_1): Update.
8387         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8389 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
8391         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8392         (uavg<mode>3_ceil): ... This.
8393         (altivec_vavgs<VI_char>): Rename to...
8394         (avg<mode>3_ceil): ... This.
8395         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8396         VAVGUW, VAVGSW): Adjust.
8398 2019-10-24  Nathan Sidwell  <nathan@acm.org>
8400         * dumpfile.c (dump_begin): Reorder decls to use RAII.
8402 2019-10-24  Martin Liska  <mliska@suse.cz>
8404         * symbol-summary.h (gt_pch_nx): Mark all functions
8405         with gcc_unreachable as we do not expect to be called.
8407 2019-10-24  Richard Biener  <rguenther@suse.de>
8409         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8410         chains try harder with operand swapping and instead of
8411         putting a shifted chain into the reduction operands put
8412         a repetition of the final reduction op there as if we'd
8413         reassociate the expression.
8415 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8417         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8418         statics_not_read and statics_not_written to statics_read and
8419         statics_written respectively.
8420         (no_module_statics): New static var.
8421         (ipa_reference_get_not_read_global): Rename to ...
8422         (ipa_reference_get_read_global): ... this.
8423         (ipa_reference_get_not_written_global): Rename to ...
8424         (ipa_reference_get_written_global): ... this.
8425         (dump_static_vars_set_to_file): Dump no_module_statics.
8426         (copy_static_var_set): Add for propagation parameter.
8427         (ipa_init): Initialize no_module_statics.
8428         (ipa_ref_opt_summary_t::duplicate): Update.
8429         (ipa_ref_opt_summary_t::remove): Update.
8430         (propagate): Update.
8431         (write_node_summary_p): Look correctly for bitmap differences.
8432         (ipa_reference_write_optimization_summary): Update.
8433         (ipa_reference_read_optimization_summary): Update.
8434         * ipa-reference.h
8435         (ipa_reference_get_not_read_global): Rename to ...
8436         (ipa_reference_get_read_global): ... this.
8437         (ipa_reference_get_not_written_global): Rename to ...
8438         (ipa_reference_get_written_global): ... this.
8439         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8440         (call_may_clobber_ref_p_1): Update.
8442 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8444         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8445         and add comment.
8446         (msp430_hard_regno_nregs_with_padding): Remove.
8448 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8450         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8451         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8452         shift amount is between 1 and 4.
8453         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8454         is between 1 and 4.
8456 2019-10-24  Richard Biener  <rguenther@suse.de>
8458         PR tree-optimization/92205
8459         * tree-vect-loop.c (vectorizable_reduction): Restrict
8460         search for alternate vectype_in to lane-reducing patterns
8461         we support.
8463 2019-10-24  Richard Biener  <rguenther@suse.de>
8465         PR tree-optimization/92203
8466         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8467         Skip eliminating conversion stmts inserted by insertion.
8469 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
8471         * config/s390/s390.c (s390_get_thread_pointer): Use
8472         gen_get_thread_pointer.
8473         (s390_expand_split_stack_prologue): Likewise.
8474         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8475         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8476         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8477         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8478         parameterized name.
8480 2019-10-24  Richard Biener  <rguenther@suse.de>
8482         * tree-vect-slp.c (vect_analyze_slp): When reduction group
8483         SLP discovery fails try to handle the reduction as part
8484         of SLP reduction discovery.
8486 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
8488         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8489         declaration.
8490         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8491         attribute if it exists, rather than the insn size.  If we use the
8492         insn size, adjust the size to remove the extra size that prefixed
8493         instructions take.
8494         (rs6000_adjust_insn_length): New function.
8495         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8496         update the instruction sized if prefixed instructions are used.
8497         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8498         (non_prefixed_length attribute): Delete.
8499         (num_insns attribute): New insn attribute to return the number of
8500         instructions.
8501         (max_prefixed_insns attribute): New insn attribute to return the
8502         maximum number of prefixed instructions in an insn.
8503         (length attribute): Do not adjust for prefix instructions here,
8504         punt to ADJUST_INSN_LENGTH.
8505         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8506         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8507         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8508         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8509         max_prefixed_insns and num_insns.
8511         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8512         (movtd_64bit_nodm): Reformat.
8513         (mov<mode>_32bit): Reformat.
8514         (mov<mode>_softfloat): Reformat.
8515         (FMOVE128_GPR splitter): Reformat.
8516         (DIFD splitter): Reformat.
8517         (TI2 splitter): Reformat.
8518         * config/rs6000/predicates.md (lwa_operand): If the bottom two
8519         bits of the offset for the memory address are non-zero, use PLWA
8520         if prefixed instructions are available.
8522 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8524         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8526 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8528         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8529         previous patch.
8531 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8533         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8534         (cmp_symbol_files): New.
8535         (lto_output): Copy sections in file order.
8536         * lto-streamer.h (lto_file_decl_data): Add field order.
8538 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8540         * ipa-reference.h (ipa_reference_var_uid): Move offline.
8541         * ipa-reference.c (reference_vars_map_t): new type.
8542         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8543         (ipa_reference_var_uid): Implement.
8544         (varpool_node_hooks): New static var.
8545         (varpool_removal_hook): New function.
8546         (is_improper): Do not check bitmap for id==-1
8547         (get_static_name): Update.
8548         (ipa_init): Initialize new datastructures.
8549         (analyze_function): Do not recompute ids.
8550         (propagate): Free reference_vars_to_consider.
8551         (stream_out_bitmap): Update.
8552         (ipa_reference_read_optimization_summary): Update.
8554 2019-10-23  qing zhao  <qing.zhao@oracle.com>
8556         PR gcov-profile/91971
8557         * coverage.c (coverage_init): Mangle the full path of filename when
8558         filename is a absolute path.
8560 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8562         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8563         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8564         (msp430_has_hwmult): New.
8565         (msp430_output_labelref):
8566         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8567         * config/msp430/msp430.md (mulhisi3): Likewise.
8568         (umulhisi3): Likewise.
8569         (mulsidi3): Likewise.
8570         (umulsidi3): Likewise.
8572 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8574         PR ipa/92074
8575         * params.def (inline-heuristics-hint-percent): Set to 600.
8577 2019-10-23  Richard Biener  <rguenther@suse.de>
8579         PR tree-optimization/65930
8580         * tree-vect-loop.c (check_reduction_path): Allow conversions
8581         that only change the sign.
8582         (vectorizable_reduction): Relax latch def stmts we handle further.
8584 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
8586         PR debug/90231
8587         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8588         (remove_unused_ivs): Use it instead of get_computation_at.  When
8589         choosing best candidate, only consider candidates where
8590         get_debug_computation_at actually returns non-NULL.
8592 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8594         PR tree-optimization/92131
8595         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8596         range would be symbolic, drop to varying for any explicit overflow
8597         in the constant part or if neither range is a singleton.
8599 2019-10-23  Martin Liska  <mliska@suse.cz>
8601         PR middle-end/81669
8602         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8603         Initialize m_data.
8605 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
8607         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8608         int_mode_for_mode rather than mode_for_int_vector for scalars.
8610 2019-10-23  Richard Biener  <rguenther@suse.de>
8612         PR tree-optimization/92179
8613         * tree-vect-stmts.c (vectorizable_shift): For shift args
8614         that are all the same remove type restriction in the SLP case.
8615         Adjust SLP code to handle converting of the shift arg to
8616         only apply in case the modes are different.
8618 2019-10-23  Martin Liska  <mliska@suse.cz>
8620         PR ipa/91969
8621         * ipa-inline.c (recursive_inlining): Do not print
8622         when curr->count is not initialized.
8624 2019-10-23  Richard Biener  <rguenther@suse.de>
8626         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8627         op from scalars in case there's a constant operand in its
8628         definition.
8630 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
8632         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8633         against out of range max skip or log values.
8635 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8637         * cgraph.c (dump_graphviz): Change name to dump_name
8639 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
8641         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8642         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8643         subtraction from a carry operation.
8645 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
8647         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8649 2019-10-22  Richard Biener  <rguenther@suse.de>
8651         PR tree-optimization/92173
8652         * tree-vect-loop.c (vectorizable_reduction): If
8653         vect_transform_reduction cannot handle code-generation try without
8654         the single-def-use-cycle optimization.  Pass optab_vector to
8655         optab_for_tree_code to get vector shifts as that's what we'd
8656         generate.
8658 2019-10-22  Michael Matz  <matz@suse.de>
8660         PR middle-end/90796
8661         * gimple-loop-jam.c (any_access_function_variant_p): New function.
8662         (adjust_unroll_factor): Use it to constrain safety, new parameter.
8663         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8665 2019-10-22  Richard Biener  <rguenther@suse.de>
8667         PR tree-optimization/92173
8668         * tree-vect-loop.c (vectorizable_reduction): If
8669         vect_transform_reduction cannot handle code-generation try without
8670         the single-def-use-cycle optimization.  Pass optab_vector to
8671         optab_for_tree_code to get vector shifts as that's what we'd
8672         generate.
8674 2019-10-22  Martin Liska  <mliska@suse.cz>
8676         * diagnostic-format-json.cc (json_from_expanded_location):
8677         Use json::integer_number.
8678         * gcov.c (output_intermediate_json_line): Use new
8679         json::integer_number.
8680         (output_json_intermediate_file): Likewise.
8681         * json.cc (number::print): Move to ...
8682         (float_number::print): ... this.
8683         (integer_number::print): New.
8684         (test_writing_numbers): Move to ...
8685         (test_writing_float_numbers): ... this.
8686         (test_writing_integer_numbers): New.
8687         (json_cc_tests): Register test_writing_integer_numbers.
8688         * json.h (class value): Add forward declaration
8689         for float_number and integer_number.
8690         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8691         (class number): Move to ...
8692         (class float_number): ... this.
8693         (class integer_number): New.
8694         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8695         Use json::integer_number.
8696         (optrecord_json_writer::location_to_json): Likewise.
8697         (optrecord_json_writer::profile_count_to_json): Likewise.
8698         (optrecord_json_writer::pass_to_json): Likewise.
8700 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8702         * tree-vect-slp.c (vect_slp_bb_region): Check whether
8703         autodetected_vector_size rather than vector_size is zero.
8704         * tree-vect-loop.c (vect_analyze_loop): Likewise.
8705         Set autodetected_vector_size immediately after calling
8706         vect_analyze_loop_2.  Check for a fatal error before advancing
8707         next_size.
8709 2019-10-21  Jason Merrill  <jason@redhat.com>
8711         * lock-and-run.sh: Check for process existence rather than timeout.
8713 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8715         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8716         widening multiplication.
8718 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
8720         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8721         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8722         type attribute.
8723         (subsi3_carryin_shift): Separate into register and constant controlled
8724         alternatives.  Use shift_amount_operand for operand 4.  Set shift
8725         attribute and simplify type attribute.
8726         (subsi3_carryin_shift_alt): Likewise.
8727         (rsbsi3_carryin_shift): Likewise.
8728         (rsbsi3_carryin_shift_alt): Likewise.
8729         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
8730         and register controlled shifts into distinct alternatives.
8731         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8732         (andsi_not_shiftsi_si_scc): Likewise.
8733         (arm_cmpsi_negshiftsi_si): Likewise.
8734         (not_shiftsi): Remove redundant M constraint from alternative 1.
8735         (not_shiftsi_compare0): Likewise.
8736         (arm_cmpsi_insn): Remove redundant alternative 2.
8737         (cmpsi_shift_swp): Likewise.
8738         (sub_shiftsi): Likewise.
8739         (sub_shiftsi_compare0_scratch): Likewise.
8740         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8741         (thumb2_cmpsi_neg_shiftsi): Likewise.
8743 2019-10-21  Richard Biener  <rguenther@suse.de>
8745         PR tree-optimization/92162
8746         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8747         STMT_VINFO_REDUC_IDX in reduc_info.
8748         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8750 2019-10-21  Richard Biener  <rguenther@suse.de>
8752         * tree-vectorizer.h (_slp_tree::ops): New member.
8753         (SLP_TREE_SCALAR_OPS): New.
8754         (vect_get_slp_defs): Adjust prototype.
8755         * tree-vect-slp.c (vect_free_slp_tree): Release
8756         SLP_TREE_SCALAR_OPS.
8757         (vect_create_new_slp_node): Initialize it.  New overload for
8758         initializing by an operands array.
8759         (_slp_oprnd_info::ops): New member.
8760         (vect_create_oprnd_info): Initialize it.
8761         (vect_free_oprnd_info): Release it.
8762         (vect_get_and_check_slp_defs): Populate the operands array.
8763         Do not swap operands in the IL when not necessary.
8764         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8765         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
8766         swap operands in the operands array.  Do not swap operands in
8767         the IL.
8768         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8769         (vect_gather_slp_loads): Fix.
8770         (vect_detect_hybrid_slp_stmts): Likewise.
8771         (vect_slp_analyze_node_operations_1): Search for a internal
8772         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8773         (vect_slp_analyze_node_operations): Skip ops-only stmts for
8774         the def-type push/pop dance.
8775         (vect_get_constant_vectors): Compute number_of_vectors here.
8776         Use SLP_TREE_SCALAR_OPS and simplify greatly.
8777         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8778         (vect_get_slp_defs): Simplify greatly.
8779         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8780         (vect_transform_reduction): Likewise.
8781         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8782         (vectorizable_call): Likewise.
8783         (vectorizable_operation): Likewise.
8784         (vectorizable_load): Likewise.
8785         (vectorizable_condition): Likewise.
8786         (vectorizable_comparison): Likewise.
8788 2019-10-21  Richard Biener  <rguenther@suse.de>
8790         PR tree-optimization/92161
8791         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8792         for reductions.
8794 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8796         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8797         (aarch64_rndr): New define_insn.
8798         (aarch64_rndrrs): Likewise.
8799         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8800         (TARGET_RNG): Likewise.
8801         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8802         argument.
8803         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8804         Add fourth argument in prototype.
8805         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8806         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8807         (aarch64_init_rng_builtins): Define.
8808         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8809         (aarch64_expand_rng_builtin): Define.
8810         (aarch64_general_expand_builtin): Use IGNORE argument, handle
8811         RNG builtins.
8812         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8813         __ARM_FEATURE_RNG when TARGET_RNG.
8814         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8816 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8818         * tree-vect-stmts (ensure_base_align): Only change alignment if new
8819         alignment is more restrictive.
8821 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8823         * tree-vectorizer.h (vec_info::vector_size): New member variable.
8824         (vect_update_max_nunits): Update comment.
8825         (current_vector_size): Delete.
8826         * tree-vect-stmts.c (current_vector_size): Likewise.
8827         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8828         of current_vector_size.
8829         (get_mask_type_for_scalar_type): Likewise.
8830         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8831         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8832         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8833         (vect_double_mask_nunits, vect_transform_loop): Likewise.
8834         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8835         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8837 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8839         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8840         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8841         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
8842         accordingly.
8844 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8846         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8847         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8848         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8849         call accordingly.
8850         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8852 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8854         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8855         a loop_vec_info.
8856         (vect_set_loop_condition_masked): Update call accordingly.
8858 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8860         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8861         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8862         (simple_integer_narrowing): Update call accordingly.
8863         (vectorizable_conversion): Likewise.
8865 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8867         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8868         (vectorizable_call): Update call accordingly.
8870 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8872         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8873         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8874         (duplicate_and_interleave): Update call accordingly.
8875         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8877 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8879         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8880         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8881         (vect_get_constant_vectors): Update call accordingly.
8882         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8884 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8886         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8887         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8888         (vect_prologue_cost_for_slp_op): Update call accordingly.
8889         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8890         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8891         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8892         (get_mask_type_for_scalar_type): Likewise.
8893         (vect_get_vector_types_for_stmt): Likewise.
8894         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8895         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8896         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8897         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8898         (vect_split_statement, vect_convert_input): Likewise.
8899         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8900         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8901         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8902         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8903         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8904         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8905         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8906         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8907         (vect_recog_mask_conversion_pattern): Likewise.
8908         (vect_add_conversion_to_pattern): Likewise.
8909         (vect_recog_gather_scatter_pattern): Likewise.
8910         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8911         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8913 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8915         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8916         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8917         (vect_check_load_store_mask): Update call accordingly.
8918         (vect_get_mask_type_for_stmt): Likewise.
8919         * tree-vect-patterns.c (check_bool_pattern): Likewise.
8920         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8921         (vect_convert_mask_for_vectype): Likewise.
8923 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8925         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8926         a vec_info.
8927         (vect_recog_dot_prod_pattern): Update call accordingly.
8928         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8929         (vect_recog_widen_sum_pattern): Likewise.
8931 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8933         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8934         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8935         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8936         accordingly.
8938 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8940         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8941         get_vectype_for_scalar_type_and_size instead of
8942         get_vectype_for_scalar_type.
8944 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8946         * common.opt (-fcommon): Fix description.
8948 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
8950         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8951         * config/i386/i386.c (ix86_pre_reload_split): New function.
8952         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8953         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8954         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8955         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8956         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8957         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8958         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8959         *<shift_insn><dwi>3_doubleword_mask,
8960         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8961         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8962         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8963         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8964         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8965         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8966         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8967         *avx2_<code>v8qiv8si2<mask_name>_2,
8968         *sse4_1_<code>v4qiv4si2<mask_name>_2,
8969         *sse4_1_<code>v4hiv4si2<mask_name>_2,
8970         *avx512f_<code>v8qiv8di2<mask_name>_2,
8971         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8972         *sse4_1_<code>v2hiv2di2<mask_name>_2,
8973         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8974         sse4_2_pcmpistr): Likewise.
8976 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
8978         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8979         now defaults to https.
8981 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
8983         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8984         skip non-zero array accesses.
8986 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8988         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8989         and return a boolean success value.  Move the allocation and
8990         initialization of the bb_vec_info to...
8991         (vect_slp_bb_region): ...here.  Update call accordingly.
8992         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8993         than in vect_slp_analyze_bb_1.
8995 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8997         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8998         when processing the given datarefs for the first time and
8999         check_datarefs subsequently.
9000         (vect_slp_bb_region): New function, split out of...
9001         (vect_slp_bb): ...here.  Don't recompute the region bounds and
9002         dataref sets when retrying with a different vector size.
9004 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
9005             Uroš Bizjak  <ubizjak@gmail.com>
9007         PR target/92140
9008         * config/i386/predicates.md (int_nonimmediate_operand): New special
9009         predicate.
9010         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
9011         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
9012         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
9013         define_insn_and_split patterns.
9015 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
9017         * config/rs6000/rs6000.md: Delete out--of-date comment about
9018         special-casing integer loads.
9020 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
9022         * escaped_string.h (escaped_string): New header.
9023         * tree.c (escaped_string): Remove escaped_string class.
9025 2019-10-18  Martin Sebor  <msebor@redhat.com>
9027         PR tree-optimization/92157
9028         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
9029         compute_string_length to return a negative result.
9031 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9033         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
9034         (negvsi3, negvdi3): Delete.
9035         (negdi2_compare): Delete.
9037 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9039         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
9040         operations.
9041         (subdi3_compare1): Delete pattern.
9042         (subvsi3_borrow): New insn pattern.
9043         (subvsi3_borrow_imm): Likewise.
9045 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9047         * config/arm/arm.md (subv<mode>4): Delete.
9048         (subvdi4): New expander pattern.
9049         (subvsi4): Likewise.  Handle some immediate values.
9050         (subvsi3_intmin): New insn pattern.
9051         (subvsi3): Likewise.
9052         (subvsi3_imm1): Likewise.
9053         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
9054         idioms.
9056 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9058         * config/arm/arm.md (usubvdi4): Allow registers or integers for
9059         incoming operands.  Early split the calculation into SImode
9060         operations.
9061         (usubvsi3_borrow): New insn pattern.
9062         (usubvsi3_borrow_imm): Likewise.
9064 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9066         * config/arm/arm.md (usubv<mode>4): Delete expansion.
9067         (usubvsi4): New pattern.  Allow some immediate values for inputs.
9068         (usubvdi4): New pattern.
9070 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9072         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
9073         or second operand of the PLUS inside a DImode equality test to be
9074         sign-extend when selecting CC_Vmode.
9075         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
9076         instructions.
9077         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
9078         expand patterns.
9079         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
9080         (addsi3_cin_vout_0): Likewise.
9081         (adddi3_compareV): Delete.
9083 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9085         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
9086         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
9087         to transform this back into the summation version when that leads
9088         to smaller code.
9090 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9092         * config/arm/arm.md (addv<mode>4): Delete.
9093         (addvsi4): New pattern.  Handle immediate values that the architecture
9094         supports.
9095         (addvdi4): New pattern.
9096         (addsi3_compareV): Rename to ...
9097         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
9098         and use COMPARE rather than NE.
9099         (addsi3_compareV_imm): New pattern.
9100         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
9101         a signed-overflow check.
9103 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9105         * config/arm/arm-modes.def (CC_ADC): New CC mode.
9106         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
9107         CC_ADCmode.
9108         (maybe_get_arm_condition_code): Handle CC_ADCmode.
9109         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
9110         with overflow.
9111         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
9112         expand patterns.
9113         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
9114         (addsi3_cin_cout_imm_insn): Likewise.
9115         (adddi3_compareC): Delete insn.
9116         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
9118 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9120         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
9121         * (uaddv<mode>4): Delete expansion pattern.
9122         (uaddvsi4): New pattern.
9123         (uaddvdi4): Likewise.
9124         (addsi3_compareC): Delete pattern, change callers to use
9125         addsi3_compare_op1.
9126         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
9127         reduce the number of alternatives and re-work type attribute handling.
9128         (addsi3_compare_op2): Clean up constraints to reduce the number of
9129         alternatives and re-work type attribute handling.
9130         (compare_addsi2_op0): Likewise.
9131         (compare_addsi2_op1): Likewise.
9133 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9135         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
9136         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
9137         for DImode operands.
9138         (arm_gen_dicompare_reg): Remove unreachable expansion code.
9139         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
9140         CC_NCVmode.
9141         * config/arm/arm.md (arm_cmpdi_insn): Delete.
9142         (arm_cmpdi_unsigned): Delete.
9144 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9146         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
9147         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
9148         unchanged only if that will be cheaper.
9149         (arm_select_cc_mode): Recognize a swapped comparison that will
9150         be regenerated using RSBS or RSCS.  Relax restriction on selecting
9151         CC_RSBmode.
9152         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
9153         a constant.
9154         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
9155         is CC_RSBmode.
9156         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
9157         as CCmode.
9158         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
9159         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
9161 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9163         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
9164         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
9165         need these modes.
9166         (arm_gen_dicompare_reg): New code to early expand the sub-operations
9167         of EQ, NE, LT, GE, LTU and GEU.
9168         * config/arm/iterators.md (CC_EXTEND): New code attribute.
9169         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
9170         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
9171         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
9172         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
9174 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9176         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
9177         operand 2.
9178         (cstoredi4): Similarly, but for operand 3.
9179         * config/arm/arm.c (arm_canoncialize_comparison): Allow
9180         canonicalization of unsigned compares with a constant on Arm.
9181         Prefer using const+1 and adjusting the comparison over swapping the
9182         operands whenever the original constant was not valid.
9183         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
9184         register here.
9185         (arm_validize_comparison): Do not force invalid DImode operands to
9186         registers here.
9188 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9190         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
9191         return CC_Zmode if comparing against a constant where one word is
9192         zero.
9193         (arm_gen_compare_reg): Split DImode handling to ...
9194         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
9195         against simple constants.
9196         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
9198 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9200         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
9201         (rsbsi3_carryin_shift_alt): Likewise.
9203 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9205         * config/arm/arm.md (negscc_borrow): New pattern.
9206         (mov_negscc): Don't split if the insn would match negscc_borrow.
9207         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
9208         (thumb2_mov_negscc_strict_it): Likewise.
9210 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9212         * config/arm/arm.c (arm_insn_cost): New function.
9213         (TARGET_INSN_COST): Override default definition.
9215 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9217         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9218         borrow operations.
9220 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9222         * config/arm/arm.c (strip_carry_operation): New function.
9223         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
9224         for SImode.
9226 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9228         * config/arm/predicates.md (arm_carry_operation): New special
9229         predicate.
9230         * config/arm/iterators.md (LTUGEU): Delete iterator.
9231         (cnb): Delete code attribute.
9232         (optab): Delete ltu and geu elements.
9233         * config/arm/arm.md (addsi3_carryin): Renamed from
9234         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
9235         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
9236         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
9237         (addsi3_carryin_clobercc): Similarly.
9238         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
9239         Thumb2 state.
9241 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9243         * config/arm/arm.md (arm_subdi3): Delete insn.
9244         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
9246 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9248         * config/arm/arm-modes.def (CC_RSB): New CC mode.
9249         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
9250         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
9251         return CC_RSBmode.
9252         (maybe_get_arm_condition_code): Handle CC_RSBmode.
9253         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
9254         expand.
9255         (subdi3): Rewrite to early-expand the sub-operations.
9256         (rsb_im_compare): New pattern.
9257         (negdi2): Delete.
9258         (negdi2_insn): Delete.
9259         (arm_negsi2): Correct type attribute to alu_imm.
9260         (negsi2_0compare): New insn pattern.
9261         (negsi2_carryin): New insn pattern.
9263 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9265         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
9266         operand 2.
9268 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9270         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9271         to match canonical form.
9273 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9275         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
9276         (extend<mode>di2): Likewise.
9278 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9280         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
9281         * config/arm/arm.c (arm_decompose_di_binop): New function.
9282         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
9283         If not generating Thumb-1 code, decompose the operation into 32-bit
9284         pieces.
9285         * add0si_carryin_<optab>: New pattern.
9287 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9289         * arm.md (adddi3): Only accept register operands.
9290         (arm_adddi3): Convert to simple insn with no split.  Do not accept
9291         constants.
9292         (adddi_sesidi_di): Delete patern.
9293         (adddi_zesidi_di): Likewise.
9294         (uaddv<mode>4): Use LTU as condition for branch.
9295         (adddi3_compareV): Convert to simple insn with no split.
9296         (addsi3_compareV_upper): Delete pattern.
9297         (adddi3_compareC): Convert to simple insn with no split.  Correct
9298         flags setting expression.
9299         (addsi3_compareC_upper): Delete pattern.
9300         (addsi3_compareC): Correct flags setting expression.
9301         (subdi3_compare1): Convert to simple insn with no split.
9302         (subsi3_carryin_compare): Delete pattern.
9303         (arm_subdi3): Convert to simple insn with no split.
9304         (subdi_zesidi): Delete pattern.
9305         (subdi_di_sesidi): Delete pattern.
9306         (subdi_zesidi_di): Delete pattern.
9307         (subdi_sesidi_di): Delete pattern.
9308         (subdi_zesidi_zesidi): Delete pattern.
9309         (negvdi3): Use s_register_operand.
9310         (negdi2_compare): Convert to simple insn with no split.
9311         (negdi2_insn): Likewise.
9312         (negsi2_carryin_compare): Delete pattern.
9313         (negdi_zero_extendsidi): Delete pattern.
9314         (arm_cmpdi_insn): Convert to simple insn with no split.
9315         (negdi2): Don't call gen_negdi2_neon.
9316         * config/arm/neon.md (adddi3_neon): Delete pattern.
9317         (subdi3_neon): Delete pattern.
9318         (negdi2_neon): Delete pattern.
9319         (splits for negdi2_neon): Delete splits.
9321 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9323         PR middle-end/92153
9324         * ggc-page.c (release_pages): Read g->alloc_size before free rather
9325         than after it.
9327 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9329         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9330         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
9331         new multilib variants and new mappings.
9333 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
9335         PR target/86040
9336         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9338 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9339             Richard Sandiford  <richard.sandiford@arm.com>
9341         PR target/86753
9342         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9343         and define hashmap traits for it.
9344         (loop_vec_info::scalar_cond_masked_set): New member.
9345         (vect_record_loop_mask): Adjust prototype.
9346         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9347         Implement method.
9348         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9349         vect_record_loop_mask.
9350         (vectorizable_live_operation): Likewise.
9351         (vect_record_loop_mask): New param scalar_mask. Add entry
9352         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9353         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9354         Pass it as last arg to vect_record_loop_mask.
9355         (vectorizable_call): Pass scalar_mask as last arg to
9356         vect_record_loop_mask.
9357         (vectorizable_store): Likewise.
9358         (vectorizable_load): Likewise.
9359         (vectorizable_condition): Check if another part of vectorized code
9360         applies loop_mask to condition or to it's inverse, and if yes,
9361         apply loop_mask to result of vector comparison.
9363 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
9365         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9367 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9369         PR tree-optimization/92056
9370         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9371         before calling compute_builtin_object_size.
9373 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
9375         PR target/65342
9376         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9377         (movdi_low_st): Delete.
9378         * config/rs6000/rs6000.c
9379         (darwin_rs6000_legitimate_lo_sum_const_p): New.
9380         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9381         * config/rs6000/rs6000.md (movsi_low): Delete.
9383 2019-10-17  Jason Merrill  <jason@redhat.com>
9385         * gimplify.h (get_initialized_tmp_var): Add default argument to
9386         post_p.
9387         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9388         NULL post_p argument.
9389         * targhooks (std_gimplify_va_arg_expr): Likewise.
9391 2019-10-17  Richard Biener  <rguenther@suse.de>
9393         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9394         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9395         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9396         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9397         * tree-vect-loop.c (vect_is_simple_reduction): Set
9398         STMT_VINFO_REDUC_CODE.
9399         (vectorizable_reduction): Remove dead and redundant code, use
9400         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9402 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
9404         Fix breakage introduced by r276985.
9406         * config/avr/avr.c (avr_option_override): Remove set of
9407         PARAM_ALLOW_STORE_DATA_RACES.
9408         * common/config/avr/avr-common.c (avr_option_optimization_table)
9409         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9411 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
9413         * config/i386/i386.h (processor_costs): Add clear_ratio.
9414         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9415         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9416         of 6 and move_ratio in all cost models.
9418 2019-10-17  Richard Biener  <rguenther@suse.de>
9420         * tree-vect-loop.c (check_reduction_path): Compute reduction
9421         operation here.
9422         (vect_is_simple_reduction): Remove special-case of single-stmt
9423         reduction path detection.
9425 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
9427         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9429 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
9431         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9432         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9433         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9434         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9435         New combine patterns.
9436         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9437         above.
9438         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9440 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
9442         * tree-vrp.c (value_range_base::dump): Display +INF for both
9443         pointers and integers when appropriate.
9445 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9447         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9448         when to use versioning threshold.
9450 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9452         * tree-vect-loop.c (determine_peel_for_niter): New function contained
9453         outlined code from ...
9454         (vect_analyze_loop_2): ... here.
9456 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9458         * tree-vect-loop.c (vect_transform_loop): Move code from here...
9459         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9460         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9462 2019-10-17  Richard Biener  <rguenther@suse.de>
9464         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9465         (vect_is_simple_reduction): Move all validity checks ...
9466         (vectorizable_reduction): ... here.  Compute whether we
9467         need a fold-left reduction here.
9468         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9469         both overloads, check needs_fold_left_reduction_p directly.
9470         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9472 2019-10-17  Richard Biener  <rguenther@suse.de>
9474         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9475         TARGET_MEM_REF creation.
9477 2019-10-17  Richard Biener  <rguenther@suse.de>
9479         PR tree-optimization/92129
9480         * tree-vect-loop.c (vectorizable_reduction): Also fail
9481         on GIMPLE_SINGLE_RHS.
9483 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
9485         PR tree-optimization/92056
9486         * tree-object-size.c (cond_expr_object_size): Return early if then_
9487         processing resulted in unknown size.
9489         PR tree-optimization/92115
9490         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9491         temporary if it could trap.
9493 2019-10-17  Richard Biener  <rguenther@suse.de>
9495         PR debug/91887
9496         * dwarf2out.c (gen_formal_parameter_die): Also try to match
9497         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9499 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
9501         * tree-ssa-strlen.c (maybe_invalidate): Use
9502         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9504 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
9505             Jim Wilson  <jimw@sifive.com>
9507         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9508         regs to SIBCALL_REGS.
9509         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9510         passing regs to SIBCALL_REGS.
9512 2019-10-16  Martin Sebor  <msebor@redhat.com>
9514         PR tree-optimization/83821
9515         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
9516         the length of a string when available.
9517         (handle_builtin_memset) Add argument.
9518         (handle_store, strlen_check_and_optimize_call): Same.
9519         (check_and_optimize_stmt): Same.  Pass it to callees.
9521 2019-10-16  Martin Sebor  <msebor@redhat.com>
9523         PR tree-optimization/91996
9524         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9525         information.
9526         (compare_nonzero_chars): Add an overload.
9527         (count_nonzero_bytes): Add an argument.  Call overload above.
9528         Handle non-constant lengths in some range.
9529         (handle_store): Add an argument.
9530         (check_and_optimize_stmt): Pass an argument to handle_store.
9532 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
9534         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9536 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
9538         * config/mips/mips.c (mips_expand_builtin_insn): Force the
9539         operands which correspond to the same input-output register to
9540         have the same pseudo assigned to them.
9542 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
9544         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9546 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
9548         * config/aarch64/aarch64.c (aarch64_classify_symbol):
9549         Apply reasonable limit to symbol offsets.
9551 2019-10-16  Richard Biener  <rguenther@suse.de>
9553         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9554         (vect_is_simple_reduction): Delay checking to
9555         vectorizable_reduction and relax the checking.
9556         (vectorizable_reduction): Check we have a simple use.  Check
9557         for bogus condition reductions.
9558         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9559         are looking at the last stmt in a pattern sequence when
9560         filling in backedge PHI values.
9562 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
9563             Jiufu Guo  <guojiufu@linux.ibm.com>
9565         PR target/70010
9566         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9567         the callee explicitly disables some isa_flags the caller is using.
9569 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9571         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9573 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9575         * genmodes.c (mode_data::order): New field.
9576         (blank_mode): Update accordingly.
9577         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9578         (make_vector_modes): Likewise.
9579         (VECTOR_MODES): Update use accordingly.
9580         (cmp_modes): Sort by the new order field ahead of sorting by size.
9581         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9582         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9583         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9584         (aarch64_classify_vector_mode): Handle the new partial modes.
9585         (aarch64_vl_bytes): New function.
9586         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9587         when counting the number of registers in an SVE mode.
9588         (aarch64_class_max_nregs): Likewise.
9589         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9590         in registers yet.
9591         (aarch64_classify_address): Treat partial vectors analogously
9592         to full vectors.
9593         (aarch64_print_address_internal): Consolidate the printing of
9594         MUL VL addresses, using aarch64_vl_bytes as the number of
9595         bytes represented by "VL".
9596         (aarch64_vector_mode_supported_p): Reject partial vector modes.
9598 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9600         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9601         rather than known_lt when choosing frame layouts.
9603 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9605         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9606         that all the adjustments add up to the full frame size.
9607         Use crtl->outgoing_args_size directly as the final adjustment
9608         where appropriate.
9610 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9612         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9613         "frame" reference instead of always referring directly to
9614         "cfun->machine->frame".
9616 2019-10-16  Richard Biener  <rguenther@suse.de>
9618         PR tree-optimization/92119
9619         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9620         against missing bswap lhs.
9622 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9624         PR middle-end/92033
9625         * poly-int.h (constant_lower_bound_with_limit): New function.
9626         (constant_upper_bound_with_limit): Likewise.
9627         * doc/poly-int.texi: Document them.
9628         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9629         into the worst-case INTEGER_CST bounds.
9631 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
9633         PR ipa/91088
9634         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9635         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9636         * ipa-predicat.h (struct expr_eval_op): New struct.
9637         (expr_eval_ops): New typedef.
9638         (struct condition): Add type and param_ops fields, remove size field.
9639         (add_condition): Replace size parameter with type parameter, add
9640         param_ops parameter.
9641         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9642         (predicate::add_clause): Add comparisons on type and param_ops.
9643         (dump_condition): Add debug dump for param_ops.
9644         (remap_after_inlining): Adjust call arguments to add_condition.
9645         (add_condition): Replace size parameter with type parameter, add
9646         param_ops parameter. Unshare constant value used in conditions.
9647         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9648         parameter expressions using param_ops.
9649         (decompose_param_expr):  New function.
9650         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9651         to replace call to unmodified_parm_or_parm_agg_item.
9652         (set_switch_stmt_execution_predicate): Likewise.
9653         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9654         with type.
9655         (inline_read_section): Read param_ops from summary stream.
9656         (ipa_fn_summary_write): Write param_ops to summary stream.
9658 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
9660         PR rtl-optimization/92107
9661         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9662         expression written.
9664 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
9666         * config/darwin.c: Update description of fix and continue.
9668 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
9670         * config/darwin.c (darwin_binds_local_p): Update to call
9671         default_binds_local_p_3 () directly. amend comments.
9673 2019-10-15  Richard Biener  <rguenther@suse.de>
9675         * lto-streamer-out.c (lto_variably_modified_type_p): New.
9676         (tree_is_indexable): Use it.
9677         * tree-streamer-out.c (pack_ts_type_common_value_fields):
9678         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9679         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9681 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9683         * config/msp430/msp430.md (zero_extendqipsi2): New.
9684         (zero_extendqisi2): Optimize case where src register and base dst
9685         register are the same.
9686         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9687         (zero_extendpsisi2): Optimize r->m case.
9688         Add unnamed insn patterns to catch insns combine searches for when
9689         optimizing pointer manipulation.
9691 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9693         * config/msp430/msp430.md: Group zero_extend* insns together.
9695 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9697         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9698         constraint.
9699         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9700         POST_INC.
9701         (msp430_subreg): Likewise.
9702         (msp430_split_addsi): Likewise.
9703         (msp430_print_operand_addr): Likewise.
9704         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9705         (USE_STORE_POST_INCREMENT): Define.
9706         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9707         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9708         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9709         (msp430_general_dst_operand): New.
9710         (msp430_general_dst_nonv_operand): New.
9711         (msp430_nonsubreg_operand): Remove.
9712         (msp430_nonsubreg_dst_operand): New.
9713         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9714         of defunct msp430_nonsubreg_operand.
9715         (msp430_nonsubregnonpostinc_or_imm_operand): New.
9717 2019-10-15  Richard Biener  <rguenther@suse.de>
9719         PR tree-optimization/91929
9720         * tree-ssa-pre.c (pre_expr_d::loc): New member.
9721         (get_or_alloc_expr_for_name): Initialize it.
9722         (get_or_alloc_expr_for_constant): Likewise.
9723         (phi_translate_1): Copy it.
9724         (create_expression_by_pieces): Use the original location
9725         of the expression for the inserted stmt.
9726         (compute_avail): Record the location of the stmt for the
9727         expressions created.
9729 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
9731         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9732         before using tree_to_uhwi.
9734 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
9736         * config/s390/s390.md: Run %a0:DI splitters only after reload.
9738 2019-10-15  Richard Biener  <rguenther@suse.de>
9740         PR tree-optimization/92094
9741         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9742         do not adjust the reduction definition def type.
9743         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9744         defines the latch argument of the PHI.
9746 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
9748         PR target/92035
9749         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9750         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9751         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9752         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9753         _mm_maskz_roundscale_round_sd): New intrinsics.
9754         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9755         __builtin_ia32_rndscales?_mask_round builtins instead of
9756         __builtin_ia32_rndscales?_round.
9757         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9758         __builtin_ia32_rndscalesd_round): Remove.
9759         (__builtin_ia32_rndscaless_mask_round,
9760         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9761         * config/i386/sse.md
9762         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9763         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9764          ... this, adjust and add subst atrributes to make it maskable.
9766 2019-10-15  Richard Biener  <rguenther@suse.de>
9768         PR middle-end/92046
9769         * common.opt (fallow-store-data-races): New.
9770         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9771         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9772         * doc/invoke.texi (fallow-store-data-races): Document.
9773         (--param allow-store-data-races): Remove docs.
9774         * opts.c (default_options_table): Enable -fallow-store-data-races
9775         at -Ofast.
9776         (default_options_optimization): Do not enable --param
9777         allow-store-data-races at -Ofast.
9778         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9779         instead of PARAM_ALLOW_STORE_DATA_RACES.
9780         * tree-ssa-loop-im.c (execute_sm): Likewise.
9782 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9784         PR tree-optimization/92085
9785         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9786         instead of calling it unconditionally after
9787         delete_dead_or_redundant_assignment and fix indentation.
9789 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
9791         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9792         TARGET_VFP_DOUBLE.
9793         (*fmsub<SDF:mode>4): Likewise.
9794         *fnmsub<SDF:mode>4): Likewise.
9795         (*fnmadd<SDF:mode>4): Likewise.
9797 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
9799         * doc/tree-ssa.texi: Update renamed macro name.
9801 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
9803         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9804         vector constants.
9806 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
9808         * config/darwin.c: Use unsigned ints for the picbase label
9809         counters, initialise the vars explicitly.
9810         (update_pic_label_number_if_needed): Move a variable declaration
9811         to where it's needed.
9812         (machopic_output_function_base_name): Use a more strict checking
9813         assert, and and unsigned int for the picbase label counter.
9814         (machopic_get_function_picbase): Likewise.
9816 2019-10-14  Richard Biener  <rguenther@suse.de>
9818         PR middle-end/92046
9819         * dse.c (scan_insn): Use param max_active_local_stores.
9820         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9821         based on optimization level.
9822         * loop-invariant.c (move_loop_invariants): Adjust
9823         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9824         * opts.c (default_options_optimization): Do not adjust
9825         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9826         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9828 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9830         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9832 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9834         * config/arm/arm.c (arm_option_override): Don't override sched
9835         pressure algorithm.
9837 2019-10-14  Richard Biener  <rguenther@suse.de>
9839         PR tree-optimization/92069
9840         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9841         cycles do not set vect_nested_cycle on the latch definition.
9843 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
9845         * function-abi.h (expr_callee_abi): Declare.
9846         * function-abi.cc (expr_callee_abi): New function.
9848 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
9850         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9851         into [1,MAX].
9852         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9853         non-zero being represented as [1,MAX].
9855 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9857         * tree-sra.c (dump_access): Add missing braces.
9859 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9861         * config/darwin.c (machopic_indirection_name): Rework the
9862         function to emit linker-visible symbols only for indirections
9863         in the data section.  Clean up the code and update comments.
9865 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9867         * config/darwin.c (machopic_indirect_data_reference): Remove
9868         redundant code.
9870 2019-10-13  Nathan Sidwell  <nathan@acm.org>
9872         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9874 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9876         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9877         c99_runtime.
9879 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
9881         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9882         so non-virutal are before virutals.
9883         (output_function): Avoid body modifications.
9885 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9887         * config/pa/pa.c (pa_output_call): Load descriptor address to register
9888         %r22.  Load function address before global pointer.
9889         (pa_attr_length_indirect_call): Adjust length of inline versions of
9890         $$dyncall.
9891         (pa_output_indirect_call): Remove fast inline version of $$dyncall
9892         before normal cases.  Update inline $$dyncall sequences to preserve
9893         function descriptor address in register %r22.
9894         (TRAMPOLINE_CODE_SIZE): Adjust.
9895         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
9896         register %r22 contains trampoline address.
9897         (pa_trampoline_init): Adjust offsets.
9898         (pa_trampoline_adjust_address): Likewise.
9899         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9901 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9903         PR target/67183
9904         * config/darwin.c (machopic_indirection): New field to flag
9905         non-lazy-symbol-pointers in the data section.
9906         (machopic_indirection_name): Compute if an indirection should
9907         appear in the data section.
9908         (machopic_output_data_section_indirection): New callback split
9909         from machopic_output_indirection.
9910         (machopic_output_stub_indirection): Likewise.
9911         (machopic_output_indirection): Retain the code for non-lazy
9912         symbol pointers in their regular section.
9913         (machopic_finish): Use the new callbacks to order the indirection
9914         output.
9916 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9918         * config/darwin-protos.h (machopic_finish): Delete.
9919         * config/darwin.c (machopic_finish): Make static.
9921 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9923         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9924         sections when building kernel extension code.
9926 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
9928         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9929         later standard."
9931 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9933         * config/pa/pa.c (pa_option_override): Remove trailing comma
9934         from warning.
9936 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
9938         PR middle-end/92063
9939         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9940         <case VEC_COND_EXPR>: Return false with *handled = false.
9941         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9942         recursing on the first operand.
9943         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9944         instead of tree_could_trap_p.
9945         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9947 2019-10-11  Jim Wilson  <jimw@sifive.com>
9949         PR rtl-optimization/91860
9950         * combine.c (subst): If new_rtx is a constant, also check for
9951         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9953 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
9955         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9956         INTVAL when calling store_bit_field.
9958 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
9960         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9961         size.
9963 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9965         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9966         vectorizable_live_operation.
9967         (vectorizable_live_operation): Adjust parameters.
9968         * tree-vect-stmts.c (vect_init_vector,
9969         vect_gen_widened_results_half): Fix typo in function comment.
9970         (can_vectorize_live_stmts): Adjust function comment.
9971         Adjust parameters.  Adjust call to vectorizable_live_operation.
9972         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9973         (vect_transform_stmt): Adjust function comment.  Adjust call to
9974         can_vectorize_live_stmts.
9975         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9977 2019-10-11  Richard Biener  <rguenther@suse.de>
9979         PR tree-optimization/90883
9980         PR tree-optimization/91091
9981         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9982         alias-sets both for recording VN table entries and continuing
9983         walking after translating through copies.  Handle same-sized
9984         reads from SSA names by returning the plain SSA name.
9985         (eliminate_dom_walker::eliminate_stmt): Properly handle
9986         non-size precision stores in redundant store elimination.
9988 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
9990         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9991         (ggc_collect): Dump later to not interfere with release_page dump.
9992         (ggc_trim): New function.
9993         * ggc-none.c (ggc_trim): New.
9994         * ggc.h (ggc_trim): Declare.
9996 2019-10-11  Richard Biener  <rguenther@suse.de>
9998         PR tree-optimization/92066
9999         PR tree-optimization/92046
10000         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10001         Fix bogus cost model check.
10003 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
10005         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
10006         (LANG_HOOKS_DECLS): Add it.
10007         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
10008         update comment for omp_is_optional_argument.
10009         * omp-general.c (omp_is_allocatable_or_ptr): New.
10010         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
10011         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
10012         Fortran's optional arguments and allocatable/pointer scalars
10013         with use_device_addr.
10015 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
10017         PR target/77918
10018         * config/s390/2827.md: Add new opcodes.
10019         * config/s390/2964.md: Likewise.
10020         * config/s390/3906.md: Likewise.
10021         * config/s390/8561.md: Likewise.
10022         * config/s390/s390-builtins.def (s390_vfchesb): Use
10023         the new vec_cmpgev4sf_quiet_nocc.
10024         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
10025         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
10026         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
10027         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
10028         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
10029         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
10030         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
10031         * config/s390/s390-modes.def (CCSFPS): New mode.
10032         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
10033         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
10034         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
10035         (s390_expand_vec_compare): Use non-signaling patterns where
10036         necessary.
10037         (s390_reverse_condition): Support CCSFPS.
10038         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
10039         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
10040         (asm_fcmp_op): Likewise.
10041         (*smaxv2df3_vx): Use pattern for quiet comparison.
10042         (*sminv2df3_vx): Likewise.
10043         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
10044         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
10045         (vec_cmpgt<mode>_quiet_nocc): Likewise.
10046         (vec_cmplt<mode>_quiet_nocc): New expander.
10047         (vec_cmpge<mode>_quiet_nocc): New pattern.
10048         (vec_cmple<mode>_quiet_nocc): New expander.
10049         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
10050         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
10051         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
10052         (*vec_cmpge<mode>_signaling_nocc): Likewise.
10053         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
10054         (vec_cmpungt<mode>): New expander.
10055         (vec_cmpunge<mode>): Likewise.
10056         (vec_cmpuneq<mode>): Use quiet patterns.
10057         (vec_cmpltgt<mode>): Allow only on z14+.
10058         (vec_cmpordered<mode>): Use quiet patterns.
10059         (vec_cmpunordered<mode>): Likewise.
10060         (VEC_CMP_EXPAND): Add ungt and unge.
10062 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
10064         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
10065         parameter.
10066         * lto-streamer-out.c: Include tree-dfa.h.
10067         (output_cfg): Do not use cfun.
10068         (lto_prepare_function_for_streaming): New.
10069         (output_function): Do not push cfun; do not initialize loop optimizer.
10070         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
10071         * passes.c (ipa_write_summaries): Use it.
10072         (ipa_write_optimization_summaries): Do not modify bodies.
10073         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
10074         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
10075         * tree-ssa-dse.c (pass_dse::execute): Update use of
10076         renumber_gimple_stmt_uids.
10077         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
10079 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
10081         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10082         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
10084 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
10086         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
10087         macros.
10088         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
10089         Also define DFP macros for these conditions.
10090         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
10091         DEC128_SUBNORMAL_MIN): Do not define.
10092         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
10093         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
10095 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
10096             Sandra Loosemore  <sandra@codesourcery.com>
10098         PR middle-end/26241
10099         * doc/lto.texi (IPA): Reference to the IPA passes.
10100         * doc/passes.texi (Pass manager): Add node IPA passes and
10101           description for each IPA pass.
10103 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10105         * ipa-reference.c: Do not include splay-tree.h
10106         (reference_vars_to_consider): Turn to hash map.
10107         (get_static_name, ipa_init, analyze_function, propagate,
10108         stream_out_bitmap, ipa_reference_write_optimization_summary,
10109         ipa_reference_write_optimization_summary): Update.
10111 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10113         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
10115 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
10117         * config/darwin.c: Lookup Objective C metadata and force indirection
10118         for IVAR refs.
10120 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
10122         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
10123         addresses.
10124         (mem_operand_gpr): Add check for prefixed addresses.
10125         (mem_operand_ds_form): Add check for prefixed addresses.
10126         (rs6000_legitimate_offset_address_p): If we support prefixed
10127         addresses, check for a 34-bit offset instead of 16-bit.
10128         (rs6000_legitimate_address_p): Add check for prefixed addresses.
10129         Do not allow load/store with update if the address is prefixed.
10130         (rs6000_mode_dependent_address):  If we support prefixed
10131         addresses, check for a 34-bit offset instead of 16-bit.
10133 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10135         PR target/77918
10136         * config/s390/vector.md (vcond_comparison_operator): New
10137         predicate.
10138         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
10140 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10142         PR 87488
10143         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
10144         -D.
10145         * configure.ac (--with-documentation-root-url): New option.
10146         * configure: Regenerate.
10147         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
10148         option URL, add it as a new string field of the diagnostic option.
10149         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
10150         (print_option_information): If get_option_url is non-NULL, call
10151         it, and if the result is non-NULL, potentially emit an escape
10152         sequence to markup the option text with the resulting URL.
10153         * diagnostic.h (diagnostic_context::get_option_url): New callback.
10154         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
10155         example of JSON output.
10156         * opts-diagnostic.h (get_option_url): New decl.
10157         * opts.c (get_option_url): New function.
10158         * toplev.c (general_init): Initialize the get_option_url callback.
10160 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10162         PR 87488
10163         * common.opt (fdiagnostics-urls=): New option.
10164         (diagnostic-url.h): Add SourceInclude.
10165         (diagnostic_url_rule): New enum.
10166         * diagnostic-color.c: Include "diagnostic-url.h".
10167         (diagnostic_urls_enabled_p): New function.
10168         * diagnostic-url.h: New file.
10169         * diagnostic.c: Include "diagnostic-url.h".
10170         (diagnostic_urls_init): New function.
10171         * diagnostic.h (diagnostic_urls_init): New decl.
10172         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10173         -fdiagnostics-urls to the list.
10174         (-fdiagnostics-urls): New option.
10175         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
10176         (driver::global_initializations): Call diagnostic_urls_init.
10177         * opts-global.c (init_options_once): Likewise.
10178         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
10179         * pretty-print.c (pretty_printer::pretty_printer): Initialize
10180         show_urls.
10181         (pp_begin_url): New function.
10182         (pp_end_url): New function.
10183         (selftest::test_urls): New selftest.
10184         (selftest::pretty_print_c_tests): Call it.
10185         * pretty-print.h (pretty_printer::show_urls): New field.
10186         (pp_begin_url): New decl.
10187         (pp_end_url): New decl.
10189 2019-10-10  Uroš Bizjak  <ubizjak@gmail.com>
10191         PR target/92022
10192         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
10194 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
10196         PR target/88630
10197         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
10198         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
10199         also for TARGET_FPU_SH4_300.
10200         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
10201         TARGET_SH4_300.
10202         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
10203         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
10204         (*negsf2_i): Split into ...
10205         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
10206         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
10207         (**abssf2_i): Split into ...
10208         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
10209         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
10210         (*negdf2_i): Split into ...
10211         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
10212         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
10213         (**abssf2_i): Split into ...
10214         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
10216 2019-10-10  Richard Biener  <rguenther@suse.de>
10218         PR middle-end/92046
10219         * opts.c (finish_options): Do not influence global --params
10220         from options that are adjustable per function.
10221         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10222         Apply --param adjustment based on active cost-model.
10223         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
10224         further store-sinking when vectorization or if-conversion
10225         are not enabled.
10227 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10229         PR middle-end/92037
10230         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
10231         rather than ggc_alloc_cleared to alloc symbol table.
10232         * toplev.c (general_init): Likewise.
10233         * cgraph.h (symbol_table): Explicitly construct every field.
10235 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10237         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
10238         (PF_Z15): ... this.
10239         * config.gcc: Add z15 as option for --with-arch and --with-tune
10240         configure switches.
10241         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
10242         error reporting for unsupported builtins.
10243         * config/s390/s390-opts.h (enum processor_type): Rename
10244         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
10245         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
10246         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10247         Likewise.
10248         * config/s390/s390-builtins.def: Likewise.
10249         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
10250         (s390_expand_builtin): Add missing check for unsupported builtins.
10251         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
10252         (s390_rtx_costs): Likewise.
10253         (s390_get_sched_attrmask): Rename arch13 to z15.
10254         (s390_get_unit_mask): Likewise.
10255         (s390_is_fpd): Likewise.
10256         (s390_is_fxd): Likewise.
10257         * config/s390/s390.h (enum processor_flags): Likewise.
10258         * config/s390/s390.md: Likewise.
10259         * config/s390/vector.md: Likewise.
10260         * config/s390/vx-builtins.md: Likewise.
10261         * config/s390/s390.opt: Add z15 to processor_type value.
10263 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10265         PR target/91035
10266         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
10267         prototype.
10268         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
10269         ("split_stack_data", "split_stack_call")
10270         ("split_stack_call_<mode>", "split_stack_cond_call")
10271         ("split_stack_cond_call_<mode>"): Remove.
10272         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
10273         insn definition.
10274         * config/s390/s390.c (s390_output_split_stack_data): New function.
10275         (s390_expand_split_stack_prologue): Use the merged expander.
10277 2019-10-09  Martin Sebor  <msebor@redhat.com>
10279         PR tree-optimization/90879
10280         * builtins.c (check_access): Avoid using maxbound when null.
10281         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
10282         * doc/invoke.texi (-Wstring-compare): Document new warning option.
10283         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
10284         conditional.
10285         (get_range_strlen): Overwrite initial maxbound when non-null.
10286         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10287         changes.
10288         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10289         (used_only_for_zero_equality): New function.
10290         (handle_builtin_memcmp): Call it.
10291         (determine_min_objsize): Return an integer instead of tree.
10292         (get_len_or_size, strxcmp_eqz_result): New functions.
10293         (maybe_warn_pointless_strcmp): New function.
10294         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
10295         between a longer string and a smaller array.
10296         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10298 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10300         * config/darwin.c (darwin_override_options): Make the check for
10301         Objective-C ABI version more specific for 64bit code.
10303 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10305         * config/darwin.c (machopic_indirect_data_reference): Set flag to
10306         indicate that the new symbol is an indirection.
10307         (machopic_indirect_call_target): Likewise.
10308         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10309         (MACHO_SYMBOL_INDIRECTION_P): New.
10310         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10312 2019-10-08  Jason Merrill  <jason@redhat.com>
10314         * doc/invoke.texi: Document -fconcepts-ts.
10316 2019-10-09  Richard Biener  <rguenther@suse.de>
10318         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10319         allow stmts other than GIMPLE_ASSIGN in nested cycles.
10321 2019-10-08  Richard Biener  <rguenther@suse.de>
10323         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10324         (_stmt_vec_info::force_single_cycle): Likewise.
10325         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10326         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10327         * tree-vect-loop.c (vectorizable_reduction): Set
10328         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10329         (vect_transform_reduction): Use them to remove redundant code.
10330         (vect_transform_cycle_phi): Likewise.
10332 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10334         PR tree-optimization/90836
10335         * match.pd (popcount): New pattern.
10337 2019-10-08  Martin Sebor  <msebor@redhat.com>
10339         PR middle-end/92026
10340         PR middle-end/92014
10341         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10342         again once nbytes has been set.  Set the access size when not yet set.
10344 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10346         * config/darwin.c (machopic_select_section): Remove dead code for
10347         old Objective-C section selection method, replace with unreachable.
10349 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10351         * config/darwin.c (machopic_indirect_data_reference): Check for
10352         required indirections before making direct access to defined
10353         values.
10354         (machopic_output_indirection): Place the indirected pointes for
10355         required indirections into the non-lazy symbol pointers section.
10356         (darwin_encode_section_info):
10357         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10358         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10360 2019-10-08  Uroš Bizjak  <ubizjak@gmail.com>
10362         PR target/91994
10363         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10364         instead of ALL_SSE_REG to check if function call preserves some
10365         256-bit SSE registers.
10367 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10369         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10370         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10371         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10373 2019-10-08  Richard Biener  <rguenther@suse.de>
10375         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10376         (_stmt_vec_info::is_reduc_info): Add.
10377         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10378         (vectorizable_condition): Remove.
10379         (vectorizable_shift): Likewise.
10380         (vectorizable_reduction): Adjust.
10381         (info_for_reduction): New.
10382         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10383         (vect_analyze_scalar_cycles_1): ... here.
10384         (vect_analyze_loop_operations): Adjust.
10385         (needs_fold_left_reduction_p): Simplify for single caller.
10386         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
10387         for nested cycles not part of double reductions.
10388         (vect_model_reduction_cost): Pass in the reduction type.
10389         (info_for_reduction): New function.
10390         (vect_create_epilog_for_reduction): Use it, access reduction
10391         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
10392         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10393         (vectorize_fold_left_reduction): Remove pointless assert.
10394         (vectorizable_reduction): Analyze the full reduction when
10395         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
10396         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
10397         stmt code-generation to vectorizable_* in most cases.  Verify
10398         code-generation only for cases handled by
10399         vect_transform_reductuon.
10400         (vect_transform_reduction): Use info_for_reduction to get at
10401         reduction meta.  Simplify.
10402         (vect_transform_cycle_phi): Likewise.
10403         (vectorizable_live_operation): Likewise.
10404         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10405         at the PHI node for STMT_VINFO_REDUC_TYPE.
10406         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10407         longer necessary code.
10408         * tree-vect-stmts.c (vectorizable_shift): Make static again.
10409         (vectorizable_condition): Likewise.  Get at reduction related
10410         info via info_for_reduction.
10411         (vect_analyze_stmt): Adjust.
10412         (vect_transform_stmt): Likewise.
10413         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10414         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10416 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
10418         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10419         -fno-fp-int-builtin-inexact default for C2X.
10421 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10422             Richard Biener  <rguenther@suse.de>
10424         PR tree-optimization/91532
10425         * tree-if-conv.c: Include tree-ssa-dse.h.
10426         (ifcvt_local_dce): Change param from bb to loop,
10427         and call dse_classify_store.
10428         (tree_if_conversion): Pass loop instead of loop->header as arg
10429         to ifcvt_local_dce.
10430         * tree-ssa-dse.c: Include tree-ssa-dse.h.
10431         (delete_dead_or_redundant_assignment): Remove static qualifier from
10432         declaration, and add prototype in tree-ssa-dse.h.
10433         (dse_store_status): Move to tree-ssa-dse.h.
10434         (dse_classify_store): Remove static qualifier and add new tree param
10435         stop_at_vuse, and add prototype in tree-ssa-dse.h.
10436         * tree-ssa-dse.h: New header.
10438 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10440         * config/darwin.c (machopic_output_indirection): Don't put
10441         hidden symbol indirections into the .data section, use the
10442         non-lazy symbol pointers section as normal.
10443         (darwin_encode_section_info): Record if a symbol is hidden.
10444         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10445         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10447 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10449         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10450         predicates instead of accessing bits directly.
10451         (machopic_indirect_call_target): Likewise.
10452         (machopic_output_indirection): Likewise.
10453         (darwin_encode_section_info): Improve description.  Use renamed
10454         symbol flags.  Use predicate macros for variables and functions.
10455         * config/darwin.h:
10456         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10457         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10458         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10459         (MACHO_SYMBOL_VARIABLE_P): New.
10460         (MACHO_SYMBOL_DEFINED_P):New.
10461         (MACHO_SYMBOL_STATIC_P): New.
10462         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10463         (SYMBOL_FLAG_SUBT_DEP): New.
10464         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10466 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10468         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10469         (msp430_expand_epilogue): Likewise.
10470         * config/msp430/predicates.md: Likewise.
10471         * config/msp430/msp430.md: Likewise.
10472         Replace blocks of 8 spaces with tabs.
10474 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10476         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10477         * config/msp430/msp430.c (msp430_split_addsi): New.
10478         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10479         a block of C code for splitting addsi.
10481 2019-10-07  Uroš Bizjak  <ubizjak@gmail.com>
10483         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10484         ix86_expand_rounddf_32): Reorder functions.
10485         * config/i386/i386-protos.h: Update.
10487 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10489         * config.in: Regenerate.
10490         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10491         Add new "Yx" constraint.
10492         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10493         function.
10494         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10495         prototype.
10496         * config/msp430/msp430.c (msp430_option_override): Allow the lower
10497         code/data region to be selected in the small memory model.
10498         (msp430_section_attr): Don't warn if the "section" and "lower"
10499         attributes are used together.
10500         (msp430_handle_generic_attribute): Likewise.
10501         (msp430_var_in_low_mem): New function.
10502         (TARGET_ENCODE_SECTION_INFO): Define.
10503         (msp430_encode_section_info): New function.
10504         (gen_prefix): Return early in the small memory model.
10505         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10506         ".lower" prefix if -m{code,data}-region=lower have been passed.
10507         (msp430_output_aligned_decl_common): Emit common symbols when
10508         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10509         set.
10510         (TARGET_ASM_FILE_END): Define.
10511         (msp430_file_end): New function.
10512         (msp430_do_not_relax_short_jumps): Allow relaxation when
10513         function will be in the lower region.
10514         (msp430_op_not_in_high_mem): New function.
10515         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10516         the 'X' operand selector.
10517         Clarify comment for 'x' operand selector.
10518         * config/msp430/msp430.h (LINK_SPEC): Propagate
10519         -m{code,data}-region to the linker via spec function
10520         msp430_propagate_region_opt.
10521         (msp430_propagate_region_opt): New prototype.
10522         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10523         (SYMBOL_FLAG_LOW_MEM): Define.
10524         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10525         selector.
10526         (zero_extendqihi2): Fix operand number used by "%X" selector.
10527         (zero_extendqisi2): Likewise.
10528         (zero_extendhisi2): Likewise.
10529         (movqi): Use "Yx" constraint in place of "%X" operand selector.
10530         (movhi): Likewise.
10531         (addqi3): Likewise.
10532         (addhi3): Likewise.
10533         (addsi3): Likewise.
10534         (addhi3_cy): Likewise.
10535         (addchi4_cy): Likewise.
10536         (subqi3): Likewise.
10537         (subhi3): Likewise.
10538         (subsi3): Likewise.
10539         (bic<mode>3): Likewise.
10540         (and<mode>3): Likewise.
10541         (ior<mode>3): Likewise.
10542         (xor<mode>3): Likewise.
10543         (slli_1): Add missing "%X" operand selector.
10544         (slll_1): Likewise.
10545         (slll_2): Likewise.
10546         (srai_1): Likewise.
10547         (sral_1): Likewise.
10548         (sral_2): Likewise.
10549         (srli_1): Likewise.
10550         (srll_1): Likewise.
10551         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10552         selector.
10553         (cbranchhi4_real): Likewise.
10554         (cbranchqi4_reversed): Likewise.
10555         (cbranchhi4_reversed): Likewise.
10556         (*bitbranch<mode>4): Likewise.
10557         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10558         * config/msp430/msp430.opt (mcode-region=): Set default to
10559         MSP430_REGION_LOWER. Improve docstring.
10560         (mdata-region=): Likewise.
10561         (muse-lower-region-prefix): New option.
10562         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10563         mdata-region=none multilib.
10564         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10565         mdata-region=none multilib.
10566         MULTILIB_EXCEPTIONS: Remove.
10567         MULTILIB_REQUIRED: Define.
10568         * configure: Regenerate.
10569         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10570         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10571         * doc/extend.texi: Clarify comment for {upper,lower,either}
10572         function attributes.
10573         Add separate description for "lower" variable attribute.
10575 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
10577         PR target/77918
10578         * optabs-tree.c (vcond_icode_p): New function.
10579         (vcond_eq_icode_p): Likewise.
10580         (expand_vec_cond_expr_p): Use vcond_icode_p and
10581         vcond_eq_icode_p.
10582         * optabs.c (can_vcond_compare_p): New function.
10583         * optabs.h (can_vcond_compare_p): Likewise.
10585 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
10587         PR target/77918
10588         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10589         caller passes a non-trapping condition.
10590         (is_gimple_condexpr): Allow trapping conditions.
10591         (is_gimple_condexpr_1): New helper function.
10592         (is_gimple_condexpr_for_cond): New function, acts like old
10593         is_gimple_condexpr.
10594         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10595         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10596         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10597         * gimplify.c (gimplify_cond_expr): Use
10598         is_gimple_condexpr_for_cond.
10599         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10600         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10601         VEC_COND_EXPR.
10602         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10603         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10604         is_gimple_condexpr_for_cond, remove pointless tmp check
10605         (forward_propagate_into_cond): Remove pointless tmp check.
10607 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
10609         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10610         match that of other gsi_next_* functions.  Adjust the comment.
10611         (gsi_start_nonvirtual_phis): New function.
10612         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10613         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
10615 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
10617         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10618         setjmp situation here.  Fix a verb's ending: "the exact variables or
10619         elements for which there are warnings depends" -> "... depend".
10621 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10623         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10625 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10627         * ipa-prop.c (ipa_vr::nonzero_p): New.
10628         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10629         non-zero range.
10630         * ipa-prop.h (class ipa_vr): Add nonzero_p.
10631         * tree-vrp.c (range_has_numeric_bounds_p): New.
10632         (range_int_cst_p): Use range_has_numeric_bounds_p.
10633         (get_range_op_handler): New.
10634         (supported_types_p): New.
10635         (defined_ranges_p): New.
10636         (drop_undefines_to_varying): New.
10637         (range_fold_binary_symbolics_p): New.
10638         (range_fold_unary_symbolics_p): New.
10639         (range_fold_unary_expr): Extract out into above functions.
10640         (range_fold_binary_expr): Same.
10641         (value_range_base::normalize_addresses): New.
10642         (value_range_base::normalize_symbolics): Normalize addresses.
10643         * tree-vrp.h (class value_range_base): Add normalize_addresses.
10645 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10647         * tree-vrp.c (value_range_base::singleton_p): Use
10648         value_range_base::num_pairs instead of vrp_val_is* to check
10649         if a range has one sub-range.
10651 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10653         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10654         DEF is not a true earlyclobber but is tied to a specific input
10655         operand, and so is effectively earlyclobber wrt inputs that have
10656         different values.
10657         (make_early_clobber_and_input_conflicts): Pass this case to the above.
10659 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10661         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10662         (pod_mode): Mark operators likewise.
10663         (scalar_int_mode): Mark non-default constructors and
10664         operators with CONSTEXPR.
10665         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10666         (fixed_size_mode): Likewise.
10668 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10670         PR target/91994
10671         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10672         and wrap the unspec_volatile in a parallel.
10673         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
10674         the unspec_volatile.
10675         * config/i386/predicates.md (vzeroupper_pattern): Expect the
10676         unspec_volatile to be wrapped in a parallel.
10677         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10678         (ix86_add_reg_usage_to_vzerouppers): New functions.
10679         (rest_of_handle_insert_vzeroupper): Use them to add register
10680         usage information to the vzeroupper instructions.
10682 2019-10-07  Richard Biener  <rguenther@suse.de>
10684         PR tree-optimization/91975
10685         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10686         handle invariants.
10688 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
10690         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10691         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10693 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
10695         * config/darwin.c (darwin_override_options): Adjust objective-c
10696         ABI version error messages to avoid punctuation and contracted
10697         negations.
10699 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
10701         * ipa-inline.c: Fix type; compute size rather than self_size
10702         for size of caller function.
10704 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
10706         PR target/59888
10707         * config/darwin.c (darwin_rodata_section): Add relocation flag,
10708         choose const_data section for constants with relocations.
10709         (machopic_select_section): Pass relocation flag to
10710         darwin_rodata_section ().
10712 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
10714         PR tree-optimization/91734
10715         * generic-match-head.c: Include fold-const-call.h.
10716         * match.pd (sqrt(x) cmp c): Check the boundary value and
10717         in case inexact computation of c*c affects comparison of the boundary,
10718         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10719         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
10720         for -frounding-math.  For c2, try the next smaller or larger floating
10721         point constant depending on comparison code and if it has the same
10722         sqrt as c2, use it instead of c2.
10724 2019-10-04  Martin Sebor  <msebor@redhat.com>
10726         PR middle-end/91977
10727         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10728         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
10729         uninitialized objects.
10731 2019-10-04  Martin Sebor  <msebor@redhat.com>
10733         * builtins.c (compute_objsize): Add an argument.
10734         * tree-object-size.c (addr_object_size): Same.
10735         (compute_builtin_object_size): Same.
10736         * tree-object-size.h (compute_builtin_object): Same.
10738 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
10740         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10742 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
10744         * match.pd (sinh (x) / cosh (x)): New simplification rule.
10746 2019-10-04  Martin Jambor  <mjambor@suse.cz>
10748         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10749         fntype when switching to calling memcpy instead of memset.
10751 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10753         * hash-table.h (hash_table::empty_slow): Don't assign
10754         size_t values to int variables.
10756 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10758         * expr.c (convert_mode_scalar): Remove shadowing local var.
10759         (emit_block_move): Rename local vars.
10760         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10761         (emit_push_insn): Rename local vars.
10762         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
10763         shadowing local vars.
10764         (store_constructor): Remove shadowing local vars.  Rename local var.
10765         (store_field, expand_cond_expr_using_cmove,
10766         expand_expr_real_2): Remove shadowing local vars.
10767         (expand_expr_real_1,
10768         do_store_flag): Remove shadowing local vars.  Rename local vars.
10770 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10772         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10774 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10776         * genmatch.c (commutate): Rename local var.
10777         (lower_cond): Reuse local var.
10778         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10779         dt_operand::gen, dt_operand::gen_gimple_expr,
10780         dt_simplify::gen): Add a param.  Rename generated vars.
10781         (decision_tree::insert_operand,
10782         (capture_info::walk_match, capture_info::walk_result,
10783         capture_info::walk_c_expr): Rename local vars.
10784         (expr::gen_transform): Rename generated vars.
10785         Use snprintf.  Rename local vars.
10786         (capture::gen_transform, dt_operand::get_name,
10787         dt_operand::gen_opname): Rename generated vars.
10788         (write_predicate): Adjust call to gen_kids.
10789         (parser::get_internal_capture_id): Rename generated vars.
10790         (parser::parse_expr): Rename local vars.
10791         (parser::parse_if): Remove local var.
10792         (parser::parse_pattern, add_operator): Rename local vars.
10794 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
10796         * builtins.def (DEF_C2X_BUILTIN): New macro.
10797         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10798         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10799         (strndup): Use DEF_C2X_BUILTIN.
10800         * coretypes.h (enum function_class): Add function_c2x_misc.
10802 2019-10-04  Maya Rashish  <coypu@sdf.org>
10804         * ira-color.c (update_costs_from_allocno): Call
10805         ira_init_register_move_cost_if_necessary.
10807 2019-10-04  Jeff Law  <law@redhat.com>
10809         * config/h8300/h8300.md (cpymemsi): Disable.
10810         (movmd, movmd_internal_<mode>, movstr, movsd):
10811         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10812         (movmd splitter, movsd splitter): Likewise.
10814         * range-op.cc (range_tests): Avoid two tests when ints and
10815         shorts are the same size.
10817 2019-10-04  Richard Biener  <rguenther@suse.de>
10819         PR lto/91968
10820         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10821         BLOCK_VARS.
10823 2019-10-04  Richard Biener  <rguenther@suse.de>
10825         PR tree-optimization/91982
10826         * tree-vect-loop.c (vectorizable_live_operation): Also guard
10827         against EXTRACT_LAST_REDUCTION.
10828         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10830 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
10832         * range-op.o (value_range_from_overflowed_bounds): Rename from
10833         adjust_overflow_bound.
10834         (value_range_with_overflow): Rename from
10835         create_range_with_overflow.
10836         (create_possibly_reversed_range): Adjusted for above renames.
10837         (operator_*::wi_fold): Same.
10838         (cross_product_operator::wi_cross_productor): Same.
10840 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10842         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10843         -Wshadow=compatible-local): Fix description.
10844         Add an example where -Wshadow=compatible-local does not
10845         warn.
10847 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
10849         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10851         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10852         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10854 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
10856         * expr.c (emit_block_move_hints): Slightly cleaner fix to
10857         can_move_by_pieces issue.
10859 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
10861         PR target/87243
10862         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10863         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10864         is available and the user has not set one on the command line.
10866 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
10868         PR target/91769
10869         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10870         instead of REGNO equality check on addr.reg.
10872 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
10874         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10875         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10876         * doc/invoke.texi (inline-heuristics-hint-percent,
10877         inline-heuristics-hint-percent-O2): Document.
10878         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10879         hint attribute.
10880         (can_inline_edge_by_limits_p): Use it.
10882 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
10884         * config/arm/arm.c (arm_print_value): Use real_to_decimal
10885         to print CONST_DOUBLEs.
10887 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
10889         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10890         * ipa-prop.c (ipcp_free_transformation_sum): New function.
10891         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10893 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
10895         * Makefile.in (OBJS): Add range.o and range-op.o.
10896         Remove wide-int-range.o.
10897         * function-tests.c (test_ranges): New.
10898         (function_tests_c_tests): Call test_ranges.
10899         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10900         range_fold_unary_expr instead of extract_range_from_unary_expr.
10901         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10902         * range-op.cc: New file.
10903         * range-op.h: New file.
10904         * range.cc: New file.
10905         * range.h: New file.
10906         * selftest.h (range_tests): New prototype.
10907         * ssa.h: Include range.h.
10908         * tree-vrp.c (value_range_base::value_range_base): New
10909         constructors.
10910         (value_range_base::singleton_p): Do not call
10911         ranges_from_anti_range until sure we will need to.
10912         (value_range_base::type): Rename gcc_assert to
10913         gcc_checking_assert.
10914         (vrp_val_is_max): New argument.
10915         (vrp_val_is_min): Same.
10916         (wide_int_range_set_zero_nonzero_bits): Move from
10917         wide-int-range.cc.
10918         (extract_range_into_wide_ints): Remove.
10919         (extract_range_from_multiplicative_op): Remove.
10920         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10921         from extract_range_from_binary_expr.
10922         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10923         from extract_range_from_binary_expr.
10924         (extract_range_from_binary_expr): Remove.
10925         (normalize_for_range_ops): New.
10926         (range_fold_binary_expr): New.
10927         (range_fold_unary_expr): New.
10928         (value_range_base::num_pairs): New.
10929         (value_range_base::lower_bound): New.
10930         (value_range_base::upper_bound): New.
10931         (value_range_base::upper_bound): New.
10932         (value_range_base::contains_p): New.
10933         (value_range_base::invert): New.
10934         (value_range_base::union_): New.
10935         (value_range_base::intersect): New.
10936         (range_compatible_p): New.
10937         (value_range_base::operator==): New.
10938         (determine_value_range_1): Call range_fold_*expr instead of
10939         extract_range_from_*expr.
10940         * tree-vrp.h (class value_range_base): Add new constructors.
10941         Add methods for union_, intersect, operator==, contains_p,
10942         num_pairs, lower_bound, upper_bound, invert.
10943         (vrp_val_is_min): Add handle_pointers argument.
10944         (vrp_val_is_max): Same.
10945         (extract_range_from_unary_expr): Remove.
10946         (extract_range_from_binary_expr): Remove.
10947         (range_fold_unary_expr): New.
10948         (range_fold_binary_expr): New.
10949         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10950         range_fold_binary_expr instead of extract_range_from_binary_expr.
10951         (vr_values::extract_range_basic): Same.
10952         (vr_values::extract_range_from_unary_expr): Call
10953         range_fold_unary_expr instead of extract_range_from_unary_expr.
10954         * wide-int-range.cc: Remove.
10955         * wide-int-range.h: Remove.
10957 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
10959         * config/rs6000/rs6000.c (mem_operand_gpr): Use
10960         SIGNED_16BIT_OFFSET_EXTRA_P macro.
10961         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10962         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10963         macro.
10965 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
10967         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10968         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10969         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10970         * glimits.h: Likewise.
10972 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
10974         PR rtl-optimization/91976
10975         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10976         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
10977         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
10979 2019-10-02  Martin Sebor  <msebor@redhat.com>
10981         PR tree-optimization/80936
10982         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10984 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10986         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10987         instead of reg_class_contents[ALL_REGS].
10989 2019-09-30  Jason Merrill  <jason@redhat.com>
10991         Add some hash_map_safe_* functions like vec_safe_*.
10992         * hash-map.h (default_hash_map_size): New variable.
10993         (create_ggc): Use it as default argument.
10994         (hash_map_maybe_create, hash_map_safe_get)
10995         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10997 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
10999         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
11000         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
11001         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
11002         (can_inline_edge_by_limits_p): Use it.
11003         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
11004         (want_inline_small_function_p): Use O2 bounds.
11005         (edge_badness): LIkewise.
11006         * opts.c (default_options): Add OPT_finline_functions.
11007         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
11008         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
11009         New parameters.
11010         * doc/invoke.texi (-finline-functions): Update documentation.
11011         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
11012         inline-min-speedup-O2): Document.
11013         (early-inlining-insns-O2): Simplify docs.
11015 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
11017         PR rtl-optimization/87047
11018         * ifcvt.c (average_cost): New static function.  Use it...
11019         (noce_process_if_block): ... here.
11021 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
11023         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
11024         * config/rs6000/rs6000-string.c (expand_block_move): Add
11025         might_overlap parm.
11026         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
11027         (cpymemsi): Add might_overlap parm to expand_block_move() call.
11029 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
11031         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
11032         (expand_builtin_memcpy): Use might_overlap parm.
11033         (expand_builtin_mempcpy_args): Use might_overlap parm.
11034         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
11035         (expand_builtin_memory_copy_args): Add might_overlap parm.
11036         * expr.c (emit_block_move_via_cpymem): Rename to
11037         emit_block_move_via_pattern, add might_overlap parm, use cpymem
11038         or movmem optab as appropriate.
11039         (emit_block_move_hints): Add might_overlap parm, do the right
11040         thing for might_overlap==true.
11041         * expr.h (emit_block_move_hints): Update prototype.
11043 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
11045         * tree-eh.h (unsplit_eh_edges): Declare.
11046         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
11047         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
11048         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
11049         (struct store_immediate_info): Add lp_nr field.
11050         (store_immediate_info::store_immediate_info): Add NR2 parameter and
11051         initialize lp_nr with it.
11052         (struct merged_store_group): Add lp_nr and only_constants fields.
11053         (merged_store_group::merged_store_group): Initialize them.
11054         (merged_store_group::can_be_merged_into): Deal with them.
11055         (pass_store_merging): Rename terminate_and_release_chain into
11056         terminate_and_process_chain.
11057         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
11058         renaming and remove useless assertions.
11059         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
11060         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
11061         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
11062         instead of always recomputing it and compare lp_nr.
11063         (imm_store_chain_info::output_merged_store): If the group is in an
11064         active EH region, register new stores if they can throw.  Moreover,
11065         if the insertion has created new basic blocks, adjust the PHI nodes
11066         of the post landing pad.
11067         (imm_store_chain_info::output_merged_stores): If the original stores
11068         are in an active EH region, deregister them.
11069         (lhs_valid_for_store_merging_p): Prettify.
11070         (adjust_bit_pos): New function extracted from...
11071         (mem_valid_for_store_merging): ...here.  Use it for the base address
11072         and also for the offset if it is the addition of a constant.
11073         (lp_nr_for_store): New function.
11074         (pass_store_merging::process_store): Change return type to bool.
11075         Call lp_nr_for_store to initialize the store info.  Propagate the
11076         return status of various called functions to the return value.
11077         (store_valid_for_store_merging_p): New predicate.
11078         (enum basic_block_status): New enumeration.
11079         (get_status_for_store_merging): New function.
11080         (pass_store_merging::execute): If the function can throw and catch
11081         non-call exceptions, unsplit the EH edges on entry and clean up the
11082         CFG on exit if something changed.  Call get_status_for_store_merging
11083         for every basic block and keep the chains open across basic blocks
11084         when possible.  Terminate and process open chains at the end, if any.
11086 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11088         * reginfo.c (globalize_reg): Fix shadowed variable in
11089         function_abis walk.
11091 2019-10-02  Martin Jambor  <mjambor@suse.cz>
11093         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
11094         do not compute some stuff when set.
11095         (cgraph_node::create_edge): Likewise.
11096         (cgraph_node::create_indirect_edge): Renamed last parameter to
11097         coning_p and flipped its meaning, don't even calculate
11098         inline_failed when set.
11099         * cgraph.h (cgraph_node::create_edge): Add new parameter.
11100         (symbol_table::::create_edge): Likewise.
11101         (cgraph_node::create_indirect_edge): Rename last parameter, flip
11102         the default value.
11103         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
11104         call graph edge creating functions.
11106 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11108         PR c++/91222
11109         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
11110         namespace types.
11112 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
11114         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
11116 2019-10-02  Richard Biener  <rguenther@suse.de>
11118         * tree-vectorizer.h (vect_transform_reduction): Declare.
11119         * tree-vect-stmts.c (vect_transform_stmt): Use it.
11120         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
11121         stmt transform to ...
11122         (vect_transform_reduction): ... this.
11124 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
11126         * omp-low.c (lower_omp_target): Dereference optional argument
11127         to work with the right pointer.
11129 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
11131         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
11132         false.
11133         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
11134         * langhooks.h (omp_is_optional_argument): New hook.
11135         * omp-general.c (omp_is_optional_argument): New.
11136         * omp-general.h (omp_is_optional_argument): New declaration.
11137         * omp-low.c (lower_omp_target): Create temporary for received value
11138         and take the address for new_var if the original variable was a
11139         DECL_BY_REFERENCE.  Use size of referenced object when a
11140         pass-by-reference optional argument used as argument to firstprivate.
11142 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
11144         PR tree-optimization/91940
11145         * tree-vect-patterns.c: Include tree-vector-builder.h and
11146         vec-perm-indices.h.
11147         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
11148         unpromoting the argument back to uint16_t, or by converting into a
11149         rotate, or into shifts plus ior.
11151 2019-10-02  Richard Biener  <rguenther@suse.de>
11153         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
11154         New.
11155         (vect_transform_cycle_phi): Declare.
11156         * tree-vect-stmts.c (vect_transform_stmt): Call
11157         vect_transform_cycle_phi.
11158         * tree-vect-loop.c (vectorizable_reduction): Split out
11159         PHI transformation stage to ...
11160         (vect_transform_cycle_phi): ... here.
11162 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11164         PR middle-end/91957
11165         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
11166         eliminable registers.
11167         (make_hard_regno_live): Likewise, and don't make them live.
11169 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
11171         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
11172         Call pp_emit_prefix.
11173         (layout::print_source_line): Likewise.
11174         (layout::start_annotation_line): Likewise.
11175         (diagnostic_show_locus): Remove call to temporarily clear the
11176         prefix.
11177         (selftest::test_one_liner_fixit_remove): Add test coverage for the
11178         interaction of pp_set_prefix with rulers and fix-it hints.
11179         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
11180         prefix when calling diagnostic_show_locus, rather than destroying
11181         it afterwards.
11182         (print_parseable_fixits): Temporarily clear prefix.
11183         * pretty-print.c (pp_format): Save and restore line_length, rather
11184         than assuming it is zero.
11185         (pp_output_formatted_text): Remove assertion that line_length is
11186         zero.
11188 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11190         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11191         Rename to ...
11192         (nonoverlapping_refs_since_match_p): ... this; handle also
11193         ARRAY_REFs.
11194         (alias_stats): Update stats.
11195         (dump_alias_stats): Likewise.
11196         (cheap_array_ref_low_bound): New function.
11197         (aliasing_matching_component_refs_p): Add partial_overlap
11198         argument;
11199         pass it to nonoverlapping_refs_since_match_p.
11200         (aliasing_component_refs_walk): Update call of
11201         aliasing_matching_component_refs_p
11202         (nonoverlapping_array_refs_p): New function.
11203         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
11204         indirect_refs_may_alias_p): Update calls of
11205         nonoverlapping_refs_since_match_p.
11207 2019-10-01  Maya Rashish  <coypu@sdf.org>
11209         PR target/85401
11210         * ira-color.c (allocno_copy_cost_saving): Call
11211         ira_init_register_move_cost_if_necessary.
11213 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
11215         * Makefile.in (gnat_install_lib): New variable.
11216         * configure.ac: Substitute it.
11217         * configure: Regenerate.
11219 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11221         PR lto/91222
11222         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
11223         is matched with non-C++ type
11225 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11227         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
11228         after local CSE.
11230 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11232         * doc/invoke.texi (early-inlining-insns-O2): Document.
11233         (early-inlining-insns): Update.
11234         * params.def (early-inlining-insns-O2): New bound.
11235         (early-inlining-insns): Update docs.
11236         * ipa-inline.c (want_early_inline_function_p): Use new bound.
11238 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
11240         PR target/88562
11241         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
11242         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
11243         a memory access insn.
11245 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
11247         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
11248         vpmsumd.
11250 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11252         PR target/77918
11253         * config/s390/s390.c (s390_expand_vec_compare): Use
11254         gen_vec_cmpordered and gen_vec_cmpunordered.
11255         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
11256         vec_unordered): Delete.
11257         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
11258         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
11259         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
11260         (vec_cmp<code>): Generic dispatcher.
11262 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11264         PR target/77918
11265         * config/s390/vector.md (V_HW): Add V1TI in order to make
11266         vcond$a$b generate vcondv1tiv1tf.
11268 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11270         PR rtl-optimization/91948
11271         * ira-build.c (ira_create_allocno): Initialize
11272         ALLOCNO_CROSSED_CALLS_ABIS.
11273         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
11274         than regno to ira_need_caller_save_p.
11276 2019-10-01  Alexandre Oliva <oliva@adacore.com>
11278         * config/i386/i386-options.c
11279         (ix86_recompute_optlev_based_flags): New, moved out of...
11280         (ix86_option_override_internal): ... this.  Call it.
11281         (ix86_override_options_after_change): Call it here too.
11283         PR debug/91507
11284         * dwarf2out.c (override_type_for_decl_p): New.
11285         (gen_variable_die): Use it.
11287 2019-10-01  Richard Biener  <rguenther@suse.de>
11289         * tree-vect-loop.c (vectorizable_reduction): Move variables
11290         to where they are used.
11292 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11294         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11295         (build_def_use): Use PC instead of CC0 in a comment.
11297 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11299         * rtl.def (CLOBBER_HIGH): Delete.
11300         * doc/rtl.texi (clobber_high): Remove documentation.
11301         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11302         (reg_is_clobbered_by_clobber_high): Delete.
11303         (gen_hard_reg_clobber_high): Likewise.
11304         * alias.c (record_set): Remove CLOBBER_HIGH handling.
11305         * cfgexpand.c (expand_gimple_stmt): Likewise.
11306         * combine-stack-adj.c (single_set_for_csa): Likewise.
11307         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11308         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11309         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11310         * cse.c (invalidate_reg): Remove clobber_high parameter.
11311         (invalidate): Update call accordingly.
11312         (canonicalize_insn): Remove CLOBBER_HIGH handling.
11313         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11314         (count_reg_usage, insn_live_p): Likewise.
11315         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11316         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11317         (cselib_invalidate_rtx_note_stores): Update call accordingly.
11318         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11319         (cselib_invalidate_regno, cselib_process_insn): Likewise.
11320         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11321         (mark_nonreg_stores_2): Likewise.
11322         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11323         (df_get_call_refs): Likewise.
11324         * dwarf2out.c (mem_loc_descriptor): Likewise.
11325         * emit-rtl.c (verify_rtx_sharing): Likewise.
11326         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11327         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11328         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11329         * genemit.c (gen_exp, gen_insn): Likewise.
11330         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11331         * haifa-sched.c (haifa_classify_rtx): Likewise.
11332         * ira-build.c (create_insn_allocnos): Likewise.
11333         * ira-costs.c (scan_one_insn): Likewise.
11334         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11335         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11336         * jump.c (mark_jump_label_1): Likewise.
11337         * lra-int.h (lra_insn_reg::clobber_high): Delete.
11338         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11339         handling.
11340         (mark_not_eliminable): Likewise.
11341         * lra-lives.c (process_bb_lives): Likewise.
11342         * lra.c (new_insn_reg): Remove clobber_high parameter.
11343         (collect_non_operand_hard_regs): Likewise.  Update call to new
11344         insn_reg.  Remove CLOBBER_HIGH handling.
11345         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
11346         to collect_non_operand_hard_regs.
11347         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11348         Update call to new_insn_reg.
11349         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11350         * postreload.c (reload_cse_simplify, reload_combine_note_use)
11351         (move2add_note_store): Likewise.
11352         * print-rtl.c (print_pattern): Likewise.
11353         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11354         (if_test_bypass_p): Likewise.
11355         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11356         * reginfo.c (reg_scan_mark_refs): Likewise.
11357         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11358         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11359         (forget_old_reloads_1): Likewise.
11360         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11361         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11362         (dbr_schedule): Likewise.
11363         * resource.c (update_live_status, mark_referenced_resources)
11364         (mark_set_resources): Likewise.
11365         * rtl.c (copy_rtx): Likewise.
11366         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11367         (note_pattern_stores): Likewise.
11368         (reg_is_clobbered_by_clobber_high): Delete.
11369         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11370         CLOBBER_HIGH handling.
11372 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11374         PR target/91452
11375         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11376         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11377         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11378         Handle ARM_PCS_TLSDESC.
11379         (aarch64_tlsdesc_abi_id): New function.
11380         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11381         rtx instead of a list of clobbers and clobber_highs.
11382         (tlsdesc_small_<mode>): Update accordingly.
11384 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11386         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11387         extra callee_abi argument.
11388         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11389         Insert a CALLEE_ABI unspec into the call pattern as the second
11390         element in the PARALLEL.
11391         (aarch64_simd_call_p): Delete.
11392         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11393         the new CALLEE_ABI element of the PARALLEL.
11394         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11395         from the function type, if given.
11396         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11397         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
11398         when passed the function_arg_info end marker.
11399         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11400         final argument of gen_sibcall.
11401         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11402         (call): Make operand 2 a const_int_operand and pass it to expand_call.
11403         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11404         pattern.
11405         (call_value): Likewise operand 3.
11406         (sibcall): Likewise operand 2.  Place the unspec before rather than
11407         after the return.
11408         (sibcall_value): Likewise operand 3.
11409         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11410         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11411         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
11412         constraint strings.
11413         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11415 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11417         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11418         choose_hard_reg_mode.
11419         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11421 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11423         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11424         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11425         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11427 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
11429         * diagnostic-show-locus.c (line_label::line_label): Initialize
11430         m_has_vbar.
11431         (line_label::comparator): Reverse the sort order by m_state_idx,
11432         so that when the list is walked backwards the labels appear in
11433         order of insertion into the rich_location.
11434         (line_label::m_has_vbar): New field.
11435         (layout::print_any_labels): When dealing with multiple labels at
11436         the same line and column, only print vertical bars for the one
11437         with the highest label_line.
11438         (selftest::test_one_liner_labels): Update test for multiple labels
11439         to expect the labels to be in the order of insertion into the
11440         rich_location.  Add a test for many such labels, where the column
11441         numbers are out-of-order relative to the insertion order.
11443 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11445         * config/i386/i386.h (ix86_frame::expensive_p): New field.
11446         (ix86_frame::expensive_count): Likewise.
11447         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11448         of use_fast_prologue_epilogue robust against incidental changes
11449         in function size.
11451 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
11453         PR target/77918
11454         * config/s390/vector.md (vec_unordered<mode>): Call
11455         gen_vec_ordered<mode>.
11457 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
11459         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11460         New pattern for ASRD.
11461         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11462         * internal-fn.def (IFN_DIV_POW2): New internal function.
11463         * optabs.def (sdiv_pow2_optab): New optab.
11464         * tree-vect-patterns.c (vect_recog_divmod_pattern):
11465         Modify pattern to support new operation.
11466         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11467         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11468         Document new target selector.
11470 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11472         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11473         to test whether we're compiling a vector PCS function and to test
11474         whether the function needs to save a particular register.
11475         Remove the vector PCS handling of df_set_regs_ever_live.
11476         (aarch64_components_for_bb): Use crtl->abi to test whether
11477         the function needs to save a particular register.
11478         (aarch64_process_components): Use crtl->abi to test whether
11479         we're compiling a vector PCS function.
11480         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11481         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11483 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11485         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11486         Delete.
11487         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11488         whether the block calls a function that clobbers more registers
11489         than the current function is allowed to.
11490         (aarch64_use_simple_return_insn_p): Delete.
11491         * config/aarch64/aarch64.md (simple_return): Remove condition.
11493 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11495         * function-abi.h (function_abi_aggregator): New class.
11496         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11497         function.
11498         * ira.c (update_equiv_regs_prescan): New function.  Call
11499         set_paradoxical_subreg here rather than...
11500         (update_equiv_regs): ...here.
11501         (ira): Call update_equiv_regs_prescan.
11503 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11505         * hard-reg-set.h (regs_invalidated_by_call): Only define if
11506         IN_TARGET_CODE.
11507         (call_used_or_fixed_regs): Likewise.
11508         (call_used_or_fixed_reg_p): Likewise.
11509         * reginfo.c (regs_invalidated_by_call): New macro.
11511 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11513         * shrink-wrap.c: Include function-abi.h.
11514         (requires_stack_frame_p): Use crtl->abi to test whether the
11515         current function can use a register without saving it first.
11517 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11519         * sel-sched-ir.h (_def::crosses_call): Replace with...
11520         (_def::crossed_call_abis): ..this new field.
11521         (def_list_add): Take a mask of ABIs instead of a crosses_call
11522         boolean.
11523         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
11524         of _def accordingly.
11525         * sel-sched.c: Include function-abi.h.
11526         (hard_regs_data::regs_for_call_clobbered): Delete.
11527         (reg_rename::crosses_call): Replace with...
11528         (reg_rename::crossed_call_abis): ...this new field.
11529         (fur_static_params::crosses_call): Replace with...
11530         (fur_static_params::crossed_call_abis): ...this new field.
11531         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11532         (init_hard_regs_data): Use crtl->abi to test which registers the
11533         current function would need to save before it uses them.
11534         (mark_unavailable_hard_regs): Update handling of call-clobbered
11535         registers, using call_clobbers_in_region to find out which registers
11536         might be call-clobbered (but without taking -fipa-ra into account
11537         for now).  Remove separate handling of partially call-clobbered
11538         registers.
11539         (verify_target_availability): Use crossed_call_abis instead of
11540         crosses_call.
11541         (get_spec_check_type_for_insn, find_used_regs): Likewise.
11542         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11544 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11546         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11547         function to test whether a register is fully or partly clobbered.
11549 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11551         * rtlanal.c: Include function-abi.h.
11552         (reg_set_p): Use insn_callee_abi to get the ABI of the called
11553         function and clobbers_reg_p to test whether the register
11554         is call-clobbered.
11555         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11556         to get the ABI of the called function and full_reg_clobbers to
11557         get the set of fully call-clobbered registers.  Warn about the
11558         pitfalls of using this mode.
11560 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11562         * reload.c: Include function-abi.h.
11563         (find_equiv_reg): Use clobbers_reg_p to test whether either
11564         of the equivalent registers is clobbered by a call.
11565         * reload1.c: Include function-abi.h.
11566         (reg_reloaded_call_part_clobbered): Delete.
11567         (reload): Use crtl->abi to test which registers would need
11568         saving in the prologue before use.
11569         (find_reg): Likewise.
11570         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11571         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
11572         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11574 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11576         * regrename.h (du_head::call_clobber_mask): New field.
11577         (du_head::need_caller_save_reg): Replace with...
11578         (du_head::call_abis): ...this new field.
11579         * regrename.c: Include function-abi.h.
11580         (call_clobbered_in_chain_p): New function.
11581         (check_new_reg_p): Use crtl->abi when deciding whether a register
11582         is free for use after RA.  Use call_clobbered_in_chain_p to test
11583         whether a candidate register would be clobbered by a call.
11584         (find_rename_reg): Don't add call-clobber conflicts here.
11585         (rename_chains): Check call_abis instead of need_caller_save_reg.
11586         (merge_chains): Update for changes to du_head.
11587         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11588         target.  Record the ABI identifier in call_abis and the set of
11589         fully or partially clobbered registers in call_clobber_mask.
11590         Add fully-clobbered registers to hard_conflicts here rather
11591         than in find_rename_reg.
11592         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11593         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11594         * config/aarch64/falkor-tag-collision-avoidance.c: Include
11595         function-abi.h.
11596         * config/c6x/c6x.c: Likewise.
11598 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11600         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11601         mode of the register when deciding whether it is no longer
11602         available after a call.
11604 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11606         * recog.c: Include function-abi.h.
11607         (peep2_find_free_register): Use crtl->abi when deciding whether
11608         a register is free for use after RA.
11610 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11612         * postreload-gcse.c: Include regs.h and function-abi.h.
11613         (record_opr_changes): Use insn_callee_abi to get the ABI of the
11614         call insn target.  Conservatively assume that partially-clobbered
11615         registers are altered.
11617 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11619         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11620         when deciding whether a register is free for use after RA.
11621         (reload_combine): Remove unnecessary use of fixed_reg_set.
11622         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11623         call insn target.  Use reg_mode when testing whether a register
11624         is no longer available.
11626 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11628         * target.def (return_call_with_max_clobbers): Delete.
11629         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11630         * doc/tm.texi: Regenerate.
11631         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11632         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11633         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11634         (lra_reg::call_insn): Delete.
11635         * lra.c: Include function-abi.h.
11636         (initialize_lra_reg_info_element): Don't initialize the fields above.
11637         (lra): Use crtl->abi to test whether the current function needs to
11638         save a register in the prologue.  Remove special pre-inheritance
11639         lra_create_live_ranges pass for flag_ipa_ra.
11640         * lra-assigns.c: Include function-abi.h
11641         (find_hard_regno_for_1): Use crtl->abi to test whether the current
11642         function needs to save a register in the prologue.
11643         (lra_assign): Assert that registers aren't allocated to a
11644         conflicting register, rather than checking only for overlaps
11645         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
11646         and for registers that are not live across a call.
11647         * lra-constraints.c (last_call_for_abi): New variable.
11648         (full_and_partial_call_clobbers): Likewise.
11649         (setup_next_usage_insn): Remove the register from
11650         full_and_partial_call_clobbers.
11651         (need_for_call_save_p): Use call_clobbered_in_region_p to test
11652         whether the register needs a caller save.
11653         (need_for_split_p): Use full_and_partial_reg_clobbers instead
11654         of call_used_or_fixed_regs.
11655         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11656         full_and_partial_call_clobbers.
11657         * lra-lives.c (check_pseudos_live_through_calls): Replace
11658         last_call_used_reg_set and call_insn arguments with an abi argument.
11659         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
11660         as the set of conflicting registers.
11661         (calls_have_same_clobbers_p): Delete.
11662         (process_bb_lives): Track the ABI of the last call instead of an
11663         insn/HARD_REG_SET pair.  Update calls to
11664         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
11665         the set of registers that could be clobbered by an EH edge.
11666         Include partially-clobbered as well as fully-clobbered registers.
11667         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11668         * lra-remat.c: Include function-abi.h.
11669         (call_used_regs_arr_len, call_used_regs_arr): Delete.
11670         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11671         registers and bitmap_view to combine them into dead_regs.
11672         (call_used_input_regno_present_p): Take a function_abi argument
11673         and use it to test whether a register is call-clobbered.
11674         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11675         call insn target.  Update tje call to call_used_input_regno_present_p.
11676         (do_remat): Likewise.
11677         (lra_remat): Remove the initialization of call_used_regs_arr_len
11678         and call_used_regs_arr.
11680 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11682         * loop-iv.c: Include regs.h and function-abi.h.
11683         (simplify_using_initial_values): Use insn_callee_abi to get the
11684         ABI of the call insn target.  Conservatively assume that
11685         partially-clobbered registers are altered.
11687 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11689         * function-abi.h (call_clobbers_in_region): Declare.
11690         (call_clobbered_in_region_p): New function.
11691         * function-abi.cc (call_clobbers_in_region): Likewise.
11692         * ira-int.h: Include function-abi.h.
11693         (ira_allocno::crossed_calls_abis): New field.
11694         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11695         (ira_need_caller_save_regs): New function.
11696         (ira_need_caller_save_p): Likewise.
11697         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11698         of call_used_or_fixed_regs.
11699         (do_reload): Use crtl->abi to test whether the current function
11700         needs to save a register in the prologue.  Count registers that
11701         need to be saved rather than registers that don't.
11702         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11703         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11704         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11705         (propagate_some_info_from_allocno): Likewise.
11706         (copy_info_to_removed_store_destinations): Likewise.
11707         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11708         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11709         (ira_build): Use ira_need_caller_save_regs instead of
11710         call_used_or_fixed_regs.
11711         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11712         whether the current function would need to save a register
11713         before using it.
11714         (calculate_spill_cost): Likewise.
11715         (allocno_reload_assign): Use ira_need_caller_save_regs and
11716         ira_need_caller_save_p instead of call_used_or_fixed_regs.
11717         * ira-conflicts.c (ira_build_conflicts): Use
11718         ira_need_caller_save_regs rather than call_used_or_fixed_regs
11719         as the set of call-clobbered registers.  Remove the
11720         call_used_or_fixed_regs mask from the calculation of
11721         temp_hard_reg_set and mask its use instead.  Remove special
11722         handling of partially-clobbered registers.
11723         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11724         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11725         calculate the set of conflicting registers for calls that
11726         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11727         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11728         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11729         Use eh_edge_abi to calculate the set of registers that could
11730         be clobbered by an EH edge.  Include partially-clobbered as
11731         well as fully-clobbered registers.
11733 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11735         * haifa-sched.c: Include function-abi.h.
11736         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11737         the function would need to save a register before using it.
11739 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11741         * gcse.c: Include function-abi.h.
11742         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11743         the call insn target.  Invalidate partially call-clobbered
11744         registers as well as fully call-clobbered ones.
11746 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11748         * function.c (aggregate_value_p): Work out which ABI the
11749         function is using before testing which registers are at least
11750         partly preserved by a call.
11752 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11754         * early-remat.c: Include regs.h and function-abi.h.
11755         (early_remat::maybe_add_candidate): Don't check for call-clobbered
11756         registers here.
11757         (early_remat::restrict_remat_for_unavail_regs): New function.
11758         (early_remat::restrict_remat_for_call): Likewise.
11759         (early_remat::process_block): Before calling emit_remat_insns
11760         for a previous call in the block, invalidate any candidates
11761         that would clobber call-preserved registers.
11762         (early_remat::emit_remat_insns_for_block): Likewise for the
11763         final call in a block.  Do the same thing for live-in registers
11764         when calling emit_remat_insns at the head of a block.
11766 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11768         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11769         whether the current function needs to save at least part of a
11770         register before using it.
11771         (df_get_exit_block_use_set): Likewise for epilogue restores.
11773 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11775         * df-problems.c: Include regs.h and function-abi.h.
11776         (df_rd_problem_data): Rename sparse_invalidated_by_call to
11777         sparse_invalidated_by_eh and dense_invalidated_by_call to
11778         dense_invalidated_by_eh.
11779         (df_print_bb_index): Update accordingly.
11780         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11781         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11782         that are clobbered by an EH edge.  Clobber partially-clobbered
11783         registers as well as fully-clobbered ones.
11784         (df_md_confluence_n): Likewise.
11785         (df_rd_local_compute): Likewise.  Update for changes to
11786         df_rd_problem_data.
11787         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11788         of registers that are clobbered by an EH edge.  Includde partially-
11789         clobbered registers as well as fully-clobbered ones.
11791 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11793         * cselib.c (cselib_process_insn): If we know what mode a
11794         register was set in, check whether it is clobbered in that
11795         mode by a call.  Only fall back to reg_raw_mode if that fails.
11797 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11799         * cse.c: Include regs.h and function-abi.h.
11800         (invalidate_for_call): Take the call insn as an argument.
11801         Use insn_callee_abi to get the ABI of the call and invalidate
11802         partially clobbered registers as well as fully clobbered ones.
11803         (cse_insn): Update call accordingly.
11805 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11807         * combine.c: Include function-abi.h.
11808         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11809         of the target of call insns.  Invalidate partially-clobbered
11810         registers as well as fully-clobbered ones.
11812 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11814         * cfgloopanal.c: Include regs.h and function-abi.h.
11815         (init_set_costs): Use default_function_abi to test whether
11816         a general register is call-clobbered.
11818 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11820         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11821         instead of the call-clobbered sets.
11823 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11825         * caller-save.c (setup_save_areas): Remove redundant |s of
11826         fixed_reg_set.
11827         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
11828         than call_used_or_fixed_regs to decide whether a REG_RETURNED
11829         value is useful.
11831 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11833         * rtl.h (predefined_function_abi): Declare.
11834         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11835         instead of a boolean call_save flag.
11836         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11837         accordingly.
11838         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11839         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11840         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11841         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11842         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11843         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11844         * reginfo.c (init_reg_modes_target): Likewise.
11845         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11846         instead of a boolean call_save flag.
11847         * targhooks.c: Include function-abi.h.
11848         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11849         using eh_edge_abi to choose the mode.
11851 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11853         * target.def (hard_regno_call_part_clobbered): Take an ABI
11854         identifier instead of an rtx_insn.
11855         * doc/tm.texi: Regenerate.
11856         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11857         (hook_bool_uint_uint_mode_false): New function.
11858         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11859         (hook_bool_uint_uint_mode_false): New function.
11860         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11861         Take an ABI identifier instead of an rtx_insn.
11862         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11863         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11864         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11865         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11866         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11867         Likewise.
11868         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11869         * cselib.c: Include function-abi.h.
11870         (cselib_process_insn): Update call to
11871         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11872         to get the appropriate ABI identifier.
11873         * function-abi.cc (predefined_function_abi::initialize): Update call
11874         to targetm.hard_regno_call_part_clobbered.
11875         * ira-conflicts.c (ira_build_conflicts): Likewise.
11876         * ira-costs.c (ira_tune_allocno_costs): Likewise.
11877         * lra-constraints.c: Include function-abi.h.
11878         (need_for_call_save_p): Update call to
11879         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11880         to get the appropriate ABI identifier.
11881         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11882         * regcprop.c (copyprop_hardreg_forward_1): Update call
11883         to targetm.hard_regno_call_part_clobbered.
11884         * reginfo.c (choose_hard_reg_mode): Likewise.
11885         * regrename.c (check_new_reg_p): Likewise.
11886         * reload.c (find_equiv_reg): Likewise.
11887         * reload1.c (emit_reload_insns): Likewise.
11888         * sched-deps.c: Include function-abi.h.
11889         (deps_analyze_insn): Update call to
11890         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11891         to get the appropriate ABI identifier.
11892         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11893         call to targetm.hard_regno_call_part_clobbered.
11894         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11896 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11898         * config/i386/i386.c: Include function-abi.h.
11899         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11900         if they preserve some 256-bit or 512-bit SSE registers.
11902 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11904         * target.def (insn_callee_abi): New hook.
11905         (remove_extra_call_preserved_regs): Delete.
11906         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11907         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11908         * doc/tm.texi: Regenerate.
11909         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11910         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11911         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11912         insn argument.
11913         (aarch64_remove_extra_call_preserved_regs): Delete.
11914         (aarch64_insn_callee_abi): New function.
11915         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11916         (TARGET_INSN_CALLEE_ABI): New macro.
11917         * rtl.h (get_call_fndecl): Declare.
11918         (cgraph_rtl_info): Fix formatting.  Tweak comment for
11919         function_used_regs.  Remove function_used_regs_valid.
11920         * rtlanal.c (get_call_fndecl): Moved from final.c
11921         * function-abi.h (insn_callee_abi): Declare.
11922         (target_function_abi_info): Mention insn_callee_abi.
11923         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11924         way to get_call_reg_set_usage did.
11925         (insn_callee_abi): New function.
11926         * regs.h (get_call_reg_set_usage): Delete.
11927         * final.c: Include function-abi.h.
11928         (collect_fn_hard_reg_usage): Add fixed and stack registers to
11929         function_used_regs before the main loop rather than afterwards.
11930         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
11931         if function_used_regs ends up not being useful.
11932         (get_call_fndecl): Move to rtlanal.c
11933         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11934         * caller-save.c: Include function-abi.h.
11935         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11936         instead of get_call_reg_set_usage.
11937         * cfgcleanup.c: Include function-abi.h.
11938         (old_insns_match_p): Use insn_callee_abi instead of
11939         get_call_reg_set_usage.
11940         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11941         a tree.
11942         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
11943         function_used_regs.
11944         * df-scan.c: Include function-abi.h.
11945         (df_get_call_refs): Use insn_callee_abi instead of
11946         get_call_reg_set_usage.
11947         * ira-lives.c: Include function-abi.h.
11948         (process_bb_node_lives): Use insn_callee_abi instead of
11949         get_call_reg_set_usage.
11950         * lra-lives.c: Include function-abi.h.
11951         (process_bb_lives): Use insn_callee_abi instead of
11952         get_call_reg_set_usage.
11953         * postreload.c: Include function-abi.h.
11954         (reload_combine): Use insn_callee_abi instead of
11955         get_call_reg_set_usage.
11956         * regcprop.c: Include function-abi.h.
11957         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11958         get_call_reg_set_usage.
11959         * resource.c: Include function-abi.h.
11960         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11961         instead of get_call_reg_set_usage.
11962         * var-tracking.c: Include function-abi.h.
11963         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11964         get_call_reg_set_usage.
11966 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11968         * target.def (fntype_abi): New target hook.
11969         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11970         * doc/tm.texi: Regenerate.
11971         * target.h (predefined_function_abi): Declare.
11972         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11973         if defined.
11974         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11975         * config/aarch64/aarch64.c: Include function-abi.h.
11976         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11977         (TARGET_FNTYPE_ABI): Define.
11979 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11981         * Makefile.in (OBJS): Add function-abi.o.
11982         (GTFILES): Add function-abi.h.
11983         * function-abi.cc: New file.
11984         * function-abi.h: Likewise.
11985         * emit-rtl.h (rtl_data::abi): New field.
11986         * function.c: Include function-abi.h.
11987         (prepare_function_start): Initialize crtl->abi.
11988         * read-rtl-function.c: Include regs.h and function-abi.h.
11989         (read_rtl_function_body): Initialize crtl->abi.
11990         (read_rtl_function_body_from_file_range): Likewise.
11991         * reginfo.c: Include function-abi.h.
11992         (init_reg_sets_1): Initialize default_function_abi.
11993         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11994         when making a register global.
11995         * target-globals.h (this_target_function_abi_info): Declare.
11996         (target_globals::function_abi_info): New field.
11997         (restore_target_globals): Copy it.
11998         * target-globals.c: Include function-abi.h.
11999         (default_target_globals): Initialize the function_abi_info field.
12000         (target_globals): Allocate it.
12001         (save_target_globals): Free it.
12003 2019-09-30  Nick Clifton  <nickc@redhat.com>
12005         PR target/85978
12006         * config/frv/frv.c (frv_register_move_cost): Add break statements
12007         to avoid falling through to the wrong cases.  Tidy code.
12009 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12011         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
12012         For multi-registers modes, test how big each register part is.
12014 2019-09-30  Nick Clifton  <nickc@redhat.com>
12016         PR target/59205
12017         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
12018         (TARGET_ASM_SELECT_SECTION): Remove definition.
12019         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
12021 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
12023         * emit-rtl.c (init_raw_REG): New function.
12024         (gen_raw_REG): Use init_raw_REG.
12025         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
12026         macros.
12027         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
12028         * rtl.h (rtx_init): New function.
12029         (rtx_alloca): New function.
12030         (init_raw_REG): New function.
12031         (alloca_raw_REG): New macro.
12033 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
12035         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
12036         (pcrel_local_address): Replace pcrel_address predicate, use the
12037         new function address_to_insn_form.
12038         (pcrel_external_address): Replace with new implementation using
12039         address_to_insn_form..
12040         (prefixed_mem_operand): Delete predicate which is now unused.
12041         (pcrel_external_mem_operand): Delete predicate which is now
12042         unused.
12043         * config/rs6000/rs6000-protos.h (enum insn_form): New
12044         enumeration.
12045         (enum non_prefixed_form): New enumeration.
12046         (address_to_insn_form): New declaration.
12047         (prefixed_load_p): New declaration.
12048         (prefixed_store_p): New declaration.
12049         (prefixed_paddi_p): New declaration.
12050         (rs6000_asm_output_opcode): New declaration.
12051         (rs6000_final_prescan_insn): Move declaration and update calling
12052         signature.
12053         (address_is_prefixed): New helper inline function.
12054         * config/rs6000/rs6000.c(print_operand_address): Check for either
12055         PC-relative local symbols or PC-relative external symbols.
12056         (rs6000_emit_move): Support loading PC-relative addresses.
12057         (mode_supports_prefixed_address_p): Delete, no longer used.
12058         (rs6000_prefixed_address_mode_p): Delete, no longer used.
12059         (address_to_insn_form): New function to decode an address format.
12060         (reg_to_non_prefixed): New function to identify what the
12061         non-prefixed memory instruction format is for a register.
12062         (prefixed_load_p): New function to identify prefixed loads.
12063         (prefixed_store_p): New function to identify prefixed stores.
12064         (prefixed_paddi_p): New function to identify prefixed load
12065         immediates.
12066         (next_insn_prefixed_p): New static state variable.
12067         (rs6000_final_prescan_insn): New function to determine if an insn
12068         uses a prefixed instruction.
12069         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
12070         prefixed instruction.
12071         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
12072         (ASM_OUTPUT_OPCODE): New target hook.
12073         * config/rs6000/rs6000.md (prefixed): New insn attribute for
12074         prefixed instructions.
12075         (prefixed_length): New insn attribute for the size of prefixed
12076         instructions.
12077         (non_prefixed_length): New insn attribute for the size of
12078         non-prefixed instructions.
12079         (pcrel_local_addr): New insn to load up a local PC-relative
12080         address.
12081         (pcrel_extern_addr): New insn to load up an external PC-relative
12082         address.
12083         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
12084         GPR and loading a 128-bit floating point type to a GPR.
12086 2019-09-30  Richard Biener  <rguenther@suse.de>
12088         * gimple.c (gimple_get_lhs): For PHIs return the result.
12089         * tree-vectorizer.h (vectorizable_live_operation): Also get the
12090         SLP instance as argument.
12091         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
12092         double-reduction PHIs with vectorizable_lc_phi.
12093         (vect_analyze_loop_operations): Adjust.
12094         (vect_create_epilog_for_reduction): Remove all code not dealing
12095         with reduction LC PHI or epilogue generation.
12096         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
12097         for live stmts of reductions.
12098         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
12099         do not handle defs that are not vect_internal_def.
12100         (can_vectorize_live_stmts): Adjust.
12101         (vect_analyze_stmt): When the vectorized stmt defined a value
12102         used on backedges adjust the backedge uses of vectorized PHIs.
12104 2019-09-30  Martin Jambor  <mjambor@suse.cz>
12106         PR ipa/91853
12107         * tree-inline.c (force_value_to_type): New function.
12108         (setup_one_parameter): Use force_value_to_type to convert type.
12109         * tree-inline.c (force_value_to_type): Declare.
12110         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
12111         with register type mismatches.
12113 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
12115         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
12116         32-bit PowerPC.
12117         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
12118         * config/rs6000/t-freebsd64: Make use of the above define and build
12119         the 32-bit libraries with secure-plt.
12121 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
12123         PR target/91931
12124         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
12125         gen_int_mode instead of GEN_INT.
12127 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
12129         * config/darwin.c (gen_macho_low): Amend to include the mode
12130         argument.
12131         (machopic_indirect_data_reference): Amend gen_macho_low call
12132         to include mode argument
12133         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
12134         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
12135         the macho_high expander and two define_insn entries.
12137 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
12139         PR bootstrap/90543
12140         * optc-save-gen.awk: Fix up printing string option differences.
12142 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12144         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
12145         vec_perm cost to 1 for non-Power7 VSX architectures.
12147 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12149         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
12150         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
12151         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
12153 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
12155         * config/darwin.c (gen_macho_high): Amend to include the mode
12156         argument.
12157         (machopic_indirect_data_reference): Amend gen_macho_high call
12158         to include mode argument.
12159         (machopic_legitimize_pic_address): Likewise.
12160         * config/rs6000/rs6000.c (rs6000_legitimize_address):
12161         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
12162         the macho_high expander and two define_insn entries.
12164 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12166         PR target/86805
12167         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12169 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12171         PR target/80672
12172         * config/sh/sh.c (parse_validate_atomic_model_option): Use
12173         std::string::compare instead of std::string::find.
12175 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
12177         * configure: Regenerate.
12179 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12181         PR middle-end/91920
12182         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
12183         variables as shared.
12185 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
12187         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
12188         replaces the expander and two define_insn entries.
12189         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
12190         call.
12191         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
12193 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12195         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
12196         (fibonacci_heap::nodes): Likewise.
12197         (fibonacci_heap::min_key): Likewise.
12198         (fibonacci_heap::min): Likewise.
12200 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12202         * cgraph.c (cgraph_node::get_fun): Make const.
12203         * cgraph.h (cgraph_node::get_fun): Likewise.
12205 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12207         PR target/91919
12208         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
12209         of SImode MULT.
12211 2019-09-27  Richard Biener  <rguenther@suse.de>
12213         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
12214         (STMT_VINFO_REDUC_FN): Likewise.
12215         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12216         STMT_VINFO_REDUC_FN.
12217         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
12218         for condition reductions.
12219         (vect_create_epilog_for_reduction): Compute all required state
12220         from the stmt to be vectorized.
12221         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
12222         invocation and remove then dead code.  For single def-use chains
12223         record only a single vector stmt.
12225 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12227         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
12228         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
12229         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
12230         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
12231         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
12232         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
12233         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
12234         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
12235         (aarch64_general_builtin_rsqrt): Declare.
12236         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
12237         New function.
12238         (aarch64_mangle_builtin_type): Rename to...
12239         (aarch64_general_mangle_builtin_type): ...this.
12240         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
12241         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
12242         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
12243         aarch64_general_add_builtin instead of add_builtin_function.
12244         (aarch64_init_builtins): Rename to...
12245         (aarch64_general_init_builtins): ...this.  Use
12246         aarch64_general_add_builtin instead of add_builtin_function.
12247         (aarch64_builtin_decl): Rename to...
12248         (aarch64_general_builtin_decl): ...this and remove the unused
12249         arguments.
12250         (aarch64_expand_builtin): Rename to...
12251         (aarch64_general_expand_builtin): ...this and remove the unused
12252         arguments.
12253         (aarch64_builtin_rsqrt): Rename to...
12254         (aarch64_general_builtin_rsqrt): ...this.
12255         (aarch64_fold_builtin): Rename to...
12256         (aarch64_general_fold_builtin): ...this.  Take the function subcode
12257         and return type as arguments.  Remove the "ignored" argument.
12258         (aarch64_gimple_fold_builtin): Rename to...
12259         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
12260         subcode and gcall as arguments, and return the new function call.
12261         * config/aarch64/aarch64.c (aarch64_init_builtins)
12262         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
12263         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
12264         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
12265         instead of aarch64_builtin_rsqrt.
12266         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
12267         instead of aarch64_mangle_builtin_type.
12269 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12271         * target.def (check_builtin_call): New target hook.
12272         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
12273         * doc/tm.texi: Regenerate.
12275 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12277         PR tree-optimization/91909
12278         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
12279         reduc_index parameter.  When handling COND_REDUCTION, make sure
12280         that the reduction phi operand is in the correct arm of the
12281         VEC_COND_EXPR.
12282         (vectorizable_reduction): Pass reduc_index to the above.
12284 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
12286         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12287         New combine pattern.
12289 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
12291         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12292         loop instruction into new basic block before the loop when basic
12293         block that precedes the loop is empty.
12295 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
12297         * function.c (gimplify_parameters): Use build_clobber function.
12298         * tree-ssa.c (execute_update_addresses_taken): Likewise.
12299         * tree-inline.c (expand_call_inline): Likewise.
12300         * tree-sra.c (clobber_subtree): Likewise.
12301         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12302         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12303         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12304         lower_omp_target): Likewise.
12305         * omp-expand.c (expand_omp_for_generic): Likewise.
12306         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12308 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
12310         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12311         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12312         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12313         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12314         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12315         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12316         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12317         LD_ELEMREV_V16QI): Use the PURE attribute.
12319 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
12321         * config/rs6000/darwin.md: Replace the expanders for
12322         load_macho_picbase and reload_macho_picbase with use of '@'
12323         and <mode> in their respective define_insns.
12324         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12325         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12326         Pmode to gen_load_macho_picbase.
12327         * config/rs6000/rs6000.md: Likewise.
12329 2019-09-25  Richard Biener  <rguenther@suse.de>
12331         PR tree-optimization/91896
12332         * tree-vect-loop.c (vectorizable_reduction): The single
12333         def-use cycle optimization cannot apply when there's more
12334         than one pattern stmt involved.
12336 2019-09-26  Richard Biener  <rguenther@suse.de>
12338         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12339         loop-closed PHIs that are vect_internal_def.
12340         (vect_create_epilog_for_reduction): Exit early for nested cycles.
12341         Simplify.
12342         (vectorizable_lc_phi): New.
12343         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12344         (vect_transform_stmt): Likewise.
12345         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12346         (vectorizable_lc_phi): Declare.
12348 2019-09-26  Richard Biener  <rguenther@suse.de>
12350         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12351         vectorizable_reduction for vect_double_reduction_def.
12352         (vect_transform_loop): Likewise.
12353         (vect_create_epilog_for_reduction): Move double-reduction
12354         PHI creation and preheader argument setting of PHIs ...
12355         (vectorizable_reduction): ... here.  Also process
12356         vect_double_reduction_def PHIs, creating the vectorized
12357         PHI nodes, remembering the scalar adjustment computed for
12358         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12359         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12360         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12361         Initialize STMT_VINFO_REDUC_CODE.
12362         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12363         (_stmt_vec_info::reduc_code): Likewise.
12364         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12365         (STMT_VINFO_REDUC_CODE): Likewise.
12367 2019-09-26  Matt Turner  <mattst88@gmail.com>
12369         PR driver/69471
12370         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12371         (mtune=): Add Negative(mtune=).
12372         (mcpu=): Add Negative(mcpu=).
12373         * config/arm/arm.opt: Likewise.
12375 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12377         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12378         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12379         Define.
12380         * config/arm/arm_acle.h: Define builtins for the above.
12381         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12382         (simd32_op): Handle the above.
12383         * config/arm/unspecs.md: Define unspecs for the above.
12385 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12387         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12388         (arm_<sup>xtb16): Likewise.
12389         (arm_usada8): Likewise.
12390         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12391         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12392         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12393         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12394         __sxtb16, __uxtab16, __uxtb16): Define.
12395         * config/arm/arm_acle_builtins.def: Define builtins for the above.
12396         * config/arm/unspecs.md: Define unspecs for the above.
12397         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12398         (USXTB16): Likewise.
12399         (simd32_op): New int_attribute.
12400         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12401         * doc/sourcebuild.exp (arm_simd32_ok): Document.
12403 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12405         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12406         internal_error.
12408 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12410         * ipa-sra.c (process_scan_results): Fix continue condition.
12412 2019-09-26  Martin Liska  <mliska@suse.cz>
12414         PR tree-optimization/91885
12415         * tree-vectorizer.c (try_vectorize_loop_1): Add
12416         TODO_update_ssa_only_virtuals similarly to what slp pass does.
12418 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
12420         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12421         aarch64_plus_immediate rather than aarch64_uimm12_shift
12422         to test for valid PLUS immediates.
12424 2019-09-25  Martin Jambor  <mjambor@suse.cz>
12426         * tree-sra.c (no_accesses_p): Remove.
12427         (no_accesses_representant): Likewise.
12429 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12431         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12432         consistenly.
12433         (vaba_s16): Likewise.
12434         (vaba_s32): Likewise.
12435         (vaba_u8): Likewise.
12436         (vaba_u16): Likewise.
12437         (vaba_u32): Likewise.
12438         (vabal_high_s8): Likewise.
12439         (vabal_high_s16): Likewise.
12440         (vabal_high_s32): Likewise.
12441         (vabal_high_u8): Likewise.
12442         (vabal_high_u16): Likewise.
12443         (vabal_high_u32): Likewise.
12444         (vabal_s8): Likewise.
12445         (vabal_s16): Likewise.
12446         (vabal_s32): Likewise.
12447         (vabal_u8): Likewise.
12448         (vabal_u16): Likewise.
12449         (vabal_u32): Likewise.
12450         (vabaq_s8): Likewise.
12451         (vabaq_s16): Likewise.
12452         (vabaq_s32): Likewise.
12453         (vabaq_u8): Likewise.
12454         (vabaq_u16): Likewise.
12455         (vabaq_u32): Likewise.
12456         (vabd_s8): Likewise.
12457         (vabd_s16): Likewise.
12458         (vabd_s32): Likewise.
12459         (vabd_u8): Likewise.
12460         (vabd_u16): Likewise.
12461         (vabd_u32): Likewise.
12462         (vabdl_high_s8): Likewise.
12463         (vabdl_high_s16): Likewise.
12464         (vabdl_high_s32): Likewise.
12465         (vabdl_high_u8): Likewise.
12466         (vabdl_high_u16): Likewise.
12467         (vabdl_high_u32): Likewise.
12468         (vabdl_s8): Likewise.
12469         (vabdl_s16): Likewise.
12470         (vabdl_s32): Likewise.
12471         (vabdl_u8): Likewise.
12472         (vabdl_u16): Likewise.
12473         (vabdl_u32): Likewise.
12474         (vabdq_s8): Likewise.
12475         (vabdq_s16): Likewise.
12476         (vabdq_s32): Likewise.
12477         (vabdq_u8): Likewise.
12478         (vabdq_u16): Likewise.
12479         (vabdq_u32): Likewise.
12480         (vaddlv_s8): Likewise.
12481         (vaddlv_s16): Likewise.
12482         (vaddlv_u8): Likewise.
12483         (vaddlv_u16): Likewise.
12484         (vaddlvq_s8): Likewise.
12485         (vaddlvq_s16): Likewise.
12486         (vaddlvq_s32): Likewise.
12487         (vaddlvq_u8): Likewise.
12488         (vaddlvq_u16): Likewise.
12489         (vaddlvq_u32): Likewise.
12490         (vcvtx_f32_f64): Likewise.
12491         (vcvtx_high_f32_f64): Likewise.
12492         (vcvtxd_f32_f64): Likewise.
12493         (vmla_n_f32): Likewise.
12494         (vmla_n_s16): Likewise.
12495         (vmla_n_s32): Likewise.
12496         (vmla_n_u16): Likewise.
12497         (vmla_n_u32): Likewise.
12498         (vmla_s8): Likewise.
12499         (vmla_s16): Likewise.
12500         (vmla_s32): Likewise.
12501         (vmla_u8): Likewise.
12502         (vmla_u16): Likewise.
12503         (vmla_u32): Likewise.
12504         (vmlal_high_n_s16): Likewise.
12505         (vmlal_high_n_s32): Likewise.
12506         (vmlal_high_n_u16): Likewise.
12507         (vmlal_high_n_u32): Likewise.
12508         (vmlal_high_s8): Likewise.
12509         (vmlal_high_s16): Likewise.
12510         (vmlal_high_s32): Likewise.
12511         (vmlal_high_u8): Likewise.
12512         (vmlal_high_u16): Likewise.
12513         (vmlal_high_u32): Likewise.
12514         (vmlal_n_s16): Likewise.
12515         (vmlal_n_s32): Likewise.
12516         (vmlal_n_u16): Likewise.
12517         (vmlal_n_u32): Likewise.
12518         (vmlal_s8): Likewise.
12519         (vmlal_s16): Likewise.
12520         (vmlal_s32): Likewise.
12521         (vmlal_u8): Likewise.
12522         (vmlal_u16): Likewise.
12523         (vmlal_u32): Likewise.
12524         (vmlaq_n_f32): Likewise.
12525         (vmlaq_n_s16): Likewise.
12526         (vmlaq_n_s32): Likewise.
12527         (vmlaq_n_u16): Likewise.
12528         (vmlaq_n_u32): Likewise.
12529         (vmlaq_s8): Likewise.
12530         (vmlaq_s16): Likewise.
12531         (vmlaq_s32): Likewise.
12532         (vmlaq_u8): Likewise.
12533         (vmlaq_u16): Likewise.
12534         (vmlaq_u32): Likewise.
12535         (vmls_n_f32): Likewise.
12536         (vmls_n_s16): Likewise.
12537         (vmls_n_s32): Likewise.
12538         (vmls_n_u16): Likewise.
12539         (vmls_n_u32): Likewise.
12540         (vmls_s8): Likewise.
12541         (vmls_s16): Likewise.
12542         (vmls_s32): Likewise.
12543         (vmls_u8): Likewise.
12544         (vmls_u16): Likewise.
12545         (vmls_u32): Likewise.
12546         (vmlsl_high_n_s16): Likewise.
12547         (vmlsl_high_n_s32): Likewise.
12548         (vmlsl_high_n_u16): Likewise.
12549         (vmlsl_high_n_u32): Likewise.
12550         (vmlsl_high_s8): Likewise.
12551         (vmlsl_high_s16): Likewise.
12552         (vmlsl_high_s32): Likewise.
12553         (vmlsl_high_u8): Likewise.
12554         (vmlsl_high_u16): Likewise.
12555         (vmlsl_high_u32): Likewise.
12556         (vmlsl_n_s16): Likewise.
12557         (vmlsl_n_s32): Likewise.
12558         (vmlsl_n_u16): Likewise.
12559         (vmlsl_n_u32): Likewise.
12560         (vmlsl_s8): Likewise.
12561         (vmlsl_s16): Likewise.
12562         (vmlsl_s32): Likewise.
12563         (vmlsl_u8): Likewise.
12564         (vmlsl_u16): Likewise.
12565         (vmlsl_u32): Likewise.
12566         (vmlsq_n_f32): Likewise.
12567         (vmlsq_n_s16): Likewise.
12568         (vmlsq_n_s32): Likewise.
12569         (vmlsq_n_u16): Likewise.
12570         (vmlsq_n_u32): Likewise.
12571         (vmlsq_s8): Likewise.
12572         (vmlsq_s16): Likewise.
12573         (vmlsq_s32): Likewise.
12574         (vmlsq_u8): Likewise.
12575         (vmlsq_u16): Likewise.
12576         (vmlsq_u32): Likewise.
12577         (vmovl_high_s8): Likewise.
12578         (vmovl_high_s16): Likewise.
12579         (vmovl_high_s32): Likewise.
12580         (vmovl_high_u8): Likewise.
12581         (vmovl_high_u16): Likewise.
12582         (vmovl_high_u32): Likewise.
12583         (vmovl_s8): Likewise.
12584         (vmovl_s16): Likewise.
12585         (vmovl_s32): Likewise.
12586         (vmovl_u8): Likewise.
12587         (vmovl_u16): Likewise.
12588         (vmovl_u32): Likewise.
12589         (vmovn_high_s16): Likewise.
12590         (vmovn_high_s32): Likewise.
12591         (vmovn_high_s64): Likewise.
12592         (vmovn_high_u16): Likewise.
12593         (vmovn_high_u32): Likewise.
12594         (vmovn_high_u64): Likewise.
12595         (vmovn_s16): Likewise.
12596         (vmovn_s32): Likewise.
12597         (vmovn_s64): Likewise.
12598         (vmovn_u16): Likewise.
12599         (vmovn_u32): Likewise.
12600         (vmovn_u64): Likewise.
12601         (vmull_high_n_s16): Likewise.
12602         (vmull_high_n_s32): Likewise.
12603         (vmull_high_n_u16): Likewise.
12604         (vmull_high_n_u32): Likewise.
12605         (vmull_high_p8): Likewise.
12606         (vmull_high_s8): Likewise.
12607         (vmull_high_s16): Likewise.
12608         (vmull_high_s32): Likewise.
12609         (vmull_high_u8): Likewise.
12610         (vmull_high_u16): Likewise.
12611         (vmull_high_u32): Likewise.
12612         (vmull_n_s16): Likewise.
12613         (vmull_n_s32): Likewise.
12614         (vmull_n_u16): Likewise.
12615         (vmull_n_u32): Likewise.
12616         (vmull_p8): Likewise.
12617         (vmull_s8): Likewise.
12618         (vmull_s16): Likewise.
12619         (vmull_s32): Likewise.
12620         (vmull_u8): Likewise.
12621         (vmull_u16): Likewise.
12622         (vmull_u32): Likewise.
12623         (vpadal_s8): Likewise.
12624         (vpadal_s16): Likewise.
12625         (vpadal_s32): Likewise.
12626         (vpadal_u8): Likewise.
12627         (vpadal_u16): Likewise.
12628         (vpadal_u32): Likewise.
12629         (vpadalq_s8): Likewise.
12630         (vpadalq_s16): Likewise.
12631         (vpadalq_s32): Likewise.
12632         (vpadalq_u8): Likewise.
12633         (vpadalq_u16): Likewise.
12634         (vpadalq_u32): Likewise.
12635         (vpaddl_s8): Likewise.
12636         (vpaddl_s16): Likewise.
12637         (vpaddl_s32): Likewise.
12638         (vpaddl_u8): Likewise.
12639         (vpaddl_u16): Likewise.
12640         (vpaddl_u32): Likewise.
12641         (vpaddlq_s8): Likewise.
12642         (vpaddlq_s16): Likewise.
12643         (vpaddlq_s32): Likewise.
12644         (vpaddlq_u8): Likewise.
12645         (vpaddlq_u16): Likewise.
12646         (vpaddlq_u32): Likewise.
12647         (vpaddq_s8): Likewise.
12648         (vpaddq_s16): Likewise.
12649         (vpaddq_s32): Likewise.
12650         (vpaddq_s64): Likewise.
12651         (vpaddq_u8): Likewise.
12652         (vpaddq_u16): Likewise.
12653         (vpaddq_u32): Likewise.
12654         (vpaddq_u64): Likewise.
12655         (vqdmulh_n_s16): Likewise.
12656         (vqdmulh_n_s32): Likewise.
12657         (vqdmulhq_n_s16): Likewise.
12658         (vqdmulhq_n_s32): Likewise.
12659         (vqmovn_high_s16): Likewise.
12660         (vqmovn_high_s32): Likewise.
12661         (vqmovn_high_s64): Likewise.
12662         (vqmovn_high_u16): Likewise.
12663         (vqmovn_high_u32): Likewise.
12664         (vqmovn_high_u64): Likewise.
12665         (vqmovun_high_s16): Likewise.
12666         (vqmovun_high_s32): Likewise.
12667         (vqmovun_high_s64): Likewise.
12668         (vqrdmulh_n_s16): Likewise.
12669         (vqrdmulh_n_s32): Likewise.
12670         (vqrdmulhq_n_s16): Likewise.
12671         (vqrdmulhq_n_s32): Likewise.
12672         (vrsqrte_u32): Likewise.
12673         (vrsqrteq_u32): Likewise.
12674         (vtst_p8): Likewise.
12675         (vtst_p16): Likewise.
12676         (vtst_p64): Likewise.
12677         (vtstq_p8): Likewise.
12678         (vtstq_p16): Likewise.
12679         (vtstq_p64): Likewise.
12680         (vaddlv_s32): Likewise.
12681         (vaddlv_u32): Likewise.
12682         (vqtbl1_p8): Likewise.
12683         (vqtbl1_s8): Likewise.
12684         (vqtbl1_u8): Likewise.
12685         (vqtbl1q_p8): Likewise.
12686         (vqtbl1q_s8): Likewise.
12687         (vqtbl1q_u8): Likewise.
12688         (vqtbx1_s8): Likewise.
12689         (vqtbx1_u8): Likewise.
12690         (vqtbx1_p8): Likewise.
12691         (vqtbx1q_s8): Likewise.
12692         (vqtbx1q_u8): Likewise.
12693         (vqtbx1q_p8): Likewise.
12694         (vtbl1_s8): Likewise.
12695         (vtbl1_u8): Likewise.
12696         (vtbl1_p8): Likewise.
12697         (vtbl2_s8): Likewise.
12698         (vtbl2_u8): Likewise.
12699         (vtbl2_p8): Likewise.
12700         (vtbl3_s8): Likewise.
12701         (vtbl3_u8): Likewise.
12702         (vtbl3_p8): Likewise.
12703         (vtbl4_s8): Likewise.
12704         (vtbl4_u8): Likewise.
12705         (vtbl4_p8): Likewise.
12706         (vtbx2_s8): Likewise.
12707         (vtbx2_u8): Likewise.
12708         (vtbx2_p8): Likewise.
12709         (vld1_f32): Likewise.
12710         (vld1_f64): Likewise.
12711         (vld1_p8): Likewise.
12712         (vld1_p16): Likewise.
12713         (vld1_p64): Likewise.
12714         (vld1_s8): Likewise.
12715         (vld1_s16): Likewise.
12716         (vld1_s32): Likewise.
12717         (vld1_s64): Likewise.
12718         (vld1_u8): Likewise.
12719         (vld1_u16): Likewise.
12720         (vld1_u32): Likewise.
12721         (vld1_u64): Likewise.
12722         (vld1q_f32): Likewise.
12723         (vld1q_f64): Likewise.
12724         (vld1q_p8): Likewise.
12725         (vld1q_p16): Likewise.
12726         (vld1q_p64): Likewise.
12727         (vld1q_s8): Likewise.
12728         (vld1q_s16): Likewise.
12729         (vld1q_s32): Likewise.
12730         (vld1q_s64): Likewise.
12731         (vld1q_u8): Likewise.
12732         (vld1q_u16): Likewise.
12733         (vld1q_u32): Likewise.
12734         (vld1q_u64): Likewise.
12735         (vpmax_s8): Likewise.
12736         (vpmax_s16): Likewise.
12737         (vpmax_s32): Likewise.
12738         (vpmax_u8): Likewise.
12739         (vpmax_u16): Likewise.
12740         (vpmax_u32): Likewise.
12741         (vpmaxq_s8): Likewise.
12742         (vpmaxq_s16): Likewise.
12743         (vpmaxq_s32): Likewise.
12744         (vpmaxq_u8): Likewise.
12745         (vpmaxq_u16): Likewise.
12746         (vpmaxq_u32): Likewise.
12747         (vpmax_f32): Likewise.
12748         (vpmaxq_f32): Likewise.
12749         (vpmaxq_f64): Likewise.
12750         (vpmaxqd_f64): Likewise.
12751         (vpmaxs_f32): Likewise.
12752         (vpmaxnm_f32): Likewise.
12753         (vpmaxnmq_f32): Likewise.
12754         (vpmaxnmq_f64): Likewise.
12755         (vpmaxnmqd_f64): Likewise.
12756         (vpmaxnms_f32): Likewise.
12757         (vpmin_s8): Likewise.
12758         (vpmin_s16): Likewise.
12759         (vpmin_s32): Likewise.
12760         (vpmin_u8): Likewise.
12761         (vpmin_u16): Likewise.
12762         (vpmin_u32): Likewise.
12763         (vpminq_s8): Likewise.
12764         (vpminq_s16): Likewise.
12765         (vpminq_s32): Likewise.
12766         (vpminq_u8): Likewise.
12767         (vpminq_u16): Likewise.
12768         (vpminq_u32): Likewise.
12769         (vpmin_f32): Likewise.
12770         (vpminq_f32): Likewise.
12771         (vpminq_f64): Likewise.
12772         (vpminqd_f64): Likewise.
12773         (vpmins_f32): Likewise.
12774         (vpminnm_f32): Likewise.
12775         (vpminnmq_f32): Likewise.
12776         (vpminnmq_f64): Likewise.
12777         (vpminnmqd_f64): Likewise.
12778         (vpminnms_f32): Likewise.
12779         (vmla_f32): Likewise.
12780         (vmlaq_f32): Likewise.
12781         (vmlaq_f64): Likewise.
12782         (vmls_f32): Likewise.
12783         (vmlsq_f32): Likewise.
12784         (vmlsq_f64): Likewise.
12785         (vqtbl2_s8): Likewise.
12786         (vqtbl2_u8): Likewise.
12787         (vqtbl2_p8): Likewise.
12788         (vqtbl2q_s8): Likewise.
12789         (vqtbl2q_u8): Likewise.
12790         (vqtbl2q_p8): Likewise.
12791         (vqtbl3_s8): Likewise.
12792         (vqtbl3_u8): Likewise.
12793         (vqtbl3_p8): Likewise.
12794         (vqtbl3q_s8): Likewise.
12795         (vqtbl3q_u8): Likewise.
12796         (vqtbl3q_p8): Likewise.
12797         (vqtbl4_s8): Likewise.
12798         (vqtbl4_u8): Likewise.
12799         (vqtbl4_p8): Likewise.
12800         (vqtbl4q_s8): Likewise.
12801         (vqtbl4q_u8): Likewise.
12802         (vqtbl4q_p8): Likewise.
12803         (vqtbx2_s8): Likewise.
12804         (vqtbx2_u8): Likewise.
12805         (vqtbx2_p8): Likewise.
12806         (vqtbx2q_s8): Likewise.
12807         (vqtbx2q_u8): Likewise.
12808         (vqtbx2q_p8): Likewise.
12809         (vqtbx3_s8): Likewise.
12810         (vqtbx3_u8): Likewise.
12811         (vqtbx3_p8): Likewise.
12812         (vqtbx3q_s8): Likewise.
12813         (vqtbx3q_u8): Likewise.
12814         (vqtbx3q_p8): Likewise.
12815         (vqtbx4_s8): Likewise.
12816         (vqtbx4_u8): Likewise.
12817         (vqtbx4_p8): Likewise.
12818         (vqtbx4q_s8): Likewise.
12819         (vqtbx4q_u8): Likewise.
12820         (vqtbx4q_p8): Likewise.
12821         (vrev16_p8): Likewise.
12822         (vrev16_s8): Likewise.
12823         (vrev16_u8): Likewise.
12824         (vrev16q_p8): Likewise.
12825         (vrev16q_s8): Likewise.
12826         (vrev16q_u8): Likewise.
12827         (vrev32_p8): Likewise.
12828         (vrev32_p16): Likewise.
12829         (vrev32_s8): Likewise.
12830         (vrev32_s16): Likewise.
12831         (vrev32_u8): Likewise.
12832         (vrev32_u16): Likewise.
12833         (vrev32q_p8): Likewise.
12834         (vrev32q_p16): Likewise.
12835         (vrev32q_s8): Likewise.
12836         (vrev32q_s16): Likewise.
12837         (vrev32q_u8): Likewise.
12838         (vrev32q_u16): Likewise.
12839         (vrev64_f32): Likewise.
12840         (vrev64_p8): Likewise.
12841         (vrev64_p16): Likewise.
12842         (vrev64_s8): Likewise.
12843         (vrev64_s16): Likewise.
12844         (vrev64_s32): Likewise.
12845         (vrev64_u8): Likewise.
12846         (vrev64_u16): Likewise.
12847         (vrev64_u32): Likewise.
12848         (vrev64q_f32): Likewise.
12849         (vrev64q_p8): Likewise.
12850         (vrev64q_p16): Likewise.
12851         (vrev64q_s8): Likewise.
12852         (vrev64q_s16): Likewise.
12853         (vrev64q_s32): Likewise.
12854         (vrev64q_u8): Likewise.
12855         (vrev64q_u16): Likewise.
12856         (vrev64q_u32): Likewise.
12857         (vsha1cq_u32): Likewise.
12858         (vsha1mq_u32): Likewise.
12859         (vsha1pq_u32): Likewise.
12860         (vsha1h_u32): Likewise.
12861         (vsha1su0q_u32): Likewise.
12862         (vsha1su1q_u32): Likewise.
12863         (vsha256hq_u32): Likewise.
12864         (vsha256h2q_u32): Likewise.
12865         (vsha256su0q_u32): Likewise.
12866         (vsha256su1q_u32): Likewise.
12867         (vmull_p64): Likewise.
12868         (vmull_high_p64): Likewise.
12869         (vsqrt_f32): Likewise.
12870         (vsqrtq_f32): Likewise.
12871         (vsqrt_f64): Likewise.
12872         (vsqrtq_f64): Likewise.
12873         (vst1_f32): Likewise.
12874         (vst1_f64): Likewise.
12875         (vst1_p8): Likewise.
12876         (vst1_p16): Likewise.
12877         (vst1_p64): Likewise.
12878         (vst1_s8): Likewise.
12879         (vst1_s16): Likewise.
12880         (vst1_s32): Likewise.
12881         (vst1_s64): Likewise.
12882         (vst1_u8): Likewise.
12883         (vst1_u16): Likewise.
12884         (vst1_u32): Likewise.
12885         (vst1_u64): Likewise.
12886         (vst1q_f32): Likewise.
12887         (vst1q_f64): Likewise.
12888         (vst1q_p8): Likewise.
12889         (vst1q_p16): Likewise.
12890         (vst1q_p64): Likewise.
12891         (vst1q_s8): Likewise.
12892         (vst1q_s16): Likewise.
12893         (vst1q_s32): Likewise.
12894         (vst1q_s64): Likewise.
12895         (vst1q_u8): Likewise.
12896         (vst1q_u16): Likewise.
12897         (vst1q_u32): Likewise.
12898         (vst1q_u64): Likewise.
12899         (vst1_s64_x2): Likewise.
12900         (vst1_u64_x2): Likewise.
12901         (vst1_f64_x2): Likewise.
12902         (vst1_s8_x2): Likewise.
12903         (vst1_p8_x2): Likewise.
12904         (vst1_s16_x2): Likewise.
12905         (vst1_p16_x2): Likewise.
12906         (vst1_s32_x2): Likewise.
12907         (vst1_u8_x2): Likewise.
12908         (vst1_u16_x2): Likewise.
12909         (vst1_u32_x2): Likewise.
12910         (vst1_f16_x2): Likewise.
12911         (vst1_f32_x2): Likewise.
12912         (vst1_p64_x2): Likewise.
12913         (vst1q_s8_x2): Likewise.
12914         (vst1q_p8_x2): Likewise.
12915         (vst1q_s16_x2): Likewise.
12916         (vst1q_p16_x2): Likewise.
12917         (vst1q_s32_x2): Likewise.
12918         (vst1q_s64_x2): Likewise.
12919         (vst1q_u8_x2): Likewise.
12920         (vst1q_u16_x2): Likewise.
12921         (vst1q_u32_x2): Likewise.
12922         (vst1q_u64_x2): Likewise.
12923         (vst1q_f16_x2): Likewise.
12924         (vst1q_f32_x2): Likewise.
12925         (vst1q_f64_x2): Likewise.
12926         (vst1q_p64_x2): Likewise.
12927         (vst1_s64_x3): Likewise.
12928         (vst1_u64_x3): Likewise.
12929         (vst1_f64_x3): Likewise.
12930         (vst1_s8_x3): Likewise.
12931         (vst1_p8_x3): Likewise.
12932         (vst1_s16_x3): Likewise.
12933         (vst1_p16_x3): Likewise.
12934         (vst1_s32_x3): Likewise.
12935         (vst1_u8_x3): Likewise.
12936         (vst1_u16_x3): Likewise.
12937         (vst1_u32_x3): Likewise.
12938         (vst1_f16_x3): Likewise.
12939         (vst1_f32_x3): Likewise.
12940         (vst1_p64_x3): Likewise.
12941         (vst1q_s8_x3): Likewise.
12942         (vst1q_p8_x3): Likewise.
12943         (vst1q_s16_x3): Likewise.
12944         (vst1q_p16_x3): Likewise.
12945         (vst1q_s32_x3): Likewise.
12946         (vst1q_s64_x3): Likewise.
12947         (vst1q_u8_x3): Likewise.
12948         (vst1q_u16_x3): Likewise.
12949         (vst1q_u32_x3): Likewise.
12950         (vst1q_u64_x3): Likewise.
12951         (vst1q_f16_x3): Likewise.
12952         (vst1q_f32_x3): Likewise.
12953         (vst1q_f64_x3): Likewise.
12954         (vst1q_p64_x3): Likewise.
12955         (vst2_s64): Likewise.
12956         (vst2_u64): Likewise.
12957         (vst2_f64): Likewise.
12958         (vst2_s8): Likewise.
12959         (vst2_p8): Likewise.
12960         (vst2_s16): Likewise.
12961         (vst2_p16): Likewise.
12962         (vst2_s32): Likewise.
12963         (vst2_u8): Likewise.
12964         (vst2_u16): Likewise.
12965         (vst2_u32): Likewise.
12966         (vst2_f16): Likewise.
12967         (vst2_f32): Likewise.
12968         (vst2_p64): Likewise.
12969         (vst2q_s8): Likewise.
12970         (vst2q_p8): Likewise.
12971         (vst2q_s16): Likewise.
12972         (vst2q_p16): Likewise.
12973         (vst2q_s32): Likewise.
12974         (vst2q_s64): Likewise.
12975         (vst2q_u8): Likewise.
12976         (vst2q_u16): Likewise.
12977         (vst2q_u32): Likewise.
12978         (vst2q_u64): Likewise.
12979         (vst2q_f16): Likewise.
12980         (vst2q_f32): Likewise.
12981         (vst2q_f64): Likewise.
12982         (vst2q_p64): Likewise.
12983         (vst3_s64): Likewise.
12984         (vst3_u64): Likewise.
12985         (vst3_f64): Likewise.
12986         (vst3_s8): Likewise.
12987         (vst3_p8): Likewise.
12988         (vst3_s16): Likewise.
12989         (vst3_p16): Likewise.
12990         (vst3_s32): Likewise.
12991         (vst3_u8): Likewise.
12992         (vst3_u16): Likewise.
12993         (vst3_u32): Likewise.
12994         (vst3_f16): Likewise.
12995         (vst3_f32): Likewise.
12996         (vst3_p64): Likewise.
12997         (vst3q_s8): Likewise.
12998         (vst3q_p8): Likewise.
12999         (vst3q_s16): Likewise.
13000         (vst3q_p16): Likewise.
13001         (vst3q_s32): Likewise.
13002         (vst3q_s64): Likewise.
13003         (vst3q_u8): Likewise.
13004         (vst3q_u16): Likewise.
13005         (vst3q_u32): Likewise.
13006         (vst3q_u64): Likewise.
13007         (vst3q_f16): Likewise.
13008         (vst3q_f32): Likewise.
13009         (vst3q_f64): Likewise.
13010         (vst3q_p64): Likewise.
13011         (vst4_s64): Likewise.
13012         (vst4_u64): Likewise.
13013         (vst4_f64): Likewise.
13014         (vst4_s8): Likewise.
13015         (vst4_p8): Likewise.
13016         (vst4_s16): Likewise.
13017         (vst4_p16): Likewise.
13018         (vst4_s32): Likewise.
13019         (vst4_u8): Likewise.
13020         (vst4_u16): Likewise.
13021         (vst4_u32): Likewise.
13022         (vst4_f16): Likewise.
13023         (vst4_f32): Likewise.
13024         (vst4_p64): Likewise.
13025         (vst4q_s8): Likewise.
13026         (vst4q_p8): Likewise.
13027         (vst4q_s16): Likewise.
13028         (vst4q_p16): Likewise.
13029         (vst4q_s32): Likewise.
13030         (vst4q_s64): Likewise.
13031         (vst4q_u8): Likewise.
13032         (vst4q_u16): Likewise.
13033         (vst4q_u32): Likewise.
13034         (vst4q_u64): Likewise.
13035         (vst4q_f16): Likewise.
13036         (vst4q_f32): Likewise.
13037         (vst4q_f64): Likewise.
13038         (vst4q_p64): Likewise.
13039         (vtbx4_s8): Likewise.
13040         (vtbx4_u8): Likewise.
13041         (vtbx4_p8): Likewise.
13042         (vtrn_f32): Likewise.
13043         (vtrn_p8): Likewise.
13044         (vtrn_p16): Likewise.
13045         (vtrn_s8): Likewise.
13046         (vtrn_s16): Likewise.
13047         (vtrn_s32): Likewise.
13048         (vtrn_u8): Likewise.
13049         (vtrn_u16): Likewise.
13050         (vtrn_u32): Likewise.
13051         (vtrnq_f32): Likewise.
13052         (vtrnq_p8): Likewise.
13053         (vtrnq_p16): Likewise.
13054         (vtrnq_s8): Likewise.
13055         (vtrnq_s16): Likewise.
13056         (vtrnq_s32): Likewise.
13057         (vtrnq_u8): Likewise.
13058         (vtrnq_u16): Likewise.
13059         (vtrnq_u32): Likewise.
13060         (vrsqrte_f16): Likewise.
13061         (vrsqrteq_f16): Likewise.
13062         (vsqrt_f16): Likewise.
13063         (vsqrtq_f16): Likewise.
13064         (vabd_f16): Likewise.
13065         (vabdq_f16): Likewise.
13066         (vpadd_f16): Likewise.
13067         (vpaddq_f16): Likewise.
13068         (vpmax_f16): Likewise.
13069         (vpmaxq_f16): Likewise.
13070         (vpmaxnm_f16): Likewise.
13071         (vpmaxnmq_f16): Likewise.
13072         (vpmin_f16): Likewise.
13073         (vpminq_f16): Likewise.
13074         (vpminnm_f16): Likewise.
13075         (vpminnmq_f16): Likewise.
13076         (vrsqrts_f16): Likewise.
13077         (vrsqrtsq_f16): Likewise.
13079 2019-09-25  Richard Biener  <rguenther@suse.de>
13081         PR tree-optimization/91896
13082         * tree-vect-loop.c (vectorizable_reduction): The single
13083         def-use cycle optimization cannot apply when there's more
13084         than one pattern stmt involved.
13086 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
13088         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
13089         the 'P' mode iterator, replacing the (removed) SI and DI variants.
13090         (reload_macho_picbase_<mode>): Likewise.
13092 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
13094         * config/rs6000/rs6000.md: Move darwin.md include until
13095         after the definition of the mode iterators.
13097 2019-09-23  Martin Sebor  <msebor@redhat.com>
13099         PR tree-optimization/91570
13100         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
13101         non-constant minlen, maxlen and maxbound.
13103 2019-09-24  Richard Biener  <rguenther@suse.de>
13105         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
13106         Rename to...
13107         (_stmt_vec_info::cond_reduc_code): ... this.
13108         (_stmt_vec_info::induc_cond_initial_val): Add.
13109         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
13110         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
13111         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
13112         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
13113         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
13114         the reduction code.
13115         (vect_create_epilog_for_reduction): Drop special
13116         induction condition reduction params, pass in reduction code
13117         and simplify.
13118         (vectorizable_reduction): Perform condition reduction kind
13119         selection only at analysis time.  Adjust passing on state.
13121 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13123         * config/aarch64/aarch64.md (mov<mode>): Don't call
13124         aarch64_split_dimode_const_store on volatile MEM.
13126 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
13128         * config/aarch64/aarch64-option-extensions.def (fp16fml):
13129         Update hwcap string for fp16fml.
13131 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
13133         PR middle-end/91866
13134         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
13135         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
13137 2019-09-24  Martin Liska  <mliska@suse.cz>
13139         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
13140         instead of if-elseif-elseif-...
13141         * gimple-expr.c (extract_ops_from_tree): Likewise.
13142         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13143         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
13145 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13147         PR ipa/91831
13148         * ipa-param-manipulation.c (carry_over_param): Make a method of
13149         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
13150         in case of a context mismatch.
13151         (ipa_param_body_adjustments::common_initialization): Adjust call to
13152         carry_over_param.
13153         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
13154         private method carry_over_param.
13156 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13158         PR ipa/91832
13159         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
13161 2019-09-24  Richard Biener  <rguenther@suse.de>
13163         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
13164         base.
13166 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13168         * config/arm/t-arm (arm-builtins.o): Add dependency on
13169         arm_acle_builtins.def.
13171 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13173         PR target/91823
13174         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
13175         canonical CONST_INTs.  Use gen_rtvec.
13177 2019-09-23  Richard Biener  <rguenther@suse.de>
13179         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
13180         avoid adjusting by + 0 or * 1.
13181         (vect_create_epilog_for_reduction): Get reduction code only
13182         when necessary.  Deal with adjustment_def only when necessary.
13184 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13186         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
13187         memmodel index.
13189 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13191         PR ipa/91835
13192         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
13193         "ipa-sra".
13195 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
13197         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
13198         code.  Merge code blocks with common conditionals. Use declared
13199         macro instead of a magic number for PIC level.
13201 2019-09-21  Martin Sebor  <msebor@redhat.com>
13203         PR middle-end/91830
13204         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
13205         Simplify computation of the offset of the referenced subobject.
13207 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
13209         * config/darwin.c (machopic_legitimize_pic_address): Check
13210         for lra not reload.
13212 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13214         * ira-conflicts.c (can_use_same_reg_p): New function.
13215         (process_reg_shuffles): Take an insn parameter.  Ignore cases
13216         in which input operand op_num could seemingly never be allocated
13217         to the same register as the destination.
13218         (add_insn_allocno_copies): Update call to process_reg_shuffles.
13220 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13222         * simplify-rtx.c (neg_const_int): Replace with...
13223         (neg_poly_int_rtx): ...this new function.
13224         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
13225         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
13226         (simplify_plus_minus): Likewise for constant terms here.
13228 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
13230         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
13231         HOST_WIDE_PRINT_UNSIGNED.
13233 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
13235         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
13236         character.
13238 2019-09-20  Maya Rashish  <coypu@sdf.org>
13240         PR target/86811
13241         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
13242         Define to speculation_safe_value_not_needed.
13244 2019-09-20  Richard Biener  <rguenther@suse.de>
13245             Uros Bizjak  <ubizjak@gmail.com>
13247         PR target/91814
13248         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
13249         previous change.
13250         (general_scalar_chain::convert_op): Force not suitable memory
13251         operands to a register.
13253 2019-09-20  Richard Biener  <rguenther@suse.de>
13255         PR tree-optimization/91821
13256         * tree-vect-loop.c (check_reduction_path): Check we can compute
13257         reduc_idx.
13258         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
13259         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
13260         operands in canonical order.
13261         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
13262         STMT_VINFO_REDUC_IDX.
13263         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
13264         (STMT_VINFO_REDUC_IDX): Likewise.
13266 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
13268         PR target/91269
13269         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13271 2019-09-20  Richard Biener  <rguenther@suse.de>
13273         PR tree-optimization/91822
13274         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
13275         parameter.
13276         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
13277         for reduc_index in nested cycles, adjust vectorizable_condition
13278         calls.
13279         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
13280         parameter.
13281         (vect_analyze_stmt): Adjust.
13282         (vect_transform_stmt): Likewise.
13284 2019-09-20  Richard Biener  <rguenther@suse.de>
13286         PR target/91767
13287         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13288         Ensure there's a sequence point between allocating the new register
13289         and passing a reference to a reg via regno_reg_rtx.
13291 2019-09-20  Martin Jambor  <mjambor@suse.cz>
13293         * coretypes.h (cgraph_edge): Declare.
13294         * ipa-param-manipulation.c: Rewrite.
13295         * ipa-param-manipulation.h: Likewise.
13296         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13297         (OBJS): Added ipa-sra.o.
13298         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13299         and ref_p, added fields param_adjustments and performed_splits.
13300         (struct cgraph_clone_info): Remove ags_to_skip and
13301         combined_args_to_skip, new field param_adjustments.
13302         (cgraph_node::create_clone): Changed parameters to use
13303         ipa_param_adjustments.
13304         (cgraph_node::create_virtual_clone): Likewise.
13305         (cgraph_node::create_virtual_clone_with_body): Likewise.
13306         (tree_function_versioning): Likewise.
13307         (cgraph_build_function_type_skip_args): Removed.
13308         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13309         using ipa_param_adjustments.
13310         (clone_of_p): Likewise.
13311         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13312         (build_function_decl_skip_args): Likewise.
13313         (duplicate_thunk_for_node): Adjust parameters using
13314         ipa_param_body_adjustments, copy param_adjustments instead of
13315         args_to_skip.
13316         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13317         (cgraph_node::create_virtual_clone): Likewise.
13318         (cgraph_node::create_version_clone_with_body): Likewise.
13319         (cgraph_materialize_clone): Likewise.
13320         (symbol_table::materialize_all_clones): Likewise.
13321         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13322         ipa_replace_map check.
13323         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13324         (initialize_node_lattices): Make aware that some parameters might have
13325         already been removed.
13326         (want_remove_some_param_p): New function.
13327         (create_specialized_node): Convert to using ipa_param_adjustments and
13328         deal with possibly pre-existing adjustments.
13329         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13330         (output_node_opt_summary): Do not stream removed fields.  Stream
13331         parameter adjustments instead of argumetns to skip.
13332         (input_node_opt_summary): Likewise.
13333         (input_node_opt_summary): Likewise.
13334         * lto-section-in.c (lto_section_name): Added ipa-sra section.
13335         * lto-streamer.h (lto_section_type): Likewise.
13336         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13337         param_body_adjs.
13338         (copy_decl_to_var): Declare.
13339         * tree-inline.c (update_clone_info): Do not remap old_tree.
13340         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13341         statements, walk all extra generated statements and remap their
13342         operands.
13343         (redirect_all_calls): Add killed SSA names to a hash set.
13344         (remap_ssa_name): Do not remap killed SSA names.
13345         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13346         half of functionality moved to ipa_param_body_adjustments.
13347         (copy_decl_to_var): Make exported.
13348         (copy_body): Destroy killed_new_ssa_names hash set.
13349         (expand_call_inline): Remap performed splits.
13350         (update_clone_info): Likewise.
13351         (tree_function_versioning): Simplify tree_map processing.  Updated to
13352         accept ipa_param_adjustments and use ipa_param_body_adjustments.
13353         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13354         for the new interface.
13355         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13356         (simd_clone_compute_base_data_type): Likewise.
13357         (simd_clone_init_simd_arrays): Adjust for the new interface.
13358         (simd_clone_adjust_argument_types): Likewise.
13359         (struct modify_stmt_info): Likewise.
13360         (ipa_simd_modify_stmt_ops): Likewise.
13361         (ipa_simd_modify_function_body): Likewise.
13362         (simd_clone_adjust): Likewise.
13363         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
13364         (type_internals_preclude_sra_p): Make public.
13365         * tree-sra.h: New file.
13366         * ipa-inline-transform.c (save_inline_function_body): Update to
13367         refelct new tree_function_versioning signature.
13368         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13369         ipa_param_adjustments to get current parameter indices.
13370         (ipcp_modif_dom_walker::before_dom_children): Likewise.
13371         (ipcp_update_bits): Likewise.
13372         (ipcp_update_vr): Likewise.
13373         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13374         * ipa-sra.c: New file.
13375         * multiple_target.c (create_target_clone): Update to reflet new type
13376         of create_version_clone_with_body.
13377         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13378         tree_function_versioning.
13379         (modify_function): Update to reflect new type of
13380         tree_function_versioning.
13381         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13382         * passes.def: Remove old IPA-SRA and add new one.
13383         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13384         (make_pass_ipa_sra): Declare.
13385         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
13386         ipa_sra_retvalues.
13387         * doc/invoke.texi (ipa-sra-max-replacements): New.
13389 2019-09-19  Martin Sebor  <msebor@redhat.com>
13391         PR middle-end/91631
13392         * builtins.c (component_size): Correct trailing array computation,
13393         rename to component_ref_size and move...
13394         (compute_objsize): Adjust.
13395         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13396         (builtin_access::strict): Do not consider memmove.
13397         (builtin_access::write_off): New function.
13398         (builtin_memref::builtin_memref): Initialize refsize.
13399         (builtin_memref::set_base_and_offset): Adjust refoff and compute
13400         refsize.
13401         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13402         Handle refsize.
13403         (builtin_access::builtin_access): Initialize dstoff to destination
13404         refeence offset here instead of in maybe_diag_overlap.  Adjust
13405         referencess even to unrelated objects.  Adjust sizrange of bounded
13406         string functions to reflect bound.  For strcat, adjust destination
13407         sizrange by that of source.
13408         (builtin_access::strcat_overlap):  Adjust offsets and sizes
13409         to reflect the increase in destination sizrange above.
13410         (builtin_access::overlap): Do not set dstoff here but instead
13411         in builtin_access::builtin_access.
13412         (check_bounds_or_overlap): Use builtin_access::write_off.
13413         (maybe_diag_access_bounds): Add argument.  Add informational notes.
13414         (dump_builtin_memref, dump_builtin_access): New functions.
13415         * tree.c (component_ref_size): ...to here.
13416         * tree.h (component_ref_size): Declare.
13417         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13418         nul in the size of the source string.
13420 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
13422         PR c/67224
13423         * doc/cpp.texi: Document support for extended characters in
13424         identifiers.
13425         * doc/cppopts.texi: Likewise.
13427 2019-09-19  Richard Biener  <rguenther@suse.de>
13429         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13430         (check_reduction_path): New overload having the path as result.
13431         (vect_is_simple_reduction): From the detected reduction
13432         path build a SLP reduction chain if possible.
13434 2019-09-19  Richard Biener  <rguenther@suse.de>
13436         PR target/91814
13437         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13438         Force operand to a register if it isn't nonimmediate_operand.
13440 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13442         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13443         * config/arm/iterators.md (optab): Add and, ior, xor entries.
13444         (logical_op): Remove code attribute.
13445         (logical_OP): Likewise.
13447 2019-09-19  Martin Liska  <mliska@suse.cz>
13449         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13450         Use proper casting.
13452 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
13454         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13455         registers with %R.
13457         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13458         for NE comparison of TImode values.
13459         (aarch64_emit_load_exclusive): Add support for TImode.
13460         (aarch64_emit_store_exclusive): Likewise.
13461         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13462         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13463         Change iterator from ALLI to ALLI_TI.
13464         (@atomic_compare_and_swap<JUST_TI>): New.
13465         (@atomic_compare_and_swap<JUST_TI>_lse): New.
13466         (aarch64_load_exclusive_pair): New.
13467         (aarch64_store_exclusive_pair): New.
13468         * config/aarch64/iterators.md (JUST_TI): New.
13470         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13471         strong_zero_p for aarch64_track_speculation; unify some code paths;
13472         use aarch64_gen_compare_reg instead of open-coding.
13474         * config/aarch64/aarch64.opt (-moutline-atomics): New.
13475         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13476         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13477         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13478         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13479         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13480         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13481         (atomic_<atomic_op><ALLI>): Likewise.
13482         (atomic_fetch_<atomic_op><ALLI>): Likewise.
13483         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13484         * doc/invoke.texi: Document -moutline-atomics.
13486 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
13488         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13489         trivial predicate for condition branch.
13490         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13491         for switch case.
13492         (compute_bb_predicates): Update predicate based on post-dominating
13493         relationship.
13494         (analyze_function_body): Calculate post-dominating information.
13496 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
13498         * tree-vectorizer.h (vectorizable_condition): Take an int
13499         reduction index instead of a boolean flag.
13500         * tree-vect-stmts.c (vectorizable_condition): Likewise.
13501         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13502         reductions if the reduction accumulator is the "then" rather
13503         than the "else" value.
13504         (vect_analyze_stmt): Update call accordingly.
13505         (vect_transform_stmt): Likewise.
13506         * tree-vect-loop.c (vectorizable_reduction): Likewise,
13507         asserting that the index is > 0.
13509 2019-09-19  Martin Liska  <mliska@suse.cz>
13511         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13512         (sort_congruence_classes_by_decl_uid): Likewise.
13513         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13514         easier sorting.
13515         (sem_item_optimizer::merge_classes): Likewise.
13517 2019-09-19  Richard Biener  <rguenther@suse.de>
13519         PR tree-optimization/91812
13520         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13521         volatile loads.
13523 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
13525         * defaults.h (TARGET_UNIT): New macro.
13526         (target_unit): New type.
13527         * rtl.h (native_encode_rtx, native_decode_rtx)
13528         (native_decode_vector_rtx, subreg_size_lsb): Declare.
13529         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13530         * rtlanal.c (subreg_lsb_1): Delete.
13531         (subreg_size_lsb): New function.
13532         * simplify-rtx.c: Include rtx-vector-builder.h
13533         (simplify_immed_subreg): Delete.
13534         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13535         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13536         functions.
13537         (simplify_subreg): Use them.
13538         (test_vector_subregs_modes, test_vector_subregs_repeating)
13539         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13540         (test_vector_subregs): New functions.
13541         (test_vector_ops): Call test_vector_subregs for integer vector
13542         modes with at least 2 elements.
13544 2019-09-19  Richard Biener  <rguenther@suse.de>
13546         * tree-parloops.c (parloops_is_slp_reduction): Do not set
13547         LOOP_VINFO_OPERANDS_SWAPPED.
13548         (parloops_is_simple_reduction): Likewise.
13549         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13550         initialize operands_swapped.
13551         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13552         (vect_is_slp_reduction): Do not swap operands.
13553         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13554         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13556 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
13558         PR target/87007
13559         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13560         Add avx_partial_xmm_update.
13562 2019-09-18  Jim Wilson  <jimw@sifive.com>
13564         PR target/91683
13565         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13566         (riscv_move_integer): Likewise.
13567         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13568         riscv_move_integer arg.
13569         (riscv_legitimize_move): Likewise.
13570         (riscv_force_temporary): New parameter in_splitter.  Don't call
13571         force_reg if true.
13572         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13573         arg.
13574         (riscv_add_offset): Likewise.
13575         (riscv_split_symbol): New parameter in_splitter.  Pass to
13576         riscv_force_temporary.
13577         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13578         arg.
13579         (riscv_move_integer): New parameter in_splitter.  New local
13580         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
13581         in_splitter TRUE.
13582         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13583         riscv_split_symbol, and riscv_force_temporary args.
13584         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13585         riscv_move_integer arg.
13586         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13588 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
13590         PR target/90878
13591         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13592         hard register store cost to 6.
13594 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
13596         PR target/91446
13597         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13598         pseudo register store cost from 3 to 6 to make it the same as
13599         QImode and HImode.
13601 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13603         PR target/91738
13604         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13605         (one_cmpldi2): Likewise.
13606         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13607         of the constant parts is simple.
13608         * config/arm/iterators.md (LOGICAL): Add new code iterator.
13609         (logical_op): Add new code attribute.
13610         (logical_OP): Likewise.
13611         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13612         (arm_iordi_operand): Add predicate.
13613         (arm_xordi_operand): Add predicate.
13615 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13617         * config/arm/arm.md (maddsidi4): Remove expander.
13618         (mulsidi3adddi): Remove pattern.
13619         (mulsidi3adddi_v6): Likewise.
13620         (mulsidi3_nov6): Likewise.
13621         (mulsidi3_v6): Likewise.
13622         (umulsidi3): Remove expander.
13623         (umulsidi3_nov6): Remove pattern.
13624         (umulsidi3_v6): Likewise.
13625         (umulsidi3adddi): Likewise.
13626         (umulsidi3adddi_v6): Likewise.
13627         (<Us>mulsidi3): Add combined expander.
13628         (<Us>maddsidi4): Likewise.
13629         (<US>mull): Add combined umull and smull pattern.
13630         (<US>mlal): Likewise.
13631         * config/arm/iterators.md (Us): Add new iterator.
13633 2019-09-18  Richard Biener  <rguenther@suse.de>
13635         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13636         swapping.
13637         (vectorize_fold_left_reduction): Remove assert.
13638         (vectorizable_reduction): Also expect COND_EXPR non-reduction
13639         operand in position 2.  Remove assert.
13641 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13643         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13644         (smulsi3_highpart_nov6): Remove pattern.
13645         (smulsi3_highpart_v6): Likewise.
13646         (umulsi3_highpart): Likewise.
13647         (umulsi3_highpart_nov6): Likewise.
13648         (umulsi3_highpart_v6): Likewise.
13649         (<US>mull_high): Add new combined multiply pattern.
13651 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13653         * config/arm/arm.md (arm_mulsi3): Remove pattern.
13654         (arm_mulsi3_v6): Likewise.
13655         (mulsi3addsi_v6): Likewise.
13656         (mulsi3subsi): Likewise.
13657         (mul): Add new multiply pattern.
13658         (mla): Likewise.
13659         (mls): Likewise.
13661 2019-09-18  Richard Biener  <rguenther@suse.de>
13663         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13664         (parloops_valid_reduction_input_p): Copy from
13665         valid_reduction_input_p.
13666         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13667         (parloops_needs_fold_left_reduction_p): Copy from
13668         needs_fold_left_reduction_p.
13669         (parloops_is_simple_reduction): Copy from
13670         vect_is_simple_reduction.
13671         (parloops_force_simple_reduction): Copy from
13672         vect_force_simple_reduction.
13673         (gather_scalar_reductions): Adjust.
13674         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13675         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13677 2019-09-18  Richard Biener  <rguenther@suse.de>
13679         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13680         * tree-vect-loop.c (get_initial_def_for_reduction): Make
13681         static.
13682         (vect_create_epilog_for_reduction): Remove dead code.
13684 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13686         * varasm.c (assemble_real): Generate canonical const_ints.
13688 2019-09-18  Richard Biener  <rguenther@suse.de>
13690         PR lto/91763
13691         * lto-streamer-in.c (input_eh_regions): Move EH init to
13692         lto_materialize_function.
13693         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13694         Likewise.
13696 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13698         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13699         are INTEGER_CSTs.
13701 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13703         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13704         of checking specifically for INTEGER_CST.
13706 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13708         * stor-layout.c (compute_record_mode): Operate on poly_uint64
13709         sizes instead of uhwi sizes.
13711 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13713         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13714         (add_const_value_attribute): Handle CONST_POLY_INT.
13716 2019-09-18  Martin Liska  <mliska@suse.cz>
13718         * dbgcnt.def (store_merging): New counter.
13719         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13720         Use it in store merging.
13722 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13724         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13725         function.
13726         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13727         * config/arm/arm.c (arm_sched_variable_issue): New function.
13728         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13730 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13732         * config/arm/types.md (no_reservation): New reservation.
13733         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13734         no_insn here.
13735         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13736         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13737         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13738         * config/arm/arm1020e.md (1020alu_op): Likewise.
13739         * config/arm/arm1026ejs.md (alu_op): Likewise.
13740         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13741         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13742         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13743         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13744         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13745         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13746         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13747         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13748         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13749         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13750         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13751         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13752         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13753         * config/arm/fa526.md (526_alu_op): Likewise.
13754         * config/arm/fa606te.md (606te_alu_op): Likewise.
13755         * config/arm/fa626te.md (626te_alu_op): Likewise.
13756         * config/arm/fa726te.md (726te_alu_op): Likewise.
13757         * config/arm/xgene1.md (xgene1_nop): Likewise.
13759 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13761         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13762         "no_insn" to "branch".
13764 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13766         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13768 2019-09-17  Richard Biener  <rguenther@suse.de>
13770         PR debug/91772
13771         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13772         was missing generate locations only once.
13774 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
13776         PR ipa/91089
13777         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13778         option.
13779         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13780         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13781         for switch default case using range analysis information.
13783 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
13785         PR target/91749
13786         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13787         mode attributed is supported by FDPIC.
13789 2019-09-17  Richard Biener  <rguenther@suse.de>
13791         PR tree-optimization/91790
13792         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13793         use the correct DR for setting up realignment.
13795 2019-09-16  Uroš Bizjak  <ubizjak@gmail.com>
13797         PR target/91719
13798         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13799         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13800         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13801         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13803 2019-09-16  Jason Merrill  <jason@redhat.com>
13805         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13807 2019-09-16  Martin Liska  <mliska@suse.cz>
13809         * gimple-fold.c (or_comparisons_1): Remove rules moved
13810         to ...
13811         * match.pd: ... here.
13813 2019-09-16  Martin Liska  <mliska@suse.cz>
13815         * gimple-fold.c (or_comparisons_1): Remove rules
13816         moved to ...
13817         * match.pd: ... here.
13819 2019-09-16  Martin Liska  <mliska@suse.cz>
13821         * genmatch.c (dt_node::append_simplify): Do not print
13822         warning when we have duplicate patterns belonging
13823         to a same simplify rule.
13824         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13825         (maybe_fold_comparisons_from_match_pd): Handle
13826         tcc_comparison as a results.
13827         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13829 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13830             Qi Feng  <ffengqi@linux.ibm.com>
13832         PR middle-end/88784
13833         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
13834         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
13835         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13836         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
13837         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
13838         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13839         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13840         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
13841         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
13842         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13843         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
13844         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
13846 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13847             Martin Liska  <mliska@suse.cz>
13849         * gimple-fold.c (and_comparisons_1): Add type as first
13850         argument.
13851         (and_var_with_comparison): Likewise.
13852         (and_var_with_comparison_1): Likewise.
13853         (or_comparisons_1): Likewise.
13854         (or_var_with_comparison): Likewise.
13855         (or_var_with_comparison_1): Likewise.
13856         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13857         (maybe_fold_or_comparisons): Likewise.
13858         (maybe_fold_comparisons_from_match_pd): New.
13859         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13860         (maybe_fold_or_comparisons): Likewise.
13861         * gimple.c (gimple_size): Make it public and add num_ops argument.
13862         (gimple_init): New function.
13863         (gimple_alloc): Call gimple_init.
13864         * gimple.h (gimple_size): New.
13865         (gimple_init): Likewise.
13866         * tree-if-conv.c (fold_or_predicates): Pass type.
13867         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13868         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13869         (optimize_vec_cond_expr): Likewise.
13870         (ovce_extract_ops): Return type of conditional expression.
13871         * tree-ssanames.c (init_ssa_name_imm_use): New.
13872         (make_ssa_name_fn): Use init_ssa_name_imm_use.
13873         * tree-ssanames.h (init_ssa_name_imm_use): New.
13875 2019-09-16  Richard Biener  <rguenther@suse.de>
13877         PR tree-optimization/91756
13878         PR tree-optimization/87132
13879         * tree-ssa-alias.h (enum translate_flags): New.
13880         (get_continuation_for_phi): Use it instead of simple bool flag.
13881         (walk_non_aliased_vuses): Likewise.
13882         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13883         (get_continuation_for_phi): When looking across backedges only
13884         disallow valueization.
13885         (walk_non_aliased_vuses): Adjust.
13886         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13887         if requested.
13889 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
13891         PR middle-end/80791
13892         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13893         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13894         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13895         * target.def (have_count_reg_decr_p): New hook.
13896         (doloop_cost_for_generic): Likewise.
13897         (doloop_cost_for_address): Likewise.
13898         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13899         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13900         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13901         * doc/tm.texi: Regenerate.
13902         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13903         addend.
13904         (record_group): Init doloop_p.
13905         (add_candidate_1): Add optional argument doloop, change the handlings
13906         accordingly.
13907         (add_candidate): Likewise.
13908         (generic_predict_doloop_p): Update attribute.
13909         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13910         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13911         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13912         MIN_EXPR.
13913         (get_computation_cost): Update for doloop IV cand extra cost.
13914         (determine_group_iv_cost_cond): Update for doloop IV cand.
13915         (determine_iv_cost): Likewise.
13916         (ivopts_estimate_reg_pressure): Likewise.
13917         (may_eliminate_iv): Update handlings for doloop IV cand.
13918         (add_iv_candidate_for_doloop): New function.
13919         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13920         (iv_ca_set_no_cp): Update for doloop IV cand.
13921         (iv_ca_set_cp): Likewise.
13922         (iv_ca_dump): Dump register cost.
13923         (find_doloop_use): New function.
13924         (analyze_and_mark_doloop_use): Likewise.
13925         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13927 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13929         PR middle-end/91708
13930         * cse.c (cse_insn): Do not replace anything with a
13931         MEM.
13933 2019-09-13  Ian Lance Taylor  <iant@golang.org>
13935         * doc/invoke.texi (Optimize Options): Fix typo.
13937 2019-09-12  Uroš Bizjak  <ubizjak@gmail.com>
13939         PR tree-optimization/89386
13940         * config/i386/sse.md (smulhrs<mode>3): New expander.
13941         (smulhrsv4hi3): Ditto.
13943 2019-09-12  Richard Biener  <rguenther@suse.de>
13945         PR tree-optimization/91750
13946         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13947         in the type of the evolution.
13949 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
13951         PR tree-optimization/89386
13952         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13953         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13954         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13955         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13956         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13957         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13958         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13959         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13960         (su, r): Handle the unspecs above.
13961         (bt): New int attribute.
13962         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13963         * internal-fn.c (first_commutative_argument): Commutativity info for
13964         above.
13965         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13966         (umulhrs_optab): New optabs.
13967         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13968         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13969         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13970         function.
13971         (vect_vect_recog_func_ptrs): Add it.
13973 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
13975         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13976         code.
13978 2019-09-11  Nathan Sidwell  <nathan@acm.org>
13980         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13981         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13983 2019-09-11  Richard Biener  <rguenther@suse.de>
13985         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13986         * lto-wrapper.c (merge_and_complain): Pick up -g.
13987         (append_compiler_options): Likewise.
13988         (run_gcc): Re-instantiate handling -g0 at link-time.
13989         * doc/invoke.texi (flto): Document debug info generation.
13991 2019-09-11  Richard Biener  <rguenther@suse.de>
13993         PR tree-optimization/90387
13994         * vr-values.c (vr_values::extract_range_basic): After inlining
13995         simplify non-constant __builtin_constant_p to false.
13997 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
13999         PR rtl-optimization/89795
14000         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
14001         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
14003 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
14005         PR tree-optimization/91723
14006         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
14007         instead of pointer equality when checking if argument vectypes are
14008         the same.
14010         PR middle-end/91725
14011         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
14012         of get_nonzero_bits, only call it for integral types.
14014 2019-09-11  Richard Biener  <rguenther@suse.de>
14016         Revert
14017         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
14019         * match.pd: Add flag_unsafe_math_optimizations check
14020         before deciding on the widest type in a binary math operation.
14022 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14024         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
14025         and CALL_REALLY_USED_REGISTERS must be defined, and that
14026         CALL_REALLY_USED_REGISTERS is preferred.
14027         * doc/tm.texi: Regenerate.
14028         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
14029         (call_really_used_regs): Likewise.
14030         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
14031         CALL_REALLY_USED_REGISTERS are defined.
14032         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
14033         initial value if defined.
14034         (initial_call_really_used_regs): Delete.
14035         (saved_call_really_used_regs): Likewise.
14036         (CALL_REALLY_USED_REGNO_P): Likewise.
14037         (init_reg_sets): Remove handling of call_really_used_regs.
14038         (save_register_info, restore_register_info, globalize_reg): Likewise.
14039         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
14040         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
14041         outside operand_reg_set.
14042         (fix_register): Don't change call_used_regs if
14043         CALL_REALLY_USED_REGISTERS is defined.
14044         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
14045         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
14046         instead of call_really_used_regs.
14047         (csky_conditional_register_usage): Remove the old handling of
14048         call_used_regs and change the handling of call_really_used_regs
14049         to use call_used_regs instead.
14050         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
14051         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
14052         making a register fixed.
14053         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
14054         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
14055         instead of call_really_used_regs.
14056         (m32r_conditional_register_usage): Don't set call_used_regs when
14057         making a register fixed.
14058         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
14059         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
14060         instead of call_really_used_regs.
14061         (mips_interrupt_extra_call_saved_reg_p): Likewise.
14062         (mips_cfun_call_saved_reg_p): Likewise.
14063         (mips_swap_registers): Remove the old handling of call_used_regs
14064         and change the handling of call_really_used_regs to use call_used_regs
14065         instead.
14066         (mips_conditional_register_usage): Likewise.
14067         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
14068         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
14069         instead of call_really_used_regs.
14070         (mn10300_get_live_callee_saved_regs): Likewise.
14071         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
14072         (mn10300_conditional_register_usage): Don't set call_used_regs when
14073         making a register fixed.
14074         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
14075         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
14076         Remove the old handling of call_used_regs and change the handling
14077         of call_really_used_regs to use call_used_regs instead.
14078         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
14079         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
14080         instead of call_really_used_regs.
14081         (s390_register_info_gprtofpr, s390_register_info): Likewise.
14082         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
14083         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
14084         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
14085         (s390_conditional_register_usage): Remove the old handling of
14086         call_used_regs and change the handling of call_really_used_regs
14087         to use call_used_regs instead.
14088         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
14089         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
14090         (sh_fix_range, reg_unused_after): Likewise.
14091         (sh_conditional_register_usage): Remove the old handling of
14092         call_used_regs and change the handling of call_really_used_regs
14093         to use call_used_regs instead.
14094         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
14095         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
14096         call_used_regs when making a register fixed.
14097         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
14098         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
14099         call_used_regs when making a register fixed.
14100         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
14101         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
14102         set call_used_regs when making a register fixed.
14103         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
14104         * config/visium/visium.c (visium_conditional_register_usage): Remove
14105         the old handling of call_used_regs and change the handling of
14106         call_really_used_regs to use call_used_regs instead.
14108 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14110         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
14111         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
14112         * reginfo.c (call_used_regs): New macro.
14114 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14116         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
14117         fixed_regs test.
14118         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14119         (bpf_expand_epilogue): Likewise.
14120         * config/c6x/c6x.c (c6x_save_reg): Likewise.
14121         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14122         (ft32_expand_epilogue): Likewise.
14123         * config/i386/i386.c (ix86_save_reg): Likewise.
14124         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
14125         (moxie_expand_epilogue): Likewise.
14126         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14127         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14128         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14130 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14132         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
14133         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
14134         instead of testing call_used_regs directly.
14135         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
14136         (aarch64_components_for_bb): Likewise.
14137         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
14138         * config/arc/arc.c (arc_must_save_register): Likewise.
14139         (arc_epilogue_uses): Likewise.
14140         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
14141         (legitimize_pic_address, callee_saved_reg_p): Likewise.
14142         (arm_compute_save_reg0_reg12_mask): Likewise.
14143         (arm_compute_save_core_reg_mask): Likewise.
14144         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
14145         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
14146         (cmse_nonsecure_entry_clear_before_return): Likewise.
14147         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
14148         (arm_expand_epilogue): Likewise.
14149         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
14150         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
14151         (_reg_unused_after): Likewise.
14152         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
14153         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
14154         (add_to_reg, hwloop_optimize): Likewise.
14155         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14156         (bpf_expand_epilogue): Likewise.
14157         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
14158         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
14159         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
14160         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
14161         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
14162         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
14163         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
14164         * config/frv/frv.c (frv_stack_info): Likewise.
14165         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
14166         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
14167         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
14168         (move_callee_saved_registers): Likewise.
14169         * config/h8300/h8300.c (byte_reg): Likewise.
14170         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
14171         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
14172         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
14173         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
14174         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
14175         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
14176         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
14177         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
14178         * config/m32c/m32c.c (need_to_save): Likewise.
14179         * config/m68k/m68k.c (m68k_save_reg): Likewise.
14180         * config/mcore/mcore.c (calc_live_regs): Likewise.
14181         * config/microblaze/microblaze.c (microblaze_must_save_register):
14182         Likewise.
14183         * config/mmix/mmix.c (mmix_local_regno): Likewise.
14184         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
14185         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
14186         (mmix_expand_epilogue): Likewise.
14187         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
14188         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
14189         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
14190         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
14191         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
14192         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
14193         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
14194         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
14195         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
14196         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
14197         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
14198         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
14199         * config/rl78/rl78.c (need_to_save): Likewise.
14200         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
14201         (rs6000_stack_info, generate_set_vrsave): Likewise.
14202         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
14203         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
14204         * config/rx/rx.c (rx_get_stack_layout): Likewise.
14205         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14206         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
14207         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
14208         (save_local_or_in_reg_p): Likewise.
14209         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
14210         (xstormy16_epilogue_uses): Likewise.
14211         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14212         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14213         * config/v850/v850.c (compute_register_save_size): Likewise.
14214         * config/vax/vax.c (vax_expand_prologue): Likewise.
14215         * config/visium/visium.c (visium_save_reg_p): Likewise.
14216         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14217         * cselib.c (cselib_process_insn): Likewise.
14218         * df-scan.c (df_get_entry_block_def_set): Likewise.
14219         * function.c (aggregate_value_p): Likewise.
14220         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
14221         * ira-lives.c (process_bb_node_lives): Likewise.
14222         * ira.c (do_reload): Likewise.
14223         * lra-lives.c (process_bb_lives): Likewise.
14224         * lra-remat.c (lra_remat): Likewise.
14225         * lra.c (lra): Likewise.
14226         * postreload.c (reload_combine_recognize_pattern): Likewise.
14227         (reload_cse_move2add): Likewise.
14228         * recog.c (peep2_find_free_register): Likewise.
14229         * regrename.c (check_new_reg_p): Likewise.
14230         * reload.c (find_equiv_reg): Likewise.
14231         * reload1.c (reload, find_reg): Likewise.
14232         * sel-sched.c (init_hard_regs_data): Likewise.
14234 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14236         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
14237         regs_invalidated_by_call & ~fixed_reg_set instead of
14238         call_used_or_fixed_regs & ~fixed_reg_set.
14239         * config/sh/sh.c (output_stack_adjust): Likewise.
14241 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14243         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
14244         (call_used_reg_set): Delete.
14245         (call_used_or_fixed_regs): New macro.
14246         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
14247         of call_used_reg_set.
14248         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
14249         instead of call_used_regs.
14250         (save_call_clobbered_regs): Likewise.
14251         * cfgcleanup.c (old_insns_match_p): Likewise.
14252         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
14253         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14254         Likewise.
14255         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14256         * config/sh/sh.c (output_stack_adjust): Likewise.
14257         * final.c (collect_fn_hard_reg_usage): Likewise.
14258         * ira-build.c (ira_build): Likewise.
14259         * ira-color.c (calculate_saved_nregs): Likewise.
14260         (allocno_reload_assign, calculate_spill_cost): Likewise.
14261         * ira-conflicts.c (ira_build_conflicts): Likewise.
14262         * ira-costs.c (ira_tune_allocno_costs): Likewise.
14263         * ira-lives.c (process_bb_node_lives): Likewise.
14264         * ira.c (setup_reg_renumber): Likewise.
14265         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
14266         * lra-constraints.c (need_for_call_save_p): Likewise.
14267         (need_for_split_p, inherit_in_ebb): Likewise.
14268         * lra-lives.c (process_bb_lives): Likewise.
14269         * lra-remat.c (call_used_input_regno_present_p): Likewise.
14270         * postreload.c (reload_combine): Likewise.
14271         * regrename.c (find_rename_reg): Likewise.
14272         * reload1.c (reload_as_needed): Likewise.
14273         * rtlanal.c (find_all_hard_reg_sets): Likewise.
14274         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14275         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14277 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14279         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
14280         (no_caller_save_reg_set): Delete.
14281         * caller-save.c (init_caller_save): Don't initialize it.
14282         * ira-conflicts.c (ira_build_conflicts): Calculate
14283         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
14285 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14287         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14288         (target_hard_regs::x_savable_regs): New field.
14289         (call_fixed_reg_set): Delete.
14290         (savable_regs): New macro,
14291         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14292         (init_reg_sets_1): Likewise.  Initialize savable_regs.
14293         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14294         for all registers.  Set savable_regs instead of call_fixed_reg_set.
14295         (setup_save_areas, save_call_clobbered_regs): Replace uses of
14296         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14297         * config/sh/sh.c (output_stack_adjust): Likewise.
14299 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14301         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14302         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14303         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14305 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14307         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14308         * rtlanal.c (get_call_rtx_from): Likewise.
14309         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14310         than the pattern to get_call_rtx_from.
14311         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14312         an rtx_insn * instead of an rtx.
14313         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14315 2019-09-10  Martin Liska  <mliska@suse.cz>
14317         * common.opt: Use newly added WarnRemoved.
14318         * config/aarch64/aarch64.opt: Likewise.
14319         * config/arm/arm.opt: Likewise.
14320         * config/i386/i386.opt: Likewise.
14321         * config/ia64/ia64.opt: Likewise.
14322         * config/rs6000/rs6000.opt: Likewise.
14323         * doc/options.texi: Document WarnRemoved properly.
14324         * dwarf2out.c (gen_producer_string): Handle renamed
14325         OPT_SPECIAL_warn_removed.
14326         * lto-opts.c (lto_write_options): Likewise.
14327         * lto-wrapper.c (merge_and_complain): Likewise.
14328         * opts-common.c (decode_cmdline_option): Likewise.
14329         (prune_options): Likewise.
14330         (read_cmdline_option): Likewise.
14331         (control_warning_option): Likewise.
14332         * opts.c (print_filtered_help): Likewise.
14333         * optc-gen.awk: Parse for WarnRemoved and make usage
14334         of Deprecated an error.
14335         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14337 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
14339         * doc/install.texi: Fix syntax for html generation.
14341 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
14343         PR middle-end/91680
14344         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14345         the shift type to type.
14347 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14349         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14350         FDPIC mode.
14351         (stack_protect_combined_test_insn): Likewise.
14353 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14354             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14356         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14357         * config/arm/arm.md (FDPIC_REGNUM): New constant.
14358         (load_tp_soft_fdpic): New pattern.
14359         (load_tp_soft): Disable in FDPIC mode.
14361 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14362             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14364         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14365         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14366         (arm_call_tls_get_addr): Add FDPIC support.
14367         (legitimize_tls_address): Likewise.
14368         (arm_emit_tls_decoration): Likewise.
14370 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14371             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14373         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14374         support.
14375         (arm_trampoline_init): Likewise.
14376         (arm_trampoline_adjust_address): Likewise.
14377         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14379 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14380             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14382         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14383         (legitimize_pic_address): Enforce binding rules on function
14384         pointers in FDPIC mode.
14385         (arm_assemble_integer): Likewise.
14387 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14388             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14390         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14391         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14392         FDPIC.
14394 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14395             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14397         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14398         field.
14400 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14401             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14403         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14404         in FDPIC mode.
14405         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14406         new function.
14407         * config/arm/arm.c (arm_option_override): Define pic register to
14408         FDPIC_REGNUM.
14409         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14410         have no decl or go through PLT.
14411         (calculate_pic_address_constant): New function.
14412         (legitimize_pic_address): Call calculate_pic_address_constant.
14413         (arm_load_pic_register): Handle TARGET_FDPIC.
14414         (arm_is_segment_info_known): New function.
14415         (arm_pic_static_addr): Add support for FDPIC.
14416         (arm_load_function_descriptor): New function.
14417         (arm_emit_call_insn): Add support for FDPIC.
14418         (arm_assemble_integer): Add support for FDPIC.
14419         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14420         Define. (FDPIC_REGNUM): New define.
14421         * config/arm/arm.md (call): Add support for FDPIC.
14422         (call_value): Likewise.
14423         (restore_pic_register_after_call): New pattern.
14424         (untyped_call): Disable if FDPIC.
14425         (untyped_return): Likewise.
14426         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14428 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14429             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14431         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14432         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14433         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14434         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14435         (CC1_SPEC): Use FDPIC_CC1_SPEC.
14436         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14437         * config/arm/uclinuxfdpiceabi.h: New file.
14439 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14441         * config.gcc: Handle *-*-uclinuxfdpiceabi.
14443 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14444             MickaĂ«l GuĂŞnĂ©  <mickael.guene@st.com>
14446         * config/arm/arm.opt: Add -mfdpic option.
14447         * doc/invoke.texi: Add documentation for -mfdpic.
14449 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14451         * expmed.c (extract_bit_field): Update function comment
14452         regarding alt_rtl.
14453         * expr.c (expand_expr_real): Update function comment
14454         regarding alt_rtl.
14455         (expand_misaligned_mem_ref): New helper function.
14456         (expand_expr_real_2): Use expand_misaligned_mem_ref.
14457         Remove duplicate assignment to "base" at case MEM_REF.
14458         Remove a shadowed variable "unsignedp" at case VCE. 
14460 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14462         * regset.h (regs_invalidated_by_call_regset): Delete.
14463         (fixed_reg_set_regset): Likewise.
14464         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14465         (fixed_reg_set_regset, persistent_obstack): Likewise.
14466         (init_reg_sets_1, globalize_reg): Update accordingly.
14467         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14468         instead of a bitmap.
14469         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14470         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14471         instead of regs_invalidated_by_call_regset.
14472         (df_lr_confluence_n, df_md_confluence_n): Likewise.
14473         * df-scan.c (df_scan_start_dump): Likewise.
14474         * dse.c (copy_fixed_regs): Likewise.
14475         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14477 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14479         * array-traits.h: New file.
14480         * coretypes.h (array_traits, bitmap_view): New types.
14481         * bitmap.h: Include "array-traits.h"
14482         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14483         (base_bitmap_view, bitmap_view): New classes.
14484         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14485         * hard-reg-set.h: Include array-traits.h.
14486         (array_traits<HARD_REG_SET>): New struct.
14487         * regset.h (IOR_REG_SET_HRS): New macro.
14488         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14489         rather than iterating over each hard register.
14490         * sched-deps.c (sched_analyze_insn): Likewise.
14491         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14493 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14495         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14496         instead of a HARD_REG_SET *.
14497         * ira-build.c (ior_hard_reg_conflicts): Likewise.
14498         (ira_build): Update call accordingly.
14499         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14501 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14503         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14504         (HARD_REG_SET::operator!=): Likewise.
14505         (hard_reg_set_equal_p): Delete.
14506         * cfgcleanup.c (old_insns_match_p): Use == instead of
14507         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14508         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14509         (add_allocno_hard_regs_to_forest): Likewise.
14510         (setup_allocno_available_regs_num): Likewise.
14511         * ira.c (setup_pressure_classes): Likewise.
14512         (setup_allocno_and_important_classes): Likewise.
14513         (setup_reg_class_relations): Likewise.
14514         * lra-lives.c (process_bb_lives): Likewise.
14515         * reg-stack.c (change_stack, convert_regs_1): Likewise.
14517 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14519         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14520         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14521         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14522         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14523         Likewise.
14524         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14525         * ira.c (setup_reg_renumber): Likewise.
14526         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14527         * regrename.c (regrename_find_superclass): Likewise.
14528         * reload1.c (find_reg): Likewise.
14530 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14532         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14533         * caller-save.c (setup_save_areas): Use "&~" instead of
14534         AND_COMPL_HARD_REG_SET.
14535         (save_call_clobbered_regs): Likewise.
14536         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14537         Likewise.
14538         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14539         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14540         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14541         * config/mips/mips.c (mips_class_max_nregs): Likewise.
14542         (mips_conditional_register_usage): Likewise.
14543         * config/sh/sh.c (output_stack_adjust): Likewise.
14544         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14545         (setup_profitable_hard_regs): Likewise.
14546         (get_conflict_and_start_profitable_regs): Likewise.
14547         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14548         (ira_build_conflicts): Likewise.
14549         * ira-costs.c (restrict_cost_classes): Likewise.
14550         (setup_regno_cost_classes_by_aclass): Likewise.
14551         * ira-lives.c (process_bb_node_lives): Likewise.
14552         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14553         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14554         (setup_allocno_and_important_classes, setup_class_translate_array)
14555         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14556         Likewise.
14557         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14558         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14559         (process_alt_operands, inherit_in_ebb): Likewise.
14560         * lra-eliminations.c (update_reg_eliminate): Likewise.
14561         * lra-lives.c (process_bb_lives): Likewise.
14562         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14563         * resource.c (find_dead_or_set_registers): Likewise.
14564         (mark_target_live_regs): Likewise.
14565         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14566         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14567         (implicit_clobber_conflict_p): Likewise.
14568         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14569         (try_shrink_wrapping): Likewise.
14571 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14573         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14574         (HARD_REG_SET::operator|=): Likewise.
14575         (IOR_HARD_REG_SET): Delete.
14576         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14577         IOR_HARD_REG_SET.
14578         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14579         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14580         * final.c (collect_fn_hard_reg_usage): Likewise.
14581         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14582         * ira-build.c (merge_hard_reg_conflicts): Likewise.
14583         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14584         (propagate_some_info_from_allocno): Likewise.
14585         (copy_info_to_removed_store_destinations): Likewise.
14586         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14587         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14588         (fast_allocation): Likewise.
14589         * ira-conflicts.c (ira_build_conflicts): Likewise.
14590         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14591         (process_bb_node_lives): Likewise.
14592         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14593         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14594         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14595         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14596         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14597         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14598         (process_bb_lives): Likewise.
14599         * lra-spills.c (assign_spill_hard_regs): Likewise.
14600         * postreload.c (reload_combine): Likewise.
14601         * reginfo.c (init_reg_sets_1): Likewise.
14602         * regrename.c (merge_overlapping_regs, find_rename_reg)
14603         (merge_chains): Likewise.
14604         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14605         (find_reload_regs, finish_spills, choose_reload_regs_init)
14606         (emit_reload_insns): Likewise.
14607         * reorg.c (redundant_insn): Likewise.
14608         * resource.c (find_dead_or_set_registers, mark_set_resources)
14609         (mark_target_live_regs): Likewise.
14610         * rtlanal.c (find_all_hard_reg_sets): Likewise.
14611         * sched-deps.c (sched_analyze_insn): Likewise.
14612         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14613         (find_best_reg_for_expr): Likewise.
14614         * shrink-wrap.c (try_shrink_wrapping): Likewise.
14616 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14618         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14619         (HARD_REG_SET::operator&): Likewise.
14620         (AND_HARD_REG_SET): Delete.
14621         * caller-save.c (setup_save_areas): Use "&" instead of
14622         AND_HARD_REG_SET.
14623         (save_call_clobbered_regs): Likewise.
14624         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14625         * config/m32c/m32c.c (reduce_class): Likewise.
14626         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14627         * final.c (get_call_reg_set_usage): Likewise.
14628         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14629         (setup_left_conflict_sizes_p): Likewise.
14630         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14631         (ira_build_conflicts): Likewise.
14632         * ira-costs.c (restrict_cost_classes): Likewise.
14633         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14634         (setup_reg_class_relations): Likewise.
14635         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14636         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14637         * resource.c (find_dead_or_set_registers): Likewise.
14638         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14640 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14642         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14643         (COMPL_HARD_REG_SET): Delete.
14644         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14645         of COMPL_HARD_REG_SET.
14646         (try_rename_operands): Likewise.
14647         * config/sh/sh.c (push_regs): Likewise.
14648         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14649         * lra-constraints.c (contains_reg_p): Likewise.
14650         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14652 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14654         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14655         * caller-save.c (save_call_clobbered_regs): Use assignment instead
14656         of COPY_HARD_REG_SET.
14657         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14658         (epiphany_conditional_register_usage): Likewise.
14659         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14660         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14661         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14662         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14663         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14664         * config/mips/mips.c (mips_class_max_nregs): Likewise.
14665         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14666         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14667         * config/sh/sh.c (output_stack_adjust): Likewise.
14668         * final.c (collect_fn_hard_reg_usage): Likewise.
14669         (get_call_reg_set_usage): Likewise.
14670         * ira-build.c (ira_create_object, remove_low_level_allocnos)
14671         (ira_flattening): Likewise.
14672         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14673         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14674         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14675         (ira_reassign_pseudos): Likewise.
14676         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14677         (ira_build_conflicts): Likewise.
14678         * ira-costs.c (restrict_cost_classes): Likewise.
14679         (setup_regno_cost_classes_by_aclass): Likewise.
14680         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14681         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14682         (setup_stack_reg_pressure_class, setup_pressure_classes)
14683         (setup_allocno_and_important_classes, setup_class_translate_array)
14684         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14685         (ira_setup_eliminable_regset): Likewise.
14686         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14687         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14688         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14689         (process_alt_operands, inherit_in_ebb): Likewise.
14690         * lra-lives.c (process_bb_lives): Likewise.
14691         * lra-spills.c (assign_spill_hard_regs): Likewise.
14692         * lra.c (lra): Likewise.
14693         * mode-switching.c (new_seginfo): Likewise.
14694         * postreload.c (reload_combine): Likewise.
14695         * reg-stack.c (straighten_stack): Likewise.
14696         * reginfo.c (save_register_info, restore_register_info): Likewise.
14697         (init_reg_sets_1, record_subregs_of_mode): Likewise
14698         * regrename.c (create_new_chain, rename_chains): Likewise.
14699         * reload1.c (order_regs_for_reload, find_reg): Likewise.
14700         (find_reload_regs): Likewise.
14701         * resource.c (find_dead_or_set_registers): Likewise.
14702         (mark_target_live_regs): Likewise.
14703         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14705 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14707         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14708         (note_pattern_stores): Declare.
14709         (note_stores): Take an rtx_insn *.
14710         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14711         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14712         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14713         (note_stores): Take an rtx_insn * as argument and process
14714         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
14715         (note_pattern_stores): ...this.
14716         (find_first_parameter_load): Pass the insn rather than
14717         its pattern to note_stores.
14718         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14719         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14720         (insert_one_insn): Likewise.
14721         * combine.c (combine_instructions): Likewise.
14722         (likely_spilled_retval_p): Likewise.
14723         (try_combine): Use note_pattern_stores instead of note_stores.
14724         (record_dead_and_set_regs): Pass the insn rather than its pattern
14725         to note_stores.
14726         (reg_dead_at_p): Likewise.
14727         * config/bfin/bfin.c (workaround_speculation): Likewise.
14728         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
14729         rather than an rtx.
14730         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14731         instead of note_stores.
14732         (frv_optimize_membar_local): Pass the insn rather than its pattern
14733         to note_stores.
14734         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14735         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14736         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14737         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14738         (mips_reorg_process_insns): Likewise.
14739         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14740         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
14741         rather than rtxes.
14742         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14743         its pattern to note_stores.
14744         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14745         of note_stores.
14746         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14747         the insn to note_stores.
14748         (prescan_insns_for_dce): Update call accordingly.
14749         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14750         to note_stores.
14751         * df-problems.c (can_move_insns_across): Likewise.
14752         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14753         * function.c (assign_parm_setup_reg): Likewise.
14754         * gcse-common.c (record_last_mem_set_info_common): Likewise.
14755         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14756         (single_set_gcse): Likewise.
14757         * ira.c (validate_equiv_mem): Likewise.
14758         (update_equiv_regs): Use note_pattern_stores rather than note_stores
14759         for no_equiv.
14760         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14761         pattern to note_stores.
14762         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14763         * loop-iv.c (simplify_using_initial_values): Likewise.
14764         * mode-switching.c (optimize_mode_switching): Likewise.
14765         * optabs.c (emit_libcall_block_1): Likewise.
14766         (expand_atomic_compare_and_swap): Likewise.
14767         * postreload-gcse.c (load_killed_in_block_p): Likewise.
14768         (record_opr_changes): Likewise.  Remove explicit handling of
14769         CALL_INSN_FUNCTION_USAGE.
14770         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14771         * regcprop.c (kill_clobbered_values): Likewise.
14772         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14773         to note_stores.
14774         * regrename.c (build_def_use): Likewise.
14775         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
14776         for mark_not_eliminable.
14777         (reload_as_needed): Pass the insn rather than its pattern
14778         to note_stores.
14779         (emit_output_reload_insns): Likewise.
14780         * resource.c (mark_target_live_regs): Likewise.
14781         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14782         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14783         instead of note_stores.
14784         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14785         its pattern to note_stores.
14786         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14787         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14789 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14791         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14792         than a #define.  Use a structure rather than an array as the
14793         fallback definition.  Remove special cases for low array sizes.
14794         (const_hard_reg_set): New typedef.
14795         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14796         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14797         (hard_reg_set_empty_p): Likewise.
14798         (SET_HARD_REG_BIT): Use a function rather than a macro to
14799         handle the case in which HARD_REG_SET is a structure.
14800         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14801         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14802         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14803         (IOR_COMPL_HARD_REG_SET): Likewise.
14804         (hard_reg_set_iterator::pset): Constify the pointer target.
14805         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14806         of a "const HARD_REG_SET".  Update the handling of non-integer
14807         HARD_REG_SETs.
14808         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14809         * reload.h: Likewise.
14810         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14811         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14812         of a "const HARD_REG_SET".
14813         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14814         (range_in_hard_reg_set_p): Likewise.
14815         * ira-costs.c (restrict_cost_classes): Likewise.
14816         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14817         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14818         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14819         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14820         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14821         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14822         take an unsigned int and open-code the HARD_REG_SET operations.
14824 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14826         * Makefile.in (OBJS): Remove bt-load.o.
14827         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14828         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14829         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14830         document that the option no longer does anything.
14831         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14832         * target.def (branch_target_register_class): Delete.
14833         (branch_target_register_callee_saved): Likewise.
14834         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14835         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14836         * doc/tm.texi: Regenerate.
14837         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14838         (make_pass_branch_target_load_optimize2): Likewise.
14839         * passes.def (pass_branch_target_load_optimize1): Likewise.
14840         (pass_branch_target_load_optimize2): Likewise.
14841         * targhooks.h (default_branch_target_register_class): Likewise.
14842         * targhooks.c (default_branch_target_register_class): Likewise.
14843         * opt-suggestions.c (test_completion_valid_options): Remove
14844         -fbtr-bb-exclusive from the list of test options.
14845         * bt-load.c: Remove.
14847 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
14849         * match.pd: Add flag_unsafe_math_optimizations check
14850         before deciding on the widest type in a binary math operation.
14852 2019-09-09  Martin Liska  <mliska@suse.cz>
14854         * config/i386/i386.opt: Update comment of removed
14855         options that are preserved only for backward
14856         compatibility.
14858 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
14860         PR target/87853
14861         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14862         instead of __v16qs.
14864         PR target/91704
14865         * config/i386/avxintrin.h (__v32qs): New typedef.
14866         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14867         instead of __v32qi.
14869 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14871         * doc/invoke.texi (Option Summary): Cover eBPF.
14872         (eBPF Options): New section.
14873         * doc/extend.texi (BPF Built-in Functions): Likewise.
14874         (BPF Kernel Helpers): Likewise.
14876 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14878         * config.gcc: Support for bpf-*-* targets.
14879         * common/config/bpf/bpf-common.c: New file.
14880         * config/bpf/t-bpf: Likewise.
14881         * config/bpf/predicates.md: Likewise.
14882         * config/bpf/constraints.md: Likewise.
14883         * config/bpf/bpf.opt: Likewise.
14884         * config/bpf/bpf.md: Likewise.
14885         * config/bpf/bpf.h: Likewise.
14886         * config/bpf/bpf.c: Likewise.
14887         * config/bpf/bpf-protos.h: Likewise.
14888         * config/bpf/bpf-opts.h: Likewise.
14889         * config/bpf/bpf-helpers.h: Likewise.
14890         * config/bpf/bpf-helpers.def: Likewise.
14892 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14894         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14895         indirect_calls.
14897 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14899         * opt-functions.awk (integer_range_info): Make sure values are in
14900         numeric context before operating with them.
14902 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
14904         * genemit.c (gen_split): Print the filename and line number where the
14905         splitter (or peephole2) was defined, to the dump file.
14907 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
14909         PR tree-optimization/91665
14910         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14911         incompatible with the type of PHI result.
14913 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14915         PR target/91684
14916         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14917         gen_unaligned_storedi for 4-byte aligned addresses.
14919 2019-09-06  Jim Wilson  <jimw@sifive.com>
14921         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14922         change.
14924 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14926         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14928 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14930         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14931         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14933 2019-09-06  Uroš Bizjak  <ubizjak@gmail.com>
14935         PR target/91654
14936         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14937         cost of SSE->integer and integer->SSE moves from 2 to 6.
14938         (core_cost): Ditto.
14940 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
14942         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14943         before testing TYPE_TRANSPARENT_AGGR.
14944         * calls.c (initialize_argument_information, load_register_parameters):
14945         Likewise.
14947 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
14949         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14950         high regs.
14951         (cmp_ior): Likewise.
14953 2019-09-06  Martin Liska  <mliska@suse.cz>
14955         * doc/match-and-simplify.texi: Separate tuples with ;.
14957 2019-09-06  Martin Liska  <mliska@suse.cz>
14959         PR c++/91125
14960         * Makefile.in: Remove tlink.o.
14961         * collect2.c (do_link): New function isolated
14962         from do_tlink.
14963         (main): Use.
14964         * collect2.h (do_tlink): Remove declaration of do_tlink.
14965         * doc/extend.texi: Remove documentation of -frepo.
14966         * doc/invoke.texi: Likewise.
14967         * doc/sourcebuild.texi: Remove cleanup-repo-files.
14968         * tlink.c: Remove.
14970 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14971             Jim Wilson  <jimw@sifive.com>
14973         PR target/91635
14974         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14975         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14976         paradoxical_subreg_p (operands[0]).
14977         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14978         use as intermediate value.
14980 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
14982         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14983         (sync_compare_and_swap<mode>_insn): Likewise.
14985 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14987         PR middle-end/91615
14988         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14989         without movmisalign optab.
14991 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14993         PR middle-end/91001
14994         PR middle-end/91105
14995         PR middle-end/91106
14996         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14997         types, use type of their first field instead of type of
14998         args[i].tree_value.
15000 2019-09-05  Richard Biener  <rguenther@suse.de>
15002         PR rtl-optimization/91656
15003         * postreload-gcse.c (record_last_mem_set_info): Revert addition
15004         of early out.
15006 2019-09-05  Richard Biener  <rguenther@suse.de>
15008         PR middle-end/90501
15009         * tree-inline.c (declare_return_variable): Mark the return
15010         slot as addressable after building an address of it.
15012 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
15014         * doc/install.texi: Update and clarify requirements to build GNAT.
15016 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
15018         PR middle-end/91577
15019         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
15020         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
15021         call to be in memory.
15022         (pass_expand::execute): Call discover_nonconstant_array_refs before
15023         setting currently_expanding_to_rtl.
15025 2019-09-04  Caroline Tice  <cmtice@google.com>
15027         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
15028         specified together.
15030 2019-09-04  Marek Polacek  <polacek@redhat.com>
15032         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
15034 2019-09-04  Uroš Bizjak  <ubizjak@gmail.com>
15036         PR target/32413
15037         * config/i386/i386.c (inline_secondary_memory_needed): Return true
15038         for QI and HImode moves between SSE and general registers.
15040 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15042         PR c/78736
15043         * doc/invoke.texi: Document -Wenum-conversion.
15045 2019-09-04  Richard Biener  <rguenther@suse.de>
15047         PR rtl-optimization/36262
15048         * postreload-gcse.c: Include intl.h and gcse.h.
15049         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
15050         to avoid linear list walk.
15051         (record_last_mem_set_info): Gate off if not computing transparentness.
15052         (get_bb_avail_insn): If transparentness isn't computed give up
15053         early.
15054         (gcse_after_reload_main): Skip compute_transp and extended PRE
15055         if gcse_or_cprop_is_too_expensive says so.
15057 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15059         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
15060         noinit section.
15061         (msp430_select_section): Handle decls with the "noinit" attribute with
15062         default_elf_select_section.
15063         Handle SECCAT_RODATA_MERGE_* section types with
15064         default_elf_select_section.
15065         Add comments about handling of unsupported section types.
15066         (msp430_section_type_flags): Remove handling of the noinit section.
15068 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15070         * config/msp430/msp430.c (msp430_attr): Remove warnings about
15071         conflicting msp430-specific attributes.
15072         (msp430_section_attr): Likewise.
15073         Add warnings about conflicts with generic "noinit" and "section"
15074         attributes.
15075         Fix grammar in -mlarge error message.
15076         (msp430_data_attr): Rename to msp430_persist_attr.
15077         Add warnings about conflicts with generic "noinit" and "section"
15078         attributes.
15079         Add warning for when variable is not initialized.
15080         Chain conditionals which prevent the attribute being added.
15081         (ATTR_EXCL): New helper.
15082         (attr_reent_exclusions): New exclusion table.
15083         (attr_naked_exclusions): Likewise.
15084         (attr_crit_exclusions): Likewise.
15085         (attr_lower_exclusions): Likewise.
15086         (attr_upper_exclusions): Likewise.
15087         (attr_either_exclusions): Likewise.
15088         (attr_persist_exclusions): Likewise.
15089         (msp430_attribute_table): Update with exclusion rules.
15090         (msp430_output_aligned_decl_common): Don't output common symbol if decl
15091         has a section.
15093 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15095         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
15096         (msp430_handle_generic_attribute): New function.
15097         * doc/tm.texi: Regenerate.
15098         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
15099         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15100         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15101         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
15103 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
15105         PR tree-optimization/91504
15106         * match.pd: Add ((~a & b) ^a) --> (a | b).
15108 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15110         PR target/91604
15111         * config/i386/i386-expand.c (split_double_mode): If there is more than
15112         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
15113         already split matching MEM operand instead of calling adjust_address
15114         again.
15116 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
15118         * config.gcc: Obsolete spu target.  Remove references to spu.
15119         * configure.ac: Remove references to spu.
15120         * configure: Regenerate.
15121         * config/spu/: Remove directory.
15122         * common/config/spu/: Remove directory.
15124         * doc/extend.texi: Remove references to spu.
15125         * doc/invoke.texi: Likewise.
15126         * doc/md.texi: Likewise.
15127         * doc/sourcebuild.texi: Likewise.
15129 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15131         PR middle-end/91603
15132         PR middle-end/91612
15133         PR middle-end/91613
15134         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
15135         and SSA_NAME referring to CONSTANT_P correctly.
15137 2019-09-03  Richard Biener  <rguenther@suse.de>
15139         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
15140         (vn_nary_op_insert): Likewise.
15141         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
15142         (vn_nary_op_lookup): Likewise.
15143         (vn_nary_op_insert): Likewise.
15145 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
15147         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
15148         (*op0, 1) instead of XEXP (*op1, 0).
15150 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15152         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
15153         (aarch64_fjcvtzs): New define_insn.
15154         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
15155         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
15156         Add AARCH64_JSCVT.
15157         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
15158         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
15159         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15160         __ARM_FEATURE_JCVT where appropriate.
15161         * config/aarch64/arm_acle.h (__jcvt): Define.
15163 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15165         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
15166         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
15167         (aarch64_<frintnzs_op><mode>): New define_insn.
15168         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
15169         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15170         __ARM_FEATURE_FRINT when appropriate.
15171         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
15172         frint32x, frint64z, frint64x.
15173         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
15174         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
15175         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
15176         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
15177         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
15178         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
15179         * config/aarch64/iterators.md (VSFDF): Define.
15180         (FRINTNZX): Likewise.
15181         (frintnzs_op): Likewise.
15183 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
15185         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
15186         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
15187         Cortex-A34.
15188         * config/aarch64/aarch64-tune.md: Regenerated.
15189         * doc/invoke.texi: Document the new processors.
15191 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15193         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
15194         string.
15195         (ssbs): Likewise.
15196         (sve2): Likewise.
15197         (sve2-sm4): Likewise.
15198         (sveaes): Likewise.
15199         (svesha3): Likewise.
15200         (svebitperm): Likewise.
15202 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15203             Richard Biener  <rguenther@suse.de>
15205         PR tree-optimization/91597
15206         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
15207         BIT_AND_EXPR optimization for pointers, even if both operand
15208         ranges don't include NULL, the result can be NULL.
15210 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15212         PR middle-end/91605
15213         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
15214         (non_mem_decl_p): ...this.
15215         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
15216         (expand_assignment): Call mem_ref_referes_to_non_mem_p
15217         unconditionally as before.
15219 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15221         PR target/91323
15222         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
15223         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
15224         * tree.def (LTGT_EXPR): Likewise.
15225         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
15227 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
15229         PR go/91617
15230         * fold-const.c (range_check_type): For enumeral and boolean
15231         type, pass 1 to type_for_size langhook instead of
15232         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
15233         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
15234         (build_range_check): Don't call unsigned_type_for for pointer types.
15235         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
15236         range_check_type result.
15238 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15240         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
15241         (replace_ref): Do not replace a chain of only two candidates which are
15242         valid memory references.
15244 2019-09-02  Martin Liska  <mliska@suse.cz>
15246         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
15247         Bail out when we'll end up with the same number of clusters as
15248         at the beginning.
15249         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
15250         (jump_table_cluster::can_be_handled): Remove the guard
15251         as it's already handled in ::is_enabled.  Allocate output
15252         after early bail out.
15254 2019-09-02  Martin Liska  <mliska@suse.cz>
15256         PR gcov-profile/91601
15257         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
15258         (path_contains_zero_or_negative_cycle_arc): ... this and handle
15259         also negative edges.
15260         (circuit): Handle also negative edges as they can happen
15261         in some situations.
15263 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
15265         PR target/91472
15266         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
15267         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
15268         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
15270 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
15272         PR middle-end/91623
15273         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
15274         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
15275         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
15276         zero vector.
15278         PR lto/91572
15279         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
15280         GIMPLE_ASM TREE_LIST operands.
15282 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
15284         * doc/generic.texi (Unary and Binary Expressions): Mark up
15285         an instance of TYPE_MIN.
15287 2019-08-31  Stafford Horne  <shorne@gmail.com>
15289         * config/or1k/constraints.md (t): New constraint.
15290         * config/or1k/or1k.h (GOT_REGS): New register class.
15291         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15293 2019-08-30  Jim Wilson  <jimw@sifive.com>
15295         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15296         and -fpic and -mplt then disable -msave-restore and warn.
15298 2019-08-30  Martin Sebor  <msebor@redhat.com>
15300         PR middle-end/91599
15301         * tree-ssa-strlen.c (handle_store): Use a fallback location if
15302         the statement doesn't have one.
15303         * gimple-pretty-print.c (percent_G_format): Same.
15305         PR middle-end/91584
15306         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15307         before using them to validate MEM_REF offset.
15309 2019-08-30  Marek Polacek  <polacek@redhat.com>
15311         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15313 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15315         * config/arm/arm.md (unaligned_loaddi,
15316         unaligned_storedi): New unspec insn patterns.
15317         * config/arm/neon.md (unaligned_storev8qi): Likewise.
15318         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15319         and unaligned_storedi for 4-byte aligned memory.
15320         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15321         4-byte aligned memory.
15323 2019-08-30  Martin Jambor  <mjambor@suse.cz>
15325         tree-optimization/91579
15326         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15327         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15328         appropriate.
15329         (arg_needs_copy_p): Removed.
15330         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15331         arg_needs_copy_p.
15332         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
15334 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
15336         * config/i386/i386-features.c
15337         (general_scalar_chain::compute_convert_gain):
15338         Correct cost for double-word shifts.
15339         (general_scalar_to_vector_candidate_p): Reject count operands
15340         greater or equal to mode bitsize.
15342 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
15344         * config/i386/i386.c (inline_secondary_memory_needed): Return true
15345         for moves between SSE and non-general registers and between
15346         mask and non-general registers.
15347         (ix86_register_move_cost): Remove stalled comment.
15349 2019-08-29  Richard Biener  <rguenther@suse.de>
15351         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15352         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15354 2019-08-29  Richard Biener  <rguenther@suse.de>
15356         PR bootstrap/91580
15357         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15358         Do not emit scalar copies for debug-insns, instead replace
15359         their uses with the reg copy used in the chain or reset them
15360         if there is a reaching definition outside of the chain as well.
15362 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
15364         PR target/91560
15365         * config/i386/i386-expand.c (expand_vec_perm_movs,
15366         expand_vec_perm_blend, expand_vec_perm_vpermil,
15367         expand_vec_perm_pshufb, expand_vec_perm_1,
15368         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15369         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15370         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15371         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15372         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15373         comments - replace ix86_expand_vec_perm_builtin_1 with
15374         ix86_expand_vec_perm_const_1.
15375         (expand_vec_perm2_vperm2f128_vblend): New function.
15376         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
15377         expand_vec_perm2_vperm2f128_vblend as last resort.
15378         (canonicalize_perm): Formatting fix.
15380         PR tree-optimization/91351
15381         * tree-cfg.c (generate_range_test): Use range_check_type instead of
15382         unsigned_type_for.
15383         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15384         range_check_type returns NULL.
15385         * tree-switch-conversion.c (switch_conversion::build_one_array):
15386         Use range_check_type instead of unsigned_type_for, don't perform
15387         linear opt if it returns NULL.
15388         (bit_test_cluster::find_bit_tests): Formatting fix.
15389         (bit_test_cluster::emit): Use range_check_type instead of
15390         unsigned_type_for.
15391         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15392         returns NULL.
15394 2019-08-29  Richard Biener  <rguenther@suse.de>
15396         PR tree-optimization/91568
15397         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15398         (vect_update_max_nunits): Add overload for poly_uint64.
15399         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15400         (vect_build_slp_tree): Record max_nunits into the subtree
15401         and merge it upwards.
15402         (vect_print_slp_tree): Print max_nunits.
15404 2019-08-28  Marek Polacek  <polacek@redhat.com>
15406         Implement P1152R4: Deprecating some uses of volatile.
15407         PR c++/91361
15408         * doc/invoke.texi: Document -Wvolatile.
15410 2019-08-28  Marek Polacek  <polacek@redhat.com>
15412         PR c++/91360 - Implement C++20 P1143R2: constinit.
15413         * doc/invoke.texi: Document -Wc++20-compat.
15415 2019-08-28  Martin Sebor  <msebor@redhat.com>
15417         PR tree-optimization/91457
15418         * builtins.c (component_size): New function.
15419         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15420         * builtins.h (compute_objsize): Add argument.
15421         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15422         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15423         (vrp_prop::check_mem_ref): Same.
15424         (vrp_prop::search_for_addr_array): Set no-warning bit.
15425         (check_array_bounds): Same.
15427 2019-08-28  Martin Sebor  <msebor@redhat.com>
15429         PR driver/80545
15430         * opts-common.c (option_enabled): Correct checking for language
15431         options.
15433 2019-08-28  Uroš Bizjak  <ubizjak@gmail.com>
15435         * config/i386/i386.c (ix86_register_move_cost): Do not
15436         limit the cost of moves to/from XMM register to minimum 8.
15438 2019-08-28  Martin Jambor  <mjambor@suse.cz>
15440         PR ipa/91468
15441         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15442         checking assert a normal assert to test it really is redundant.
15443         * ipa-prop.c (compute_complex_assign_jump_func): Removed
15444         redundant test.
15445         (update_jump_functions_after_inlining): Removed combining unary
15446         arithmetic operations with an ancestor jump function.
15447         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15448         instead of t.
15450 2019-08-28  Richard Biener  <rguenther@suse.de>
15452         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15453         add the MD problem.
15455 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15456             Richard Biener  <rguenther@suse.de>
15458         * expr.c (expand_assignment): Handle misaligned DECLs.
15459         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15460         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15461         too.
15462         (assign_parm_setup_stack): Allocate properly aligned stack slots.
15463         * varasm.c (build_constant_desc): Align constants of misaligned types.
15464         * config/arm/predicates.md (aligned_operand): New predicate.
15465         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15466         aligned_operand to check restrictions on memory addresses.
15467         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15468         * config/arm/vec-common.md (mov<VALL>): Likewise.
15470 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
15472         PR libgomp/91530
15473         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15474         V_128 iterator instead of VI_128.
15476 2019-08-28  Martin Liska  <mliska@suse.cz>
15478         PR tree-optimization/90970
15479         * builtins.c (check_access): Remove assignment to maxread
15480         as it hasn't been used since when it was introduced in r255755.
15482 2019-08-27  Martin Sebor  <msebor@redhat.com>
15484         PR tree-optimization/91567
15485         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15486         of unknown strings.
15487         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15488         to PTRDIFF_MAX - 2.
15490 2019-08-27  Jeff Law  <law@redhat.com>
15492         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15493         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15495 2019-08-27  Uroš Bizjak  <ubizjak@gmail.com>
15497         PR target/91528
15498         * config/i386/i386-features.c (convert_scalars_to_vector):
15499         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15500         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
15501         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
15502         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15504 2019-08-27  Richard Biener  <rguenther@suse.de>
15506         * config/i386/i386-features.h
15507         (general_scalar_chain::~general_scalar_chain): Add.
15508         (general_scalar_chain::insns_conv): New bitmap.
15509         (general_scalar_chain::n_sse_to_integer): New.
15510         (general_scalar_chain::n_integer_to_sse): Likewise.
15511         (general_scalar_chain::make_vector_copies): Adjust signature.
15512         * config/i386/i386-features.c
15513         (general_scalar_chain::general_scalar_chain): Outline,
15514         initialize new members.
15515         (general_scalar_chain::~general_scalar_chain): New.
15516         (general_scalar_chain::mark_dual_mode_def): Record insns
15517         we need to insert conversions at and count them.
15518         (general_scalar_chain::compute_convert_gain): Account
15519         for conversion instructions at chain boundary.
15520         (general_scalar_chain::make_vector_copies): Generate a single
15521         copy for a def by a specific insn.
15522         (general_scalar_chain::convert_registers): First populate
15523         defs_map, then make copies at out-of chain insns.
15525 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
15527         * config/arm/arm.md (stack_protect_set_insn): Add security-related
15528         comment.
15529         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15531 2019-08-27  Martin Liska  <mliska@suse.cz>
15533         * cgraph.c (cgraph_node::remove): Remove dead assignment before
15534         loop.
15535         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15536         Enclose in anonymous namespace.
15537         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15538         hard_register initialization in braces.
15539         * tree-vrp.h (value_range_base::supports_type_p): Return false
15540         for function with boolean return type.
15542 2019-08-26  Uroš Bizjak  <ubizjak@gmail.com>
15544         * config/i386/i386.c (emit_i387_cw_initialization)
15545         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15547 2019-08-26  Martin Sebor  <msebor@redhat.com>
15549         PR c++/83431
15550         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15551         (sprintf_dom_walker): Remove class.
15552         (get_int_range): Make argument const.
15553         (directive::fmtfunc, directive::set_precision): Same.
15554         (format_none): Same.
15555         (build_intmax_type_nodes): Same.
15556         (adjust_range_for_overflow): Same.
15557         (format_floating): Same.
15558         (format_character): Same.
15559         (format_string): Same.
15560         (format_plain): Same.
15561         (get_int_range): Cast away constness.
15562         (format_integer): Same.
15563         (get_string_length): Call get_range_strlen_dynamic.  Handle
15564         null lendata.maxbound.
15565         (should_warn_p): Adjust argument scope qualifier.
15566         (maybe_warn): Same.
15567         (format_directive): Same.
15568         (parse_directive): Same.
15569         (is_call_safe): Same.
15570         (try_substitute_return_value): Same.
15571         (sprintf_dom_walker::handle_printf_call): Rename...
15572         (handle_printf_call): ...to this.  Initialize target to host charmap
15573         here instead of in pass_sprintf_length::execute.
15574         (struct call_info): Make global.
15575         (sprintf_dom_walker::compute_format_length): Make global.
15576         (sprintf_dom_walker::handle_gimple_call): Same.
15577         * passes.def (pass_sprintf_length): Replace with pass_strlen.
15578         * print-rtl.c (print_pattern): Reduce the number of spaces to
15579         avoid -Wformat-truncation.
15580         * tree-pass.h (make_pass_warn_printf): New function.
15581         * tree-ssa-strlen.c (strlen_optimize): New variable.
15582         (get_string_length): Add comments.
15583         (get_range_strlen_dynamic): New function.
15584         (check_and_optimize_call): New function.
15585         (handle_integral_assign): New function.
15586         (strlen_check_and_optimize_stmt): Factor code out into
15587         strlen_check_and_optimize_call and handle_integral_assign.
15588         (strlen_dom_walker::evrp): New member.
15589         (strlen_dom_walker::before_dom_children): Use evrp member.
15590         (strlen_dom_walker::after_dom_children): Use evrp member.
15591         (printf_strlen_execute): New function.
15592         (pass_strlen::gate): Update to handle printf calls.
15593         (dump_strlen_info): New function.
15594         (pass_data_warn_printf): New variable.
15595         (pass_warn_printf): New class.
15596         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15597         (handle_printf_call): Same.
15598         * tree-vrp.c (value_range_base::type): Adjust assertion.
15599         * vr-values.c (vr_values::update_value_range): Use type of the first
15600         argument rather than the second.
15602 2019-08-26  Richard Biener  <rguenther@suse.de>
15604         * config/i386/i386-features.c (general_remove_non_convertible_regs):
15605         Remove.
15606         (convert_scalars_to_vector): Do not call it.
15608 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
15609             Uros Bizjak  <ubizjak@gmail.com>
15611         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15612         CASE_MATHFN_FLOATN for roundeven.
15613         * config/i386/i386.c (ix86_i387_mode_needed): Add case
15614         I387_ROUNDEVEN.
15615         (ix86_mode_needed): Likewise.
15616         (ix86_mode_after): Likewise.
15617         (ix86_mode_entry): Likewise.
15618         (ix86_mode_exit): Likewise.
15619         (ix86_emit_mode_set): Likewise.
15620         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15621         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15622         (ix86_entity): Add I387_ROUNDEVEN.
15623         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15624         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15625         (define_int_iterator): Likewise.
15626         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15627         (define_constant): Define ROUND_ROUNDEVEN mode.
15628         (define_attr): Add roundeven mode for i387_cw.
15629         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15630         * internal-fn.def (ROUNDEVEN): New builtin function.
15631         * optabs.def (roundeven_optab): New optab.
15633 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
15635         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15636         for ROUNDEVEN.
15637         * builtins.def: Added function definitions for roundeven function
15638         variants.
15639         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15640         function call.  Adjust condition for floor, ceil, trunc and round.
15641         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15642         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15643         (integer_valued_real_call_p): Added case for roundeven function.
15644         * real.c (is_even): New function. Returns true if real number is even,
15645         otherwise returns false.
15646         (is_halfway_below): New function. Returns true if real number is
15647         halfway between two integers, else return false.
15648         (real_roundeven): New function. Round real number to nearest integer,
15649         rounding halfway cases towards even.
15650         * real.h (real_value): Added descriptive comments.  Added function
15651         declaration for roundeven function.
15652         * doc/extend.texi (Other Builtins): List roundeven variants among
15653         functions which can be handled as builtins.
15655 2019-08-26  Richard Biener  <rguenther@suse.de>
15657         PR target/91522
15658         PR target/91527
15659         * config/i386/i386-features.h (general_scalar_chain::defs_map):
15660         New member.
15661         (general_scalar_chain::replace_with_subreg): Remove.
15662         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15663         (general_scalar_chain::convert_reg): Adjust signature.
15664         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15665         iterate over all defs of a reg.
15666         (general_scalar_chain::replace_with_subreg): Remove.
15667         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15668         (general_scalar_chain::make_vector_copies): Populate defs_map,
15669         place copy only after defs that are used as vectors in the chain.
15670         (general_scalar_chain::convert_reg): Emit a copy for a specific
15671         def in a specific instruction.
15672         (general_scalar_chain::convert_op): All reg uses are converted here.
15673         (general_scalar_chain::convert_insn): Emit copies for scalar
15674         uses of defs here.  Replace uses with the copies we created.
15675         Replace and convert the def.  Adjust REG_DEAD notes, remove
15676         REG_EQUIV/EQUAL notes.
15677         (general_scalar_chain::convert_registers): Only handle copies
15678         into the chain here.
15680 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
15682         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15684 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
15686         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15687         Add nop_convert case.
15688         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15689         Fold all statements if requested.
15690         * tree-ssa-propagate.h (class substitute_and_fold_engine):
15691         Allow to fold all statements.
15692         * tree-vrp.c (class vrp_folder):
15693         Let substitute_and_fold_engine fold all statements.
15695 2019-08-26  Richard Biener  <rguenther@suse.de>
15697         PR tree-optimization/91526
15698         * passes.def: Note that after late FRE we do TODO_update_address_taken.
15699         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15700         TODO_update_address_taken.
15702 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
15704         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15705         __STDC_HOSTED__.
15707 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
15709         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15710         machine mode for unspec_volatile operand.
15712 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
15714         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15715         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15716         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15717         (prefer_neon_for_64bits): Remove.
15718         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15719         (tune_params): Remove PREF_NEON_64_FALSE uses.
15720         (arm_option_override): Remove prefer_neon selection code.
15721         (arm_print_tune_info): Remove prefer_neon_for_64bits.
15722         * config/arm/arm-protos.h (tune_params): Remove
15723         prefer_neon_for_64bits.
15724         (prefer_neon_for_64bits): Remove.
15726 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
15728         PR pch/61250
15729         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15730         and issue any diagnostics needed before collecting the pre-PCH
15731         state.
15733 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
15735         PR middle-end/91283
15736         * common.opt (fexcess-precision=): Add Optimization flag.  Use
15737         flag_excess_precision variable instead of
15738         flag_excess_precision_cmdline.
15739         * flags.h (class target_flag_state): Remove x_flag_excess_precision
15740         member.
15741         (flag_excess_precision): Don't define.
15742         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15743         flag_excess_precision_cmdline.  Remove comment.
15744         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15745         and x_flag_excess_precision instead of
15746         frontend_set_flag_excess_precision_cmdline and
15747         x_flag_excess_precision_cmdline.
15748         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15749         x_flag_excess_precision_cmdline.
15750         * toplev.c (init_excess_precision): Remove.
15751         (lang_dependent_init_target): Don't call it.
15753 2019-08-23  Martin Liska  <mliska@suse.cz>
15755         * lto-wrapper.c (run_gcc): When setting jobserver
15756         set also parallel to 1.  This was done so before r273908.
15758 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
15760         * config/arm/arm-cpus.in (cortex-m35p): New entry.
15761         (cortex-a76ae): Likewise.
15762         (cortex-a77): Likewise
15763         * config/arm/arm-tables.opt: Regenerate.
15764         * config/arm/arm-tune.md: Likewise.
15765         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15766         cortex-a77 CPU options.
15768 2019-08-23  Martin Liska  <mliska@suse.cz>
15770         * profile.c (instrument_values): Do not set
15771         0 as last argument.
15772         * tree-profile.c (gimple_gen_interval_profiler): Remove
15773         last argument.
15774         (gimple_gen_pow2_profiler): Likewise.
15775         (gimple_gen_topn_values_profiler): Likewise.
15776         (gimple_gen_ic_profiler): Likewise.
15777         (gimple_gen_time_profiler): Likewise.
15778         (gimple_gen_average_profiler): Likewise.
15779         (gimple_gen_ior_profiler): Likewise.
15780         * value-prof.c (dump_histogram_value): Use default
15781         in switch statement instead of HIST_TYPE_MAX.
15782         (stream_in_histogram_value): Likewise.
15783         (gimple_duplicate_stmt_histograms): Do not
15784         use NULL for implicitly set arguments.
15785         (gimple_divmod_values_to_profile): Do not use
15786         reserve+quick_push.
15787         (gimple_indirect_call_to_profile): Likewise.
15788         (gimple_find_values_to_profile): Use implicit
15789         function call arguments.
15790         * value-prof.h (gimple_alloc_histogram_value):
15791         Set default values.
15792         (gimple_gen_interval_profiler): Remove last argument.
15793         (gimple_gen_pow2_profiler): Likewise.
15794         (gimple_gen_topn_values_profiler): Likewise.
15795         (gimple_gen_ic_profiler): Likewise.
15796         (gimple_gen_time_profiler): Likewise.
15797         (gimple_gen_average_profiler): Likewise.
15798         (gimple_gen_ior_profiler): Likewise.
15800 2019-08-22  Martin Sebor  <msebor@redhat.com>
15802         PR middle-end/91490
15803         * builtins.c (c_strlen): Rename argument and introduce new local.
15804         Set no-warning bit on original argument.
15805         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15806         Fold empty and zero constructors into empty strings.
15807         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15808         for missing initializers.
15809         * tree.c (build_string_literal): Handle optional argument.
15810         * tree.h (build_string_literal): Add defaulted argument.
15811         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15812         no-warning bit on original expression.
15814 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
15816         PR target/91481
15817         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15818         and UNSPEC_DARN_RAW.
15819         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15820         UNSPECV_DARN_RAW.
15821         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15822         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15823         (darn): Use an unspec_volatile, and UNSPECV_DARN.
15825 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
15827         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15828         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15829         * config/rs6000/rs6000.md (unspec): ... here.
15830         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15831         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15832         cmpeqb, *cmpeqb_internal): Delete, move to...
15833         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15834         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15835         cmpeqb, *cmpeqb_internal): ... here.
15837 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15839         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15840         intrinsics if __ARM_FP.
15841         Use __ARM_FEATURE_CRC32 ifdef guard.
15843 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15845         * config/arm/arm.md (neon_for_64bits): Remove.
15846         (avoid_neon_for_64bits): Remove.
15847         (arm_adddi3): Always split early.
15848         (arm_subdi3): Always split early.
15849         (negdi2): Remove Neon expansion.
15850         (split zero_extend): Split before reload.
15851         (split sign_extend): Split before reload.
15853 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15855         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15856         (qhs_extenddi_cstr): Likewise.
15857         * config/arm/arm.md (ashldi3): Always expand early.
15858         (ashlsi3): Likewise.
15859         (ashrsi3): Likewise.
15860         (zero_extend<mode>di2): Remove Neon variants.
15861         (extend<mode>di2): Likewise.
15862         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15863         (signed_shift_di3_neon): Likewise.
15864         (unsigned_shift_di3_neon): Likewise.
15865         (ashrdi3_neon_imm_noclobber): Likewise.
15866         (lshrdi3_neon_imm_noclobber): Likewise.
15867         (<shift>di3_neon): Likewise.
15868         (split extend): Remove DI extend split patterns.
15870 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15872         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15873         (split not): Add DImode not splitter.
15874         (anddi3): Remove pattern.
15875         (anddi3_insn): Likewise.
15876         (anddi_zesidi_di): Likewise.
15877         (anddi_sesdi_di): Likewise.
15878         (anddi_notdi_di): Likewise.
15879         (anddi_notzesidi_di): Likewise.
15880         (anddi_notsesidi_di): Likewise.
15881         (iordi3): Likewise.
15882         (iordi3_insn): Likewise.
15883         (iordi_zesidi_di): Likewise.
15884         (iordi_sesidi_di): Likewise.
15885         (xordi3): Likewise.
15886         (xordi3_insn): Likewise.
15887         (xordi_sesidi_di): Likewise.
15888         (xordi_zesidi_di): Likewise.
15889         (one_cmpldi2): Likewise.
15890         (one_cmpldi2_insn): Likewise.
15891         * config/arm/constraints.md: Remove De, Df, Dg constraints.
15892         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15893         alternative.
15894         (iwmmxt_xordi3): Likewise.
15895         (iwmmxt_anddi3): Likewise.
15896         * config/arm/neon.md (orndi3_neon): Remove pattern.
15897         (anddi_notdi_di): Likewise.
15898         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15899         (arm_iordi_operand_neon): Likewise.
15900         (arm_xordi_operand_neon): Likewise.
15901         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15902         (iordi_notzesidi_di): Likewise.
15903         (iordi_notdi_zesidi): Likewise.
15904         (iordi_notsesidi_di): Likewise.
15906 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
15908         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15909         insn.
15910         (iorsi3_compare0_scratch): Likewise.
15912 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
15914         * config/aarch64/aarch64-simd-builtins.def:
15915         (ld1x4): New.
15916         (st1x4): Likewise.
15917         * config/aarch64/aarch64-simd.md:
15918         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15919         (aarch64_st1x4<VALLDIF:mode>): Likewise.
15920         (aarch64_ld1_x4_<mode>): Likewise.
15921         (aarch64_st1_x4_<mode>): Likewise.
15922         * config/aarch64/arm_neon.h:
15923         (vld1_s8_x4): New function.
15924         (vld1q_s8_x4): Likewise.
15925         (vld1_s16_x4): Likewise.
15926         (vld1q_s16_x4): Likewise.
15927         (vld1_s32_x4): Likewise.
15928         (vld1q_s32_x4): Likewise.
15929         (vld1_u8_x4): Likewise.
15930         (vld1q_u8_x4): Likewise.
15931         (vld1_u16_x4): Likewise.
15932         (vld1q_u16_x4): Likewise.
15933         (vld1_u32_x4): Likewise.
15934         (vld1q_u32_x4): Likewise.
15935         (vld1_f16_x4): Likewise.
15936         (vld1q_f16_x4): Likewise.
15937         (vld1_f32_x4): Likewise.
15938         (vld1q_f32_x4): Likewise.
15939         (vld1_p8_x4): Likewise.
15940         (vld1q_p8_x4): Likewise.
15941         (vld1_p16_x4): Likewise.
15942         (vld1q_p16_x4): Likewise.
15943         (vld1_s64_x4): Likewise.
15944         (vld1_u64_x4): Likewise.
15945         (vld1_p64_x4): Likewise.
15946         (vld1q_s64_x4): Likewise.
15947         (vld1q_u64_x4): Likewise.
15948         (vld1q_p64_x4): Likewise.
15949         (vld1_f64_x4): Likewise.
15950         (vld1q_f64_x4): Likewise.
15951         (vst1_s8_x4): Likewise.
15952         (vst1q_s8_x4): Likewise.
15953         (vst1_s16_x4): Likewise.
15954         (vst1q_s16_x4): Likewise.
15955         (vst1_s32_x4): Likewise.
15956         (vst1q_s32_x4): Likewise.
15957         (vst1_u8_x4): Likewise.
15958         (vst1q_u8_x4): Likewise.
15959         (vst1_u16_x4): Likewise.
15960         (vst1q_u16_x4): Likewise.
15961         (vst1_u32_x4): Likewise.
15962         (vst1q_u32_x4): Likewise.
15963         (vst1_f16_x4): Likewise.
15964         (vst1q_f16_x4): Likewise.
15965         (vst1_f32_x4): Likewise.
15966         (vst1q_f32_x4): Likewise.
15967         (vst1_p8_x4): Likewise.
15968         (vst1q_p8_x4): Likewise.
15969         (vst1_p16_x4): Likewise.
15970         (vst1q_p16_x4): Likewise.
15971         (vst1_s64_x4): Likewise.
15972         (vst1_u64_x4): Likewise.
15973         (vst1_p64_x4): Likewise.
15974         (vst1q_s64_x4): Likewise.
15975         (vst1q_u64_x4): Likewise.
15976         (vst1q_p64_x4): Likewise.
15977         (vst1_f64_x4): Likewise.
15978         (vst1q_f64_x4): Likewise.
15980 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15982         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15984 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15985             Richard Sandiford  <richard.sandiford@arm.com>
15987         PR target/88839
15988         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15989         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15991 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15993         PR target/90724
15994         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15995         in reg if it fails aarch64_plus_operand predicate.
15997 2019-08-21  Richard Biener  <rguenther@suse.de>
15999         PR tree-optimization/91482
16000         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
16001         BUILT_IN_ASSUME_ALIGNED calls.
16003 2019-08-21  Richard Biener  <rguenther@suse.de>
16005         PR target/91498
16006         PR target/91503
16007         * config/i386/i386-features.c
16008         (general_scalar_chain::make_vector_copies): Copy stack temporary
16009         rtx when using it multiple times.
16010         (general_scalar_chain::convert_reg): Likewise.
16012 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16014         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
16016 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
16018         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
16019         catch more redundant zero initialization cases.
16020         (dse_dom_walker::dse_optimize_stmt): Likewise.
16022 2019-08-20  Richard Biener  <rguenther@suse.de>
16024         PR lto/91307
16025         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
16026         by collect2 when targetm.have_ctors_dtors which avoids dragging
16027         in temporary filenames from LTO input objects.
16029 2019-08-20  Richard Biener  <rguenther@suse.de>
16031         PR tree-optimization/37242
16032         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
16033         to (T)a + (T)b if we know that a + b does not overflow.
16035 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
16037         PR rtl-optimization/91347
16038         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
16039         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
16041 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16043         * calls.h (function_arg_info): Add a pass_by_reference field,
16044         defaulting to false.
16045         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
16046         when applying pass-by-reference semantics.
16047         (initialize_argument_information): Likewise.
16048         (emit_library_call_value_1): Likewise.
16049         * function.c (assign_parm_data_one): Remove passed_pointer field.
16050         (assign_parm_find_data_types): Don't set it.
16051         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
16052         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
16053         arg.pass_by_reference instead of passed_pointer.
16055 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16057         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
16058         into a single function_arg_info, updating its fields when we
16059         apply pass-by-reference and promotion semantics.  Use the
16060         function_arg_info to track the mode rather than keeping it in
16061         a separate local variable.
16062         (initialize_argument_information): Likewise.  Base the final
16063         arg_to_skip on this new function_arg_info rather than creating
16064         a new one from scratch.
16066 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16068         * function.c (assign_parm_data_one): Replace passed_type,
16069         promoted_mode and named_arg with a function_arg_info field.
16070         (assign_parm_find_data_types): Remove local variables and
16071         assign directly to "data".  Make data->passed_mode shadow
16072         data->arg.mode until promotion, then assign the promoted
16073         mode to data->arg.mode.
16074         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
16075         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
16076         (assign_parm_remove_parallels, assign_parm_setup_block_p)
16077         (assign_parm_setup_block, assign_parm_setup_reg)
16078         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
16079         arg.mode instead of promoted_mode, arg.type instead of passed_type
16080         and arg.named instead of named_arg.  Use data->arg for
16081         function_arg_info structures that had the field values passed_type,
16082         promoted_mode and named_arg.  Base other function_arg_infos on
16083         data->arg, changing the necessary properties.
16085 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16087         * calls.h (apply_pass_by_reference_rules): Declare.
16088         * calls.c (apply_pass_by_reference_rules): New function.
16089         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
16090         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
16091         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16092         * function.c (assign_parm_find_data_types): Likewise.
16093         * var-tracking.c (prepare_call_arguments): Likewise.
16095 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16097         * target.def (must_pass_in_stack): Take a function_arg_info instead
16098         of a mode and a type.
16099         * doc/tm.texi: Regenerate.
16100         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
16101         instead of a mode and a type.
16102         (must_pass_in_stack_var_size_or_pad): Likewise.
16103         * calls.c (must_pass_in_stack_var_size): Likewise.
16104         (must_pass_in_stack_var_size_or_pad): Likewise.
16105         (initialize_argument_information): Update call to
16106         targetm.calls.must_pass_in_stack.
16107         (must_pass_va_arg_on_stack): Likewise.
16108         * function.c (assign_parm_find_entry_rtl): Likewise.
16109         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
16110         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16111         (alpha_function_arg_advance): Likewise.
16112         * config/cr16/cr16.c (cr16_function_arg): Likewise.
16113         (cr16_function_arg_advance): Likewise.
16114         * config/cris/cris.c (cris_pass_by_reference): Likewise.
16115         (cris_arg_partial_bytes): Likewise.
16116         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16117         * config/lm32/lm32.c (lm32_function_arg): Likewise.
16118         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
16119         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
16120         * config/mips/mips.c (mips_pass_by_reference): Likewise.
16121         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
16122         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
16123         * config/sh/sh.c (sh_pass_by_reference): Likewise.
16124         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16125         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16126         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
16127         instead of a mode and a type.
16128         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
16129         (fr30_num_arg_regs): Likewise.
16130         (fr30_setup_incoming_varargs): Update calls accordingly.
16131         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16132         (fr30_function_arg_advance): Likewise.
16133         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
16134         instead of a mode and a type.
16135         * config/gcn/gcn.c (num_arg_regs): Likewise.
16136         (gcn_function_arg, gcn_function_arg_advance): Update calls to
16137         num_arg_regs and targetm.calls.must_pass_in_stack.
16138         (gcn_arg_partial_bytes): Likewise.
16139         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
16140         function_arg_info instead of a mode and a type.
16141         (classify_argument): Update call accordingly.
16142         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
16143         function_arg_info instead of a mode and a type.
16144         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
16145         Likewise.
16146         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
16147         (rs6000_parm_needs_stack): Update call accordingly.
16148         (setup_incoming_varargs): Likewise.
16150 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16152         * target.def (callee_copies): Take a function_arg_info instead
16153         of a mode, type and named flag.
16154         * doc/tm.texi: Regenerate.
16155         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
16156         instead of a mode, type and named flag.
16157         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16158         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16159         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16160         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
16161         instead of a mode, type and named flag.
16162         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16163         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16164         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16165         * calls.h (reference_callee_copied): Take a function_arg_info
16166         instead of a mode, type and named flag.
16167         * calls.c (reference_callee_copied): Likewise.
16168         (initialize_argument_information): Update call accordingly.
16169         (emit_library_call_value_1): Likewise.
16170         * function.c (gimplify_parameters): Likewise.
16171         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
16172         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
16173         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
16174         * config/c6x/c6x.c (c6x_callee_copies): Delete.
16175         (TARGET_CALLEE_COPIES): Define to
16176         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16177         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
16178         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16179         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16180         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
16181         instead of a mode, type and named flag.
16182         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
16183         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16184         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16185         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
16186         * config/msp430/msp430.c (msp430_callee_copies): Delete.
16187         (TARGET_CALLEE_COPIES): Define to
16188         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16189         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
16190         instead of a mode, type and named flag.
16191         * config/sh/sh.c (sh_callee_copies): Likewise.
16192         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
16193         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16194         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16196 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16198         * target.def (function_arg_advance): Take a function_arg_info instead
16199         of a mode, type and named flag.
16200         * doc/tm.texi: Regenerate.
16201         * targhooks.h (default_function_arg_advance): Take a function_arg_info
16202         instead of a mode, type and named flag.
16203         * targhooks.c (default_function_arg_advance): Likewise.
16204         * calls.c (initialize_argument_information): Update call to
16205         targetm.calls.function_arg_advance.
16206         (emit_library_call_value_1): Likewise.
16207         * dse.c (get_call_args): Likewise.
16208         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16209         * function.c (assign_parms, gimplify_parameters): Likewise.
16210         * var-tracking.c (prepare_call_arguments): Likewise.
16211         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
16212         function_arg_info instead of a mode, type and named flag.
16213         (aarch64_setup_incoming_varargs): Update call accordingly.
16214         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
16215         function_arg_info instead of a mode, type and named flag.
16216         (alpha_setup_incoming_varargs): Update call accordingly.
16217         * config/arc/arc.c (arc_function_arg_advance): Take a
16218         function_arg_info instead of a mode, type and named flag.
16219         (arc_setup_incoming_varargs): Update call accordingly.
16220         * config/arm/arm.c (arm_function_arg_advance): Take a
16221         function_arg_info instead of a mode, type and named flag.
16222         (cmse_func_args_or_return_in_stack): Update call accordingly.
16223         (arm_function_ok_for_sibcall): Likewise.
16224         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16225         * config/avr/avr.c (avr_function_arg_advance): Take a
16226         function_arg_info instead of a mode, type and named flag.
16227         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
16228         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
16229         (c6x_call_saved_register_used): Update call accordingly.
16230         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
16231         function_arg_info instead of a mode, type and named flag.
16232         * config/cris/cris.c (cris_function_arg_advance): Likewise.
16233         * config/csky/csky.c (csky_function_arg_advance): Likewise.
16234         (csky_setup_incoming_varargs): Update call accordingly.
16235         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
16236         function_arg_info instead of a mode, type and named flag.
16237         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
16238         * config/frv/frv.c (frv_function_arg_advance): Likewise.
16239         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
16240         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
16241         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
16242         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16243         (ix86_setup_incoming_varargs): Update call accordingly.
16244         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
16245         function_arg_info instead of a mode, type and named flag.
16246         (ia64_setup_incoming_varargs): Update call accordingly.
16247         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
16248         function_arg_info instead of a mode, type and named flag.
16249         (iq2000_expand_prologue): Update call accordingly.
16250         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
16251         function_arg_info instead of a mode, type and named flag.
16252         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
16253         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
16254         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16255         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
16256         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16257         Likewise.
16258         (microblaze_expand_prologue): Update call accordingly.
16259         * config/mips/mips.c (mips_function_arg_advance): Take a
16260         function_arg_info instead of a mode, type and named flag.
16261         (mips_setup_incoming_varargs): Update call accordingly.
16262         (mips_output_args_xfer): Likewise.
16263         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
16264         function_arg_info instead of a mode, type and named flag.
16265         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
16266         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
16267         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
16268         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
16269         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
16270         (nios2_setup_incoming_varargs): Update call accordingly.
16271         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
16272         function_arg_info instead of a mode, type and named flag.
16273         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
16274         * config/pa/pa.c (pa_function_arg_advance): Likewise.
16275         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
16276         * config/pru/pru.c (pru_function_arg_advance): Likewise.
16277         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
16278         (riscv_setup_incoming_varargs): Update call accordingly.
16279         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
16280         function_arg_info instead of a mode, type and named flag.
16281         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
16282         Likewise.
16283         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
16284         (rs6000_parm_needs_stack): Update call accordingly.
16285         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16286         instead of a mode, type and named flag.
16287         * config/s390/s390.c (s390_function_arg_advance): Likewise.
16288         (s390_call_saved_register_used): Update call accordingly.
16289         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16290         instead of a mode, type and named flag.
16291         (sh_output_mi_thunk): Update call accordingly.
16292         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16293         function_arg_info instead of a mode, type and named flag.
16294         * config/spu/spu.c (spu_function_arg_advance): Likewise.
16295         (spu_setup_incoming_varargs): Update call accordingly.
16296         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16297         function_arg_info instead of a mode, type and named flag.
16298         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16299         (tilegx_setup_incoming_varargs): Update call accordingly.
16300         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16301         function_arg_info instead of a mode, type and named flag.
16302         (tilegx_setup_incoming_varargs): Update call accordingly.
16303         * config/v850/v850.c (v850_function_arg_advance): Take a
16304         function_arg_info instead of a mode, type and named flag.
16305         * config/vax/vax.c (vax_function_arg_advance): Likewise.
16306         * config/visium/visium.c (visium_function_arg_advance): Likewise.
16307         (visium_setup_incoming_varargs): Update call accordingly.
16308         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16309         function_arg_info instead of a mode, type and named flag.
16311 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16313         * target.def (function_arg, function_incoming_arg): Take a
16314         function_arg_info instead of a mode, tree and named flag.
16315         * doc/tm.texi: Regenerate.
16316         * targhooks.h (default_function_arg): Take a function_arg_info
16317         instead of a mode, tree and named flag.
16318         (default_function_incoming_arg): Likewise.
16319         * targhooks.c (default_function_arg): Likewise.
16320         (default_function_incoming_arg): Likewise.
16321         * calls.h (function_arg_info::end_marker_p): New function.
16322         (function_arg_info::end_marker): Likewise.
16323         * calls.c (prepare_call_address, initialize_argument_information)
16324         (expand_call, emit_library_call_value_1): Update calls to
16325         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16326         * dse.c: Include calls.h.
16327         (get_call_args): Update call to targetm.calls.function_arg.
16328         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16329         * var-tracking.c (prepare_call_arguments): Likewise.
16330         * function.c (assign_parm_find_entry_rtl): Update call to
16331         targetm.calls.function_incoming_arg.
16332         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16333         function_arg_info instead of a mode, tree and named flag.
16334         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16335         * config/arc/arc.c (arc_function_arg): Likewise.
16336         * config/arm/arm.c (arm_function_arg): Likewise.
16337         (cmse_func_args_or_return_in_stack): Update call accordingly.
16338         (arm_function_ok_for_sibcall): Likewise.
16339         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16340         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16341         instead of a mode, tree and named flag.
16342         * config/bfin/bfin.c (bfin_function_arg): Likewise.
16343         * config/c6x/c6x.c (c6x_function_arg): Likewise.
16344         (c6x_call_saved_register_used): Update call accordingly.
16345         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16346         instead of a mode, tree and named flag.
16347         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16348         (cris_function_arg_1): Likewise.
16349         * config/csky/csky.c (csky_function_arg): Likewise.
16350         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16351         * config/fr30/fr30.c (fr30_function_arg): Likewise.
16352         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16353         (frv_function_arg_1): Likewise.
16354         * config/ft32/ft32.c (ft32_function_arg): Likewise.
16355         * config/gcn/gcn.c (gcn_function_arg): Likewise.
16356         * config/h8300/h8300.c (h8300_function_arg): Likewise.
16357         * config/i386/i386.c (ix86_function_arg): Likewise.
16358         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16359         (ia64_function_arg_1): Likewise.
16360         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16361         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16362         accordingly.
16363         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16364         instead of a mode, tree and named flag.
16365         * config/m32c/m32c.c (m32c_function_arg): Likewise.
16366         * config/m32r/m32r.c (m32r_function_arg): Likewise.
16367         * config/m68k/m68k.c (m68k_function_arg): Likewise.
16368         * config/mcore/mcore.c (mcore_function_arg): Likewise.
16369         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16370         (microblaze_expand_prologue): Update call accordingly.
16371         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16372         instead of a mode, tree and named flag.
16373         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16374         (mmix_function_arg_1): Likewise.
16375         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16376         * config/moxie/moxie.c (moxie_function_arg): Likewise.
16377         * config/msp430/msp430.c (msp430_function_arg): Likewise.
16378         * config/nds32/nds32.c (nds32_function_arg): Likewise.
16379         * config/nios2/nios2.c (nios2_function_arg): Likewise.
16380         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16381         (nvptx_function_incoming_arg): Likewise.
16382         * config/or1k/or1k.c (or1k_function_arg): Likewise.
16383         * config/pa/pa.c (pa_function_arg): Likewise.
16384         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16385         * config/pru/pru.c (pru_function_arg): Likewise.
16386         * config/riscv/riscv.c (riscv_function_arg): Likewise.
16387         * config/rl78/rl78.c (rl78_function_arg): Likewise.
16388         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16389         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16390         (rs6000_parm_needs_stack): Update call accordingly.
16391         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16392         instead of a mode, tree and named flag.
16393         * config/s390/s390.c (s390_function_arg): Likewise.
16394         (s390_call_saved_register_used): Update call accordingly.
16395         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16396         instead of a mode, tree and named flag.
16397         (sh_output_mi_thunk): Update call accordingly.
16398         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16399         (sparc_function_incoming_arg): Take a function_arg_info instead of
16400         a mode, tree and named flag.
16401         * config/spu/spu.c (spu_function_arg): Likewise.
16402         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16403         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16404         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16405         * config/v850/v850.c (v850_function_arg): Likewise.
16406         * config/vax/vax.c (vax_function_arg): Likewise.
16407         * config/visium/visium.c (visium_function_arg): Likewise.
16408         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16409         (xtensa_function_incoming_arg): Likewise.
16411 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16413         * target.def (setup_incoming_varargs): Take a function_arg_info
16414         instead of a mode and tree.
16415         * doc/tm.texi: Regenerate.
16416         * targhooks.h (default_setup_incoming_varargs): Take a
16417         function_arg_info instead of a mode and tree.
16418         * targhooks.c (default_setup_incoming_varargs): Likewise.
16419         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16420         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16421         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16422         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16423         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16424         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16425         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16426         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16427         Likewise.
16428         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16429         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16430         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16431         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16432         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16433         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16434         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16435         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16436         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16437         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16438         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16439         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16440         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16441         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16442         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16443         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16444         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16445         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16446         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16447         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16448         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16449         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16450         * function.c (assign_parms_setup_varargs): Update call to
16451         targetm.calls.setup_incoming_varargs.
16453 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16455         * target.def (pass_by_reference): Take a function_arg_info instead
16456         of a mode, type and named flag.
16457         * doc/tm.texi: Regenerate.
16458         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16459         accordingly.
16460         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16461         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16462         function_arg_info instead of a mode, type and named flag.
16463         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16464         * calls.h (pass_by_reference): Take a function_arg_info instead of a
16465         mode, type and named flag.
16466         * calls.c (pass_by_reference): Likewise.
16467         (pass_va_arg_by_reference): Update call accordingly.
16468         (initialize_argument_information): Likewise.
16469         (emit_library_call_value_1): Likewise.
16470         * function.c (assign_parm_find_data_types): Likewise.
16471         * var-tracking.c (prepare_call_arguments): Likewise.
16472         * stor-layout.c: Include calls.h.
16473         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16474         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16475         function_arg_info instead of a mode, type and named flag.
16476         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16477         * config/arc/arc.c (arc_pass_by_reference): Likewise.
16478         * config/arm/arm.c (arm_pass_by_reference): Likewise.
16479         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16480         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16481         (c6x_call_saved_register_used): Update call to pass_by_reference.
16482         * config/cris/cris.c (cris_pass_by_reference): Take a
16483         function_arg_info instead of a mode, type and named flag.
16484         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16485         function_arg_info instead of a mode, type and named flag.
16486         (epiphany_arg_partial_bytes): Update call accordingly.
16487         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16488         function_arg_info instead of a mode, type and named flag.
16489         (ft32_arg_partial_bytes): Update call accordingly.
16490         * config/i386/i386.c (ix86_pass_by_reference): Take a
16491         function_arg_info instead of a mode, type and named flag.
16492         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16493         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16494         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16495         (m32r_return_in_memory): Update call accordingly.
16496         * config/mips/mips.c (mips_pass_by_reference): Take a
16497         function_arg_info instead of a mode, type and named flag.
16498         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16499         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16500         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16501         (moxie_arg_partial_bytes): Update call accordingly.
16502         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16503         function_arg_info instead of a mode, type and named flag.
16504         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16505         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16506         * config/pa/pa.c (pa_pass_by_reference): Likewise.
16507         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16508         (riscv_return_in_memory): Update call accordingly.
16509         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16510         function_arg_info instead of a mode, type and named flag.
16511         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16512         (rs6000_parm_needs_stack): Update call to pass_by_reference.
16513         * config/s390/s390.c (s390_pass_by_reference): Take a
16514         function_arg_info instead of a mode, type and named flag.
16515         (s390_call_saved_register_used): Update call accordingly.
16516         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16517         instead of a mode, type and named flag.
16518         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16519         * config/spu/spu.c (spu_pass_by_reference): Likewise.
16520         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16521         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16522         * config/v850/v850.c (v850_pass_by_reference): Likewise.
16523         * config/visium/visium.c (visium_pass_by_reference): Likewise.
16525 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16527         * target.def (arg_partial_bytes): Take a function_arg_info instead
16528         of a mode, type and named flag.
16529         * doc/tm.texi: Regenerate.
16530         * target.h (function_arg_info): Declare.
16531         * calls.h (function_arg_info): New class.
16532         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16533         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16534         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16535         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16536         * calls.c (initialize_argument_information): Update call to
16537         targetm.calls.partial_bytes.
16538         (emit_library_call_value_1): Likewise.
16539         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16540         * function.c (assign_parm_find_entry_rtl): Likewise.
16541         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16542         function_arg_info instead of a mode, type and named flag.
16543         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16544         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16545         (cmse_func_args_or_return_in_stack): Update accordingly.
16546         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16547         function_arg_info instead of a mode, type and named flag.
16548         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16549         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16550         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16551         * config/fr30/fr30.c: Include calls.h.
16552         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16553         type and named flag.
16554         * config/frv/frv.c: Include calls.h.
16555         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16556         type and named flag.
16557         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16558         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16559         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16560         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16561         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16562         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16563         * config/microblaze/microblaze.c (function_arg_partial_bytes):
16564         Likewise.
16565         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16566         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16567         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16568         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16569         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16570         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16571         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16572         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16573         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16574         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16575         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16576         (rs6000_parm_needs_stack): Update call accordingly.
16577         * config/sh/sh.c (sh_arg_partial_bytes): Take a
16578         function_arg_info instead of a mode, type and named flag.
16579         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16580         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16582 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16584         * calls.h (must_pass_va_arg_in_stack): Declare.
16585         * calls.c (must_pass_va_arg_in_stack): New function.
16586         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16587         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16588         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16589         Likewise.
16590         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16592 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16594         * calls.h (pass_va_arg_by_reference): Declare.
16595         * calls.c (pass_va_arg_by_reference): New function.
16596         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16597         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16598         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16599         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16600         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16601         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16602         (mips_gimplify_va_arg_expr): Likewise.
16603         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16604         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16605         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16606         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16607         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16608         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16609         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16610         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16611         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16612         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16613         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16615 2019-08-20  Richard Biener  <rguenther@suse.de>
16617         PR target/91498
16618         * config/i386/i386-features.c (general_scalar_chain::convert_op):
16619         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16620         (convert_scalars_to_vector): Add timode_p parameter and use it
16621         to guard TImode-only operation.
16622         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16623         (pass_stv::execute): Pass down timode_p.
16625 2019-08-20  Lili Cui  <lili.cui@intel.com>
16627         * common/config/i386/i386-common.c
16628         (processor_names): Add tigerlake and cooperlake.
16629         (processor_alias_table): Add tigerlake and cooperlake.
16630         * config.gcc: Add -march=tigerlake and cooperlake.
16631         * config/i386/driver-i386.c
16632         (host_detect_local_cpu): Detect tigerlake and cooperlake.
16633         Add "has_avx" to classify processor.
16634         * config/i386/i386-builtins.c (processor_model) :
16635         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16636         (arch_names_table): Add tigerlake and cooperlake.
16637         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16638         and PROCESSOR_COOPERLAKE.
16639         * config/i386/i386-c.c
16640         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16641         * config/i386/i386-options.c
16642         (m_TIGERLAKE): Define.
16643         (m_COOPERLAKE): Ditto.
16644         (m_CORE_AVX512): Ditto.
16645         (processor_cost_table): Add cascadelake.
16646         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16647         * config/i386/i386.h
16648         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16649         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16650         (PTA_MOVDIRI): Ditto.
16651         (PTA_MOVDIR64B): Ditto.
16652         (PTA_COOPERLAKE): Ditto.
16653         (PTA_TIGERLAKE): Ditto.
16654         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16655         * doc/extend.texi: Add tigerlake and cooperlake.
16656         * doc/invoke.texi: Add tigerlake and cooperlake.
16658 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
16660         * doc/install.texi (Specific, alpha): Remove note to use
16661         binutils 2.11.2 or later.
16663 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16665         PR middle-end/89544
16666         * function.c (assign_parm_find_stack_rtl): Use larger alignment
16667         when possible.
16669 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
16671         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16672         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16673         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16674         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16675         * config/aarch64/constraints.md (Dt): New constraint
16676         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16678 2019-08-19  Richard Biener  <rguenther@suse.de>
16680         PR tree-optimization/91403
16681         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16682         cases we can handle with tail-recursion...
16683         (follow_ssa_edge_expr): ... here.  Do so.
16685 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
16687         PR target/91441
16688         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16689         implemented for -fsanitize=kernel-address, and merge check logic
16690         with -fsanitize=address.
16692 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
16694         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16695         for cpu and machine.  Factor 64/32b builtins.
16697 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
16699         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16700         gone, point to sourceforge.net.
16702 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
16703         
16704         * doc/ux.texi (User Experience Guidelines): Update reference.
16706 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
16707         
16708         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16709         not LGPL".
16711 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
16713         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16714         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
16716 2019-08-16  Martin Sebor  <msebor@redhat.com>
16718         * tree.def (TYPE_SIZE): Clarify.
16719         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16721 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16723         PR tree-optimization/91109
16724         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16725         * lra.c (lra): Use lra_need_for_scratch_reg_p.
16726         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16728 2019-08-16  Uroš Bizjak  <ubizjak@gmail.com>
16730         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16731         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16732         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16733         (uavg<mode>3_ceil): New expander.
16734         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16735         mode iterator when creating CONST1_RTX.
16736         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16737         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16738         mode iterator for const1_operand predicate.
16740 2019-08-16  Richard Biener  <rguenther@suse.de>
16742         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16743         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16744         follow_ssa_edge.
16745         (follow_ssa_edge_in_condition_phi_branch): Likewise.
16746         (analyze_evolution_in_loop): Likewise.
16747         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16748         (follow_ssa_edge_expr): ... here.  Refactor code.
16750 2019-08-16  Richard Biener  <rguenther@suse.de>
16752         PR target/91469
16753         * config/i386/i386-features.c
16754         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16756 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16758         PR other/91255
16759         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16760         only if subst_name matches curr_attr string.
16762 2019-08-16  Richard Biener  <rguenther@suse.de>
16764         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16765         stmt at gsi_p, instead replace it with a NOP removed later.
16766         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16767         that became dead because of that.
16769 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
16771         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16772         for which we can't represent a range.
16773         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16774         set_varying.
16775         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16776         Set VR_UNDEFINED if type is not supported.
16777         * tree-ssanames.c (get_range_info): Pass type to set_varying.
16778         * tree-vrp.c (value_range_base::check): Assert that a varying has
16779         min/max set.
16780         (value_range_base::equal_p): Early bail for undefines.
16781         (value_range_base::set_varying): Accept a type.
16782         (value_range::set_varying): Same.
16783         (value_range_base::type): VARYING can have a type, while UNDEFINE
16784         is typeless.
16785         (value_range_base::dump): Print type for VARYING nodes.
16786         (value_range_base::set): Add type to VARYING.
16787         (extract_range_from_multiplicative_op): Pass type to set_varying.
16788         (extract_range_from_binary_expr): Same.
16789         (value_range_base::intersect_helper): Same.
16790         (value_range_base::union_helper): Same.
16791         (value_range_base::normalize_symbolics): Same.
16792         (determine_value_range_1): Same.
16793         * tree-vrp.h (class value_range_base): Add type to set_varying.
16794         Add prototype for dump(void).
16795         Add prototype for supports_type_p.
16796         (class value_range): Add type to set_varying.
16797         Add prototype for dump(void).
16798         * vr-values.c (set_value_range_to_truthvalue): Pass type to
16799         set_varying.
16800         (vr_values::get_lattice_entry): Set varying even if propagation
16801         finished.
16802         Pass type to set_varying.
16803         (vr_values::get_value_range): Remove vr_const_varying.
16804         Reallocate the lattice if needed.
16805         (vr_values::update_value_range): Pass type to set_varying.
16806         (vr_values::extract_range_for_var_from_comparison_expr): Same.
16807         (vr_values::extract_range_from_binary_expr): Same.
16808         (vr_values::extract_range_from_unary_expr): Same.
16809         (vr_values::extract_range_from_cond_expr): Same.
16810         (vr_values::check_for_binary_op_overflow): Same.
16811         (vr_values::extract_range_basic): Same.
16812         (vr_values::extract_range_from_assignment): Same.
16813         (vr_values::vr_values): Increase size of num_vr_values.
16814         (vr_values::extract_range_from_phi_node): Pass type to
16815         set_varying.
16817 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
16819         PR target/90878
16820         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16821         for costs of hard register moves.
16822         (ix86_register_move_cost): Likewise.
16823         * config/i386/i386.h (processor_costs): Move costs of hard
16824         register moves to hard_register.  Add int_load, int_store,
16825         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16826         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16827         for costs of RTL expressions.
16828         * config/i386/x86-tune-costs.h: Move costs of hard register
16829         moves to hard_register.  Duplicate int_load, int_store,
16830         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16831         sse_load, sse_store for costs of RTL expressions.
16833 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16835         * target.def (setup_incoming_vararg_bounds): Remove.
16836         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16837         * doc/tm.texi: Regenerate.
16838         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16839         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16840         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16841         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16843 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16845         MSP430: Fix lines over 80 characters long in
16846         config/msp430/*.{c,h} files
16848         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16849         specifier in string.
16850         (msp430_select_hwmult_lib): Split line more than 80 characters long.
16851         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16852         redundant old comment.
16853         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16854         Split line more than 80 characters long.
16855         * config/msp430/msp430.c (msp430_option_override): Likewise.
16856         (msp430_return_in_memory): Likewise.
16857         (msp430_gimplify_va_arg_expr): Likewise.
16858         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16859         (msp430_legitimate_constant): Likewise.
16860         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16861         (msp430_attr): Likewise.
16862         (msp430_data_attr): Likewise.
16863         (msp430_start_function): Likewise.
16864         (gen_prefix): Likewise.
16865         (msp430_init_sections): Likewise.
16866         (msp430_select_section): Likewise.
16867         (msp430_function_section): Likewise.
16868         (msp430_unique_section): Likewise.
16869         (msp430_output_aligned_decl_common): Likewise.
16870         (msp430_do_not_relax_short_jumps): Likewise.
16871         (msp430_init_builtins): Likewise.
16872         (msp430_expand_delay_cycles): Likewise.
16873         (msp430_expand_prologue): Likewise.
16874         (msp430_expand_epilogue): Likewise.
16875         (msp430_expand_helper): Likewise.
16876         (msp430_split_movsi): Likewise.
16877         (msp430_print_operand): Likewise.
16878         (msp430_return_addr_rtx): Likewise.
16879         (msp430x_extendhisi): Likewise.
16880         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16881         (ASM_SPEC): Likewise.
16882         Remove very obvious comments.
16883         (LIB_SPEC): Split line more than 80 characters long.
16884         (EH_RETURN_HANDLER_RTX): Likewise.
16885         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16887 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16889         MSP430: Fix whitespace errors and incorrect indentation in
16890         config/msp430/*.{c,h} files
16892         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16893         (msp430_select_hwmult_lib): Likewise.
16894         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16895         (msp430_extract_mcu_data): Likewise.
16896         (struct t_msp430_mcu_data): Likewise.
16897         * config/msp430/msp430.c (struct machine_function): Remove whitespace
16898         before left square bracket.
16899         (msp430_option_override): Fix indentation.
16900         (msp430_hard_regno_nregs_with_padding): Likewise.
16901         (msp430_initial_elimination_offset): Likewise.
16902         (msp430_special_register_convention_p): Remove whitespace before left
16903         square bracket and after exclamation mark.
16904         (msp430_evaluate_arg): Likewise.
16905         (msp430_callee_copies): Fix indentation.
16906         (msp430_gimplify_va_arg_expr): Likewise.
16907         (msp430_function_arg_advance): Remove whitespace before left square
16908         bracket.
16909         (reg_ok_for_addr): Likewise.
16910         (msp430_preserve_reg_p): Likewise.
16911         (msp430_compute_frame_info): Likewise.
16912         (msp430_asm_output_addr_const_extra): Add space between function name
16913         and open parenthesis.
16914         (has_section_name): Fix indentation.
16915         (msp430_attr): Remove trailing whitespace.
16916         (msp430_section_attr): Likewise.
16917         (msp430_data_attr): Likewise.
16918         (struct msp430_attribute_table): Fix comment and whitespace.
16919         (msp430_start_function): Remove whitespace before left square bracket.
16920         Add space between function name and open parenthesis.
16921         (msp430_select_section): Remove trailing whitespace.
16922         (msp430_section_type_flags): Remove trailing whitespace.
16923         (msp430_unique_section): Remove space before closing parenthesis.
16924         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16925         (msp430_builtins): Remove whitespace before left square bracket.
16926         (msp430_init_builtins): Fix indentation.
16927         (msp430_expand_prologue): Remove whitespace before left square bracket.
16928         Remove space before closing parenthesis.
16929         (msp430_expand_epilogue): Remove whitespace before left square bracket.
16930         (msp430_split_movsi): Remove space before closing parenthesis.
16931         (helper_function_name_mappings): Fix indentation.
16932         (msp430_use_f5_series_hwmult): Fix whitespace.
16933         (use_32bit_hwmult): Likewise.
16934         (msp430_no_hwmult): Likewise.
16935         (msp430_output_labelref): Remove whitespace before left square bracket.
16936         (msp430_print_operand_raw): Likewise.
16937         (msp430_print_operand_addr): Likewise.
16938         (msp430_print_operand): Add two spaces after '.' in comment.
16939         Fix trailing whitespace.
16940         (msp430x_extendhisi): Fix indentation.
16941         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16942         tab.
16943         (PC_REGNUM): Likewise.
16944         (STACK_POINTER_REGNUM): Likewise.
16945         (CC_REGNUM): Likewise.
16947 2019-08-15  Richard Biener  <rguenther@suse.de>
16949         PR target/91454
16950         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16951         helper.
16952         (general_scalar_chain::make_vector_copies): Use it.
16954 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16956         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16958 2019-08-15  Martin Liska  <mliska@suse.cz>
16960         * tree-ssa-dce.c (propagate_necessity): We can't reach now
16961         operators with no arguments.
16962         (eliminate_unnecessary_stmts): Likewise here.
16964 2019-08-15  Uroš Bizjak  <ubizjak@gmail.com>
16966         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16967         <case COMPARE>: Revert 2019-08-14 change.
16968         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
16969         for (TARGET_64BIT || mode != DImode).
16971 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
16973         * tree-vrp.c (value_range_base::set): Merge in code from
16974         value_range_base::set_and_canonicalize.
16975         Enforce canonicalization at set time.
16976         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16977         (value_range_base::set_undefined): Inline call to set().
16978         (value_range_base::set_varying): Same.
16979         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16980         (vrp_val_max): New argument handle_pointers.
16981         (vrp_val_min): Same.
16982         (ranges_from_anti_range): Same.
16983         (extract_range_into_wide_ints): Use tree argument instead of sign
16984         and precision.
16985         (extract_range_from_multiplicative_op): Take in tree type instead
16986         of precision and sign.  Adapt function for canonicalized ranges.
16987         (extract_range_from_binary_expr): Pass type to
16988         extract_range_from_multiplicative_op.
16989         Adapt for canonicalized ranges.
16990         (extract_range_from_unary_expr): Same.
16991         (value_range_base::intersect_helper): Adjust for canonicalized
16992         ranges.
16993         (value_range_base::union_helper): Same.
16994         (value_range_base::normalize_symbolics): New.
16995         * tree-vrp.h (class value_range_base): Remove
16996         set_and_canonicalize.
16997         New prototype for normalize_symbolics.
16998         (class value_range): Remove set_and_canonicalize.
16999         (vrp_val_min): Adjust prototype.
17000         (vrp_val_max): Same.
17001         * vr-values.c
17002         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
17003         instead of set_and_canonicalize.
17005 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17007         PR middle-end/91444
17008         * tree-vect-stmts.c (vectorizable_call): Check that the function
17009         is a BUILT_IN_MD function before passing it to
17010         targetm.vectorize.builtin_md_vectorized_function.
17012 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17014         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
17015         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
17016         (aarch64_select_early_remat_modes): Use it.
17018 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17020         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
17021         16 for SVE predicates even if they are fixed-length.
17023 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17025         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
17026         operand order match the MOV /Z alias.
17028 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17030         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
17031         the vector pattern as an aarch64_svpattern argument.  Update the
17032         overloaded caller accordingly.
17033         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
17034         (aarch64_output_sve_vector_inc_dec): Likewise.
17036 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17038         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
17039         multiplication case, try to compute VG * (lowest set bit) directly
17040         rather than always basing the multiplication on VG.  Use
17041         expand_mult for the multiplication if we can.
17043 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17045         * config/aarch64/aarch64-protos.h
17046         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
17047         (aarch64_sve_inc_dec_immediate_p): Rename to...
17048         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17049         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
17050         (aarch64_output_sve_scalar_inc_dec): Declare.
17051         (aarch64_output_sve_inc_dec_immediate): Rename to...
17052         (aarch64_output_sve_vector_inc_dec): ...this.
17053         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
17054         (aarch64_output_sve_scalar_inc_dec): New functions.
17055         (aarch64_output_sve_addvl_addpl): Remove the base and offset
17056         arguments.  Only handle true ADDVL and ADDPL instructions;
17057         don't emit an INC or DEC.
17058         (aarch64_sve_inc_dec_immediate_p): Rename to...
17059         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17060         (aarch64_output_sve_inc_dec_immediate): Rename to...
17061         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
17062         aarch64_sve_vector_inc_dec_immediate_p.
17063         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
17064         (aarch64_sve_plus_immediate): New predicates.
17065         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
17066         rather than aarch64_sve_addvl_addpl_immediate.
17067         (aarch64_sve_inc_dec_immediate): Rename to...
17068         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
17069         aarch64_sve_vector_inc_dec_immediate_p.
17070         (aarch64_sve_add_operand): Update accordingly.
17071         * config/aarch64/constraints.md (Uai): New constraint.
17072         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
17073         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
17074         operand into a register if it satisfies aarch64_sve_plus_immediate.
17075         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
17076         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
17077         * config/aarch64/aarch64-sve.md (add<mode>3): Call
17078         aarch64_output_sve_vector_inc_dec instead of
17079         aarch64_output_sve_inc_dec_immediate.
17081 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17083         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
17084         (UNSPEC_REVW): New constants.
17085         (elem_bits): New mode attribute.
17086         (SVE_INT_UNARY): New int iterator.
17087         (optab): Handle UNSPEC_REV[BHW].
17088         (sve_int_op): New int attribute.
17089         (min_elem_bits): Handle VNx16QI and the predicate modes.
17090         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
17091         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
17092         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
17093         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
17094         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
17095         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
17096         unspecs based on the total width of the reversed data.
17097         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
17098         reinterpret followed by a subreg on big-endian targets.
17100 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17101             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17103         * config/aarch64/aarch64-sve.md
17104         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
17105         alternatives in which one of the inputs is in the same register
17106         as the output.
17108 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17110         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
17111         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
17113 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17115         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
17116         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
17118 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17119             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17121         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
17122         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
17123         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
17125 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17126             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17128         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
17129         Add an alternative that uses reversed shifts.
17131 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17133         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
17134         struct.
17136 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17138         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
17139         a commutativity marker.
17141 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17142             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17144         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
17145         (aarch64_prepare_sve_cond_int_fma): Declare.
17146         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
17147         (aarch64_prepare_sve_int_fma): New functions.
17148         (aarch64_prepare_sve_cond_int_fma): Likewise.
17149         * config/aarch64/aarch64-sve.md
17150         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
17151         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
17152         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
17153         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
17154         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
17155         (*madd<mode>): Rename to...
17156         (*fma<mode>4): ...this.
17157         (*msub<mode>): Rename to...
17158         (*fnma<mode>4): ...this.
17160 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17161             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17163         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
17164         Print 2.0 naturally.
17165         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
17166         * config/aarch64/predicates.md
17167         (aarch64_sve_float_negated_arith_immediate): New predicate,
17168         renamed from aarch64_sve_float_arith_with_sub_immediate.
17169         (aarch64_sve_float_arith_with_sub_immediate): Test for both
17170         positive and negative constants.
17171         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
17172         or an aarch64_sve_float_arith_with_sub_immediate.
17173         * config/aarch64/constraints.md (vsN): Use
17174         aarch64_sve_float_negated_arith_immediate.
17175         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
17176         iterator.
17177         (sve_pred_fp_rhs2_immediate): New int attribute.
17178         * config/aarch64/aarch64-sve.md
17179         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
17180         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
17181         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
17182         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
17183         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
17184         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
17186 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17187             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17189         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
17190         (*aarch64_cond_abd<SVE_F:mode>_3)
17191         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
17193 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17194             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17196         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
17197         (*aarch64_cond_<su>abd<mode>_any): New patterns.
17199 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17200             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17202         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
17203         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
17204         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
17205         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
17206         optabs.
17207         * optabs.h (create_convert_operand_from): Expand comment.
17208         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
17209         when mapping scalar rtxes to vector operands.
17210         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
17211         ashiftrt and lshiftrt.
17212         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
17213         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
17214         (*cond_<optab><mode>_any_const): New patterns.
17216 2019-08-15  Martin Liska  <mliska@suse.cz>
17218         PR ipa/91438
17219         * cgraph.c (cgraph_node::remove): When setting
17220         n->origin = NULL for all nested functions, reset
17221         also next_nested.
17223 2019-08-15  Martin Liska  <mliska@suse.cz>
17225         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
17226         and next_nested.
17228 2019-08-15  Martin Liska  <mliska@suse.cz>
17230         PR ipa/91404
17231         * passes.c (order): Remove.
17232         (uid_hash_t): Likewise).
17233         (remove_cgraph_node_from_order): Remove from set
17234         of pointers (cgraph_node *).
17235         (insert_cgraph_node_to_order): New.
17236         (duplicate_cgraph_node_to_order): New.
17237         (do_per_function_toporder): Register all 3 cgraph hooks.
17238         Skip removed_nodes now as we know about all of them.
17240 2019-08-14  Uroš Bizjak  <ubizjak@gmail.com>
17242         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
17243         <case E_V8QImode>: Use vector_set path for
17244         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17245         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
17246         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17248 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17250         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
17252 2019-08-14  Martin Sebor  <msebor@redhat.com>
17254         PR tree-optimization/91294
17255         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
17256         source length as exact.
17258 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
17260         * doc/extend.texi: Add "noinit" attribute documentation.
17261         * doc/sourcebuild.texi: Add noinit effective target documentation.
17262         * varasm.c (default_section_type_flags): Add support for "noinit"
17263         section.
17264         (default_elf_select_section): Add support for "noinit" attribute.
17265         * config/msp430/msp430.c (msp430_attribute_table): Remove
17266         "noinit" entry.
17268 2019-08-14  Richard Biener  <rguenther@suse.de>
17269             Uroš Bizjak  <ubizjak@gmail.com>
17271         PR target/91154
17272         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
17273         mode arguments.
17274         (scalar_chain::smode): New member.
17275         (scalar_chain::vmode): Likewise.
17276         (dimode_scalar_chain): Rename to...
17277         (general_scalar_chain): ... this.
17278         (general_scalar_chain::general_scalar_chain): Take mode arguments.
17279         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
17280         base with TImode and V1TImode.
17281         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
17282         (general_scalar_chain::vector_const_cost): Adjust for SImode
17283         chains.
17284         (general_scalar_chain::compute_convert_gain): Likewise.  Add
17285         {S,U}{MIN,MAX} support.
17286         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17287         (general_scalar_chain::make_vector_copies): Likewise.  Handle
17288         non-DImode chains appropriately.
17289         (general_scalar_chain::convert_reg): Likewise.
17290         (general_scalar_chain::convert_op): Likewise.
17291         (general_scalar_chain::convert_insn): Likewise.  Add
17292         fatal_insn_not_found if the result is not recognized.
17293         (convertible_comparison_p): Pass in the scalar mode and use that.
17294         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
17295         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
17296         (scalar_to_vector_candidate_p): Remove by inlining into single
17297         caller.
17298         (general_remove_non_convertible_regs): Rename from
17299         dimode_remove_non_convertible_regs.
17300         (remove_non_convertible_regs): Remove by inlining into single caller.
17301         (convert_scalars_to_vector): Handle SImode and DImode chains
17302         in addition to TImode chains.
17303         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17304         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17305         (*<maxmin>di3_doubleword): Likewise.
17307 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17308             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17310         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17311         (*cond_bic<mode>_any): New patterns.
17313 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17315         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17316         take the equivalent mask, as well as a bit count.
17317         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17318         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17319         (aarch64_sve_pred_and_operand): New predicates.
17320         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17321         code attribute.
17322         * config/aarch64/aarch64-sve.md
17323         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17324         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17326 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17328         * config/aarch64/aarch64-sve.md
17329         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17330         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17331         New patterns.
17333 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17334             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17336         * config/aarch64/aarch64-sve.md
17337         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17338         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17340 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17341             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17343         * config/aarch64/aarch64-sve.md
17344         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17345         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17347 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17349         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17350         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17351         New pattern.
17353 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17354             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17356         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17358 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17359             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17361         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17362         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17363         (aarch64_print_operand): Add support for %I.
17364         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17365         Bitcast floating-point constants to the corresponding integer constant.
17366         (aarch64_float_const_representable_p): Handle vectors as well
17367         as scalars.
17368         (aarch64_expand_sve_vcond): Make sure that the operands are valid
17369         for the new vcond_mask_<mode><vpred> expander.
17370         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17371         test aarch64_float_const_representable_p.
17372         (aarch64_sve_reg_or_dup_imm): New predicate.
17373         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17374         gen_vcond_mask_<mode><vpred> instead of
17375         gen_aarch64_sve_dup<mode>_const.
17376         (vcond_mask_<mode><vpred>): Turn into a define_expand that
17377         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17378         for operands 1 and 2 respectively.  Force operand 2 into a
17379         register if operand 1 is a register.  Fold old define_insn...
17380         (aarch64_sve_dup<mode>_const): ...and this define_insn...
17381         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
17382         floating-point constants that can be moved as integers.  Add
17383         alternatives for MOV /M and FMOV /M.
17384         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17385         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17386         1 and 2 respectively.
17387         * config/aarch64/constraints.md (Ufc): Handle vectors as well
17388         as scalars.
17389         (vss): New constraint.
17391 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17393         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17394         (aarch64_sve_float_maxmin_operand): New predicates.
17395         * config/aarch64/constraints.md (vsB): New constraint.
17396         (vsM): Fix typo.
17397         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17398         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17399         UNSPEC_COND_FMINNM.
17400         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17401         Use aarch64_sve_float_maxmin_operand for operand 2.
17402         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17403         Add alternatives for the constant forms.
17405 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17407         * config/aarch64/constraints.md (vsb): New constraint.
17408         (vsm): Generalize description.
17409         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17410         iterator.
17411         (sve_imm_con): Handle smax, smin, umax and umin.
17412         (sve_imm_prefix): New code attribute.
17413         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17414         (aarch64_sve_vsb_operand): New predicates.
17415         (aarch64_sve_mul_immediate): Rename to...
17416         (aarch64_sve_vsm_immediate): ...this.
17417         (aarch64_sve_mul_operand): Rename to...
17418         (aarch64_sve_vsm_operand): ...this.
17419         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17420         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17421         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17422         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17423         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17424         add movprfx support for the immediate alternatives.
17425         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17426         of the above.
17427         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17428         for operand 3.
17430 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17432         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17433         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17434         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17436 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17438         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17439         (optab, sve_int_op): Handle them.
17440         * config/aarch64/aarch64-sve.md: Expand comment.
17442 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17444         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17445         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17446         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17448 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17450         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17451         (aarch64_expand_sve_const_pred_trn): New functions.
17452         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17453         use the above functions when the parameter is true.
17454         (aarch64_expand_sve_const_pred): Update call accordingly.
17455         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17456         Rename to...
17457         (@aarch64_sve_<perm_insn><mode>): ...this.
17459 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17461         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17462         Declare.
17463         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17464         (aarch64_sve_emit_int_cmp): New functions.
17465         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17466         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17467         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17468         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17469         (UNSPEC_PRED_Z): New unspec.
17470         (set_clobber_cc_nzc): Delete.
17471         * config/aarch64/aarch64-sve.md: Add a block comment about
17472         UNSPEC_PRED_Z.
17473         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17474         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17475         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
17476         UNSPEC_MERGE_PTRUE.
17477         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17478         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
17479         check for compatible predicates.
17480         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17481         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17482         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
17483         comparisons above.
17485 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17487         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17488         * config/aarch64/aarch64-sve.md: Add a section describing it.
17489         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17490         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17491         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17492         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17493         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17494         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17495         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17496         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17497         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17498         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17499         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17500         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17501         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17502         (aarch64_evpc_rev_local): Update accordingly.
17504 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17506         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17507         iterators.
17508         (SVE_BHSI, SVE_SDI): Tweak comment.
17509         (SVE_HSDI): Likewise.  Fix definition.
17510         (SVE_SDF): New mode iterator.
17511         (elem_bits): New mode attribute.
17512         (SVE_COND_FCVT): New int iterator.
17513         * config/aarch64/aarch64-sve.md
17514         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17515         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17516         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17517         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17518         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17519         ...these new patterns.
17520         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17521         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17522         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17523         Merge into...
17524         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17525         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17526         ...these new patterns.
17527         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17528         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17529         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17530         ...this new pattern.
17531         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17532         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17533         ...this new pattern.
17534         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17536 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17538         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17539         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17540         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17541         unspecs.
17542         (optab, su): Handle them.
17543         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17544         * config/aarch64/aarch64-sve.md
17545         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17546         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17547         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17548         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17549         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17550         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17551         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17552         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17553         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17554         FIXUORS.
17555         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17556         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17557         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17558         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17559         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17560         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17561         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17562         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17563         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17564         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17565         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17566         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17567         of UNSPEC_FLOAT_CONVERT.
17568         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17569         aarch64_sve_extend<mode><Vwide>2.
17571 2019-08-14  Richard Biener  <rguenther@suse.de>
17573         PR target/91154
17574         * config/i386/i386-features.c
17575         (dimode_scalar_chain::compute_convert_gain): Compute and dump
17576         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
17577         ix86_cost->sse_op for vector instruction costs.
17579 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17581         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17582         (cmp_op): Handle it.
17583         (SVE_COND_FP_CMP): Rename to...
17584         (SVE_COND_FP_CMP_I0): ...this.
17585         (SVE_FP_CMP): Remove.
17586         * config/aarch64/aarch64-sve.md
17587         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17588         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17589         using unspecs to represent the comparison.
17590         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17591         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17592         accordingly.
17593         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17594         (aarch64_unspec_cond_code): Move after integer code.  Handle
17595         UNORDERED.
17596         (aarch64_emit_sve_predicated_cond): Replace with...
17597         (aarch64_emit_sve_fp_cond): ...this new function.
17598         (aarch64_emit_sve_or_conds): Replace with...
17599         (aarch64_emit_sve_or_fp_conds): ...this new function.
17600         (aarch64_emit_sve_inverted_cond): Replace with...
17601         (aarch64_emit_sve_invert_fp_cond): ...this new function.
17602         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17604 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17606         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17607         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17608         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17609         SVE_HSD instead of SVE_SD.
17611 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17612             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17614         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17615         iterator.
17616         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17617         attributes.
17618         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17619         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17620         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17621         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17622         (*div<SVE_F:mode>3): Generalize to...
17623         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17625 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17626             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17628         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17629         constants.
17630         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17631         predicate.
17632         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17633         Declare.
17634         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17635         function.
17636         * config/aarch64/aarch64-sve.md: Add a block comment about the
17637         handling of predicated FP operations.
17638         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17639         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17640         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17641         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17642         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17643         operand.
17644         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17645         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17646         operand.
17647         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17648         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17649         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17650         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17651         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17652         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17653         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17654         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17655         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17656         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17657         strictness operands.  Use aarch64_sve_pred_dominates_p to check
17658         whether the predicate on the conditional operation is suitable
17659         for merging.  Split patterns into the canonical equal-predicate form.
17660         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17661         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17663 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17664             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17666         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17667         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17668         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17669         rtx codes.
17670         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17671         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17672         unspecs.
17674 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17675             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17677         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17678         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
17679         actually has, rather than relying on REG_EQUAL notes.
17680         Make the insn operand order match the SVE operand order.
17681         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17682         the SVE operand order.
17684 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17686         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17687         (aarch64_emit_set_immediate): Likewise.
17688         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17689         (aarch64_pfalse_reg): Likewise.
17690         (aarch64_convert_sve_data_to_pred): New function.
17691         (aarch64_sve_move_pred_via_while): Take an optional target register
17692         and the required register mode.
17693         (aarch64_expand_sve_const_pred_1): New function.
17694         (aarch64_expand_sve_const_pred): Likewise.
17695         (aarch64_expand_mov_immediate): Build an all-true predicate
17696         if the significant bits of the immediate are all true.  Use
17697         aarch64_expand_sve_const_pred for all compile-time predicate constants.
17698         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17699         before register allocation.
17700         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17701         a VNx16BI PTRUE when splitting the memory alternative.
17702         (vec_duplicate<mode>): Update accordingly.
17703         (*pred_cmp<cmp_op><mode>): Rename to...
17704         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17706 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17708         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17709         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17710         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17711         (UNSPEC_PTEST): New unspec.
17712         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17713         * config/aarch64/iterators.md (data_bytes): New mode attribute.
17714         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17715         * config/aarch64/aarch64-sve.md: Add a new section describing the
17716         handling of UNSPEC_PTEST.
17717         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17718         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17719         (ptest_ptrue<mode>): Replace with...
17720         (aarch64_ptest<mode>): ...this new pattern.
17721         (cbranch<mode>4): Update after above changes.
17722         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17723         UNSPEC_PTEST_PTRUE.
17724         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17725         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17726         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17728 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
17730         PR lto/91287
17731         * builtins.c (builtin_with_linkage_p): New function.
17732         * builtins.h (builtin_with_linkage_p): New function.
17733         * symtab.c (write_symbol): Remove redundant assert.
17734         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17735         Remove FIXME and use builtin_with_linkage_p.
17737 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17739         PR middle-end/91421
17740         * tree-core.h (function_decl::function_code): Change type to
17741         unsigned int.
17742         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17743         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17744         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17745         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
17746         is BUILT_IN_NORMAL.
17747         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17748         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17749         (fndecl_built_in_p): Change the type of the "name" argument to
17750         unsigned int.
17751         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17752         after check for DECL_BUILT_IN_CLASS.
17753         * cgraphclones.c (build_function_decl_skip_args): Use
17754         set_decl_built_in_function.
17755         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17756         * ipa-split.c (split_function): Likewise.
17757         * langhooks.c (add_builtin_function_common): Likewise.
17758         * omp-simd-clone.c (simd_clone_create): Likewise.
17759         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17760         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17761         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17762         DECL_FUNCTION_CODE.
17763         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17764         instead of DECL_FUNCTION_CODE.
17765         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17766         instead of DECL_FUNCTION_CODE.
17767         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17768         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17769         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
17770         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17771         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17772         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17773         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17774         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17775         (alpha_gimple_fold_builtin): Likewise.
17776         * config/arc/arc.c (arc_expand_builtin): Likewise.
17777         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17778         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17779         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17780         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17781         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17782         * config/frv/frv.c (frv_expand_builtin): Likewise.
17783         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17784         (gcn_expand_builtin): Likewise.
17785         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17786         (fold_builtin_cpu): Likewise.
17787         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17788         * config/i386/i386.c (ix86_fold_builtin): Likewise.
17789         (ix86_gimple_fold_builtin): Likewise.
17790         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17791         (ia64_expand_builtin): Likewise.
17792         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17793         * config/mips/mips.c (mips_expand_builtin): Likewise.
17794         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17795         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17796         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17797         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17798         * config/pa/pa.c (pa_expand_builtin): Likewise.
17799         * config/pru/pru.c (pru_expand_builtin): Likewise.
17800         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17801         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17802         Likewise.
17803         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17804         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17805         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17806         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17807         (rs6000_builtin_reciprocal): Likewise.
17808         * config/rx/rx.c (rx_expand_builtin): Likewise.
17809         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17810         * config/s390/s390.c (s390_expand_builtin): Likewise.
17811         * config/sh/sh.c (sh_expand_builtin): Likewise.
17812         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17813         (sparc_fold_builtin): Likewise.
17814         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17815         * config/spu/spu.c (spu_expand_builtin): Likewise.
17816         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17817         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17818         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17819         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17820         (xtensa_expand_builtin): Likewise.
17822 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17824         PR middle-end/91421
17825         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17826         before the DECL_FUNCTION_CODE.
17827         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17828         to check for a BUILT_IN_ALLOCA call.
17829         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17830         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
17831         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17832         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17833         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17834         for BUILT_IN_NORMAL functions.
17835         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17836         test for BUILT_IN_TM_ABORT.
17837         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17838         to check for a BUILT_IN_STACK_RESTORE call.
17839         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17840         * tree-ssa-threadedge.c
17841         (record_temporary_equivalences_from_stmts_at_dest): Check for a
17842         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17843         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17844         test for a BUILT_IN_NORMAL call instead of a negative test for
17845         an internal function call.
17847 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17849         * tree.h (build_vector_a_then_b): Declare.
17850         * tree.c (build_vector_a_then_b): New function.
17851         * fold-const-call.c (fold_while_ult): Likewise.
17852         (fold_const_call): Use it to handle IFN_WHILE_ULT.
17853         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17854         (aarch64_svpattern): New enum.
17855         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17856         constants through aarch64_expand_mov_immediate.
17857         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17858         than general_operand as the predicate for operand 1.
17859         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17860         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17861         insn_type.
17862         (simd_immediate_info::simd_immediate_info): New overload that
17863         takes a scalar_int_mode and an svpattern.
17864         (simd_immediate_info::u): Add a "pattern" field.
17865         (svpattern_token): New function.
17866         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17867         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17868         (aarch64_sve_move_pred_via_while): New functions.
17869         (aarch64_expand_mov_immediate): Try using
17870         aarch64_sve_move_pred_via_while for predicates that contain N ones
17871         followed by M zeros but that do not correspond to a VLnnn pattern.
17872         (aarch64_sve_pred_valid_immediate): New function.
17873         (aarch64_simd_valid_immediate): Use it instead of dealing directly
17874         with PTRUE and PFALSE.
17875         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17876         forms.
17878 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17880         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17881         flag.
17882         (darwin_override_options): Likewise.
17883         * config/darwin.h: Likewise.
17884         * config/darwin.opt: Likewise.
17885         * config/i386/i386.c (output_pic_addr_const): Likewise.
17886         * config/rs6000/darwin.h: Likewise.
17887         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17888         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17889         ... this TARGET_MACHO_SYMBOL_STUBS.
17890         (FUNCTION_PROFILER):Likewise.
17891         * config/i386/i386.h: Likewise.
17893 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
17895         * config/i386/i386-expand.c (ix86_expand_vector_extract)
17896         <case E_V2SImode>: Use vec_extr path for
17897         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17898         <case E_V8QImode>: Ditto.
17899         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17900         Use SWI48 mode iterator.  Use %k to output operand 0.
17901         (*mmx_pextrw): New insn pattern.
17902         (*mmx_pextrb): Ditto.
17903         (*mmx_pextrb_zext): Ditto.
17905 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
17907         * target.def (libc_has_function, libc_has_fast_function): Improve
17908         documentation strings.
17909         * doc/tm.texi: Regenerate.
17911 2019-08-13  Caroline Tice  <cmtice@google.com>
17913         PR other/91396
17914         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17915         vtv_end.o or vtv_end_preinit.o files if !static.
17917 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17919         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17921 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17923         * rtlanal.c (tablejump_casesi_pattern): New function, to
17924         determine if a tablejump insn is a casesi dispatcher. Extracted
17925         from patch_jump_insn.
17926         * rtl.h (tablejump_casesi_pattern): Declare.
17927         * cfgrtl.c (patch_jump_insn): Use it.
17928         * dwarf2cfi.c (create_trace_edges): Use it.
17930 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17932         PR target/81800
17933         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17934         operand is larger than a long int.
17936 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17938         * machmode.h (opt_mode::else_mode): New function.
17939         (opt_mode::else_blk): Use it.
17940         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17941         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17942         (aarch64_gen_stepped_int_parallel): Likewise.
17943         (aarch64_stepped_int_parallel_p): Likewise.
17944         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17945         argument.
17946         * config/aarch64/aarch64.c
17947         (aarch64_expand_sve_widened_duplicate): Delete.
17948         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17949         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17950         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17951         argument.  Use early returns in the !CONST_INT_P handling.
17952         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17953         than handling some inline.
17954         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17955         from...
17956         (aarch64_simd_container_mode): ...here.
17957         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17958         (aarch64_sve_ld1rq_operand_p): New functions.
17959         * config/aarch64/predicates.md (descending_int_parallel)
17960         (aarch64_sve_ld1rq_operand): New predicates.
17961         * config/aarch64/constraints.md (UtQ): New constraint.
17962         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17963         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17964         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17965         (@aarch64_sve_reinterpret<mode>): New expander.
17966         (*aarch64_sve_reinterpret<mode>): New pattern.
17967         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17968         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17969         (*sve_ld1rq<Vesize>): Replace with...
17970         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17972 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17974         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17975         16:12.
17977 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17979         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17980         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17981         (msp430_check_path_for_devices): New.
17982         (parse_devices_csv_1): New.
17983         (parse_devices_csv): New.
17984         (msp430_extract_mcu_data): Try to find devices.csv and search for the
17985         MCU data in devices.csv before using the hard-coded data.
17986         Warn if devices.csv isn't found and the MCU wasn't found in the
17987         hard-coded data either.
17988         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17989         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17990         Search for devices.csv on -I and -L paths.
17991         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17992         msp430_set_driver_var.
17993         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17994         -mdevices-csv-loc=.
17995         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17996         searched for devices.csv.
17997         (mwarn-devices-csv): Document option.
17999 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18001         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
18002         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
18003         Use a single Dn alternative instead of separate Dz and Dm
18004         alternatives.  Use aarch64_output_sve_move_immediate.
18005         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
18006         function.
18007         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
18008         for predicates too.
18009         (aarch64_output_sve_mov_immediate): Handle predicate modes.
18010         (aarch64_output_ptrue): Delete.
18012 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18014         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
18015         INDEX.
18016         (simd_immediate_info::value, simd_immediate_info::step)
18017         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
18018         with...
18019         (simd_immediate_info::u): ...this new union.
18020         (simd_immediate_info::simd_immediate_info): Update accordingly.
18021         (aarch64_output_simd_mov_immediate): Likewise.
18022         (aarch64_output_sve_mov_immediate): Likewise.
18024 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18026         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
18027         extra_gcc_objs.
18028         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
18029         (msp430_select_cpu): New spec function.
18030         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
18031         MCU data.
18032         * config/msp430/msp430-devices.c: New file.
18033         * config/msp430/msp430-devices.h: New file.
18034         * config/msp430/msp430.c: Remove msp430_mcu_data.
18035         (msp430_option_override): Use msp430_extract_mcu_data to extract
18036         MCU data.
18037         (msp430_use_f5_series_hwmult): Likewise.
18038         (use_32bit_hwmult): Likewise.
18039         (msp430_no_hwmult): Likewise.
18040         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
18041         assembler.
18042         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
18043         and -mcpu option.
18044         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
18045         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
18046         Remove hard-coded MCU multilib data.
18048 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18050         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
18051         based on the mode instead of testing properties of it.
18053 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18055         * doc/md.texi: Document the x and y constraints for AArch64.
18056         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
18057         (FP_LO8_REGS): New reg_class.
18058         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
18059         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
18060         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
18061         * config/aarch64/predicates.md (aarch64_simd_register): Use
18062         FP_REGNUM_P instead of checking the classes manually.
18063         * config/aarch64/constraints.md (y): New constraint.
18065 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18067         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
18068         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
18069         * config/aarch64/aarch64-simd.md
18070         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
18071         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
18072         from the asm template.
18073         * config/aarch64/aarch64-sve.md
18074         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
18075         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
18076         from the asm template.
18077         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
18078         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
18079         from the asm template.
18080         * config/aarch64/aarch64-simd-builtins.def: Update comment.
18082 2019-08-13  Martin Liska  <mliska@suse.cz>
18084         * value-prof.c (gimple_ic_transform): Add new line.
18085         Print details with MSG_NOTE.
18087 2019-08-13  Martin Liska  <mliska@suse.cz>
18089         * doc/invoke.texi: Document automatic detection of jobserver.
18090         * lto-wrapper.c (run_gcc): Detect jobserver always.
18092 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
18094         * config/i386/i386-expand.c (ix86_expand_vector_set)
18095         <case E_V2SImode>: Use vec_merge path for
18096         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18097         <case E_V8QImode>: Ditto.
18098         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
18099         (*mmx_pinsrb): Ditto.
18101 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
18103         PR target/83250
18104         PR target/91340
18105         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
18106         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
18107         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
18108         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
18109         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
18111 2019-08-12  Richard Biener  <rguenther@suse.de>
18113         PR lto/91375
18114         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
18115         flag_devirtualize.
18117 2019-08-12  Richard Biener  <rguenther@suse.de>
18119         PR driver/91130
18120         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
18121         lang_mask option, always use CL_DRIVER.
18122         (get_options_from_collect_gcc_options): Adjust.
18123         (find_and_merge_options): Likewise.
18124         (run_gcc): Likewise.
18126 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18128         * ipa-predicate.c (add_condition): Restore inverted test.
18130 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
18132         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
18133         (enum omp_clause_device_type_kind): New enum.
18134         (struct tree_omp_clause): Add subcode.device_type_kind.
18135         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
18136         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18137         for device_type clause.
18138         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
18139         * tree-pretty-print.c (dump_omp_clause): Likewise.
18141         PR target/91408
18142         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
18143         vector_operand.
18145 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
18147         * reload1.c (finish_spills): Do not check ira_conflicts_p when
18148         handling spilled pseudos.
18150 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18152         PR target/91386
18153         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
18154         to preserve the contents of the original insns.
18156 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18158         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
18159         (addsi3_compare_op2): Likewise.
18161 2019-08-09  Martin Liska  <mliska@suse.cz>
18163         * alias.c (alias_ptr_types_compatible_p): Strengten
18164         type comparison in LTO mode.
18166 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
18168         PR middle-end/90313
18169         * tree-tailcall.c (find_tail_calls): Reject calls that might
18170         read from an escaped RESULT_DECL.
18172 2019-08-09  Martin Liska  <mliska@suse.cz>
18174         * doc/invoke.texi: Document the option value.
18175         * lto-wrapper.c (run_gcc): Set auto_parallel
18176         only with -flto=auto.
18178 2019-08-09  Martin Liska  <mliska@suse.cz>
18180         * opts.c (common_handle_option): Error for an invalid argument
18181         to -flto=.
18183 2019-08-09  Martin Liska  <mliska@suse.cz>
18185         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
18186         use dump_printf to report optimization.
18187         (sem_variable::merge): Likwise.
18188         (sem_item_optimizer::merge_classes): Use dump_printf to report
18189         ICF hits.
18191 2019-08-09  Martin Liska  <mliska@suse.cz>
18193         * value-prof.c (gimple_divmod_fixed_value_transform):
18194         Use dump_printf_loc.
18195         (gimple_mod_pow2_value_transform): Likewise.
18196         (gimple_mod_subtract_transform): Likewise.
18197         (init_node_map): Likewise.
18198         (gimple_ic_transform): Likewise.
18199         (gimple_stringops_transform): Likewise.
18201 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
18203         * doc/extend.texi: Add const qualifier to ld intrinsics.
18205 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18207         * config/rs6000/dfp.md (D64_D128): Rename to ...
18208         (DDTD): ... this, throughout.
18209         (dfp_suffix): Rename to ...
18210         (q): ... this, throughout.
18212 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18214         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
18215         (dfp_suffix): Ditto.
18216         (adddd3, addtd3): Merge to ...
18217         (add<mode>3 for D64_D128): ... this.
18218         (subdd3, subtd3): Merge to ...
18219         (sub<mode>3 for D64_D128): ... this.
18220         (muldd3, multd3): Merge to ...
18221         (mul<mode>3 for D64_D128): ... this.
18222         (divdd3, divtd3): Merge to ...
18223         (div<mode>3 for D64_D128): ... this.
18224         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
18225         (*cmp<mode>_internal1 for D64_D128): ... this.
18226         (ftruncdd2, ftrunctd2): Merge to ...
18227         (ftrunc<mode>2 for D64_D128): ... this.
18228         (fixdddi2, fixtddi2): Merge to ...
18229         (fix<mode>di2 for D64_D128): ... this.
18231 2019-08-08  Jim Wilson  <jimw@sifive.com>
18233         PR target/91229
18234         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
18235         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
18236         Pass into recursive call.
18237         (riscv_flatten_aggregate_argument): New arg.  Pass to
18238         riscv_flatten_aggregate_field.
18239         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
18240         riscv_flatten_aggregate_argument twice, with false and true as last
18241         arg.  Process result twice.  Compare results and warn if different.
18242         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
18244 2019-08-08  Martin Liska  <mliska@suse.cz>
18246         PR bootstrap/91352
18247         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
18248         * lto-wrapper.c (jobserver_active_p): Likewise.
18250 2019-08-08  Martin Liska  <mliska@suse.cz>
18252         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
18253         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
18254         (create_version_clone_with_body): Likewise.
18256 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
18258         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
18259         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
18260         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
18261         GOVD_EXPLICIT flags.
18262         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
18263         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
18264         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
18265         call install_var_field with mask 11 instead of 3.
18266         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
18267         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
18269 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18271         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
18272         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
18274 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18276         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
18277         MOVPRFX alternatives.  Make the GPR alternatives more expensive
18278         than the FPR ones.
18280 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18282         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
18283         Disparage the GPR alternative relative to the FPR one.
18284         Fix handling of 8-bit and 16-bit FPR values.
18286 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18288         * config/aarch64/iterators.md (BITWISEV): Delete.
18289         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18290         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18291         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18292         UNSPEC_FMINNMV, UNSPEC_FMINV.
18293         (bit_reduc_op): Delete.
18294         (sve_int_op): New int attribute.
18295         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18296         UNSPEC_FMINNMV, UNSPEC_FMINV.
18297         * config/aarch64/aarch64-sve.md
18298         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18299         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18300         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18301         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18302         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18303         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18304         new patterns.
18305         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18306         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18307         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18308         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18309         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18310         new patterns.
18312 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18314         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18315         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18316         (fms<mode>4, *fms<mode>4): Replace with...
18317         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18318         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18319         Use unspecs instead of rtx codes.
18320         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18321         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18323 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18325         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18326         int iterator.
18327         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18328         * config/aarch64/aarch64-sve.md
18329         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18330         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18331         use a single unspec for the rhs.
18332         (*<su><maxmin><mode>3): Delete.
18333         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18335 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18337         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18338         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18339         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18340         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18341         (optab, sve_fp_op): Handle them.
18342         (SVE_FP_UNARY): Delete.
18343         (optab): Remove sqrt entry.
18344         (sve_fp_op): Remove neg, abs and sqrt entries.
18345         (SVE_COND_FP_UNARY): New int iterator.
18346         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18347         (*<frint_pattern><mode>2): Delete.
18348         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18349         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18350         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18351         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18353 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18355         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18357 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18359         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18360         (UNSPEC_COND_FADD): ...this.
18361         (UNSPEC_COND_SUB): Rename to...
18362         (UNSPEC_COND_FSUB): ...this.
18363         (UNSPEC_COND_MUL): Rename to...
18364         (UNSPEC_COND_FMUL): ...this.
18365         (UNSPEC_COND_DIV): Rename to...
18366         (UNSPEC_COND_FDIV): ...this.
18367         (UNSPEC_COND_MAX): Rename to...
18368         (UNSPEC_COND_FMAXNM): ...this.
18369         (UNSPEC_COND_MIN): Rename to...
18370         (UNSPEC_COND_FMINNM): ...this.
18371         (UNSPEC_COND_LT): Rename to...
18372         (UNSPEC_COND_FCMLT): ...this.
18373         (UNSPEC_COND_LE): Rename to...
18374         (UNSPEC_COND_FCMLE): ...this.
18375         (UNSPEC_COND_EQ): Rename to...
18376         (UNSPEC_COND_FCMEQ): ...this.
18377         (UNSPEC_COND_NE): Rename to...
18378         (UNSPEC_COND_FCMNE): ...this.
18379         (UNSPEC_COND_GE): Rename to...
18380         (UNSPEC_COND_FCMGE): ...this.
18381         (UNSPEC_COND_GT): Rename to...
18382         (UNSPEC_COND_FCMGT): ...this.
18383         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18384         (sve_fp_op_rev): Update accordingly.
18385         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18387 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18389         * config/aarch64/aarch64-sve.md: Reorganize contents and add
18390         banner comments.
18391         * config/aarch64/check-sve-md.awk: New file.
18392         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18393         (insn-conditions.md): Depend on it.
18395 2019-08-07  Uroš Bizjak  <ubizjak@gmail.com>
18397         PR target/91385
18398         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18399         (*negsi2_cmpz_zext): Ditto.
18401 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18403         * config/aarch64/iterators.md (commutative): Remove.
18405 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
18407         PR driver/91130
18408         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18409         processing COLLECT_GCC_OPTIONS.
18410         (run_gcc): Likewise.
18412 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18414         PR tree-optimization/91109
18415         * lra-remat.c (update_scratch_ops): Remove assignment of the
18416         hard register.
18418 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18420         * data-streamer.h (streamer_write_poly_uint64): Declare.
18421         (streamer_read_poly_uint64): Likewise.
18422         * data-streamer-in.c (streamer_read_poly_uint64): New function.
18423         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18424         * ipa-predicate.h (condition::size): Turn into a poly_int64.
18425         (add_condition): Take a poly_int64 size.
18426         * ipa-predicate.c (add_condition): Likewise.
18427         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18428         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18429         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18430         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18431         condition::size as a poly_int64.
18432         (unmodified_parm_1): Take a poly_int64 size pointer.
18433         (unmodified_parm): Likewise.
18434         (unmodified_parm_or_parm_agg_item): Likewise.
18435         (set_cond_stmt_execution_predicate): Update accordingly.
18436         (set_switch_stmt_execution_predicate): Likewise.
18437         (will_be_nonconstant_expr_predicate): Likewise.
18438         (will_be_nonconstant_predicate): Likewise.
18439         (inline_read_section): Stream condition::size as a poly_int.
18440         (ipa_fn_summary_write): Likewise.
18442 2019-08-07  Martin Liska  <mliska@suse.cz>
18444         * fold-const.c (twoval_comparison_p): Replace int
18445         with bool as a return type.
18446         (simple_operand_p): Likewise.
18447         (operand_equal_p): Replace int with bool as a return type.
18448         * fold-const.h (operand_equal_p): Likewise.
18450 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
18452         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18453         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18454         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18455         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18456         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18457         * tree-pretty-print.c (dump_omp_clause): Likewise.
18458         * tree-nested.c (convert_nonlocal_omp_clauses,
18459         convert_local_omp_clauses): Likewise.
18460         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18461         Likewise.
18462         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18463         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18464         clause with array or reference to array types, no matter what type
18465         except for reference it has.
18467 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
18469         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18471 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
18473         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18474         (arch_canonicalize): Support rv32g and rv64g and fix error
18475         handling.
18477 2019-08-06  Martin Liska  <mliska@suse.cz>
18479         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18480         and DECL_IS_OPERATOR_DELETE_P.
18482 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
18484         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18485         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
18486         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18487         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18488         (gimplify_omp_for): Don't do C++ random access iterator clause
18489         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
18490         don't predetermine the artificial iterator in case of C++ random
18491         access iterators as lastprivate, but private.  For OMP_LOOP, force
18492         bind expr around simd body and force for_pre_body before the
18493         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18494         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18495         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18496         diff var of C++ random access iterators.  Handle
18497         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18498         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18499         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18500         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18501         * omp-low.c (lower_rec_input_clauses): For
18502         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18503         variables instead of default constructing them.
18504         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18505         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18506         is_taskloop_ctx check from the assert to the guarding condition.
18508 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
18510         * config/riscv/multilib-generator: (canonical_order): New.
18511         (arch_canonicalize): Dito.
18512         Apply arch_canonicalize for alts.
18514 2019-08-05  Martin Sebor  <msebor@redhat.com>
18516         * doc/extend.texi (Common Variable Attributes): Document alias
18517         attribute.
18519 2019-08-05  Marek Polacek  <polacek@redhat.com>
18521         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18522         * doc/invoke.texi: Document -Wcomma-subscript.
18524 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18526         * tree-core.h (tree_function_decl): Make function_code an
18527         independent field.  Group the remaining bitfields into bytes
18528         and move decl_type so that it contines to be at a byte boundary.
18529         Leave 12 bits for future expansion.
18531 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18533         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18534         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18535         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18536         IFN_MASK_STORE.
18538 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18540         * gimple.h (gimple_move_vops): Declare.
18541         * gimple.c (gimple_move_vops): New function
18542         * gimple-fold.c (replace_call_with_call_and_fold)
18543         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18544         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18545         (gimple_fold_call): Use it.
18546         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18547         * tree-call-cdce.c (use_internal_fn): Likewise.
18548         * tree-if-conv.c (predicate_load_or_store): Likewise.
18549         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18550         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18551         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18552         (update_call_from_tree): Likewise.
18553         * tree-vect-stmts.c (vectorizable_load): Likewise.
18554         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18556 2019-08-05  Martin Liska  <mliska@suse.cz>
18558         PR c++/91334
18559         * tree-ssa-dce.c (propagate_necessity): Handle new operators
18560         with not arguments.
18561         (eliminate_unnecessary_stmts): Likewise.
18563 2019-08-05  Richard Biener  <rguenther@suse.de>
18565         PR middle-end/91169
18566         * fold-const.c (get_array_ctor_element_at_index): Create
18567         offset_ints according to the sign of the index type and treat
18568         that as signed if it is obviously so.
18570 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
18572         PR target/91341
18573         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18574         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18575         _mm256_storeu2_m128i): New function.
18577 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
18579         * config/riscv/riscv.c (riscv_promote_function_mode): New.
18580         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18582 2019-08-05  Alan Modra  <amodra@gmail.com>
18584         PR target/91349
18585         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18586         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18588 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
18590         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18591         bug that was fixed in Tcl 8.6.1.
18593 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
18595         * config/rs6000/future.md: New file.
18596         * config/rs6000/rs6000.md: Include future.md.
18597         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18599 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18601         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18602         check to use targetm.slow_unaligned_access instead.
18604         * function.c (assign_param_data_one): Remove unused data members.
18606 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
18608         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18609         build_distinct_type_copy.
18610         (simd_clone_adjust_argument_types): Ditto.
18611         (simd_clone_adjust): Call build_distinct_type_copy here.
18612         (expand_simd_clones): Ditto.
18614 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
18616         PR target/91201
18617         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18619 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
18621         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18622         from 'const void *'.
18623         (sort_locs_in_loop_postorder_cmp): Likewise.
18625 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
18627         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18628         (hot-bb-count-ws-permille): Likewise.
18629         (hot-bb-frequency-fraction): Likewise.
18630         (unlikely-bb-count-fraction): Likewise.
18631         * params.def (hot-bb-count-fraction): Rework description.
18632         (hot-bb-count-ws-permille): Likewise.
18633         (hot-bb-frequency-fraction): Likewise.
18634         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
18635         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18637 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
18639         PR target/91323
18640         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18641         Return false.
18643 2019-08-02  Richard Biener  <rguenther@suse.de>
18645         * vec.h (vec::sort): Add gcc_qsort_r support.
18646         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18647         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18648         to gcc_qsort_r style callback.
18649         (sort_locs_in_loop_postorder_cmp): Likewise.
18650         (analyze_memory_references): Use gcc_sort_r interfaces.
18651         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18653 2019-08-02  Martin Liska  <mliska@suse.cz>
18655         PR lto/91313
18656         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18657         to detect working job server.
18658         (driver::detect_jobserver): Test whether jobserver
18659         is active from GCC driver. That will prevent situation where
18660         GCC is invoked from a LD plugin and the linker already uses
18661         file descriptors suggested by make.  That leads to a wrong
18662         detection.
18663         * gcc.h (driver): Add detect_jobserver.
18664         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18665         not scanning for --jobserver-auth prefix.
18667 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
18669         PR tree-optimization/91201
18670         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18671         V16QImode extraction without sse4.1 try to use V4SImode lowpart
18672         extraction.
18674 2019-08-01  Martin Sebor  <msebor@redhat.com>
18676         PR c++/90947
18677         * tree.c (type_initializer_zero_p): Define.
18678         * tree.h (type_initializer_zero_p): New function.
18680 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
18682         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18684 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
18686         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18687         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
18688         * predict.c (maybe_hot_count_p): Likewise.
18689         (maybe_hot_bb_p): Tweak comment.
18690         (maybe_hot_edge_p): Likewise.
18691         (probably_never_executed): Likewise.  Minor tweak.
18692         (probably_never_executed_bb_p): Likewise.
18693         (unlikely_executed_edge_p): Likewise.
18694         (probably_never_executed_edge_p): Likewise.
18695         (optimize_function_for_size_p): Likewise.
18696         (optimize_function_for_speed_p): Likewise.
18697         (function_optimization_type): Likewise.
18698         (optimize_bb_for_size_p): Likewise.
18699         (optimize_bb_for_speed_p): Likewise.
18700         (bb_optimization_type): Likewise.
18701         (optimize_edge_for_size_p): Likewise.
18702         (optimize_edge_for_speed_p): Likewise.
18703         (optimize_insn_for_size_p): Likewise.
18704         (optimize_insn_for_speed_p): Likewise.
18705         (optimize_loop_for_size_p): Likewise.
18706         (optimize_loop_for_speed_p): Likewise.
18707         (optimize_loop_nest_for_speed_p): Likewise.
18708         (optimize_loop_nest_for_size_p): Likewise.
18709         (predictable_edge_p): Likewise.
18710         (handle_missing_profiles): Minor tweak.
18712 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
18714         * config/rs6000/predicates.md (pcrel_external_address): Update
18715         comment.
18717 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
18719         PR target/85693
18720         * config/i386/mmx.md (usadv8qi): New expander.
18722 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
18724         PR c++/90590
18725         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18726         with reserved names that are in a system header.
18728 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
18730         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18731         (*vec_extractv2si_0_zext_sse4): New insn pattern.
18732         (*vec_extractv2si_0_zext): Ditto.
18733         (*vec_extractv2si_1): Add (rm,x) alternative.
18734         (*vec_extractv2si_1_zext): New insn pattern.
18735         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18736         insn constraint.
18738 2019-08-01  Richard Biener  <rguenther@suse.de>
18740         * domwalk.c (bb_postorder): Remove static variable.
18741         (cmp_bb_postorder): Adjust.
18742         (sort_bbs_postorder): Adjust and use gcc_sort_r.
18743         (dom_walker::walk): Adjust.
18745 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
18747         * sort.cc (sort_r_ctx): New struct.
18748         (reorder23): Make templated on context type.
18749         (reorder45): Ditto.
18750         (cmp1): Ditto.  Adjust signature.
18751         (netsort): Ditto.
18752         (mergesort): Ditto.
18753         [CHECKING_P] (cmp2to3): New static function.  Use it...
18754         (gcc_qsort) [CHECKING_P]: ...here.
18755         (gcc_sort_r): New function.
18756         * system.h (sort_r_cmp_fn): New function typedef.
18757         (qsort_chk): Adjust signature.
18758         (gcc_sort_r): Declare.
18759         * vec.c (qsort_chk_error): Adjust.
18760         (qsort_chk): Adjust.
18762 2019-08-01  Richard Biener  <rguenther@suse.de>
18764         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18765         (compute_antic): Localize it here.
18767 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
18769         * common/config/riscv/riscv-common.c: Check -march string ends
18770         with null.
18772 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
18774         * ipa-devirt.c (type_warning_cmp): Make static.
18775         (decl_warning_cmp): Ditto.
18777 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
18779         PR target/91050
18780         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18781         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18782         use of deleted rs6000_dejagnu_cpu_index variable.
18783         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18784         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18785         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18786         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18787         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18788         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18790 2019-07-31  Richard Biener  <rguenther@suse.de>
18792         PR tree-optimization/91280
18793         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18794         Decompose MEM_REF manually for offset handling.
18796 2019-07-31  Richard Biener  <rguenther@suse.de>
18798         PR tree-optimization/91293
18799         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18800         of reduction stmts.
18802 2019-07-31  Matt Thomas  <matt@3am-software.com>
18803             Nick Hudson  <nick@nthcliff.demon.co.uk>
18804             Matthew Green  <mrg@eterna.com.au>
18805             Maya Rashish  <coypu@sdf.org>
18807         * config.gcc (hppa*-*-netbsd*): New target.
18808         * config/pa/pa-netbsd.h: New file.
18809         * config/pa/pa32-netbsd.h: New file.
18811 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18813         PR tree-optimization/91201
18814         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18816 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
18818         * config/gcn/gcn-valu.md
18819         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18820         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18821         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18822         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18823         struct ilist. Add nops for delayeduse insns.
18824         * config/gcn/gcn.md (delayeduse): New attribute.
18825         (*movbi): Remove s_waitcnt from stores.
18826         (*mov<mode>_insn): Likewise.
18827         (*movti_insn): Likewise. Add delayeduse attribute.
18828         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18829         (atomic_store<mode>): Remove or adjust s_waitcnt.
18831 2019-07-31  Richard Biener  <rguenther@suse.de>
18833         * vr-values.h (vr_values::swap_vr_value): New.
18834         (vr_values::free_value_range): likewise.
18835         * vr-values.c (vr_values::swap_vr_value): Implement.
18836         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18837         Do not return a range or take a var.
18838         (evrp_range_analyzer::stack): Change back to recording a non-const
18839         value_range *.
18840         * gimple-ssa-evrp-analyze.c
18841         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18842         value-range.
18843         (evrp_range_analyzer::pop_to_marker): Adjust.
18844         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18845         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
18846         no longer needed value-range.
18848 2019-07-31  Martin Liska  <mliska@suse.cz>
18850         * tree-ssa-dce.c (propagate_necessity): Delete operator can
18851         have size and (or) alignment as 2nd and later arguments.
18852         Mark all of them as necessary.
18854 2019-07-31  Richard Biener  <rguenther@suse.de>
18856         PR tree-optimization/91178
18857         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18858         Use tail-recursion.
18860 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18862         PR tree-optimization/91201
18863         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18864         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18865         TARGET_AVX512F.
18866         (reduc_plus_scal_<mode>): Improve formatting by introducing
18867         a temporary.
18869 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
18871         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18872         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18873         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18874         (aarch64_init_tme_builtins): New.
18875         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18876         (aarch64_expand_builtin_tme): New.
18877         (aarch64_expand_builtin): Handle TME builtins.
18878         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18879         __ARM_FEATURE_TME when enabled.
18880         * config/aarch64/aarch64-option-extensions.def: Add "tme".
18881         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18882         (TARGET_TME): New.
18883         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18884         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18885         UNSPECV_TCANCEL.
18886         (tstart, ttest, tcommit, tcancel): New instructions.
18887         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18888         (__tcancel, __ttest): New.
18889         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18890         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18891         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18892         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18893         * config/arm/types.md: Add new tme type attr.
18894         * doc/invoke.texi: Document "tme".
18896 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
18898         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18899         warn_unused_result attribute.
18900         (cmse_check_address_range): Add warn_unused_result attribute.
18902 2019-07-31  Richard Biener  <rguenther@suse.de>
18904         PR tree-optimization/91257
18905         * tree-vrp.c (union_ranges): Unify equality and less tests
18906         by using compare_values.  Re-order cheap tests first.
18908 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18910         PR middle-end/91301
18911         * gimplify.c (gimplify_omp_for): If for class iterator on
18912         distribute parallel for there is no data sharing clause
18913         on inner_for_stmt, look for private clause on combined
18914         parallel too and if found, move it to inner_for_stmt.
18916 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
18918         * lra-int.h (lra_operand_data): Remove early_clobber field.
18919         (lra_insn_reg): Likewise.
18920         * lra.c (debug_operand_data): Update accordingly.
18921         (setup_operand_alternative): Likewise.
18922         (new_insn_reg): Likewise.  Remove early_clobber parameter.
18923         (collect_non_operand_hard_regs): Update call accordingly.
18924         Don't assign to lra_insn_reg::early_clobber.
18925         (add_regs_to_insn_regno_info): Remove early_clobber parameter
18926         and update calls to new_insn_reg.
18927         (lra_update_insn_regno_info): Update calls accordingly.
18928         * lra-constraints.c (update_and_check_small_class_inputs): Take the
18929         alternative number as a parameter and test whether the operand
18930         is earlyclobbered in that particular alternative.
18931         (process_alt_operands): Update call accordingly.  Use per-alternative
18932         checks for earyclobber here too.
18933         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18934         against zero for IRA_UNKNOWN_ALT.
18936 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
18938         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18940 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
18942         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18943         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18945 2019-07-30  Martin Liska  <mliska@suse.cz>
18947         PR ipa/89330
18948         * cgraph.c (cgraph_edge::make_direct): Use
18949         edge->indirect_unknown_callee as edge->resolve_speculation can
18950         deallocate edge which is this pointer.
18952 2019-07-30  Richard Biener  <rguenther@suse.de>
18954         PR tree-optimization/91257
18955         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18957 2019-07-30  Martin Liska  <mliska@suse.cz>
18959         * doc/invoke.texi: Document new behavior.
18960         * lto-wrapper.c (cpuset_popcount): New function
18961         is a copy of libgomp/config/linux/proc.c.
18962         (init_num_threads): Likewise.
18963         (run_gcc): Automatically detect core count for -flto.
18964         (jobserver_active_p): New function.
18966 2019-07-30  Richard Biener  <rguenther@suse.de>
18968         PR tree-optimization/91257
18969         * bitmap.h (bitmap_ior_into_and_free): Declare.
18970         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18971         whether to add the unliked element to the freelist.
18972         (bitmap_list_insert_element_after): Add defaulted param for
18973         an already allocated element.
18974         (bitmap_ior_into_and_free): New function.
18975         * tree-ssa-structalias.c (condense_visit): Reduce the
18976         ponts-to and edge bitmaps of the SCC members in a
18977         logarithmic fashion rather than all to one.
18979 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18981         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18982         parameter.  When nonnull, make sure that the addition or subtraction
18983         has the same condition.
18984         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18985         for CFN_COND_MUL too.
18987 2019-07-30  Richard Biener  <rguenther@suse.de>
18989         PR tree-optimization/91291
18990         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18991         constant values.
18993 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
18995         PR middle-end/91216
18996         * omp-low.c (global_nonaddressable_vars): New variable.
18997         (use_pointer_for_field): For global decls, if they are non-addressable,
18998         remember it in the global_nonaddressable_vars bitmap, if they are
18999         addressable and in the global_nonaddressable_vars bitmap, ignore their
19000         TREE_ADDRESSABLE bit.
19001         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
19002         vars in global_nonaddressable_vars bitmap.
19003         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
19005         PR target/91150
19006         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
19007         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
19008         comparison to unsigned HOST_WIDE_INT before shifting it left.
19010 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
19012         * config/i386/i386.md (movstrict<mode>): Use register_operand
19013         predicate for operand 0.  Add expander condition.  Assert that
19014         operand 0 is a SUBREG RTX.
19015         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
19016         Update operand constraints and insn condition.
19017         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
19018         (zero_extendqihi2_and): Do not call gen_movstrictqi.
19019         (*setcc_qi_slp): Use register_operand predicate for operand 0.
19020         Update operand 0 constraints.
19021         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
19023 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19025         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
19026         when -m{code,data}-region are used without -mlarge.
19027         * config/msp430/msp430.c (msp430_option_override): Error when a
19028         non-default code or data region is used without -mlarge.
19029         (msp430_section_attr): Emit a warning and do not add upper/lower/either
19030         attributes when they are used without -mlarge.
19032 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19034         PR target/70320
19035         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
19037 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19039         PR middle-end/91242
19040         * wide-int.h (generic_wide_int::sext_elt): New function.
19041         * inchash.h (hash::add_wide_int): Use it instead of elt.
19043 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19045         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
19046         CODE_FOR_arm_##.
19047         * config/arm/arm.md (<crc_variant>): Rename to...
19048         (arm_<crc_variant>): ... This.
19049         (<cdp>): Rename to...
19050         (arm_<cdp>): ... This.
19051         (<ldc>): Rename to...
19052         (arm_<ldc>): ... This.
19053         (<stc>): Rename to...
19054         (arm_<stc>): ... This.
19055         (<mcr>): Rename to...
19056         (arm_<mcr>): ... This.
19057         (<mrc>): Rename to...
19058         (arm_<mrc>): ... This.
19059         (<mcrr>): Rename to...
19060         (arm_<mcrr>): ... This.
19061         (<mrrc>): Rename to...
19062         (arm_<mrrc>): ... This.
19064 2019-07-29  Richard Biener  <rguenther@suse.de>
19066         PR tree-optimization/91257
19067         * tree-ssa-sccvn.h (struct vn_avail): New.
19068         (struct vn_ssa_aux): Add avail member.
19069         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
19070         member, add m_avail_freelist one.
19071         (rpo_elim::~rpo_elim): Remove.
19072         (rpo_elim::eliminate_avail): Adjust to new avail tracking
19073         data structure.
19074         (rpo_elim::eliminate_push_avail): Likewise.
19075         (do_unwind): Likewise.
19076         (do_rpo_vn): Likewise.
19078 2019-07-29  Richard Biener  <rguenther@suse.de>
19080         PR tree-optimization/91257
19081         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
19082         most cases, instead call compare_values which handles the
19083         symbolic ranges we handle specially.
19084         (compare_values_warnv): Do not call operand_less_p but open-code
19085         the effective fold calls.  Avoid converting so much.
19087 2019-07-29  Martin Liska  <mliska@suse.cz>
19089         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
19090         remove LHS of operator new call.  It's handled latter.
19092 2019-07-29  Richard Biener  <rguenther@suse.de>
19094         PR tree-optimization/91267
19095         * vr-values.c (vr_values::update_value_range): Add early return
19096         for effectively VARYING lattice entry.
19098 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19100         PR debug/86638
19101         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
19102         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
19103         necessary if keep_all_vdefs_p is true.
19104         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
19105         that keep_all_vdefs_p is false.
19106         (mark_all_reaching_defs_necessary): Likewise.
19107         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
19109 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19111         * common.opt (Og): Change the initial value of flag_dse to 0.
19112         * opts.c (default_options_table): Move OPT_ftree_dse from
19113         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
19114         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
19115         entry before the OPT_ftree_sra entry.
19116         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
19117         of flags disabled by Og.
19119 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19121         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
19122         variables for -Og.
19124 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19126         * doc/sourcebuild.texi (check-function-bodies): Document.
19128 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19130         * simplify-rtx.c (simplify_const_unary_operation): Fold a
19131         VEC_DUPLICATE of a fixed-length vector even if the result
19132         is variable-length.  Likewise fold a duplicate of a
19133         variable-length vector if the variable-length vector is
19134         itself a duplicate of a fixed-length sequence.
19135         (test_vector_ops_duplicate): Test more cases.
19137 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19139         * vector-builder.h (vector_builder): Add a shape template parameter.
19140         (vector_builder::new_unary_operation): New function, generalizing
19141         the old tree_vector_builder function.
19142         (vector_builder::new_binary_operation): Likewise.
19143         (vector_builder::binary_encoded_nelts): Likewise.
19144         * int-vector-builder.h (int_vector_builder): Update template
19145         parameters to vector_builder.
19146         (int_vector_builder::shape_nelts): New function.
19147         * rtx-vector-builder.h (rtx_vector_builder): Update template
19148         parameters to vector_builder.
19149         (rtx_vector_builder::shape_nelts): New function.
19150         (rtx_vector_builder::nelts_of): Likewise.
19151         (rtx_vector_builder::npatterns_of): Likewise.
19152         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
19153         * tree-vector-builder.h (tree_vector_builder): Update template
19154         parameters to vector_builder.
19155         (tree_vector_builder::shape_nelts): New function.
19156         (tree_vector_builder::nelts_of): Likewise.
19157         (tree_vector_builder::npatterns_of): Likewise.
19158         (tree_vector_builder::nelts_per_pattern_of): Likewise.
19159         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
19160         (tree_vector_builder::new_binary_operation): Delete.
19161         (tree_vector_builder::binary_encoded_nelts): Likewise.
19162         * simplify-rtx.c: Include rtx-vector-builder.h.
19163         (distributes_over_addition_p): New function.
19164         (simplify_const_unary_operation)
19165         (simplify_const_binary_operation): Generalize handling of vector
19166         constants to include variable-length vectors.
19167         (test_vector_ops_series): Add more tests.
19169 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
19171         PR lto/91222
19172         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
19173         than INDENTIFIER_POINTER.
19175 2019-07-28  Martin Liska  <mliska@suse.cz>
19177         PR ipa/89330
19178         * cgraph.c (symbol_table::create_edge): Always allocate
19179         a cgraph_edge.
19180         (symbol_table::free_edge): Store summary_id to
19181         edge_released_summary_ids if != -1;
19182         * cgraph.h (NEXT_FREE_NODE): Remove.
19183         (SET_NEXT_FREE_NODE): Likewise.
19184         (NEXT_FREE_EDGE): Likewise.
19185         (symbol_table::release_symbol): Store summary_id to
19186         cgraph_released_summary_ids if != -1;
19187         (symbol_table::allocate_cgraph_symbol): Always allocate
19188         a cgraph_node.
19190 2019-07-28  Alan Modra  <amodra@gmail.com>
19192         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19193         gen_sibcall.
19195 2019-07-28  Alan Modra  <amodra@gmail.com>
19197         PR target/91135
19198         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
19199         define.
19200         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
19201         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
19202         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
19204 2019-07-28  Alan Modra  <amodra@gmail.com>
19206         PR target/91050
19207         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
19208         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
19209         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
19210         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
19211         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
19212         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
19213         in asm_default spec.
19214         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
19215         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
19217 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
19219         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
19221 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19223         PR target/89517
19224         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
19225         * config/aarch64/aarch64-option-extensions.def: Add new comments
19226         and restore easier to read options.
19228 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19230         * convert.c (convert_to_real_1): Move part of conversion code...
19231         * match.pd: ...To here.
19233 2019-07-26  Martin Jambor  <mjambor@suse.cz>
19235         PR ipa/89330
19236         * ipa-inline-transform.c (check_speculations_1): New function.
19237         (push_all_edges_in_set_to_vec): Likewise.
19238         (check_speculations): Use check_speculations_1, new parameter
19239         new_edges.
19240         (inline_call): Pass new_edges to check_speculations.
19241         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
19242         NULL.
19243         (speculation_useful_p): Early return true if edge is inlined, remove
19244         later checks for inline_failed.
19246 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19248         PR rtl-optimization/91223
19249         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
19250         matching with INOUT operand.
19252 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19254         * stmt.c (expand_case): Try to narrow the index type if it's larger
19255         than a word.  Tidy up.
19257 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19259         * cif-code.def (NEVER_CALL): New code.
19260         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
19261         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
19263 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
19265         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
19266         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19268 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19270         * ipa-devirt.c (add_type_duplicate): Fix return value.
19272 2019-07-25  Richard Biener  <rguenther@suse.de>
19274         * tree-vrp.c (extract_range_from_multiplicative_op): Add
19275         type parameter and use it instead of guessing expression
19276         type from the first operand.
19277         (extract_range_from_binary_expr): Pass expr_type down.
19279 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19281         * config/arm/arm.md (SATrev): Change to code attribute.
19282         (*satsi_<SAT:code>): Adjust for the above.
19283         (*satsi_<SAT:code>_shift): Likewise.
19285 2019-07-25  Richard Biener  <rguenther@suse.de>
19287         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19288         Make value_range * temporary const.
19289         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19290         Likewise.
19291         (evrp_range_analyzer::record_ranges_from_): Likewise.
19292         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19293         deal with having recorded a const one.
19294         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19295         Return a const value_range *.
19296         (evrp_range_analyzer::pop_value_range): Likewise.
19297         (evrp_range_analyzer::stack): Record const value_range *s.
19298         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19299         Adjust.
19300         * gimple-ssa-sprintf.c (get_int_range): Likewise.
19301         (format_integer): Likewise.
19302         (sprintf_dom_walker::handle_gimple_call): Likewise.
19303         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19304         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19305         (vrp_prop::get_value_range): Adjust.
19306         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19307         modifying the lattice in-place.
19308         (vrp_prop::visit_stmt): Likewise.
19309         * vr-values.c (vr_values::get_lattice_entry): New private method.
19310         (vr_values::get_value_range): Wrap it and return a const
19311         value_range *.
19312         (vr_values::set_def_to_varying): New.
19313         (vr_values::set_defs_to_varying): Use it.
19314         (vr_values::update_value_range): Likewise.
19315         (vr_values::vrp_stmt_computes_nonzero): Adjust.
19316         (values::op_with_constant_singleton_va): Likewise.
19317         (vr_values::extract_range_for_var_from_co): Likewise.
19318         (vr_values::extract_range_from_ssa_name): Likewise.
19319         (vr_values::extract_range_from_cond_expr): Likewise.
19320         (vr_values::extract_range_basic): Likewise.
19321         (compare_ranges): Take const value_range *, adjust.
19322         (compare_range_with_value): Likewise.
19323         (vrp_valueize): Adjust.
19324         (vrp_valueize_1): Likewise.
19325         (vr_values::get_vr_for_comparison): Return a const value_range *.
19326         (vr_values::compare_name_with_value): Adjust.
19327         (vr_values::compare_names): Likewise.
19328         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19329         Likewise.
19330         (vr_values::vrp_evaluate_conditional): Likewise.
19331         (find_case_label_ranges): Take a const value_range *.
19332         (vr_values::vrp_visit_switch_stmt): Adjust.
19333         (vr_values::extract_range_from_phi_node): Likewise.
19334         (vr_values::simplify_div_or_mod_using_ran): Likewise.
19335         (vr_values::simplify_abs_using_ranges): Likewise.
19336         (test_for_singularity): Take a const value_range *.
19337         (range_fits_type_p): Likewise.
19338         (vr_values::simplify_cond_using_ranges_1): Adjust.
19339         (vr_values::simplify_cond_using_ranges_2): Likewise.
19340         (vr_values::simplify_switch_using_ranges): Likewise.
19341         (vr_values::simplify_float_conversion_usi): Likewise.
19342         (vr_values::two_valued_val_range_p): Likewise.
19343         * vr-values.h (vr_values::get_value_range): Return a const
19344         value_range *.
19345         (vr_values::set_def_to_varying): New.
19346         (vr_values::get_lattice_entry): New private method.
19347         (vr_values::get_vr_for_comparison): Return a const value_range *.
19349 2019-07-25  Martin Liska  <mliska@suse.cz>
19350             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
19352         PR c++/23383
19353         * common.opt: Add -fallocation-dce
19354         * gimple.c (gimple_call_operator_delete_p): New.
19355         * gimple.h (gimple_call_operator_delete_p): Likewise.
19356         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19357         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19358         DECL_IS_OPERATOR_DELETE_P.
19359         (mark_all_reaching_defs_necessary_1): Likewise.
19360         (propagate_necessity): Likewise.
19361         (eliminate_unnecessary_stmts): Handle
19362         gimple_call_operator_delete_p.
19363         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19364         Add packing of OPERATOR_DELETE.
19365         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19366         Similarly here.
19367         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19368         (DECL_SET_IS_OPERATOR_DELETE): New.
19369         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19371 2019-07-25  Martin Liska  <mliska@suse.cz>
19373         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19374         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19375         * coverage.c (coverage_begin_function): Likewise.
19376         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19377         * gimple.c (gimple_call_nonnull_result_p): Likewise.
19378         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19379         (sem_item::hash_referenced_symbol_properties): Likewise.
19380         * lto-streamer-out.c (hash_tree): Likewise.
19381         * predict.c (expr_expected_value_1): Likewise.
19382         * tree-inline.c (expand_call_inline): Likewise.
19383         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19384         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19385         * tree-core.h (enum function_decl_type): New enum.
19386         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19387         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19388         (set_function_decl_type): Likewise.
19389         (DECL_IS_OPERATOR_NEW_P): New.
19390         (DECL_SET_IS_OPERATOR_NEW): Likewise.
19391         (DECL_LAMBDA_FUNCTION): Likewise.
19392         (DECL_LAMBDA_FUNCTION_P): Likewise.
19393         (DECL_IS_OPERATOR_NEW): Remove.
19394         (DECL_SET_LAMBDA_FUNCTION): Likewise.
19396 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
19398         * ipa-profile.c (get_most_common_single_value): Use
19399         get_nth_most_common_value.
19400         * profile.c (sort_hist_value): New function.
19401         (compute_value_histograms): Call sort_hist_value to sort the
19402         values after loading from disk.
19403         * value-prof.c (get_most_common_single_value): Rename to ...
19404         get_nth_most_common_value.  Add input params n, return
19405         the n_th value and count.
19406         (gimple_divmod_fixed_value_transform): Use
19407         get_nth_most_common_value.
19408         (gimple_ic_transform): Likewise.
19409         (gimple_stringops_transform): Likewise.
19410         * value-prof.h (get_most_common_single_value): Add input params
19411         n, default to 0.
19413 2019-07-25  Richard Biener  <rguenther@suse.de>
19415         PR tree-optimization/91236
19416         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19417         size of CONSTRUCTOR write.  Fix buffer size we pass to
19418         native_encode_expr.
19420 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19422         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19423         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19424         r273773.
19426 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19428         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19429         explicitly disabled with --disable-initfini-array.
19431 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19433         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19434         if-exists.
19436 2019-07-24  Martin Sebor  <msebor@redhat.com>
19438         PR tree-optimization/91183
19439         PR tree-optimization/86688
19440         * builtins.c (compute_objsize): Handle MEM_REF.
19441         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19442         (get_min_string_length): Remove.
19443         (count_nonzero_bytes): New function.
19444         (handle_char_store): Rename...
19445         (handle_store): to this.  Handle multibyte stores via integer types.
19446         (strlen_check_and_optimize_stmt): Adjust conditional and the called
19447         function name.
19449 2019-07-24  Martin Sebor  <msebor@redhat.com>
19451         PR driver/80545
19452         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19453         (diagnostic_report_diagnostic): Same.
19454         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19455         (diagnostic_context::lang_mask): New data member.
19456         * ipa-pure-const.c (suggest_attribute): Use
19457         lang_hooks.option_lang_mask ().
19458         * opts-common.c (option_enabled): Handle new argument.
19459         (get_option_state): Pass an additional argument.
19460         * opts.c (print_filtered_help): Print supported languages for
19461         unsupported options.  Adjust printing of current state.
19462         * opts.h (option_enabled): Add argument.
19463         * toplev.c (print_switch_values): Use lang_mask.
19464         (general_init): Set global_dc->lang_mask.
19466 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
19468         PR bootstrap/87030
19469         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19471 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19473         * cgraphunit.c (symbol_table::compile): Start and stop
19474         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19475         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19477 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
19479         * gimplify.c (flag_instrument_functions_exclude_p): Include
19480         namespace/class information in the printable name.
19481         * opts.c (add_comma_separated_to_vector): Add NUL terminator
19482         to tokens entered into the vector.
19484 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
19486         * tree-nested.c (build_simple_mem_ref_notrap): New function.
19487         (get_static_chain): Call it instead of build_simple_mem_ref.
19488         (get_frame_field): Likewise.
19489         (get_nonlocal_debug_decl): Likewise.
19490         (convert_nonlocal_reference_op): Likewise.
19492 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
19494         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19495         declaration.
19496         (arc_compute_frame_size): Millicode is disabled when compiling
19497         ISR.
19498         (arc_return_address_register): Likewise.
19499         (arc_compute_function_type): Likewise.
19500         (arc_compute_frame_size): Likewise.
19501         (secondary_reload_info): Likewise.
19502         (arc_get_unalign): Likewise.
19503         (arc_can_use_return_insn): Declare.
19504         * config/arc/arc.c (AUX_LP_START): Define
19505         (AUX_LP_END): Likewise.
19506         (arc_frame_info): Update gmask member to 64-bit datum.
19507         (GMASK_LEN): Update.
19508         (arc_compute_function_type): Make it static, move it forward.
19509         (arc_must_save_register): Update, consider the extra regs.
19510         (arc_compute_millicode_save_restore_regs): Update to use the 64
19511         bit gmask.
19512         (arc_compute_frame_size): Likewise.
19513         (arc_enter_leave_p): Likewise.
19514         (arc_save_callee_saves): Likewise.
19515         (arc_restore_callee_saves): Likewise.
19516         (arc_save_callee_enter): Likewise.
19517         (arc_restore_callee_leave): Likewise.
19518         (arc_save_callee_milli): Likewise.
19519         (arc_restore_callee_milli): Likewise.
19520         (arc_expand_prologue): Add new interrupt handling.
19521         (arc_return_address_register): Make it static, move it forward.
19522         (arc_expand_epilogue): Add new interrupt handling.
19523         (arc_get_unalign): Delete.
19524         (arc_epilogue_uses): Make sure we do not remove the extra
19525         saved/restored registers when interrupt.
19526         (arc_can_use_return_insn): New function.
19527         (push_reg): Likewise.
19528         (pop_reg): Likewise.
19529         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19530         procedures.
19531         (arc_restore_callee_saves): Likewise, but restoring.
19532         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19533         (R33_REG): Likewise.
19534         (R34_REG): Likewise.
19535         (R35_REG): Likewise.
19536         (R36_REG): Likewise.
19537         (R37_REG): Likewise.
19538         (R38_REG): Likewise.
19539         (R39_REG): Likewise.
19540         (R45_REG): Likewise.
19541         (R46_REG): Likewise.
19542         (R47_REG): Likewise.
19543         (R48_REG): Likewise.
19544         (R49_REG): Likewise.
19545         (R50_REG): Likewise.
19546         (R51_REG): Likewise.
19547         (R52_REG): Likewise.
19548         (R53_REG): Likewise.
19549         (R54_REG): Likewise.
19550         (R55_REG): Likewise.
19551         (R56_REG): Likewise.
19552         (R58_REG): Likewise.
19553         (type): Add rtie attribute.
19554         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19555         (movsi_insn): Accept moves to lp_count.
19556         (rtie): Update pattern.
19557         (simple_return): Simplify it, don't use this pattern as a return
19558         from an interrupt.
19559         (arc600_rtie): New pattern.
19560         (p_return_i): Clean up.
19561         (return): Likewise.
19562         * config/arc/builtins.def (rtie): Only available for non ARC6xx
19563         family CPUs.
19564         * config/arc/predicates.md (move_src_operand): Consider lp_count
19565         as a register.
19567 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
19569         * config/s390/predicates.md (addv_const_operand): New predicate.
19570         * config/s390/s390-modes.def (CCO): New condition code mode.
19571         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19572         (s390_branch_condition_mask): Likewise.
19573         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19574         ("mulv<mode>4"): New expanders.
19575         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19576         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19577         pattern definitions.
19579 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19581         PR middle-end/91166
19582         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19583         (define_predicates): Add entry for uniform_vector_p.
19584         (vec_same_elem_p): New match pattern.
19586 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
19588         PR bootstrap/87030
19589         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19590         * config/i386/darwin32-biarch.h .. to here.
19591         * config/i386/darwin64-biarch.h: Adjust comments.
19592         * config/rs6000/darwin32-biarch.h: Likewise.
19593         * config/rs6000/darwin64-biarch.h: Likewise.
19594         * config.gcc: Missed commit from r273746
19595         (*-*-darwin*): Don't include CPU t-darwin here.
19596         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19597         an error message if i686-darwin configuration is attempted for
19598         Darwin >= 18.
19600 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
19602         PR bootstrap/87030
19603         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19604         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19605         an error message if i686-darwin configuration is attempted for
19606         Darwin >= 18.
19607         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19608         (powerpc-*-darwin*): Use biarch files where needed.
19609         (powerpc64-*-darwin*): Likewise.
19610         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19611         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19612         arch case.
19613         * config/i386/darwin32-biarch.h: New.
19614         * config/i386/darwin64.h: Rename.
19615         * config/i386/darwin64-biarch.h: To this.
19616         * config/i386/t-darwin: Rename.
19617         * config/i386/t-darwin32-biarch: To this.
19618         * config/i386/t-darwin64: Rename.
19619         * config/i386/t-darwin64-biarch: To this.
19620         * config/rs6000/darwin32-biarch.h: New.
19621         * config/rs6000/darwin64.h: Rename.
19622         * config/rs6000/darwin64-biarch.h: To this.
19623         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19624         arch case.
19625         * config/rs6000/t-darwin8: Rename.
19626         * config/rs6000/t-darwin32-biarch: To this.
19627         * config/rs6000/t-darwin64 Rename.
19628         * config/rs6000/t-darwin64-biarch: To this.
19630 2019-07-23  Martin Sebor  <msebor@redhat.com>
19632         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19634 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
19636         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19637         (rh): New alias for it.
19639 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
19641         * gdbhooks.py: Pass replace=True to
19642         gdb.printing.register_pretty_printer.
19644 2019-07-23  Richard Biener  <rguenther@suse.de>
19646         PR debug/91231
19647         * lto-streamer-in.c (input_function): Drop inline-entry markers
19648         that ended up with an unknown location block.
19650 2019-07-23  Richard Biener  <rguenther@suse.de>
19652         PR tree-optimization/83518
19653         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19654         init from a constant even when partial defs are already recorded.
19656 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19658         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19659         * config/i386/znver1.md: Enable patterns for znver2 and add store
19660         variants which use extra AGU unit.
19662 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19664         * config/i386/i386-options.c (ix86_option_override_internal): Default
19665         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19666         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19667         for ZNVER2.
19669 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19671         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19672         (znver2_costs): Update 256 bit SSE costs and multiplication.
19674 2019-07-23  Jan Beulich  <jbeulich@suse.com>
19676         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19677         Require only AVX512F.
19678         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
19679         alternative expanding to vpternlog.
19681 2019-07-23  Martin Liska  <mliska@suse.cz>
19683         * dwarf2out.c (gen_producer_string): Canonize -flto=N
19684         to -flto in dwarf producer string.
19686 2019-07-23  Richard Biener  <rguenther@suse.de>
19688         * tree-cfg.c (label_for_bb): Remove global var.
19689         (main_block_label): Take label_for_bb as argument.
19690         (cleanup_dead_labels_eh): Likewise, adjust.
19691         (cleanup_dead_labels): Adjust.
19693 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
19695         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19696         Configurations): Add documentation for __builtin_mtfsf.
19698 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
19700         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19701         * config/riscv/riscv.c (riscv_constant_alignment): Use
19702         riscv_align_data_type.
19703         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19704         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19705         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19706         * config/riscv/riscv.opt (malign-data): New.
19707         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19709 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19711         * cgraph.c (dump_graphviz): New function.
19712         * cgraph.h (dump_graphviz): New function.
19713         * symtab.c (dump_graphviz): New function.
19715 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
19717         * config/aarch64/aarch64-simd.md
19718         (*aarch64_simd_sra<mode>): New.
19719         * config/aarch64/iterators.md
19720         (SHIFTRT): New iterator.
19721         (sra_op): New attribute.
19723 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19725         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19726         callee-saved regs R4->R10 in an interrupt function that calls another
19727         function.
19729 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
19731         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19732         (_mm_blendv_epi8): New.
19734 2019-07-22  Richard Biener  <rguenther@suse.de>
19736         PR tree-optimization/91221
19737         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19738         restrict partial-def handling of empty constructors and
19739         memset to refs with known offset.
19741 2019-07-22  Jan Beulich  <jbeulich@suse.com>
19743         * config/i386/sse.md (ternlogsuffix): New.
19744         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19745         AVX512F is in use.
19746         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19748 2019-07-22  Martin Liska  <mliska@suse.cz>
19750         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19751         comment.
19752         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19754 2019-07-22  Martin Liska  <mliska@suse.cz>
19756         * lto-section-in.c (lto_get_section_data):
19757         Use new function get_compression.
19758         * lto-streamer-out.c (produce_lto_section): Use
19759         set_compression to encode compression algorithm.
19760         * lto-streamer.h (struct lto_section): Do not
19761         use bitfields in the format.
19763 2019-07-22  Martin Liska  <mliska@suse.cz>
19765         PR driver/91172
19766         * opts-common.c (decode_cmdline_option): Decode
19767         argument of -Werror and check it for a wrong language.
19768         * opts-global.c (complain_wrong_lang): Remove such case.
19770 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
19772         * config/arc/arc.c (prepare_move_operands): Always use an
19773         intermediate register when storing a TLS symbols.
19775 2019-07-22  Stafford Horne  <shorne@gmail.com>
19777         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19778         force_reg.
19780 2019-07-22  Stafford Horne  <shorne@gmail.com>
19782         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19783         and munordered-float validations.
19784         * config/or1k/constraints.md (d): New register constraint.
19785         * config/or1k/predicates.md (fp_comparison_operator): New.
19786         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19787         operands.
19788         (or1k_expand_compare): Normalize unordered comparisons.
19789         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19790         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19791         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19792         * config/or1k/or1k.md (type): Add fpu.
19793         (fpu): New instruction reservation.
19794         (F, f, fr, fi, FI, FOP, fop): New.
19795         (<fop><F:mode>3): New ALU instruction definition.
19796         (float<fi><F:mode>2): New conversion instruction definition.
19797         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19798         (fpcmpcc): New code iterator.
19799         (*sf_fp_insn): New instruction definition.
19800         (cstore<F:mode>4): New expand definition.
19801         (cbranch<F:mode>4): New expand definition.
19802         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19803         munordered-float): New options.
19804         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19805         munordered-float.
19807 2019-07-22  Stafford Horne  <shorne@gmail.com>
19809         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19810         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19811         documenation to be more clear.
19812         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19813         more clear.
19814         * config/or1k/or1k.opt (mrori): New option.
19815         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19816         msfimm, mshftimm): Rewrite documentation to be more clear.
19817         * config/or1k/or1k.md (insn_support): Add ror and rori.
19818         (enabled): Add conditions for ror and rori.
19819         (rotrsi3): Replace condition for shftimm with ror and rori.
19821 2019-07-22  Stafford Horne  <shorne@gmail.com>
19823         PR target/90363
19824         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19825         (extend<mode>si2): Update predicate.
19826         * config/or1k/predicates.md (volatile_mem_operand): New.
19827         (reg_or_mem_operand): New.
19829 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
19831         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19832         * config/rs6000/rs6000-call.c: ... to here.
19834 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19836         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19837         memory.
19839 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19841         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19843 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19845         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19847 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19849         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19850         (any_memory_operand): New predicate.
19851         (reg_or_mem_operand): Use it.
19853 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19855         PR target/91204
19856         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19858 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
19860         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19861         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19863 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19865         * tree.def (OMP_LOOP): New tree code.
19866         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19867         (enum omp_clause_bind_kind): New enum.
19868         (struct tree_omp_clause): Add subcode.bind_kind.
19869         * tree.h (OMP_LOOP_CHECK): Rename to ...
19870         (OMP_LOOPING_CHECK): ... this.
19871         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19872         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19873         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19874         (OMP_CLAUSE_BIND_KIND): Define.
19875         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19876         bind clause entries.
19877         (walk_tree_1): Handle OMP_CLAUSE_BIND.
19878         * tree-pretty-print.c (dump_omp_clause): Likewise.
19879         (dump_generic_node): Handle OMP_LOOP.
19880         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19881         (in_omp_construct): New variable.
19882         (is_gimple_stmt): Handle OMP_LOOP.
19883         (gimplify_scan_omp_clauses): For lastprivate don't set
19884         check_non_private if code == OMP_LOOP.  For reduction clause
19885         on OMP_LOOP combined with parallel or teams propagate as shared
19886         on the combined construct.  Handle OMP_CLAUSE_BIND.
19887         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19888         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19889         for constructs from a loop construct to gimplify_scan_omp_clauses.
19890         Don't predetermine iterator linear on OMP_SIMD from loop construct.
19891         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19892         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19893         to match the implicit ORT_TARGET construct around whole body.
19894         Temporarily clear in_omp_construct when processing body.
19895         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
19896         etc. temporarily set in_omp_construct when processing body.
19897         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19898         * omp-low.c (struct omp_context): Add loop_p.
19899         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19900         in that the original var might be private.
19901         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19902         (check_omp_nesting_restrictions): Adjust nesting restrictions for
19903         addition of loop construct.
19904         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19906         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19907         lastprivate non-addressable iterator of a collapse(1) simd.
19909 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
19911         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19912         as in rs6000.c.
19914 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
19916         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19917         refer to default conditions.  Warn for the 'y' spec which is ignored
19918         by current linkers.
19920 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
19922         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19923         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19924         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19925         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19926         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19927         init_cumulative_args, rs6000_promote_function_mode,
19928         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19929         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19930         rs6000_function_arg_boundary, rs6000_parm_offset,
19931         rs6000_parm_start, rs6000_arg_size,
19932         rs6000_darwin64_record_arg_advance_flush,
19933         rs6000_darwin64_record_arg_advance_recurse,
19934         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19935         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19936         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19937         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19938         rs6000_finish_function_arg, rs6000_function_arg,
19939         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19940         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19941         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19942         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19943         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19944         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19945         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19946         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19947         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19948         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19949         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19950         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19951         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19952         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19953         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19954         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19955         get_element_number, altivec_expand_vec_set_builtin,
19956         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19957         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19958         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19959         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19960         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19961         rs6000_expand_builtin, rs6000_vector_type,
19962         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19963         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19964         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19965         to rs6000-call.c.
19966         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19967         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19968         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19969         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19970         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19971         init_cumulative_args, rs6000_promote_function_mode,
19972         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19973         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19974         rs6000_function_arg_boundary, rs6000_parm_offset,
19975         rs6000_parm_start, rs6000_arg_size,
19976         rs6000_darwin64_record_arg_advance_flush,
19977         rs6000_darwin64_record_arg_advance_recurse,
19978         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19979         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19980         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19981         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19982         rs6000_finish_function_arg, rs6000_function_arg,
19983         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19984         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19985         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19986         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19987         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19988         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19989         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19990         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19991         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19992         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19993         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19994         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19995         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19996         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19997         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19998         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19999         get_element_number, altivec_expand_vec_set_builtin,
20000         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
20001         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
20002         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
20003         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
20004         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
20005         rs6000_expand_builtin, rs6000_vector_type,
20006         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
20007         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
20008         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
20009         to here from rs6000.c.
20010         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
20011         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
20012         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
20013         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
20014         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
20015         rs6000_return_in_memory, rs6000_return_in_msb,
20016         rs6000_pass_by_reference, setup_incoming_varargs,
20017         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
20018         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
20019         rs6000_function_arg_padding, rs6000_function_arg,
20020         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
20021         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
20022         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
20023         rs6000_passes_long_double, rs6000_passes_vector,
20024         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
20025         altivec_builtin_mask_for_load) Add declarations.
20026         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
20027         * config/config.gcc: Add new source file rs6000-call.c to garbage
20028         collector and extra_objs.
20030 2019-07-19  Jeff Law  <law@redhat.com>
20032         PR tree-optimization/86061
20033         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
20034         strncpy.  Drop some trivial dead code.
20035         (maybe_trim_memstar_call): Handle strncpy.
20037 2019-07-19  Richard Biener  <rguenther@suse.de>
20039         PR tree-optimization/91211
20040         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
20041         memset encoding size.
20043 2019-07-19  Uroš Bizjak  <ubizjak@gmail.com>
20045         PR target/91204
20046         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
20048 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
20050         PR ipa/91194
20051         * ipa-inline.c (recursive_inlining): Fix limits check.
20053 2019-07-19  Richard Biener  <rguenther@suse.de>
20055         PR tree-optimization/91200
20056         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
20057         no PHI nodes in middle-bb.
20059 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
20061         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
20062         to +sve-bitperm.
20063         * config/aarch64/aarch64-option-extensions.def: Likewise.
20065 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
20067         PR middle-end/91190
20068         * function.c (insert_temp_slot_address): Store into the hash table
20069         a copy of address to avoid RTL sharing issues.
20071 2019-07-19  Richard Biener  <rguenther@suse.de>
20073         PR tree-optimization/91207
20074         Revert
20075         2019-07-17  Richard Biener  <rguenther@suse.de>
20077         PR tree-optimization/91178
20078         * tree-vect-stmts.c (get_group_load_store_type): For SLP
20079         loads with a gap larger than the vector size always use
20080         VMAT_STRIDED_SLP.
20081         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20082         avoid loading vectors that are only contained in the gap
20083         and thus are not needed.
20085 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
20087         * config/i386/i386.md (*addqi_2_slp): Remove.
20088         (*<code>qi_2_slp): Ditto.
20090 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
20092         * config/rs6000/predicates.md (prefixed_mem_operand): Call
20093         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
20094         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
20095         Rename function from rs6000_prefixed_address.
20096         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20097         TARGET_HAS_TOC.
20098         (TARGET_TOC): Likewise.
20099         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20100         rs6000.h.
20101         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20102         TARGET_HAS_TOC.
20103         (TARGET_TOC): Likewise.
20104         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20105         rs6000.h.
20106         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20107         TARGET_HAS_TOC.
20108         (TARGET_TOC): Likewise.
20109         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20110         check to require -mcmodel=medium for pc-relative addressing.
20111         (create_TOC_reference): Add assertion for TARGET_TOC.
20112         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
20113         TARGET_NO_TOC.
20114         (rs6000_emit_move): Likewise.
20115         (TOC_alias_set): Rename TOC alias set static variable from 'set'
20116         to 'TOC_alias_set'.
20117         (get_TOC_alias_set): Likewise.
20118         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
20119         TARGET_NO_TOC.
20120         (rs6000_can_eliminate): Likewise.
20121         (rs6000_prefixed_address_mode_p): Rename function from
20122         rs6000_prefixed_address.
20123         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
20124         TARGET_HAS_TOC and not pc-relative.
20125         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
20126         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20127         TARGET_HAS_TOC.
20128         (TARGET_TOC): Likewise.
20129         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20130         rs6000.h.
20132 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
20134         PR target/91188
20135         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
20136         for operand 0.  Do not use (match_dup) to match operand 1 with
20137         operand 0.  Add check in insn constraint that either input operand
20138         matches operand 0.  Use SWI12 mode iterator to also handle
20139         HImode operands.
20140         (*and<mode>_1_slp): Ditto.
20141         (*<code>qi_1_slp): Ditto.
20142         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
20143         Do not use (match_dup) to match operand 1 with operand 0.  Add
20144         check in insn constraint that operand 1 matches operand 0.
20145         Use SWI12 mode iterator to also handle HImode operands.
20146         (*ashl<mode>3_1_slp): Ditto.
20147         (*<shift_insn><mode>3_1_slp): Ditto.
20148         (*<rotate_insn><mode>3_1_slp): Ditto.
20150 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20152         * config/arm/arm-builtins.c
20153         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
20154         (arm_expand_unop_builtin): Likewise.
20155         * config/arm/crypto.md
20156         (crypto_sha1h): Convert from define_insn to define_expand.
20157         (crypto_<crypto_pattern>): Likewise.
20158         (crypto_sha1h_lb): New define_insn.
20159         (crypto_<crypto_pattern>_lb): Likewise.
20161 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20163         PR target/90317
20164         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
20165         (vsha1cq_u32): Likewise.
20166         (vsha1pq_u32): Likewise.
20167         (vsha1mq_u32): Likewise.
20168         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
20169         vec select.
20170         (crypto_sha1c): Correct vec select.
20171         (crypto_sha1m): Likewise.
20172         (crypto_sha1p): Likewise.
20174 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
20176         * config/arm/predicates.md (arm_borrow_operation): New predicate.
20177         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
20178         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
20179         (subdi_zesidi_zesidi): Likewise.
20180         (negdi2_compare, negdi2_insn): Likewise.
20181         (negdi_extensidi): Likewise.
20182         (negdi_zero_extendsidi): Likewise.
20183         (arm_cmpdi_insn): Likewise.
20184         (subsi3_carryin): Use arm_borrow_operation.
20185         (subsi3_carryin_const): Likewise.
20186         (subsi3_carryin_const0): Likewise.
20187         (subsi3_carryin_compare): Likewise.
20188         (subsi3_carryin_compare_const): Likewise.
20189         (subsi3_carryin_compare_const0): Likewise.
20190         (subsi3_carryin_shift): Likewise.
20191         (rsbsi3_carryin_shift): Likewise.
20192         (negsi2_carryin_compare): Likewise.
20194 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
20196         PR tree-optimization/91137
20197         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
20198         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
20199         Init, use and fini the above new field.
20200         (determine_base_object_1): New function.
20201         (determine_base_object): Reimplement using walk_tree.
20203 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
20205         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
20206         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
20207         CLEANUP_FORCE_FAST_DCE is set.
20208         * ifcvt.c (rest_of_handle_if_conversion): Pass
20209         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
20210         if-conversion succeeded.
20212 2019-07-18  Richard Biener  <rguenther@suse.de>
20214         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
20215         branches to make code less indented.
20217 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
20219         PR middle-end/81824
20220         * attribs.c (decls_mismatched_attributes): Simplify the logic
20221         that avoids duplicates and false positives.
20223 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
20225         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
20226         data into data section when generating PIC code.
20227         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
20228         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
20229         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
20230         return 2 for SOM and 0 for other targets.
20232 2019-07-17  Jeff Law  <law@redhat.com>
20234         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
20235         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
20236         avoid unexpected switch statement fallthru.
20238 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
20240         * config/i386/i386.md (*add<dwi>3_doubleword):
20241         Remove redundant constraints.
20242         (*add<mode>_1): Ditto.
20243         (*addhi_1): Ditto.
20244         (*addqi_1): Ditto.
20245         (*addqi_1_slp): Ditto.
20246         (*add<mode>_2): Ditto.
20247         (*addv<mode>4): Ditto.
20248         (*sub<dwi>3_doubleword): Ditto.
20249         (*sub<mode>_1): Ditto.
20250         (*subqi_1_slp): Ditto.
20251         (*sub<mode>_2): Ditto.
20252         (*subv<mode>4): Ditto.
20253         (*sub<mode>_3): Ditto.
20254         (@add<mode>3_carry): Ditto.
20255         (@sub<mode>3_carry): Ditto.
20256         (*add<mode>3_cc_overflow_1): Ditto.
20257         (*add<mode>3_zext_cc_overflow_2): Ditto.
20258         (*anddi_1): Ditto.
20259         (*and<mode>_1): Ditto.
20260         (*andqi_1): Ditto.
20261         (*andqi_1_slp): Ditto.
20262         (*anddi_2): Ditto.
20263         (*andqi_2_maybe_si): Ditto.
20264         (*and<mode>_2): Ditto.
20265         (*andqi_2_slp): Ditto.
20266         (*<code><mode>_1): Ditto.
20267         (*<code>qi_1): Ditto.
20268         (*<code>qi_1_slp): Ditto.
20269         (*<code><mode>_2): Ditto.
20270         (*<code>qi_2_slp): Ditto.
20272 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
20274         * alias.c (record_component_aliases): Do not simplify pointed-to
20275         types of ODR types.
20277 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
20279         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
20280         partial reg stall on alternative 2.
20282 2019-07-17  Richard Biener  <rguenther@suse.de>
20284         PR tree-optimization/91178
20285         * tree-ssa.c (release_defs_bitset): Iterate from higher to
20286         lower SSA names to avoid quadratic behavior in the common case.
20287         * tree-data-ref.c (split_constant_offset): Add limit argument
20288         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20289         (split_constant_offset_1): Add limit argument and use it to
20290         limit SSA def walking.  Optimize the common plus/minus case.
20292 2019-07-17  Richard Biener  <rguenther@suse.de>
20294         PR tree-optimization/91178
20295         * tree-vect-stmts.c (get_group_load_store_type): For SLP
20296         loads with a gap larger than the vector size always use
20297         VMAT_STRIDED_SLP.
20298         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20299         avoid loading vectors that are only contained in the gap
20300         and thus are not needed.
20302 2019-07-17  Richard Biener  <rguenther@suse.de>
20304         PR tree-optimization/91180
20305         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20306         computation for memset partial defs.
20308 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
20310         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20311         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20312         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20313         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20314         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20315         * omp-grid.c (grid_process_grid_body,
20316         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20317         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20318         == GF_OMP_FOR_KIND_SIMD.
20319         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20320         check_omp_nesting_restrictions, scan_omp_1_stmt,
20321         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20322         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20323         omp_find_scan): Likewise.
20324         * omp-expand.c (expand_omp_for): Likewise.
20325         * omp-general.c (omp_extract_for_data): Likewise.
20327         PR tree-optimization/91157
20328         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20329         a vector boolean with scalar mode.
20330         (expand_vector_condition): Handle first operand being a vector boolean
20331         with scalar mode.
20332         (expand_vector_operations_1): For comparisons, don't bail out early
20333         if the return type is vector boolean with scalar mode, but comparison
20334         operand type is not.
20336 2019-07-17  Richard Biener  <rguenther@suse.de>
20338         PR tree-optimization/91181
20339         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20340         IFN_LOADs as calls.
20342 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
20344         * config/i386/i386.md (*testdi_1): Match CCZmode for
20345         constants that might have the SImode sign bit set.
20346         (*testqi_1_maybe_si): Remove "!" constraint modifier.
20347         Use correct constraints for pentium pairing.
20348         (*test<mode>_1): Ditto.
20350 2019-07-16  Jeff Law  <law@redhat.com>
20352         PR rtl-optimization/91173
20353         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20354         SSA_NAME with a constant value, fold its value into the offset
20355         and clear the base before calling gen_addr_rtx.
20357 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
20359         PR rtl-optimization/91164
20360         * dse.c (rest_of_handle_dse): If dead edges have been purged,
20361         invalidate dominance info.
20363 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20365         * read-md.h (md_reader::record_potential_iterator_use): Add a
20366         file_location parameter.
20367         * read-rtl.c (attribute_use::loc): New field.
20368         (map_attr_string): Take a file_location parameter.  Report cases
20369         in which attributes map to multiple distinct values.
20370         (apply_attribute_uses): Update call accordingly.
20371         (md_reader::handle_overloaded_name): Likewise.
20372         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
20373         nonnull strings.
20374         (record_attribute_use): Take a file_location parameter.
20375         Initialize attribute_use::loc.
20376         (md_reader::record_potential_iterator_use): Take a file_location
20377         parameter.  Update call to record_attribute_use.
20378         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20379         (rtx_reader::read_rtx_code): Likewise.
20380         (rtx_reader::read_rtx_operand): Likewise.  Record a location
20381         for implicitly-expanded empty strings.
20383 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20385         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20386         Use file_location instead of separate fields.
20387         (md_reader::set_md_ptr_loc): Take a file_location instead of a
20388         separate filename and line number.
20389         * read-md.c (ptr_loc): As above.
20390         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20391         (md_reader::fprint_md_ptr_loc): Likewise.
20392         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
20393         instead of a separate filename and line number.
20394         (md_reader::read_string): Update call accordingly.
20396 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20398         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20399         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20400         leaving the choice between SFDF and P implicit.
20401         (*mov<mode>_update2): Likewise.
20402         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20403         rather than leaving the choice betweem IBM128 and GPR implicit.
20404         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20405         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20406         QHSI implicit.
20407         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20408         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20409         * config/rs6000/vsx.md
20410         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20411         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20412         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20413         and VSX_EXTRACT_I implicit.
20415 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20417         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20418         Explicitly use <MOVEP1:MODE> for the mode attribute.
20420 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
20422         PR bootstrap/91176
20423         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20425 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
20427         PR target/91050
20428         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20429         .machine directive.
20431 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
20433         * config/i386/i386.md (@test<mode>_ccno_1):
20434         Rename from test<mode>_ccno_1.
20435         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
20436         (*testqi_1_maybe_si): Remove modrm attribute.
20437         (*test<mode>_1): Ditto.
20438         * config/i386/i386-expand.c (ix86_split_idivmod): Use
20439         gen_test_ccno_1 and gen_extend_insn.
20441 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
20443         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20444         to 0.
20446 2019-07-15  Richard Biener  <rguenther@suse.de>
20448         PR middle-end/91162
20449         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20450         node make sure to replace all uses with something valid.
20452 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
20454         PR tree-optimization/88497
20455         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20456         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20457         function undistribute_bitref_for_vector.
20458         (undistribute_bitref_for_vector): New function.
20459         (cleanup_vinfo_map): Likewise.
20460         (sort_by_mach_mode): Likewise.
20462 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
20464         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20465         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20466         and testdi_ccno_1 using SWI48 mode attribute.
20467         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20468         x86_64_szext_general_operand.
20469         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20470         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20471         instead of genera_operand mode attribute.
20473 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
20475         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20476         fopen and fclose to their respective types.
20477         (DotFn.invoke): Ditto.
20479 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
20481         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20482         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20483         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20484         (array_index_predicate): Remove.
20485         (analyze_function_body): Account cost for variable ofsetted array
20486         indexing.
20487         (estimate_node_size_and_time): Do not compute array index hint.
20488         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20489         (inline_read_section): Do not read array index hint.
20490         (ipa_fn_summary_write): Do not write array index hint.
20491         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20492         * ipa-cp.c (hint_time_bonus): Remove.
20493         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20494         (ipa_fnsummary): Remove array_index.
20495         * ipa-inline.c (want_inline_small_function_p): Do not use
20496         array_index.
20497         (edge_badness): Likewise.
20498         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20500 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
20502         PR target/91148
20503         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20504         superfluous "builtin function" phrasing.
20506 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
20508         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20509         Break out from ...
20510         (aliasing_component_refs_walk): Break out from ...
20511         (aliasing_component_refs_p): ... here.
20513 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
20515         PR target/91148
20516         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20517         "builtin function" phrasing.
20519 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20521         PR target/90723
20522         * recog.h (temporary_volatile_ok): New class.
20523         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20524         volatile_ok temporarily to true using temporary_volatile_ok.
20525         * expr.c (emit_block_move_via_cpymem): Likewise.
20526         * optabs.c (maybe_legitimize_operand): Likewise.
20528 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
20530         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20531         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20532         uses inside of order(concurrent) constructs.
20533         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20534         OMP_CLAUSE_ORDER is seen.
20535         * omp-low.c (struct omp_context): Add order_concurrent member.
20536         (scan_sharing_clauses): Set ctx->order_concurrent if
20537         OMP_CLAUSE_ORDER is seen.
20538         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20539         of simd order(concurrent).  Diagnose constructs not allowed inside of
20540         for order(concurrent).
20541         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20542         complaining about static double setjmp (double); or class static
20543         methods or non-global namespace setjmps.
20544         (omp_runtime_api_call): New function.
20545         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20546         order(concurrent) loops.
20548 2019-07-12  Martin Sebor  <msebor@redhat.com>
20550         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20551         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20552         * tree-vrp.c (vrp_prop::check_mem_ref): Use
20553         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20555 2019-07-12  Jan Hubicka  <jh@suse.cz>
20557         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20558         (indirect_refs_may_alias_p): ... here.
20559         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20560         mem refs in the access paths.
20562 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
20564         PR tree-optimization/89430
20565         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20566         store elimination for local variable without address escape.
20568 2019-07-12  Jeff Law  <law@redhat.com>
20570         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20571         for the ".far" section.
20573 2019-07-12  Richard Biener  <rguenther@suse.de>
20575         PR tree-optimization/91145
20576         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20577         chain check.
20579 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
20581         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20582         rather than this_state as the lowering context for the ELSE
20583         seq in a GIMPLE_EH_ELSE.
20585 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20587         * vector-builder.h (vector_builder::elt): Allow already-supplied
20588         elements to be read back before building is complete.
20590 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
20592         PR rtl-optimization/91136
20593         * df-core.c (ACCESSING REFS): Fix typos in comment.
20594         * resource.c (mark_target_live_reg): Add artificial defs that occur at
20595         the beginning of the block to the initial set of live registers.
20597 2019-07-12  Richard Biener  <rguenther@suse.de>
20599         * fold-const.h (get_array_ctor_element_at_index): Adjust.
20600         * fold-const.c (get_array_ctor_element_at_index): Add
20601         ctor_idx output parameter informing the caller where in
20602         the constructor the element was (not) found.  Add early exit
20603         for when the ctor is sorted.
20604         * gimple-fold.c (fold_array_ctor_reference): Support constant
20605         folding across multiple array elements.
20607 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
20609         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20610         doesn't have location, set the current location to the function's end.
20612 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20614         * config/aarch64/aarch64.md (*compare_condjump<mode>)
20615         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20616         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20617         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20618         * config/aarch64/aarch64-simd.md
20619         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20620         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20621         * config/aarch64/aarch64-sve.md
20622         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20623         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20625 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20627         * doc/md.texi: Document that @ patterns can have different
20628         numbers of operands.
20629         * genemit.c (handle_overloaded_gen): Handle this case.
20630         * genopinit.c (handle_overloaded_gen): Likewise.
20631         * gensupport.c (replace_operands_with_dups): Iterate over
20632         the new rtx's format rather than the old one's.
20634 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
20636         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20637         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20638         order clause entries.
20639         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20640         * tree-pretty-print.c (dump_omp_clause): Likewise.
20641         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20642         Likewise.
20643         * omp-low.c (scan_sharing_clauses): Likewise.
20644         * tree-nested.c (convert_nonlocal_omp_clauses,
20645         convert_local_omp_clauses): Likewise.
20647 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
20649         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20650         fallthrough target of current basic block isn't the placed
20651         right next.
20653 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
20655         PR target/90980
20656         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20657         (_mm512_storeu_epi64): Likewise.
20658         (_mm512_loadu_epi32): Likewise.
20659         (_mm512_storeu_epi32): Likewise.
20660         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20661         (_mm_storeu_epi64): Likewise.
20662         (_mm256_storeu_epi32): Likewise.
20663         (_mm_storeu_epi32): Likewise.
20665 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
20667         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20669 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
20671         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20672         Handle Modula-2.
20674 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
20676         PR target/91124
20677         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20678         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
20679         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20680         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20681         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
20682         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20683         define_insns.
20684         (ufix_truncv2dfv2si2<mask_name>): Change into ...
20685         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
20686         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20687         define_insns.
20688         (sse2_cvttpd2dq<mask_name>): Change into ...
20689         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
20690         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20691         (*sse2_cvtpd2dq<mask_name>): Change into ...
20692         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
20693         Add "C" constraint to const0_operand.
20694         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20695         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20696         changes.
20698         PR target/91124
20699         * config/i386/i386-builtin-types.def
20700         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20701         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20702         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20703         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20704         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20705         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20706         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20707         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20708         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20709         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20710         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20711         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20712         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20713         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20714         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20715         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20716         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20717         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20718         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20719         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20720         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20721         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20722         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20723         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20724         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20725         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20726         __builtin_ia32_vpdpbusd_v4si_maskz,
20727         __builtin_ia32_vpdpbusds_v16si_mask,
20728         __builtin_ia32_vpdpbusds_v16si_maskz,
20729         __builtin_ia32_vpdpbusds_v8si_mask,
20730         __builtin_ia32_vpdpbusds_v8si_maskz,
20731         __builtin_ia32_vpdpbusds_v4si_mask,
20732         __builtin_ia32_vpdpbusds_v4si_maskz,
20733         __builtin_ia32_vpdpwssd_v16si_mask,
20734         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20735         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20736         __builtin_ia32_vpdpwssd_v4si_maskz,
20737         __builtin_ia32_vpdpwssds_v16si_mask,
20738         __builtin_ia32_vpdpwssds_v16si_maskz,
20739         __builtin_ia32_vpdpwssds_v8si_mask,
20740         __builtin_ia32_vpdpwssds_v8si_maskz,
20741         __builtin_ia32_vpdpwssds_v4si_mask,
20742         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20743         suffixed types rather than *_INT.
20744         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20745         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20746         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20747         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20748         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20749         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20751 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
20753         * tree-vrp.c (intersect_ranges): If we know the intersection is
20754         empty, there is no need to conservatively add anything else to
20755         the set.
20757 2019-07-11  Richard Biener  <rguenther@suse.de>
20759         PR middle-end/91131
20760         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20761         when the object is volatile and we have not cleared it even though
20762         there are no nonzero elements.
20764 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
20766         * config/rs6000/predicates.md (cint34_operand): Update
20767         SIGNED_34BIT_OFFSET_P call.
20768         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20769         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20770         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20771         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20772         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20773         argument.
20774         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20775         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20776         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20777         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20778         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20780 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
20782         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20783         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20784         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20785         (DEF_MIN_OSX_VERSION): New.
20787 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
20789         * fold-const.c (fold_relational_const): Fix folding of
20790         vector-to-scalar NE_EXPRs.
20791         (test_vector_folding): Add more tests.
20793 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
20795         PR target/91060
20796         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20797         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20798         (vec_setv2di_internal): Reexpress as...
20799         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20800         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20801         rather than gen_neon_vset_lane<mode>.
20803 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
20805         PR target/91102
20806         * lra-constraints.c (process_alt_operands): Don't match user
20807         defined regs only if they are early clobbers.
20809 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
20811         * wide-int.h (wi::lshift): Reject negative values for the fast path.
20813 2019-07-10  Richard Biener  <rguenther@suse.de>
20815         PR tree-optimization/91126
20816         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20817         native encoding offset for BYTES_BIG_ENDIAN.
20818         (vn_reference_lookup_3): Likewise.
20820 2019-07-10  Richard Biener  <rguenther@suse.de>
20822         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20823         LHS whenever possible.
20825 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
20827         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20828         from ...; work also on duplicated types.
20829         (nonoverlapping_component_refs_since_match): ... here
20830         (ncr_type_uid): Break out from ...
20831         (ncr_compar): ... here; look for TYPE_UID of canonical type if
20832         available.
20833         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20834         the types and nonoverlapping_component_refs_p_1 to disambiguate.
20836 2019-07-09  Martin Sebor  <msebor@redhat.com>
20838         PR tree-optimization/90989
20839         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20840         optimization to just single character stores.
20842 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
20844         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20845         Swap operands only once.
20847 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
20849         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20850         for both call instructions.
20852 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
20854         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20855         rather than GET_MODE_BITSIZE to better handle partial integer modes.
20857 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
20859         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20860         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20861         function from rs6000-logue.c back to rs6000.c.
20862         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20864 2019-07-09  Martin Sebor  <msebor@redhat.com>
20866         PR c++/61339
20867         * auto-profile.c: Change class-key of PODs to struct and others
20868         to class.
20869         * basic-block.h: Same.
20870         * bitmap.c (bitmap_alloc): Same.
20871         * bitmap.h: Same.
20872         * builtins.c (expand_builtin_prefetch): Same.
20873         (expand_builtin_interclass_mathfn): Same.
20874         (expand_builtin_strlen): Same.
20875         (expand_builtin_mempcpy_args): Same.
20876         (expand_cmpstr): Same.
20877         (expand_builtin___clear_cache): Same.
20878         (expand_ifn_atomic_bit_test_and): Same.
20879         (expand_builtin_thread_pointer): Same.
20880         (expand_builtin_set_thread_pointer): Same.
20881         * caller-save.c (setup_save_areas): Same.
20882         (replace_reg_with_saved_mem): Same.
20883         (insert_restore): Same.
20884         (insert_save): Same.
20885         (add_used_regs): Same.
20886         * cfg.c (get_bb_copy): Same.
20887         (set_loop_copy): Same.
20888         * cfg.h: Same.
20889         * cfganal.h: Same.
20890         * cfgexpand.c (alloc_stack_frame_space): Same.
20891         (add_stack_var): Same.
20892         (add_stack_var_conflict): Same.
20893         (add_scope_conflicts_1): Same.
20894         (update_alias_info_with_stack_vars): Same.
20895         (expand_used_vars): Same.
20896         * cfghooks.c (redirect_edge_and_branch_force): Same.
20897         (delete_basic_block): Same.
20898         (split_edge): Same.
20899         (make_forwarder_block): Same.
20900         (force_nonfallthru): Same.
20901         (duplicate_block): Same.
20902         (lv_flush_pending_stmts): Same.
20903         * cfghooks.h: Same.
20904         * cfgloop.c (flow_loops_cfg_dump): Same.
20905         (flow_loop_nested_p): Same.
20906         (superloop_at_depth): Same.
20907         (get_loop_latch_edges): Same.
20908         (flow_loop_dump): Same.
20909         (flow_loops_dump): Same.
20910         (flow_loops_free): Same.
20911         (flow_loop_nodes_find): Same.
20912         (establish_preds): Same.
20913         (flow_loop_tree_node_add): Same.
20914         (flow_loop_tree_node_remove): Same.
20915         (flow_loops_find): Same.
20916         (find_subloop_latch_edge_by_profile): Same.
20917         (find_subloop_latch_edge_by_ivs): Same.
20918         (mfb_redirect_edges_in_set): Same.
20919         (form_subloop): Same.
20920         (merge_latch_edges): Same.
20921         (disambiguate_multiple_latches): Same.
20922         (disambiguate_loops_with_multiple_latches): Same.
20923         (flow_bb_inside_loop_p): Same.
20924         (glb_enum_p): Same.
20925         (get_loop_body_with_size): Same.
20926         (get_loop_body): Same.
20927         (fill_sons_in_loop): Same.
20928         (get_loop_body_in_dom_order): Same.
20929         (get_loop_body_in_custom_order): Same.
20930         (release_recorded_exits): Same.
20931         (get_loop_exit_edges): Same.
20932         (num_loop_branches): Same.
20933         (remove_bb_from_loops): Same.
20934         (find_common_loop): Same.
20935         (delete_loop): Same.
20936         (cancel_loop): Same.
20937         (verify_loop_structure): Same.
20938         (loop_preheader_edge): Same.
20939         (loop_exit_edge_p): Same.
20940         (single_exit): Same.
20941         (loop_exits_to_bb_p): Same.
20942         (loop_exits_from_bb_p): Same.
20943         (get_loop_location): Same.
20944         (record_niter_bound): Same.
20945         (get_estimated_loop_iterations_int): Same.
20946         (max_stmt_executions_int): Same.
20947         (likely_max_stmt_executions_int): Same.
20948         (get_estimated_loop_iterations): Same.
20949         (get_max_loop_iterations): Same.
20950         (get_max_loop_iterations_int): Same.
20951         (get_likely_max_loop_iterations): Same.
20952         * cfgloop.h (simple_loop_desc): Same.
20953         (get_loop): Same.
20954         (loop_depth): Same.
20955         (loop_outer): Same.
20956         (loop_iterator::next): Same.
20957         (loop_outermost): Same.
20958         * cfgloopanal.c (mark_irreducible_loops): Same.
20959         (num_loop_insns): Same.
20960         (average_num_loop_insns): Same.
20961         (expected_loop_iterations_unbounded): Same.
20962         (expected_loop_iterations): Same.
20963         (mark_loop_exit_edges): Same.
20964         (single_likely_exit): Same.
20965         * cfgloopmanip.c (fix_bb_placement): Same.
20966         (fix_bb_placements): Same.
20967         (remove_path): Same.
20968         (place_new_loop): Same.
20969         (add_loop): Same.
20970         (scale_loop_frequencies): Same.
20971         (scale_loop_profile): Same.
20972         (create_empty_if_region_on_edge): Same.
20973         (create_empty_loop_on_edge): Same.
20974         (loopify): Same.
20975         (unloop): Same.
20976         (fix_loop_placements): Same.
20977         (copy_loop_info): Same.
20978         (duplicate_loop): Same.
20979         (duplicate_subloops): Same.
20980         (loop_redirect_edge): Same.
20981         (can_duplicate_loop_p): Same.
20982         (duplicate_loop_to_header_edge): Same.
20983         (mfb_keep_just): Same.
20984         (has_preds_from_loop): Same.
20985         (create_preheader): Same.
20986         (create_preheaders): Same.
20987         (lv_adjust_loop_entry_edge): Same.
20988         (loop_version): Same.
20989         * cfgloopmanip.h: Same.
20990         * cgraph.h: Same.
20991         * cgraphbuild.c: Same.
20992         * combine.c (make_extraction): Same.
20993         * config/i386/i386-features.c: Same.
20994         * config/i386/i386-features.h: Same.
20995         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20996         (ix86_emit_outlined_ms2sysv_restore): Same.
20997         (ix86_noce_conversion_profitable_p): Same.
20998         (ix86_init_cost): Same.
20999         (ix86_simd_clone_usable): Same.
21000         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
21001         Wstruct-not-pod.
21002         * coretypes.h: Same.
21003         * data-streamer-in.c (string_for_index): Change class-key of PODs
21004         to struct and others to class.
21005         (streamer_read_indexed_string): Same.
21006         (streamer_read_string): Same.
21007         (bp_unpack_indexed_string): Same.
21008         (bp_unpack_string): Same.
21009         (streamer_read_uhwi): Same.
21010         (streamer_read_hwi): Same.
21011         (streamer_read_gcov_count): Same.
21012         (streamer_read_wide_int): Same.
21013         * data-streamer.h (streamer_write_bitpack): Same.
21014         (bp_unpack_value): Same.
21015         (streamer_write_char_stream): Same.
21016         (streamer_write_hwi_in_range): Same.
21017         (streamer_write_record_start): Same.
21018         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
21019         (add_cross_iteration_register_deps): Same.
21020         (build_intra_loop_deps): Same.
21021         * df-core.c (df_analyze): Same.
21022         (loop_post_order_compute): Same.
21023         (loop_inverted_post_order_compute): Same.
21024         * df-problems.c (df_rd_alloc): Same.
21025         (df_rd_simulate_one_insn): Same.
21026         (df_rd_local_compute): Same.
21027         (df_rd_init_solution): Same.
21028         (df_rd_confluence_n): Same.
21029         (df_rd_transfer_function): Same.
21030         (df_rd_free): Same.
21031         (df_rd_dump_defs_set): Same.
21032         (df_rd_top_dump): Same.
21033         (df_lr_alloc): Same.
21034         (df_lr_reset): Same.
21035         (df_lr_local_compute): Same.
21036         (df_lr_init): Same.
21037         (df_lr_confluence_n): Same.
21038         (df_lr_free): Same.
21039         (df_lr_top_dump): Same.
21040         (df_lr_verify_transfer_functions): Same.
21041         (df_live_alloc): Same.
21042         (df_live_reset): Same.
21043         (df_live_init): Same.
21044         (df_live_confluence_n): Same.
21045         (df_live_finalize): Same.
21046         (df_live_free): Same.
21047         (df_live_top_dump): Same.
21048         (df_live_verify_transfer_functions): Same.
21049         (df_mir_alloc): Same.
21050         (df_mir_reset): Same.
21051         (df_mir_init): Same.
21052         (df_mir_confluence_n): Same.
21053         (df_mir_free): Same.
21054         (df_mir_top_dump): Same.
21055         (df_word_lr_alloc): Same.
21056         (df_word_lr_reset): Same.
21057         (df_word_lr_init): Same.
21058         (df_word_lr_confluence_n): Same.
21059         (df_word_lr_free): Same.
21060         (df_word_lr_top_dump): Same.
21061         (df_md_alloc): Same.
21062         (df_md_simulate_one_insn): Same.
21063         (df_md_reset): Same.
21064         (df_md_init): Same.
21065         (df_md_free): Same.
21066         (df_md_top_dump): Same.
21067         * df-scan.c (df_insn_delete): Same.
21068         (df_insn_rescan): Same.
21069         (df_notes_rescan): Same.
21070         (df_sort_and_compress_mws): Same.
21071         (df_install_mws): Same.
21072         (df_refs_add_to_chains): Same.
21073         (df_ref_create_structure): Same.
21074         (df_ref_record): Same.
21075         (df_def_record_1): Same.
21076         (df_find_hard_reg_defs): Same.
21077         (df_uses_record): Same.
21078         (df_get_conditional_uses): Same.
21079         (df_get_call_refs): Same.
21080         (df_recompute_luids): Same.
21081         (df_get_entry_block_def_set): Same.
21082         (df_entry_block_defs_collect): Same.
21083         (df_get_exit_block_use_set): Same.
21084         (df_exit_block_uses_collect): Same.
21085         (df_mws_verify): Same.
21086         (df_bb_verify): Same.
21087         * df.h (df_scan_get_bb_info): Same.
21088         * doc/tm.texi: Same.
21089         * dse.c (record_store): Same.
21090         * dumpfile.h: Same.
21091         * emit-rtl.c (const_fixed_hasher::equal): Same.
21092         (set_mem_attributes_minus_bitpos): Same.
21093         (change_address): Same.
21094         (adjust_address_1): Same.
21095         (offset_address): Same.
21096         * emit-rtl.h: Same.
21097         * except.c (dw2_build_landing_pads): Same.
21098         (sjlj_emit_dispatch_table): Same.
21099         * explow.c (allocate_dynamic_stack_space): Same.
21100         (emit_stack_probe): Same.
21101         (probe_stack_range): Same.
21102         * expmed.c (store_bit_field_using_insv): Same.
21103         (store_bit_field_1): Same.
21104         (store_integral_bit_field): Same.
21105         (extract_bit_field_using_extv): Same.
21106         (extract_bit_field_1): Same.
21107         (emit_cstore): Same.
21108         * expr.c (emit_block_move_via_cpymem): Same.
21109         (expand_cmpstrn_or_cmpmem): Same.
21110         (set_storage_via_setmem): Same.
21111         (emit_single_push_insn_1): Same.
21112         (expand_assignment): Same.
21113         (store_constructor): Same.
21114         (expand_expr_real_2): Same.
21115         (expand_expr_real_1): Same.
21116         (try_casesi): Same.
21117         * flags.h: Same.
21118         * function.c (try_fit_stack_local): Same.
21119         (assign_stack_local_1): Same.
21120         (assign_stack_local): Same.
21121         (cut_slot_from_list): Same.
21122         (insert_slot_to_list): Same.
21123         (max_slot_level): Same.
21124         (move_slot_to_level): Same.
21125         (temp_address_hasher::equal): Same.
21126         (remove_unused_temp_slot_addresses): Same.
21127         (assign_temp): Same.
21128         (combine_temp_slots): Same.
21129         (update_temp_slot_address): Same.
21130         (preserve_temp_slots): Same.
21131         * function.h: Same.
21132         * fwprop.c: Same.
21133         * gcc-rich-location.h: Same.
21134         * gcov.c: Same.
21135         * genattrtab.c (check_attr_test): Same.
21136         (check_attr_value): Same.
21137         (convert_set_attr_alternative): Same.
21138         (convert_set_attr): Same.
21139         (check_defs): Same.
21140         (copy_boolean): Same.
21141         (get_attr_value): Same.
21142         (expand_delays): Same.
21143         (make_length_attrs): Same.
21144         (min_fn): Same.
21145         (make_alternative_compare): Same.
21146         (simplify_test_exp): Same.
21147         (tests_attr_p): Same.
21148         (get_attr_order): Same.
21149         (clear_struct_flag): Same.
21150         (gen_attr): Same.
21151         (compares_alternatives_p): Same.
21152         (gen_insn): Same.
21153         (gen_delay): Same.
21154         (find_attrs_to_cache): Same.
21155         (write_test_expr): Same.
21156         (walk_attr_value): Same.
21157         (write_attr_get): Same.
21158         (eliminate_known_true): Same.
21159         (write_insn_cases): Same.
21160         (write_attr_case): Same.
21161         (write_attr_valueq): Same.
21162         (write_attr_value): Same.
21163         (write_dummy_eligible_delay): Same.
21164         (next_comma_elt): Same.
21165         (find_attr): Same.
21166         (make_internal_attr): Same.
21167         (copy_rtx_unchanging): Same.
21168         (gen_insn_reserv): Same.
21169         (check_tune_attr): Same.
21170         (make_automaton_attrs): Same.
21171         (handle_arg): Same.
21172         * genextract.c (gen_insn): Same.
21173         (VEC_char_to_string): Same.
21174         * genmatch.c (print_operand): Same.
21175         (lower): Same.
21176         (parser::parse_operation): Same.
21177         (parser::parse_capture): Same.
21178         (parser::parse_c_expr): Same.
21179         (parser::parse_simplify): Same.
21180         (main): Same.
21181         * genoutput.c (output_operand_data): Same.
21182         (output_get_insn_name): Same.
21183         (compare_operands): Same.
21184         (place_operands): Same.
21185         (process_template): Same.
21186         (validate_insn_alternatives): Same.
21187         (validate_insn_operands): Same.
21188         (gen_expand): Same.
21189         (note_constraint): Same.
21190         * genpreds.c (write_one_predicate_function): Same.
21191         (add_constraint): Same.
21192         (process_define_register_constraint): Same.
21193         (write_lookup_constraint_1): Same.
21194         (write_lookup_constraint_array): Same.
21195         (write_insn_constraint_len): Same.
21196         (write_reg_class_for_constraint_1): Same.
21197         (write_constraint_satisfied_p_array): Same.
21198         * genrecog.c (optimize_subroutine_group): Same.
21199         * gensupport.c (process_define_predicate): Same.
21200         (queue_pattern): Same.
21201         (remove_from_queue): Same.
21202         (process_rtx): Same.
21203         (is_predicable): Same.
21204         (change_subst_attribute): Same.
21205         (subst_pattern_match): Same.
21206         (alter_constraints): Same.
21207         (alter_attrs_for_insn): Same.
21208         (shift_output_template): Same.
21209         (alter_output_for_subst_insn): Same.
21210         (process_one_cond_exec): Same.
21211         (subst_dup): Same.
21212         (process_define_cond_exec): Same.
21213         (mnemonic_htab_callback): Same.
21214         (gen_mnemonic_attr): Same.
21215         (read_md_rtx): Same.
21216         * ggc-page.c: Same.
21217         * gimple-loop-interchange.cc (dump_reduction): Same.
21218         (dump_induction): Same.
21219         (loop_cand::~loop_cand): Same.
21220         (free_data_refs_with_aux): Same.
21221         (tree_loop_interchange::interchange_loops): Same.
21222         (tree_loop_interchange::map_inductions_to_loop): Same.
21223         (tree_loop_interchange::move_code_to_inner_loop): Same.
21224         (compute_access_stride): Same.
21225         (compute_access_strides): Same.
21226         (proper_loop_form_for_interchange): Same.
21227         (tree_loop_interchange_compute_ddrs): Same.
21228         (prune_datarefs_not_in_loop): Same.
21229         (prepare_data_references): Same.
21230         (pass_linterchange::execute): Same.
21231         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
21232         (unroll_jam_possible_p): Same.
21233         (fuse_loops): Same.
21234         (adjust_unroll_factor): Same.
21235         (tree_loop_unroll_and_jam): Same.
21236         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
21237         (loop_versioning::expensive_stmt_p): Same.
21238         (loop_versioning::version_for_unity): Same.
21239         (loop_versioning::dump_inner_likelihood): Same.
21240         (loop_versioning::find_per_loop_multiplication): Same.
21241         (loop_versioning::analyze_term_using_scevs): Same.
21242         (loop_versioning::record_address_fragment): Same.
21243         (loop_versioning::analyze_expr): Same.
21244         (loop_versioning::analyze_blocks): Same.
21245         (loop_versioning::prune_conditions): Same.
21246         (loop_versioning::merge_loop_info): Same.
21247         (loop_versioning::add_loop_to_queue): Same.
21248         (loop_versioning::decide_whether_loop_is_versionable): Same.
21249         (loop_versioning::make_versioning_decisions): Same.
21250         (loop_versioning::implement_versioning_decisions): Same.
21251         * gimple-ssa-evrp-analyze.c
21252         (evrp_range_analyzer::record_ranges_from_phis): Same.
21253         * gimple-ssa-store-merging.c (split_store::split_store): Same.
21254         (count_multiple_uses): Same.
21255         (split_group): Same.
21256         (imm_store_chain_info::output_merged_store): Same.
21257         (pass_store_merging::process_store): Same.
21258         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
21259         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
21260         (is_max): Same.
21261         (alloca_call_type): Same.
21262         (pass_walloca::execute): Same.
21263         * gimple-streamer-in.c (input_phi): Same.
21264         (input_gimple_stmt): Same.
21265         * gimple-streamer.h: Same.
21266         * godump.c (go_force_record_alignment): Same.
21267         (go_format_type): Same.
21268         (go_output_type): Same.
21269         (go_output_fndecl): Same.
21270         (go_output_typedef): Same.
21271         (keyword_hash_init): Same.
21272         (find_dummy_types): Same.
21273         * graph.c (draw_cfg_nodes_no_loops): Same.
21274         (draw_cfg_nodes_for_loop): Same.
21275         * hard-reg-set.h (hard_reg_set_iter_next): Same.
21276         * hsa-brig.c: Same.
21277         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
21278         * hsa-dump.c (dump_hsa_cfun): Same.
21279         * hsa-gen.c (gen_function_def_parameters): Same.
21280         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
21281         * input.c (dump_line_table_statistics): Same.
21282         (test_lexer): Same.
21283         * input.h: Same.
21284         * internal-fn.c (get_multi_vector_move): Same.
21285         (expand_load_lanes_optab_fn): Same.
21286         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21287         (expand_GOMP_SIMT_EXIT): Same.
21288         (expand_GOMP_SIMT_LAST_LANE): Same.
21289         (expand_GOMP_SIMT_ORDERED_PRED): Same.
21290         (expand_GOMP_SIMT_VOTE_ANY): Same.
21291         (expand_GOMP_SIMT_XCHG_BFLY): Same.
21292         (expand_GOMP_SIMT_XCHG_IDX): Same.
21293         (expand_addsub_overflow): Same.
21294         (expand_neg_overflow): Same.
21295         (expand_mul_overflow): Same.
21296         (expand_call_mem_ref): Same.
21297         (expand_mask_load_optab_fn): Same.
21298         (expand_scatter_store_optab_fn): Same.
21299         (expand_gather_load_optab_fn): Same.
21300         * ipa-cp.c (ipa_get_parm_lattices): Same.
21301         (print_all_lattices): Same.
21302         (ignore_edge_p): Same.
21303         (build_toporder_info): Same.
21304         (free_toporder_info): Same.
21305         (push_node_to_stack): Same.
21306         (ipcp_lattice<valtype>::set_contains_variable): Same.
21307         (set_agg_lats_to_bottom): Same.
21308         (ipcp_bits_lattice::meet_with): Same.
21309         (set_single_call_flag): Same.
21310         (initialize_node_lattices): Same.
21311         (ipa_get_jf_ancestor_result): Same.
21312         (ipcp_verify_propagated_values): Same.
21313         (propagate_scalar_across_jump_function): Same.
21314         (propagate_context_across_jump_function): Same.
21315         (propagate_bits_across_jump_function): Same.
21316         (ipa_vr_operation_and_type_effects): Same.
21317         (propagate_vr_across_jump_function): Same.
21318         (set_check_aggs_by_ref): Same.
21319         (set_chain_of_aglats_contains_variable): Same.
21320         (merge_aggregate_lattices): Same.
21321         (agg_pass_through_permissible_p): Same.
21322         (propagate_aggs_across_jump_function): Same.
21323         (call_passes_through_thunk_p): Same.
21324         (propagate_constants_across_call): Same.
21325         (devirtualization_time_bonus): Same.
21326         (good_cloning_opportunity_p): Same.
21327         (context_independent_aggregate_values): Same.
21328         (gather_context_independent_values): Same.
21329         (perform_estimation_of_a_value): Same.
21330         (estimate_local_effects): Same.
21331         (value_topo_info<valtype>::add_val): Same.
21332         (add_all_node_vals_to_toposort): Same.
21333         (value_topo_info<valtype>::propagate_effects): Same.
21334         (ipcp_propagate_stage): Same.
21335         (ipcp_discover_new_direct_edges): Same.
21336         (same_node_or_its_all_contexts_clone_p): Same.
21337         (cgraph_edge_brings_value_p): Same.
21338         (gather_edges_for_value): Same.
21339         (create_specialized_node): Same.
21340         (find_more_scalar_values_for_callers_subset): Same.
21341         (find_more_contexts_for_caller_subset): Same.
21342         (copy_plats_to_inter): Same.
21343         (intersect_aggregates_with_edge): Same.
21344         (find_aggregate_values_for_callers_subset): Same.
21345         (cgraph_edge_brings_all_agg_vals_for_node): Same.
21346         (decide_about_value): Same.
21347         (decide_whether_version_node): Same.
21348         (spread_undeadness): Same.
21349         (identify_dead_nodes): Same.
21350         (ipcp_store_vr_results): Same.
21351         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21352         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21353         (redirect_to_unreachable): Same.
21354         (edge_set_predicate): Same.
21355         (evaluate_conditions_for_known_args): Same.
21356         (evaluate_properties_for_edge): Same.
21357         (ipa_fn_summary_t::duplicate): Same.
21358         (ipa_call_summary_t::duplicate): Same.
21359         (dump_ipa_call_summary): Same.
21360         (ipa_dump_fn_summary): Same.
21361         (eliminated_by_inlining_prob): Same.
21362         (set_cond_stmt_execution_predicate): Same.
21363         (set_switch_stmt_execution_predicate): Same.
21364         (compute_bb_predicates): Same.
21365         (will_be_nonconstant_expr_predicate): Same.
21366         (phi_result_unknown_predicate): Same.
21367         (analyze_function_body): Same.
21368         (compute_fn_summary): Same.
21369         (estimate_edge_devirt_benefit): Same.
21370         (estimate_edge_size_and_time): Same.
21371         (estimate_calls_size_and_time): Same.
21372         (estimate_node_size_and_time): Same.
21373         (remap_edge_change_prob): Same.
21374         (remap_edge_summaries): Same.
21375         (ipa_merge_fn_summary_after_inlining): Same.
21376         (ipa_fn_summary_generate): Same.
21377         (inline_read_section): Same.
21378         (ipa_fn_summary_read): Same.
21379         (ipa_fn_summary_write): Same.
21380         * ipa-fnsummary.h: Same.
21381         * ipa-hsa.c (ipa_hsa_read_section): Same.
21382         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21383         * ipa-icf.c (sem_function::param_used_p): Same.
21384         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21385         * ipa-inline.c (edge_badness): Same.
21386         (inline_small_functions): Same.
21387         * ipa-polymorphic-call.c
21388         (ipa_polymorphic_call_context::stream_out): Same.
21389         * ipa-predicate.c (predicate::remap_after_duplication): Same.
21390         (predicate::remap_after_inlining): Same.
21391         (predicate::stream_out): Same.
21392         * ipa-predicate.h: Same.
21393         * ipa-profile.c (ipa_profile_read_summary): Same.
21394         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21395         (count_formal_params): Same.
21396         (ipa_dump_param): Same.
21397         (ipa_alloc_node_params): Same.
21398         (ipa_print_node_jump_functions_for_edge): Same.
21399         (ipa_print_node_jump_functions): Same.
21400         (ipa_load_from_parm_agg): Same.
21401         (get_ancestor_addr_info): Same.
21402         (ipa_compute_jump_functions_for_edge): Same.
21403         (ipa_analyze_virtual_call_uses): Same.
21404         (ipa_analyze_stmt_uses): Same.
21405         (ipa_analyze_params_uses_in_bb): Same.
21406         (update_jump_functions_after_inlining): Same.
21407         (try_decrement_rdesc_refcount): Same.
21408         (ipa_impossible_devirt_target): Same.
21409         (update_indirect_edges_after_inlining): Same.
21410         (combine_controlled_uses_counters): Same.
21411         (ipa_edge_args_sum_t::duplicate): Same.
21412         (ipa_write_jump_function): Same.
21413         (ipa_write_indirect_edge_info): Same.
21414         (ipa_write_node_info): Same.
21415         (ipa_read_edge_info): Same.
21416         (ipa_prop_read_section): Same.
21417         (read_replacements_section): Same.
21418         * ipa-prop.h (ipa_get_param_count): Same.
21419         (ipa_get_param): Same.
21420         (ipa_get_type): Same.
21421         (ipa_get_param_move_cost): Same.
21422         (ipa_set_param_used): Same.
21423         (ipa_get_controlled_uses): Same.
21424         (ipa_set_controlled_uses): Same.
21425         (ipa_get_cs_argument_count): Same.
21426         * ipa-pure-const.c (analyze_function): Same.
21427         (pure_const_read_summary): Same.
21428         * ipa-ref.h: Same.
21429         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21430         * ipa-split.c (test_nonssa_use): Same.
21431         (dump_split_point): Same.
21432         (dominated_by_forbidden): Same.
21433         (split_part_set_ssa_name_p): Same.
21434         (find_split_points): Same.
21435         * ira-build.c (finish_loop_tree_nodes): Same.
21436         (low_pressure_loop_node_p): Same.
21437         * ira-color.c (ira_reuse_stack_slot): Same.
21438         * ira-int.h: Same.
21439         * ira.c (setup_reg_equiv): Same.
21440         (print_insn_chain): Same.
21441         (ira): Same.
21442         * loop-doloop.c (doloop_condition_get): Same.
21443         (add_test): Same.
21444         (record_reg_sets): Same.
21445         (doloop_optimize): Same.
21446         * loop-init.c (loop_optimizer_init): Same.
21447         (fix_loop_structure): Same.
21448         * loop-invariant.c (merge_identical_invariants): Same.
21449         (compute_always_reached): Same.
21450         (find_exits): Same.
21451         (may_assign_reg_p): Same.
21452         (find_invariants_bb): Same.
21453         (find_invariants_body): Same.
21454         (replace_uses): Same.
21455         (can_move_invariant_reg): Same.
21456         (free_inv_motion_data): Same.
21457         (move_single_loop_invariants): Same.
21458         (change_pressure): Same.
21459         (mark_ref_regs): Same.
21460         (calculate_loop_reg_pressure): Same.
21461         * loop-iv.c (biv_entry_hasher::equal): Same.
21462         (iv_extend_to_rtx_code): Same.
21463         (check_iv_ref_table_size): Same.
21464         (clear_iv_info): Same.
21465         (latch_dominating_def): Same.
21466         (iv_get_reaching_def): Same.
21467         (iv_constant): Same.
21468         (iv_subreg): Same.
21469         (iv_extend): Same.
21470         (iv_neg): Same.
21471         (iv_add): Same.
21472         (iv_mult): Same.
21473         (get_biv_step): Same.
21474         (record_iv): Same.
21475         (analyzed_for_bivness_p): Same.
21476         (record_biv): Same.
21477         (iv_analyze_biv): Same.
21478         (iv_analyze_expr): Same.
21479         (iv_analyze_def): Same.
21480         (iv_analyze_op): Same.
21481         (iv_analyze): Same.
21482         (iv_analyze_result): Same.
21483         (biv_p): Same.
21484         (eliminate_implied_conditions): Same.
21485         (simplify_using_initial_values): Same.
21486         (shorten_into_mode): Same.
21487         (canonicalize_iv_subregs): Same.
21488         (determine_max_iter): Same.
21489         (check_simple_exit): Same.
21490         (find_simple_exit): Same.
21491         (get_simple_loop_desc): Same.
21492         * loop-unroll.c (report_unroll): Same.
21493         (decide_unrolling): Same.
21494         (unroll_loops): Same.
21495         (loop_exit_at_end_p): Same.
21496         (decide_unroll_constant_iterations): Same.
21497         (unroll_loop_constant_iterations): Same.
21498         (compare_and_jump_seq): Same.
21499         (unroll_loop_runtime_iterations): Same.
21500         (decide_unroll_stupid): Same.
21501         (unroll_loop_stupid): Same.
21502         (referenced_in_one_insn_in_loop_p): Same.
21503         (reset_debug_uses_in_loop): Same.
21504         (analyze_iv_to_split_insn): Same.
21505         * lra-eliminations.c (lra_debug_elim_table): Same.
21506         (setup_can_eliminate): Same.
21507         (form_sum): Same.
21508         (lra_get_elimination_hard_regno): Same.
21509         (lra_eliminate_regs_1): Same.
21510         (eliminate_regs_in_insn): Same.
21511         (update_reg_eliminate): Same.
21512         (init_elimination): Same.
21513         (lra_eliminate): Same.
21514         * lra-int.h: Same.
21515         * lra-lives.c (initiate_live_solver): Same.
21516         * lra-remat.c (create_remat_bb_data): Same.
21517         * lra-spills.c (lra_spill): Same.
21518         * lra.c (lra_set_insn_recog_data): Same.
21519         (lra_set_used_insn_alternative_by_uid): Same.
21520         (init_reg_info): Same.
21521         (expand_reg_info): Same.
21522         * lto-cgraph.c (output_symtab): Same.
21523         (read_identifier): Same.
21524         (get_alias_symbol): Same.
21525         (input_node): Same.
21526         (input_varpool_node): Same.
21527         (input_ref): Same.
21528         (input_edge): Same.
21529         (input_cgraph_1): Same.
21530         (input_refs): Same.
21531         (input_symtab): Same.
21532         (input_offload_tables): Same.
21533         (output_cgraph_opt_summary): Same.
21534         (input_edge_opt_summary): Same.
21535         (input_cgraph_opt_section): Same.
21536         * lto-section-in.c (lto_free_raw_section_data): Same.
21537         (lto_create_simple_input_block): Same.
21538         (lto_free_function_in_decl_state_for_node): Same.
21539         * lto-streamer-in.c (lto_tag_check_set): Same.
21540         (lto_location_cache::revert_location_cache): Same.
21541         (lto_location_cache::input_location): Same.
21542         (lto_input_location): Same.
21543         (stream_input_location_now): Same.
21544         (lto_input_tree_ref): Same.
21545         (lto_input_eh_catch_list): Same.
21546         (input_eh_region): Same.
21547         (lto_init_eh): Same.
21548         (make_new_block): Same.
21549         (input_cfg): Same.
21550         (fixup_call_stmt_edges): Same.
21551         (input_struct_function_base): Same.
21552         (input_function): Same.
21553         (lto_read_body_or_constructor): Same.
21554         (lto_read_tree_1): Same.
21555         (lto_read_tree): Same.
21556         (lto_input_scc): Same.
21557         (lto_input_tree_1): Same.
21558         (lto_input_toplevel_asms): Same.
21559         (lto_input_mode_table): Same.
21560         (lto_reader_init): Same.
21561         (lto_data_in_create): Same.
21562         * lto-streamer-out.c (output_cfg): Same.
21563         * lto-streamer.h: Same.
21564         * modulo-sched.c (duplicate_insns_of_cycles): Same.
21565         (generate_prolog_epilog): Same.
21566         (mark_loop_unsched): Same.
21567         (dump_insn_location): Same.
21568         (loop_canon_p): Same.
21569         (sms_schedule): Same.
21570         * omp-expand.c (expand_omp_for_ordered_loops): Same.
21571         (expand_omp_for_generic): Same.
21572         (expand_omp_for_static_nochunk): Same.
21573         (expand_omp_for_static_chunk): Same.
21574         (expand_omp_simd): Same.
21575         (expand_omp_taskloop_for_inner): Same.
21576         (expand_oacc_for): Same.
21577         (expand_omp_atomic_pipeline): Same.
21578         (mark_loops_in_oacc_kernels_region): Same.
21579         * omp-offload.c (oacc_xform_loop): Same.
21580         * omp-simd-clone.c (simd_clone_adjust): Same.
21581         * optabs-query.c (get_traditional_extraction_insn): Same.
21582         * optabs.c (expand_vector_broadcast): Same.
21583         (expand_binop_directly): Same.
21584         (expand_twoval_unop): Same.
21585         (expand_twoval_binop): Same.
21586         (expand_unop_direct): Same.
21587         (emit_indirect_jump): Same.
21588         (emit_conditional_move): Same.
21589         (emit_conditional_neg_or_complement): Same.
21590         (emit_conditional_add): Same.
21591         (vector_compare_rtx): Same.
21592         (expand_vec_perm_1): Same.
21593         (expand_vec_perm_const): Same.
21594         (expand_vec_cond_expr): Same.
21595         (expand_vec_series_expr): Same.
21596         (maybe_emit_atomic_exchange): Same.
21597         (maybe_emit_sync_lock_test_and_set): Same.
21598         (expand_atomic_compare_and_swap): Same.
21599         (expand_atomic_load): Same.
21600         (expand_atomic_store): Same.
21601         (maybe_emit_op): Same.
21602         (valid_multiword_target_p): Same.
21603         (create_integer_operand): Same.
21604         (maybe_legitimize_operand_same_code): Same.
21605         (maybe_legitimize_operand): Same.
21606         (create_convert_operand_from_type): Same.
21607         (can_reuse_operands_p): Same.
21608         (maybe_legitimize_operands): Same.
21609         (maybe_gen_insn): Same.
21610         (maybe_expand_insn): Same.
21611         (maybe_expand_jump_insn): Same.
21612         (expand_insn): Same.
21613         * optabs.h (create_expand_operand): Same.
21614         (create_fixed_operand): Same.
21615         (create_output_operand): Same.
21616         (create_input_operand): Same.
21617         (create_convert_operand_to): Same.
21618         (create_convert_operand_from): Same.
21619         * optinfo.h: Same.
21620         * poly-int.h: Same.
21621         * predict.c (optimize_insn_for_speed_p): Same.
21622         (optimize_loop_for_size_p): Same.
21623         (optimize_loop_for_speed_p): Same.
21624         (optimize_loop_nest_for_speed_p): Same.
21625         (get_base_value): Same.
21626         (predicted_by_loop_heuristics_p): Same.
21627         (predict_extra_loop_exits): Same.
21628         (predict_loops): Same.
21629         (predict_paths_for_bb): Same.
21630         (predict_paths_leading_to): Same.
21631         (propagate_freq): Same.
21632         (pass_profile::execute): Same.
21633         * predict.h: Same.
21634         * profile-count.c (profile_count::differs_from_p): Same.
21635         (profile_probability::differs_lot_from_p): Same.
21636         * profile-count.h: Same.
21637         * profile.c (branch_prob): Same.
21638         * regrename.c (free_chain_data): Same.
21639         (mark_conflict): Same.
21640         (create_new_chain): Same.
21641         (merge_overlapping_regs): Same.
21642         (init_rename_info): Same.
21643         (merge_chains): Same.
21644         (regrename_analyze): Same.
21645         (regrename_do_replace): Same.
21646         (scan_rtx_reg): Same.
21647         (record_out_operands): Same.
21648         (build_def_use): Same.
21649         * regrename.h: Same.
21650         * reload.h: Same.
21651         * reload1.c (init_reload): Same.
21652         (maybe_fix_stack_asms): Same.
21653         (copy_reloads): Same.
21654         (count_pseudo): Same.
21655         (count_spilled_pseudo): Same.
21656         (find_reg): Same.
21657         (find_reload_regs): Same.
21658         (select_reload_regs): Same.
21659         (spill_hard_reg): Same.
21660         (fixup_eh_region_note): Same.
21661         (set_reload_reg): Same.
21662         (allocate_reload_reg): Same.
21663         (compute_reload_subreg_offset): Same.
21664         (reload_adjust_reg_for_icode): Same.
21665         (emit_input_reload_insns): Same.
21666         (emit_output_reload_insns): Same.
21667         (do_input_reload): Same.
21668         (inherit_piecemeal_p): Same.
21669         * rtl.h: Same.
21670         * sanopt.c (maybe_get_dominating_check): Same.
21671         (maybe_optimize_ubsan_ptr_ifn): Same.
21672         (can_remove_asan_check): Same.
21673         (maybe_optimize_asan_check_ifn): Same.
21674         (sanopt_optimize_walker): Same.
21675         * sched-deps.c (add_dependence_list): Same.
21676         (chain_to_prev_insn): Same.
21677         (add_insn_mem_dependence): Same.
21678         (create_insn_reg_set): Same.
21679         (maybe_extend_reg_info_p): Same.
21680         (sched_analyze_reg): Same.
21681         (sched_analyze_1): Same.
21682         (get_implicit_reg_pending_clobbers): Same.
21683         (chain_to_prev_insn_p): Same.
21684         (deps_analyze_insn): Same.
21685         (deps_start_bb): Same.
21686         (sched_free_deps): Same.
21687         (init_deps): Same.
21688         (init_deps_reg_last): Same.
21689         (free_deps): Same.
21690         * sched-ebb.c: Same.
21691         * sched-int.h: Same.
21692         * sched-rgn.c (add_branch_dependences): Same.
21693         (concat_insn_mem_list): Same.
21694         (deps_join): Same.
21695         (sched_rgn_compute_dependencies): Same.
21696         * sel-sched-ir.c (reset_target_context): Same.
21697         (copy_deps_context): Same.
21698         (init_id_from_df): Same.
21699         (has_dependence_p): Same.
21700         (change_loops_latches): Same.
21701         (bb_top_order_comparator): Same.
21702         (make_region_from_loop_preheader): Same.
21703         (sel_init_pipelining): Same.
21704         (get_loop_nest_for_rgn): Same.
21705         (make_regions_from_the_rest): Same.
21706         (sel_is_loop_preheader_p): Same.
21707         * sel-sched-ir.h (inner_loop_header_p): Same.
21708         (get_all_loop_exits): Same.
21709         * selftest.h: Same.
21710         * sese.c (sese_build_liveouts): Same.
21711         (sese_insert_phis_for_liveouts): Same.
21712         * sese.h (defined_in_sese_p): Same.
21713         * sreal.c (sreal::stream_out): Same.
21714         * sreal.h: Same.
21715         * streamer-hooks.h: Same.
21716         * target-globals.c (save_target_globals): Same.
21717         * target-globals.h: Same.
21718         * target.def: Same.
21719         * target.h: Same.
21720         * targhooks.c (default_has_ifunc_p): Same.
21721         (default_empty_mask_is_expensive): Same.
21722         (default_init_cost): Same.
21723         * targhooks.h: Same.
21724         * toplev.c: Same.
21725         * tree-affine.c (aff_combination_mult): Same.
21726         (aff_combination_expand): Same.
21727         (aff_combination_constant_multiple_p): Same.
21728         * tree-affine.h: Same.
21729         * tree-cfg.c (build_gimple_cfg): Same.
21730         (replace_loop_annotate_in_block): Same.
21731         (replace_uses_by): Same.
21732         (remove_bb): Same.
21733         (dump_cfg_stats): Same.
21734         (gimple_duplicate_sese_region): Same.
21735         (gimple_duplicate_sese_tail): Same.
21736         (move_block_to_fn): Same.
21737         (replace_block_vars_by_duplicates): Same.
21738         (move_sese_region_to_fn): Same.
21739         (print_loops_bb): Same.
21740         (print_loop): Same.
21741         (print_loops): Same.
21742         (debug): Same.
21743         (debug_loops): Same.
21744         * tree-cfg.h: Same.
21745         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21746         (chrec_fold_multiply_poly_poly): Same.
21747         (chrec_evaluate): Same.
21748         (chrec_component_in_loop_num): Same.
21749         (reset_evolution_in_loop): Same.
21750         (is_multivariate_chrec): Same.
21751         (chrec_contains_symbols): Same.
21752         (nb_vars_in_chrec): Same.
21753         (chrec_convert_1): Same.
21754         (chrec_convert_aggressive): Same.
21755         * tree-chrec.h: Same.
21756         * tree-core.h: Same.
21757         * tree-data-ref.c (dump_data_dependence_relation): Same.
21758         (canonicalize_base_object_address): Same.
21759         (data_ref_compare_tree): Same.
21760         (prune_runtime_alias_test_list): Same.
21761         (get_segment_min_max): Same.
21762         (create_intersect_range_checks): Same.
21763         (conflict_fn_no_dependence): Same.
21764         (object_address_invariant_in_loop_p): Same.
21765         (analyze_ziv_subscript): Same.
21766         (analyze_siv_subscript_cst_affine): Same.
21767         (analyze_miv_subscript): Same.
21768         (analyze_overlapping_iterations): Same.
21769         (build_classic_dist_vector_1): Same.
21770         (add_other_self_distances): Same.
21771         (same_access_functions): Same.
21772         (build_classic_dir_vector): Same.
21773         (subscript_dependence_tester_1): Same.
21774         (subscript_dependence_tester): Same.
21775         (access_functions_are_affine_or_constant_p): Same.
21776         (get_references_in_stmt): Same.
21777         (loop_nest_has_data_refs): Same.
21778         (graphite_find_data_references_in_stmt): Same.
21779         (find_data_references_in_bb): Same.
21780         (get_base_for_alignment): Same.
21781         (find_loop_nest_1): Same.
21782         (find_loop_nest): Same.
21783         * tree-data-ref.h (dr_alignment): Same.
21784         (ddr_dependence_level): Same.
21785         * tree-if-conv.c (fold_build_cond_expr): Same.
21786         (add_to_predicate_list): Same.
21787         (add_to_dst_predicate_list): Same.
21788         (phi_convertible_by_degenerating_args): Same.
21789         (idx_within_array_bound): Same.
21790         (all_preds_critical_p): Same.
21791         (pred_blocks_visited_p): Same.
21792         (predicate_bbs): Same.
21793         (build_region): Same.
21794         (if_convertible_loop_p_1): Same.
21795         (is_cond_scalar_reduction): Same.
21796         (predicate_scalar_phi): Same.
21797         (remove_conditions_and_labels): Same.
21798         (combine_blocks): Same.
21799         (version_loop_for_if_conversion): Same.
21800         (versionable_outer_loop_p): Same.
21801         (ifcvt_local_dce): Same.
21802         (tree_if_conversion): Same.
21803         (pass_if_conversion::gate): Same.
21804         * tree-if-conv.h: Same.
21805         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21806         * tree-loop-distribution.c (bb_top_order_cmp): Same.
21807         (free_rdg): Same.
21808         (stmt_has_scalar_dependences_outside_loop): Same.
21809         (copy_loop_before): Same.
21810         (create_bb_after_loop): Same.
21811         (const_with_all_bytes_same): Same.
21812         (generate_memset_builtin): Same.
21813         (generate_memcpy_builtin): Same.
21814         (destroy_loop): Same.
21815         (build_rdg_partition_for_vertex): Same.
21816         (compute_access_range): Same.
21817         (data_ref_segment_size): Same.
21818         (latch_dominated_by_data_ref): Same.
21819         (compute_alias_check_pairs): Same.
21820         (fuse_memset_builtins): Same.
21821         (finalize_partitions): Same.
21822         (find_seed_stmts_for_distribution): Same.
21823         (prepare_perfect_loop_nest): Same.
21824         * tree-parloops.c (lambda_transform_legal_p): Same.
21825         (loop_parallel_p): Same.
21826         (reduc_stmt_res): Same.
21827         (add_field_for_name): Same.
21828         (create_call_for_reduction_1): Same.
21829         (replace_uses_in_bb_by): Same.
21830         (transform_to_exit_first_loop_alt): Same.
21831         (try_transform_to_exit_first_loop_alt): Same.
21832         (transform_to_exit_first_loop): Same.
21833         (num_phis): Same.
21834         (gen_parallel_loop): Same.
21835         (gather_scalar_reductions): Same.
21836         (get_omp_data_i_param): Same.
21837         (try_create_reduction_list): Same.
21838         (oacc_entry_exit_single_gang): Same.
21839         (parallelize_loops): Same.
21840         * tree-pass.h: Same.
21841         * tree-predcom.c (determine_offset): Same.
21842         (last_always_executed_block): Same.
21843         (split_data_refs_to_components): Same.
21844         (suitable_component_p): Same.
21845         (valid_initializer_p): Same.
21846         (find_looparound_phi): Same.
21847         (insert_looparound_copy): Same.
21848         (add_looparound_copies): Same.
21849         (determine_roots_comp): Same.
21850         (predcom_tmp_var): Same.
21851         (initialize_root_vars): Same.
21852         (initialize_root_vars_store_elim_1): Same.
21853         (initialize_root_vars_store_elim_2): Same.
21854         (finalize_eliminated_stores): Same.
21855         (initialize_root_vars_lm): Same.
21856         (remove_stmt): Same.
21857         (determine_unroll_factor): Same.
21858         (execute_pred_commoning_cbck): Same.
21859         (base_names_in_chain_on): Same.
21860         (combine_chains): Same.
21861         (pcom_stmt_dominates_stmt_p): Same.
21862         (try_combine_chains): Same.
21863         (prepare_initializers_chain_store_elim): Same.
21864         (prepare_initializers_chain): Same.
21865         (prepare_initializers): Same.
21866         (prepare_finalizers_chain): Same.
21867         (prepare_finalizers): Same.
21868         (insert_init_seqs): Same.
21869         * tree-scalar-evolution.c (loop_phi_node_p): Same.
21870         (compute_overall_effect_of_inner_loop): Same.
21871         (add_to_evolution_1): Same.
21872         (add_to_evolution): Same.
21873         (follow_ssa_edge_binary): Same.
21874         (follow_ssa_edge_expr): Same.
21875         (backedge_phi_arg_p): Same.
21876         (follow_ssa_edge_in_condition_phi_branch): Same.
21877         (follow_ssa_edge_in_condition_phi): Same.
21878         (follow_ssa_edge_inner_loop_phi): Same.
21879         (follow_ssa_edge): Same.
21880         (analyze_evolution_in_loop): Same.
21881         (analyze_initial_condition): Same.
21882         (interpret_loop_phi): Same.
21883         (interpret_condition_phi): Same.
21884         (interpret_rhs_expr): Same.
21885         (interpret_expr): Same.
21886         (interpret_gimple_assign): Same.
21887         (analyze_scalar_evolution_1): Same.
21888         (analyze_scalar_evolution): Same.
21889         (analyze_scalar_evolution_for_address_of): Same.
21890         (get_instantiated_value_entry): Same.
21891         (loop_closed_phi_def): Same.
21892         (instantiate_scev_name): Same.
21893         (instantiate_scev_poly): Same.
21894         (instantiate_scev_binary): Same.
21895         (instantiate_scev_convert): Same.
21896         (instantiate_scev_not): Same.
21897         (instantiate_scev_r): Same.
21898         (instantiate_scev): Same.
21899         (resolve_mixers): Same.
21900         (initialize_scalar_evolutions_analyzer): Same.
21901         (scev_reset_htab): Same.
21902         (scev_reset): Same.
21903         (derive_simple_iv_with_niters): Same.
21904         (simple_iv_with_niters): Same.
21905         (expression_expensive_p): Same.
21906         (final_value_replacement_loop): Same.
21907         * tree-scalar-evolution.h (block_before_loop): Same.
21908         * tree-ssa-address.h: Same.
21909         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21910         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21911         (record_edge_info): Same.
21912         * tree-ssa-live.c (var_map_base_fini): Same.
21913         (remove_unused_locals): Same.
21914         * tree-ssa-live.h: Same.
21915         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21916         (pass_ch_vect::execute): Same.
21917         (pass_ch::process_loop_p): Same.
21918         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21919         (movement_possibility): Same.
21920         (outermost_invariant_loop): Same.
21921         (stmt_cost): Same.
21922         (determine_max_movement): Same.
21923         (invariantness_dom_walker::before_dom_children): Same.
21924         (move_computations): Same.
21925         (may_move_till): Same.
21926         (force_move_till_op): Same.
21927         (force_move_till): Same.
21928         (memref_free): Same.
21929         (record_mem_ref_loc): Same.
21930         (set_ref_stored_in_loop): Same.
21931         (mark_ref_stored): Same.
21932         (sort_bbs_in_loop_postorder_cmp): Same.
21933         (sort_locs_in_loop_postorder_cmp): Same.
21934         (analyze_memory_references): Same.
21935         (mem_refs_may_alias_p): Same.
21936         (find_ref_loc_in_loop_cmp): Same.
21937         (rewrite_mem_ref_loc::operator): Same.
21938         (first_mem_ref_loc_1::operator): Same.
21939         (sm_set_flag_if_changed::operator): Same.
21940         (execute_sm_if_changed_flag_set): Same.
21941         (execute_sm): Same.
21942         (hoist_memory_references): Same.
21943         (ref_always_accessed::operator): Same.
21944         (refs_independent_p): Same.
21945         (record_dep_loop): Same.
21946         (ref_indep_loop_p_1): Same.
21947         (ref_indep_loop_p): Same.
21948         (can_sm_ref_p): Same.
21949         (find_refs_for_sm): Same.
21950         (loop_suitable_for_sm): Same.
21951         (store_motion_loop): Same.
21952         (store_motion): Same.
21953         (fill_always_executed_in): Same.
21954         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21955         (estimated_unrolled_size): Same.
21956         (loop_edge_to_cancel): Same.
21957         (remove_exits_and_undefined_stmts): Same.
21958         (remove_redundant_iv_tests): Same.
21959         (unloop_loops): Same.
21960         (estimated_peeled_sequence_size): Same.
21961         (try_peel_loop): Same.
21962         (canonicalize_loop_induction_variables): Same.
21963         (canonicalize_induction_variables): Same.
21964         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21965         (name_info): Same.
21966         (stmt_after_inc_pos): Same.
21967         (contains_abnormal_ssa_name_p): Same.
21968         (niter_for_exit): Same.
21969         (find_bivs): Same.
21970         (mark_bivs): Same.
21971         (find_givs_in_bb): Same.
21972         (find_induction_variables): Same.
21973         (find_interesting_uses_cond): Same.
21974         (outermost_invariant_loop_for_expr): Same.
21975         (idx_find_step): Same.
21976         (add_candidate_1): Same.
21977         (add_iv_candidate_derived_from_uses): Same.
21978         (alloc_use_cost_map): Same.
21979         (prepare_decl_rtl): Same.
21980         (generic_predict_doloop_p): Same.
21981         (computation_cost): Same.
21982         (determine_common_wider_type): Same.
21983         (get_computation_aff_1): Same.
21984         (get_use_type): Same.
21985         (determine_group_iv_cost_address): Same.
21986         (iv_period): Same.
21987         (difference_cannot_overflow_p): Same.
21988         (may_eliminate_iv): Same.
21989         (determine_set_costs): Same.
21990         (cheaper_cost_pair): Same.
21991         (compare_cost_pair): Same.
21992         (iv_ca_cand_for_group): Same.
21993         (iv_ca_recount_cost): Same.
21994         (iv_ca_set_remove_invs): Same.
21995         (iv_ca_set_no_cp): Same.
21996         (iv_ca_set_add_invs): Same.
21997         (iv_ca_set_cp): Same.
21998         (iv_ca_add_group): Same.
21999         (iv_ca_cost): Same.
22000         (iv_ca_compare_deps): Same.
22001         (iv_ca_delta_reverse): Same.
22002         (iv_ca_delta_commit): Same.
22003         (iv_ca_cand_used_p): Same.
22004         (iv_ca_delta_free): Same.
22005         (iv_ca_new): Same.
22006         (iv_ca_free): Same.
22007         (iv_ca_dump): Same.
22008         (iv_ca_extend): Same.
22009         (iv_ca_narrow): Same.
22010         (iv_ca_prune): Same.
22011         (cheaper_cost_with_cand): Same.
22012         (iv_ca_replace): Same.
22013         (try_add_cand_for): Same.
22014         (get_initial_solution): Same.
22015         (try_improve_iv_set): Same.
22016         (find_optimal_iv_set_1): Same.
22017         (create_new_iv): Same.
22018         (rewrite_use_compare): Same.
22019         (remove_unused_ivs): Same.
22020         (determine_scaling_factor): Same.
22021         * tree-ssa-loop-ivopts.h: Same.
22022         * tree-ssa-loop-manip.c (create_iv): Same.
22023         (compute_live_loop_exits): Same.
22024         (add_exit_phi): Same.
22025         (add_exit_phis): Same.
22026         (find_uses_to_rename_use): Same.
22027         (find_uses_to_rename_def): Same.
22028         (find_uses_to_rename_in_loop): Same.
22029         (rewrite_into_loop_closed_ssa): Same.
22030         (check_loop_closed_ssa_bb): Same.
22031         (split_loop_exit_edge): Same.
22032         (ip_end_pos): Same.
22033         (ip_normal_pos): Same.
22034         (copy_phi_node_args): Same.
22035         (gimple_duplicate_loop_to_header_edge): Same.
22036         (can_unroll_loop_p): Same.
22037         (determine_exit_conditions): Same.
22038         (scale_dominated_blocks_in_loop): Same.
22039         (niter_for_unrolled_loop): Same.
22040         (tree_transform_and_unroll_loop): Same.
22041         (rewrite_all_phi_nodes_with_iv): Same.
22042         * tree-ssa-loop-manip.h: Same.
22043         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
22044         (number_of_iterations_ne): Same.
22045         (assert_no_overflow_lt): Same.
22046         (assert_loop_rolls_lt): Same.
22047         (number_of_iterations_lt): Same.
22048         (adjust_cond_for_loop_until_wrap): Same.
22049         (tree_simplify_using_condition): Same.
22050         (simplify_using_initial_conditions): Same.
22051         (simplify_using_outer_evolutions): Same.
22052         (loop_only_exit_p): Same.
22053         (ssa_defined_by_minus_one_stmt_p): Same.
22054         (number_of_iterations_popcount): Same.
22055         (number_of_iterations_exit): Same.
22056         (find_loop_niter): Same.
22057         (finite_loop_p): Same.
22058         (chain_of_csts_start): Same.
22059         (get_val_for): Same.
22060         (loop_niter_by_eval): Same.
22061         (derive_constant_upper_bound_ops): Same.
22062         (do_warn_aggressive_loop_optimizations): Same.
22063         (record_estimate): Same.
22064         (get_cst_init_from_scev): Same.
22065         (record_nonwrapping_iv): Same.
22066         (idx_infer_loop_bounds): Same.
22067         (infer_loop_bounds_from_ref): Same.
22068         (infer_loop_bounds_from_array): Same.
22069         (infer_loop_bounds_from_pointer_arith): Same.
22070         (infer_loop_bounds_from_signedness): Same.
22071         (bound_index): Same.
22072         (discover_iteration_bound_by_body_walk): Same.
22073         (maybe_lower_iteration_bound): Same.
22074         (estimate_numbers_of_iterations): Same.
22075         (estimated_loop_iterations): Same.
22076         (estimated_loop_iterations_int): Same.
22077         (max_loop_iterations): Same.
22078         (max_loop_iterations_int): Same.
22079         (likely_max_loop_iterations): Same.
22080         (likely_max_loop_iterations_int): Same.
22081         (estimated_stmt_executions_int): Same.
22082         (max_stmt_executions): Same.
22083         (likely_max_stmt_executions): Same.
22084         (estimated_stmt_executions): Same.
22085         (stmt_dominates_stmt_p): Same.
22086         (nowrap_type_p): Same.
22087         (loop_exits_before_overflow): Same.
22088         (scev_var_range_cant_overflow): Same.
22089         (scev_probably_wraps_p): Same.
22090         (free_numbers_of_iterations_estimates): Same.
22091         * tree-ssa-loop-niter.h: Same.
22092         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
22093         (idx_analyze_ref): Same.
22094         (analyze_ref): Same.
22095         (gather_memory_references_ref): Same.
22096         (mark_nontemporal_store): Same.
22097         (emit_mfence_after_loop): Same.
22098         (may_use_storent_in_loop_p): Same.
22099         (mark_nontemporal_stores): Same.
22100         (should_unroll_loop_p): Same.
22101         (volume_of_dist_vector): Same.
22102         (add_subscript_strides): Same.
22103         (self_reuse_distance): Same.
22104         (insn_to_prefetch_ratio_too_small_p): Same.
22105         * tree-ssa-loop-split.c (split_at_bb_p): Same.
22106         (patch_loop_exit): Same.
22107         (find_or_create_guard_phi): Same.
22108         (easy_exit_values): Same.
22109         (connect_loop_phis): Same.
22110         (connect_loops): Same.
22111         (compute_new_first_bound): Same.
22112         (split_loop): Same.
22113         (tree_ssa_split_loops): Same.
22114         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
22115         (is_maybe_undefined): Same.
22116         (tree_may_unswitch_on): Same.
22117         (simplify_using_entry_checks): Same.
22118         (tree_unswitch_single_loop): Same.
22119         (tree_unswitch_loop): Same.
22120         (tree_unswitch_outer_loop): Same.
22121         (empty_bb_without_guard_p): Same.
22122         (used_outside_loop_p): Same.
22123         (get_vop_from_header): Same.
22124         (hoist_guard): Same.
22125         * tree-ssa-loop.c (gate_oacc_kernels): Same.
22126         (get_lsm_tmp_name): Same.
22127         * tree-ssa-loop.h: Same.
22128         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
22129         (build_and_add_sum): Same.
22130         (no_side_effect_bb): Same.
22131         (get_ops): Same.
22132         (linearize_expr): Same.
22133         (should_break_up_subtract): Same.
22134         (linearize_expr_tree): Same.
22135         * tree-ssa-scopedtables.c: Same.
22136         * tree-ssa-scopedtables.h: Same.
22137         * tree-ssa-structalias.c (condense_visit): Same.
22138         (label_visit): Same.
22139         (dump_pred_graph): Same.
22140         (perform_var_substitution): Same.
22141         (move_complex_constraints): Same.
22142         (remove_preds_and_fake_succs): Same.
22143         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
22144         (determine_bb_domination_status): Same.
22145         (duplicate_thread_path): Same.
22146         (thread_through_all_blocks): Same.
22147         * tree-ssa-threadupdate.h: Same.
22148         * tree-streamer-in.c (streamer_read_string_cst): Same.
22149         (input_identifier): Same.
22150         (unpack_ts_type_common_value_fields): Same.
22151         (unpack_ts_block_value_fields): Same.
22152         (unpack_ts_translation_unit_decl_value_fields): Same.
22153         (unpack_ts_omp_clause_value_fields): Same.
22154         (streamer_read_tree_bitfields): Same.
22155         (streamer_alloc_tree): Same.
22156         (lto_input_ts_common_tree_pointers): Same.
22157         (lto_input_ts_vector_tree_pointers): Same.
22158         (lto_input_ts_poly_tree_pointers): Same.
22159         (lto_input_ts_complex_tree_pointers): Same.
22160         (lto_input_ts_decl_minimal_tree_pointers): Same.
22161         (lto_input_ts_decl_common_tree_pointers): Same.
22162         (lto_input_ts_decl_non_common_tree_pointers): Same.
22163         (lto_input_ts_decl_with_vis_tree_pointers): Same.
22164         (lto_input_ts_field_decl_tree_pointers): Same.
22165         (lto_input_ts_function_decl_tree_pointers): Same.
22166         (lto_input_ts_type_common_tree_pointers): Same.
22167         (lto_input_ts_type_non_common_tree_pointers): Same.
22168         (lto_input_ts_list_tree_pointers): Same.
22169         (lto_input_ts_vec_tree_pointers): Same.
22170         (lto_input_ts_exp_tree_pointers): Same.
22171         (lto_input_ts_block_tree_pointers): Same.
22172         (lto_input_ts_binfo_tree_pointers): Same.
22173         (lto_input_ts_constructor_tree_pointers): Same.
22174         (lto_input_ts_omp_clause_tree_pointers): Same.
22175         (streamer_read_tree_body): Same.
22176         * tree-streamer.h: Same.
22177         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
22178         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
22179         (vect_analyze_possibly_independent_ddr): Same.
22180         (vect_analyze_data_ref_dependence): Same.
22181         (vect_compute_data_ref_alignment): Same.
22182         (vect_enhance_data_refs_alignment): Same.
22183         (vect_analyze_data_ref_access): Same.
22184         (vect_check_gather_scatter): Same.
22185         (vect_find_stmt_data_reference): Same.
22186         (vect_create_addr_base_for_vector_ref): Same.
22187         (vect_setup_realignment): Same.
22188         (vect_supportable_dr_alignment): Same.
22189         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
22190         (adjust_phi_and_debug_stmts): Same.
22191         (vect_set_loop_mask): Same.
22192         (add_preheader_seq): Same.
22193         (vect_maybe_permute_loop_masks): Same.
22194         (vect_set_loop_masks_directly): Same.
22195         (vect_set_loop_condition_masked): Same.
22196         (vect_set_loop_condition_unmasked): Same.
22197         (slpeel_duplicate_current_defs_from_edges): Same.
22198         (slpeel_add_loop_guard): Same.
22199         (slpeel_can_duplicate_loop_p): Same.
22200         (create_lcssa_for_virtual_phi): Same.
22201         (iv_phi_p): Same.
22202         (vect_update_ivs_after_vectorizer): Same.
22203         (vect_gen_vector_loop_niters_mult_vf): Same.
22204         (slpeel_update_phi_nodes_for_loops): Same.
22205         (slpeel_update_phi_nodes_for_guard1): Same.
22206         (find_guard_arg): Same.
22207         (slpeel_update_phi_nodes_for_guard2): Same.
22208         (slpeel_update_phi_nodes_for_lcssa): Same.
22209         (vect_do_peeling): Same.
22210         (vect_create_cond_for_alias_checks): Same.
22211         (vect_loop_versioning): Same.
22212         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
22213         (vect_inner_phi_in_double_reduction_p): Same.
22214         (vect_analyze_scalar_cycles_1): Same.
22215         (vect_fixup_scalar_cycles_with_patterns): Same.
22216         (vect_get_loop_niters): Same.
22217         (bb_in_loop_p): Same.
22218         (vect_get_max_nscalars_per_iter): Same.
22219         (vect_verify_full_masking): Same.
22220         (vect_compute_single_scalar_iteration_cost): Same.
22221         (vect_analyze_loop_form_1): Same.
22222         (vect_analyze_loop_form): Same.
22223         (vect_active_double_reduction_p): Same.
22224         (vect_analyze_loop_operations): Same.
22225         (neutral_op_for_slp_reduction): Same.
22226         (vect_is_simple_reduction): Same.
22227         (vect_model_reduction_cost): Same.
22228         (get_initial_def_for_reduction): Same.
22229         (get_initial_defs_for_reduction): Same.
22230         (vect_create_epilog_for_reduction): Same.
22231         (vectorize_fold_left_reduction): Same.
22232         (vectorizable_reduction): Same.
22233         (vectorizable_induction): Same.
22234         (vectorizable_live_operation): Same.
22235         (loop_niters_no_overflow): Same.
22236         (vect_get_loop_mask): Same.
22237         (vect_transform_loop_stmt): Same.
22238         (vect_transform_loop): Same.
22239         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
22240         (vect_determine_precisions): Same.
22241         (vect_pattern_recog_1): Same.
22242         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
22243         * tree-vect-stmts.c (stmt_vectype): Same.
22244         (process_use): Same.
22245         (vect_init_vector_1): Same.
22246         (vect_truncate_gather_scatter_offset): Same.
22247         (get_group_load_store_type): Same.
22248         (vect_build_gather_load_calls): Same.
22249         (vect_get_strided_load_store_ops): Same.
22250         (vectorizable_simd_clone_call): Same.
22251         (vectorizable_store): Same.
22252         (permute_vec_elements): Same.
22253         (vectorizable_load): Same.
22254         (vect_transform_stmt): Same.
22255         (supportable_widening_operation): Same.
22256         * tree-vectorizer.c (vec_info::replace_stmt): Same.
22257         (vec_info::free_stmt_vec_info): Same.
22258         (vect_free_loop_info_assumptions): Same.
22259         (vect_loop_vectorized_call): Same.
22260         (set_uid_loop_bbs): Same.
22261         (vectorize_loops): Same.
22262         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
22263         * tree.c (add_tree_to_fld_list): Same.
22264         (fld_type_variant_equal_p): Same.
22265         (fld_decl_context): Same.
22266         (fld_incomplete_type_of): Same.
22267         (free_lang_data_in_binfo): Same.
22268         (need_assembler_name_p): Same.
22269         (find_decls_types_r): Same.
22270         (get_eh_types_for_runtime): Same.
22271         (find_decls_types_in_eh_region): Same.
22272         (find_decls_types_in_node): Same.
22273         (assign_assembler_name_if_needed): Same.
22274         * value-prof.c (stream_out_histogram_value): Same.
22275         * value-prof.h: Same.
22276         * var-tracking.c (use_narrower_mode): Same.
22277         (prepare_call_arguments): Same.
22278         (vt_expand_loc_callback): Same.
22279         (resolve_expansions_pending_recursion): Same.
22280         (vt_expand_loc): Same.
22281         * varasm.c (const_hash_1): Same.
22282         (compare_constant): Same.
22283         (tree_output_constant_def): Same.
22284         (simplify_subtraction): Same.
22285         (get_pool_constant): Same.
22286         (output_constant_pool_2): Same.
22287         (output_constant_pool_1): Same.
22288         (mark_constants_in_pattern): Same.
22289         (mark_constant_pool): Same.
22290         (get_section_anchor): Same.
22291         * vr-values.c (compare_range_with_value): Same.
22292         (vr_values::extract_range_from_phi_node): Same.
22293         * vr-values.h: Same.
22294         * web.c (unionfind_union): Same.
22295         * wide-int.h: Same.
22297 2019-07-09  Martin Sebor  <msebor@redhat.com>
22299         PR c++/61339
22300         * align.h: Change class-key from class to struct and vice versa
22301         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22302         * alloc-pool.h: Same.
22303         * asan.c (shadow_mem_size): Same.
22304         * auto-profile.c: Same.
22305         * basic-block.h: Same.
22306         * bitmap.h: Same.
22307         * cfgexpand.c (set_rtl): Same.
22308         (expand_one_stack_var_at): Same.
22309         * cfghooks.h: Same.
22310         * cfgloop.h: Same.
22311         * cgraph.h: Same.
22312         * config/i386/i386.h: Same.
22313         * df-problems.c (df_print_bb_index): Same.
22314         * df-scan.c: Same.
22315         * df.h (df_single_use): Same.
22316         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22317         (layout::annotation_line_showed_range_p): Same.
22318         (get_printed_columns): Same.
22319         (correction::ensure_terminated): Same.
22320         (line_corrections::~line_corrections): Same.
22321         * dojump.h: Same.
22322         * dse.c: Same.
22323         * dump-context.h: Same.
22324         * dumpfile.h: Same.
22325         * dwarf2out.c: Same.
22326         * edit-context.c: Same.
22327         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22328         * flags.h: Same.
22329         * function.c (assign_stack_local): Same.
22330         * function.h: Same.
22331         * gcc.c: Same.
22332         * gcov.c (block_info::block_info): Same.
22333         * genattrtab.c: Same.
22334         * genextract.c: Same.
22335         * genmatch.c (comparison_code_p): Same.
22336         (id_base::id_base): Same.
22337         (decision_tree::print): Same.
22338         * genoutput.c: Same.
22339         * genpreds.c (write_one_predicate_function): Same.
22340         * genrecog.c (validate_pattern): Same.
22341         (find_operand_positions): Same.
22342         (optimize_subroutine_group): Same.
22343         (merge_pattern_transition::merge_pattern_transition): Same.
22344         (merge_pattern_info::merge_pattern_info): Same.
22345         (merge_state_result::merge_state_result): Same.
22346         (merge_into_state): Same.
22347         * gensupport.c: Same.
22348         * gensupport.h: Same.
22349         * ggc-common.c (init_ggc_heuristics): Same.
22350         * ggc-tests.c (test_union): Same.
22351         * gimple-loop-interchange.cc (dump_induction): Same.
22352         * gimple-loop-versioning.cc: Same.
22353         * gimple-match.h (gimple_match_cond::any_else): Same.
22354         * gimple-ssa-backprop.c: Same.
22355         * gimple-ssa-sprintf.c: Same.
22356         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22357         Same.
22358         (store_immediate_info::store_immediate_info): Same.
22359         (merged_store_group::apply_stores): Same.
22360         (get_location_for_stmts): Same.
22361         * gimple-ssa-strength-reduction.c: Same.
22362         * gimple-ssa-warn-alloca.c: Same.
22363         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22364         * godump.c (go_type_decl): Same.
22365         * hash-map-tests.c (test_map_of_strings_to_int): Same.
22366         * hash-map.h: Same.
22367         * hash-set-tests.c (test_set_of_strings): Same.
22368         * hsa-brig.c: Same.
22369         * hsa-common.h: Same.
22370         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22371         * input.c (assert_loceq): Same.
22372         * input.h: Same.
22373         * ipa-cp.c: Same.
22374         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22375         * ipa-fnsummary.h: Same.
22376         * ipa-inline.h: Same.
22377         * ipa-prop.h: Same.
22378         * ipa-split.c (visit_bb): Same.
22379         * ira-int.h (minmax_set_iter_next): Same.
22380         * loop-invariant.c: Same.
22381         * loop-iv.c: Same.
22382         * lra-eliminations.c: Same.
22383         * lra-int.h: Same.
22384         * lra-lives.c (mark_regno_dead): Same.
22385         * lra-remat.c: Same.
22386         * lra-spills.c: Same.
22387         * lto-streamer.h: Same.
22388         * mem-stats.h: Same.
22389         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22390         * omp-low.c (omp_clause_aligned_alignment): Same.
22391         * optabs-query.h (get_vcond_eq_icode): Same.
22392         * optabs.h: Same.
22393         * opts.c (wrap_help): Same.
22394         * poly-int.h: Same.
22395         * predict.c (predict_paths_leading_to_edge): Same.
22396         * pretty-print.h: Same.
22397         * profile-count.h: Same.
22398         * read-md.h: Same.
22399         * read-rtl-function.c: Same.
22400         * ree.c: Same.
22401         * reginfo.c: Same.
22402         * regrename.c: Same.
22403         * regrename.h: Same.
22404         * reload.h: Same.
22405         * rtl-iter.h: Same.
22406         * rtl.h (costs_add_n_insns): Same.
22407         * sanopt.c: Same.
22408         * sched-int.h: Same.
22409         * sel-sched-ir.h: Same.
22410         * selftest.h: Same.
22411         * sese.h (vec_find): Same.
22412         * stmt.c: Same.
22413         * target-globals.h: Same.
22414         * tree-affine.c (aff_combination_find_elt): Same.
22415         * tree-affine.h: Same.
22416         * tree-data-ref.h: Same.
22417         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22418         * tree-predcom.c: Same.
22419         * tree-scalar-evolution.c (find_var_scev_info): Same.
22420         * tree-ssa-alias.h: Same.
22421         * tree-ssa-ccp.c: Same.
22422         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22423         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22424         (rewrite_mem_refs): Same.
22425         (execute_sm_if_changed): Same.
22426         (hoist_memory_references): Same.
22427         * tree-ssa-loop-ivopts.c (operator<=): Same.
22428         * tree-ssa-loop.h: Same.
22429         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22430         * tree-ssa-structalias.c: Same.
22431         * tree-switch-conversion.h (cluster::cluster): Same.
22432         (simple_cluster::simple_cluster): Same.
22433         * tree-vect-patterns.c (type_conversion_p): Same.
22434         * tree-vectorizer.c (dump_stmt_cost): Same.
22435         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22436         * tree.c (protected_set_expr_location): Same.
22437         * tree.h (desired_pro_or_demotion_p): Same.
22438         (fndecl_built_in_p): Same.
22439         * unique-ptr-tests.cc: Same.
22440         * var-tracking.c (delete_variable_part): Same.
22441         * varasm.c (assemble_real): Same.
22442         (tree_output_constant_def): Same.
22443         * vec.c: Same.
22444         * wide-int-bitmask.h: Same.
22445         * wide-int.h (decompose): Same.
22447 2019-07-09  Richard Biener  <rguenther@suse.de>
22449         PR tree-optimization/91114
22450         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22451         find a vector type isn't fatal.
22453 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
22455         * config/aarch64/aarch64-simd.md
22456         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22457         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22458         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22459         (*aarch64_crypto_aese_fused,
22460         *aarch64_crypto_aesd_fused): Update to new definition.
22461         * config/aarch64/aarch64.c
22462         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22464 2019-07-09  Richard Biener  <rguenther@suse.de>
22466         * gimple-match.h (gimple_match_op::resimplify): New.
22467         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22468         gimple_resimplify4, gimple_resimplify5): Remove.
22469         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22470         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22471         Make static.
22472         (gimple_match_op::resimplify): New.
22473         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22474         according to availability.  Use gimple_match_op::resimplify.
22476 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
22478         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22480 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
22482         * config/arm/crypto.md:
22483         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22484         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22485         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22486         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22487         * config/arm/arm.c
22488         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22489         * config/arm/aarch-common-protos.h
22490         (aarch_crypto_can_dual_issue): Remove.
22491         * config/arm/aarch-common.c
22492         (aarch_crypto_can_dual_issue): Likewise.
22493         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22494         * config/arm/cortex-a53.md: Likewise.
22495         * config/arm/cortex-a57.md: Likewise.
22496         * config/arm/iterators.md:
22497         (CRYPTO_BINARY): Redefine.
22498         (CRYPTO_UNARY): Removed.
22499         (CRYPTO_AES, CRYPTO_AESMC): New.
22501 2019-07-09  Richard Biener  <rguenther@suse.de>
22503         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22504         (vn_reference_lookup_3): If the main ref has no access path recorded
22505         but orig_ref has use it to do access-path based disambiguation.
22506         (vn_reference_lookup_pieces): Adjust.
22507         (vn_reference_lookup): Pass down original ref if we valueized.
22509 2019-07-09  Martin Liska  <mliska@suse.cz>
22511         * doc/extend.texi: Document influence on loop
22512         optimizers.
22514 2019-07-09  Martin Liska  <mliska@suse.cz>
22516         * lto-compress.c (lto_normalized_zstd_level): Do not use
22517         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22518         of libzstd.  One can use 0 as a default compression level.
22520 2019-07-09  Martin Liska  <mliska@suse.cz>
22522         * doc/invoke.texi: Add link from -fprofile-dir option.
22523         Use better wording for 'gcno filename'.
22525 2019-07-08  Martin Sebor  <msebor@redhat.com>
22527         PR middle-end/71924
22528         PR middle-end/90549
22529         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
22530         comment.
22531         (args_loc_t): New type.
22532         (args_loc_t, locmap_t): same.
22533         (diag_returned_locals): New function.
22534         (is_addr_local): Same.
22535         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22536         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22537         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22539 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
22541         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22542         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
22543         and casts in offset when different, both through gimple stmts
22544         and through trees.  Rewritten using loops to minimize code duplication
22545         for each operand.
22547 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22549         * emit-rtl.c (set_insn_locations): New function moved from...
22550         * function.c (set_insn_locations): ...here.
22551         * ira-emit.c (emit_moves): Propagate location of the first instruction
22552         to the inserted move instructions.
22553         * reg-stack.c (compensate_edge): Set the location if the sequence is
22554         inserted on the edge.
22555         * rtl.h (set_insn_locations): Declare.
22557 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
22559         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22560         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22561         .machine string.
22563 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
22565         PR rtl-optimization/88233
22566         * common.opt (fsplit-wide-types-early): New option.
22567         * common/config/rs6000/rs6000-common.c
22568         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22569         OPT_LEVELS_ALL.
22570         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22571         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22572         flag_split_wide_types_early.
22573         (pass_data_lower_subreg3): New.
22574         (pass_lower_subreg3): New.
22575         (make_pass_lower_subreg3): New.
22576         * passes.def (pass_lower_subreg2): Move after the loop passes.
22577         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22578         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22579         the pass pipeline; its previous place is taken by ...
22580         (make_pass_lower_subreg3): ... this.
22582 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
22584         * config/s390/s390.c (s390_shift_truncation_mask): Define.
22585         (TARGET_SHIFT_TRUNCATION_MASK): Define.
22587 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
22589         * config/s390/constraints.md: Add new jsc constraint.
22590         * config/s390/predicates.md: New predicates.
22591         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22592         * config/s390/s390.c (s390_valid_shift_count): New function.
22593         (print_shift_count_operand): Use s390_valid_shift_count.
22594         (print_operand): Likewise.
22595         * config/s390/s390.md: Use new predicate.
22596         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22597         * config/s390/vector.md: Use new predicate.
22599 2019-07-08  Andrew Waterman  <andrew@sifive.com>
22600             Jim Wilson  <jimw@sifive.com>
22602         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22603         bitsize instead of BITS_PER_WORD.
22605 2019-07-08  Martin Liska  <mliska@suse.cz>
22607         * collect2.c (defined): Revert to before r254460.
22608         (scan_prog_file): Revert to before r254460.
22610 2019-07-08  Richard Biener  <rguenther@suse.de>
22612         PR tree-optimization/83518
22613         * tree-ssa-sccvn.c: Include splay-tree.h.
22614         (struct pd_range, struct pd_data): New.
22615         (struct vn_walk_cb_data): Add data to track partial definitions.
22616         (vn_walk_cb_data::~vn_walk_cb_data): New.
22617         (vn_walk_cb_data::push_partial_def): New.
22618         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22619         (vn_reference_lookup_2): When partial defs are registered give up.
22620         (vn_reference_lookup_3): Track partial defs for memset and
22621         constructor zeroing and for defs from constants.
22623 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
22625         * doc/install.texi (bootstrap-Og): Document.
22627 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
22629         * config/riscv/pic.md (*local_pic_load_s<mode>)
22630         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22631         referenced by <mode>, giving...
22632         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22633         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22634         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22635         use <X:MODE> for the mode attribute.
22637 2019-07-07  Jeff Law  <law@redhat.com>
22639         PR tree-optimization/91090
22640         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22641         in handling of ranges to simplify switch statements.
22643 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
22645         * config/darwin.c (darwin_override_options): Make a final check on PIC
22646         options.
22648 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
22650         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22651         on for kernel code.
22653 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
22655         PR target/91068
22656         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22657         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22658         instead of matching them to "l" output operands.
22660 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
22662         * config/mips/mips.c (mips_split_move): Zero-initialize addr
22663         and check whether addr.reg is nonnull before using it.
22665 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
22667         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22668         ctx->for_simd_scan_phase simd copy the outer var to the privatized
22669         variable(s).  For conditional lastprivate look through outer
22670         GIMPLE_OMP_SCAN context.
22671         (lower_omp_1): For conditional lastprivate look through outer
22672         GIMPLE_OMP_SCAN context.
22674         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22675         member to combined_into_simd_safelen1.
22676         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22677         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
22678         clauses if ctx->combined_into_simd_safelen1 put statements after the
22679         predicate conditionalized block rather than into it.
22681 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22683         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22684         operand 1.
22685         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22686         Make the choice of <mode> explicit, giving...
22687         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22689 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22691         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22692         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22693         of .md attributes.
22694         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22695         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22696         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22697         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22698         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22699         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22700         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22701         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22702         (*avx512f_scatterdi<mode>): Likewise.
22703         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22705 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22707         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22708         specify the mode iterator referenced by <mode>, giving...
22709         (*push1_h8300hs_<QHI:mode>): ...this.
22711 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22713         * config/gcn/gcn-valu.md
22714         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22715         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22716         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
22717         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22718         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22719         but using the _exec comparison patterns.
22720         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22721         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22722         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
22723         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22724         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22725         but using the _exec comparison patterns.
22727 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22729         * config/arm/sync.md
22730         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22731         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22732         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22733         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
22734         <SIDI:cas_cmp_str>.
22736 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
22738         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22739         (maybe_lookup_ctx): Add forward declaration.
22740         (omp_find_scan): Likewise.  Walk into body of simd if composited
22741         with worksharing loop.
22742         (scan_omp_simd_scan): New function.
22743         (scan_omp_1_stmt): Call it.
22744         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22745         ctx->for_simd_scan_phase.
22746         (lower_rec_input_clauses): Do much less work for inscan reductions
22747         in ctx->for_simd_scan_phase is_simd regions.
22748         (lower_omp_scan): Set is_simd also on simd constructs composited
22749         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
22750         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
22751         emit their body after in simd constructs composited with worksharing
22752         loop.
22753         (lower_omp_for_scan): Handle worksharing loop composited with simd.
22755         * omp-low.c (omp_find_scan): Make static.
22756         (lower_omp_for_scan): Fix order of merge arguments in input phase of
22757         the second loop, var2 represents the first partial sum and so needs
22758         to go before rprivb[ivar].
22760 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
22762         * config/rs6000/rs6000-logue.c: Remove unused code.
22764 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22766         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22768 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
22770         PR target/90712
22771         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22772         check with a frame laid out check.
22774 2019-07-05  Richard Biener  <rguenther@suse.de>
22776         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22777         when comparing against a store with possibly the same value.
22779 2019-07-05  Richard Biener  <rguenther@suse.de>
22781         PR tree-optimization/91091
22782         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22783         (walk_non_aliased_vuses): Likewise.
22784         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22785         (get_continuation_for_phi): New tbaa_p parameter and pass
22786         it down.
22787         (walk_non_aliased_vuses): Likewise.
22788         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22789         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22790         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22791         Likewise.
22792         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22793         (adjust_offsets_for_equal_base_address): New function.
22794         (vn_reference_lookup_3): Use it to catch more base equivalences.
22795         Handle and pass down tbaa_p flag.
22796         (vn_reference_lookup_pieces): Adjust.
22797         (vn_reference_lookup): Remove alias-set altering, instead pass
22798         down false as tbaa_p.
22800 2019-07-05  Richard Biener  <rguenther@suse.de>
22802         PR tree-optimization/91091
22803         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22804         accesses can happen with -fno-strict-aliasing.
22806 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
22808         * tree-ssa-alias.c (alias_stats): Add
22809         nonoverlapping_component_refs_since_match_p_must_overlap.
22810         (dump_alias_stats): Print it.
22811         (nonoverlapping_component_refs_since_match_p): Add early exit.
22812         (nonoverlapping_component_refs_p): Do not account early exit.
22814 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22816         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22817         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22818         (emit_eh_dispatch): Delete.
22819         (lower_catch): Emit the eh_dispatch manually and set the location of
22820         the first catch statement onto it.
22821         (lower_eh_filter): Emit the eh_dispatch manually and set location.
22822         (lower_eh_dispatch): Propagate location.
22823         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22824         (eliminate_build): Likewise.
22826 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22828         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22829         phi nodes if possible.
22830         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22831         location info on the newly created statement.
22832         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22833         newly created increment if needed.
22835 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22837         PR middle-end/78884
22838         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22839         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22840         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22841         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22842         ctx->add_safelen1 is set.
22844         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22845         GOMP_loop_start at the start of second worksharing loop in a scan.
22846         For nowait, don't emit GOMP_loop_end_nowait at the end of first
22847         worksharing loop in a scan even if there are conditional lastprivates,
22848         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22850 2019-07-04  Jan Hubicka  <jh@suse.cz>
22852         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22853         Fix check for match in the ref walk.
22855 2019-07-04  Martin Liska  <mliska@suse.cz>
22857         * tree-ssa-loop-niter.c
22858         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22859         (estimate_numbers_of_iterations):
22860         Support __builtin_expect_with_probability for analysis
22861         of # of loop iterations.
22863 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
22865         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22866         * except.c: Likewise.
22867         * expr.c (expand_expr_real_1): Reject it.
22868         * gimplify.c (gimplify_expr): Gimplify it, within
22869         TRY_FINALLY_EXPR.
22870         * tree-dump.c (dequeue_and_dump): Dump it.
22871         * tree-pretty-print.c (dump_generic_node): Likewise.
22872         * tree.c (block_may_fallthru): Handle it.
22873         * tree.def (EH_ELSE_EXPR): Introduce it.
22874         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22875         with GIMPLE_EH_ELSE as try/finally/else.
22877 2019-07-04  Richard Biener  <rguenther@suse.de>
22879         PR ipa/91062
22880         * tree-pass.h (execute_all_ipa_transforms): Add a flag
22881         parameter whether to disable GC collection.
22882         * passes.c (execute_one_ipa_transform_pass): Likewise, and
22883         honor it.
22884         (execute_all_ipa_transforms): Likewise and pass it down.
22885         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22886         collection from applying IPA transforms.
22887         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22888         from applying IPA transforms.
22890 2019-07-04  Richard Biener  <rguenther@suse.de>
22892         PR tree-optimization/90911
22893         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22894         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22895         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22896         scalar_loop_scaling.
22897         (vect_transform_loop): Scale scalar loop profile if needed.
22898         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22899         the loop copy from if-conversion adjust edge probabilities
22900         and scale the vectorized loop body profile, queue the scalar
22901         profile for updating after peeling.
22903 2019-07-04  Jan Hubicka  <jh@suse.cz>
22905         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22906         parameters; return early for must-alias.
22907         (indirect_ref_may_alias_decl_p): Likewise; when establishing
22908         outer types match, try nonoverlapping_component_refs
22909         if must-alias is not obvious.
22910         (indirect_refs_may_alias_p): Likewise.
22911         (refs_may_alias_p_2): Likewise.
22913 2019-07-04  Richard Biener  <rguenther@suse.de>
22915         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22916         argument.
22917         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22918         globals into...
22919         (struct vn_walk_cb_data): New callback data struct.
22920         (vn_reference_lookup_2): Adjust.
22921         (vn_reference_lookup_3): Likewise.
22922         (vn_reference_lookup_pieces): Likewise.
22923         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22924         (visit_reference_op_load): Adjust.
22926 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22928         PR tree-optimization/91063
22929         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22930         stmt from stmts sequence before calling vect_init_vector_1.
22931         Formatting fix.
22933 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22935         PR target/88833
22936         * fwprop.c (reg_single_def_p): New function.
22937         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22938         (forward_propagate_into): New parameter reg_prop_only
22939         with default value false.
22940         Propagate def's src into loop only if SET_SRC and SET_DEST
22941         of def_set have single definitions.
22942         Likewise if reg_prop_only is set to true.
22943         (fwprop): New param fwprop_addr_p.
22944         Integrate fwprop_addr into fwprop.
22945         (fwprop_addr): Remove.
22946         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22947         to true.
22948         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22949         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22950         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22952 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22954         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22955         in worksharing loop scans.
22957         PR tree-optimization/91074
22958         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22959         temporary.
22961         PR rtl-optimization/90756
22962         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22963         for VECTOR_TYPE_P.
22965 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
22967         * config/aarch64/aarch64.md: Remove redundant constraints from
22968         define_expand but keep some patterns untouched if they are
22969         specially selected by TARGET_SECONDARY_RELOAD hook.
22970         * config/aarch64/aarch64-sve.md: Likewise.
22971         * config/aarch64/atomics.md: Remove redundant constraints from
22972         define_expand.
22973         * config/aarch64/aarch64-simd.md: Likewise.
22975 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22977         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22978         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22979         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22980         clauses.
22981         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22982         DARWIN_NOPIE_SPEC.
22984 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22986         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22987         (STARTFILE_SPEC): Split crt3 into a separate spec.
22988         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22989         (DARWIN_CRT2_SPEC): New.
22990         (DARWIN_CRT3_SPEC): New.
22991         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22992         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22993         (DARWIN_CRT3_SPEC): New.
22995 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
22997         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22998         Change the RTL attribute "length" from "4" to "*" to allow the
22999         length attribute to be adjusted automatically for prefixed load,
23000         store, and add immediate instructions.
23001         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
23002         Likewise.
23003         (extendsi<mode>2, EXTSI iterator): Likewise.
23004         (movsi_internal1): Likewise.
23005         (movsi_from_sf): Likewise.
23006         (movdi_from_sf_zero_ext): Likewise.
23007         (mov<mode>_internal): Likewise.
23008         (movcc_internal1, QHI iterator): Likewise.
23009         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
23010         (movsf_from_si): Likewise.
23011         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
23012         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
23013         (mov<mode>, FMOVE128 iterator): Likewise.
23014         (movdi_internal64): Likewise.
23015         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
23016         Likewise.
23017         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
23018         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
23019         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
23020         (vsx_splat_v4sf): Likewise.
23022 2019-07-03  Mark Wielaard  <mark@klomp.org>
23024         PR debug/90981
23025         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
23026         DW_AT_addr_base if there is actually a .debug_addr section with
23027         addresses.
23028         (output_addr_table): Add DWARF5 table header generation here after
23029         checking there are actually any addresses from...
23030         (dwarf2out_finish): ...here.
23032 2019-07-03  Richard Biener  <rguenther@suse.de>
23034         PR middle-end/91069
23035         * match.pd (vec_perm -> bit_insert): Fix element read from
23036         first vector.
23038 2019-07-03  Martin Liska  <mliska@suse.cz>
23040         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
23041         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
23042         condition.
23043         * generic-match-head.c: Include dbgcnt.h.
23044         * gimple-match-head.c: Likewise.
23046 2019-07-03  Martin Liska  <mliska@suse.cz>
23048         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
23049         (GCOV_COUNTER_V_TOPN): New.
23050         (GCOV_COUNTER_V_INDIR): Use _topn.
23051         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
23052         (GCOV_TOPN_VALUES): New.
23053         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
23054         (GCOV_TOPN_VALUES_COUNTERS): New.
23055         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
23056         * tree-profile.c:
23057         (gimple_init_gcov_profiler): Rename variables from one_value
23058         to topn_values.
23059         (gimple_gen_one_value_profiler): Remove.
23060         (gimple_gen_topn_values_profiler): New function.
23061         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
23062         names instead of SINGLE_VALUE.
23063         (stream_out_histogram_value): Likewise.
23064         (stream_in_histogram_value): Likewise.
23065         (get_most_common_single_value): Likewise.
23066         (gimple_divmod_fixed_value_transform): Likewise.
23067         (gimple_stringops_transform): Likewise.
23068         (gimple_divmod_values_to_profile): Likewise.
23069         (gimple_stringops_values_to_profile): Likewise.
23070         (gimple_find_values_to_profile): Likewise.
23071         * value-prof.h (enum hist_type): Rename to TOPN.
23072         (gimple_gen_one_value_profiler): Remove.
23073         (gimple_gen_topn_values_profiler): New.
23075 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
23077         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
23078         if it has the DW_AT_data_member_location attribute.
23080 2019-07-03  Richard Biener  <rguenther@suse.de>
23082         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
23083         dumping.
23085 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
23087         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
23088         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
23089         (tlsdesc_small_sve_<mode>): Likewise.
23091 2019-07-03  Martin Liska  <mliska@suse.cz>
23093         * Makefile.in: Define ZSTD_LIB.
23094         * common.opt: Adjust compression level
23095         to support also zstd levels.
23096         * config.in: Regenerate.
23097         * configure: Likewise.
23098         * configure.ac: Add --with-zstd and --with-zstd-include options
23099         and detect ZSTD.
23100         * doc/install.texi: Mention zstd dependency.
23101         * gcc.c: Print supported LTO compression algorithms.
23102         * lto-compress.c (lto_normalized_zstd_level): Likewise.
23103         (lto_compression_zstd): Likewise.
23104         (lto_uncompression_zstd): Likewise.
23105         (lto_end_compression): Dispatch in between zlib and zstd.
23106         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
23107         (lto_uncompression_zlib): Make it static.
23108         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
23109         * lto-section-in.c (lto_get_section_data): Pass info
23110         about used compression.
23111         * lto-streamer-out.c: By default use zstd when possible.
23112         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
23113         (TV_IPA_LTO_COMPRESS): Likewise for compression.
23115 2019-07-03  Martin Liska  <mliska@suse.cz>
23117         * lto-section-in.c (lto_get_section_data): Add "lto" section.
23118         * lto-section-out.c (lto_destroy_simple_output_block): Never
23119         compress LTO_section_lto section.
23120         * lto-streamer-out.c (produce_asm): Do not set major_version
23121         and minor_version.
23122         (lto_output_toplevel_asms): Likewise.
23123         (produce_lto_section): New function.
23124         (lto_output): Call produce_lto_section.
23125         (lto_write_mode_table): Do not set major_version and
23126         minor_version.
23127         (produce_asm_for_decls): Likewise.
23128         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
23129         type.
23130         (struct lto_header): Remove.
23131         (struct lto_section): New struct.
23132         (struct lto_simple_header): Do not inherit from lto_header.
23133         (struct lto_file_decl_data): Add lto_section_header field.
23135 2019-07-03  Martin Liska  <mliska@suse.cz>
23137         * lra-eliminations.c (eliminate_regs_in_insn): Remove
23138         dead assignemts.
23139         * reg-stack.c (check_asm_stack_operands): Likewise.
23140         * tree-ssa-structalias.c (create_function_info_for): Likewise.
23141         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
23142         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
23143         force_expand_binop.
23145 2019-07-03  Martin Liska  <mliska@suse.cz>
23147         PR tree-optimization/90892
23148         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
23149         in string constants.
23151 2019-07-03  Martin Liska  <mliska@suse.cz>
23153         PR middle-end/90899
23154         * multiple_target.c (create_dispatcher_calls): Add to comdat
23155         group only if set for ifunc.
23157 2019-07-03  Martin Liska  <mliska@suse.cz>
23159         PR target/88056
23160         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23161         Define local_object_name in outer scope in order to handle
23162         use-after-scope issue.
23164 2019-07-03  Martin Liska  <mliska@suse.cz>
23166         * common.opt: Add fprofile-note.
23167         * coverage.c (coverage_init): Append the option
23168         to bbg_file_name.
23169         * doc/invoke.texi: Document -fprofile-note.
23171 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
23173         PR tree-optimization/91033
23174         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
23175         vect_analyze_data_refs): Add bool * arguments.
23176         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
23177         if failure is due to scatter/gather, set *fatal to false if non-NULL.
23178         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23179         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
23180         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
23181         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
23182         vect_analyze_data_refs caller.
23184         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
23185         clause.
23186         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
23187         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
23188         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
23189         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23190         OMP_CLAUSE__SCANTEMP_ entry.
23191         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
23192         * tree-pretty-print.c (dump_omp_clause): Likewise.
23193         * tree-nested.c (convert_nonlocal_omp_clauses,
23194         convert_local_omp_clauses): Likewise.
23195         * omp-general.h (struct omp_for_data): Add have_scantemp and
23196         have_nonctrl_scantemp members.
23197         * omp-general.c (omp_extract_for_data): Initialize them.
23198         * omp-low.c (struct omp_context): Add scan_exclusive member.
23199         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
23200         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
23201         ctx->scan_exclusive.
23202         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
23203         of !ctx->scan_inclusive.
23204         (lower_rec_input_clauses): Simplify gimplification of dtors using
23205         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
23206         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
23207         loops.  Don't add barrier for reduction_omp_orig_ref if
23208         ctx->scan_??xclusive.
23209         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
23210         (lower_omp_scan): Use ctx->scan_exclusive instead
23211         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
23212         reductions.  Use new_vard != new_var instead of repeated
23213         omp_is_reference calls.
23214         (omp_find_scan, lower_omp_for_scan): New functions.
23215         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
23216         inscan reductions.
23217         * omp-expand.c (expand_omp_scantemp_alloc): New function.
23218         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
23219         and fd->have_scantemp.
23221         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
23222         on worksharing loop propagate it as shared clause to containing
23223         combined parallel.
23225         * omp-expand.c (expand_omp_for_static_nochunk,
23226         expand_omp_for_static_chunk): For nowait worksharing loop with
23227         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
23228         at the end.
23230 2019-07-02  qing zhao  <qing.zhao@oracle.com>
23232         PR preprocessor/90581
23233         * doc/cppopts.texi: Add document for -fmax-include-depth.
23234         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
23236 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
23238         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
23239         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
23240         (mmx_packssdw): Ditto.
23241         (mmx_punpckhbw): Ditto.
23242         (mmx_punpcklbw): Ditto.
23243         (mmx_punpckhwd): Ditto.
23244         (mmx_punpcklwd): Ditto.
23245         (mmx_punpckhdq): Ditto.
23246         (mmx_punpckldq): Ditto.
23247         (*vec_dupv4hi): Ditto.
23248         (*vec_dupv2si): Ditto.
23249         (mmx_pmovmskb): Ditto.
23250         * config/i386/sse.md (sse_cvtpi2ps): Use
23251         TARGET_SSE2 && SSE_REG_P in split condition.
23252         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
23253         TARGET_SSSE3 && SSE_REGNO_P in split condition.
23254         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
23255         (ssse3_pshufbv8qi3): Ditto.
23256         (ssse3_palignrdi): Ditto.
23258 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
23260         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
23261         with inlined save and restore.
23263 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
23265         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
23266         to be inserted on single successor edge of the entry block.  Then call
23267         commit_edge_insertions instead of inserting the instructions manually.
23268         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
23269         RTL expansion and rebuild jump labels chain.
23271 2019-07-02  Richard Biener  <rguenther@suse.de>
23273         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
23274         TI_CHREC_KNOWN.
23275         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23276         Define here.
23277         * tree.c (build_common_tree_nodes): Initialize them.
23278         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23279         Make declarations comments.
23280         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
23281         chrec_known): Remove definitions.
23282         (initialize_scalar_evolutions_analyzer): Remove.
23283         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
23284         * tree-streamer.c (preload_common_nodes): Do not preload
23285         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23287 2019-07-02  Jan Hubicka  <jh@suse.cz>
23289         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23290         sanity check.
23292 2019-07-02  Jan Hubicka  <jh@suse.cz>
23294         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23295         to ..
23296         (nonoverlapping_component_refs_since_match_p): ... this one;
23297         handle also non-decl bases; return -1 if search gave up.
23298         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23299         nonoverlapping_component_refs_of_decl_p_no_alias to
23300         nonoverlapping_component_refs_since_match_p_may_alias,
23301         nonoverlapping_component_refs_since_match_p_no_alias.
23302         (dump_alias_stats): Update dumping.
23303         (aliasing_matching_component_refs_p): Break out from ...;
23304         dispatch to nonoverlapping_component_refs_for_decl_p
23305         and nonoverlapping_component_refs_since_match_p.
23306         (aliasing_component_refs_p): ... here; call
23307         nonoverlapping_component_refs_p in scenarios where we can not
23308         precisely determine base match.
23309         (decl_refs_may_alias_p): Use
23310         nonoverlapping_component_refs_since_match_p.
23311         (indirect_ref_may_alias_decl_p): Do not call
23312         nonoverlapping_component_refs_p.
23313         (indirect_refs_may_alias_p): Likewise.
23315 2019-07-02  Jan Hubicka  <jh@suse.cz>
23317         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23318         to clobber of return value.
23320 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23322         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23323         for is_neon_type instructions that have not already been categorized.
23325 2019-07-02  Richard Biener  <rguenther@suse.de>
23327         PR tree-optimization/58483
23328         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23329         for MEM_REF base hashing.
23330         (equal_mem_array_ref_p): Likewise for base comparison.
23332 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23334         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23335         parameterized name.
23336         (signbit<mode>2): Use that name.  Simplify.
23338 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
23340         PR middle-end/66726
23341         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23342         Tune heuristic from PR71016 to allow MIN / MAX.
23344 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23346         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23347         parameterized name.
23348         (abs<mode>2): Use that name.  Simplify.
23350 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23352         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23353         parameterized name.
23354         (neg<mode>2): Use that name.  Simplify.
23356 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23358         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23359         name.
23360         (abs<mode>2): Use that name.  Simplify.
23362 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23364         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23365         name.
23366         (neg<mode>2): Use that name.  Simplify.
23368 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
23370         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23371         ("enabled" attribute): Handle sse_noavx isa attribute.
23372         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23373         Use TARGET_SSE && SSE_REGNO_P in split condition.
23374         (*vec_dupv2sf): Ditto.
23376 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23378         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23379         name.
23380         (floatsi<mode>2): Use that name.  Simplify.
23382 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23384         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23385         parameterized name.
23386         (extenddf<mode>2_vsx): Make this a parameterized name.
23387         (extenddf<mode>2): Use those names.  Simplify.
23389 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23391         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23392         name.
23393         (eh_return): Use that name.  Simplify.
23395 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23397         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23398         (doloop_end): Use that name.  Simplify.
23400 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23402         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23403         parameterized name.
23404         (indirect_jump): Use that name.  Simplify.
23406 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23408         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23409         parameterized name.
23410         (abs<mode>2): Use that name.  Simplify.
23412 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23414         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23415         parameterized name.
23416         (fix_trunc<mode>si2): Use that name.  Simplify.
23418 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23420         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23421         (allocate_stack): Use that name.  Simplify.
23423 2019-07-01  Martin Sebor  <msebor@redhat.com>
23425         PR middle-end/90923
23426         * hash-map.h (hash_map::put): On insertion invoke element ctor.
23427         (hash_map::get_or_insert): Same.  Reformat comment.
23428         * hash-set.h (hash_set::add): On insertion invoke element ctor.
23429         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23430         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23431         * hash-table.h (hash_table::operator=): Prevent copy assignment.
23432          (hash_table::hash_table (const hash_table&)): Use copy ctor
23433          instead of assignment to copy elements.
23435 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
23436             John David Anglin  <danglin@gcc.gnu.org>
23438         PR target/90963
23439         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23440         using saved frame pointer.
23442 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23444         PR middle-end/64242
23445         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23446         Add frame clobber and schedule blockage.
23448 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
23450         * doc/invoke.texi (Link Options): Further editorial changes to
23451         -flinker-output docs.
23453 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23455         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23456         Load both operands of a PLUS into registers separately.
23458 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
23460         * config/s390/vector.md: Fix shift count operand printing.
23462 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23464         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23466 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23468         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23469         Use recog_data to test for an output operand.
23471 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23473         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23474         exclude any others that are disparaged or that are bound to need
23475         a reload or spill.
23476         (ira_get_dup_out_num): Expand comment.
23478 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23480         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23481         constraint string for each operand/alternative combo.  Only handle
23482         '%' at the start of constraint strings, and look for it outside
23483         the main loop.
23485 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23487         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23488         alternative_mask instead of HARD_REG_SET to represent a
23489         bitmask of alternatives.
23490         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23491         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23493 2019-07-01  Martin Liska  <mliska@suse.cz>
23495         * edit-context.c (test_applying_fixits_unreadable_file): Do not
23496         use () for a constructor call.
23497         (test_applying_fixits_line_out_of_range): Likewise.
23498         * ggc-page.c (alloc_page): Use (void *) for %p printf format
23499         argument.
23500         (free_page): Likewise.
23502 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
23504         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23505         parameter names to match usage (no functional change).
23506         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23508 2019-07-01  Richard Biener  <rguenther@suse.de>
23510         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23511         pass parameter.
23512         (pass_fre::execute): Honor it.
23513         * passes.def: Adjust pass_fre invocations to allow iterating,
23514         add non-iterating pass_fre before late threading/dom.
23516 2019-07-01  Richard Biener  <rguenther@suse.de>
23518         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23519         TARGET_MEM_REF handling to also handle address-taken ones.
23521 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
23523         * doc/sourcebuild.texi (Effective-Target Keywords, Other
23524         hardware attributes): Document avx512vp2intersect.
23526 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23528         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23529         (abs<mode>2): New expander.
23530         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23531         Use CODE_FOR_ssse3_absv8qi2.
23532         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23533         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23535 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23537         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23538         to sse, sse_noavx and avx.  Update all uses.
23540 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23542         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23543         (*mmx_<plusminus_insn><mode>3): Ditto.
23544         (*mmx_mulv4hi3"): Ditto.
23545         (*mmx_smulv4hi3_highpart): Ditto.
23546         (*mmx_umulv4hi3_highpart): Ditto.
23547         (*mmx_pmaddwd): Ditto.
23548         (*sse2_umulv1siv1di3): Ditto.
23549         (*mmx_<code>v4hi3): Ditto.
23550         (*mmx_<code>v8qi3): Ditto.
23551         (mmx_ashr<mode>3): Ditto.
23552         ("mmx_<shift_insn><mode>3): Ditto.
23553         (*mmx_eq<mode>3): Ditto.
23554         (mmx_gt<mode>3): Ditto.
23555         (mmx_andnot<mode>3): Ditto.
23556         (*mmx_<code><mode>3): Ditto.
23557         (*mmx_pinsrw): Ditto.
23558         (*mmx_pextrw): Ditto.
23559         (mmx_pshufw_1): Ditto.
23560         (*mmx_uavgv8qi3): Ditto.
23561         (*mmx_uavgv4hi3): Ditto.
23562         ("mmx_psadbw): Ditto.
23563         * config/i386/sse.md (sse_cvtps2pi): Ditto.
23564         (sse_cvttps2pi): Ditto.
23565         (ssse3_pmaddubsw): Ditto.
23566         (*ssse3_pmulhrswv4hi3): Ditto.
23567         (ssse3_psign<mode>3): Ditto.
23569 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
23571         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23572         adjustment for bit-fields to all aggregate types.
23574 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
23576         * config/rs6000/predicates.md (pcrel_address): Use
23577         SYMBOL_REF_LOCAL_P to determine if a label is local.
23578         (pcrel_external_address): New predicate.
23579         (non_prefixed_mem_operand): Delete, predicate not used.
23580         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23581         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23582         addressing.
23583         (SYMBOL_REF_PCREL_P): Likewise.
23585         PR target/91009
23586         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23587         alternative.
23588         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23589         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23590         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23592 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
23594         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23595         override on extra_headers.
23597 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
23599         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23600         * config/darwin-driver.c (darwin_default_min_version): Remove newline
23601         from warning.
23602         (darwin_driver_init): Likewise.
23604 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23606         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23607         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23608         Eliminate redundant alternative.
23610 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23612         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23613         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23614         Use vector_operand.
23616 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
23618         * config/arc/arc.c (arc_rtx_costs): All short instructions are
23619         having a lower cost regardless of the speed option.
23621 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23623         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23624         vector_operand plus, on both alternatives, "Bm" constraint.
23626 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
23628         * config/arm/arm.md: Remove redundant constraints from
23629         define_expand but leave reload_inm and reload_outm patterns
23630         untouched since they need special constraints to work.
23631         * config/arm/arm-fixed.md: Remove redundant constraints from
23632         define_expand.
23633         * config/arm/iwmmxt.md: Likewise.
23634         * config/arm/neon.md: Likewise.
23635         * config/arm/sync.md: Likewise.
23636         * config/arm/thumb1.md: Likewise.
23637         * config/arm/vec-common.md: Likewise.
23639 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
23641         * doc/install.texi: Document --disable-tm-clone-registry.
23643 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
23645         PR c++/91024
23646         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23647         statements.
23649         PR tree-optimization/91010
23650         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23651         return true.  Otherwise, don't call operand_equal_p if offset1 or
23652         offset2 is NULL and just return false.
23654 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23656         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23657         user-specified float mode choice for kernel mode code.
23659 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23661         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23662         spec.
23664 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23666         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23667         use longcall for 64b code.
23669 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
23671         * builtins.c (get_memory_rtx): Fix comment.
23672         * optabs.def (movmem_optab): Change to cpymem_optab.
23673         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23674         (emit_block_move_hints): Change movmem to cpymem.
23675         * defaults.h: Change movmem to cpymem.
23676         * targhooks.c (get_move_ratio): Change movmem to cpymem.
23677         (default_use_by_pieces_infrastructure_p): Ditto.
23678         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23679         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23680         to cpymem.
23681         * config/aarch64/aarch64.h: Change movmem to cpymem.
23682         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23683         * config/alpha/alpha.h: Change movmem to cpymem in comment.
23684         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23685         movmem to cpymem.
23686         * config/arc/arc-protos.h: Change movmem to cpymem.
23687         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23688         * config/arc/arc.h: Change movmem to cpymem in comment.
23689         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23690         * config/arm/arm-protos.h: Change movmem to cpymem in names.
23691         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23692         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23693         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23694         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23695         * config/avr/avr-protos.h: Change movmem to cpymem.
23696         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23697         avr_out_movmem): Change movmem to cpymem.
23698         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23699         Change movmem to cpymem.
23700         * config/bfin/bfin-protos.h: Change movmem to cpymem.
23701         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23702         Change movmem to cpymem.
23703         * config/bfin/bfin.h: Change movmem to cpymem in comment.
23704         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23705         * config/c6x/c6x-protos.h: Change movmem to cpymem.
23706         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23707         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23708         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23709         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23710         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23711         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23712         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23713         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23714         expand_small_cpymem_or_setmem,
23715         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23716         expand_set_or_cpymem_constant_prologue,
23717         ix86_expand_set_or_cpymem): Change movmem to cpymem.
23718         * config/i386/i386-protos.h: Change movmem to cpymem.
23719         * config/i386/i386.h: Change movmem to cpymem in comment.
23720         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23721         (setmem<mode>): Change expansion function name.
23722         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23723         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23724         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23725         * config/m32c/m32c-protos.h: Change movmem to cpymem.
23726         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23727         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23728         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23729         to cpymem.
23730         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23731         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23732         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23733         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23734         Change movmem to cpymem.
23735         * config/mips/mips.h: Change movmem to cpymem.
23736         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23737         * config/nds32/nds32-memory-manipulation.c
23738         (nds32_expand_movmemsi_loop_unknown_size,
23739         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23740         nds32_expand_movmemsi_unroll,
23741         nds32_expand_movmemsi): Change movmem to cpymem.
23742         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23743         * config/nds32/nds32-protos.h: Change movmem to cpymem.
23744         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23745         (pa_adjust_insn_length): Change call to compute_movmem_length.
23746         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23747         movmemdi, movmemdi_prereload,
23748         movmemdi_postreload): Change movmem to cpymem.
23749         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23750         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23751         * config/riscv/riscv.c: Change movmem to cpymem in comment.
23752         * config/riscv/riscv.h: Change movmem to cpymem.
23753         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23754         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23755         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23756         movmem to cpymem.
23757         * config/s390/s390-protos.h: Change movmem to cpymem.
23758         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23759         s390_expand_insv): Change movmem to cpymem.
23760         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23761         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23762         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23763         * config/sparc/sparc.h: Change movmem to cpymem in comment.
23764         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23765         for nonexistent function.
23766         * config/vax/vax.h: Change movmem to cpymem in comment.
23767         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23768         * config/visium/visium.h: Change movmem to cpymem in comment.
23769         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23770         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23771         * doc/md.texi: Change movmem to cpymem and update description to match.
23772         * doc/rtl.texi: Change movmem to cpymem.
23773         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23774         * doc/tm.texi: Regenerate.
23776 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
23778         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23779         -fvariable-expansion-in-unroller by default.
23780         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23781         default for Power.
23783 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
23785         Revert
23786         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23787         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23789         * config.gcc(rs6000-*-*): Define target_gtfiles.
23791 2019-06-27  Jan Hubicka  <jh@suse.cz>
23793         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23794         (add_type_duplicate): When odr hash is not allocated, to nothing.
23795         (odr_based_tbaa_p): New function.
23796         (set_type_canonical_for_odr_type): New function.
23797         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23798         set_type_canonical_for_odr_type): New.
23799         * tree.c (gimple_canonical_types_compatible_p): ODR types with
23800         ODR based TBAA are not equivalent to non-ODR types.
23802 2019-06-27  Martin Liska  <mliska@suse.cz>
23804         PR tree-optimization/90974
23805         PR rtl-optimization/90975
23806         PR rtl-optimization/90976
23807         PR target/91016
23808         PR tree-optimization/91017
23809         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23810         unused tmp.
23811         * lra.c (lra_set_insn_recog_data): Remove a leftover from
23812         initial commit of IRA.
23813         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23814         of op0 and op1.
23815         * tree-vect-loop.c (vect_create_epilog_for_reduction):
23816         Remove unused mode1.
23817         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23818         to new_stmt_info.
23820 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
23822         PR target/90991
23823         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23824         instead of register_operand for operands[1], add m to its constraints
23825         if operands[2] uses "C" constraint.  Ensure in condition that if
23826         operands[2] is not 0, then operands[1] is not a MEM.  For last two
23827         alternatives, use unaligned loads instead of aligned if operands[1] is
23828         misaligned_operand.
23830 2019-06-27  Martin Liska  <mliska@suse.cz>
23832         * asan.c (asan_emit_allocas_unpoison): Remove obviously
23833         dead assignments.
23834         * bt-load.c (move_btr_def): Likewise.
23835         * builtins.c (expand_builtin_apply_args_1): Likewise.
23836         (expand_builtin_apply): Likewise.
23837         * cfgexpand.c (expand_asm_stmt): Likewise.
23838         (construct_init_block): Likewise.
23839         * cfghooks.c (verify_flow_info): Likewise.
23840         * cfgloopmanip.c (remove_path): Likewise.
23841         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23842         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23843         * combine.c (simplify_if_then_else): Likewise.
23844         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23845         (choose_basereg): Likewise.
23846         (ix86_expand_prologue): Likewise.
23847         (ix86_preferred_output_reload_class): Likewise.
23848         * cselib.c (cselib_record_sets): Likewise.
23849         * df-scan.c (df_scan_alloc): Likewise.
23850         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23851         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23852         * emit-rtl.c (try_split): Likewise.
23853         * graphite-scop-detection.c (assign_parameter_index_in_region):
23854         Likewise.
23855         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23856         * ira-color.c (setup_profitable_hard_regs): Likewise.
23857         * ira.c (rtx_moveable_p): Likewise.
23858         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23859         * read-rtl.c (read_subst_mapping): Likewise.
23860         * regrename.c (scan_rtx): Likewise.
23861         * reorg.c (fill_slots_from_thread): Likewise.
23862         * tree-inline.c (tree_function_versioning): Likewise.
23863         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23864         * tree-ssa-sink.c (statement_sink_location): Likewise.
23865         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23866         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23867         (vect_create_epilog_for_reduction): Likewise.
23868         * tree.c (build_nonstandard_integer_type): Likewise.
23870 2019-06-27  Richard Biener  <rguenther@suse.de>
23872         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23874 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
23876         PR tree-optimization/89772
23877         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23878         out-of-bound accesses checking.
23880 2019-06-27  Martin Liska  <mliska@suse.cz>
23882         PR tree-optimization/91014
23883         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23884         when LHS is NULL_TREE.
23886 2019-06-27  Martin Liska  <mliska@suse.cz>
23888         * symbol-summary.h (traverse): Pass
23889         argument a to the call of callback.
23890         (gt_ggc_mx): Mark arguments as unused.
23891         (gt_pch_nx): Likewise.
23893 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
23895         PR target/62147
23896         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23897         finiteness.
23899 2019-06-26  Jeff Law  <law@redhat.com>
23901         PR tree-optimization/90883
23902         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23903         (delete_dead_or_redundant_assignment): Likewise.
23905         PR tree-optimization/90883
23906         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23907         * tree-ssa-dse.c: Update various comments to distinguish between
23908         dead and redundant stores.
23909         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23910         (dse_optimize_redundant_stores): New function.
23911         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23912         Distinguish between dead and redundant calls in dump output.  All
23913         callers updated.
23914         (delete_dead_or_redundant_assignment): Similarly for assignments.
23915         (dse_optimize_stmt): Handle _CHK variants.  For statements which
23916         store 0 into multiple memory locations, try to prove a subsequent
23917         store is redundant.
23919 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
23921         PR target/89021
23922         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23923         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23925 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23927         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23928         (branch_islands): New extern.
23929         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23930         * config/rs6000/rs6000.c: .. here.
23932 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23934         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23935         (powerpc*-*-*) ... to here.
23937 2019-06-26  Jeff Law  <law@redhat.com>
23939         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23940         memcpy, memmove and memset builtins.
23941         (maybe_trim_memstar_call): Likewise.
23943 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23945         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23947 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23949         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23951 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23953         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23954         declaration.
23955         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23956         "static".
23957         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23958         declaration.
23960 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23962         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23964 2019-06-26  Richard Biener  <rguenther@suse.de>
23966         PR ipa/90982
23967         * tree-inline.c (remap_ssa_name): Copy SSA range info.
23969 2019-06-26  Richard Biener  <rguenther@suse.de>
23971         * lto-streamer.h (lto_bitmap_alloc): Remove.
23972         (lto_bitmap_free): Likewise.
23973         * lto-streamer.c (lto_bitmap_alloc): Remove.
23974         (lto_bitmap_free): Likewise.
23975         (lto_obstack): Likewise.
23976         (lto_obstack_initialized): Likewise.
23977         * lto-streamer-out.c (lto_output): Use own obstack for local
23978         bitmap, free it consistently.
23980 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
23982         PR target/90991
23983         * config/i386/sse.md
23984         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23985         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23986         insns if operands[2] is misaligned_operand.
23988 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
23990         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23991         TARGET_POWERPC64.
23992         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23993         to GPR.
23995 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23997         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23999 2019-06-26  Martin Liska  <mliska@suse.cz>
24001         PR tree-optimization/90973
24002         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
24003         epilogue_cost_vec instead of prologue_cost_vec for
24004         a epilogue cost.
24006 2019-06-26  Martin Liska  <mliska@suse.cz>
24008         * bb-reorder.c (connect_better_edge_p): Add missing else
24009         statement in the middle of if-else statements.
24011 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
24012             H.J. Lu  <hongjiu.lu@intel.com>
24013             Olga Makhotina  <olga.makhotina@intel.com>
24015         * common/config/i386/i386-common.c
24016         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
24017         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
24018         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
24019         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
24020         (ix86_handle_option): Handle -mavx512vp2intersect.
24021         * config/i386/avx512vp2intersectintrin.h: New.
24022         * config/i386/avx512vp2intersectvlintrin.h: New.
24023         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
24024         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24025         AVX512VP2INTERSECT.
24026         * config/i386/i386-builtin-types.def: Add new types.
24027         * config/i386/i386-builtin.def: Add new builtins.
24028         * config/i386/i386-builtins.c: (enum processor_features): Add
24029         F_AVX512VP2INTERSECT.
24030         (static const _isa_names_table isa_names_table): Ditto.
24031         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24032         __AVX512VP2INTERSECT__.
24033         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
24034         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
24035         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
24036         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
24037         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
24038         * config/i386/i386-options.c (ix86_target_string): Add
24039         -mavx512vp2intersect.
24040         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
24041         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
24042         P2HImode and P2QImode.
24043         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
24044         number for P2QImode and P2HImode.
24045         (ix86_regmode_natural_size): New function.
24046         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
24047         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
24048         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
24049         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
24050         * config/i386/i386.opt: Add -mavx512vp2intersect.
24051         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
24052         avx512vp2intersectvlintrin.h.
24053         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
24054         (define_mode_iterator VI48_AVX512VP2VL): New.
24055         (avx512vp2intersect_2intersect<mode>,
24056         avx512vp2intersect_2intersectv16si): New define_insn patterns.
24057         * config.gcc: Add avx512vp2intersectvlintrin.h and
24058         avx512vp2intersectintrin.h to extra_headers.
24059         * doc/invoke.texi: Document -mavx512vp2intersect.
24061 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
24063         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
24065 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
24067         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
24068         savres_routine_syms, savres_routine_name, morestack_ref,
24069         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24070         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24071         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24072         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24073         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24074         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24075         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24076         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24077         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24078         get_stack_clash_protection_probe_interval,
24079         get_stack_clash_protection_guard_size,
24080         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24081         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24082         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24083         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24084         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24085         gen_frame_mem_offset, rs6000_savres_routine_name,
24086         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24087         ptr_regno_for_savres, rs6000_emit_savres_rtx,
24088         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24089         rs6000_global_entry_point_prologue_needed_p,
24090         rs6000_get_separate_components, rs6000_components_for_bb,
24091         rs6000_disqualify_components, rs6000_emit_prologue_components,
24092         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24093         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24094         rs6000_output_savres_externs, rs6000_output_function_prologue,
24095         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24096         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24097         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24098         rs6000_output_function_epilogue, gen_add3_const,
24099         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24100         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24101         to rs6000-logue.c.
24102         (machine_function): Moved to rs6000.h.
24103         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
24104         rs6000-internal.h.
24105         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
24106         savres_routine_syms, savres_routine_name, morestack_ref,
24107         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24108         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24109         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24110         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24111         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24112         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24113         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24114         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24115         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24116         get_stack_clash_protection_probe_interval,
24117         get_stack_clash_protection_guard_size,
24118         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24119         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24120         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24121         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24122         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24123         gen_frame_mem_offset, rs6000_savres_routine_name,
24124         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24125         ptr_regno_for_savres, rs6000_emit_savres_rtx,
24126         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24127         rs6000_global_entry_point_prologue_needed_p,
24128         rs6000_get_separate_components, rs6000_components_for_bb,
24129         rs6000_disqualify_components, rs6000_emit_prologue_components,
24130         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24131         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24132         rs6000_output_savres_externs, rs6000_output_function_prologue,
24133         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24134         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24135         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24136         rs6000_output_function_epilogue, gen_add3_const,
24137         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24138         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24139         to here from rs6000.c.
24140         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
24141         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
24142         quad_address_offset_p) Moved to here from rs6000.c.
24143         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
24144         * config/config.gcc: Add new source file rs6000-logue.c to garbage
24145         collector.
24147 2019-06-25  Martin Liska  <mliska@suse.cz>
24149         * hash-table.c (hashtab_chk_error): Move here from ...
24150         * hash-table.h (hashtab_chk_error): ... here.
24152 2019-06-25  Martin Liska  <mliska@suse.cz>
24154         PR tree-optimization/90978
24155         * df-scan.c (df_update_entry_block_defs): Remove dead else
24156         branch.
24157         (df_update_exit_block_uses): Likewise.
24159 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
24160             Andrew Stubbs  <ams@codesourcery.com>
24162         * config.gcc (thread_file): Set to gcn for AMD GCN.
24163         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
24164         (TARGET_EMUTLS_VAR_INIT): New hook.
24166 2019-06-25  Martin Jambor  <mjambor@suse.cz>
24168         PR ipa/90939
24169         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
24171 2019-06-25  Richard Biener  <rguenther@suse.de>
24173         PR tree-optimization/90930
24174         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
24175         into parallel form in the last pass instance.
24177 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
24179         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
24180         (arc_legitimize_pic_address): Simplify and cleanup the function.
24181         (SYMBOLIC_CONST): Remove.
24182         (prepare_pic_move): Likewise.
24183         (prepare_move_operands): Handle complex mov cases here.
24184         (arc_legitimize_address_0): Remove call to
24185         arc_legitimize_pic_address.
24186         (arc_legitimize_address): Remove call to
24187         arc_legitimize_tls_address.
24188         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
24189         (movhi_insn): Likewise.
24191 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24193         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
24194         PTRDIFF_TYPE.
24195         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
24196         format of "__intN" types for UINTMAX_TYPE.
24197         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
24198         format of "__intN" types for SIZETYPE.
24199         * tree.c (build_common_tree_nodes): Accept "__intN__"
24200         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
24201         * doc/invoke.texi: Document that __intN__ disables pedantic
24202         warnings.
24204 2019-06-25  Jan Hubicka  <jh@suse.cz>
24206         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
24207         base2_alias_set is non-zero before doing TBAA based disambiguation.
24209 2019-06-25  Martin Liska  <mliska@suse.cz>
24211         PR tree-optimization/90973
24212         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
24213         of prologue and epilogue.
24215 2019-06-24  Jan Hubicka  <jh@suse.cz>
24217         * ipa-utils.h (type_with_linkage_p): Verify that type is
24218         CXX_ODR_P.
24219         (odr_type_p): Remove extra return.
24220         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
24221         hash STRING_FLAG only for arrays and integers.
24222         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
24223         Update analogously.
24224         * tree-streamer-out.c (pack_ts_type_common_value_fields):
24225         Likewise.
24226         * print-tree.c (print_node): Print cxx-odr-p
24227         and string-flag.
24228         * tree.c (need_assembler_name_p): Also check that type
24229         is CXX_ODR_TYPE_P
24230         (verify_type_variant): Update verification of SRING_FLAG;
24231         also check CXX_ODR_P.
24232         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
24233         (TYPE_STRING_FLAG): Use it.
24234         (TYPE_CXX_ODR_P): New macro.
24235         * dwarf2out.c (gen_array_type_die): First check that type
24236         is an array and then test string flag.
24238 2019-06-24  Richard Biener  <rguenther@suse.de>
24240         PR tree-optimization/90972
24241         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
24242         in common code, dealing with STRING_CST properly.
24244 2019-06-24  Richard Biener  <rguenther@suse.de>
24246         PR tree-optimization/90930
24247         PR tree-optimization/90316
24248         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
24249         decrement of limit.
24251 2019-06-24  Martin Sebor  <msebor@redhat.com>
24253         * tree-pretty-print.h: Remove unnecessary punctuation characters
24254         from a diagnostic.
24255         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
24257 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
24259         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
24260         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
24261         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
24263 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24265         * config/rs6000/darwin.h: Handle GCC target pragma.
24267 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24269         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
24271 2019-06-22  Jeff Law  <law@redhat.com>
24273         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24275 2019-06-22  Jan Hubicka  <jh@suse.cz>
24277         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
24278         give up on bitfields; continue searching for different refs
24279         appearing later.
24281 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24283         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24284         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
24285         containing the offset as possible simd lane access.  Look through
24286         widening conversion.  Move the
24287         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24289 2019-06-21  Richard Biener  <rguenther@suse.de>
24291         PR tree-optimization/90930
24292         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24293         flag on new stmts to avoid re-processing them.
24295 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
24297         PR c++/90875 - added -Wswitch-outside-range option
24298         * doc/invoke.texi (Wswitch-outside-range): Document.
24300 2019-06-21  Jeff Law  <law@redhat.com>
24302         PR tree-optimization/90949
24303         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24304         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24306 2019-06-21  Richard Biener  <rguenther@suse.de>
24308         PR debug/90914
24309         * dwarf2out.c (prune_unused_types_walk): Always consider
24310         function-local extern declarations as used.
24312 2019-06-21  Richard Biener  <rguenther@suse.de>
24314         PR tree-optimization/90913
24315         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24316         the scalar variant of if-conversion versioning.
24318 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24320         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24321         create another "omp scan inscan exclusive" array if
24322         !ctx->scan_inclusive.
24323         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24324         (lower_omp_scan): Likewise.
24325         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24326         2-bit bitfield for simd_lane_access_p member.
24327         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24328         aux == (void *)-4 as simd lane access.
24329         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
24330         comment with permutations to show the canonical permutation order.
24331         (vectorizable_scan_store): Handle exclusive scan.
24332         (vectorizable_store): Call vectorizable_scan_store even for
24333         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24335         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24336         "omp simd array" arrays with one byte elements.
24338 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
24340         * config/alpha/alpha.md (@unaligned_store<mode>):
24341         Rename from unaligned_store<mode>.
24342         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24343         * config/alpha/sync.md (@load_locked_<mode>): Rename
24344         from load_locked_<mode>.
24345         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24346         (@atomic_compare_and_swap<mode>_1): Rename
24347         from atomic_compare_and_swap<mode>_1.
24348         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24349         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24350         Use gen_reload_in_aligned and gen_unaligned_store.
24351         (emit_load_locked): Remove.
24352         (emit_store_conditional): Ditto.
24353         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24354         (alpha_split_compare_and_swap): Ditto.
24355         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24356         (alpha_split_compare_and_swap_12): Use gen_load_locked
24357         and gen_store_conditional.
24358         (alpha_split_atomic_exchange): Ditto.
24359         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24360         (alpha_split_atomic_exchange_12): Use gen_load_locked
24361         and gen_store_conditional.
24363 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
24365         * config/aarch64/aarch64-errata.h: New file.
24366         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24367         (CA53_ERR_843419_SPEC): Delete.
24368         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24369         * config/aarch64/aarch64-linux.h: Likewise.
24370         * config/aarch64/aarch64-netbsd.h: Likewise.
24371         * config/aarch64/aarch64-freebsd.h: Likewise.
24373 2019-06-20  Marek Polacek  <polacek@redhat.com>
24375         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24377 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
24379         * config/rs6000/rs6000.md (isa attribute): Add support for
24380         for a future processor.
24382 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
24384         PR target/54855
24385         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24386         standard scalar operation pattern for V2DF.
24387         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24388         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24389         (*ieee_<ieee_maxmin><mode>3): Likewise.
24390         (vec_setv2df_0): Likewise.
24392 2019-06-20  Jan Hubicka  <jh@suse.cz>
24394         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24395         parameter; it has no use in gimple memory model.
24396         (indirect_ref_may_alias_decl_p): Update.
24398 2019-06-20  Martin Liska  <mliska@suse.cz>
24400         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24401         to 10.
24403 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
24405         * tree-vect-stmts.c (enum scan_store_kind): New type.
24406         (scan_store_can_perm_p): Change last argument from int * to
24407         vec<enum scan_store_kind> *, record precisely which permutations
24408         need whole vector left shift or that plus VEC_COND_EXPR.
24409         (vectorizable_scan_store): Adjust caller, use whole vector left shift
24410         and additional VEC_COND_EXPR only for those iterations that need it.
24412 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
24414         * config.gcc: Fix ARM --with-fpu checking and error message.
24416 2019-06-19  Marek Polacek  <polacek@redhat.com>
24418         PR c++/60364 - noreturn after first decl not diagnosed.
24419         * attribs.c (get_attribute_namespace): No longer static.
24420         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
24421         attributes.
24422         (attr_noreturn_exclusions): Make it extern.
24423         * attribs.h (get_attribute_namespace): Declare.
24424         * tree-inline.c (function_attribute_inlinable_p): Use
24425         get_attribute_name.
24427 2019-06-19  Martin Sebor  <msebor@redhat.com>
24429         PR tree-optimization/90626
24430         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24432         PR tree-optimization/90626
24433         * tree-ssa-strlen.c (strxcmp_unequal): New function.
24434         (handle_builtin_string_cmp): Call it.
24436 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24438         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24439         and DARWIN_NOPIE_SPEC.
24440         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24441         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24442         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24443         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24444         (DARWIN_EXPORT_DYNAMIC): Delete.
24445         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24446         and pie options processing to  darwin.h.
24447         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24449 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24451         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24452         in computing the number of options to be moved.
24454 2019-06-19  Maya Rashish  <coypu@sdf.org>
24456         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24457         (CLEAR_INSN_CACHE) Use it.
24459 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
24461         * config/i386/i386.md (cmpstrnsi): Remove dead code.
24463 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
24465         PR middle-end/84521
24466         * builtins.c (expand_builtin_setjmp_setup): Save
24467         hard_frame_pointer_rtx.
24468         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24469         restore fp.
24470         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24471         non-local goto.
24472         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24473         elimination code.
24474         (remove_reg_equal_offset_note): Remove unused function.
24475         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24476         code.
24477         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24478         (arc_builtin_setjmp_frame_value): Remove function.
24479         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24480         (avr_builtin_setjmp_frame_value): Remove function.
24481         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24482         (ix86_builtin_setjmp_frame_value): Remove function.
24483         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24484         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24485         (sparc_builtin_setjmp_frame_value): Remove function.
24486         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24487         (vax_builtin_setjmp_frame_value): Remove function.
24488         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24489         pointer if has_nonlocal_label.
24491 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
24493         * doc/md.texi: Document vec_shl_<mode> pattern.
24494         * optabs.def (vec_shl_optab): New optab.
24495         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24496         argument, if == vec_shl_optab, check for left whole vector shift
24497         pattern rather than right shift.
24498         (expand_vec_perm_const): Add vec_shl_optab support.
24499         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24500         in the comment.
24501         * tree-vect-generic.c (lower_vec_perm): Support permutations which
24502         can be handled by vec_shl_optab.
24503         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24504         (check_scan_store): Use it.
24505         (vectorizable_scan_store): If target can't do normal permutations,
24506         try to use whole vector left shifts and if needed a VEC_COND_EXPR
24507         after it.
24508         * config/i386/sse.md (vec_shl_<mode>): New expander.
24510         * omp-low.c (lower_rec_input_clauses): Handle references properly
24511         in inscan clauses.
24512         (lower_omp_scan): Likewise.
24514 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24516         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24517         mem_mode is BLKmode.
24519 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
24521         PR target/90922
24522         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24523         pointer adjustment for the case of no callee-saved registers and
24524         stack frame bigger than 128 bytes.
24526 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
24528         PR middle-end/90862
24529         * omp-low.c (check_omp_nesting_restrictions): Handle
24530         GF_OMP_TARGET_KIND_OACC_DECLARE.
24532 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
24534         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24535         (@add<mode>3_carry): Rename from add<mode>3_carry.
24536         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24537         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24538         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24539         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24540         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24541         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24542         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24543         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24544         (cmpstrnsi): Use gen_cmp_1.
24545         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24546         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24547         (@umonitor_<mode>): Rename from umonitor_<mode>.
24548         * config/i386/i386-expand.c (ix86_expand_copysign):
24549         Use gen_copysign3_const and gen_copysign3_var.
24550         (ix86_expand_xorsign): Use gen_xorsign3_1.
24551         (ix86_expand_branch): Use gen_sub3_carry_ccc,
24552         gen_sub3_carry_ccgz and gen_cmp1.
24553         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24554         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24555         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24556         (ix86_split_lshr): Ditto.
24557         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24559 2019-06-18  Jason Merrill  <jason@redhat.com>
24561         * tree.c (build_constructor): Add MEM_STAT_DECL.
24563 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24565         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24566         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24567         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24568         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24569         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24570         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24571         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24572         Use CC_NZC instead of CC.
24573         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24574         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24575         (aarch64_print_operand): Handle E_CC_NZCmode.
24576         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24577         of gen_set_clobber_cc.
24579 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24581         * config/aarch64/aarch64-sve.md: Tabify file.
24583 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24585         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24586         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24587         * config/aarch64/aarch64-sve.md: Use it.
24589 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24591         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24592         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24593         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24594         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24595         (aarch64_expand_sve_vec_cmp_int): Use it.
24596         (aarch64_expand_sve_vec_cmp_float): Likewise.
24597         * config/aarch64/aarch64-sve.md: Likewise throughout.
24599 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24600             Kugan Vivekanandarajah  <kuganv@linaro.org>
24602         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24603         (*cond_<optab><mode>_z): Fold into...
24604         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
24605         operand 4 can be tied to operand 0 (either inherently or via RA).
24607 2019-06-18  Richard Biener  <rguenther@suse.de>
24609         PR debug/90900
24610         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24611         as if optimized away.
24613 2019-06-18  Tom de Vries  <tdevries@suse.de>
24615         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24616         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24617         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24618         Rename to ...
24619         (define_insn "@set_softstack_<mode>"): ... this.
24620         (define_insn "omp_simt_enter_<mode>"): Rename to ...
24621         (define_insn "@omp_simt_enter_<mode>"): ... this.
24622         (define_insn "omp_simt_exit_<mode>"): Rename to ...
24623         (define_insn "@omp_simt_exit_<mode>"): ... this.
24625 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24627         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24628         vf parameter.  Restore the previous iv step of nscalars_step,
24629         but give it iv_type rather than compare_type.  Tweak code order
24630         to match the comments.
24631         (vect_set_loop_condition_masked): Update accordingly.
24632         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24633         for iv_precision.  Tweak comment formatting.
24635 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
24637         * config/darwin.c: Strip trailing whitespace.
24639 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
24641         * config/darwin.c (darwin_emit_unwind_label): New default to false.
24642         (darwin_override_options): Set darwin_emit_unwind_label as needed.
24644 2019-06-18  Martin Jambor  <mjambor@suse.cz>
24646         PR ipa/90889
24647         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24648         caller does not have flag_ipa_cp set.
24650 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
24652         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24653         from "*fold_left_plus_<mode>", updated operands order.
24654         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24655         * internal-fn.c (mask_fold_left_direct): New define.
24656         (expand_mask_fold_left_optab_fn): Likewise.
24657         (direct_mask_fold_left_optab_supported_p): Likewise.
24658         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24659         * optabs.def (mask_fold_left_plus_optab): New optab.
24660         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24661         masked internal_fn for a reduction ifn.
24662         (vectorize_fold_left_reduction): Add support for masking reductions.
24664 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
24666         PR middle-end/80791
24667         * target.def (predict_doloop_p): New hook.
24668         * targhooks.h (default_predict_doloop_p): New declaration.
24669         * targhooks.c (default_predict_doloop_p): New function.
24670         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24671         * doc/tm.texi: Regenerate.
24672         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24673         (TARGET_PREDICT_DOLOOP_P): New macro.
24674         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24676 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
24678         * omp-low.c (struct omp_context): Add scan_inclusive field.
24679         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24680         if inclusive scan.
24681         (struct omplow_simd_context): Add lastlane member.
24682         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24683         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24684         1 or 2 argument.
24685         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24686         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24687         (lower_omp_scan): New function.
24688         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24689         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24690         check 3rd argument if present rather than 2nd.
24691         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24692         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24693         2-bit bitfield.
24694         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24695         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24696         than 2nd.
24697         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24698         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24699         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24700         init.
24701         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24702         IFN_GOMP_SIMD_LANE argument.
24703         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24704         encoded ->aux value.
24705         * tree-vect-stmts.c: Include attribs.h.
24706         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24707         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24708         functions.
24709         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24710         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24712 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
24714         PR target/62055
24715         * config/i386/i386.md (*nabstf2_1): New insn pattern.
24716         (*nabs<mode>2_1): Ditto.
24717         (nabs sse-reg splitter): New splitter.
24718         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24720 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24722         PR bootstrap/90873.
24723         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24724         TMR index check.
24726 2019-06-17  Tom de Vries  <tdevries@suse.de>
24728         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24729         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24730         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24731         ...
24732         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
24733         match_operand 0.
24734         (define_insn "omp_simt_enter_insn"): Rename to ...
24735         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
24736         match_operand 0, 1 and 2, as well as the unspec_volatile result.
24737         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24738         gen_omp_simt_enter_si.
24739         (define_expand "omp_simt_exit"): New.
24740         (define_insn "omp_simt_exit"): Rename to ...
24741         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
24742         match_operand 0.
24744 2019-06-17  Matthew Green  <mrg@eterna.com.au>
24745             Maya Rashish  <coypu@sdf.org>
24747         * config.gcc (aarch64*-*-netbsd*): New target.
24748         * config/aarch64/aarch64-netbsd.h: New file.
24749         * config/aarch64/t-aarch64-netbsd: Likewise.
24751 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24753         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24754         the access path from base to first VIEW_CONVERT_EXPR or
24755         BIT_FIELD_REF.
24757 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24759         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24760         access path on BIT_FIELD_REFs.
24762 2019-06-17  Martin Liska  <mliska@suse.cz>
24764         PR ipa/90874
24765         * ipa-utils.h (odr_type_p): Remove dead code.
24767 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24769         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24770         alternative Solaris 11.4 format.
24771         * configure: Regenerate.
24773 2019-06-17  Tom de Vries  <tdevries@suse.de>
24775         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24776         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
24777         match_operand 0.
24778         (define_insn "call_value_insn"): Rename to ...
24779         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
24780         match_operand 0.
24781         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24782         DI.
24784 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
24786         PR middle-end/64242
24787         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
24788         frame clobbers and schedule block.
24789         (builtin_longjmp): Likewise.
24791 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24793         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24794         describe how to perform MSPABI compliant 64-bit shift.
24795         * config/msp430/msp430.md (ashldi3): New define_expand.
24796         (ashrdi3): New define_expand.
24797         (lshrdi3): New define_expand.
24799 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24801         * doc/sourcebuild.texi: Document new effective target keyword
24802         longlong64.
24804 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
24806         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24807         indirect_refs_may_alias_p): Revert accidental commits.
24809         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24810         at the end of structures.
24812 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
24814         * config/darwin.c (machopic_indirect_call_target): Use renamed
24815         darwin_picsymbol_stubs to decide on output.
24816         (darwin_override_options): Handle darwin_picsymbol_stubs.
24817         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24818         (LD64_VERSION): Revise default.
24819         * config/darwin.opt: (mpic-symbol-stubs): New option.
24820         (darwin_picsymbol_stubs): New variable.
24821         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24822         rename to TARGET_MACHO_PICSYM_STUBS.
24823         * config/i386/i386.c (output_pic_addr_const): Likewise.
24824         * config/i386/i386.h Likewise.
24825         * config/rs6000/darwin.h: Likewise.
24826         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24827         darwin_picsymbol_stubs.
24829 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
24831         * config/darwin.opt (prebind, noprebind, seglinkedit,
24832         noseglinkedit): Add RejectNegative.
24834 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
24836         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24837         in my previous patch.
24839 2019-06-16  Tom de Vries  <tdevries@suse.de>
24841         PR tree-optimization/89376
24842         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24844 2019-06-15  Maya Rashish  <coypu@sdf.org>
24846         * doc/invoke.texi (Spec Files): Update location of the
24847         Fortran spec file.
24849 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
24851         * doc/extend.texi (Common Function Attributes): Clarify
24852         no_sanitize.  Fix grammar.
24854 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
24856         * tree-ssa-alias.c (alias_stats): Add
24857         nonoverlapping_component_refs_p_may_alias,
24858         nonoverlapping_component_refs_p_no_alias,
24859         nonoverlapping_component_refs_of_decl_p_may_alias,
24860         nonoverlapping_component_refs_of_decl_p_no_alias.
24861         (dump_alias_stats): Dump them.
24862         (nonoverlapping_component_refs_of_decl_p): Add stats.
24863         (nonoverlapping_component_refs_p): Add stats; do not stop on first
24864         ARRAY_REF.
24866 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
24868         * config/i386/i386.md (and<mode>3): Generate zero-extends for
24869         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24870         only.
24871         (*anddi3_doubleword): Split before reload. Merge with
24872         anddi->zext pre-reload splitter.
24873         (*andndi3_doubleword): Split before reload.
24874         (*<code>di3_doubleword): Ditto.
24875         (*one_cmpldi2_doubleword): Ditto.
24877 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
24879         PR middle-end/90779
24880         * gimplify.c: Include omp-offload.h and context.h.
24881         (gimplify_bind_expr): Add "omp declare target" attributes
24882         to static block scope variables inside of target region or target
24883         functions.
24885 2019-06-15  Tom de Vries  <tdevries@suse.de>
24887         PR tree-optimization/90009
24888         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24889         Return NULL if bb contains IFN_UNIQUE.
24891 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
24893         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24894         (un): New define_mode_attr.
24895         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24896         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
24897         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24898         merge into ...
24899         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
24901 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
24903         * config/darwin.opt: Add RejectNegative where needed, reorder
24904         and add minimal functional descriptions.
24906 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24908         PR rtl-optimization/90765
24909         * calls.c (update_stack_alignment_for_call): New function.
24910         (expand_call): Call update_stack_alignment_for_call when
24911         outgoing parameter is passed in the stack.
24912         (emit_library_call_value_1): Likewise.
24913         * function.c (locate_and_pad_parm): Don't update
24914         stack_alignment_needed and preferred_stack_boundary.
24916 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24918         PR target/90877
24919         * config/i386/i386-features.c
24920         (dimode_scalar_chain::compute_convert_gain): Replace
24921         mmxsse_to_integer with sse_to_integer.
24922         * config/i386/i386.c (ix86_register_move_cost): Verify that
24923         moves between MMX and non-MMX units require secondary memory.
24924         Correct costs of moves between SSE and integer units.
24925         * config/i386/i386.h (processor_costs): Rename cost of moving
24926         SSE register to integer to sse_to_integer.  Rename cost of
24928 2019-06-14  Matt Thomas  <matt@3am-software.com>
24929             Matthew Green  <mrg@eterna.com.au>
24930             Nick Hudson  <skrll@netbsd.org>
24931             Maya Rashish  <coypu@sdf.org>
24932             Richard Earnshaw  <rearnsha@arm.com>
24934         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24935         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24936         * config/arm/netbsd-eabi.h: New file.
24937         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24938         redefining.
24939         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24940         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24941         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24942         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24944 2019-06-14  Richard Biener  <rguenther@suse.de>
24946         * tree-loop-distribution.c (classify_partition): Return
24947         whether a reduction appeared in all partitions and do not
24948         stop builtin detection because of this.
24949         (distribute_loop): Sort a non-builtin partition last if
24950         there's a reduction in all partitions and make sure the
24951         partition prevailing as last is not a builtin.
24953 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
24955         PR ipa/90401
24956         * ipa-prop.c (add_to_agg_contents_list): New function.
24957         (clobber_by_agg_contents_list_p): Likewise.
24958         (extract_mem_content): Likewise.
24959         (get_place_in_agg_contents_list): Delete.
24960         (determine_known_aggregate_parts): Renamed from
24961         determine_locally_known_aggregate_parts.  New parameter
24962         aa_walk_budget_p.
24964 2019-06-13  Martin Sebor  <msebor@redhat.com>
24966         PR tree-optimization/90662
24967         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24968         to the same type.
24970 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
24972         PR bootstrap/90873
24973         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24974         dbase is not TARGET_MEM_REF.
24976 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
24978         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24979         Update all uses.
24980         (and<mode>3): Use gen_extend_insn instead of indirect functions.
24981         Do not generate DImode extends for 32bit targets.
24982         (and->zext post-reload splitter): Use gen_extend_insn
24983         instead of indirect functions.
24984         (anddi->zext pre-reload splitter): New.
24985         (*zext<mode>_doubleword_and): Remove.
24986         (*zext<mode>_doubleword): Ditto.
24987         (*zextsi_doubleword): Dittto.
24989 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
24991         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24992         Use gen_sub3_insn instead of indirect function.
24993         (ix86_expand_ashl_const): Use gen_add2_insn instead of
24994         indirect function.
24995         (ix86_adjust_counter): Ditto.
24997 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
24998             Lijia He  <helijia@linux.ibm.com>
25000         PR tree-optimization/77820
25001         * tree-ssa-threadedge.c
25002         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
25003         function.
25004         (thread_across_edge): Add call to
25005         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
25007 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
25009         * config/darwin-driver.c (validate_macosx_version_min): New.
25010         (darwin_default_min_version): Cleanup and validate supplied version.
25011         (darwin_driver_init): Likewise and push cleaned version into opts.
25013 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
25015         PR tree-optimization/90869
25016         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
25017         converts in MEM_REF referencing decl rather than view converts
25018         from decl type to MEM_REF type.
25020 2019-06-13  Richard Biener  <rguenther@suse.de>
25022         PR tree-optimization/90856
25023         * tree-sra.c (build_ref_for_model): Only use
25024         build_reconstructed_reference when address-spaces are the same.
25026 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
25028         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
25029         wrap ei variable name in the declaration in ()s.
25030         (nvptx_single): Actually use mode_label variable.  Formatting fix.
25032 2019-06-13  Richard Biener  <rguenther@suse.de>
25034         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
25035         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
25036         also return the condition stmt.
25037         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
25038         loop we can version and version that, reusing the loop version
25039         created by if-conversion instead of versioning again.
25041 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
25043         * gimple-loop-versioning.cc (prune_loop_conditions): Use
25044         may_contain_p.
25045         * tree-vrp (value_range_base::may_contain_p): Call into
25046         value_inside_range.
25047         (value_inside_range): Make private inside value_range_base class.
25048         Take min/max from *this.
25049         (range_includes_p): Remove.
25050         * tree-vrp.h (value_range_base): Add value_inside_range.
25051         (range_includes_p): Remove.
25052         (range_includes_zero_p): Call may_contain_p.
25053         * vr-values.c (compare_range_with_value): Same.
25055 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
25057         * doc/extend.texi (ARC Function Attributes): Update info.
25059 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
25061         PR tree-optimization/89713
25062         * doc/invoke.texi (-ffinite-loops): Document new option.
25063         * common.opt (-ffinite-loops): New option.
25064         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
25065         IFN_GOACC_LOOP calls as necessary.
25066         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
25067         is finite.
25068         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
25069         IFN_GOACC_LOOP call is not used.
25070         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
25072 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25074         PR target/88838
25075         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
25076         compare_type is not with Pmode size, we will create an IV with
25077         Pmode size with truncated use (i.e. converted to the correct type).
25078         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
25079         (vect_iv_limit_for_full_masking): New. Factored out of
25080         vect_set_loop_condition_masked.
25081         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
25082         (vect_iv_limit_for_full_masking): Declare.
25084 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25086         PR target/88834
25087         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
25088         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
25089         (get_alias_ptr_type_for_ptr_address): Likewise.
25090         (add_iv_candidate_for_use): Add scaled index candidate if useful.
25091         * tree-ssa-address.c (preferred_mem_scale_factor): New.
25092         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
25093         allow_reg_index_p.
25095 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25097         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
25099 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
25101         * common/config/pru/pru-common.c: New file.
25102         * config.gcc: Add PRU target.
25103         * config/pru/alu-zext.md: New file.
25104         * config/pru/constraints.md: New file.
25105         * config/pru/predicates.md: New file.
25106         * config/pru/pru-opts.h: New file.
25107         * config/pru/pru-passes.c: New file.
25108         * config/pru/pru-pragma.c: New file.
25109         * config/pru/pru-protos.h: New file.
25110         * config/pru/pru.c: New file.
25111         * config/pru/pru.h: New file.
25112         * config/pru/pru.md: New file.
25113         * config/pru/pru.opt: New file.
25114         * config/pru/t-pru: New file.
25115         * doc/extend.texi: Document PRU pragmas.
25116         * doc/invoke.texi: Document PRU-specific options.
25117         * doc/md.texi: Document PRU asm constraints.
25119 2019-06-12  Martin Sebor  <msebor@redhat.com>
25121         PR middle-end/90676
25122         * tree-pretty-print.c (dump_mem_ref): New function.  Include
25123         MEM_REF type in output when different size than operand.
25124         (dump_generic_node): Move code to dump_mem_ref and call it.
25126 2019-06-12  Martin Sebor  <msebor@redhat.com>
25128         PR tree-optimization/90662
25129         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
25130         to arrays.
25132 2019-06-12  Tom de Vries  <tdevries@suse.de>
25134         PR tree-optimization/90009
25135         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
25137 2019-06-12  Martin Liska  <mliska@suse.cz>
25139         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
25140         the created map.
25141         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
25142         * mem-stats.h (mem_alloc_description::mem_alloc_description):
25143         Do not sanitize created maps.
25145 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
25147         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
25148         value_range::singleton_p.
25149         * tree-vrp.c (value_range_constant_singleton): Remove.
25150         * tree-vrp.h (value_range_constant_singleton): Remove.
25151         * vr-values.c (vr_values::singleton): Use
25152         value_range::singleton_p.
25154 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25156         PR target/90811
25157         * cfgexpand.c (align_local_variable): Add really_expand argument,
25158         don't SET_DECL_ALIGN if it is false.
25159         (add_stack_var): Add really_expand argument, pass it through to
25160         align_local_variable.
25161         (expand_one_stack_var_1): Pass true as really_expand to
25162         align_local_variable.
25163         (expand_one_ssa_partition): Pass true as really_expand to
25164         add_stack_var.
25165         (expand_one_var): Pass really_expand through to add_stack_var.
25167 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
25169         * config/arm/iterators.md (VABAL): New int iterator.
25170         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
25171         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
25172         UNSPEC_VABAL_U values.
25174 2019-06-12  Martin Liska  <mliska@suse.cz>
25176         * value-prof.c (stream_out_histogram_value): Only first value
25177         can't be negative.
25179 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25181         PR c/90760
25182         * symtab.c (symtab_node::set_section): Allow being called on aliases
25183         as long as they aren't analyzed yet.
25185 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
25187         * config/mips/mips.c (mips_final_postscan_insn): Modify call
25188         to `mips_set_text_contents_type' to indicate whether a
25189         non-debug insn follows.
25191 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
25193         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
25194         enabling -mpcrel by default.
25195         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
25196         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
25197         that the test against -mcpu=future is done first.  Then test if
25198         -mprefixed-addr is on for -mpcrel.
25199         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
25201 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25203         PR target/90811
25204         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
25205         instead of and.u%d.
25207 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25209         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
25211 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
25213         PR c++/90449 - add -Winaccessible-base option.
25214         * doc/invoke.texi (Winaccessible-base): Document.
25216 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25218         PR tree-optimization/62041
25219         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
25221 2019-06-11  Jason Merrill  <jason@redhat.com>
25223         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
25224         * tree.c (get_tree_code_name): Likewise.
25225         * print-tree.c (print_node): Only briefly print a node with an
25226         invalid code.
25228 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25230         PR bootstrap/90819
25231         * trans-mem.c (tm_memopt_compute_available): Add assertion
25232         that blocks is not empty.  Formatting fix.
25234 2019-06-11  Martin Liska  <mliska@suse.cz>
25236         PR c++/87847
25237         * hash-table.h: Extend create_gcc, add one parameter
25238         that is passed into hash_table::hash_table.
25240 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
25242         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
25243         New prototype.
25244         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
25245         Emit clobber also for non-sse operations.
25246         (ix86_split_fp_absneg_operator): New function.
25247         * config/i386/i386.md (SSEMODEF): New mode iterator.
25248         (ssevecmodef): New mode attribute.
25249         (<code>tf2): Use absneg code iterator.
25250         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
25251         Add three-operand AVX alternatives.
25252         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
25253         Use absneg code iterator and X87MODEF mode iterator.
25254         (absneg fp_reg non-sse splitter): Call absneg code iterator
25255         and X87MODEF mode iterator.
25256         (absneg general_reg non-sse splitter): Use absneg code iterator
25257         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
25258         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
25259         code iterator.  Add three-operand AVX alternative.
25260         (absneg sse_reg splitter): Use absneg code iterator
25261         and SSEMODEF mode iterator.  Handle AVX operands.
25262         (absneg fp_reg splitter): Use absneg code iterator
25263         and MODEF mode iterator.
25264         (absneg general_reg splitter): Merge splitters using MODEF mode
25265         iterator.  Use absneg code iterator.  Call
25266         ix86_split_fp_absneg_operator.
25267         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
25268         Do not enable for non-sse modes before reload.
25269         (CSGNMODE): Remove.
25270         (CSGNVMODE): Ditto.
25271         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
25272         ssevecmodef mode attribute instaed of CSGNVMODE.
25273         (copysign<mode>3_const): Ditto.
25274         (copysign<mode>3_var): Ditto.
25275         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
25276         Use absneg code iterator.  Simplify code using std::swap.
25277         * config/i386/predicates.md (absneg_operator): Remove.
25279 2019-06-10  Martin Sebor  <msebor@redhat.com>
25281         * gimple-fold.c (get_range_strlen): Update comment that didn't
25282         make it into r267503 or related commits.
25284 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
25286         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25287         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25289 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
25291         * tree.def (OMP_SCAN): New tree code.
25292         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25293         OMP_CLAUSE_EXCLUSIVE.
25294         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25295         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25296         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25297         OMP_CLAUSE_{IN,EX}CLUSIVE.
25298         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25299         * tree-nested.c (convert_nonlocal_reference_stmt,
25300         convert_local_reference_stmt, convert_gimple_call): Handle
25301         GIMPLE_OMP_SCAN.
25302         * tree-pretty-print.c (dump_omp_clause): Handle
25303         OMP_CLAUSE_{IN,EX}CLUSIVE.
25304         (dump_generic_node): Handle OMP_SCAN.
25305         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25306         * gimple.h (gomp_scan): New type.
25307         (is_a_helper <gomp_scan *>::test,
25308         is_a_helper <const gomp_scan *>::test): New templates.
25309         (gimple_build_omp_scan): Declare.
25310         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25311         gimple_omp_scan_set_clauses): New inline functions.
25312         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25313         * gimple.c (gimple_build_omp_scan): New function.
25314         (gimple_copy): Handle GIMPLE_OMP_SCAN.
25315         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25316         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25317         GIMPLE_OMP_TASKGROUP.
25318         (dump_gimple_omp_scan): New function.
25319         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25320         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25321         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25322         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25323         (is_gimple_stmt): Handle OMP_SCAN.
25324         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25325         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25326         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25327         mentioned in nested #pragma omp scan.  Handle
25328         OMP_CLAUSE_{IN,EX}CLUSIVE.
25329         (gimplify_expr): Handle OMP_SCAN.
25330         * omp-low.c (check_omp_nesting_restrictions): For parent context,
25331         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
25332         simd constructs.
25333         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25334         GIMPLE_OMP_SCAN.
25336 2019-06-10  Martin Liska  <mliska@suse.cz>
25338         * ipa-cp.c (ignore_edge_p): New function.
25339         (build_toporder_info): Use it.
25340         * ipa-inline.c (ignore_edge_p): New function.
25341         (inline_small_functions): Use it.
25342         * ipa-pure-const.c (ignore_edge_for_nothrow):
25343         Verify opt_for_fn for caller and callee.
25344         (ignore_edge_for_pure_const): Likewise.
25345         * ipa-reference.c (ignore_edge_p): Extend to check
25346         for opt_for_fn.
25347         * ipa-utils.c (searchc): Refactor.
25348         * ipa-utils.h: Fix coding style.
25350 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25352         * config/arc/arc.c (arc_rtx_costs): Update costs.
25354 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25356         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25357         (arc_split_ior): Likewise.
25358         (arc_check_mov_const): Likewise.
25359         (arc_split_mov_const): Likewise.
25360         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25361         (arc_rtx_costs): Replace check Crr with Cax constraint.
25362         (prepare_move_operands): Cleanup, remove unused code.
25363         (arc_split_ior): New function.
25364         (arc_check_ior_const): Likewise.
25365         (arc_split_mov_const): Likewise.
25366         (arc_check_mov_const): Likewise.
25367         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25368         in define_insn_and_split pattern.
25369         (iorsi3): Likewise.
25370         (mulsi3_v2): Add new matching variant.
25371         (andsi3_i): Cleanup pattern.
25372         (rotrsi3_cnt1): Update pattern.
25373         (rotrsi3_cnt8): New pattern.
25374         (ashlsi2_cnt8): Likewise.
25375         (ashlsi2_cnt16): Likewise.
25376         * config/arc/constraints.md (C0p): Update constraint.
25377         (Crr): Remove it.
25378         (C0x): New pattern.
25379         (Cax): New pattern.
25381 2019-06-10  Martin Liska  <mliska@suse.cz>
25383         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25384         Update coding style.
25385         (sem_item_optimizer::dump_cong_classes):
25386         Print how many items are in a non-singular class.  Improve
25387         coding style.
25389 2019-06-10  Martin Liska  <mliska@suse.cz>
25391         * value-prof.c (dump_histogram_value): Change dump format.
25392         (gimple_mod_subtract_transform): Remove legacy comment.
25394 2019-06-10  Martin Liska  <mliska@suse.cz>
25396         * value-prof.c (dump_histogram_value): Print histogram values
25397         only if present.
25399 2019-06-10  Martin Liska  <mliska@suse.cz>
25401         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25402         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25403         * ipa-profile.c (ipa_profile_generate_summary):
25404         Use get_most_common_single_value.
25405         * tree-profile.c (gimple_init_gcov_profiler):
25406         Instrument with __gcov_one_value_profiler_v2
25407         and __gcov_indirect_call_profiler_v4.
25408         * value-prof.c (dump_histogram_value):
25409         Print all values for HIST_TYPE_SINGLE_VALUE.
25410         (stream_out_histogram_value): Update assert for
25411         N values.
25412         (stream_in_histogram_value): Set number of
25413         counters for HIST_TYPE_SINGLE_VALUE.
25414         (get_most_common_single_value): New.
25415         (gimple_divmod_fixed_value_transform):
25416         Use get_most_common_single_value.
25417         (gimple_ic_transform): Likewise.
25418         (gimple_stringops_transform): Likewise.
25419         (gimple_find_values_to_profile): Set number
25420         of counters for HIST_TYPE_SINGLE_VALUE.
25421         * value-prof.h (get_most_common_single_value): New.
25423 2019-06-10  Martin Liska  <mliska@suse.cz>
25425         * hash-map.h: Pass default value to hash_table ctor.
25426         * hash-table.h: Add default value to call of a ctor.
25428 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
25430         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25431         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25433 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
25435         PR target/90751
25436         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25437         Call pa_output_function_label.
25438         (TARGET_ASM_FUNCTION_PROLOGUE): define.
25439         * config/pa/pa-protos.h (pa_output_function_label): Declare.
25440         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25441         to declaration.
25442         (pa_linux_output_function_prologue): Declare.
25443         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25444         (pa_output_function_label): New.
25445         (pa_output_function_prologue): Revise to use pa_output_function_label.
25446         (pa_linux_output_function_prologue): New.
25447         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25449 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
25451         * tree-vrp.h (value_range_base::intersect): New.
25452         (value_range::intersect_helper): Move from here...
25453         (value_range_base::intersect_helper): ...to here.
25454         * tree-vrp.c (value_range::intersect_helper): Rename to...
25455         (value_range_base::intersect_helper): ...this, and rewrite to
25456         return a value instead of modifying THIS in place.
25457         Also, move equivalence handling...
25458         (value_range::intersect): ...here, while calling intersect_helper.
25459         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25460         calling intersect.
25461         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25462         Same.
25463         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25465 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
25467         * Makefile.in (genprogerr): Add condmd.
25468         (genprog): Remove it here.
25470 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
25472         * doc/invoke.texi (AMD GCN Options): Add gfx906.
25474 2019-06-07  Richard Biener  <rguenther@suse.de>
25476         PR debug/90574
25477         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25478         that appear after user labels.
25480 2019-06-07  Martin Liska  <mliska@suse.cz>
25482         * cselib.c (cselib_init): Disable hash table
25483         sanitization.
25484         * hash-set.h: Pass new default argument to m_table.
25485         * hash-table.c: Add global variable with hash table
25486         sanitization limit.
25487         * hash-table.h (Allocator>::hash_table): Add new argument
25488         to ctor.
25489         (hashtab_chk_error): New.
25490         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25491         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25492         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25494 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
25496         * common.opt (flto-odr-type-merging): Ignore.
25497         * invoke.texi (-flto-odr-type-merging): Remove.
25498         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25499         (can_be_vtable_hashed_p): Remove.
25500         (hash_odr_vtable): Remove.
25501         (odr_vtable_hasher::hash): Remove.
25502         (types_same_for_odr): Remove.
25503         (types_odr_comparable): Remove.
25504         (odr_vtable_hasher::equal): Remove.
25505         (odr_vtable_hash_type, odr_vtable_hash): Remove.
25506         (add_type_duplicate): Do not synchronize vtable and name hashtables.
25507         (get_odr_type): Do not use vtable hash.
25508         (dump_odr_type): Remove commented out code.
25509         (build_type_inheritance_graph): Do not allocate vtable hash.
25510         (rebuild_type_inheritance_graph): Do not delete vtable hash.
25511         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25512         (odr_type_p): Likewise.
25513         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25514         test.
25516 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
25518         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25519         immediately after same_types_for_tbaa_p returns -1 and continue
25520         looking for possible exact match; if matching types are arrays
25521         watch for partial overlaps.
25522         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25523         (indirect_refs_may_alias_p): Do type based disambiguation first;
25524         update comment.
25526 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
25528         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25530 2019-06-07  Martin Liska  <mliska@suse.cz>
25532         * doc/invoke.texi: Remove param.
25533         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25534         Remove.
25535         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25536         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25537         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25538         * profile.c (instrument_values): Remove
25539         HIST_TYPE_INDIR_CALL_TOPN.
25540         * tree-profile.c (init_ic_make_global_vars):
25541         Always build __gcov_indirect_call only.
25542         (gimple_init_gcov_profiler): Remove usage
25543         of PARAM_INDIR_CALL_TOPN_PROFILE.
25544         (gimple_gen_ic_profiler): Likewise.
25545         * value-prof.c (dump_histogram_value): Likewise.
25546         (stream_in_histogram_value): Likewise.
25547         (gimple_indirect_call_to_profile): Likewise.
25548         (gimple_find_values_to_profile): Likewise.
25549         * value-prof.h (enum hist_type): Likewise.
25551 2019-06-07  Martin Liska  <mliska@suse.cz>
25553         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25554         function.
25556 2019-06-07  Martin Liska  <mliska@suse.cz>
25558         PR tree-optimization/78902
25559         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25560         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25561         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25562         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25563         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25564         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25565         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25566         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25567         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25568         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25569         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25570         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25571         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25572         New.
25573         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25574         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25575         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25576         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25577         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25578         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25579         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25580         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25581         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25582         warn_unused_result attribute.
25583         (BUILT_IN_STRDUP): Likewise.
25584         (BUILT_IN_STRNDUP): Likewise.
25585         (BUILT_IN_ALLOCA): Likewise.
25586         (BUILT_IN_CALLOC): Likewise.
25587         (BUILT_IN_MALLOC): Likewise.
25588         (BUILT_IN_REALLOC): Likewise.
25590 2019-06-06  Jim Wilson  <jimw@sifive.com>
25592         PR target/89955
25593         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25594         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25595         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25597 2019-06-06  Martin Sebor  <msebor@redhat.com>
25599         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25600         (handle_builtin_malloc): Remove trailing spaces.
25601         (handle_builtin_memset): Same.
25602         (handle_builtin_memcmp): Same.
25603         (compute_string_length): Same.
25604         (determine_min_objsize): Same.
25605         (handle_builtin_string_cmp): Same.
25606         (handle_char_store): Same.  Break up excessively long line.
25608 2019-06-06  Martin Jambor  <mjambor@suse.cz>
25610         * tree-sra.c (build_reconstructed_reference): Drop the alignment
25611         check.
25613 2019-06-06  Martin Jambor  <mjambor@suse.cz>
25615         * tree-sra.c (struct access): New field grp_same_access_path.
25616         (dump_access): Dump it.
25617         (build_reconstructed_reference): New function.
25618         (build_ref_for_model): Use it if possible.
25619         (path_comparable_for_same_access): New function.
25620         (same_access_path_p): Likewise.
25621         (sort_and_splice_var_accesses): Set the new flag.
25622         (analyze_access_subtree): Likewise.
25623         (propagate_subaccesses_across_link): Propagate zero value of the new
25624         flag down the access tree.
25626 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
25628         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25629         * config/gcn/gcn.opt (gpu_type): Add gfx906.
25630         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25631         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25632         Add gfx906.
25634 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25636         PR tree-optimization/90332
25637         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25638         Handle VALS containing two vectors.
25639         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25640         to...
25641         (@aarch64_combinez<mode>): ... This.
25642         (*aarch64_combinez_be<mode>): Rename to...
25643         (@aarch64_combinez_be<mode>): ... This.
25644         (vec_init<mode><Vhalf>): New define_expand.
25645         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25647 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25649         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25650         library functions only when not optimizing for size.
25651         (ashlsi3): Likewise.
25652         (ashrhi3): Likewise.
25653         (ashrsi3): Likewise.
25654         (lshrhi3): Likewise.
25655         (lshrsi3): Likewise.
25657 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
25659         PR rtl-optimization/88751
25660         * ira.c (ira): Use the number of the actually referenced registers
25661         when calculating the threshold.
25663 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
25665         * configure: Regenerate.
25667 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25669         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25670         register if it is in memory, so the shift can be emulated with a rotate
25671         instruction.
25672         (ashrhi3): Likewise.
25673         (lshrhi3): Likewise.
25675 2019-06-06  Martin Liska  <mliska@suse.cz>
25677         PR tree-optimization/87954
25678         * match.pd: Simplify mult where both arguments are 0 or 1.
25680 2019-06-06  Richard Biener  <rguenther@suse.de>
25682         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25683         put equivalences on UNDEFINED ranges.
25684         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25685         Make sure to drop defs of stmts added during simplification
25686         to VARYING.
25688 2019-06-06  Richard Biener  <rguenther@suse.de>
25690         * tree-ssa-structalias.c: Include tree-cfg.h.
25691         (make_heapvar): Do not make heap vars artificial.
25692         (find_func_aliases_for_builtin_call): Handle stack allocation
25693         functions.
25694         (find_func_aliases): Delay processing of simple enough returns
25695         in non-IPA mode.
25696         (set_uids_in_ptset): Adjust.
25697         (find_what_var_points_to): Likewise.
25698         (solve_constraints): Do not dump points-to sets here.
25699         (compute_points_to_sets): Post-process return statements,
25700         amending the escaped solution.  Dump points-to sets afterwards.
25701         (ipa_pta_execute): Dump points-to sets.
25703 2019-06-06  Martin Liska  <mliska@suse.cz>
25705         PR web/87933
25706         * doc/install.texi: Fix HTML headers and
25707         titles for 'Installing GCC' pages.
25709 2019-06-06  Martin Liska  <mliska@suse.cz>
25711         * ipa-icf-gimple.h (dump_message_1): Remove.
25712         (dump_message): Likewise.
25713         (return_false_with_message_1): Print also file.
25714         (return_false_with_msg): Likewise.
25715         (return_with_result): Likewise.
25716         (return_with_debug): Likewise.
25717         * ipa-icf.c (sem_function::equals_private): Remove call
25718         to dump_message.
25720 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
25722         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25723         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25724         memory operand for it.
25725         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25727 2019-06-05  Martin Sebor  <msebor@redhat.com>
25729         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25730         Adjust quoting and hyphenation.
25731         * convert.c (convert_to_real_1): Same.
25732         * gcc.c (driver_wrong_lang_callback): Same.
25733         (driver::handle_unrecognized_options): Same.
25734         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25735         * opts-common.c (cmdline_handle_error): Same.
25736         (read_cmdline_option): Same.
25737         * opts-global.c (complain_wrong_lang): Same.
25738         (print_ignored_options): Same.
25739         (handle_common_deferred_options): Same.
25740         * pretty-print.h: Same.
25741         * print-rtl.c (debug_bb_n_slim): Same.
25742         * sched-rgn.c (make_pass_sched_fusion): Same.
25743         * tree-cfg.c (verify_gimple_assign_unary): Same.
25744         (verify_gimple_label): Same.
25745         * tree-ssa-operands.c (verify_ssa_operands): Same.
25746         * varasm.c (do_assemble_alias): Same.
25747         (assemble_alias): Same.
25749 2019-06-05  Richard Henderson  <rth@twiddle.net>
25751         * config/alpha/alpha.c (direct_return): Move down after
25752         struct machine_function definition; use saved frame_size;
25753         return bool.
25754         (struct machine_function): Add sa_mask, sa_size, frame_size.
25755         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25756         (alpha_compute_frame_layout): ... new function.
25757         (TARGET_COMPUTE_FRAME_LAYOUT): New.
25758         (alpha_initial_elimination_offset): Use saved sa_size.
25759         (alpha_vms_initial_elimination_offset): Likewise.
25760         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25761         (alpha_expand_prologue): Use saved frame data.  Merge integer
25762         and fp register save loops.
25763         (alpha_expand_epilogue): Likewise.
25764         (alpha_start_function): Use saved frame data.
25765         * config/alpha/alpha-protos.h (direct_return): Update.
25766         (alpha_sa_size): Remove.
25768 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
25770         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25771         multiplication by a power-of-two value.
25772         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25773         and turn the modulo operation into a masking operation.
25775 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
25777         PR debug/90733
25778         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25779         with VOIDmode inner operands.
25781 2019-06-05  Richard Biener  <rguenther@suse.de>
25783         PR middle-end/90726
25784         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25785         turn an expression graph into a tree.
25787 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
25789         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25790         member.
25791         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25792         treat it like explicit monotonic schedule modifier.
25793         (expand_omp_for): Initialize has_lastprivate_conditional.
25794         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25795         schedule modifier.
25797         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25798         references, lookup in in hash map MEM_REF operand instead of the
25799         MEM_REF itself.
25800         (lower_omp_1): When looking for lastprivate conditional assignments,
25801         handle MEM_REFs with REFERENCE_TYPE operands.
25803         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25804         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25805         and references a VLA.  Handle references to non-VLAs if is_simd
25806         all privatization clauses like reductions.
25807         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25808         If omp_is_reference, use always omp simd arrays and set
25809         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25810         fails, emit reference initialization.
25812 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
25814         PR target/89803
25815         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25816         _mm_mask_fpclass_sd_mask): New intrinsics.
25817         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25818         * config/i386/i386-builtin.def
25819         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25820         New builtins.
25821         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25822         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25823         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25824         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25825         case QI_FTYPE_V2SF_INT): Ditto.
25826         * config/i386/sse.md
25827         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25828         Extended to insnstructions with mask operands.
25830 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25832         * config/rs6000/constraints.md (define_register_constraint "wp"):
25833         Delete.
25834         (define_register_constraint "wq"): Delete.
25835         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25836         (rs6000_init_hard_regno_mode_ok): Adjust.
25837         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25838         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25839         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25840         (define_mode_attr VSa): Delete.
25841         (define_mode_attr VSisa): New.
25842         (rest of file): Adjust.
25843         * doc/md.texi (Machine Constraints): Adjust.
25845 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25847         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25848         (define_attr "enabled"): Handle those new isa values.
25850 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25852         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25853         (define_mode_attr VSr5): Delete.
25854         (define_mode_attr VStype_sqrt): Delete.
25855         (define_mode_iterator VSX_SPDP): Delete.
25856         (define_mode_attr VS_spdp_res): Delete.
25857         (define_mode_attr VS_spdp_insn): Delete.
25858         (define_mode_attr VS_spdp_type): Delete.
25859         (*vsx_sqrt<mode>2): Adjust.
25860         (vsx_<VS_spdp_insn>): Delete, split to...
25861         (vsx_xscvdpsp): ... this.  New.  And...
25862         (vsx_xvcvspdp): ... this.  New.  And...
25863         (vsx_xvcvdpsp): ... this.  New.
25865 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25867         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25868         and V2DF.
25869         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25870         (rest of file): Adjust.
25872 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25874         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25875         (vsx_extract_<mode>_var): Ditto.
25877 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25879         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25880         with just "wa".
25882 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25884         * config/rs6000/constraints.md (define_register_constraint "ww"):
25885         Delete.
25886         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25887         (rs6000_init_hard_regno_mode_ok): Adjust.
25888         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25889         RS6000_CONSTRAINT_ww.
25890         * config/rs6000/rs6000.md: Adjust.
25891         * config/rs6000/vsx.md: Adjust.
25892         * doc/md.texi (Machine Constraints): Adjust.
25894 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25896         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25897         (define_mode_attr sd): New.
25898         (define_mode_attr s): New.
25899         (define_mode_attr Ftrad): Delete.
25900         (define_mode_attr Fvsx): Delete.
25901         (define_mode_attr Fs): Delete.
25902         (rest of file): Use the new mode attributes.
25903         * config.rs6000/vsx.md: Use the new mode attributes.
25905 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25907         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25908         with just "wa".
25910 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25912         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25913         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25914         used with VSX_B, VSX_D, or VSX_F, with just "wa".
25916 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
25918         PR target/78263
25919         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25920         C++ with strict ANSI requirements.
25922 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
25924         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25925         computations when step is 1.
25927 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25929         * config/rs6000/constraints.md (define_register_constraint "wf"):
25930         Delete.
25931         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25932         (rs6000_init_hard_regno_mode_ok): Adjust.
25933         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25934         RS6000_CONSTRAINT_wf.
25935         * config/rs6000/rs6000.md: Adjust.
25936         * config/rs6000/vsx.md: Adjust.
25937         * doc/md.texi (Machine Constraints): Adjust.
25939 2019-06-04  Andrew Pinski  <apinski@marvell.com>
25941         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25942         Fix ILP32 value.
25944 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25946         * config/rs6000/constraints.md (define_register_constraint "wd"):
25947         Delete.
25948         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25949         (rs6000_init_hard_regno_mode_ok): Adjust.
25950         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25951         RS6000_CONSTRAINT_wd.
25952         * config/rs6000/rs6000.md: Adjust.
25953         * config/rs6000/vsx.md: Adjust.
25954         * doc/md.texi (Machine Constraints): Adjust.
25956 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25958         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25959         (rest of file): Adjust.
25961 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25963         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25964         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25965         (vsx_splat_<mode>_reg): Adjust.
25967 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25969         * config/rs6000/constraints.md (define_register_constraint "ws"):
25970         Delete.
25971         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25972         (rs6000_init_hard_regno_mode_ok): Adjust.
25973         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25974         RS6000_CONSTRAINT_ws.
25975         * config/rs6000/rs6000.md: Adjust.
25976         * config/rs6000/vsx.md: Adjust.
25977         * doc/md.texi (Machine Constraints): Adjust.
25979 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25981         * config/rs6000/constraints.md (define_register_constraint "wv"):
25982         Delete.
25983         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25984         (rs6000_init_hard_regno_mode_ok): Adjust.
25985         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25986         RS6000_CONSTRAINT_wv.
25987         * config/rs6000/rs6000.md: Adjust.
25988         * config/rs6000/vsx.md: Adjust.
25989         * doc/md.texi (Machine Constraints): Adjust.
25991 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25993         * config/rs6000/constraints.md (define_register_constraint "wi"):
25994         Delete.
25995         (define_register_constraint "wt"): Delete.
25996         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25997         (rs6000_init_hard_regno_mode_ok): Adjust.
25998         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25999         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
26000         * config/rs6000/rs6000.md: Adjust.
26001         * config/rs6000/vsx.md: Adjust.
26002         * doc/md.texi (Machine Constraints): Adjust.
26004 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26006         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
26007         const.
26008         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
26009         default_elf_asm_output_external.
26011 2019-06-04  Martin Liska  <mliska@suse.cz>
26013         * ipa-icf.c (INCLUDE_LIST): Remove.
26014         (sem_item_optimizer::execute): Remove call to init_wpa.
26015         * ipa-icf.h (init_wpa): Remove.
26017 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
26019         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
26020         conditional on combined for simd.
26021         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
26022         member.
26023         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
26024         constructs, don't remove lastprivate_conditional_map, but instead set
26025         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
26026         to parent construct temporaries.
26027         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
26028         like !ctx->lastprivate_conditional_map.
26029         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
26030         use up->outer context instead of up.
26031         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
26032         gimple_omp_for_combined_p.
26033         (expand_omp_for_static_nochunk): Likewise.
26034         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
26035         probably moved over into expand_omp_for_generic rather than being copied
26036         there.
26038 2019-06-04  Martin Liska  <mliska@suse.cz>
26040         * value-prof.c (dump_histogram_value): Fix typo.
26041         (gimple_mod_subtract_transform): Likewise.
26043 2019-06-04  Richard Biener  <rguenther@suse.de>
26045         PR middle-end/90726
26046         * tree-chrec.c (chrec_contains_symbols): Add to visited.
26047         (tree_contains_chrecs): Likewise.
26048         (chrec_contains_symbols_defined_in_loop): Move here and avoid
26049         exponential behaivor from ...
26050         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26051         ... here.
26052         (expression_expensive_p): Avoid exponential behavior and compute
26053         expanded size, rejecting any expansion.
26054         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
26055         (idx_contains_abnormal_ssa_name_p): Likewise.
26056         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
26057         (contains_abnormal_ssa_name_p): Simplify and use
26058         walk_tree_without_duplicates.
26060 2019-06-04  Richard Biener  <rguenther@suse.de>
26062         PR tree-optimization/90738
26063         Revert
26064         2019-06-03  Richard Biener  <rguenther@suse.de>
26066         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26067         full reference tree and record in ref->ref.
26068         (vn_reference_lookup_3): Pass in original ref to
26069         ao_ref_init_from_vn_reference.
26070         (vn_reference_lookup): Likewise.
26071         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26072         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26073         Handle non-decl bases in the original reference.
26075 2019-06-04  Martin Liska  <mliska@suse.cz>
26077         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
26078         number of references.
26079         (sem_item_optimizer::do_congruence_step):
26080         (sem_item_optimizer::worklist_push): Dump how references
26081         a class has.
26082         (sem_item_optimizer::worklist_pop): Use heap.
26083         (sem_item_optimizer::process_cong_reduction): Likewise.
26084         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
26086 2019-06-04  Martin Liska  <mliska@suse.cz>
26088         * ipa-icf.h (struct sem_usage_pair_hash): New.
26089         (sem_usage_pair_hash::hash): Likewise.
26090         (sem_usage_pair_hash::equal): Likewise.
26091         (struct sem_usage_hash): Likewise.
26092         * ipa-icf.c (sem_item::sem_item): Initialize
26093         referenced_by_count.
26094         (sem_item::add_reference): Register a reference
26095         in ref_map and not in target->usages.
26096         (sem_item::setup): Remove initialization of
26097         dead vectors.
26098         (sem_item::~sem_item): Remove usage of dead vectors.
26099         (sem_item::dump): Remove dump of references.
26100         (sem_item_optimizer::sem_item_optimizer): Initialize
26101         m_references.
26102         (sem_item_optimizer::read_section): Remove useless
26103         dump.
26104         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
26105         (sem_item_optimizer::build_graph): Pass m_references
26106         to ::add_reference.
26107         (sem_item_optimizer::verify_classes): Remove usage of dead
26108         vectors.
26109         (sem_item_optimizer::traverse_congruence_split): Return true
26110         when a class is split.
26111         (sem_item_optimizer::do_congruence_step_for_index): Use
26112         hash_map for look up of (sem_item *, index). That brings
26113         significant speed up.
26114         (sem_item_optimizer::do_congruence_step): Return true
26115         when a split is done.
26116         (congruence_class::is_class_used): Use referenced_by_count.
26118 2019-06-04  Alan Modra  <amodra@gmail.com>
26120         PR target/90689
26121         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
26122         error.
26124 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26126         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
26127         * config/rs6000/rs6000.c (direct_move_p): Adjust.
26128         (rs6000_secondary_reload_simple_move): Adjust.
26129         (rs6000_opt_masks): Neuter the "mfpgpr" option.
26130         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
26131         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
26132         comment.
26133         (power6x): Adjust.
26134         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
26135         (floatunssi<mode>2_lfiwzx): Adjust.
26136         (fix_trunc<mode>si2_stfiwx): Adjust.
26137         (fixuns_trunc<mode>si2_stfiwx): Adjust.
26138         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
26139         (mfpgpr): Mark as deprecated.
26140         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
26141         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
26142         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
26144 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26146         * config/rs6000/constraints.md (define_register_constraint "wg"):
26147         Delete.
26148         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26149         RS6000_CONSTRAINT_wg.
26150         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26151         (rs6000_init_hard_regno_mode_ok): Adjust.
26152         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
26153         Delete "wg" alternatives.
26154         * doc/md.texi (Machine Constraints): Adjust.
26156 2019-06-03  Alan Modra  <amodra@gmail.com>
26158         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
26159         (get_uncond_jump_length): Assert length less than INT_MAX and
26160         non-negative.
26162 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26164         PR middle-end/64242
26165         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
26166         block.
26167         (expand_builtin_nonlocal_goto): Likewise.
26169 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26171         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
26172         (aarch64_asm_output_external): Declare.
26173         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
26174         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
26175         (aarch64_asm_output_alias): New.
26176         (aarch64_asm_output_external): New.
26177         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
26178         (ASM_OUTPUT_EXTERNAL): Define.
26180 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
26181         * tree-vrp.h (value_range_base::nonzero_p): New.
26182         (value_range_base::set_nonnull): Rename to...
26183         (value_range_base::set_nonzero): ...this.
26184         (value_range_base::set_null): Rename to...
26185         (value_range_base::set_zero): ...this.
26186         (value_range::set_nonnull): Remove.
26187         (value_range::set_null): Remove.
26188         * tree-vrp.c (range_is_null): Remove.
26189         (range_is_nonnull): Remove.
26190         (extract_range_from_binary_expr): Use value_range_base::*zero_p
26191         instead of range_is_*null.
26192         (extract_range_from_unary_expr): Same.
26193         (value_range_base::set_nonnull): Rename to...
26194         (value_range_base::set_nonzero): ...this.
26195         (value_range::set_nonnull): Remove.
26196         (value_range_base::set_null): Rename to...
26197         (value_range_base::set_zero): ...this.
26198         (value_range::set_null): Remove.
26199         (extract_range_from_binary_expr): Rename set_*null uses to
26200         set_*zero.
26201         (extract_range_from_unary_expr): Same.
26202         (union_helper): Same.
26203         * vr-values.c (get_value_range): Use set_*zero instead of
26204         set_*null.
26205         (vr_values::extract_range_from_binary_expr): Same.
26206         (vr_values::extract_range_basic): Same.
26208 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26210         PR driver/90684
26211         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
26213 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26215         * config/aarch64/iterators.md (MAX_OPP): New code attr.
26216         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
26217         Rename to...
26218         (aarch64_<su>abd<mode>_3): ... This.
26219         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
26221 2019-06-03  Richard Biener  <rguenther@suse.de>
26223         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26224         full reference tree and record in ref->ref.
26225         (vn_reference_lookup_3): Pass in original ref to
26226         ao_ref_init_from_vn_reference.
26227         (vn_reference_lookup): Likewise.
26228         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26229         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26230         Handle non-decl bases in the original reference.
26232 2019-06-03  Martin Liska  <mliska@suse.cz>
26234         * doc/generic.texi: Remove Java Trees.
26236 2019-06-03  Martin Liska  <mliska@suse.cz>
26238         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
26239         returns 0 when operands are equal.
26241 2019-06-03  Richard Biener  <rguenther@suse.de>
26243         PR tree-optimization/90716
26244         * tree-loop-distribution.c (destroy_loop): Process blocks in
26245         correct order.
26247 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26249         PR target/88837
26250         * vector-builder.h (vector_builder::count_dups): New method.
26251         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
26252         Declare prototype.
26253         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
26254         (vec_init<mode><Vel>): New pattern.
26255         * config/aarch64/aarch64.c (emit_insr): New function.
26256         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
26257         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
26258         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
26259         (aarch64_sve_expand_vector_init): Define two overloaded functions.
26261 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26263         PR tree-optimization/90681
26264         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
26265         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
26266         special case for SLP, but fail on non-groupped loads.
26268 2019-06-03  Martin Liska  <mliska@suse.cz>
26270         * cfg.c (debug): Use TDF_DETAILS for debug and
26271         print edge info only once.
26273 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
26275         PR fortran/90539
26276         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
26278 2019-06-01  Martin Sebor  <msebor@redhat.com>
26280         PR middle-end/90694
26281         * tree-pretty-print.c (dump_generic_node): Add parentheses.
26283 2019-05-31  Jan Hubicka  <jh@suse.cz>
26285         * alias.c: Include ipa-utils.h.
26286         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26287         * ipa-devirt.c (prevailing_odr_type): New.
26288         * ipa-utils.h (previaling_odr_type): Declare.
26290 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26291             Hongtao Liu  <hongtao.liu@intel.com>
26293         PR target/89355
26294         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26295         NOTE_INSN_DELETED_LABEL check.
26297 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
26298             Robert Suchanek  <robert.suchanek@mips.com>
26300         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26301         and 3rd operands of the fmadd/fmsub/maddv builtin.
26303 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26305         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26306         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26307         on OMP_SIMD if not nested inside of worksharing loop that also has
26308         lastprivate conditional clause for the same decl.
26309         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26310         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26311         on simd.
26312         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
26313         on simd construct.
26314         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26315         on simd construct.
26316         (lower_lastprivate_clauses): Likewise.
26317         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26318         calling lower_rec_input_clauses.
26319         (lower_omp_for): Likewise.
26320         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26321         clause on simd construct.
26322         * omp-expand.c (expand_omp_simd): Initialize cond_var if
26323         OMP_CLAUSE__CONDTEMP_ clause is present.
26325         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26326         ivar and lvar.
26328 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
26330         PR c/43673
26331         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26332         TEX_D32, TEX_D64 or TEX_D128.
26334 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26336         * match.pd (~(vec?cst1:cst2)): New transformation.
26338 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26340         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26341         ((size_t)(A /[ex] B) CMP C): New transformation.
26343 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
26345         * doc/md.texi: Document define_insn_and_rewrite.
26346         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26347         * gensupport.c (queue_elem): Update comment.
26348         (replace_operands_with_dups): New function.
26349         (gen_rewrite_sequence): Likewise.
26350         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26351         * read-rtl.c (apply_subst_iterator): Likewise.
26352         (add_condition_to_rtx, named_rtx_p): Likewise.
26353         (rtx_reader::read_rtx_operand): Likewise.
26354         * config/aarch64/aarch64-sve.md
26355         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26356         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26357         define_insn_and_rewrite.
26358         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26359         Remove separate define_split.
26361 2019-05-31  Jan Hubicka  <jh@suse.cz>
26363         * tree-ssa-alias.c (type_has_components_p): New function.
26364         (aliasing_component_refs_p): Use it.
26366 2019-05-31  Martin Liska  <mliska@suse.cz>
26368         * gdbhooks.py: Add const_tree to TreePrinter.
26370 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
26372         PR debug/86964
26373         * common.opt (feliminate-unused-debug-symbols): Enable by default.
26374         * doc/invoke.texi (Debugging Options): Document new default of
26375         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26377 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26379         PR tree-optimization/90671
26380         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26381         template_block used to be empty on the first call, don't use
26382         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26383         seq with bb_seq and set it with set_bb_seq.
26385 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
26387         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26389 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26390             Michael Meissner  <meissner@linux.ibm.com>
26392         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26393         (prefixed_mem_operand): Likewise.
26394         (non_prefixed_mem_operand): Likewise.
26395         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26396         prototype.
26397         * config/rs6000/rs6000.c (print_operand_address): Handle
26398         PC-relative addresses.
26399         (mode_supports_prefixed_address_p): New function.
26400         (rs6000_prefixed_address): New function.
26401         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26402         (SYMBOL_REF_PCREL_P): Likewise.
26404 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26406         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26407         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26408         (gimplify_omp_for): If worksharing loop with lastprivate conditional
26409         is nested inside of parallel region, add _condtemp_ clause to both.
26410         * tree-nested.c (convert_nonlocal_omp_clauses,
26411         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26412         assertion failure.
26413         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26414         member.
26415         * omp-general.c (omp_extract_for_data): Compute it.
26416         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26417         (lower_rec_input_clauses): Likewise.
26418         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26419         clause is already present, just add one further one after it.
26420         (lower_lastprivate_clauses): Handle cond_ptr with array type.
26421         (lower_send_shared_vars): Clear _condtemp_ vars.
26422         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26423         or section or taskgroup.
26424         * omp-expand.c (determine_parallel_type): Disallow combining only if
26425         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
26426         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26427         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26428         expand_omp_for_static_chunk, expand_omp_for): Use
26429         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26430         determine if a special set of API routines are needed and if condtemp
26431         needs to be initialized, while always initialize cond_var if
26432         fd->lastprivate_conditional is non-zero.
26434 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26435             Michael Meissner  <meissner@linux.ibm.com>
26437         * config/rs6000/constraints.md (eI): New constraint.
26438         * config/rs6000/predicates.md (cint34_operand): New predicate.
26439         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26440         (SIGNED_34BIT_OFFSET_P): Likewise.
26441         * doc/md.texi (eI): Document constraint.
26443 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
26445         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26447 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26448             Michael Meissner  <meissner@linux.ibm.com>
26450         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26451         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26452         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26453         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26454         (OTHER_FUTURE_MASKS): Likewise.
26455         (POWERPC_MASKS): Likewise.
26456         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26457         specified without -mprefixed-addr or -mcpu=future.  Error if
26458         -mprefixed-addr is specified without -mcpu=future.
26459         (rs6000_opt_masks): Add entry for prefixed-addr.
26460         * rs6000.opt (mprefixed-addr): New option.
26462 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
26464         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26465         cfun->is_thunk check.
26467 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26469         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26470         to length.
26472 2019-05-30  Martin Liska  <mliska@suse.cz>
26474         * gdbinit.in: Fix 'ptc' command.  Add trt
26475         that prints TREE_TYPE($).
26477 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
26478             Alan Modra  <amodra@gmail.com>
26480         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26481         calls here...
26482         (rs6000_indirect_call_template_1): ...and here.
26483         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
26484         plt16_ha, plt16_lo, mtctr indirect calls.  Use
26485         rs6000_pltseq_enum.
26486         (rs6000_decl_ok_for_sibcall): New function.
26487         (rs6000_function_ok_for_sibcall): Refactor.
26488         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26489         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26490         when pcrel.  Reorganize.
26491         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26492         * rs6000.h (rs6000_pltseq_enum): New enum.
26493         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26494         (*pltseq_tocsave): Use rs6000_pltseq_enum.
26495         (*pltseq_plt16_ha): Likewise.
26496         (*pltseq_plt16_lo): Likewise.
26497         (*pltseq_mtctr): Likewise.
26498         (*pltseq_plt_pcrel): New insn.
26499         (*call_local_aix): Handle @notoc calls.
26500         (*call_value_local_aix): Likewise.
26501         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26502         (*call_value_nonlocal_aix): Likewise.
26503         (*call_indirect_pcrel): New insn.
26504         (*call_value_indirect_pcrel): Likewise.
26506 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
26508         * config/i386/sse.md (*save_multiple<mode>): Rename from
26509         save_multiple<mode>.
26510         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26511         (*restore_multiple_and_return<mode>): Rename from
26512         restore_multiple_and_return<mode>.
26513         (*restore_multiple_leave_return<mode>): Rename from
26514         restore_multiple_leave_return<mode>.
26516 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
26518         * config.gcc (rx-*-linux*): New target.
26519         * config/rx/elf.opt: New file.
26520         * config/rx/linux.h: Likewise.
26521         * config/rx/t-linux: Likewise.
26522         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26523         make it zero.
26524         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26525         (ASM_APP_OFF): Likewise.
26526         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26527         moved elsewhere.
26529 2019-05-29  Jan Hubicka  <jh@suse.cz>
26531         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26532         variants are pointer equivalent.
26534 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26536         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26537         * config/aarch64/aarch64-sve2.md: New file.
26538         (<u>avg<mode>3_floor): New pattern.
26539         (<u>avg<mode>3_ceil): Likewise.
26540         (*<sur>h<addsub><mode>): Likewise.
26541         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26542         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26544 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
26546         PR bootstrap/90543
26547         * optc-save-gen.awk: In cl_optimization_print, use correct condition
26548         for var_opt_string printing.  In cl_optimization_print_diff, print
26549         (null) instead of invoking undefined behavior if one of the
26550         var_opt_string pointers is NULL and use && instead of first || in the
26551         guarding condition.  For var_target_other options, handle const char *
26552         target variables similarly to const char * optimize node variables.
26554 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
26556         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26557         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26558         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26559         Add autib1716 and pacib1716 initialisation.
26560         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26561         for autib1716 and pacib1716.
26562         * config/aarch64/aarch64-protos.h (aarch64_key_type,
26563         aarch64_post_cfi_startproc): Define.
26564         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26565         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26566         aarch64_handle_pac_ret_protection): Set default sign key to A.
26567         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26568         aarch64_expand_prologue): Add check for b-key.
26569         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26570         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26571         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26572         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26573         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26574         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26575         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26576         * config/aarch64/aarch64.md (do_return): Add check for b-key.
26577         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26578         pauth_hint_num_a with pauth_hint_num.
26579         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26580         pauth_hint_num_a with pauth_hint_num.
26581         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26582         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26583         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26584         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26585         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26586         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26587         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26588         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26589         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26590         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26591         UNSPEC_AUTIA1716 respectively.
26592         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26593         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26594         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26595         * doc/invoke.texi (-mbranch-protection): Add b-key type.
26596         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26597         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26599 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
26601         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26602         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26603         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26604         explicit clause on combined parallel into implicit shared clause.
26605         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26606         and firstprivate if the decl has one too from combined parallel to
26607         the worksharing construct.
26609 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
26610             Michael Meissner  <meissner@linux.ibm.com>
26612         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26614 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
26616         * rtl.h (LABEL_REF_P): New #define.
26618 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
26620         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26622 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26624         * internal-fn.c: Marked mask_load_direct as vectorizable.
26625         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26626         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26627         combined even if masks different with allow_slp_p param.
26628         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26629         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26630         dissolve SLP-only vectorizable groups when SLP has been discarded.
26631         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26632         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26633         masks.
26634         (vect_build_slp_tree_1): Fixed comment typo.
26635         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26636         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26637         loads for SLP only.
26638         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26639         vectorizable.
26640         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26642 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26644         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26645         Remove obsolete use_thunk reference.
26646         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26647         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26648         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26649         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26650         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26651         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26652         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26653         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26654         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26656 2019-05-28  Nathan Sidwell  <nathan@acm.org>
26658         * tree.h (IDENTIFIER_ANON_P): New.
26659         (anon_aggrname_format, anon_aggname_p): Don't declare.
26660         (make_anon_name): Declare.
26661         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26662         (hash_tree): Likewise.
26663         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26664         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26665         (anon_cnt, make_anon_name): New.
26667 2019-05-28  Martin Liska  <mliska@suse.cz>
26669         PR other/90315
26670         * opts-global.c (decode_options): Print help for all
26671         help_option_arguments.
26672         * opts.c (print_help): Add new argument.
26673         (common_handle_option): Remember all values into
26674         help_option_arguments.
26675         * opts.h (print_help): Add new argument.
26677 2019-05-28  Martin Liska  <mliska@suse.cz>
26679         PR ipa/90555
26680         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26681         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26682         (func_checker::compare_bb): Call compare_loops.
26684 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
26686         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26687         on sections construct.
26688         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26689         construct.
26690         (lower_omp_sections): Handle lastprivate conditional.
26691         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26692         lastprivate_conditional_map.
26693         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26695         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26696         critical, taskgroup and section regions when looking for a region
26697         with non-NULL lastprivate_conditional_map.
26699 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
26701         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26702         (*ix86_gen_sub3): Ditto.
26703         (*ix86_gen_sub3_carry): Ditto.
26704         (*ix86_gen_one_cmpl2): Ditto.
26705         (*ix86_gen_andsp): Ditto.
26706         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26707         (gen_and2_insn): New static function.
26708         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26709         Use gen_add3_insn instead of ix86_gen_add3.
26710         (ix86_expand_split_stack_prologue): Use gen_add2_insn
26711         instead of ix86_gen_add3.
26712         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26713         Use gen_sub3_insn instead of ix86_gen_sub3.
26714         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26715         instead of ix86_gen_add3.
26716         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26717         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
26718         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26719         * config/i386/i386-options.c (ix86_option_override_internal):
26720         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26721         ix86_gen_one_cmpl2 and ix86_gen_andsp.
26723 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26725         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26726         and DW_OP_GNU_const_index opcodes.
26728 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
26730         * config/i386/i386.h (STACK_SIZE_MODE): Define.
26732 2019-05-27  Richard Biener  <rguenther@suse.de>
26734         PR tree-optimization/90637
26735         * tree-ssa-sink.c (statement_sink_location): Honor the
26736         computed sink location for single-uses.
26738 2019-05-27  Richard Biener  <rguenther@suse.de>
26740         PR middle-end/90610
26741         * match.pd (vec_perm): Avoid clobbering op0 when not generating
26742         a bit-insert.
26744 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26746         * config/i386/i386.md (@sub<mode>3_carry): Rename
26747         from sub<mode>3_carry.
26748         (@leave_<mode>): New expander.
26749         (*leave): Rename from leave.
26750         (*leave_rex64): Rename from leave_rex64.
26751         (@monitorx_<mode>): Rename from monitorx_<mode>.
26752         (@clzero_<mode>): Rename from clzero_<mode>.
26753         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26754         from sse3_monitor_<mode>.
26755         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26756         (*ix86_gen_leave): Ditto.
26757         (*ix86_gen_monitor): Ditto.
26758         (*ix86_gen_monitorx): Ditto.
26759         (*ix86_gen_clzero): Ditto.
26760         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26761         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26762         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26763         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26764         Use gen_sse3_monitor instead of ix86_gen_monitor.
26765         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26766         instead of ix86_gen_monitorx.
26767         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26768         instead of ix86_gen_clzero.
26769         * config/i386/i386-options.c (ix86_option_override_internal):
26770         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26771         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26773 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26775         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26776         Rename from tls_global_dynamic_64_<mode>.
26777         (@tls_local_dynamic_base_64_<mode>): Rename from
26778         tls_local_dynamic_base_64_<mode>.
26779         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26780         Remove indirect function.
26781         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26782         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26783         instead of ix86_gen_tls_global_dynamic_64.
26784         Use gen_tls_local_dynamic_base_64 instead of
26785         ix86_gen_tls_local_dynamic_base_64.
26786         * config/i386/i386-options.c (ix86_option_override_internal):
26787         Do not initialize ix86_gen_tls_global_dynamic_64 and
26788         ix86_gen_tls_local_dynamic_base_64.
26790 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26792         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26793         Rename from pro_epilogue_adjust_stack_<mode>_add.
26794         (@pro_epilogue_adjust_stack_sub_<mode>)
26795         Rename from pro_epilogue_adjust_stack_<mode>_sub.
26796         (@allocate_stack_worker_probe_<mode>):
26797         Rename from allocate_stack_worker_probe_<mode>.
26798         (allocate_stack): Use gen_allocate_stack_worker_probe.
26799         (probe_stack): Use gen_probe_stack_1.
26800         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26801         (@adjust_stack_and_probe_<mode>): Rename from
26802         adjust_stack_and_probe<mode>.
26803         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26804         (stack_protect_set): Use gen_stack_protect_set_1.
26805         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26806         (stack_protect_test): Use gen_stack_protect_test_1.
26807         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26808         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26809         Remove indirect function.
26810         (*ix86_gen_adjust_stack_and_probe): Ditto.
26811         (*ix86_gen_probe_stack_range): Ditto.
26812         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26813         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26814         (ix86_adjust_stack_and_probe_stack_clash): Use
26815         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26816         (ix86_adjust_stack_and_probe): Ditto.
26817         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26818         of ix86_gen_probe_stack_range.
26819         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26820         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26821         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26822         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
26823         CODE_FOR_stack_protect_test_{si,di}.
26824         * config/i386/i386-options.c (ix86_option_override_internal):
26825         Do not initialize ix86_gen_allocate_stack_worker,
26826         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26828 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
26830         * doc/invoke.texi (Link Options): Many editorial changes around
26831         -flinker-output.
26833 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26835         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26836         pre-Solaris 11 referene and most Studio compiler details.
26838 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
26840         PR target/90530
26841         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26842         DImode to SImode in floating-point registers on 64-bit target.
26843         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26844         register_operand in xmpyu patterns.
26846 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26848         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26849         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26850         OMP_CLAUSE__REDUCTEMP_.
26851         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26852         OMP_CLAUSE__CONDTEMP_.
26853         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26854         * tree-pretty-print.c (dump_omp_clause): Likewise.
26855         * tree-nested.c (convert_nonlocal_omp_clauses,
26856         convert_local_omp_clauses): Likewise.
26857         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26858         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
26859         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26860         on OMP_FOR.
26861         (gimplify_omp_for): Warn and disable conditional modifier from
26862         lastprivate on loop iterators.
26863         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26864         member.
26865         * omp-general.c (omp_extract_for_data): Initialize it.
26866         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26867         member.
26868         (delete_omp_context): Delete it.
26869         (lower_lastprivate_conditional_clauses): New function.
26870         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26871         handle lastprivate conditional clauses.
26872         (lower_reduction_clauses): Add CLIST argument, emit it into
26873         the critical section if any.
26874         (lower_omp_sections): Adjust lower_lastprivate_clauses and
26875         lower_reduction_clauses callers.
26876         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26877         to lower_lastprivate_clauses.
26878         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26879         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26880         clist into a critical section if not emitted there already by
26881         lower_reduction_clauses.
26882         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26883         callers.
26884         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26885         conditional variables.
26886         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26887         clause is present.
26888         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26889         expand_omp_for_static_chunk): Handle lastprivate conditional.
26890         (expand_omp_for): Handle fd.lastprivate_conditional like
26891         fd.have_reductemp.
26893 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26895         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26896         kernel does not exit cleanly.
26897         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26899 2019-05-24  Jason Merrill  <jason@redhat.com>
26901         Revert:
26902         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26904 2019-05-24  Richard Biener  <rguenther@suse.de>
26906         PR testsuite/90607
26907         * tree-loop-distribution.c (struct partition): Add location
26908         member.
26909         (partition_alloc): Initialize all fields.
26910         (generate_memset_builtin): Use the location recorded in the
26911         partition for the generated call.
26912         (generate_memcpy_builtin): Likewise.
26913         (classify_partition): Record the location of a single store
26914         as location for the partition.
26916 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26918         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26919         for lo-part.
26921 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
26923         PR target/90588
26924         * common/config/aarch64/aarch64-common.c
26925         (aarch64_rewrite_selected_cpu): Change local temporary variable
26926         type from unsigned long to uint64_t.
26927         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26928         aarch64_get_extension_string_for_isa_flags): Change declaration to
26929         match new definition by replacing unsigned long with uint64_t.
26931 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26933         PR target/90568
26934         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26935         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
26936         Handle stack_protect_test_<mode> codegen similarly to corresponding
26937         sub instruction.
26939 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
26941         * config/i386/darwin.h: Reject -mfentry*.
26942         * doc/sourcebuild.texi: Document mfentry target support.
26944 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26946         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26947         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
26948         false for PC-relative functions.
26949         (rs6000_output_function_prologue): Change called function name to
26950         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
26951         name,1" for PC-relative functions.
26952         (rs6000_elf_declare_function_name): Change called function name to
26953         rs6000_global_entry_point_prologue_needed_p.
26955 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
26957         PR target/90552
26958         * config/i386/i386.c (gen_rtx_cost):
26959         Use ix86_tune_cost instead of ix86_cost.
26961 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26962             Michael Meissner  <meissner@linux.ibm.com>
26963             Segher Boessenkool  <segher@kernel.crashing.org>
26965         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26966         OPTION_MASK_PCREL.
26967         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26968         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26969         (rs6000_fndecl_pcrel_p): Likewise.
26970         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26971         error if -mpcrel is requested without -mcpu=future.
26972         (rs6000_opt_masks): Add entry for pcrel.
26973         (rs6000_fndecl_pcrel_p): New function.
26974         (rs6000_pcrel_p): Likewise.
26975         * config/rs6000/rs6000.opt (mpcrel): New option.
26976         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26978 2019-05-23  Jan Hubicka  <jh@suse.cz>
26979             Martin Liska  <mliska@suse.cz>
26981         PR tree-optimization/90576
26982         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26983         poly_int_tree_p.
26984         (aliasing_component_refs_p): Fix three way size compare conditional;
26985         give up earlier in case we can not decide on equivalence.
26987 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26988             Michael Meissner  <meissner@linux.ibm.com>
26989             Segher Boessenkool  <segher@kernel.crashing.org>
26991         * config.gcc: Add future cpu.
26992         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26993         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26994         #define.
26995         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26996         (RS6000_CPU): New instantiation for future cpu.
26997         * config/rs6000/rs6000-opts.h (enum processor_type): Add
26998         PROCESSOR_FUTURE.
26999         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
27000         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
27001         * config/rs6000/rs6000-tables.opt: Regenerate.
27002         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
27003         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
27004         (rs6000_machine_from_flags): Handle future cpu.
27005         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
27006         PROCESSOR_POWER9 for now.
27007         (rs6000_adjust_cost): Likewise.
27008         (rs6000_issue_rate): Likewise.
27009         (rs6000_register_move_cost): Likewise.
27010         (rs6000_opt_masks): Add entry for future.
27011         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
27012         (MASK_FUTURE): New #define.
27013         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
27014         * config/rs6000/rs6000.opt (mfuture): New target option.
27015         * doc/invoke.texi (mcpu): Add future cpu.
27017 2019-05-23  Martin Liska  <mliska@suse.cz>
27019         PR c++/90587
27020         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
27021         operation points to a temporary (pointed via tree_to_wide_ref)
27022         that is out of scope after the &.
27024 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
27026         PR c++/90592
27027         * doc/extend.texi (Function Names): Add missing word.
27029 2019-05-23  Richard Biener  <rguenther@suse.de>
27031         PR tree-optimization/88440
27032         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
27033         at -O[2s]+.
27034         * tree-loop-distribution.c (generate_memset_builtin): Fold the
27035         generated call.
27036         (generate_memcpy_builtin): Likewise.
27037         (distribute_loop): Pass in whether to only distribute patterns.
27038         (prepare_perfect_loop_nest): Also allow size optimization.
27039         (pass_loop_distribution::execute): When optimizing a loop
27040         nest for size allow pattern replacement.
27042 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
27044         PR target/90568
27045         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
27046         of xor.
27048 2019-05-23  Martin Liska  <mliska@suse.cz>
27050         PR sanitizer/90570
27051         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
27052         expression similarly to gimplify_decl_expr.
27054 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27056         * cse.c (cse_dump_path): s/dump_file/f.
27058 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
27060         PR c++/90462
27061         * diagnostic-format-json.cc: Include "selftest.h".
27062         (json_from_expanded_location): Only add "file" key for non-NULL
27063         file strings.
27064         (json_from_location_range): Don't add "start" and "finish"
27065         children if they are UNKNOWN_LOCATION.
27066         (selftest::test_unknown_location): New selftest.
27067         (selftest::test_bad_endpoints): New selftest.
27068         (selftest::diagnostic_format_json_cc_tests): New function.
27069         * json.cc (json::object::get): New function.
27070         (selftest::test_object_get): New selftest.
27071         (selftest::json_cc_tests): Call it.
27072         * json.h (json::object::get): New decl.
27073         * selftest-run-tests.c (selftest::run_tests): Call
27074         selftest::diagnostic_format_json_cc_tests.
27075         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
27076         decl.
27078 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
27079             Andrew Stubbs  <amd@codesourcery.com>
27081         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
27082         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
27083         (kernel): Rename to...
27084         (main_kernel): ... this.
27085         (load_image): Load _init_array and _fini_array kernels.
27086         (run): Add argument for kernel to run.
27087         (main): Run init_array_kernel before main_kernel, and
27088         fini_array_kernel after.
27089         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
27090         amdgpu_hsa_kernel attribute on functions.
27091         (gcn_disable_constructors): Delete.
27092         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
27093         * config/gcn/crt0.c (size_t): Define.
27094         (_init_array, _fini_array): New.
27095         (__preinit_array_start, __preinit_array_end,
27096         __init_array_start, __init_array_end,
27097         __fini_array_start, __fini_array_end): Declare weak references.
27099 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
27101         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
27103 2019-05-22  Jason Merrill  <jason@redhat.com>
27105         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27107 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
27109         PR target/88483
27110         * config/i386/i386-options.c (ix86_init_machine_status): Set
27111         stack_frame_required to true.
27112         * config/i386/i386.c (ix86_get_frame_size): New function.
27113         (ix86_frame_pointer_required): Replace get_frame_size with
27114         ix86_get_frame_size.
27115         (ix86_compute_frame_layout): Likewise.
27116         (ix86_find_max_used_stack_alignment): Changed to void.  Set
27117         stack_frame_required.
27118         (ix86_finalize_stack_frame_flags): Always call
27119         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
27120         ix86_get_frame_size.
27121         * config/i386/i386.h (machine_function): Add stack_frame_required.
27123 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
27125         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
27127 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
27129         * common/config/aarch64/aarch64-common.c
27130         (struct aarch64_option_extension, struct processor_name_to_arch,
27131         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
27132         aarch64_contains_opt,
27133         aarch64_get_extension_string_for_isa_flags): Change type of
27134         variables storing flags to uint64_t.
27135         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
27136         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
27137         * config/aarch64/aarch64.c (struct processor,
27138         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
27139         aarch64_validate_march, aarch64_override_options,
27140         aarch64_option_print, aarch64_handle_attr_isa_flags,
27141         aarch64_declare_function_name, aarch64_start_file): Make flag
27142         variables uint64_t.
27143         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
27144         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
27145         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
27146         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
27147         * config/aarch64/driver-aarch64.c
27148         (struct aarch64_arch_extension, struct aarch64_core_data,
27149         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
27150         flag variables uint64_t.
27151         * doc/invoke.texi: Add documentation for new arguments.
27153 2019-05-22  Richard Biener  <rguenther@suse.de>
27155         * alias.c (ao_ref_from_mem): Move stack-slot sharing
27156         rewrite ...
27157         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
27159 2019-05-22  Martin Liska  <mliska@suse.cz>
27161         PR lto/90500
27162         * doc/extend.texi: Document the change.
27164 2019-05-22  Richard Biener  <rguenther@suse.de>
27166         PR tree-optimization/90450
27167         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
27168         (mem_ref_hasher::equal): Check it.
27169         (mem_ref_alloc): Initialize it.
27170         (gather_mem_refs_stmt): Set it.
27172 2019-05-22  Richard Biener  <rguenther@suse.de>
27174         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
27175         Add ABS_EXPR.
27176         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
27177         as ABSU_EXPR.
27179 2019-05-22  Alan Modra  <amodra@gmail.com>
27181         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
27182         (ASM_CPU_SPEC): Conditionally add -many.
27183         * config/rs6000/rs6000.c (rs6000_machine): New static var.
27184         (rs6000_machine_from_flags, emit_asm_machine): New functions..
27185         (rs6000_file_start): ..extracted from here, and modified to
27186         test all ISA bits.
27187         (rs6000_output_function_prologue): Emit .machine as necessary.
27189 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
27191         PR middle-end/90553
27192         * ira-lives.c (process_bb_node_lives): Consider defs
27193         for a call insn to be die before the call, not after.
27195         * function.c (assign_parm_setup_block): Raise alignment of
27196         stacked parameter only for STRICT_ALIGNMENT targets.
27198 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27200         * config/rs6000/constraints.md (define_register_constraint "wz"):
27201         Delete.
27202         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27203         RS6000_CONSTRAINT_wz.
27204         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27205         (rs6000_init_hard_regno_mode_ok): Adjust.
27206         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
27207         * doc/md.texi (Machine Constraints): Adjust.
27209 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27211         * config/rs6000/constraints.md (define_register_constraint "wl"):
27212         Delete.
27213         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27214         RS6000_CONSTRAINT_wl.
27215         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27216         (rs6000_init_hard_regno_mode_ok): Adjust.
27217         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
27218         * doc/md.texi (Machine Constraints): Adjust.
27220 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27222         * config/rs6000/constraints.md (define_register_constraint "wm"):
27223         Delete.
27224         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27225         RS6000_CONSTRAINT_wm.
27226         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27227         (rs6000_init_hard_regno_mode_ok): Adjust.
27228         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
27229         * doc/md.texi (Machine Constraints): Adjust.
27231 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27233         * config/rs6000/constraints.md (define_register_constraint "wk"):
27234         Delete.
27235         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27236         RS6000_CONSTRAINT_wk.
27237         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27238         (rs6000_init_hard_regno_mode_ok): Adjust.
27239         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
27240         * doc/md.texi (Machine Constraints): Adjust.
27242 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27244         * config/rs6000/constraints.md (define_register_constraint "wj"):
27245         Delete.
27246         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27247         RS6000_CONSTRAINT_wj.
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 "p8v".
27251         (VS_64dm): Delete.
27252         * config/rs6000/vsx.md: Ditto.
27253         * doc/md.texi (Machine Constraints): Adjust.
27255 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27257         * config/rs6000/constraints.md (define_register_constraint "wh"):
27258         Delete.
27259         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27260         RS6000_CONSTRAINT_wh.
27261         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27262         (rs6000_init_hard_regno_mode_ok): Adjust.
27263         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
27264         * doc/md.texi (Machine Constraints): Adjust.
27266 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27268         PR target/90547
27269         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27270         Avoid calling gen_lowpart with CONST operand.
27272 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
27274         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
27275         field template_last_to_copy.
27276         (ssa_create_duplicates): Set it, and use it.  Attempt to
27277         preserve more debug stmts.
27279 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27281         * config/i386/sse.md (VF1_AVX2): New mode iterator.
27282         (signbit<mode>2): New expander
27284 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
27286         PR bootstrap/87338
27287         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27288         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27290 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27292         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27293         %ebx and %ecx bafore calling cpuid with leaf 1 or
27294         non-constant leaf argument.
27296 2019-05-21  Alan Modra  <amodra@gmail.com>
27298         PR target/90545
27299         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27300         power9 direct move cost.
27302 2019-05-21  Richard Biener  <rguenther@suse.de>
27304         PR middle-end/90510
27305         * fold-const.c (fold_read_from_vector): New function.
27306         * fold-const.h (fold_read_from_vector): Declare.
27307         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27308         single-element insert permutations.  Canonicalize selector
27309         further and fix issue with last commit.
27311 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27313         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27314         parameter with default value false to declaration.
27315         (split_edges_for_insertion): New inline function.  Wrapper for
27316         split_critical_edges with for_edge_insertion_p = true.
27317         * tree-cfg.c (split_critical_edges): Don't split non-critical
27318         edges if for_edge_insertion_p is false.  Fix whitespace.
27319         * tree-ssa-pre.c (pass_pre::execute): Call
27320         split_edges_for_insertion instead of split_critical_edges.
27321         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27322         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27323         (pass_data_sink_code): Update function name in the comment.
27325 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27327         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27328         around is_value_included_in that knows how to handle BIT_AND_EXPR.
27329         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
27330         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27331         positives.
27333 2019-05-21  Martin Liska  <mliska@suse.cz>
27335         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27336         an extra newline.
27337         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27338         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27339         vec_lvsr.
27340         * config/rs6000/rs6000.c (rs6000_option_override_internal):
27341         Quote a C type.
27342         (rs6000_function_arg): Likewise.
27343         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27344         (rs6000_expand_ternop_builtin): Use interval syntax.
27345         (get_element_number): Likewise.
27346         (altivec_expand_builtin): Likewise.
27347         (rs6000_get_function_versions_dispatcher): Quote target_clones.
27349 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27351         PR c++/59813
27352         PR target/90418
27353         * function.h (struct function): Add calls_eh_return member.
27354         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27355         gimplifying __builtin_eh_return call.
27356         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27357         to cfun.
27358         (expand_call_inline): Or in src_cfun->calls_eh_return into
27359         dst_cfun->calls_eh_return.
27360         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27361         cfun->calls_eh_return.
27362         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27363         * lto-streamer-out.c (output_struct_function_base): Write
27364         calls_eh_return.
27366 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
27368         PR rtl-optimization/43147
27369         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27370         IX86_BUILTIN_SHUFPD.
27372 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27374         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27375         (refs_may_alias_p_1): ... here; update stats.
27376         (refs_may_alias_p): Do not update stats here.
27378 2019-05-20  Richard Biener  <rguenther@suse.de>
27380         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27381         doesn't produce pointers.
27382         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27383         the first operand points to.
27385 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27387         * tree-ssa-alias.c (compare_sizes): New function.
27388         (sompare_type_sizes): New function
27389         (aliasing_component_refs_p): Use it.
27390         (indirect_ref_may_alias_decl_p): Likewise.
27392 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27394         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27396 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27398         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27399         (LIBLSAN_EARLY_SPEC): Likewise.
27400         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27402 2019-05-20  Martin Liska  <mliska@suse.cz>
27404         * config/i386/i386.c (ix86_libc_has_fast_function):
27405         Add ATTRIBUTE_UNUSED for the argument.
27407 2019-05-20  Richard Biener  <rguenther@suse.de>
27409         * gimple-match-head.c: Include vec-perm-indices.h.
27410         * generic-match-head.c: Likewise.
27411         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27412         is included.
27413         * fold-const.c (fold_vec_perm): Export.
27414         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27415         (match.pd): ...here.
27417 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27419         * cfgloop.h (struct loop): Add simdlen member.
27420         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27421         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27422         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27423         as new argument to autovectorize_vector_sizes target hook.  If
27424         loop->simdlen, pick up vector size where the vectorization factor
27425         is equal to loop->simd, and if there is none, fall back to the first
27426         successful one.
27427         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27428         caller.
27429         * omp-low.c (omp_clause_aligned_alignment): Likewise.
27430         * omp-general.c (omp_max_vf): Likewise.
27431         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27432         * tree-vect-slp.c (vect_slp_bb): Likewise.
27433         * target.def (autovectorize_vector_sizes): Add ALL argument and
27434         document it.
27435         * doc/tm.texi: Adjust documentation.
27436         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27437         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27438         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27439         bool argument.
27440         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27441         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27442         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27443         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
27444         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27445         preferred vector size is not 512-bit or 256-bit, just put those
27446         unpreferred ones last.
27448 2019-05-20  Martin Liska  <mliska@suse.cz>
27450         * targhooks.c (default_libc_has_fast_function): New function.
27451         * targhooks.h (default_libc_has_fast_function): Likewise.
27453 2019-05-20  Martin Liska  <mliska@suse.cz>
27455         PR middle-end/90263
27456         * builtins.c (expand_builtin_memory_copy_args): When having a
27457         target with fast mempcpy implementation do now use memcpy.
27458         * config/i386/i386.c (ix86_libc_has_fast_function): New.
27459         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27460         * doc/tm.texi: Likewise.
27461         * doc/tm.texi.in: Likewise.
27462         * target.def:
27463         * expr.c (emit_block_move_hints): Add 2 new arguments.
27464         * expr.h (emit_block_move_hints): Bail out when libcall
27465         to memcpy would be used.
27467 2019-05-20  Martin Liska  <mliska@suse.cz>
27469         * profile-count.c: Add vertical spacing in order
27470         to separate functions.
27471         * profile-count.h: Likewise.
27473 2019-05-20  Martin Liska  <mliska@suse.cz>
27475         * profile-count.h: Do not use full qualified
27476         names if possible.
27477         * profile-count.c (profile_count::to_frequency): Likewise.
27479 2019-05-20  Martin Liska  <mliska@suse.cz>
27481         * profile-count.h (enum profile_quality): Use capital letters
27482         for enum value names.  Use the adjusted names.
27483         * profile-count.c: Use the adjusted names.
27485 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27487         * config/rs6000/constraints.md (define_register_constraint "wH"):
27488         Delete.
27489         (define_register_constraint "wI"): Delete.
27490         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27491         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27492         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27493         (rs6000_init_hard_regno_mode_ok): Adjust.
27494         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27495         resp. "d", or with "wa" as appropriate, all with "p8v".
27496         * config/rs6000/vsx.md: Ditto.
27497         * doc/md.texi (Machine Constraints): Adjust.
27499 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27501         * config/rs6000/constraints.md (define_register_constraint "wy"):
27502         Delete.
27503         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27504         RS6000_CONSTRAINT_wy.
27505         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27506         (rs6000_init_hard_regno_mode_ok): Adjust.
27507         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27508         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27509         (define_mode_attr Fisa): New.
27510         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27511         * doc/md.texi (Machine Constraints): Adjust.
27513 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27515         * config/rs6000/constraints.md (define_register_constraint "wu"):
27516         Delete.
27517         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27518         RS6000_CONSTRAINT_wu.
27519         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27520         (rs6000_init_hard_regno_mode_ok): Adjust.
27521         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27522         both with "p8v".
27523         (define_mode_attr Fa): Delete.
27524         * config/rs6000/vsx.md: Ditto.
27525         * doc/md.texi (Machine Constraints): Adjust.
27527 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27529         * config/rs6000/constraints.md (define_register_constraint "wJ"):
27530         Delete.
27531         (define_register_constraint "wK"): Delete.
27532         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27533         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27534         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27535         (rs6000_init_hard_regno_mode_ok): Adjust.
27536         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27537         Replace "wK" constraint by "wH" with "p9v".
27538         * config/rs6000/vsx.md: Ditto.
27539         * doc/md.texi (Machine Constraints): Adjust.
27541 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27543         * config/rs6000/constraints.md (define_register_constraint "wb"):
27544         Delete.
27545         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27546         RS6000_CONSTRAINT_wb.
27547         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27548         (rs6000_init_hard_regno_mode_ok): Adjust.
27549         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27550         * config/rs6000/vsx.md: Ditto.
27551         * doc/md.texi (Machine Constraints): Adjust.
27553 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27555         * config/rs6000/constraints.md (define_register_constraint "wo"):
27556         Delete.
27557         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27558         RS6000_CONSTRAINT_wo.
27559         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27560         (rs6000_init_hard_regno_mode_ok): Adjust.
27561         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27562         * config/rs6000/altivec.md: Ditto.
27563         * doc/md.texi (Machine Constraints): Adjust.
27565 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
27567         * config/darwin-c.c (darwin_register_objc_includes): Do not
27568         prepend the sysroot when building gnu-runtime header search
27569         paths.
27571 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
27573         * config/darwin.c (darwin_file_end): Use switch_to_section ()
27574         instead of direct output of the asm.
27576 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
27578         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27579         argument to be type bool (was int before).
27580         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
27581         at first use.  Use type bool for some variables.  Fix a theoretical
27582         eh_return bug for svr4.
27584 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
27586         * config/rs6000/rs6000.md (isa): New attribute.
27587         (enabled): New attribute.
27589 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
27591         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27592         assemble_start_function and assemble_end_function.
27594 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
27596         PR middle-end/89433
27597         * omp-general.c (oacc_verify_routine_clauses): Change formal
27598         parameters.  Add checking if already marked with an OpenACC
27599         'routine' directive.  Adjust all users.
27601         PR middle-end/89433
27602         * omp-general.c (oacc_build_routine_dims): Move some of its
27603         processing into...
27604         (oacc_verify_routine_clauses): ... this new function.
27605         * omp-general.h (oacc_verify_routine_clauses): New prototype.
27607 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
27609         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27610         formating of picbase labels to match other ports.
27612 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
27614         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27615         in the generated code.
27617 2019-05-16  Martin Sebor  <msebor@redhat.com>
27619         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27620         identifiers, keywords, operators, and types in diagnostics.  Correct
27621         quoting, spelling, and sentence capitalization issues.
27622         (expand_builtin_atomic_is_lock_free): Same.
27623         (fold_builtin_next_arg): Same.
27624         * cfgexpand.c (expand_one_var): Same.
27625         (tree_conflicts_with_clobbers_p): Same.
27626         (expand_asm_stmt): Same.
27627         (verify_loop_structure): Same.
27628         * cgraphunit.c (process_function_and_variable_attributes): Same.
27629         * collect-utils.c (collect_execute): Same.
27630         * collect2.c (maybe_run_lto_and_relink): Same.
27631         (is_lto_object_file): Same.
27632         (scan_prog_file): Same.
27633         * convert.c (convert_to_real_1): Same.
27634         * dwarf2out.c (dwarf2out_begin_prologue): Same.
27635         * except.c (verify_eh_tree): Same.
27636         * gcc.c (execute): Same.
27637         (eval_spec_function): Same.
27638         (run_attempt): Same.
27639         (driver::set_up_specs): Same.
27640         (compare_debug_auxbase_opt_spec_function): Same.
27641         * gcov-tool.c (unlink_gcda_file): Same.
27642         (do_merge): Same.
27643         (do_rewrite): Same.
27644         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27645         * gimplify.c (gimplify_asm_expr): Same.
27646         (gimplify_adjust_omp_clauses): Same.
27647         * hsa-gen.c (gen_hsa_addr_insns): Same.
27648         (gen_hsa_insns_for_load): Same.
27649         (gen_hsa_cmp_insn_from_gimple): Same.
27650         (gen_hsa_insns_for_operation_assignment): Same.
27651         (gen_get_level): Same.
27652         (gen_hsa_alloca): Same.
27653         (omp_simple_builtin::generate): Same.
27654         (gen_hsa_atomic_for_builtin): Same.
27655         (gen_hsa_insns_for_call): Same.
27656         * input.c (dump_location_info): Same.
27657         * ipa-devirt.c (compare_virtual_tables): Same.
27658         * ira.c (ira_setup_eliminable_regset): Same.
27659         * lra-assigns.c (lra_assign): Same.
27660         * lra-constraints.c (lra_constraints): Same.
27661         * lto-streamer-in.c (lto_input_mode_table): Same.
27662         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27663         (merge_and_complain): Same.
27664         (compile_offload_image): Same.
27665         (compile_images_for_offload_targets): Same.
27666         (debug_objcopy): Same.
27667         (run_gcc): Same.
27668         (main): Same.
27669         * opts.c (print_specific_help): Same.
27670         (parse_no_sanitize_attribute): Same.
27671         (print_help): Same.
27672         (handle_param): Same.
27673         * plugin.c (add_new_plugin): Same.
27674         (parse_plugin_arg_opt): Same.
27675         (try_init_one_plugin): Same.
27676         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27677         operators, and types in diagnostics.  Correct quoting and spelling
27678         issues.
27679         * read-rtl-function.c (parse_edge_flag_token): Same.
27680         (function_reader::parse_enum_value): Same.
27681         * reg-stack.c (check_asm_stack_operands): Same.
27682         * regcprop.c (validate_value_data): Same.
27683         * sched-rgn.c (make_pass_sched_fusion): Same.
27684         * stmt.c (check_unique_operand_names): Same.
27685         * targhooks.c (default_target_option_pragma_parse): Same.
27686         * tlink.c (recompile_files): Same.
27687         * toplev.c (process_options): Same.
27688         (do_compile): Same.
27689         * trans-mem.c (diagnose_tm_1): Same.
27690         (ipa_tm_scan_irr_block): Same.
27691         (ipa_tm_diagnose_transaction): Same.
27692         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
27693         format a tree code name in a diagnostic.
27694         (verify_types_in_gimple_min_lval): Same.
27695         (verify_types_in_gimple_reference): Same.
27696         (verify_gimple_call): Same.
27697         (verify_gimple_assign_unary): Same.
27698         (verify_gimple_assign_binary): Same.
27699         (verify_gimple_assign_ternary): Same.
27700         (verify_gimple_assign_single): Same.
27701         (verify_gimple_switch): Same.
27702         (verify_gimple_label): Same.
27703         (verify_gimple_phi): Same.
27704         (verify_gimple_in_seq): Same.
27705         (verify_eh_throw_stmt_node): Same.
27706         (collect_subblocks): Same.
27707         (gimple_verify_flow_info): Same.
27708         (do_warn_unused_result): Same.
27709         * tree-inline.c (expand_call_inline): Same.
27710         * tree-into-ssa.c (update_ssa): Same.
27711         * tree.c (tree_int_cst_elt_check_failed): Same.
27712         (tree_vec_elt_check_failed): Same.
27713         (omp_clause_operand_check_failed): Same.
27714         (verify_type_variant): Same.
27715         (verify_type): Same.
27716         * value-prof.c (verify_histograms): Same.
27717         * varasm.c (assemble_start_function): Same.
27719 2019-05-16  Martin Sebor  <msebor@redhat.com>
27721         * config/i386/i386-expand.c (get_element_number): Quote keywords
27722         and other internal names in diagnostics.  Adjust other diagnostic
27723         formatting issues noted by -Wformat-diag.
27724         * config/i386/i386-features.c
27725         (ix86_mangle_function_version_assembler_name): Same.
27726         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27727         * config/i386/i386.c (ix86_function_type_abi): Same.
27728         (ix86_function_ms_hook_prologue): Same.
27729         (classify_argument): Same.
27730         (ix86_expand_prologue): Same.
27731         (ix86_md_asm_adjust): Same.
27732         (ix86_memmodel_check): Same.
27734 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
27736         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27737         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27738         and fpxx modes.
27740 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27742         PR target/90497
27743         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27744         intrinsics without SSE/SSE2/SSSE3.
27745         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27746         check.
27747         (*mmx_uavgv8qi3): Likewise.
27749 2019-05-17  Richard Biener  <rguenther@suse.de>
27751         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27752         VEC_PERM_EXPR as __VEC_PERM with -gimple.
27754 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
27756         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27757         vec_sldw insn pattern.
27759 2019-05-17  Richard Biener  <rguenther@suse.de>
27761         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27763 2019-05-17  Martin Liska  <mliska@suse.cz>
27765         PR driver/90496
27766         * toplev.c (output_stack_usage): With LTO and sanitizer it
27767         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27768         has no file location.
27770 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
27772         PR c++/90484
27773         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27774         sz0 is equal to sz1, instead return false in that case.
27776         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27777         has non-constant expression, force sctx.lane and use two
27778         argument IFN_GOMP_SIMD_LANE instead of single argument.
27779         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27780         two argument IFN_GOMP_SIMD_LANE without lhs.
27781         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27782         member.
27783         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27784         Define.
27785         (LOOP_REQUIRES_VERSIONING): Or in
27786         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27787         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27788         simd_if_cond.
27789         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27790         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27791         from simd if clause if needed.
27793 2019-05-16  Richard Biener  <rguenther@suse.de>
27795         * tree-affine.c (expr_to_aff_combination): New function split
27796         out from...
27797         (tree_to_aff_combination): ... here.
27798         (aff_combination_expand): Avoid building a GENERIC tree.
27800 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
27802         * cgraphunit.c (cgraph_node::expand_thunk): Remove
27803         assemble_start_function and assemble_end_function calls.
27804         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27805         assemble_start_function and assemble_end_function.
27806         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27807         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27808         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27809         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27810         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27811         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27812         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27813         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27814         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27815         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27816         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27817         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27818         Likewise.
27819         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27820         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27821         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27822         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27823         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27824         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27825         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27826         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27827         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27828         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27829         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27830         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27831         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27832         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27833         Likewise.
27834         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27835         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27836         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27838 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
27840         * tree-ssa-alias.c (alias_stats): Add
27841         aliasing_component_refs_p_may_alias and
27842         aliasing_component_refs_p_no_alias.
27843         (dump_alias_stats): Print aliasing_component_refs_p stats.
27844         (aliasing_component_refs_p): Update stats.
27846 2019-05-16  Martin Liska  <mliska@suse.cz>
27848         PR lto/90500
27849         * multiple_target.c (expand_target_clones): Do not allow
27850         target_clones being used with a symbol that is an alias.
27852 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
27854         PR tree-optimization/90394
27855         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27856         positives rather than ICE for cases where (code2 == NE_EXPR
27857         && code1 == BIT_AND_EXPR).
27859 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
27861         PR fortran/90329
27862         * tree-core.h (struct tree_decl_common): Document
27863         decl_nonshareable_flag for PARM_DECLs.
27864         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27865         * calls.c (expand_call): Don't try tail call if caller
27866         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27867         passed on the stack and callee needs to pass any arguments on the
27868         stack.
27869         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27870         else if instead of series of mutually exclusive ifs.  Handle
27871         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27872         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27874         * lto-streamer.h (LTO_major_version): Bump to 9.
27876 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
27878         PR tree-optimization/90106
27879         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27880         new parameter as new internal function call, also move it to new
27881         basic block.
27882         (use_internal_fn): Pass internal function call to
27883         shrink_wrap_one_built_in_call_with_conds.
27885 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
27887         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27888         max_vf to 1.
27889         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27890         safelen_int and set loop->dont_vectorize.
27892 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27894         PR target/89021
27895         * config/i386/i386-builtin.def: Enable MMX intrinsics with
27896         SSE/SSE2/SSSE3.
27897         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27898         Likewise.
27899         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27900         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27901         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27902         is defined.
27904 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27906         PR target/89021
27907         * config/i386/mmx.md (*vec_dupv2sf): Changed to
27908         define_insn_and_split to support SSE emulation.
27909         (*vec_extractv2sf_0): Likewise.
27910         (*vec_extractv2sf_1): Likewise.
27911         (*vec_extractv2si_0): Likewise.
27912         (*vec_extractv2si_1): Likewise.
27913         (*vec_extractv2si_zext_mem): Likewise.
27914         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27915         (vec_extractv2sf_1 splitter): Likewise.
27916         (vec_extractv2sfsf): Likewise.
27917         (vec_setv2si): Likewise.
27918         (vec_extractv2si_1 splitter): Likewise.
27919         (vec_extractv2sisi): Likewise.
27920         (vec_setv4hi): Likewise.
27921         (vec_extractv4hihi): Likewise.
27922         (vec_setv8qi): Likewise.
27923         (vec_extractv8qiqi): Likewise.
27924         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27925         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27926         (vec_extractv2sisi): Likewise.
27927         (vec_extractv4hihi): Likewise.
27928         (vec_extractv8qiqi): Likewise.
27929         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27930         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27931         (vec_initv2sisi): Likewise.
27932         (vec_initv4hihi): Likewise.
27933         (vec_initv8qiqi): Likewise.
27934         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
27935         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27936         (vec_setv4hi): Likewise.
27937         (vec_setv8qi): Likewise.
27939 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27941         PR target/89021
27942         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27943         TARGET_MMX_WITH_SSE.
27944         (MMXMODE:*mov<mode>_internal): Likewise.
27945         (MMXMODE:movmisalign<mode>): Likewise.
27947 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
27949         PR target/89021
27950         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27951         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27952         (sse2_cvtpd2pi): Ditto.
27953         (sse2_cvttpd2pi): Ditto.
27954         (*vec_concatv2sf_sse4_1): Ditto.
27955         (*vec_concatv2sf_sse): Ditto.
27956         (*vec_concatv2si_sse4_1): Ditto.
27957         (*vec_concatv2si): Ditto.
27958         (*vec_concatv4si_0): Ditto.
27959         (*vec_concatv2di_0): Ditto.
27961 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27963         PR target/89021
27964         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27966 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27968         PR target/89021
27969         * config/i386/sse.md (ssse3_palignrdi): Changed to
27970         define_insn_and_split to support SSE emulation.
27972 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27974         PR target/89021
27975         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27977 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27979         PR target/89021
27980         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27981         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
27982         SSE emulation.
27984 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27986         PR target/89021
27987         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27988         or TARGET_MMX_WITH_SSE.
27989         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27991 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27993         PR target/89021
27994         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27996 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27998         PR target/89021
27999         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
28000         Changed to define_insn_and_split to support SSE emulation.
28002 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28004         PR target/89021
28005         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
28006         Changed to define_insn_and_split to support SSE emulation.
28008 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28010         PR target/89021
28011         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
28012         (*mmx_<emms>): This.
28013         (mmx_<emms>): New expander.
28015 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28017         PR target/89021
28018         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
28019         support.
28020         (*sse2_umulv1siv1di3): Add SSE2 emulation.
28022 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28024         PR target/89021
28025         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
28027 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28029         PR target/89021
28030         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
28032 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28034         PR target/89021
28035         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
28036         TARGET_MMX_WITH_SSE.
28037         (*mmx_uavgv4hi3): Add SSE emulation.
28039 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28041         PR target/89021
28042         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
28043         and TARGET_MMX_WITH_SSE.
28044         (*mmx_uavgv8qi3): Add SSE emulation.
28046 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28048         PR target/89021
28049         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
28050         maskmovdqu for __MMX_WITH_SSE__.
28052 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28054         PR target/89021
28055         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
28056         TARGET_MMX and TARGET_MMX_WITH_SSE.
28057         (*mmx_umulv4hi3_highpart): Add SSE emulation.
28059 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28061         PR target/89021
28062         * config/i386/mmx.md (mmx_pmovmskb): Changed to
28063         define_insn_and_split to support SSE emulation.
28065 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28067         PR target/89021
28068         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
28069         and TARGET_MMX_WITH_SSE.
28070         (mmx_<code>v8qi3): Likewise.
28071         (smaxmin:<code>v4hi3): New.
28072         (umaxmin:<code>v8qi3): Likewise.
28073         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
28074         (umaxmin:*mmx_<code>v8qi3): Likewise.
28076 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28078         PR target/89021
28079         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
28080         TARGET_MMX_WITH_SSE.
28081         (*mmx_pinsrw): Add SSE emulation.
28083 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28085         PR target/89021
28086         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
28088 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28090         PR target/89021
28091         * config/i386/sse.md (sse_cvtpi2ps): Changed to
28092         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
28093         SSE emulation.
28095 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28097         PR target/89021
28098         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
28099         (sse_cvttps2pi): Likewise.
28101 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28103         PR target/89021
28104         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
28105         TARGET_MMX_WITH_SSE.
28106         (mmx_pshufw_1): Add SSE emulation.
28107         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
28108         TARGET_MMX_WITH_SSE to support SSE emulation.
28110 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28112         PR target/89021
28113         * config/i386/constraints.md (Yw): New constraint.
28114         * config/i386/mmx.md (*vec_dupv2si): Changed to
28115         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
28116         support SSE emulation.
28118 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28120         PR target/89021
28121         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
28122         TARGET_MMX_WITH_SSE.
28123         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28124         support.
28125         (mmx_gt<mode>3): Likewise.
28127 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28129         PR target/89021
28130         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
28131         TARGET_MMX_WITH_SSE.  Add SSE support.
28133 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28135         PR target/89021
28136         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
28137         TARGET_MMX_WITH_SSE.
28138         (any_logic:<code><mode>3): New.
28139         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
28140         Add SSE support.
28142 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28144         PR target/89021
28145         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
28146         TARGET_MMX_WITH_SSE.  Add SSE emulation.
28147         (mmx_<shift_insn><mode>3): Likewise.
28148         (ashr<mode>3): New.
28149         (<shift_insn><mode>3): Likewise.
28151 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28153         PR target/89021
28154         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
28155         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
28157 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28159         PR target/89021
28160         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
28161         TARGET_MMX_WITH_SSE.
28162         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
28163         SSE support.
28165 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28167         PR target/89021
28168         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
28169         TARGET_MMX_WITH_SSE.
28170         (mulv4hi3): New.
28171         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28172         support.
28174 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28176         PR target/89021
28177         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
28178         (plusminus:mmx_<plusminus_insn><mode>3): Check
28179         TARGET_MMX_WITH_SSE.
28180         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
28181         (<plusminus_insn><mode>3): New.
28182         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
28183         (*mmx_<plusminus_insn><mode>3): Likewise.
28185 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28187         PR target/89021
28188         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
28189         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
28190         prototype.
28191         * config/i386/mmx.m (mmx_punpckhbw): Changed to
28192         define_insn_and_split to support SSE emulation.
28193         (mmx_punpcklbw): Likewise.
28194         (mmx_punpckhwd): Likewise.
28195         (mmx_punpcklwd): Likewise.
28196         (mmx_punpckhdq): Likewise.
28197         (mmx_punpckldq): Likewise.
28199 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28200             Uros Bizjak  <ubizjak@gmail.com>
28202         PR target/89021
28203         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
28204         New function.
28205         (ix86_split_mmx_pack): Likewise.
28206         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
28207         New prototype.
28208         (ix86_split_mmx_pack): Likewise.
28209         * config/i386/i386.md (mmx_isa): New.
28210         (enabled): Also check mmx_isa.
28211         * config/i386/mmx.md (any_s_truncate): New code iterator.
28212         (s_trunsuffix): New code attr.
28213         (mmx_packsswb): Removed.
28214         (mmx_packssdw): Likewise.
28215         (mmx_packuswb): Likewise.
28216         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
28217         MMX packsswb/packuswb with SSE2.
28218         (mmx_packssdw): Likewise.
28219         * config/i386/predicates.md (register_mmxmem_operand): New.
28221 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28223         PR target/89021
28224         * config/i386/i386-c.c (ix86_target_macros_internal): Define
28225         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
28226         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
28227         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
28228         (ix86_vector_mode_supported_p): Likewise.
28229         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
28231 2019-05-15  Martin Liska  <mliska@suse.cz>
28233         PR middle-end/90478
28234         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28235         Check for overflow.
28237 2019-05-15  Richard Biener  <rguenther@suse.de>
28239         * tree-into-ssa.c (pass_build_ssa::execute): Run
28240         update_address_taken before going into SSA.
28242 2019-05-15  Richard Biener  <rguenther@suse.de>
28244         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
28245         as __BIT_FIELD_REF with type with -gimple.
28247 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
28249         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
28250         semantically equivalent branches (left over after prior refactorings).
28252 2019-05-15  Richard Biener  <rguenther@suse.de>
28254         PR tree-optimization/88828
28255         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
28256         bogus check.
28258 2019-05-14  Richard Biener  <rguenther@suse.de>
28260         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
28261         as __VIEW_CONVERT with -gimple.
28263 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28265         PR target/82920
28266         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
28267         Darwin.
28269 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28271         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
28272         define_split to become a define_insn_and_split.
28274 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28276         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
28277         arguments.
28278         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
28279         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
28280         (sibcall_epilogue): Adjust.
28281         (epilogue): Adjust.
28283 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28285         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28286         to unsupported ones.
28287         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28288         * config.host: Likewise.
28289         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28290         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28291         __svr4__]: Remove "brand" fallback.
28292         [!KSTAT_DATA_STRING]: Remove.
28293         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28294         to *-*-solaris2*.
28295         (comdat_group): Likewise.
28296         (set_have_as_tls): Likewise.
28297         (gcc_cv_target_dl_iterate_phdr): Likewise.
28298         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28299         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28300         * configure: Regenerate.
28301         * doc/install.texi: Simplify Solaris target triplets.
28302         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28303         (Specific, *-*-solaris2*): Document Solaris 10 removal.
28304         Remove Solaris 10 references.
28305         Remove obsolete Solaris bug reference.
28306         (Specific, sparc-sun-solaris2.10): Remove.
28308 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
28310         * config/i386/i386.md (any_div): New code iterator.
28311         (paired_mod): New code attribute.
28312         (sgnprefix): Handle DIV and UDIV RTXes.
28313         (u): Ditto.
28314         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28315         and udivmod<mode>4 patterns using any_div code iterator.
28316         (divmod splitters): Macroize splitters using any_div code iterator.
28317         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28318         (*udivmodsi4_pow2_zext_2): Ditto.
28319         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28320         and *udivmod<mode>4_noext patterns using any_div code iterator.
28321         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28322         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28323         patterns using any_div code iterator.
28324         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28325         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28326         patterns using any_div code iterator.
28327         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28328         udivmodhiqi3 patterns using any_extend code iterator.
28330 2019-05-14  Richard Biener  <rguenther@suse.de>
28331             H.J. Lu  <hongjiu.lu@intel.com>
28333         PR tree-optimization/88828
28334         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28335         permuting in a single non-constant element not extracted
28336         from a vector.
28338 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
28340         * internal-fn.def (SIGNBIT): New.
28341         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28342         defined.
28343         (signbitv4sf2): Likewise.
28345 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
28347         PR target/90357
28348         * config/mips/mips.c (mips_split_move): Skip forward SRC into
28349         next insn when the SRC reg is dead.
28351 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
28353         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28354         (alloc_cand_and_find_basis): Ditto.
28355         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28356         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28357         (create_add_imm_cand, slsr_process_cast): Ditto.
28358         (slsr_process_copy, replace_mult_candidate): Ditto.
28359         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28360         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28361         (pass_strength_reduction::execute): Init the first NULL element.
28363 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28365         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
28366         (run_attempt): Reformat line break.
28368 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
28370         PR target/90418
28371         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28372         data registers in sibcall epilogues.
28373         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28375 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
28377         PR target/89221
28378         * configure.ac (--enable-frame-pointer):
28379         Disable by default for cygwin and mingw.
28380         * configure: Regenerate.
28382 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28384         * dwarf2out.c (breakout_comdat_types): Move comment to correct
28385         piece of code.
28386         (const_ok_for_output_1): Balance parens around #if/#else/#endif
28387         (gen_member_die): Move abstract origin check earlier.  Only VARs
28388         can be static_inline_p.  Simplify splicing control flow.
28390 2019-05-13  Richard Biener  <rguenther@suse.de>
28392         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28393         VIEW_CONVERT_EXPR.
28394         (vect_build_slp_tree_1): Likewise.
28396 2019-05-13  Richard Biener  <rguenther@suse.de>
28398         PR tree-optimization/90402
28399         * tree-if-conv.c (tree_if_conversion): Value number only
28400         the loop body by making the latch an exit of the region
28401         as well.
28402         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28403         processing PHIs.
28404         (do_rpo_vn): Deal with multiple edges into the entry block
28405         that are not backedges inside the region by skipping PHIs
28406         of the entry block.
28408 2019-05-13  Richard Biener  <rguenther@suse.de>
28410         PR tree-optimization/90316
28411         * tree-ssa-pre.c (insert_aux): Fold into ...
28412         (insert): ... this function.  Use a RPO walk to reduce the
28413         number of required iterations.
28415 2019-05-13  Martin Liska  <mliska@suse.cz>
28417         PR tree-optimization/90416
28418         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28419         string instead of passing the second part as va_arg argument.
28421 2019-05-13  Martin Liska  <mliska@suse.cz>
28423         PR gcov-profile/90380
28424         * gcov.c (handle_cycle): Do not support zero cycle count,
28425         it should not be possible.
28426         (path_contains_zero_cycle_arc): New function.
28427         (circuit): Ignore zero cycle arc counts.
28429 2019-05-13  Martin Liska  <mliska@suse.cz>
28431         PR gcov-profile/90380
28432         * gcov.c (enum loop_type): Remove the enum and
28433         the operator.
28434         (handle_cycle): Assert that we should not reach
28435         a negative count.
28436         (circuit): Use loop_found instead of a tri-state loop_type.
28437         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28438         happen.
28440 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28442         PR target/82920
28443         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28444         (ix86_output_indirect_branch_via_reg): Use output mechanism
28445         accounting for __USER_LABEL_PREFIX__.
28446         (ix86_output_indirect_branch_via_push): Likewise.
28447         (ix86_output_function_return): Likewise.
28448         (ix86_output_indirect_function_return): Likewise.
28450 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
28452         * doc/md.texi: Document use of code attributes in rtx patterns.
28453         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28454         * read-rtl.c (find_code): Split out search loops into...
28455         (maybe_find_code): ...this new function.
28456         (check_code_iterator): Make the error message more informative.
28457         (check_code_attribute): New function.
28458         (rtx_reader::rtx_alloc_for_name): Likewise.
28459         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28460         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28461         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28462         <max_opp> directly as an rtx code instead of via a match_operator.
28463         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28464         (<su>abd<mode>_3): Update accordingly.
28466 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28468         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28469         is given, print the state of the EH "save world" computation for
28470         Darwin.
28472 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
28474         PR c++/59813
28475         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28476         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28478 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
28480         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28481         Use pinsrd for TARGET_SSE4_1.
28482         * config/i386/sse.md (movdi_to_sse): Ditto.
28484 2019-05-10  Richard Biener  <rguenther@suse.de>
28486         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28487         (do_rpo_vn): Initialize next_value_id.
28489 2019-05-10  Martin Liska  <mliska@suse.cz>
28491         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28492         Fix plural form.
28494 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
28496         PR tree-optimization/90385
28497         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28498         arguments of the exit phis.
28500         PR c++/90383
28501         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28502         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28503         id->do_not_fold.
28504         (copy_tree_body_r): Likewise.
28505         (copy_fn): Set id.do_not_fold to true.
28507 2019-05-10  Martin Liska  <mliska@suse.cz>
28509         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28510         Reapply changes from r269790.
28512 2019-05-10  Martin Liska  <mliska@suse.cz>
28514         PR middle-end/90340
28515         * doc/invoke.texi: New params.
28516         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28517         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28518         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28519         Use it.
28520         * tree-switch-conversion.h (struct jump_table_cluster):
28521         Likewise.
28523 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
28525         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28527 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
28529         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28531 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
28533         PR rtl-optimization/88879
28534         * sel-sched.c (sel_target_adjust_priority): Remove assert.
28536 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
28538         PR target/90405
28539         * config/arm/arm.c (callee_saved_reg_p): Move before
28540         thumb_find_work_register.
28541         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28542         thumb_find_work_register.  Only call df_get_live_out once.
28543         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28544         (thumb_find_work_register): Use
28545         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28546         algorithms to locate a spare call clobbered reg.
28548 2019-05-09  Martin Liska  <mliska@suse.cz>
28550         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28551         and MAX_EXPR in GIMPLE FE format.
28553 2019-05-09  Martin Liska  <mliska@suse.cz>
28555         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28556         * gimple-pretty-print.c (dump_gimple_bb_header):
28557         Dump BB count.
28558         (pp_cfg_jump): Dump edge probability.
28559         * profile-count.c (profile_quality_as_string): Simplify
28560         with a static array.
28561         (parse_profile_quality): New function.
28562         (profile_count::dump): Simplify with a static array.
28563         (profile_count::from_gcov_type): Add new argument.
28564         * profile-count.h (parse_profile_quality): Likewise.
28565         * predict.h (set_hot_bb_threshold): New.
28566         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28567         New param.
28568         * predict.c (get_hot_bb_threshold): Set from the new param.
28569         (set_hot_bb_threshold): New.
28571 2019-05-09  Richard Biener  <rguenther@suse.de>
28573         PR tree-optimization/90395
28574         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28575         rewrite vector stores that throw internally.
28577 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
28579         * cif-code.def (CHKP): Remove.
28581         PR target/89221
28582         * configure.ac (--enable-frame-pointer): Disable by default for
28583         GNU systems.
28584         * configure: Regenerate.
28586 2019-05-09  Alan Modra  <amodra@gmail.com>
28588         PR target/89271
28589         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28590         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28591         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28592         cost for general <-> vsx when direct moves are available.
28593         Cost union classes at minimal cost for any reg in the class.
28594         Correct calculation for moves between vsx, float, and altivec.
28595         Don't return a low cost for moves between special regs.  Don't
28596         use hard coded register numbers.
28597         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28598         (rs6000_ira_change_pseudo_allocno_class): New function.
28599         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28600         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28601         alternatives.
28602         (movsi_internal1): Don't disparage vector alternatives.
28603         (mov<mode>_internal): Likewise, excepting alternative that
28604         will be split.
28605         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28606         we <- b alternative.
28608 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
28610         PR c++/59813
28611         PR tree-optimization/89060
28612         * tree-ssa-live.h (live_vars_map): New typedef.
28613         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28614         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28615         (struct compute_live_vars_data): New type.
28616         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28617         live_vars_at_stmt, destroy_live_vars): New functions.
28618         * tree-tailcall.c: Include tree-ssa-live.h.
28619         (live_vars, live_vars_vec): New global variables.
28620         (find_tail_calls): Perform variable life analysis before punting.
28621         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28622         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28623         member.
28624         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28625         Perform variable life analysis to select variables that really need
28626         clobbers added.
28627         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28628         instead set id->eh_landing_pad_dest and assert it is the same.
28629         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28631 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
28632             Richard Earnshaw  <rearnsha@arm.com>
28634         PR target/88167
28635         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28636         function.
28637         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28638         (thumb1_compute_save_core_reg_mask): Don't force a spare work
28639         register if both the epilogue and prologue can use call-clobbered
28640         regs.
28641         (thumb1_unexpanded_epilogue): Use
28642         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
28643         picking temporaries for restoring high regs to match that of the
28644         prologue where possible.
28645         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28646         the list of work registers.  Detect if the return address is still live
28647         at the end of the prologue and avoid using it for a work register if so.
28648         If the return address is not live, add LR to the list of pushable regs
28649         after the first pass.
28651 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
28653         PR tree-optimization/90078
28654         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28655         (INFTY): Increase the value for infinite cost.
28656         (struct comp_cost): Promote type of members to int64_t.
28657         (infinite_cost): Don't set complexity in initialization.
28658         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28659         overflows to infinite_cost.
28660         (adjust_setup_cost): Promote type of parameter and cost computation
28661         to int64_t.
28662         (struct ainc_cost_data, struct iv_ca): Promote type of member to
28663         int64_t.
28664         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28665         cost computation to int64_t.
28666         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28667         int64_t's format specifier in dump.
28669 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
28671         PR tree-optimization/90240
28672         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28673         with respect to scaling factor pre-computed for each basic block.
28674         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28675         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28676         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28677         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
28678         live range for array of loop's basic blocks.  Cleanup aux field of
28679         loop's basic blocks.
28681 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
28683         PR tree-optimization/90356
28684         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28686 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
28688         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28689         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28690         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28691         (ix86_handle_option): Handle -mavx512bf16.
28692         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28693         to extra_headers.
28694         * config/i386/avx512bf16vlintrin.h: New.
28695         * config/i386/avx512bf16intrin.h: New.
28696         * config/i386/cpuid.h (bit_AVX512BF16): New.
28697         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28698         * config/i386/i386-builtin-types.def: Add new types.
28699         * config/i386/i386-builtin.def: Add new builtins.
28700         * config/i386/i386-c.c (ix86_target_macros_internal): Define
28701         __AVX512BF16__.
28702         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28703         (ix86_option_override_internal): Handle BF16.
28704         (ix86_valid_target_attribute_inner_p): Ditto.
28705         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28706         * config/i386/i386-builtin.c (enum processor_features): Add
28707         F_AVX512BF16.
28708         (static const _isa_names_table isa_names_table): Ditto.
28709         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28710         (PTA_AVX512BF16): Ditto.
28711         * config/i386/i386.opt: Add -mavx512bf16.
28712         * config/i386/immintrin.h: Include avx512bf16intrin.h
28713         and avx512bf16vlintrin.h.
28714         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28715         avx512f_cvtneps2bf16_<mode><mask_name>,
28716         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28717         * config/i386/subst.md (mask_half): Add new subst.
28718         * doc/invoke.texi: Document -mavx512bf16.
28720 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
28722         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28723         Delete declaration.
28724         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28725         (rs6000_debug_legitimize_reload_address): Delete.
28726         (rs6000_legitimize_reload_address_ptr): Delete.
28727         (rs6000_option_override_internal): Adjust.
28728         (mem_operand_gpr): Adjust comment.
28729         (legitimate_lo_sum_address_p): Ditto.
28730         (rs6000_legitimize_reload_address): Delete.
28731         (rs6000_debug_legitimize_reload_address): Delete.
28732         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28734 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28736         PR target/89765
28737         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28738         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28739         to compute vector element selector for both constant and variable
28740         operands.
28742 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
28744         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28745         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28746         ashrdi3_cvt using SWI48 mode iterator.
28748 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
28750         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28751         (aarch64_<su>abd<mode>_3): Likewise.
28752         (*aarch64_<su>abd<mode>_3): New define_insn.
28753         (<sur>sad<vsi2qi>): New define_expand.
28754         * config/aarch64/iterators.md: Added MAX_OPP attribute.
28755         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28756         (build_vect_cond_expr): Likewise.
28758 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
28760         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28761         clobbers outside of accessible_reg_set.
28762         * config/i386/i386.c (ix86_conditional_register_usage):
28763         Disable register sets by clearing corresponding bits in
28764         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
28765         call_used_regs and don't clear corresponding reg_names array members.
28767 2019-05-07  Richard Biener  <rguenther@suse.de>
28769         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28770         not specified still compute a comp_vectype for invariant
28771         compares.
28773 2019-05-07  Richard Biener  <rguenther@suse.de>
28775         PR tree-optimization/90316
28776         * tree-ssa-pre.c (translate_vuse_through_block): When
28777         same_valid is NULL do not bother to search for a virtual
28778         PHI continuation.
28779         (phi_translate_1): When operands changed we cannot keep
28780         the same value-number so do not bother to ask whether
28781         that's possible from translate_vuse_through_block.
28783 2019-05-07  Martin Liska  <mliska@suse.cz>
28785         * bitmap.c (bitmap_register): Come up with
28786         alloc_descriptor_max_uid and assign it for
28787         a new bitmap.
28788         (register_overhead): Use get_descriptor as
28789         a descriptor.
28790         (release_overhead): New.
28791         (bitmap_elem_to_freelist): Call it.
28792         (bitmap_elt_clear_from): Likewise.
28793         (bitmap_obstack_free): Likewise.
28794         (bitmap_move): Sensitively release memory.
28795         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28796         (bitmap_initialize): Initialize alloc_descriptor to zero.
28797         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28799 2019-05-07  Richard Biener  <rguenther@suse.de>
28801         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28802         we build a SLP node.  Remove max_size and limiting.
28803         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28805 2019-05-07  Richard Biener  <rguenther@suse.de>
28807         PR tree-optimization/90316
28808         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28809         limit by reference.
28810         (walk_non_aliased_vuses): Take walking limit argument.
28811         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28812         walking if it is reached instead of just counting.
28813         (get_continuation_for_phi): Likewise.
28814         (walk_non_aliased_vuses): Likewise, instead of leaving counter
28815         limiting to the callback.
28816         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28817         (vn_reference_lookup_3): Likewise.
28818         (vn_reference_lookup_pieces): Likewise.
28819         (vn_reference_lookup): Likewise.
28820         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28821         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28822         (avail_exprs_stack::lookup_avail_expr): Likewise.
28824 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
28826         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28827         for comparaible types in the second direction even if first one
28828         hits incomparable type.
28830 2019-05-07  Richard Biener  <rguenther@suse.de>
28832         PR lto/90369
28833         * lto-wrapper.c (debug_objcopy): Use the original filename
28834         including archive offset for the filename used for -save-temps.
28836 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
28838         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28839         detection.
28841 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
28842             Hongtao Liu  <hongtao.liu@intel.com>
28844         PR target/89750
28845         PR target/86444
28846         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28847         Modified, original implementation isn't correct.
28849 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28851         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28852         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28853         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28854         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28855         (FRAME_POINTER_REGNUM): Change numbering.
28856         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28857         (alt_reg_names): Adjust.
28858         (rs6000_conditional_register_usage): Don't mark hard register 64 as
28859         fixed.
28860         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28861         (DWARF_FRAME_REGISTERS): Delete.
28862         (DWARF2_FRAME_REG_OUT): Fix whitespace.
28863         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28864         Adjust.
28865         (REG_ALLOC_ORDER): Adjust.
28866         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28867         (REG_CLASS_CONTENTS): Adjust.
28868         (RETURN_ADDR_RTX): Change comment.
28869         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28870         instead of 67.
28871         (REGISTER_NAMES): Adjust.
28872         (ADDITIONAL_REGISTER_NAMES): Adjust.
28873         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28875 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28877         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28878         Delete.
28879         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28880         (DWARF_FRAME_REGISTERS): Adjust.
28881         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28882         Adjust.
28883         (REG_ALLOC_ORDER): Adjust.
28884         (enum reg_class): Delete SPR_REGS.
28885         (REG_CLASS_NAMES): Delete SPR_REGS.
28886         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
28887         (REGISTER_NAMES): Adjust.
28888         (ADDITIONAL_REGISTER_NAMES): Adjust.
28889         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28890         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28891         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28892         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28893         (htm_spr_regno): Delete.
28894         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28895         argument.
28896         (rs6000_dbx_register_number): Adjust.
28898 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28900         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28902 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28904         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28905         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28907 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
28909         PR tree-optimization/88709
28910         PR tree-optimization/90271
28911         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28912         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28913         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
28914         variable.
28915         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28916         of the store merging group is larger than
28917         PARAM_STORE_MERGING_MAX_SIZE parameter.
28918         (split_group): Add bzero_first argument.  If set, always emit first
28919         the first store which must be = {} of the whole area and then for the
28920         rest of the stores consider all zero bytes as paddings.
28921         (imm_store_chain_info::output_merged_store): Check if first store
28922         is = {} of the whole area and if yes, determine which setting of
28923         bzero_first for split_group gives smaller number of stores.  Adjust
28924         split_group callers.
28925         (lhs_valid_for_store_merging_p): Allow decls.
28926         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28927         no elts.
28928         (pass_store_merging::process_store): Likewise.
28930 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28932         PR target/89424
28933         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28934         handling of V1TImode.
28936 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
28938         PR target/89221
28939         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28940         and enable_frame_pointer ...
28941         * configure.ac: ... here.  Update help strings for
28942         --enable-frame-pointer.
28943         * configure: Regenerate.
28944         * config/i386/i386-options.c (ix86_option_override_internal): Remove
28945         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28946         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28947         (USE_X86_64_FRAME_POINTER): Ditto.
28949 2019-05-06  Martin Liska  <mliska@suse.cz>
28951         * config.gcc: Append to target_gtfiles and fix indentation.
28953 2019-05-06  Richard Biener  <rguenther@suse.de>
28955         PR tree-optimization/90358
28956         * tree-vect-stmts.c (get_group_load_store_type): Properly
28957         detect unused upper half of load.
28958         (vectorizable_load): Likewise.
28960 2019-05-06  Richard Biener  <rguenther@suse.de>
28962         PR tree-optimization/88828
28963         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28964         (simplify_vector_constructor): ...here.  Handle constants in
28965         the constructor.
28967 2019-05-06  Richard Biener  <rguenther@suse.de>
28969         PR tree-optimization/90328
28970         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28971         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28972         is valid in the loop nest before using it.
28973         (initialize_data_dependence_relation): Adjust.
28974         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28975         loop as loop-nest to dr_may_alias_p.
28977 2019-05-06  Richard Biener  <rguenther@suse.de>
28979         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28981 2019-05-06  Richard Biener  <rguenther@suse.de>
28983         PR tree-optimization/90316
28984         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28985         compute target on demand.
28986         (get_continuation_for_phi): Remove code walking stmts to
28987         get to a target virtual operand which could end up being
28988         quadratic.
28990 2019-05-06  Martin Liska  <mliska@suse.cz>
28992         PR sanitizer/90312
28993         * config/i386/i386-options.c (ix86_option_override_internal): Error only
28994         when -mabi is selected to a non-default version.
28996 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
28997             Martin Liska  <mliska@suse.cz>
28999         * Makefile.in: Add lto-dump.texi.
29000         * cgraph.h: Add new functions get_visibility_string and
29001         get_symtab_type_string.
29002         * doc/gcc.texi: Include lto-dump section.
29003         * doc/lto-dump.texi: New file.
29004         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
29005         (parse_dump_option): Factor out this function.
29006         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
29007         (parse_dump_option): Export the function.
29008         * symtab.c (symtab_node::get_visibility_string): New function.
29009         (symtab_node::get_symtab_type_string): Likewise.
29011 2019-05-06  Martin Liska  <mliska@suse.cz>
29013         * config/i386/i386-builtins.c: New file.
29014         * config/i386/i386-builtins.h: New file.
29015         * config/i386/i386-expand.c: New file.
29016         * config/i386/i386-expand.h: New file.
29017         * config/i386/i386-features.c: New file.
29018         * config/i386/i386-features.h: New file.
29019         * config/i386/i386-options.c: New file.
29020         * config/i386/i386-options.h: New file.
29021         * config.gcc: Add new files into extra_objs and
29022         target_gtfiles.
29023         * config/i386/i386.c: Split content of the file
29024         into newly introduced files.
29025         * config/i386/i386.h: Declare common variables
29026         and macros.
29027         * config/i386/t-i386: Define dependencies for new files.
29029 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
29031         PR target/89400
29032         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
29033         Restrict 'all' variant to 32-bit configurations.
29034         (unaligned_loadhiu): Likewise.
29035         (unaligned_storehi): Likewise.
29036         (unaligned_storesi): Likewise.
29037         (unaligned_loadhis): Disable when compiling for thumb1.
29039 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
29041         PR tree-optimization/90269
29042         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
29043         Ignore clobbers.
29045 2019-05-03  Martin Liska  <mliska@suse.cz>
29047         * hash-map.h: Add is_empty function.
29048         * hash-set.h: Likewise.
29049         * hash-table.h: Likewise.
29050         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
29051         elements () == 0 (and similar usages).
29052         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
29053         * gimplify.c (gimplify_bind_expr): Likewise.
29054         (gimplify_switch_expr): Likewise.
29055         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
29056         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
29057         * postreload-gcse.c (dump_hash_table): Likewise.
29058         (gcse_after_reload_main): Likewise.
29059         * predict.c (combine_predictions_for_bb): Likewise.
29060         * tree-parloops.c (reduction_phi): Likewise.
29061         (separate_decls_in_region): Likewise.
29062         (transform_to_exit_first_loop): Likewise.
29063         (gen_parallel_loop): Likewise.
29064         (gather_scalar_reductions): Likewise.
29065         (try_create_reduction_list): Likewise.
29066         * var-tracking.c (dump_vars): Likewise.
29067         (emit_notes_for_changes): Likewise.
29068         (vt_emit_notes): Likewise.
29070 2019-05-03  Richard Biener  <rguenther@suse.de>
29072         PR tree-optimization/90316
29073         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
29074         before running VN.
29076 2019-05-03  Richard Biener  <rguenther@suse.de>
29078         * tree-vect-stmts.c (get_group_load_store_type): Avoid
29079         peeling for gaps by loading only lower halves of vectors
29080         if possible.
29081         (vectorizable_load): Likewise.
29083 2019-05-03  Richard Biener  <rguenther@suse.de>
29085         PR middle-end/89518
29086         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
29088 2019-05-03  Richard Biener  <rguenther@suse.de>
29090         PR middle-end/87314
29091         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
29092         Handle STRING_CST vs DECL or STRING_CST.
29094 2019-05-03  Richard Biener  <rguenther@suse.de>
29096         PR tree-optimization/88963
29097         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
29098         vector loads feeding only BIT_FIELD_REFs to component
29099         loads.  Rewrite stores fed by CONSTRUCTORs to component
29100         stores.
29102 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
29104         * opts.h (finish_options): Remove lang_mask argument.
29105         (print_help, help_option_argument): Declare.
29106         * opts.c (print_help): Remove forward declaration, no longer static.
29107         (finish_options): Remove lang_mask argument, don't call print_help
29108         here.
29109         * opts-global.c (decode_options): Adjust finish_option caller, call
29110         print_help here.
29112         PR tree-optimization/90303
29113         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
29114         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
29116 2019-05-03  Richard Biener  <rguenther@suse.de>
29118         PR tree-optimization/89698
29119         * gimple-fold.c (canonicalize_constructor_val): Early out
29120         for constants, handle unfolded INTEGER_CSTs as they appear in
29121         C++ virtual table ctors.
29123 2019-05-03  Richard Biener  <rguenther@suse.de>
29125         * passes.c (execute_function_todo): Remove dead code.
29127 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29129         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
29130         the internal register number, for any "real" register.
29132 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29134         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
29135         correct numbers for TFHAR, TFIAR, TEXASR.
29137 2019-05-02  Richard Biener  <rguenther@suse.de>
29139         PR tree-optimization/89653
29140         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
29141         update-address-taken before the pass.
29142         * passes.def (pass_tree_loop_init): Put comment before it.
29144 2019-05-02  Richard Biener  <rguenther@suse.de>
29146         PR tree-optimization/89509
29147         * tree-ssa-structalias.c (compute_dependence_clique): Look
29148         at the first subvar when determining whether it is restrict.
29150 2019-05-02  Richard Biener  <rguenther@suse.de>
29152         PR tree-optimization/90273
29153         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
29154         useless debug stmts.
29156 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
29158         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
29159         ACLE branch.
29160         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
29161         SVE ACLE branch.
29162         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
29163         VEC_COND_EXPR be inserted to emulate a conditional internal function.
29164         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
29165         (vectorizable_reduction): Use the functions above to vectorize in a
29166         fully masked loop codes that don't have a conditional internal
29167         function.
29169 2019-05-02  Martin Liska  <mliska@suse.cz>
29171         * cgraphclones.c: Call valid_attribute_p with 1 for
29172         target_clone.
29173         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
29174         it's for target attribute.
29175         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
29176         Add new boolean argument.
29177         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
29178         Likewise.
29179         (ix86_valid_target_attribute_tree): Pass target_clone_attr
29180         to ix86_valid_target_attribute_inner_p.
29181         (ix86_valid_target_attribute_p): Pass flags argument to
29182         ix86_valid_target_attribute_inner_p.
29183         (get_builtin_code_for_version): Use 0 as it's target attribute.
29185 2019-05-02  Martin Liska  <mliska@suse.cz>
29187         * gcc.c (process_command): Add dummy file only
29188         if n_infiles == 0.
29189         * opts-global.c (decode_options): Pass lang_mask.
29190         * opts.c (print_help): New function.
29191         (finish_options): Print --help if help_option_argument
29192         is set.
29193         (common_handle_option): Factor out content of OPT__help_
29194         into print_help.
29195         * opts.h (finish_options): Add new argument.
29197 2019-05-02  Martin Liska  <mliska@suse.cz>
29199         PR target/88809
29200         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
29201         With -minline-all-stringops use inline expansion using 4B loop.
29202         * doc/invoke.texi: Document the change of
29203         -minline-all-stringops.
29205 2019-05-01  Jeff Law  <law@redhat.com>
29207         PR tree-optimization/88797
29208         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
29209         PHI feeds a conditional on the RHS of an assignment.
29211 2019-04-30  Andrew Waterman  <andrew@sifive.com>
29212             Jim Wilson  <jimw@sifive.com>
29214         * config/riscv/constraints.md (L): New.
29215         * config/riscv/predicates.md (lui_operand): New.
29216         (sfb_alu_operand): New.
29217         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
29218         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
29219         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
29220         * config/riscv/risc.md (type): Add sfb_alu.
29221         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
29222         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
29223         (branch_zero<mode>): Delete.
29224         (mov<mode>cc): New.
29225         (mov<GPR:mode><X:mode>cc): Likewise.
29226         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
29228 2019-04-30  Nathan Sidwell  <nathan@acm.org>
29230         * tree.h (MARK_TS_EXP): New.
29232 2019-04-30  Martin Liska  <mliska@suse.cz>
29234         * opts.c (enable_warning_as_error): Provide hints
29235         for unknown options.
29237 2019-04-30  Martin Liska  <mliska@suse.cz>
29239         PR debug/90288
29240         * doc/invoke.texi: Add missing dash for gas-locview-support
29241         and gno-as-locview-support.
29243 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29245         PR target/89093
29246         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
29247         whitespace at the start of target attribute string.
29249 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29251         PR target/86538
29252         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
29253         Define __ARM_FEATURE_ATOMICS.
29255 2019-04-30  Martin Liska  <mliska@suse.cz>
29257         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
29258         into built_in_function enum. Remove code for endp == 2 and
29259         use BUILT_IN_* constants.
29260         (gimple_fold_builtin): Call the function with fcode.
29262 2019-04-30  Martin Liska  <mliska@suse.cz>
29264         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
29265         DECL_FUNCTION_CODE into ix86_builtins enum before
29266         the switch statement.
29268 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29270         PR tree-optimization/89475
29271         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
29272         calls.
29274 2019-04-30  Martin Liska  <mliska@suse.cz>
29276         PR translation/90274
29277         * opts.c (print_filtered_help): Wrap string in _(...).
29279 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
29281         PR tree-optimization/90240
29282         Revert:
29283         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29285         PR tree-optimization/90078
29286         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29287         checks for infinite_cost overflow.
29289 2019-04-29  Jeff Law  <law@redhat.com>
29291         * passes.def: Move -Wrestrict pass after copy propagation.
29293 2019-04-29  Maya Rashish  <coypu@sdf.org>
29295         * config.gcc (default_gnu_indirect_function): Default to yes
29296         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29297         sparc*-*-netbsd*, x86_64-*-netbsd*.
29299 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
29301         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29302         where cond2 is NE_EXPR.
29303         (is_value_included_in): Update comment.
29305 2019-04-29  Richard Biener  <rguenther@suse.de>
29307         PR tree-optimization/90278
29308         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29309         EH on comparison simplification.
29311 2019-04-29  Jason Merrill  <jason@redhat.com>
29313         PR c++/82081 - tail call optimization breaks noexcept
29314         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29315         nothrow function to a might-throw function into a tail call.
29317 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29319         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29320         (DDR_INNER_LOOP): Likewise.
29321         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29322         (initialize_data_dependence_relation): Likewise.
29323         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29325 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
29327         PR rtl-optimization/90257
29328         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29329         return value.
29331         Revert the revert:
29332         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
29334         PR target/90178
29335         Revert:
29336         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
29338         Revert the revert:
29339         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
29341         Revert:
29342         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
29344         * lra-spills.c (lra_final_code_change): Remove useless move insns.
29346 2019-04-29  Richard Biener  <rguenther@suse.de>
29348         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29349         rhs issue a reset.
29351 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
29353         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
29354         varasm.h, and netbsd-protos.h.
29356 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
29358         PR target/89261
29359         * config/i386/i386-protos.h (ix86_data_alignment): Change
29360         the second argument type to unsigned int.
29361         * config/i386/i386.c (ix86_data_alignment): Change "align"
29362         argument type to unsigned int.
29364 2019-04-27  Martin Liska  <mliska@suse.cz>
29366         PR middle-end/90258
29367         * opt-suggestions.c (option_proposer::build_option_suggestions):
29368         When get_valid_option_values returns empty values, add the
29369         misspelling candidate.
29371 2019-04-26  Jim Wilson  <jimw@sifive.com>
29373         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29374         parameter.
29375         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29376         Pass orig_mode to riscv_build_integer.
29377         (riscv_split_integer): Pass mode to riscv_move_integer.
29378         (riscv_legitimize_const_move): Likewise.
29379         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29380         promoted_mode.  Replace force_reg call with code to load constant into
29381         promoted reg and then subreg it for the store.
29382         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29383         riscv_move_integer.
29385 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
29387         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29388         corrupt codes.
29390 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
29392         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29393         commentary about the encoding of precision.
29395 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
29397         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29398         * config/i386/t-freebsd64: New file.
29399         * config.gcc: Add the t-freebsd64 for multilib support.
29401 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
29403         * doc/extend.texi (vector_size): Add missing comma after @xref.
29405 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
29407         * BASE-VER: Set to 10.0.0.
29409 2019-04-25  Richard Biener  <rguenther@suse.de>
29411         PR middle-end/89765
29412         * gimplify.c (gimplify_expr): Avoid turning a lvalue
29413         VIEW_CONVERT_EXPR into one operating on an rvalue.
29415 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
29417         PR target/89929
29418         * config/i386/i386.c (feature_priority): Moved to file scope.
29419         (processor_features): Likewise.
29420         (processor_model): Likewise.
29421         (_arch_names_table): Likewise.
29422         (arch_names_table): Likewise.
29423         (_feature_list): Removed.
29424         (feature_list): Likewise.
29425         (_isa_names_table): Moved to file scope.  Add priority.
29426         (isa_names_table): Likewise.
29427         (get_builtin_code_for_version): Replace feature_list with
29428         isa_names_table.  Update error message for P_ZERO priority.
29430 2019-04-25  Richard Biener  <rguenther@suse.de>
29432         * tree-pass.h (make_pass_phi_only_cprop): Remove.
29433         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29435 2019-04-24  Jeff Law  <law@redhat.com>
29437         PR tree-optimization/90037
29438         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29439         * passes.def: Replace all instance of phi-only cprop with the
29440         lattice propagator.  Move propagation pass from after erroneous
29441         path isolation to before erroneous path isolation.
29442         * tree-ssa-phionlycprop.c: Remove.
29444 2019-04-24  Richard Biener  <rguenther@suse.de>
29446         PR middle-end/90213
29447         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29448         by size and BITS_PER_UNIT on poly-wide-ints.
29450 2019-04-25  Richard Biener  <rguenther@suse.de>
29452         PR middle-end/90194
29453         * match.pd: Add pattern to simplify view-conversion of an
29454         empty constructor.
29456 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
29458         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29459         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29460         for Go on 32 bit AIX.
29461         * config/rs6000/aix72.h: Likewise.
29463 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
29465         PR target/90193
29466         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29467         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29469 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
29471         PR target/89952
29472         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29473         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
29474         for restored hard frame pointer.
29475         (s390_sched_dependencies_evaluation): Implement new target hook.
29476         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29478 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
29480         * config/arc/arc-options.def: Fix typos and spelling mistakes.
29481         * config/arc/arc.c (arc_init): Cleanup warning message.
29482         (arc_override_options): Likewise.
29484 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
29486         PR target/90187
29487         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29488         a register if both if_true and if_false are MEMs.
29490         PR tree-optimization/90208
29491         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29492         after labels of new_bb, not before them.
29494         PR tree-optimization/90211
29495         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29496         which are not SSA_NAMEs.
29498 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
29500         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29501         AArch64.
29502         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29504 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
29506         PR rtl-optimization/87979
29507         * modulo-sched.c (sms_schedule): Start ii value "mii" should
29508         not equal zero.
29510 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
29512         PR rtl-optimization/84032
29513         * modulo-sched.c (ps_insn_find_column): Change condition so that
29514         branch will always be the last insn in a row inside partial
29515         schedule.
29517 2019-04-23  Richard Biener  <rguenther@suse.de>
29519         PR debug/90131
29520         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29521         dest_single_pred_p argument.
29522         (remove_forwarder_block): Adjust.
29523         (remove_forwarder_block_with_phi): Likewise.
29525 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29526             Bernd Edlinger  <bernd.edlinger@hotmail.de>
29527             Jakub Jelinek  <jakub@redhat.com>
29529         PR target/89093
29530         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29531         if used with general-regs-only.
29532         (arm_conditional_register_usage): Don't add non-general regs if
29533         general-regs-only.
29534         (arm_valid_target_attribute_rec): Handle general-regs-only.
29535         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29536         general-regs-only.
29537         (TARGET_HARD_FLOAT_SUB): Define.
29538         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29539         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29540         (TARGET_REALLY_IWMMXT2): Likewise.
29541         * config/arm/arm.opt: Add -mgeneral-regs-only.
29542         * doc/extend.texi: Document ARM general-regs-only target.
29543         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29545 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29547         PR tree-optimization/90078
29548         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29549         checks for infinite_cost overflow.
29551 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29553         PR tree-optimization/90021
29554         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29555         and check univariate against it.
29556         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29557         * tree-data-ref.c (add_other_self_distances): Pass new argument.
29559 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
29561         PR target/90178
29562         Revert:
29563         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
29565         Revert the revert:
29566         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
29568         Revert:
29569         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
29571         * lra-spills.c (lra_final_code_change): Remove useless move insns.
29573 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
29575         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29576         names using operand format, rather than hard-wired.
29577         (speculation_barrier): Likewise.
29579 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
29581         PR tree-optimization/88055
29582         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29583         (gen_one_condition): Use it if !HONOR_NANS.
29585 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
29587         PR middle-end/90139
29588         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29589         assign_temp instead of gen_reg_rtx.
29591 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
29593         PR translation/90118
29594         * config/aarch64/aarch64.c (aarch64_override_options_internal):
29595         Add missing space before %<.
29597 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
29599         PR rtl-optimization/87871
29600         * ira-lives.c (make_object_dead): Don't add conflicts to
29601         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29603 2019-04-18  Martin Sebor  <msebor@redhat.com>
29605         PR middle-end/89797
29606         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29607         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29608         assuming type size fits in SHWI.
29610 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
29612         PR ipa/85051
29613         * ipa-inline.c (flatten_function): New parameter UPDATE.
29614         (ipa_inline, early_inliner): Use it.
29616 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
29618         * fold-const.c (int_const_binop): Return early on failure.
29620 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
29622         PR middle-end/85164
29623         * combine.c (force_int_to_mode): Cast the argument rather than
29624         the result of known_alignment.
29625         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29627 2019-04-18  Richard Biener  <rguenther@suse.de>
29629         PR debug/90131
29630         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29631         out from ...
29632         (remove_forwarder_block): ... here.
29633         (remove_forwarder_block_with_phi): Also move debug stmts here.
29635 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
29637         PR translation/79183
29638         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29639         inform where appropriate.
29641 2019-04-18  Richard Biener  <rguenther@suse.de>
29643         * tree.c (get_qualified_type): Put found type variants at the
29644         head of the variant list.
29646 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29648         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29650 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
29652         PR target/90125
29653         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29654         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29655         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29656         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29657         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29659 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
29661         * ira-conflicts.c (print_allocno_conflicts): Always print something,
29662         even for allocno's with no conflicts.
29663         (print_conflicts): Print an extra newline.
29665 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29667         * auto-inc-dec.c (attempt_change): Set the alignment of the
29668         temporary memory to that of the original.
29670 2019-04-17  Joao Moreira  <jmoreira@suse.de>
29672         * targhooks.c (default_print_patchable_function_entry): Emit
29673         __patchable_function_entries section with writable flags to allow
29674         relocation resolution.
29676 2019-04-17  Jonny Grant  <jg@jguk.org>
29678         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29680 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
29682         PR middle-end/90095
29683         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29684         on lowpart SUBREGs.
29686 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
29688         * config/arc/arc.c (arc_init): Format diagnostic string.
29689         (arc_override_options): Likewise.
29690         (check_if_valid_regno_const): Likewise.
29691         (arc_reorg): Likewise.
29693 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29695         PR target/17108
29696         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29697         name.
29698         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
29699         name.
29700         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29701         (*movdi_update1): Use Pmode.
29702         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29703         (movdi_<mode>_update_stack): Rename to ...
29704         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
29705         use Pmode.
29706         (*movsi_update1): Use Pmode.
29707         (*movsi_update2): Use Pmode.
29708         (movsi_update): Rename to ...
29709         (movsi_<mode>_update): ... this.  Use Pmode.
29710         (movsi_update_stack): Fix condition.
29711         (*movhi_update1): Use Pmode.  Fix argument to
29712         avoiding_indexed_address_p.
29713         (*movhi_update2): Ditto.
29714         (*movhi_update3): Ditto.
29715         (*movhi_update4): Ditto.
29716         (*movqi_update1): Ditto.
29717         (*movqi_update2): Ditto.
29718         (*movqi_update3): Ditto.
29719         (*movsf_update1, *movdf_update1): Merge, rename to...
29720         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
29721         avoiding_indexed_address_p.  Add "size" attribute.
29722         (*movsf_update2, *movdf_update2): Merge, rename to...
29723         (*mov<mode>_update2): This.  Ditto.
29724         (*movsf_update3): Use Pmode.  Fix argument to
29725         avoiding_indexed_address_p.
29726         (*movsf_update4): Ditto.
29727         (allocate_stack): Simplify condition.  Adjust pattern names.
29729 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
29731         PR target/89093
29732         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29733         whitespace at the start of target attribute string.
29735 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
29737         PR target/84369
29738         * config/rs6000/power9.md: Add store forwarding bypass.
29740 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
29742         PR debug/89528
29743         * valtrack.c (dead_debug_insert_temp): Reset debug references
29744         to the return value of a call being removed.
29746 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29748         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29749         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29750         implement target hook.
29751         (arc_memory_move_cost): New function.
29752         (TARGET_REGISTER_MOVE_COST): Define.
29753         (TARGET_MEMORY_MOVE_COST): Likewise.
29754         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29755         (MEMORY_MOVE_COST): Likewise.
29757 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29759         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29760         (sibcall_value_insn): Likewise.
29761         * config/arc/constraints.md (Rs5): Remove.
29763 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29765         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29766         for last two fake registers.
29767         (arc_conditional_register_usage): Make sure fake frame and arg
29768         pointer regs are in general regs class.
29769         (FRAME_POINTER_MASK): Remove.
29770         (RETURN_ADDR_MASK): Remove.
29771         (arc_must_save_register): Use hard frame regnum.
29772         (frame_restore_reg): Use hard_frame_pointer_rtx.
29773         (arc_save_callee_saves): Likewise.
29774         (arc_restore_callee_saves): Likewise.
29775         (arc_save_callee_enter): Likewise.
29776         (arc_restore_callee_leave): Likewise.
29777         (arc_save_callee_milli): Likewise.
29778         (arc_eh_return_address_location): Likewise.
29779         (arc_check_multi): Use hard frame regnum.
29780         (arc_can_eliminate): Likewise.
29781         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29782         for register allocator.
29783         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29784         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29785         (FRAME_POINTER_REGNUM): Change it to a fake register.
29786         (HARD_FRAME_POINTER_REGNUM): Defined.
29787         (ARG_POINTER_REGNUM): Change it to a new fake register.
29788         (ELIMINABLE_REGS): Update.
29789         (REGISTER_NAMES): Update names.
29790         * config/arc/arc.md (LP_START): Remove.
29791         (LP_END): Likewise.
29792         (shift_si3_loop): Update pattern.
29794 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29796         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29797         to avoid delay slot scheduling.
29798         (arc_must_save_register): Don't save SP.
29799         * config/arc/arc.md (stack_tie): Remove.
29800         (UNSPEC_ARC_STKTIE): Likewise.
29802 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
29803             Shiva Chen  <shiva0217@gmail.com>
29805         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29806         code gen with large shift amount.
29808 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29810         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29811         subreg.
29813 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
29815         PR target/90096
29816         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29817         print -m64/-mx32/-m32 if it is true.
29818         (ix86_debug_options, ix86_function_specific_print): Pass true as
29819         ADD_ABI_P to ix86_target_string.
29820         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29821         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29822         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29824         PR rtl-optimization/90082
29825         * dce.c (can_delete_call): New function.
29826         (deletable_insn_p, mark_insn): Use it.
29828         PR tree-optimization/90090
29829         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29830         throw internally.
29831         (is_division_by_square): Likewise.  Formatting fix.
29833 2019-04-16  Richard Biener  <rguenther@suse.de>
29835         PR tree-optimization/56049
29836         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29837         equality check if alias-set zero will prevail.
29839 2019-04-15  Jeff Law  <law@redhat.com>
29841         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29842         size and alignment as unsigned.
29844 2019-04-15  Richard Biener  <rguenther@suse.de>
29846         PR debug/90074
29847         * tree-loop-distribution.c (destroy_loop): Preserve correct
29848         debug info.
29850 2019-04-15  Richard Biener  <rguenther@suse.de>
29852         PR tree-optimization/90071
29853         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29854         abnormal operands from def stmts.
29856 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
29858         PR rtl-optimization/89794
29859         * combine.c (count_auto_inc): New function.
29860         (try_combine): Count how many auto_inc expressions there were in the
29861         original instructions.  Ensure we have the same number in the new
29862         instructions.  Remove the code that tried to ensure auto_inc side
29863         effects on i1 and i0 are not lost.
29865 2019-04-15  Richard Biener  <rguenther@suse.de>
29867         PR ipa/88936
29868         * tree.h (auto_var_p): Declare.
29869         * tree.c (auto_var_p): New function, split out from ...
29870         (auto_var_in_fn_p): ... here.
29871         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29872         member.
29873         (new_var_info): Initialize it.
29874         (set_uids_in_ptset): Also set the shadow variable uid if required.
29875         (ipa_pta_execute): Postprocess points-to solutions assigning
29876         shadow variable uids for locals that may reach their containing
29877         function recursively.
29878         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29879         assert but instead check whether the points-to solution is
29880         a singleton.
29882 2019-04-15  Martin Jambor  <mjambor@suse.cz>
29884         PR ipa/pr89693
29885         * cgraph.c (clone_of_p): Loop over clone chain for each step in
29886         the thunk chain.
29888 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29890         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29892 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29893             Kito Cheng  <kito.cheng@gmail.com>
29894             Shiva Chen  <shiva0217@gmail.com>
29896         * config/nds32/nds32-md-auxiliary.c
29897         (nds32_legitimize_pic_address): Use new PIC pattern.
29898         (nds32_legitimize_tls_address): Use new TLS pattern.
29899         (nds32_output_symrel): New.
29900         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29901         (nds32_alloc_relax_group_id): Ditto.
29902         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29903         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29904         relax_group_id.
29905         (nds32_group_tls_insn): Ditto.
29906         (nds32_group_float_insns): Ditto.
29907         * config/nds32/nds32.md (tls_le): New.
29908         (sym_got): Ditto.
29910 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
29912         * configure: Add nds32 target for dwarf2 debug_line checking.
29913         * configure.ac: Regenerated.
29915 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
29917         PR lto/89358
29918         * ipa-devirt.c (skip_in_fields_list_p): New.
29919         (odr_types_equivalent_p): Use it.
29921 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
29923         PR target/89093
29924         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29925         instead of strncmp when checking for thumb and arm.  Formatting fixes.
29927 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
29929         * doc/install.texi: Document --with-target-system-zlib.
29931 2019-04-12  Martin Sebor  <msebor@redhat.com>
29933         PR c/88383
29934         PR c/89288
29935         PR c/89798
29936         PR c/89797
29937         * targhooks.c (default_vector_alignment): Avoid assuming
29938         argument fits in SHWI.
29939         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29940         a shift expression.
29941         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29943 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29945         PR rtl-optimization/89965
29946         * dce.c: Include rtl-iter.h.
29947         (struct check_argument_load_data): New type.
29948         (check_argument_load): New function.
29949         (find_call_stack_args): Check for loads from stack slots still tracked
29950         in sp_bytes and punt if any is found.
29952         * config/mips/loongson-mmiintrin.h: Fix up #error message.
29954 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
29956         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29957         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29959 2019-04-12  Martin Liska  <mliska@suse.cz>
29961         PR middle-end/89970
29962         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29963         in error message.
29964         (separate_attrs): Handle multiple 'default's.
29965         (expand_target_clones): Rework error handling code.
29967 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29969         PR target/87532
29970         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29971         mode of vector rather than mode of destination for move instruction.
29972         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29973         Use QI inner mode with V16QI vector mode.
29975 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29977         PR target/52726
29978         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29979         "invalid %%t operand" in output_operand_lossage message.
29981 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
29983         * config/s390/predicates.md (permute_pattern_operand): New
29984         predicate.
29985         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29986         operand for the permute pattern.
29987         ("*vec_perm<mode>"): New insn definition.
29988         ("bswap<mode>"): Generate the permute pattern operand in the
29989         expander and perform the operand reloads for pre arch13 level
29990         already.
29991         ("*bswap<mode>_emu"): Rename to ...
29992         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29993         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29994         Add the USE operand for the permute pattern.
29995         ("*vec_set_bswap_vec<mode>"): Likewise.
29997 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29999         PR c/89946
30000         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
30001         and gcc_unreachable if it fails, just call tree_to_uhwi which
30002         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
30003         Start warning message with a lower-case letter.  Formatting fixes.
30005         PR rtl-optimization/90026
30006         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
30007         successors, look for BARRIERs inside of the whole BB_FOOTER chain
30008         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
30009         in cfglayout mode, use emit_barrier_after_bb.
30011 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
30013         PR rtl-optimization/87763
30014         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
30015         New Instruction.
30017 2019-04-11  Tom de Vries  <tdevries@suse.de>
30019         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
30020         max macro using statement expression.
30022 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
30024         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
30025         * xcoffout.c (xcoff_private_rodata_section_name): Define.
30026         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
30027         read_only_private_data_section using xcoff_private_rodata_section_name.
30028         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
30030 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
30032         PR target/90016
30033         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
30035 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
30037         PR rtl-optimization/89965
30038         * dce.c (sp_based_mem_offset): New function.
30039         (find_call_stack_args): Use sp_based_mem_offset.
30041 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
30043         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
30045 2019-04-11  Richard Biener  <rguenther@suse.de>
30047         PR tree-optimization/90020
30048         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
30049         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
30050         * tree-ssa-pre.c (compute_avail): Use it to not put
30051         possibly trapping references after a call that might not
30052         return into EXP_GEN.
30053         * gcse.c (compute_hash_table_work): Do not elide
30054         marking a block containing a call if the call might not
30055         return.
30057 2019-04-11  Richard Biener  <rguenther@suse.de>
30059         PR tree-optimization/90018
30060         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
30061         Test both SLP and interleaving variants.
30063 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
30065         * config/s390/8561.md: New file.
30066         * config/s390/driver-native.c (s390_host_detect_local_cpu):
30067         Add arch13 cpu model.
30068         * config/s390/s390-opts.h (enum processor_type): Likewise.
30069         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
30070         (s390_get_unit_mask): Likewise.
30071         (s390_is_fpd): Likewise.
30072         (s390_is_fxd): Likewise.
30073         * config/s390/s390.h (s390_tune_attr): Likewise.
30074         * config/s390/s390.md: Include arch13 pipeline description.
30075         * config/s390/s390.opt: Add arch13.
30077 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
30079         PR rtl-optimization/87763
30080         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
30081         New prototype.
30082         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
30083         New function.
30084         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
30085         New instruction.
30086         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
30087         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
30088         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
30089         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
30091 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
30093         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
30094         "Although" in -fipa-icf documentation.
30096         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
30097         of using multiple -g options.
30099 2019-04-10  Martin Liska  <mliska@suse.cz>
30101         PR gcov-profile/89959
30102         * doc/gcov.texi: Make documentation of -x option
30103         more precise.
30105 2019-04-10  Richard Biener  <rguenther@suse.de>
30107         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
30108         member.
30109         (DR_GROUP_SAME_DR_STMT): Remove.
30110         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
30111         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
30112         replace with assert.
30113         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
30114         (vect_record_grouped_load_vectors): Remove unreachable code.
30116 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
30118         PR target/90016
30119         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
30120         obsolete reference to N.
30122 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
30124         PR middle-end/90025
30125         * expr.c (store_expr): Set properly size on the MEM passed to
30126         clear_storage.
30128         PR c++/90010
30129         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
30130         with strlen in between hostsz-3 and hostsz-1 inclusive when no
30131         translation is needed, and when translation is needed, only append
30132         ... if the string length is hostsz or more bytes long.  Avoid using
30133         strncpy or strcat.
30135 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
30137         PR target/90024
30138         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
30139         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
30140         into three.
30141         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
30142         differences directly.
30143         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
30145 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30147         PR translation/90011
30148         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30149         from diagnostics.
30150         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
30151         diagnostics.
30152         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30153         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
30154         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
30155         trailing space from -gsplit-dwarf diagnostics.
30157         PR tree-optimization/89998
30158         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
30159         instead of integer_type_node if possible, don't add ranges if return
30160         type is not compatible with int.
30161         * gimple-fold.c (gimple_fold_builtin_sprintf,
30162         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
30163         integer_type_node.
30165 2019-04-09  Martin Liska  <mliska@suse.cz>
30167         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
30168         * doc/install.texi: Document the new config.
30170 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
30172         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
30173         use gimple_expr_type for load and store calls.  Skip over the
30174         condition argument in a conditional internal function.
30175         Protect use of TREE_INT_CST_LOW.
30177 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30179         PR target/90015
30180         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
30181         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
30182         trailing period from it too.
30184 2019-04-08  wu yuan  <wuyuan5@huawei.com>
30186         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
30187         * config/aarch64/aarch64.md: Add "tsv110.md".
30188         * config/aarch64/tsv110.md: New file.
30190 2019-04-08  Richard Biener  <rguenther@suse.de>
30192         PR tree-optimization/90006
30193         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
30194         calls like lrint.
30196 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
30198         PR target/83033
30199         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
30200         construction.
30201         (fma_root_node): Likewise.
30202         (func_fma_steering): Likewise.
30204 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
30206         PR rtl-optimization/89865
30207         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
30209         PR rtl-optimization/89865
30210         * config/i386/i386.md
30211         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
30212         numbers not to clash with the additional operands[4].
30213         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
30214         with extra register copy in the middle.
30216 2019-04-08  Martin Liska  <mliska@suse.cz>
30218         PR gcov-profile/89961
30219         * doc/gcov.texi: Document data_file.
30220         * gcov.c (generate_results): Add data_info into JSON output.
30222 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
30224         PR tree-optimization/89725
30225         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
30226         loop's chrec as invariant symbol.
30227         * tree-chrec.h (chrec_contains_symbols): New parameter.
30228         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
30229         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
30230         function of loops not in DDR's loop_nest.
30231         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30233 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
30235         PR target/89623
30236         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
30237         Mask.
30239 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
30241         PR target/89945
30242         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
30243         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
30245 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
30247         * sched-deps.c (sched_macro_fuse_insns): Check return value of
30248         targetm.fixed_condition_code_regs.
30250 2019-04-05  Richard Biener  <rguenther@suse.de>
30252         PR debug/89892
30253         PR debug/89905
30254         * tree-cfgcleanup.c (remove_forwarder_block): Always move
30255         debug bind stmts but reset them if they are not valid at the
30256         destination.
30258 2019-04-05  Martin Liska  <mliska@suse.cz>
30260         PR translation/89936
30261         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
30262         order to wrap keywords or arguments.
30263         * collect2.c (main): Likewise.
30264         (scan_prog_file): Likewise.
30265         (scan_libraries): Likewise.
30266         * common/config/riscv/riscv-common.c
30267         (riscv_subset_list::parsing_subset_version): Likewise.
30268         (riscv_subset_list::parse_std_ext): Likewise.
30269         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30270         Likewise.
30271         * config/arm/arm.c (arm_option_override): Likewise.
30272         * config/cris/cris.c (cris_print_operand): Likewise.
30273         * config/darwin-c.c (darwin_pragma_options): Likewise.
30274         (darwin_pragma_unused): Likewise.
30275         (darwin_pragma_ms_struct): Likewise.
30276         * config/ft32/ft32.c (ft32_print_operand): Likewise.
30277         * config/i386/i386.c (print_reg): Likewise.
30278         (ix86_print_operand): Likewise.
30279         * config/i386/xm-djgpp.h: Likewise.
30280         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
30281         * config/m32c/m32c.c (m32c_option_override): Likewise.
30282         * config/msp430/msp430.c (msp430_option_override): Likewise.
30283         * config/nds32/nds32.c (nds32_option_override): Likewise.
30284         * config/nvptx/mkoffload.c (main): Likewise.
30285         * config/rx/rx.c (rx_print_operand): Likewise.
30286         (valid_psw_flag): Likewise.
30287         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30288         (vms_pragma_nomember_alignment): Likewise.
30289         (vms_pragma_extern_model): Likewise.
30290         * lto-wrapper.c (compile_offload_image): Likewise.
30291         * omp-offload.c (oacc_parse_default_dims): Likewise.
30292         * symtab.c (symtab_node::verify_base): Likewise.
30293         * tlink.c (recompile_files): Likewise.
30294         (start_tweaking): Likewise.
30295         * tree-profile.c (parse_profile_filter): Likewise.
30297 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
30299         PR tree-optimization/89956
30300         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30301         multiple negates of the same value.
30303 2019-04-04  Martin Sebor  <msebor@redhat.com>
30305         PR middle-end/89957
30306         PR middle-end/89911
30307         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30308         have the same precision since the function crashes otherwise.
30309         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30310         has non-zero arguments.
30312 2019-04-04  Martin Sebor  <msebor@redhat.com>
30314         PR middle-end/89934
30315         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30316         out if the number of arguments is less than expected.
30318 2019-04-04  Jeff Law  <law@redhat.com>
30320         PR rtl-optimization/89399
30321         * ree.c (combine_set_extension): Use single_set rather than
30322         digging into PATTERN for items on the candidate list.
30323         (combine_reaching_defs): Likewise.
30325 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
30327         PR rtl-optimization/46590
30328         * loop-invariant.c (find_defs): Move df_remove_problem and
30329         df_process_deferred_rescans to move_invariants.
30330         Move df_live_add_problem and df_live_set_all_dirty calls
30331         to move_invariants.
30332         (move_invariants): Likewise.
30333         (move_loop_invariants): Likewise, making the df_live calls
30334         conditional on -O.  Remove the problem again if we added it
30335         locally.
30337 2019-04-03  qing zhao  <qing.zhao@oracle.com>
30339         PR tree-optimization/89730
30340         * ipa-inline.c (can_inline_edge_p): Delete the checking for
30341         -flive-patching=inline-only-static.
30342         (can_inline_edge_by_limits_p): Add the checking for
30343         -flive-patching=inline-only-static and grant always_inline
30344         even when -flive-patching=inline-only-static is specified.
30346 2019-04-03  Jeff Law  <law@redhat.com>
30348         PR rtl-optimization/81025
30349         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30351 2019-04-03  Richard Biener  <rguenther@suse.de>
30353         PR tree-optimization/84101
30354         * tree-vect-stmts.c: Include explow.h for hard_function_value,
30355         regs.h for hard_regno_nregs.
30356         (cfun_returns): New helper.
30357         (vect_model_store_cost): When vectorizing a store to a decl
30358         we return and the function ABI returns in a multi-reg location
30359         account for the possible spilling that will happen.
30361 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
30363         * config/s390/s390.c (s390_legitimate_address_p): Reject long
30364         displacement addresses for vector mode operands.
30366 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
30368         * config/arc/arc.c (GMASK_LEN): Define.
30369         (arc_restore_callee_saves): Restore first blink when
30370         !optimize_size.
30372 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
30374         * doc/extend.texi: Add deprecated comment on sign-return-address
30375         function attribute and add mbranch-protection.
30376         * doc/invoke.texi: Add bti to the options for mbranch-protection.
30378 2019-04-03  Richard Biener  <rguenther@suse.de>
30380         PR lto/89896
30381         * lto-wrapper.c (run_gcc): Avoid implicit rules making
30382         the all target phony.
30384 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
30386         PR target/89902
30387         PR target/89903
30388         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30389         Return false for variable DImode shifts.
30390         (dimode_scalar_chain::compute_convert_gain): Do not handle
30391         register count operand in variable DImode shifts.
30392         (dimode_scalar_chain::make_vector_copies): Remove support to copy
30393         count argument of a variable shift instruction to a vector register.
30394         (dimode_scalar_chain::convert_reg): Remove support to convert
30395         count argument of a variable shift instruction.
30397 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30399         PR rtl-optimization/84206
30400         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30401         iterating over loop headers.
30403 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30405         PR rtl-optimization/85876
30406         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30407         beyond the original fence.
30409 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
30411         * config.gcc: Mark spu* targets as deprecated/obsolete.
30413 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30415         * config/s390/s390-builtin-types.def: New builtin function type
30416         definitions. Remove unused types.
30417         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30418         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30419         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30420         overloaded builtins.
30421         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30422         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30423         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30424         (vec_double, vec_signed, vec_unsigned): Define to use the new
30425         overloaded builtins.
30426         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30427         Remove expanders.
30429 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30431         * config/s390/s390-builtin-types.def: New builtin function type
30432         definitions.
30433         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30434         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30435         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30436         (s390_vstrszh, s390_vstrszf): New low-level builtins.
30437         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30438         constant definitions.
30439         * config/s390/vecintrin.h (vec_search_string_cc)
30440         (vec_search_string_until_zero_cc): New builtin name definitions.
30441         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30442         expanders.
30443         ("vec_vstrs<mode>"): New insn definition.
30445 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30447         * config/s390/s390-builtin-types.def: Add new builtin function
30448         types.
30449         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30450         New overloaded builtins.
30451         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
30452         s390_vsrd.
30453         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30454         (UNSPEC_VEC_SLDBYTE): ... this.
30455         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30456         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30457         definitions.
30458         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30459         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30460         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30462 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30464         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30465         New insn definition.
30466         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30467         * config/s390/vector.md (V_HW_HSD): ... here.
30469 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30471         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30472         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30473         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30474         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30475         New insn definitions.
30477 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30479         * config/s390/s390-builtin-types.def: Add new builtin function type.
30480         * config/s390/s390-builtins.def: Add overloaded builtin
30481         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30482         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30483         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30484         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30485         ("eltswap<mode>"): New expander.
30486         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30487         insn definitions.
30489 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30491         * config/s390/s390-builtin-types.def: Add new builtin function types.
30492         * config/s390/s390-builtins.def: Add overloaded builtin
30493         s390_vec_revb. Add low-level builtins for vlbr and vstbr
30494         instructions.
30495         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30496         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30497         ("bswap<mode>"): New expander.
30498         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30500 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30502         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30503         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30504         vector builtin version number in __VEC__.
30506 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30508         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30509         iterators.
30510         (SFSI): New mode attribute.
30511         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30512         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30513         rename to ...
30514         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30515         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30516         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30517         ("floatsi<mode>2"): Add wcefb instruction.
30519 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30521         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30522         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30523         mode iterators.
30524         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30525         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30526         support 32 bit fp-int conversions. Rename to ...
30527         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30528         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30529         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30530         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30531         ... to these.
30533 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30535         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30536         if-then-else constructs if we can use the select instruction.
30537         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30539 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30541         * config/s390/s390.md ("*popcountdi_arch13_cc")
30542         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30543         definition.
30544         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30545         Append _z196 to make it ...
30546         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30547         ("popcounthi2_z196"): ... this.
30548         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30549         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30551 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30553         * config/s390/s390.c (s390_canonicalize_comparison): Convert
30554         certain compares for arch13 in order to make use of the condition
30555         code result produced by the new instructions.
30556         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30557         nxrk, and nxgrk instruction patterns.
30558         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30559         (inv_no): Add new code iterator together with some attributes.
30560         ("*andc_split_<mode>"): Disable splitter for arch13.
30561         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30562         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30563         ("*<ANDOR:bitops_name>c<GPR:mode>")
30564         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30565         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30566         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30567         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30569 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30571         * common/config/s390/s390-common.c (processor_flags_table): New
30572         entry for arch13.
30573         * config.gcc: Support arch13 with the --with-arch= configure flag.
30574         * config/s390/driver-native.c (s390_host_detect_local_cpu):
30575         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30576         * config/s390/s390.c (s390_get_sched_attrmask)
30577         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30578         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30579         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30580         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30581         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30582         definitions.
30583         * config/s390/s390.opt: Support arch13 as processor type in
30584         command line options.
30586 2019-04-02  Martin Liska  <mliska@suse.cz>
30588         PR translation/89912
30589         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30590         Fix param description of graphite-max-arrays-per-scop.
30592 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30594         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30595         (ASAN_CC1_SPEC): Use it in 64-bit mode.
30596         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30598 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30600         PR rtl-optimization/85412
30601         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30602         sel_sched_region_1, not after.
30604 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30606         PR rtl-optimization/86928
30607         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30608         compute_live if necessary.
30609         (sel_redirect_edge_and_branch): Likewise.
30611 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
30613         PR rtl-optimization/89865
30614         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30615         register if it is a part of small class.
30617 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30619         PR rtl-optimization/87273
30620         * sel-sched-ir.c (merge_fences): Remove assert.
30622 2019-04-01  Richard Biener  <rguenther@suse.de>
30624         PR tree-optimization/46590
30625         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30626         (dom_walker::m_reachability): Add in place of...
30627         (dom_walker::m_skip_unreachable_blocks): ...this.
30628         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30629         Move complex initialization ...
30630         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
30631         lazily and initialize edge flags on each invocation.
30632         (dom_walker::bb_reachable): Use m_reachability.
30634 2019-04-01  Martin Liska  <mliska@suse.cz>
30636         PR driver/89861
30637         * opt-suggestions.c (option_proposer::build_option_suggestions):
30638         Add variant without any argument in order to provide better
30639         hints.
30641 2019-04-01  Richard Biener  <rguenther@suse.de>
30643         PR c/71598
30644         * gimple.c: Include langhooks.h.
30645         (gimple_get_alias_set): Treat enumeral types as the underlying
30646         integer type.
30648 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
30649             Eric Botcazou  <ebotcazou@adacore.com>
30651         PR rtl-optimization/89862
30652         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30653         that operates on the full registers for WORD_REGISTER_OPERATIONS
30654         architectures.
30656 2019-03-29  Jim Wilson  <jimw@sifive.com>
30658         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30659         Clear MASK_RVC and then set if C subset supported.
30661 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
30663         PR c/89872
30664         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30665         non-addressable complit into its initializer if it is volatile.
30667 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
30669         * opts-common.c (integral_argument): Set errno properly in one case.
30671 2019-03-29  Martin Liska  <mliska@suse.cz>
30673         * doc/invoke.texi: Remove -Wchkp from documentation.
30675 2019-03-29  Martin Liska  <mliska@suse.cz>
30677         * dbgcnt.c (print_limit_reach): New function.
30678         (dbg_cnt): Use it.
30680 2019-03-29  Martin Liska  <mliska@suse.cz>
30682         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30683         (dbg_cnt_process_opt): Parse first tokens aas
30684         dbg_cnt_process_single_pair is also using strtok.
30686 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
30688         PR rtl-optimization/87485
30689         * function.c (expand_function_end): Move stack_protect_epilogue
30690         before loading of return value into hard register(s).
30692 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
30694         PR middle-end/89621
30695         * tree-inline.h (struct copy_body_data): Add
30696         dont_remap_vla_if_no_change flag.
30697         * tree-inline.c (remap_type_3, remap_type_2): New functions.
30698         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30699         and remap_type_2 returns false.
30700         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30701         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30702         only from where it is copied to nested contexts.
30704 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
30706         PR target/89865
30707         * config/i386/i386.md (RMW operation with LEA peephole):
30708         Use LEAMODE mode attribute instead of SWI mode iterator for
30709         LEA pattern.
30711 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
30713         PR target/89848
30714         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30715         Also process XEXP (src, 0) of a shift insn.
30717 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
30719         PR middle-end/89725
30720         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30721         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30723 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
30725         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30726         test.
30727         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30728         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
30729         immediately after first one with df_analyze in between, but rather
30730         process all bbs, queueing ones that need second pass in a worklist,
30731         df_analyze, process queued debug insn changes and if second pass is
30732         needed, process bbs from worklist, df_analyze, process queued debug
30733         insns again.
30735         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30736         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30737         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30739 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
30741         PR c/79022
30742         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30743         definition.
30745 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
30747         PR target/85667
30748         * config/i386/i386.c (ix86_function_value_1): Call the newly added
30749         function for 32-bit MS_ABI.
30750         (function_value_ms_32): New function.
30752 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
30754         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30755         (movdi): Call gen_movdi_symbol_save_scc.
30756         (gen_movdi_symbol_save_scc): New insn and split.
30758 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
30760         PR rtl-optimization/89313
30761         * function.c (matching_constraint_num): New static function.
30762         (match_asm_constraints_1): Use it.  Fixup white space and comment.
30763         Don't replace inputs with non-matching constraints which conflict
30764         with early clobber outputs.
30766 2019-03-27  Jeff Law  <law@redhat.com>
30768         PR rtl-optimization/87761
30769         PR rtl-optimization/89826
30770         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30771         slightly later.
30772         (pass_cprop_hardreg::execute): Call df_analyze after adding the
30773         note problem to get REG_DEAD/REG_UNUSED notes updated.
30775 2019-03-27  Richard Biener  <rguenther@suse.de>
30777         PR tree-optimization/89463
30778         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30779         queue edges to remove.
30780         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30781         dead stmts.  Delay edge removal until PHIs are removed to
30782         make debug-stmt creation not confused by seemingly degenerate
30783         PHIs.
30785 2019-03-27  Alan Modra  <amodra@gmail.com>
30787         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30788         throughout file.
30789         * config/rs6000/darwin.h: Likewise.
30790         * config/rs6000/rs6000.c: Likewise.
30792 2019-03-27  Alan Modra  <amodra@gmail.com>
30794         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30795         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
30797 2019-03-26  Andrew Waterman  <andrew@sifive.com>
30798             Jim Wilson  <jimw@sifive.com>
30800         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30801         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30802         (generic_idivdi, generic_fmul_single, generic_fmul_double)
30803         (generic_fdiv, generic_fsqrt): Add check for generic tune.
30804         (generic_alu): Add auipc to type list.
30805         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30806         (riscv_microarchitecture): Declare.
30807         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30808         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30809         field.
30810         (riscv_microarchitecture): New.
30811         (sifive_7_tune_info): New.
30812         (riscv_cpu_info_table): Add microarchitecture value for rocket and
30813         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
30814         entries.
30815         (riscv_store_data_bypass_p): New.
30816         (riscv_option_override): Set riscv_microarchitecture from
30817         cpu->microarchitecture.
30818         * config/riscv/riscv.md: Include sifive-7.md.
30819         (type): Add auipc.
30820         (tune): New.
30821         (auipc<mode>): Change type to auipc.
30822         (restore_stack_nonlocal): New.
30823         * config/riscv/sifive-7.md: New.
30824         * doc/invoke.texi (RISC-V Options): Update mtune docs.
30826 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
30828         PR target/89827
30829         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30830         Also process XEXP (src, 0) of a shift insn.
30832 2019-03-26  Richard Biener  <rguenther@suse.de>
30834         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30835         (copy_debug_stmt): Likewise.
30836         (expand_call_inline): Likewise.
30837         (copy_bb): Avoid redundant lookup & set of gimple_block.
30838         * gimple-low.c (lower_gimple_return): Likewise.
30839         (lower_builtin_setjmp): Likewise.
30841 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
30843         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30844         is constant 0, turn into static const data member initialized to false.
30845         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30846         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30848 2019-03-26  Jason Merrill  <jason@redhat.com>
30849             Jakub Jelinek  <jakub@redhat.com>
30851         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30852         method.
30853         (mem_alloc_description::release_object_overhead): Fix comment typos.
30854         * hash-table.h (hash_table::~hash_table): Call
30855         release_instance_overhead only if m_entries is non-NULL, otherwise
30856         call unregister_descriptor.
30858 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
30860         PR tree-optimization/81740
30861         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30862         In case of outer loop vectorization, check for backward dependence
30863         at the inner loop if outer loop dependence is reversed.
30865 2019-03-26  Alan Modra  <amodra@gmail.com>
30867         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30868         rs6000_vector_mem init.  Correct wI and wJ comment.
30870 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
30872         PR rtl-optimization/88347
30873         PR rtl-optimization/88423
30874         * sched-deps.c (sched_analyze_insn): Take into account that for
30875         tablejumps the barrier appears after a label and a jump_table_data.
30877 2019-03-25  Martin Sebor  <msebor@redhat.com>
30879         PR c/89812
30880         * c-common.c (check_user_alignment): Rename local.  Correct maximum
30881         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
30882         convert it to UHWI when it fits.
30884 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
30886         PR debug/86964
30887         * dwarf2out.c (premark_used_variables): New function.
30888         (prune_unused_types_walk): Do not mark not premarked external
30889         variables.
30890         (prune_unused_types): Call premark_used_variables.
30892 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
30894         PR rtl-optimization/89676
30895         * lra-constraints.c (curr_insn_transform): Do match reload for
30896         early clobbers when the match was successful only for different
30897         registers.
30899 2019-03-25  Martin Sebor  <msebor@redhat.com>
30901         * doc/extend.texi (Common Type Attributes): Document vector_size.
30902         (Common Variable Attributes): Mention size constraint.  Correct
30903         quoting and typos.
30904         (Vector Extensions): Use @dfn when defining bas type.  Clarify
30905         base type and size constraints.
30907 2019-03-25  Richard Biener  <rguenther@suse.de>
30909         PR tree-optimization/89789
30910         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30911         changes from non-undefined back to undefined.
30913 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
30915         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30916         heap string and a gc string, but since this variable is unknown to
30917         ggc the gc string might get reused and corrupted. Fixed by always
30918         using a heap string.
30920 2019-03-25  Richard Biener  <rguenther@suse.de>
30922         PR tree-optimization/89779
30923         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30924         to remove IV defs, delay actual removal.
30925         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
30926         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30927         very end, properly also reset loop control IV information.
30929 2019-03-25  Richard Biener  <rguenther@suse.de>
30931         PR tree-optimization/89802
30932         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30933         move EH data to folded stmt.
30935 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30937         * config/s390/s390-builtin-types.def: Remove few unused types and
30938         fix sort order for others.
30940 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30942         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30943         expected and found types with -mdebug during builtin matching.
30945 2019-03-25  Richard Biener  <rguenther@suse.de>
30947         PR middle-end/89790
30948         * fold-const.c (operand_equal_p): Revert last change with
30949         updated comment.
30951 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
30953         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30954         notes for the result of the __tls_get_addr calls.
30955         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30957 2019-03-24  Jeff Law  <law@redhat.com>
30959         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30961         PR rtl-optimization/87761
30962         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30963         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
30964         as needed.
30965         (pass_cprop_hardreg::execute): Add df note problem and defer insn
30966         rescans.  Reprocess blocks as needed, calling df_analyze before
30967         reprocessing.  Always call df_analyze before fixing up debug bind
30968         insns.
30970 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
30972         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30973         big endian.
30975 2019-03-22  Andrew Pinski  <apinski@marvell.com>
30977         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30978         attrribute for uxtw.
30980 2019-03-26  Jeff Law  <law@redhat.com>
30982         PR rtl-optimization/87761
30983         * config/mips/mips-protos.h (mips_split_move): Add new argument.
30984         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30985         (mips_split_move): Accept new INSN argument.  Try to forward SRC
30986         into the next instruction.
30987         (mips_split_move_insn): Pass INSN through to mips_split_move.
30989 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
30991         PR rtl-optimization/89676
30992         * lra-constraints.c (curr_insn_transform): Do match reload for
30993         early clobbers even if the match was successful.
30995 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
30997         PR c++/87481
30998         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
31000 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
31002         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
31004 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
31006         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
31007         <avx512>_fmsub_<mode>_mask3<round_name>,
31008         <avx512>_fnmadd_<mode>_mask3<round_name>,
31009         <avx512>_fnmsub_<mode>_mask3<round_name>,
31010         avx512f_vmfmadd_<mode>_mask3<round_name>,
31011         avx512f_vmfmsub_<mode>_mask3<round_name>,
31012         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
31013         instead of register_operand and %v instead of v for match_operand 1.
31014         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
31015         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
31016         <round_nimm_predicate> instead of register_operand and %v instead of v
31017         for match_operand 1.
31019         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
31020         <avx512>_fmadd_<mode>_mask3<round_name>,
31021         <avx512>_fmsub_<mode>_mask<round_name>,
31022         <avx512>_fmsub_<mode>_mask3<round_name>,
31023         <avx512>_fnmadd_<mode>_mask<round_name>,
31024         <avx512>_fnmadd_<mode>_mask3<round_name>,
31025         <avx512>_fnmsub_<mode>_mask<round_name>,
31026         <avx512>_fnmsub_<mode>_mask3<round_name>,
31027         <avx512>_fmaddsub_<mode>_mask<round_name>,
31028         <avx512>_fmaddsub_<mode>_mask3<round_name>,
31029         <avx512>_fmsubadd_<mode>_mask<round_name>,
31030         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
31031         <round_nimm_predicate> instead of nonimmediate_operand.
31032         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
31033         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
31034         Use register_operand instead of <round_nimm_predicate> for the
31035         operand that needs to match output.
31036         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
31037         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
31038         Likewise.  Formatting fixes.
31040         PR target/89784
31041         * config/i386/i386.c (enum ix86_builtins): Remove
31042         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
31043         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
31044         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
31045         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
31046         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
31047         __builtin_ia32_vfmsubss3_mask3): New builtins.
31048         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
31049         avx512f_vmfmadd_<mode>_mask3<round_name>,
31050         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
31051         *avx512f_vmfmsub_<mode>_mask<round_name>,
31052         avx512f_vmfmsub_<mode>_mask3<round_name>,
31053         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
31054         *avx512f_vmfnmadd_<mode>_mask<round_name>,
31055         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
31056         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
31057         *avx512f_vmfnmsub_<mode>_mask<round_name>,
31058         avx512f_vmfnmsub_<mode>_mask3<round_name>,
31059         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
31060         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
31061         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
31062         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
31063         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
31064         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
31065         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
31066         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
31067         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
31068         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
31069         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
31070         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
31071         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
31072         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
31073         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
31074         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
31075         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
31076         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
31077         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
31078         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
31079         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
31080         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
31082 2019-03-21  Martin Sebor  <msebor@redhat.com>
31084         PR tree-optimization/89350
31085         * builtins.c (compute_objsize): Also ignore offsets whose upper
31086         bound is negative.
31087         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
31088         (builtin_memref::builtin_memref): Initialize new member.
31089         Allow EXPR to be null.
31090         (builtin_memref::extend_offset_range): Replace local with a member.
31091         Avoid assuming pointer offsets are unsigned.
31092         (builtin_memref::set_base_and_offset): Determine base object
31093         before computing offset range.
31094         (builtin_access::builtin_access): Handle memset.
31095         (builtin_access::generic_overlap): Replace local with a member.
31096         (builtin_access::strcat_overlap): Same.
31097         (builtin_access::overlap): Same.
31098         (maybe_diag_overlap): Same.
31099         (maybe_diag_access_bounds): Same.
31100         (wrestrict_dom_walker::check_call): Handle memset.
31101         (check_bounds_or_overlap): Same.
31103 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
31104             Jakub Jelinek  <jakub@redhat.com>
31106         PR lto/89692
31107         * tree.c (fld_type_variant, fld_incomplete_type_of,
31108         fld_process_array_type): Call fld->pset.add and don't call
31109         add_tree_to_fld_list if it returns true.
31110         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
31111         non-marked types from TYPE_NEXT_VARIANT list.
31112         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
31114 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
31116         * hash-table.h (hash_table): Add Lazy template parameter defaulted
31117         to false, if true, don't alloc_entries during construction, but defer
31118         it to the first method that needs m_entries allocated.
31119         (hash_table::hash_table, hash_table::~hash_table,
31120         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
31121         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
31122         hash_table::clear_slot, hash_table::traverse_noresize,
31123         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
31124         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
31125         false.
31126         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
31127         NO_INSERT instead of find_with_hash.
31128         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
31129         hash_set::m_table): Add Lazy to template params of hash_table.
31130         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
31131         * attribs.c (test_attribute_exclusions): Likewise.
31132         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
31133         hash_set.  Add tests for hash_set with Lazy = true.
31135 2019-03-21  Richard Biener  <rguenther@suse.de>
31137         PR tree-optimization/89779
31138         * tree.c (tree_nop_conversion): Consolidate and fix defensive
31139         checks with respect to released SSA names now having error_mark_node
31140         type.
31141         * fold-const.c (operand_equal_p): Likewise.
31143 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
31145         PR target/89775
31146         * config/s390/s390.c (global_not_special_regno_p): Move to make it
31147         available to ...
31148         (s390_optimize_register_info): Use global_not_special_regno_p to
31149         check for global regs.
31151 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
31153         PR target/89752
31154         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
31155         update this_alternative nor this_alternative_set.
31157 2019-03-19  Jim Wilson  <jimw@sifive.com>
31159         PR target/89411
31160         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
31161         align, size, offset.  Use them to handle a BLKmode reference.  Update
31162         comment.
31163         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
31165 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31167         PR rtl-optimization/89768
31168         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
31169         instead of GEN_INT.
31170         (unroll_loop_runtime_iterations): Likewise.
31172 2019-03-19  Martin Sebor  <msebor@redhat.com>
31174         PR tree-optimization/89644
31175         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
31176         rather than endptr as an indicator of nul-termination.
31178         PR tree-optimization/89644
31179         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
31180         arrays in determining sequence sizes in strncpy and stpncpy.
31182 2019-03-19  Martin Liska  <mliska@suse.cz>
31184         PR middle-end/89737
31185         * predict.c (combine_predictions_for_bb): Empty likely_edges and
31186         unlikely_edges if there's an edge that belongs to both these sets.
31188 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
31190         PR target/89746
31191         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
31192         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
31193         go via a stack temporary.
31195 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31197         PR target/89378
31198         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
31199         instead of gen_rtx_SUBREG.
31200         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
31202 2019-03-19  Richard Biener  <rguenther@suse.de>
31204         PR debug/88389
31205         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
31207 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
31209         PR lto/87809
31210         PR lto/89335
31211         * tree.c (free_lang_data_in_decl): Do not free context of C++
31212         destrutors.
31214 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31216         PR target/89506
31217         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
31218         subs for the first alternative except when operands[3] is 1.
31220         PR target/89752
31221         * gimplify.c (gimplify_asm_expr): For output argument with
31222         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
31223         diagnose error.
31225 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
31227         PR rtl-optimization/89753
31228         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31229         explicit unrolling factor even more robust.
31231 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31233         PR target/89726
31234         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
31235         compensation use x2 += 1 instead of x2 -= -1 and when honoring
31236         signed zeros, do another copysign after the compensation.
31238 2019-03-18  Martin Sebor  <msebor@redhat.com>
31240         PR tree-optimization/89720
31241         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
31242         more conservatively, the same as anti-range.
31244 2019-03-18  Richard Biener  <rguenther@suse.de>
31246         PR middle-end/88945
31247         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
31248         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
31249         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
31250         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
31252 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
31254         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
31255         Extend queue to 1024 entries.
31256         Add "consumed" field.
31257         (gomp_print_output): Remove print_index parameter.
31258         Add final parameter.
31259         Change limit to unsigned.
31260         Use consumed field to implement circular buffer.
31261         Detect interrupted print in final pass.
31262         Flush output at the end.
31263         (run): Update gomp_print_output usage.
31264         (main): Initialize kernargs->output_data.consumed.
31266 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
31268         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
31269         calculation of the minimum number of scalar iterations for
31270         fully-predicated loops.
31272 2019-03-18  Martin Jambor  <mjambor@suse.cz>
31274         PR tree-optimization/89546
31275         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
31276         any propagation to its children took place.
31278 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
31280         PR target/89627
31281         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
31282         parameter, and make use of it.
31283         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
31285 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31287         * config/arc/arc.opt (mcode-density-frame): Get the inital value
31288         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31289         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31290         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31291         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31292         match what the ops is doing.
31293         (push_multi_fp_blink): Likewise.
31294         * config/arc/arc.c (arc_override_options): Enable enter/leave when
31295         compiling for size and elf target.
31296         (arc_save_callee_enter): Adjust note to match what enter/leave
31297         operation does.
31299 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31301         * config/arc/arc.md (tst_movb): Fix constraint.
31303 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31305         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31307 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31309         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31310         * config/arc/arc.c (arc_conditional_register_usage): Remove all
31311         reg_alloc_order references.
31312         (size_alloc_order): Define.
31313         (arc_adjust_reg_alloc_order): New function.
31314         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31315         order.
31316         (ADJUST_REG_ALLOC_ORDER): Define.
31317         (HONOR_REG_ALLOC_ORDER): Likewise.
31319 2019-03-18  Richard Biener  <rguenther@suse.de>
31321         PR target/87561
31322         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31323         loads and stores a bit more.
31325 2019-03-18  Richard Biener  <rguenther@suse.de>
31327         PR target/87561
31328         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31329         load pessimization to stores as well.
31331 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
31333         PR middle-end/86979
31334         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31335         successor, use NULL as its av set.
31337 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
31339         PR rtl-optimization/89721
31340         * lra-constraints (invariant_p): Return false if side_effects_p holds.
31342 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
31344         PR target/87532
31345         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31346         When handling vec_extract, use modular arithmetic to allow
31347         constant selectors greater than vector length.
31348         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31349         V1TImode vectors to have constant selector values greater than 0.
31350         Use modular arithmetic to compute vector index.
31351         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31352         index for in-memory vectors.  Correct code generation for
31353         in-register vectors.
31354         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31355         compute index.
31357 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
31359         PR c++/88534
31360         PR c++/88537
31361         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31362         VAR_DECL args.
31364 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
31366         PR c++/89709
31367         * tree.c (inchash::add_expr): Strip any location wrappers.
31368         * fold-const.c (operand_equal_p): Move stripping of location wrapper
31369         after hash verification.
31371         PR debug/89704
31372         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31373         SIGN_EXTEND and ZERO_EXTEND.
31375 2019-03-14  Jason Merrill  <jason@redhat.com>
31376             Jakub Jelinek  <jakub@redhat.com>
31378         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31379         than if is_empty (*slot).
31380         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31381         existing elt and for elt removal.
31382         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31383         of already removed elt.
31385 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
31387         PR target/89650
31388         * config/i386/i386.c (remove_partial_avx_dependency): Handle
31389         REG_EH_REGION note.
31391 2019-03-14  Martin Liska  <mliska@suse.cz>
31393         PR other/89712
31394         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31396 2019-03-14  Richard Biener  <rguenther@suse.de>
31398         PR target/89711
31399         * config/i386/i386.c (make_resolver_func): Properly set
31400         DECL_CONTEXT on the RESULT_DECL.
31401         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31403 2019-03-14  Richard Biener  <rguenther@suse.de>
31405         * gimple-pretty-print.c: Include cfgloop.h.
31406         (dump_gimple_phi): Adjust.
31407         (dump_gimple_bb_header): Dump loop header for GIMPLE.
31408         (pp_cfg_jump): Adjust.
31409         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31410         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31411         (lower_phi_internal_fn): Remove.
31412         (verify_gimple_call): Remove IFN_PHI special-casing.
31413         (dump_function_to_file): Dump IL state.
31414         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31415         done to deal with PHI nodes being present in non-SSA state.
31417 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31419         PR ipa/89684
31420         * multiple_target.c (create_dispatcher_calls): Change
31421         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31422         In the node->iterate_referring loop, push *ref rather than ref, call
31423         ref->remove_reference () and always pass 0 to iterate_referring.
31425         PR rtl-optimization/89679
31426         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31427         would contain a paradoxical SUBREG.
31429 2019-03-14  Richard Biener  <rguenther@suse.de>
31431         PR tree-optimization/89710
31432         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31433         safe_dyn_cast.
31435 2019-03-14  Martin Liska  <mliska@suse.cz>
31437         * coverage.c (coverage_begin_function): Stream also
31438         end_column.
31439         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
31440         documentation about function declaration location.
31441         * gcov-dump.c (tag_function): Print whole range
31442         of function declaration.
31443         * gcov.c (struct function_info): Add end_column field.
31444         (function_info::function_info): Initialize it.
31445         (output_json_intermediate_file): Output {start,end}_column
31446         fields.
31447         (read_graph_file): Read end_column.
31449 2019-03-14  Richard Biener  <rguenther@suse.de>
31451         PR middle-end/89698
31452         * fold-const.c (operand_equal_p): For INDIRECT_REF check
31453         that the access types are similar.
31455 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31457         PR tree-optimization/89703
31458         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31459         aren't compatible also with builtin_decl_explicit.  Check pure
31460         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31461         and BUILT_IN_STPNCPY{,_CHK}.
31463 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
31465         PR target/89523
31466         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31467         addr32 prefix to VSIB address for X32.
31468         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31469         "%M2" to opcode.
31470         (*avx512pf_gatherpf<mode>df_mask): Likewise.
31471         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31472         (*avx512pf_scatterpf<mode>df_mask): Likewise.
31473         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31474         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31475         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31476         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31477         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31478         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31479         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31480         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31481         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31482         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31483         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31484         (*avx512f_scatterdi<mode>): Likewise.
31486 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31488         PR target/85860
31489         * lra-constraints.c (inherit_in_ebb): Update
31490         potential_reload_hard_regs along with live_hard_regs.
31492 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
31494         PR debug/89498
31495         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31496         DWARF_OFFSET_SIZE.
31497         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31499 2019-03-13  Martin Sebor  <msebor@redhat.com>
31501         PR tree-optimization/89662
31502         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31503         has a size.
31505 2019-03-13  Richard Biener  <rguenther@suse.de>
31507         PR middle-end/89677
31508         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31509         throw FP expressions at tree-affine.
31511 2019-03-14  Richard Biener  <rguenther@suse.de>
31513         * tree-pretty-print.c (dump_generic_node): For -gimple properly
31514         dump negative integer constants using _Literal (type) -num.
31516 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
31518         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31519         nonlocal_value member.
31521         PR middle-end/88588
31522         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31523         (ipa_simd_modify_function_body): Handle PHIs.
31525 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31527         * config/s390/s390.c (s390_option_override_internal): Use more
31528         aggressive inlining parameters.
31530 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31532         * config/s390/3906.md: New file.
31533         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31534         (LONGRUNNING_THRESHOLD): Remove.
31535         (MAX_SCHED_MIX_SCORE): Decrease.
31536         (MAX_SCHED_MIX_DISTANCE): Decrease.
31537         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31538         (struct s390_sched_state): New struct to hold scheduling state.
31539         (S390_SCHED_STATE_NORMAL): Remove.
31540         (S390_SCHED_STATE_CRACKED): Remove.
31541         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31542         (s390_get_sched_attrmask): Use new attribute.
31543         (s390_get_unit_mask): Use new units.
31544         (s390_is_fpd): New function.
31545         (s390_is_fxd): New function.
31546         (s390_is_longrunning): New function.
31547         (s390_sched_score): Use new functions.
31548         (s390_sched_reorder): Likewise.
31549         (s390_sched_variable_issue): Rework and use new functions.
31550         (s390_sched_init): Use new functions.
31551         * config/s390/s390.h (s390_tune_attr): Add z14.
31552         * config/s390/s390.md: Add z14.
31554 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31556         * config/s390/2964.md: Update pipeline description.
31557         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31558         (LONGRUNNING_THRESHOLD): Remove.
31559         (LATENCY_FACTOR): Remove.
31560         (s390_get_unit_mask): Add unit.
31561         (s390_sched_score): Use fxd/fpd.
31562         (s390_sched_variable_issue): Use fxd/fpd.
31564 2019-03-12  Martin Liska  <mliska@suse.cz>
31566         * config/i386/i386.c: Reword an error message.
31568 2019-03-12  Martin Jambor  <mjambor@suse.cz>
31570         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31571         terminate with newline.
31573 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
31575         PR target/52726
31576         * config/s390/s390.md (tabort): Use %wd instead of
31577         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31578         letters and periods.
31579         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31580         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31581         's with %< and %>.
31583         PR middle-end/89663
31584         * builtins.c (expand_builtin_int_roundingfn,
31585         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31586         gcc_unreachable if validate_arglist fails.
31588 2019-03-12  Richard Biener  <rguenther@suse.de>
31590         PR tree-optimization/89664
31591         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31592         free the occurance tree after the early out.
31594 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
31596         PR middle-end/89655
31597         PR bootstrap/89656
31598         * vr-values.c (vr_values::update_value_range): If
31599         old_vr->varying_p (), don't update it, make new_vr also VARYING
31600         and return false.
31602 2019-03-11  Martin Liska  <mliska@suse.cz>
31604         * config/aarch64/aarch64.c (aarch64_override_options_internal):
31605         Fix double string quoting.
31607 2019-03-11  Martin Liska  <mliska@suse.cz>
31609         * collect-utils.c (collect_wait): Wrap apostrophes
31610         in gcc internal format with %'.
31611         * collect2.c (main): Likewise.
31612         (scan_prog_file): Likewise.
31613         (scan_libraries): Likewise.
31614         * config/i386/i386.c (ix86_expand_call): Likewise.
31615         (ix86_handle_interrupt_attribute): Likewise.
31616         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31617         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31618         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31619         * lto-wrapper.c (find_crtoffloadtable): Likewise.
31620         * symtab.c (symtab_node::verify_base): Likewise.
31621         * tree-cfg.c (verify_gimple_label): Likewise.
31622         * tree.c (verify_type_variant): Likewise.
31624 2019-03-11  Martin Liska  <mliska@suse.cz>
31626         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31627         in a string format message and fix GNU coding style.
31628         (expand_builtin_set_thread_pointer): Likewise.
31629         * common/config/aarch64/aarch64-common.c
31630         (aarch64_rewrite_selected_cpu): Likewise.
31631         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31632         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31633         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31634         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31635         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31636         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31637         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31638         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31639         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31640         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31641         Likewise.
31642         * common/config/riscv/riscv-common.c
31643         (riscv_subset_list::parsing_subset_version): Likewise.
31644         (riscv_subset_list::parse_std_ext): Likewise.
31645         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31646         (riscv_subset_list::parse): Likewise.
31647         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31648         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31649         (aarch64_override_options_internal): Likewise.
31650         (aarch64_validate_mcpu): Likewise.
31651         (aarch64_validate_march): Likewise.
31652         (aarch64_validate_mtune): Likewise.
31653         (aarch64_override_options): Likewise.
31654         * config/alpha/alpha.c (alpha_option_override): Likewise.
31655         * config/arc/arc.c (arc_init): Likewise.
31656         (parse_mrgf_banked_regs_option): Likewise.
31657         (arc_override_options): Likewise.
31658         (arc_expand_builtin_aligned): Likewise.
31659         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31660         (arm_expand_builtin): Likewise.
31661         * config/arm/arm.c (arm_option_check_internal): Likewise.
31662         (arm_configure_build_target): Likewise.
31663         (arm_option_override): Likewise.
31664         (arm_options_perform_arch_sanity_checks): Likewise.
31665         (arm_handle_cmse_nonsecure_entry): Likewise.
31666         (arm_handle_cmse_nonsecure_call): Likewise.
31667         (arm_tls_referenced_p): Likewise.
31668         (thumb1_expand_prologue): Likewise.
31669         * config/avr/avr.c (avr_option_override): Likewise.
31670         * config/bfin/bfin.c (bfin_option_override): Likewise.
31671         * config/c6x/c6x.c (c6x_option_override): Likewise.
31672         * config/cr16/cr16.c (cr16_override_options): Likewise.
31673         * config/cris/cris.c (cris_option_override): Likewise.
31674         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31675         * config/darwin-c.c (macosx_version_as_macro): Likewise.
31676         * config/darwin.c (darwin_override_options): Likewise.
31677         * config/frv/frv.c (frv_expand_builtin): Likewise.
31678         * config/h8300/h8300.c (h8300_option_override): Likewise.
31679         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31680         (ix86_option_override_internal): Likewise.
31681         (warn_once_call_ms2sysv_xlogues): Likewise.
31682         (ix86_expand_prologue): Likewise.
31683         (split_stack_prologue_scratch_regno): Likewise.
31684         (ix86_warn_parameter_passing_abi): Likewise.
31685         * config/ia64/ia64.c (fix_range): Likewise.
31686         * config/m68k/m68k.c (m68k_option_override): Likewise.
31687         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31688         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31689         (mips_set_compression_mode): Likewise.
31690         * config/mmix/mmix.c (mmix_option_override): Likewise.
31691         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31692         * config/msp430/msp430.c (msp430_option_override): Likewise.
31693         * config/nds32/nds32.c (nds32_option_override): Likewise.
31694         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31695         (nios2_option_override): Likewise.
31696         (nios2_expand_custom_builtin): Likewise.
31697         * config/nvptx/mkoffload.c (main): Likewise.
31698         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31699         * config/pa/pa.c (fix_range): Likewise.
31700         (pa_option_override): Likewise.
31701         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31702         (riscv_option_override): Likewise.
31703         * config/rl78/rl78.c (rl78_option_override): Likewise.
31704         * config/rs6000/aix61.h: Likewise.
31705         * config/rs6000/aix71.h: Likewise.
31706         * config/rs6000/aix72.h: Likewise.
31707         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31708         * config/rs6000/freebsd64.h: Likewise.
31709         * config/rs6000/linux64.h: Likewise.
31710         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31711         (rs6000_expand_zeroop_builtin): Likewise.
31712         (rs6000_expand_mtfsb_builtin): Likewise.
31713         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31714         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31715         (rs6000_invalid_builtin): Likewise.
31716         (rs6000_expand_split_stack_prologue): Likewise.
31717         * config/rs6000/rtems.h: Likewise.
31718         * config/rx/rx.c (valid_psw_flag): Likewise.
31719         (rx_expand_builtin): Likewise.
31720         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31721         * config/s390/s390.c (s390_expand_builtin): Likewise.
31722         (s390_function_profiler): Likewise.
31723         (s390_option_override_internal): Likewise.
31724         (s390_option_override): Likewise.
31725         * config/sh/sh.c (sh_option_override): Likewise.
31726         (sh_builtin_saveregs): Likewise.
31727         (sh_fix_range): Likewise.
31728         * config/sh/vxworks.h: Likewise.
31729         * config/sparc/sparc.c (sparc_option_override): Likewise.
31730         * config/spu/spu.c (spu_option_override): Likewise.
31731         (fix_range): Likewise.
31732         * config/visium/visium.c (visium_option_override): Likewise.
31733         (visium_handle_interrupt_attr): Likewise.
31734         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31735         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31736         (dbg_cnt_process_opt): Likewise.
31737         * dwarf2out.c (output_dwarf_version): Likewise.
31738         * except.c (expand_eh_return): Likewise.
31739         * gcc.c (defined): Likewise.
31740         (driver_handle_option): Likewise.
31741         (process_command): Likewise.
31742         (compare_files): Likewise.
31743         (driver::prepare_infiles): Likewise.
31744         (driver::do_spec_on_infiles): Likewise.
31745         (driver::maybe_run_linker): Likewise.
31746         * omp-offload.c (oacc_parse_default_dims): Likewise.
31747         * opts-global.c (handle_common_deferred_options): Likewise.
31748         * opts.c (parse_sanitizer_options): Likewise.
31749         (common_handle_option): Likewise.
31750         (enable_warning_as_error): Likewise.
31751         * passes.c (enable_disable_pass): Likewise.
31752         * plugin.c (parse_plugin_arg_opt): Likewise.
31753         (default_plugin_dir_name): Likewise.
31754         * targhooks.c (default_expand_builtin_saveregs): Likewise.
31755         (default_pch_valid_p): Likewise.
31756         * toplev.c (init_asm_output): Likewise.
31757         (process_options): Likewise.
31758         (toplev::run_self_tests): Likewise.
31759         * tree-cfg.c (verify_gimple_call): Likewise.
31760         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31761         (tree_inlinable_function_p): Likewise.
31762         * var-tracking.c (vt_find_locations): Likewise.
31764 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
31766         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31767         only on the else branch.
31769 2019-03-11  Martin Liska  <mliska@suse.cz>
31771         * gcov.c (output_intermediate_json_line): Print function
31772         name of each line.
31773         (output_json_intermediate_file): Add new argument.
31774         * doc/gcov.texi: Document the change.
31776 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
31778         PR rtl-optimization/89588
31779         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31780         explicit unrolling factor more robust.
31782 2019-03-11  Richard Biener  <rguenther@suse.de>
31784         PR tree-optimization/89649
31785         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31786         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31787         on the prolog and epilog loops.
31788         (vect_loop_versioning): Return copy of loop.
31789         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31790         on the non-vectorized version of the loop.
31792 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
31794         PR target/68924
31795         * config/i386/sse.md (*vec_extractv2di_0_sse):
31796         Add (=r,x) alternative and corresponding splitter.
31798 2019-03-10  Martin Jambor  <mjambor@suse.cz>
31800         PR tree-optimization/85762
31801         PR tree-optimization/87008
31802         PR tree-optimization/85459
31803         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31804         it points to if there is a type changing MEM_REF.  Adjust all callers.
31805         (build_accesses_from_assign): Disable total scalarization if
31806         contains_vce_or_bfcref_p returns true through the new parameter, for
31807         both rhs and lhs.
31809 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
31811         PR c/88568
31812         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31813         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31815         PR target/79645
31816         * common.opt (fdiagnostics-show-labels,
31817         fdiagnostics-show-line-numbers, fdiagnostics-format=,
31818         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31819         gas-locview-support, ginline-points, ginternal-reset-location-views):
31820         Terminate description text with a dot.
31821         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31822         * config/mcore/mcore.opt (m210, m340): Likewise.
31823         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31824         mnops=): Start description text with a capital letter.
31825         * config/arc/arc.opt (msize-level=): Likewise.
31826         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31827         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31828         mnewlib): Likewise.
31829         * config/ft32/ft32.opt (msim): Likewise.
31830         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
31831         (mnodiv, mnopm): Terminate description text with a dot.
31832         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31833         a colon.
31834         * config/i386/i386.opt (prefer_vector_width, instrument_return):
31835         Likewise.
31836         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31837         text.
31839         PR rtl-optimization/89634
31840         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31841         are modified in BB_END (e->src) instruction.
31843 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
31845         PR target/79926
31846         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31847         messages more amenable to translation, and improve wording.
31849 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
31851         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31852         ud- and du-chains between phases.
31854 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
31856         PR debug/89631
31857         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31858         instead of POLY_INT_CST.
31860 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31862         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31863         requirement.
31865 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
31867         PR target/68924
31868         PR target/78782
31869         PR target/87558
31870         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31871         (_mm_storeu_si64): Ditto.
31873 2019-03-08  Martin Liska  <mliska@suse.cz>
31875         PR target/86952
31876         * config/i386/i386.c (ix86_option_override_internal): Disable
31877         jump tables when retpolines are used.
31879 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
31881         PR go/63560
31882         * ipa-split.c (execute_split_functions): Do not split
31883         'noinline' or 'section' function.
31885 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31887         PR target/79846
31888         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31889         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31890         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
31892         PR ipa/80000
31893         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31894         from diagnostics.  Formatting fixes.
31896         PR target/85665
31897         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31898         warn_odr diagnostics.
31900         PR other/80058
31901         * lra-constraints.c (process_alt_operands): Avoid one space before
31902         " at the end of line and another after " on another line in a string
31903         literal.
31904         * attribs.c (handle_dll_attribute): Likewise.
31905         * config/avr/avr-devices.c (avr_texinfo): Likewise.
31907         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31908         warning_at or inform messages in G_() if there is no ?:.
31910         PR tree-optimization/89550
31911         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31912         returned true.  Formatting fixes.
31913         (expand_builtin_strnlen): Formatting fixes.
31914         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31915         if warning_at returned true.
31916         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31918 2019-03-08  Richard Biener  <rguenther@suse.de>
31920         PR middle-end/89578
31921         * cfgloop.h (struct loop): Add owned_clique field.
31922         * cfgloopmanip.c (copy_loop_info): Copy it.
31923         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31924         cliques.
31925         * tree-inline.c (copy_loops): Remap owned_clique.
31926         * lto-streamer-in.c (input_cfg): Stream owned_clique.
31927         * lto-streamer-out.c (output_cfg): Likewise.
31929 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31931         PR target/80190
31932         * config/darwin.c: Include intl.h.
31933         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31934         composing the message out of two separate parts.
31936 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
31938         PR target/80003
31939         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31940         doesn't start with a capital letter and doesn't end with a dot.
31941         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31942         with a capital letter.
31943         (ix86_mangle_function_version_assembler_name): Likewise.
31944         (ix86_generate_version_dispatcher_body): Likewise.
31945         (fold_builtin_cpu): Likewise.
31946         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
31947         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31948         translators, wrap full type name in %qs.
31950         PR translation/79999
31951         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31952         depend clause with source (or sink) modifier.
31953         * omp-expand.c (expand_omp_ordered_sink): Likewise.
31955         PR target/89602
31956         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31957         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31958         (avx512f_load<mode>_mask): New define_expand.
31959         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31960         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31961         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31962         __builtin_ia32_movess_mask): New builtins.
31963         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31964         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31965         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31966         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31968 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31970         PR lto/87525
31971         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31972         for extern inline functions.
31974 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31976         PR ipa/88235
31977         * cgraph.h (cgraph_node): New inline method former_thunk_p.
31978         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31979         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31980         have multiple callees.  At the end check if declarations match as
31981         opposed to cgraph_nodes.
31983 2019-03-07  Martin Liska  <mliska@suse.cz>
31985         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31986         which is equivalent to searching for this in clones chain.
31987         * symtab.c (symtab_node::verify_base): Similarly compare ASM
31988         names with a neighbour and special case first node in a chain.
31990 2019-01-25  Jason Merrill  <jason@redhat.com>
31992         PR c++/80916 - spurious "static but not defined" warning.
31993         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31994         for an internal symbol with DECL_EXTERNAL.
31996 2019-04-07  Richard Biener  <rguenther@suse.de>
31998         PR middle-end/89618
31999         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
32000         * tree-inline.c (copy_loops): Simplify.
32002 2019-03-07  Martin Liska  <mliska@suse.cz>
32004         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
32006 2019-03-07  Richard Biener  <rguenther@suse.de>
32008         PR tree-optimization/89595
32009         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
32010         stmt iterator as reference, take boolean output parameter to
32011         indicate whether the stmt was removed and thus the iterator
32012         already advanced.
32013         (dom_opt_dom_walker::before_dom_children): Re-iterate over
32014         stmts created by folding.
32016 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
32018         PR c++/89585
32019         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
32020         at toplevel.
32022 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
32024         PR rtl-optimization/88845
32025         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
32026         LRA.
32027         * lra.c (remove_scratches_1): New function.
32028         (remove_scratches): Use it.
32029         (lra_emit_move): Likewise.
32031 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
32033         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
32034         unaligned_access variable.
32035         * config/arc/arc.c (arc_override_options): Set unaligned access
32036         default on for HS CPUs.
32037         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
32039 2019-03-06  Martin Liska  <mliska@suse.cz>
32041         PR gcov-profile/89577
32042         * doc/gcov.texi: Prefer to use --coverage.
32043         * doc/sourcebuild.texi: Likewise.
32045 2019-03-02  Jason Merrill  <jason@redhat.com>
32047         PR c++/86485 - -Wmaybe-unused with empty class ?:
32048         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
32050 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32052         PR target/89587
32053         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
32054         if_multiarch.
32056         PR middle-end/89590
32057         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
32058         exactly one argument.
32060 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32061             Richard Sandiford  <richard.sandiford@arm.com>
32063         PR tree-optimization/89570
32064         * match.pd (vec_cond into cond_op simplification): Don't use
32065         get_conditional_internal_fn, use as_internal_fn (cond_op).
32067 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
32069         PR target/89222
32070         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
32071         to decide when to split off a non-zero offset from a symbol.
32072         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
32073         in function symbols.
32075 2019-03-05  Richard Biener  <rguenther@suse.de>
32077         PR tree-optimization/89594
32078         * tree-if-conv.c (pass_if_conversion::execute): Handle
32079         case where .LOOP_VECTORIZED_FUNCTION was removed.
32081 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32083         PR bootstrap/89560
32084         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
32085         instead alloca it only when needed with the needed size.
32087         PR tree-optimization/89570
32088         * match.pd (vec_cond into cond_op simplification): Guard with
32089         vectorized_internal_fn_supported_p test and #if GIMPLE.
32091         PR tree-optimization/89566
32092         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
32093         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
32094         Punt if get_user_idx_format succeeds, but idx_format argument is
32095         not provided or doesn't have pointer type, or if idx_args is above
32096         number of provided arguments.
32098 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
32100         PR tree-optimization/89437
32101         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
32103 2019-03-04  Richard Biener  <rguenther@suse.de>
32105         PR middle-end/89572
32106         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
32107         safe_dyn_cast.
32109 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
32111         PR tree-optimization/89487
32112         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
32113         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
32114         (distribute_loop): Don't do runtime alias check if there is non-
32115         addressable data reference.
32116         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
32117         is a register variable.
32119 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
32121         PR target/89506
32122         * config/arm/arm.md (cmpsi2_addneg): Use
32123         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
32124         If operands[2] is 0 or INT_MIN, force use of subs.
32125         (*compare_scc splitter): Use gen_int_mode.
32126         (*negscc): Likewise.
32127         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
32129 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
32130             Monk Chiang  <sh.chiang04@gmail.com>
32132         * common/config/riscv/riscv-common.c: Include sstream.
32133         (riscv_subset_list::to_string): New.
32134         (riscv_arch_str): Likewise.
32135         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
32136         * config.in: Regen.
32137         * config/riscv/riscv-protos.h (riscv_arch_str): New.
32138         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
32139         (riscv_emit_attribute): New.
32140         (riscv_file_start): Emit attribute if needed.
32141         (riscv_option_override): Init riscv_emit_attribute_p.
32142         * config/riscv/riscv.opt (mriscv-attribute): New option.
32143         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
32144         * configure: Regen.
32145         * doc/install.texi: Document --with-riscv-attribute.
32146         * doc/invoke.texi: Document -mriscv-attribute.
32148         * common/config/riscv/riscv-common.c:
32149         Include config/riscv/riscv-protos.h.
32150         (INCLUDE_STRING): Defined.
32151         (RISCV_DONT_CARE_VERSION): Defined.
32152         (riscv_subset_t): Declare.
32153         (riscv_subset_t::riscv_subset_t): New.
32154         (riscv_subset_list): Declare.
32155         (riscv_subset_list::riscv_subset_list): New.
32156         (riscv_subset_list::~riscv_subset_list): Likewise.
32157         (riscv_subset_list::parsing_subset_version): Likewise.
32158         (riscv_subset_list::parse_std_ext): Likewise.
32159         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32160         (riscv_subset_list::add): Likewise.
32161         (riscv_subset_list::lookup): Likewise.
32162         (riscv_subset_list::xlen): Likewise.
32163         (riscv_subset_list::parse): Likewise.
32164         (riscv_supported_std_ext): Likewise.
32165         (current_subset_list): Likewise.
32166         (riscv_parse_arch_string): Using riscv_subset_list::parse to
32167         parse.
32169 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
32171         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32172         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
32173         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
32175 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
32177         PR rtl-optimization/85899
32178         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
32179         fallthru edges leading to the exit block.
32181 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
32183         PR target/89517
32184         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
32185         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
32187 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
32189         PR tree-optimization/89535
32190         * tree-vect-stmts.c (vectorizable_call): Record the vector types
32191         for each operand.  Calculate the fallback choice for mask operands
32192         and pass it to vect_get_vec_def_for_operand.
32194 2019-03-01  Richard Biener  <rguenther@suse.de>
32196         PR middle-end/89541
32197         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
32198         get virtual operands.
32199         (get_expr_operands): Handle CONST_DECL like other decls.
32201 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32203         PR middle-end/89503
32204         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
32205         on DECL_P and EXPR_P.
32207 2019-03-01  Richard Biener  <rguenther@suse.de>
32209         PR middle-end/89497
32210         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
32211         argument, defaulted to zero.
32212         * passes.c (execute_function_todo): Pass down SSA update flags
32213         to cleanup_tree_cfg.
32214         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
32215         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
32216         form if requested.
32217         (cleanup_tree_cfg): Get and pass down SSA update flags.
32219 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32221         PR bootstrap/89539
32222         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
32223         early_lto_debug argument.
32225 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
32227         PR tree-optimization/89536
32228         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
32229         only whether bit #0 of the value is 0 instead of the entire value.
32231 2019-02-28  Marek Polacek  <polacek@redhat.com>
32233         PR c++/87068 - missing diagnostic with fallthrough statement.
32234         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
32235         at the end of a seq, save its location to walk_stmt_info.
32236         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
32237         a switch.
32239 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
32241         PR lto/88585
32242         * tree.c (find_atomic_core_type): Move ahead in file.
32243         (check_base_type): Correctly compare alignments of atomic types.
32245 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32247         PR target/89455
32248         * config/i386/i386.c (get_builtin_code_for_version): Identify
32249         Westmere from PCLMUL, instead of AES.
32251 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32253         PR target/89434
32254         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
32255         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
32256         -UINTVAL (...).
32258 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
32260         PR target/88530
32261         * config/aarch64/aarch64-option-extensions.def: Document it.
32262         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
32263         if empty hwcaps.
32265 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32267         PR c/89520
32268         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
32269         builtins if they don't have a single scalar floating point argument.
32270         Formatting fixes.
32272 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32274         PR rtl-optimization/89490
32275         * varasm.c (get_block_for_section): Bail out for mergeable sections.
32276         (default_use_anchors_for_symbol_p, output_object_block): Assert the
32277         block section is not mergeable.
32279 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32281         PR target/70341
32282         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
32283         old define_insn to ...
32284         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
32285         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32286         Rename old define_insn to ...
32287         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
32288         (thumb2_casesi_internal_pic): New define_expand.  Rename old
32289         define_insn to ...
32290         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
32291         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32292         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32294 2019-02-27  Richard Biener  <rguenther@suse.de>
32296         PR debug/88878
32297         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32299 2019-02-27  Richard Biener  <rguenther@suse.de>
32301         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32302         building.
32304 2019-02-27  Richard Biener  <rguenther@suse.de>
32306         PR debug/88878
32307         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32308         parameter, prefix section name with .gnu.debuglto_ if true.
32309         (dwarf2out_finish): Pass false to output_comdat_type_unit.
32310         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32312 2019-02-27  Richard Biener  <rguenther@suse.de>
32314         PR debug/89514
32315         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32316         rather than on use_debug_types, doing what output_die does.
32317         (value_format): Likewise.
32319 2019-02-27  Martin Jambor  <mjambor@suse.cz>
32320             Martin Sebor  <msebor@redhat.com>
32322         * doc/invoke.texi (Warning Options): Reword description of
32323         -Wno-absolute-value.
32325 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32327         PR tree-optimization/89280
32328         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32329         builtin_setjmp_setup_bb): New functions.
32330         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32331         When visiting __builtin_setjmp_setup block, queue in special
32332         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32333         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
32334         from visited after the loop if they don't have any visited successor
32335         blocks.
32337 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
32339         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32340         New function.
32341         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32343 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32345         PR c++/89507
32346         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32347         with types other than sizetype/ssizetype.
32349 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32351         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32352         (enum sparc_processor_type): ...this.
32353         (enum sparc_code_model_type): New enumeration type.
32354         (enum sparc_memory_model_type): Tweak comments.
32355         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32356         (mtune): Likewise.
32357         (mcmodel): Use sparc_code_model enumeration and variable.
32358         (sparc_code_model): New enumeration.
32359         (mdebug): Add Undocumented marker.
32360         * config/sparc/sparc.h (enum cmodel): Delete.
32361         (sparc_cmodel): Likewise.
32362         (TARGET_CM_MEDLOW): Adjust to above renaming.
32363         (TARGET_CM_MEDMID): Likewise.
32364         (TARGET_CM_MEDANY): Likewise.
32365         (TARGET_CM_EMBMEDANY): Likewise.
32366         * config/sparc/sparc.c (sparc_cmodel): Delete.
32367         (sparc_option_override): Remove string/value mapping support for the
32368         code model.  Move code and memory model support to after the handling
32369         of target flags.  Do private machine setup last.
32370         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32371         (sparc_legitimize_reload_address): Likewise.
32372         (sparc_output_mi_thunk): Likewise.
32373         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32375 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32377         PR tree-optimization/89500
32378         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32379         (handle_builtin_strlen): Remove noncst_bound variable.  Always
32380         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
32381         cst if the first cst bytes starting at x are known to be non-zero,
32382         even if the string is not zero terminated.  Don't try to modify
32383         *si for strnlen.  Update strlen_to_stridx only for strlen or if
32384         we can prove strnlen returns the same value as strlen would.
32386 2019-02-26  Martin Liska  <mliska@suse.cz>
32388         * alloc-pool.h (struct pool_usage): Remove extra
32389         print_dash_line.
32390         * bitmap.h (struct bitmap_usage): Likewise.
32391         * ggc-common.c (struct ggc_usage): Likewise.
32392         * mem-stats.h (struct mem_usage): Likewise.
32393         (mem_alloc_description::dump): Print dash lines
32394         here and repeat header at the end of a table report.
32395         It's then more readable.
32396         * tree-phinodes.c (phinodes_print_statistics): Make
32397         horizontal alignment.
32398         * tree-ssanames.c (ssanames_print_statistics): Likewise.
32399         * vec.c (struct vec_usage): Remove extra print_dash_line.
32400         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32402 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
32404         * doc/extend.texi (__builtin_object_size):
32405         Use @pxref instead of @xref inside parenthesis.
32406         (__builtin_has_attribute): Add missing comma after @xref.
32407         (__builtin_object_size): Ditto.
32408         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32410 2019-02-26  Jeff Law  <law@redhat.com>
32412         PR rtl-optimization/87761
32413         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32414         detect obviously dead insns and delete them.
32416 2019-02-26  Richard Biener  <rguenther@suse.de>
32418         PR tree-optimization/89505
32419         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32420         to handle restrict pointed-to vars with multiple subvars
32421         correctly.
32423 2019-02-26  Richard Biener  <rguenther@suse.de>
32425         PR tree-optimization/89489
32426         * tree-parloops.c (create_loop_fn): Copy over last_clique.
32428 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32430         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32431         and move around comment.
32432         <BIT_AND_EXPR>: Likewise.
32433         <BIT_NOT_EXPR>: Add specific handling for boolean types.
32435 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32437         PR target/89474
32438         * config/i386/i386.c (remove_partial_avx_dependency): Call
32439         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32440         after changing possibly many instructions to use that pseudo.  Fix up
32441         insertion of v4sf_const0 setter at the start of bb.
32443 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32445         PR c/80409
32446         * doc/extend.texi (Variadic Pointer Args): New section.
32448 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32449             Martin Sebor  <msebor@gmail.com>
32451         * common.opt (Wattribute-alias): Likewise.
32452         * doc/invoke.texi (Option Summary): List general form of
32453         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
32454         (-Wmissing-attributes): Invert entry, rewrite and correct default.
32455         Add cross-references.
32456         (-Wattribute-alias): Rewrite and correct default.  Mention
32457         considered attributes (same as for -Wmissing-attributes).
32459 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
32461         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32462         (_mm_cvtpd_ps): Likewise.
32463         (_mm_cvttpd_epi32): Likewise.
32465         PR target/89338
32466         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32467         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32469         PR target/89339
32470         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32472 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32474         PR target/88530
32475         * common/config/aarch64/aarch64-common.c
32476         (struct aarch64_option_extension): Add is_synthetic.
32477         (all_extensions): Use it.
32478         (TARGET_OPTION_INIT_STRUCT): Define hook.
32479         (struct gcc_targetm_common): Moved to end.
32480         (all_extensions_by_on): New.
32481         (opt_ext_cmp, typedef opt_ext): New.
32482         (aarch64_option_init_struct): New.
32483         (aarch64_contains_opt): New.
32484         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32485         * config/aarch64/aarch64-option-extensions.def
32486         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32487         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32488         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32489         Set is_synthetic to false.
32490         (crypto): Set is_synthetic to true.
32491         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32492         SYNTHETIC.
32494 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32496         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32497         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32498         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32499         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32500         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32501         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32502         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32503         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32504         Rename ...
32505         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32506         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32507         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32508         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32509         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32510         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32511         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32512         vfmlsl_laneq_high_f16): ... To this.
32513         * config/arm/neon.md: Update comments.
32515 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32517         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32518         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32519         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32520         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32521         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32522         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32523         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32524         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32525         Rename ...
32526         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32527         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32528         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32529         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32530         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32531         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32532         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32533         vfmlslq_laneq_high_f16): ... To this.
32535 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
32537         PR rtl-optimization/86096
32538         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32539         comparing mw_order values.
32541 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
32543         PR target/89434
32544         * config/arm/arm.md (*subsi3_carryin_const): Use
32545         arm_neg_immediate_operand predicate instead of
32546         arm_not_immediate_operand, "L" constraint instead of "K" and
32547         print it using %n2 instead of %B2.
32548         (*subsi3_carryin_const0): New define_insn.
32549         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32550         instead of arm_not_operand and "I" constraint instead of "K" and
32551         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
32552         another match_operand and in the condition check that it is negation
32553         of operands[2].
32554         (*subsi3_carryin_compare_const0): New define_ins.
32555         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32556         *subsi3_carryin_const.
32557         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32558         split into *subsi3_carryin_compare_const0 if the highpart is zero.
32560         PR target/89438
32561         * config/arm.vfp.md (*negdf2_vfp): Use
32562         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32563         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32565 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
32567         PR rtl-optimization/89445
32568         * simplify-rtx.c (simplify_ternary_operation): Don't use
32569         simplify_merge_mask on operands that may trap.
32570         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32571         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
32572         second operand is CONST_VECTOR, check if any element could be zero.
32573         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32574         their operands can trap.
32576 2019-02-23  Martin Sebor  <msebor@redhat.com>
32578         * gimple-ssa-sprintf.c (target_strtol): Rename...
32579         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
32580         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
32581         check for range error.
32583 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
32585         PR driver/69471
32586         * opts-common.c (prune_options): Also prune joined switches
32587         with Negative and RejectNegative.
32588         * config/i386/i386.opt (march=): Add Negative(march=).
32589         (mtune=): Add Negative(mtune=).
32590         * doc/options.texi: Document Negative used together with Joined
32591         and RejectNegative.
32593 2019-02-22  Martin Sebor  <msebor@redhat.com>
32595         * doc/extend.texi (Other Builtins): Add
32596         __builtin_is_constant_evaluated.
32598 2019-02-22  Richard Biener  <rguenther@suse.de>
32600         PR tree-optimization/87609
32601         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32603 2019-02-22  Jeff Law  <law@redhat.com>
32605         PR rtl-optimization/87761
32606         * config/mips/mips.md: Add new combiner pattern to recognize
32607         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32609 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
32611         PR target/89324
32612         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32613         destination register in peepholes generating patterns for ADDS/SUBS.
32614         (add<mode>3_compare0,
32615         *addsi3_compare0_uxtw, add<mode>3_compareC,
32616         add<mode>3_compareV_imm, add<mode>3_compareV,
32617         *adds_<optab><ALLX:mode>_<GPI:mode>,
32618         *subs_<optab><ALLX:mode>_<GPI:mode>,
32619         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32620         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32621         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32622         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32623         sub<mode>3_compare1): Allow stack pointer for source register.
32624         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32626 2019-02-22  Martin Sebor  <msebor@redhat.com>
32628         PR tree-optimization/88993
32629         PR tree-optimization/88853
32630         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32631         New helper.
32632         (sprintf_dom_walker::call_info::is_string_func): New helper.
32633         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32634         for formatted string functions.
32635         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32637 2019-02-22  Martin Sebor  <msebor@redhat.com>
32639         PR c/89425
32640         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32641         unreachable subexpressions.
32643 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
32644             Hongtao Liu  <hongtao.liu@intel.com>
32645             Sunil K Pandey  <sunil.k.pandey@intel.com>
32647         PR target/87007
32648         * config/i386/i386-passes.def: Add
32649         pass_remove_partial_avx_dependency.
32650         * config/i386/i386-protos.h
32651         (make_pass_remove_partial_avx_dependency): New.
32652         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32653         New function.
32654         (pass_data_remove_partial_avx_dependency): New.
32655         (pass_remove_partial_avx_dependency): Likewise.
32656         (make_pass_remove_partial_avx_dependency): Likewise.
32657         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32658         (*extendsfdf2): Add avx_partial_xmm_update.
32659         (truncdfsf2): Likewise.
32660         (*float<SWI48:mode><MODEF:mode>2): Likewise.
32661         (SF/DF conversion splitters): Disabled for TARGET_AVX.
32663 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
32665         PR middle-end/85598
32666         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32667         analysis for pass.
32669 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
32671         PR target/89444
32672         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32673         (PTA_SKYLAKE): Add PTA_AES.
32674         (PTA_GOLDMONT): Likewise.
32676 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
32678         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32679         instruction if enabled.
32680         (aarch64_override_options): Remove reference to return address key.
32682 2019-02-22  Richard Biener  <rguenther@suse.de>
32684         PR tree-optimization/89440
32685         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32686         not necessary assert.
32688 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
32690         PR fortran/72741
32691         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32692         (oacc_replace_fn_attrib_attr): ... this new function.
32693         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32694         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32696 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32698         * config/arm/arm-cpus.in (ares): Rename to...
32699         (neoverse-n1): ... This.  Add ares as alias.
32700         * config/arm/arm-tables.opt: Regenerate.
32701         * config/arm/arm-tune.md: Likewise.
32702         * doc/invoke.txt (ARM Options): Document neoverse-n1.
32704 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32706         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32707         * config/aarch64/aarch64-tune.md: Regenerate.
32708         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32710 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32712         * config/aarch64/aarch64.c (ares_tunings): Rename to...
32713         (neoversen1_tunings): ... This.
32714         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32715         (neoverse-n1): New CPU.
32716         * config/aarch64/aarch64-tune.md: Regenerate.
32717         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32719 2019-02-22  Richard Biener  <rguenther@suse.de>
32721         PR middle-end/87609
32722         * cfghooks.h (dependence_hash): New typedef.
32723         (struct copy_bb_data): New type.
32724         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32725         (duplicate_block): Likewise.
32726         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32727         (copy_bbs): Create and pass down copy_bb_data.
32728         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32729         (rtl_duplicate_bb): Likewise.
32730         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32731         remap dependence info.
32733 2019-02-22  Richard Biener  <rguenther@suse.de>
32735         PR tree-optimization/87609
32736         * tree-core.h (tree_base): Document special clique values.
32737         * tree-inline.c (remap_dependence_clique): Do not use the
32738         special clique value of one.
32739         (maybe_set_dependence_info): Use clique one.
32740         (clear_dependence_clique): New callback.
32741         (compute_dependence_clique): Clear clique one from all refs
32742         before assigning it (again).
32744 2019-02-21  Martin Sebor  <msebor@redhat.com>
32746         * doc/extend.texi (__clear_cache): Correct signature.
32748 2019-02-21  Ian Lance Taylor  <iant@golang.org>
32750         PR go/89170
32751         * varasm.c (decode_addr_const): Call lookup_constant_def rather
32752         than output_constant_def.
32753         (add_constant_to_table): New static function.
32754         (output_constant_def): Call add_constant_to_table.
32755         (tree_output_constant_def): Likewise.
32757 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
32759         PR c++/89285
32760         * builtins.c (fold_builtin_arith_overflow): If first two args are
32761         INTEGER_CSTs, set intres and ovfres to constants rather than calls
32762         to ifn.
32764 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
32766         PR target/87412
32767         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32768         error for -mindirect-branch/-mfunction-return with incompatible
32769         -fcf-protection.
32771 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
32773         PR bootstrap/88714
32774         * constraints.md (q): Remove.
32775         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32776         instead of q.
32778 2019-02-21  Martin Jambor  <mjambor@suse.cz>
32780         PR hsa/89302
32781         * omp-general.c (omp_extract_for_data): Removed a duplicate call
32782         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32783         (omp_adjust_for_condition): ...here.  Added necessary parameters.
32784         * omp-general.h (omp_adjust_for_condition): Updated declaration.
32785         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32786         proper values to new parameters of omp_adjust_for_condition.
32788 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32790         PR middle-end/89412
32791         * expr.c (expand_assignment): If result is a MEM, use change_address
32792         instead of simplify_gen_subreg.
32794 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32795             David Malcolm  <dmalcolm@redhat.com>
32797         PR middle-end/89091
32798         * fold-const.c (decode_field_reference): Return NULL_TREE if
32799         lang_hooks.types.type_for_size returns NULL.  Check it before
32800         overwriting *exp_.  Use return NULL_TREE instead of return 0.
32802 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32804         PR middle-end/88074
32805         PR middle-end/89415
32806         * toplev.c (do_compile): Double the emin/emax exponents to workaround
32807         buggy mpc_norm.
32809 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
32811         PR target/89397
32812         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32813         TARGET_SSE in addition to TARGET_SSE_MATH.
32815         (ix86_excess_precision): Ditto.
32816         (ix86_float_exceptions_rounding_supported_p): Ditto.
32817         (use_rsqrt_p): Ditto.
32818         * config/i386/sse.md (rsqrt<mode>2): Ditto.
32820 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
32822         PR c/89410
32823         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32824         linenum_arith_t when determining if two adjacent line spans are
32825         close enough to merge.
32826         (diagnostic_show_locus): Use linenum_arith_t when iterating over
32827         lines within each line_span.
32829 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
32831         PR target/86487
32832         * lra-constraints.c(uses_hard_regs_p): Fix handling of
32833         paradoxical SUBREGS.
32835 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
32837         PR target/88100
32838         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32839         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32840         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32841         range checking it.
32843 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
32845         * config/gcn/gcn.c (print_operand): Fix typo.
32847 2019-02-19  Richard Biener  <rguenther@suse.de>
32849         PR middle-end/88074
32850         * toplev.c (do_compile): Initialize mpfr's exponent range
32851         based on available float modes.
32853 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32855         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32856         as long as the epilogue isn't completed.
32858 2019-02-18  Martin Sebor  <msebor@redhat.com>
32860         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32861         __has_cpp_attribute, and __has_include.
32863 2019-02-18  Martin Sebor  <msebor@redhat.com>
32865         * doc/invoke.texi (-Wreturn-type): Correct and expand.
32867 2019-02-18  Martin Sebor  <msebor@redhat.com>
32869         PR middle-end/89294
32870         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32871         expression.
32872         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32874 2019-02-18  Richard Biener  <rguenther@suse.de>
32876         PR tree-optimization/89296
32877         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32878         of no-warning flag to cases that might emit the bogus warning.
32880 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
32882         PR bootstrap/88714
32883         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32884         "q" constraint.
32885         * config/arm/vfp.md (*movdi_vfp): Likewise.
32886         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32887         "q" constraint for operands[0].
32889         PR target/89369
32890         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32891         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32892         pattern in a temporary buffer.
32893         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
32894         than 64-operands[2].
32896         PR target/89361
32897         * config/s390/s390.c (s390_indirect_branch_attrvalue,
32898         s390_indirect_branch_settings): Define unconditionally.
32899         (s390_set_current_function): Likewise, but guard the whole body except
32900         the s390_indirect_branch_settings call with
32901         #if S390_USE_TARGET_ATTRIBUTE.
32902         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32904         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32905         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32906         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32907         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32908         HOST_WIDE_INT_1U instead of 1ULL.
32909         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32910         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32911         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32912         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32913         instead of 1UL.
32914         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32915         instead of 1ul.
32917 2019-02-18  Martin Jambor  <mjambor@suse.cz>
32919         PR tree-optimization/89209
32920         * tree-sra.c (create_access_replacement): New optional parameter
32921         reg_tree.  Use it as a type if non-NULL and access type is not of
32922         a register type.
32923         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32924         to create_access_replacement.
32925         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32926         Check lacc is non-NULL before attempting to re-create it on the RHS.
32928 2019-02-18  Martin Liska  <mliska@suse.cz>
32930         PR ipa/89306
32931         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32932         by default.
32933         (symbol_table::free_edge): Recycle m_summary_id.
32934         * cgraph.h (get_summary_id): New.
32935         (symbol_table::release_symbol): Set m_summary_id to -1
32936         by default.
32937         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32938         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32939         function_summary to fast_function_summary.
32940         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32941         * ipa-pure-const.c (class funct_state_summary_t):
32942         Switch from function_summary to fast_function_summary.
32943         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32944         (class ipa_ref_opt_summary_t): Switch from function_summary
32945         to fast_function_summary.
32946         * symbol-summary.h (class function_summary_base): New class
32947         that is created from base of former function_summary.
32948         (function_summary_base::unregister_hooks): New.
32949         (class function_summary): Inherit from function_summary_base.
32950         (class call_summary_base): New class
32951         that is created from base of former call_summary.
32952         (class call_summary): Inherit from call_summary_base.
32953         (struct is_same): New.
32954         (class fast_function_summary): New summary class.
32955         (class fast_call_summary): New summary class.
32956         * vec.h (vec_safe_grow_cleared): New function.
32958 2019-02-18  Martin Liska  <mliska@suse.cz>
32960         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32961         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32962         * doc/tm.texi: Document new target hook.
32963         * doc/tm.texi.in: Likewise.
32964         * target.def: Add new target macro.
32965         * gcc.c (find_fortran_preinclude_file): Do not search multilib
32966         suffixes.
32968 2019-02-17  Alan Modra  <amodra@gmail.com>
32970         PR target/89271
32971         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32972         output reg on add insn.
32973         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
32975 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32977         PR target/89372
32978         * config/i386/sse.md (ssedoublemode): Remove V4HI.
32979         (PMULHRSW): Likewise.
32980         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32981         TARGET_AVX2.
32982         (ssse3_pmulhrswv4hi3): New expander.
32984 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32986         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32987         MMX.  Add isa attribute.
32989 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
32991         PR rtl-optimization/66152
32992         * builtins.h (c_readstr): Declare.
32993         * builtins.c (c_readstr): Remove forward declaration.  Add
32994         null_terminated_p argument, if false, read all bytes from the
32995         string instead of stopping after '\0'.
32996         * expr.c (string_cst_read_str): New function.
32997         (store_expr): Use string_cst_read_str instead of
32998         builtin_strncpy_read_str.  Try to store by pieces the whole
32999         exp_len first, and only if that fails, split it up into
33000         store by pieces followed by clear_storage.  Formatting fix.
33002         * config/i386/i386.md (*movqi_internal): Remove static from
33003         buf variable.  Use output_asm_insn (buf, operands); return "";
33004         instead of return buf;.
33005         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
33006         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
33007         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
33009 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33011         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
33012         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
33013         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
33014         (CC1_SPEC): Likewise.
33015         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
33017 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33019         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
33020         the base address on 64-bit strict-alignment platforms.
33022 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
33024         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
33026 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
33028         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
33030 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
33032         PR rtl-optimization/88308
33033         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
33034         on copied instruction.
33036 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33038         * final.c (insn_current_reference_address): Replace test on JUMP_P
33039         with test on jump_to_label_p.
33040         * config/visium/visium-passes.def: New file.
33041         * config/visium/t-visium (PASSES_EXTRA): Define.
33042         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
33043         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
33044         (TRAMPOLINE_ALIGNMENT): Define.
33045         * config/visium/visium.c (visium_option_override): Do not register
33046         the machine-specific reorg pass here.
33047         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
33048         for the GR6.
33049         (output_branch): Adjust threshold for long branch instruction.
33050         * config/visium/visium.md (cpu): Move around.
33051         (length): Adjust for the GR6.
33053 2019-02-15  Richard Biener  <rguenther@suse.de>
33054             Jakub Jelinek  <jakub@redhat.com>
33056         PR tree-optimization/89278
33057         * tree-loop-distribution.c: Include tree-eh.h.
33058         (generate_memset_builtin, generate_memcpy_builtin): Call
33059         rewrite_to_non_trapping_overflow on builtin->size before passing it
33060         to force_gimple_operand_gsi.
33062 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
33064         PR other/89342
33065         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
33066         optimize_debug.
33067         * opth-gen.awk: Likewise.
33069 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
33071         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
33072         Enable MMX, SSE and SSE2 by default.
33073         * config/i386/i386.c (ix86_option_override_internal): Do not
33074         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
33076 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
33078         PR rtl-optimization/89354
33079         * combine.c (make_extraction): Punt if extraction_mode is narrower
33080         than len bits.
33082 2019-02-14  Maya Rashish  <coypu@sdf.org>
33084         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
33085         * config/netbsd-d.c: New file.
33086         * config/t-netbsd: Add netbsd-d.o
33088 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
33090         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
33091         affects_type_identity to true for aarch64_vector_pcs.
33092         (aarch64_comp_type_attributes): New function.
33093         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
33095 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
33097         PR target/88850
33098         * config/arm/iterators.md (ANY64): Add V4HF.
33100 2019-02-14  Martin Liska  <mliska@suse.cz>
33102         PR rtl-optimization/89242
33103         * dce.c (delete_unmarked_insns): Call free_dominance_info we
33104         process a transformation.
33106 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
33108         PR tree-optimization/89314
33109         * fold-const.c (fold_binary_loc): Cast strlen argument to
33110         const char * before dereferencing it.  Formatting fixes.
33112         PR middle-end/89284
33113         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
33115 2019-02-13  Ian Lance Taylor  <iant@golang.org>
33117         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
33118         and set current index for other optimizations.
33120 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
33122         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
33123         nonimmediate_operand as operand 2 predicate.
33124         (vec_set<VF2_512_256:mode>_0): Ditto.
33125         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
33126         (*vec_concatv2si): Remove alternative 2.
33127         (*vec_concatv4si_0): Use vm constraint for alternative 0.
33128         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
33129         (vec_concatv2di): Split alternatives 4,5,6 to ...
33130         (*vec_concatv2di_0) ... new pattern.
33132 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
33134         PR target/89190
33135         * config/arm/arm.c (ldm_stm_operation_p) Set
33136         addr_reg_in_reglist correctly for first register.
33137         (load_multiple_sequence): Remove dead base check.
33138         (gen_ldm_seq): Correctly set write_back for Thumb-1.
33140 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
33142         PR target/88847
33143         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
33144         Expose as @aarch64_pred_mov.
33145         * config/aarch64/aarch64.c (aarch64_classify_address):
33146         Use expand_insn which legitimizes operands.
33148 2019-02-13  Martin Liska  <mliska@suse.cz>
33150         * builtins.h (expand_builtin_with_bounds): Remove declaration.
33151         * calls.c (struct arg_data): Remove special_slot, pointer_arg
33152         and pointer_offset fields.
33153         (initialize_argument_information): Remove usage of dead
33154         fields.
33155         * cgraph.h (struct cgraph_thunk_info): Remove
33156         add_pointer_bounds_args.
33157         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
33158         fields.
33159         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
33160         fields.
33161         * config/i386/i386.c (ix86_function_arg_advance): Remove
33162         unrelated comment.
33163         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
33164         (def_builtin): Remove usage of dead fields.
33165         (ix86_add_new_builtins): Likewise.
33166         * ipa-fnsummary.c (compute_fn_summary): Likewise.
33167         * ipa-icf.c (sem_function::equals_wpa): Likewise.
33168         (sem_function::init): Likewise.
33169         (sem_variable::merge): Likewise.
33170         * ipa-visibility.c (function_and_variable_visibility): Likewise.
33171         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33172         * lto-cgraph.c (lto_output_node): Likewise.
33173         (lto_output_varpool_node): Likewise.
33174         (input_node): Likewise.
33175         (input_varpool_node): Likewise.
33176         * lto-streamer-out.c (lto_output): Likewise.
33177         * tree-inline.c (expand_call_inline): Remove usage of
33178         assign_stmts.
33179         * tree-inline.h (struct copy_body_data): Likewise.
33180         * varpool.c (varpool_node::dump): Likewise.
33182 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
33184         PR middle-end/89303
33185         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
33186         into pt->vars_contains_escaped_heap instead of setting
33187         pt->vars_contains_escaped_heap to it.
33189         PR middle-end/89281
33190         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
33191         INTVAL (size), compare it to GET_MODE_MASK instead of
33192         1 << GET_MODE_BITSIZE.
33194         PR target/89290
33195         * config/i386/predicates.md (x86_64_immediate_operand): Allow
33196         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
33197         -mcmodel=large.
33199 2019-02-13  Martin Liska  <mliska@suse.cz>
33201         PR lto/88858
33202         * cfgrtl.c (remove_barriers_from_footer): New function.
33203         (try_redirect_by_replacing_jump): Use it.
33204         (cfg_layout_redirect_edge_and_branch): Likewise.
33206 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
33208         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
33209         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
33210         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
33211         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
33212         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
33213         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
33214         New BU_CRYPTO_2.
33215         * config/rs6000/rs6000.c (builtin_function_type)
33216         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
33217         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
33218         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
33219         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
33220         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
33222 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
33224         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
33225         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
33227 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33229         PR target/89229
33230         * config/i386/i386.md (*movoi_internal_avx): Revert revision
33231         268678 and revision 268657.
33232         (*movti_internal): Likewise.
33234 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
33236         PR target/89233
33237         * config/s390/s390.c (s390_decompose_address): Update comment.
33238         (s390_check_qrst_address): Reject invalid address forms after
33239         LRA.
33241 2019-02-12  Martin Liska  <mliska@suse.cz>
33243         PR lto/88876
33244         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
33245         we need default values of funct_state for a function that
33246         is not optimized.
33248 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33250         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
33251         the object to pick the size of stores on strict-alignment platforms.
33253         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
33254         (*movdi_insn_sp32): Likewise.
33255         (*movdi_insn_sp64): Likewise.
33257 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
33259         PR lto/88677
33260         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
33261         types that needs constructiong.
33262         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
33264 2019-02-12  Richard Biener  <rguenther@suse.de>
33266         PR tree-optimization/89253
33267         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
33268         duplicate the loop.
33270 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
33272         PR lto/88147
33273         * input.c (selftest::test_line_offset_overflow): New selftest.
33274         (selftest::input_c_tests): Call it.
33276 2019-02-11  Martin Sebor  <msebor@redhat.com>
33278         PR tree-optimization/88771
33279         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
33280         when -Wstringop-overflow is set.
33281         (builtin_memref::builtin_memref): Adjust excessive upper bound
33282         only when lower bound is not excessive.
33283         (maybe_diag_overlap): Detect and diagnose excessive bounds via
33284         -Wstringop-ovefflow.
33285         (maybe_diag_offset_bounds): Rename...
33286         (maybe_diag_access_bounds): ...to this.
33287         (check_bounds_or_overlap): Adjust for name change above.
33289 2019-02-11  Martin Sebor  <msebor@redhat.com>
33291         PR c++/87996
33292         * builtins.c (max_object_size): Move from here...
33293         * builtins.h (max_object_size): ...and here...
33294         * tree.c (max_object_size): ...to here...
33295         * tree.h (max_object_size): ...and here.
33297 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
33299         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33300         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33301         for correct semantics.
33303 2019-02-11  Alan Modra  <amodra@gmail.com>
33305         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33306         -mlongcall and -mpltseq.
33307         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33308         (RS/6000 and PowerPC Options <-mpltseq>): Document.
33309         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33310         * config/rs6000/sysv4.opt (mpltseq): New option.
33311         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33312         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33313         support is lacking.  Don't allow -mpltseq with -mbss-plt.
33314         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33315         -mpltseq given for ELFv1.
33316         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33317         Only use UNSPEC_PLTSEQ for inline PLT calls.
33318         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
33319         use UNSPEC_PLTSEQ for inline PLT calls.
33320         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33321         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33322         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33323         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33324         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33325         (pltseq_mtctr_<mode>): Likewise.
33327 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33329         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33330         Solaris ld.
33331         * configure: Regenerate.
33333 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
33335         PR bootstrap/88714
33336         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33337         instead of r.
33339 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33341         * function.c (assign_parm_setup_block): Use the stored
33342         size, not the passed size, when allocating stack-space,
33343         also for a parameter with alignment larger than
33344         MAX_SUPPORTED_STACK_ALIGNMENT.
33346 2019-02-11  Martin Liska  <mliska@suse.cz>
33348         PR ipa/89009
33349         * ipa-cp.c (build_toporder_info): Remove usage of a param.
33350         * ipa-inline.c (inline_small_functions): Likewise.
33351         * ipa-pure-const.c (propagate_pure_const): Likewise.
33352         (propagate_nothrow): Likewise.
33353         * ipa-reference.c (propagate): Likewise.
33354         * ipa-utils.c (struct searchc_env): Remove unused field.
33355         (searchc): Always search across AVAIL_INTERPOSABLE.
33356         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33357         the only called IPA pure const can properly not propagate
33358         across interposable boundary.
33359         * ipa-utils.h (ipa_reduced_postorder): Remove param.
33361 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
33363         * config/nds32/nds32.md (call_internal, call_value_internal,
33364         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33366 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33368         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33369         typo.
33371 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
33373         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33374         in comments
33376 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33378         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33380 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
33382         PR tree-optimization/89268
33383         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33384         if preds is non-NULL.
33386 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33388         PR lto/89272
33389         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33390         polymorphic types.
33392 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33394         * config/nds32/nds32.md (trap): New pattern.
33396 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33398         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33399         dwarf span.
33401 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33403         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33404         to split POST_INC.
33406 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33408         * ipa-visibility.c (localize_node): Also do not localize
33409         LDPR_PREVAILING_DEF_IRONLY_EXP.
33411 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33413         PR lto/87957
33414         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33415         instead of type_with_linkage.
33417 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33419         PR ipa/88755
33420         * params.def (uninlined-function-insns, uninlined-function-time,
33421         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33422         bound so we don't get overflows.
33424 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
33426         * config/rs6000/rs6000-string.c (expand_compare_loop,
33427         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33428         memcmp/strncmp.
33430 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
33432         PR middle-end/89246
33433         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33434         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33435         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33437 2019-02-09  Alan Modra  <amodra@gmail.com>
33439         PR target/88343
33440         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33441         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
33442         setup.
33444 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33446         PR middle-end/88560
33447         * lra-constraints.c (process_alt_operands): Don't increase reject
33448         for memory when offset memory is required.
33450 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
33452         * config/s390/vector.md: Implement vector copysign.
33454 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33456         * expr.c (expand_constructor): Correct indentations.
33458 2019-02-08  Richard Biener  <rguenther@suse.de>
33460         PR tree-optimization/89247
33461         * tree-if-conv.c: Include tree-cfgcleanup.h.
33462         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33463         (tree_if_conversion): Pass through predicate vector.
33464         (pass_if_conversion::execute): Do CFG cleanup and SSA update
33465         inline, see if any if-converted loops we refrece in
33466         LOOP_VECTORIZED calls vanished and fixup.
33467         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33469 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
33471         * config/s390/constraints.md (jdd): New constraint.
33473 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33475         PR target/89229
33476         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33477         upper 16 vector registers without TARGET_AVX512VL.
33478         (*movti_internal): Likewise.
33480 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
33482         PR rtl-optimization/89234
33483         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33484         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33485         (copy_reg_eh_region_note_backward): Likewise.
33487 2019-02-08  Richard Biener  <rguenther@suse.de>
33489         PR middle-end/89223
33490         * tree-data-ref.c (initialize_matrix_A): Fail if constant
33491         doesn't fit in HWI.
33492         (analyze_subscript_affine_affine): Handle failure from
33493         initialize_matrix_A.
33495 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
33497         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33498         cfun everywhere.
33500 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
33502         PR tree-optimization/86637
33503         PR tree-optimization/89235
33504         * tree-vect-loop.c (optimize_mask_stores): Add an
33505         auto_purge_vect_location sentinel to ensure that vect_location is
33506         purged on exit.
33507         * tree-vectorizer.c
33508         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33509         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33510         to ensure that vect_location is purged on exit.
33511         (pass_slp_vectorize::execute): Likewise, replacing the manual
33512         reset.
33513         * tree-vectorizer.h (class auto_purge_vect_location): New class.
33515 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33517         * config/aarch64/iterators.md (max_opp): New code_attr.
33518         (USMAX): New code iterator.
33519         * config/aarch64/predicates.md (aarch64_smin): New predicate.
33520         (aarch64_smax): Likewise.
33521         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33522         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33523         MINUS (MAX MIN).
33525 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
33527         PR target/89229
33528         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33529         for TARGET_AVX512VL.
33530         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33532 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
33534         * config/s390/s390-builtin-types.def: Add new types.
33535         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33536         (s390_vec_xlw4): Make the memory operand into a const pointer.
33537         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33538         float.
33539         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33540         a new vector type with the alignment of the scalar memory operand.
33542 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
33543             Jakub Jelinek  <jakub@redhat.com>
33545         PR bootstrap/88714
33546         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33547         arm_count_ldrdstrd_insns): New declarations.
33548         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33549         MINUS.
33550         (valid_operands_ldrd_strd): New function.
33551         (arm_count_ldrdstrd_insns): New function.
33552         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33553         sets instead of single DImode set and define new insns to match this.
33555 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
33557         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33558         Make it a C initializer.
33560 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
33562         PR/target 88850
33563         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33565 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33567         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33568         Use neon_dot<q> for type.
33569         (neon_<sup>dot_lane<vsi2qi>): Likewise.
33571 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33573         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33574         Use neon_dot<q> for type.
33575         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33576         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33578 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
33580         PR rtl-optimization/89225
33581         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33582         sizes check.
33584 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
33586         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33587         after restoring registers saved to allocate the frame on Windows.
33589 2019-02-06  Richard Biener  <rguenther@suse.de>
33591         PR tree-optimization/89182
33592         * graphite.h (cached_scalar_evolution_in_region): Declare.
33593         * graphite.c (struct seir_cache_key): New.
33594         (struct sese_scev_hash): Likewise.
33595         (seir_cache): New global.
33596         (cached_scalar_evolution_in_region): New function.
33597         (graphite_transform_loops): Allocate and release seir_cache.
33598         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33599         cached_scalar_evolution_in_region.
33600         * graphite-scop-detection.c (scop_detection::can_represent_loop):
33601         Simplify.
33602         (scop_detection::graphite_can_represent_expr: Use
33603         cached_scalar_evolution_in_region.
33604         (scop_detection::stmt_simple_for_scop_p): Likewise.
33605         (find_params_in_bb): Likewise.
33606         (gather_bbs::before_dom_children): Likewise.
33607         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33608         (add_loop_constraints): Likewise.
33610 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
33612         PR middle-end/89210
33613         * fold-const-call.c (fold_const_vec_convert): Pass true as last
33614         operand to new_unary_operation only if both element types are integral
33615         and it isn't a widening conversion.  Return NULL_TREE if
33616         new_unary_operation failed.
33618 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
33620         PR target/88856
33621         * config/s390/s390.md: Remove load and test FP splitter.
33623 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
33625         PR target/89112
33626         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33627         expand_compare_loop, expand_block_compare_gpr,
33628         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33629         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33630         #include "profile-count.h" and "predict.h" for types and functions
33631         needed to work with REG_BR_PROB notes.
33633 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
33635         PR target/89112
33636         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33637         for the long branch case.
33639 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
33641         PR target/89188
33642         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33643         can throw, non-call exceptions are enabled and we can't delete
33644         dead exceptions or alter cfg.  Set must_clean if
33645         delete_insn_and_edges returns true, don't set it blindly for calls.
33646         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33648         PR rtl-optimization/89195
33649         * combine.c (make_extraction): For MEMs, don't extract bytes outside
33650         of the original MEM.
33652 2019-02-05  Martin Liska  <mliska@suse.cz>
33654         PR gcov-profile/89000
33655         * gcov.c (function_summary): Remove argument.
33656         (file_summary): New function.
33657         (print_usage): Replace tabs with spaces.
33658         (generate_results): Use new function file_summary.
33660 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
33662         PR target/89186
33663         * optabs.c (prepare_cmp_insn): Pass x and y to
33664         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33666 2019-02-05  Richard Biener  <rguenther@suse.de>
33668         PR middle-end/89150
33669         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33670         (struct bitmap_element): Drop chain_prev so we properly recurse on
33671         the prev member, supporting tree views.
33672         (struct bitmap_head): GTY skip the obstack member.
33674 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
33676         PR c/88698
33677         * doc/extend.texi (Vector Extensions): Add an example of using vector
33678         types together with x86 intrinsics.
33680 2019-02-04  Alan Modra  <amodra@gmail.com>
33682         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33683         str[] size to 160, and comment.
33685 2019-02-04  Alan Modra  <amodra@gmail.com>
33687         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33688         (rs6000_pltseq_template): Guard output of TLS markers with
33689         TARGET_TLS_MARKERS.
33690         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33691         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33692         to use inline PLT sequences.
33693         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33694         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33695         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33697 2019-02-04  Martin Liska  <mliska@suse.cz>
33699         PR ipa/88985
33700         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33701         out when ipa_fn_summaries does not contain entry for callee.
33703 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33705         * config/sparc/sparc.h: Remove superfluous blank lines.
33706         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33707         (got_register_rtx): ...this.
33708         (sparc_got): Adjust to above renaming.
33709         (sparc_tls_got): Likewise.
33710         (sparc_delegitimize_address): Likewise.
33711         (sparc_output_mi_thunk): Likewise.
33712         (sparc_init_pic_reg): Likewise.
33713         (save_local_or_in_reg_p): Fix test on the GOT register.
33714         (USE_HIDDEN_LINKONCE): Move around.
33715         (get_pc_thunk_name): Likewise.
33716         (gen_load_pcrel_sym): Likewise.
33717         (load_got_register): Likewise.
33719 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
33721         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33722         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33724 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
33726         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33727         into consideration.
33729 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
33731         * config.gcc (with_nds32_lib, glibc):
33732         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33733         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33734         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33736 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
33738         PR target/89071
33739         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33740         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33741         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33742         (*rcpsf2_sse): Ditto.
33743         (*rsqrtsf2_sse): Ditto.
33744         (sse4_1_round<mode<2): Ditto.
33746 2019-02-03  Richard Biener  <rguenther@suse.de>
33748         PR debug/87295
33749         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33750         orig.
33752 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
33754         PR middle-end/87887
33755         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33756         Punt with warning on aggregate return or argument types.  Ignore
33757         type/mode checking for uniform arguments.
33759 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
33761         * combine.c (try_combine): Do not print "Can't combine" messages unless
33762         printing failed combination attempts.
33764 2019-02-01  Martin Jambor  <mjambor@suse.cz>
33766         PR hsa/87863
33767         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33768         segment and global segment variables before making them static.
33770 2019-02-01  Martin Jambor  <mjambor@suse.cz>
33772         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33773         missed optimization dump with dump_enabled_p.
33775 2019-02-01  Richard Biener  <rguenther@suse.de>
33777         PR middle-end/88597
33778         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33779         the instantiate cache.
33780         (instantiate_scev_binary): Elide second operand procesing
33781         if equal to the first.
33782         * tree-chrec.c (chrec_contains_symbols): Add visited set.
33783         (chrec_contains_undetermined): Likewise.
33784         (tree_contains_chrecs): Likewise.
33786 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
33788         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33790 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
33792         PR tree-optimization/89143
33793         * wide-int-range.h (wide_int_range_absu): Declare.
33794         * wide-int-range.cc (wide_int_range_absu): New function.
33795         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33797         PR tree-optimization/88107
33798         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33799         instead of assertion that eh_region_outermost is non-NULL, if it
33800         is NULL, set *ALL to true and return NULL.
33801         (move_sese_region_to_fn): Adjust caller, if all is set, call
33802         duplicate_eh_regions with NULL region.
33804 2019-02-01  Richard Biener  <rguenth@suse.de>
33806         PR rtl-optimization/88593
33807         * mode-switching.c (optimize_mode_switching): Free dominators before
33808         calling cleanup_cfg.
33810 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
33812         PR tree-optimization/88932
33813         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33815 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
33817         PR middle-end/89137
33818         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33819         bogus clang warning.
33821 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
33823         PR target/89071
33824         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33825         alternative to avoid partial SSE register stall for TARGET_AVX.
33826         (truncdfsf2): Ditto.
33827         (sse4_1_round<mode>2): Ditto.
33829 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
33831         PR tree-optimization/89008
33832         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33833         process anything of the form X * 0.
33835 2019-01-31  Richard Biener  <rguenther@suse.de>
33837         PR tree-optimization/89135
33838         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33839         with abnormal preds.
33841 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
33843         PR sanitizer/89124
33844         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33845         always_inline callees into no_sanitize_address callers.
33847 2019-01-31  Richard Biener  <rguenther@suse.de>
33849         PR rtl-optimization/89115
33850         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33852 2019-01-30  Martin Sebor  <msebor@redhat.com>
33854         PR other/89106
33855         * doc/extend.texi (cast to a union): Correct and expand.
33857 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33859         PR rtl-optimization/87246
33860         * lra-constraints.c (simplify_operand_subreg): Reload memory
33861         in subreg if the address became invalid.
33863 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
33865         PR target/87064
33866         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33867         Disable for little-endian.
33869 2019-01-30  Richard Biener  <rguenther@suse.de>
33871         PR rtl-optimization/89115
33872         * opts.c (default_options_optimization): Reduce
33873         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33874         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33875         to the default.
33877 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
33879         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33880         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
33881         type of vector element when vec_extract is implemented by direct
33882         move.
33884 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
33886         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33888 2019-01-30  Richard Biener  <rguenther@suse.de>
33890         PR tree-optimization/89111
33891         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33892         canonicalization to appropriately sized access types.
33894 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
33896         PR c++/89105
33897         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33898         for arguments to functions that are TU-local and shouldn't be
33899         referenced by assembly.
33901 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
33903         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33904         after '='.
33906 2019-01-29  Martin Sebor  <msebor@redhat.com>
33908         PR c/88956
33909         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33911 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
33913         PR c++/66676
33914         PR ipa/89104
33915         * omp-simd-clone.c (simd_clone_clauses_extract)
33916         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33917         OMP_CLAUSE_ALIGNED_ALIGNMENT.
33919 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
33921         * config.gcc: Force .init_array for ARC.
33923 2019-01-29  Richard Biener  <rguenther@suse.de>
33925         PR debug/87295
33926         * dwarf2out.c (collect_skeleton_dies): New helper.
33927         (copy_decls_for_unworthy_types): Call it.
33928         (build_abbrev_table): Assert we do not try to replace
33929         DW_AT_signature refs with local refs.
33931 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33933         PR middle-end/89002
33934         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33935         for lastprivate/linear IV, push gimplify context around gimplify_assign
33936         and, if it needed any temporaries, pop it into a gimple bind around the
33937         sequence.
33939 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33941         * common.opt (-Wattribute-alias): Remove "no-" from name.
33942         Make -Wattribute-alias command line option and
33943         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33945 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33947         PR target/89073
33948         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33949         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33950         x86 ISA options.
33951         (bmi2): Add missing @opindex.
33952         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33953         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
33954         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33955         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33956         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33957         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33958         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33959         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33960         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33961         xsavec, xsaveopt and xsaves options.
33963 2019-01-28  Richard Biener  <rguenther@suse.de>
33965         PR debug/89076
33966         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33967         support removal.
33969 2019-01-28  Richard Biener  <rguenther@suse.de>
33971         PR tree-optimization/88739
33972         * tree-cfg.c (verify_types_in_gimple_reference): Verify
33973         BIT_FIELD_REFs only are applied to mode-precision operands
33974         when they are integral.
33975         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33976         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33977         BIT_FIELD_REFs of non-mode-precision integral operands.
33979 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
33981         PR target/87214
33982         * config/i386/sse.md
33983         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33984         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33985         first constants in pairs are multiples of 2.  Formatting fixes.
33986         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33987         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33988         first constants in each quadruple are multiples of 4.  Formatting fixes.
33990 2019-01-26  Martin Jambor  <mjambor@suse.cz>
33992         PR ipa/88933
33993         * tree-inline.c: Include tree-cfgcleanup.h.
33994         (delete_unreachable_blocks_update_callgraph): Move...
33995         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33996         ...here, make externally visible, make second argument bool, adjust
33997         all callers.
33998         * tree-cfgcleanup.c: Include cgraph.h.
33999         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
34000         Declare.
34001         * ipa-prop.c: Include tree-cfgcleanup.h.
34002         (ipcp_transform_function): Call
34003         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
34005 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
34007         PR rtl-optimization/88846
34008         * ira.c (process_set_for_memref_referenced_p): New.
34009         (memref_referenced_p): Add new param.  Use
34010         process_set_for_memref_referenced_p.  Add new switch cases.
34011         (memref_used_between_p): Pass new arg to memref_referenced_p.
34013 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
34015         PR target/88469
34016         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
34017         argument ABI_BREAK.  Set to true if the calculated alignment has
34018         changed in gcc-9.  Check bit-fields for their base type alignment.
34019         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
34020         (aarch64_function_arg_boundary): Likewise.
34021         (aarch64_gimplify_va_arg_expr): Likewise.
34023 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
34025         PR middle-end/89037
34026         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
34027         instead of accessing TREE_INT_CST_ELT directly.
34029 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
34031         * doc/sourcebuild.texi (Environment attributes): Add fenv and
34032         fenv_exceptions description.
34034 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
34036         PR rtl-optimization/87763
34037         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
34038         Allow SUBREG when matching CC_NZmode compare.
34040 2019-01-25  Richard Biener  <rguenther@suse.de>
34042         PR tree-optimization/89049
34043         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
34044         Look at the pattern stmt to determine if the stmt is vectorized.
34046 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
34048         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
34049         (pred_mov<mode>): Handle all-register forms using both a new
34050         alternative and a split.
34052 2019-01-25  Richard Biener  <rguenther@suse.de>
34054         PR tree-optimization/86865
34055         * graphite-scop-detection.c (scop_detection::can_represent_loop):
34056         Reject non-do-while loops.
34058 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
34060         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
34061         * config/rs6000/constraints.md (Q constraint): Use REG_P.
34062         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
34063         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34064         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
34065         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34066         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
34067         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
34068         vlogical_operand, gpc_reg_operand, int_reg_operand,
34069         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
34070         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
34071         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
34072         (save_world_operation, restore_world_operation, lmw_operation,
34073         stmw_operation): Use MEM_P and REG_P.
34074         (tie_operand): Use MEM_P.
34075         (vrsave_operation, crsave_operation): Use REG_P.
34076         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
34077         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
34078         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
34079         (call_operand): Use HARD_REGISTER_P.
34080         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
34081         Use CONST_INT_P.
34082         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
34083         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
34084         quad_aligned_load_p, replace_swapped_aligned_store,
34085         recombine_lvx_pattern, replace_swapped_aligned_load,
34086         recombine_stvx_pattern): Use MEM_P.
34087         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
34088         Use MEM_P and SYMBOL_REF_P.
34089         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
34090         (insn_is_swappable_p): Use REG_P and MEM_P.
34091         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
34092         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
34093         Use CONST_INT_P.
34094         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
34095         Use CONST_DOUBLE_P.
34096         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
34097         CONST_WIDE_INT_P.
34098         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
34099         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
34100         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
34101         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
34102         reg_or_subregno:
34103         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34104         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
34105         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
34106         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
34107         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
34108         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
34109         rs6000_split_logical_di): Use CONST_INT_P.
34110         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
34111         REG_P and SYMBOL_REF_P.
34112         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
34113         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
34114         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
34115         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
34116         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
34117         (small_data_operand, print_operand_address): Use CONST_INT_P and
34118         SYMBOL_REF_P.
34119         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
34120         (rs6000_init_hard_regno_mode_ok, direct_move_p):
34121         Use HARD_REGISTER_NUM_P.
34122         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
34123         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
34124         SUBREG_P and SYMBOL_REF_P.
34125         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
34126         and HARD_REGISTER_NUM_P.
34127         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
34128         reg_or_subregno.
34129         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
34130         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
34131         MEM_P and REG_P.
34132         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
34133         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
34134         find_addr_reg): Use REG_P.
34135         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
34136         (rs6000_emit_le_vsx_move): Use SUBREG_P.
34137         (offsettable_ok_by_alignment, constant_pool_expr_p,
34138         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
34139         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
34140         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
34141         rs6000_assemble_integer, create_TOC_reference,
34142         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
34143         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
34144         (rs6000_split_vec_extract_var): Use reg_or_subregno.
34145         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34146         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34147         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34148         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34149         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
34150         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
34151         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
34152         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
34153         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
34154         and cbranch<mode>4): Use CONST_INT_P.
34155         (multiple define_splits): Use REG_P and SUBREG_P.
34156         (define_expands call, call_value): Use MEM_P.
34157         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
34158         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
34159         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
34160         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
34161         and HARD_REGISTER_NUM_P.
34162         (multiple define_splits): Use HARD_REGISTER_NUM_P.
34164 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
34166         PR rtl-optimization/88948
34167         * rtl.h (prepare_copy_insn): New prototype.
34168         * gcse.c (prepare_copy_insn): New function, split out from
34169         process_insert_insn.
34170         (process_insert_insn): Use prepare_copy_insn.
34171         * store-motion.c (replace_store_insn): Use prepare_copy_insn
34172         instead of gen_move_insn.
34174 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
34176         PR debug/89006
34177         * config/i386/i386.c (ix86_pic_register_p): Return true for
34178         UNSPEC_SET_GOT too.
34180         PR tree-optimization/88964
34181         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
34182         punt if HONOR_SNANS (chrec).
34184         PR middle-end/89015
34185         * tree-nested.c (convert_nonlocal_reference_stmt,
34186         convert_local_reference_stmt, convert_tramp_reference_stmt,
34187         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
34188         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
34189         or GIMPLE_OMP_TASK.
34191         PR tree-optimization/89027
34192         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
34193         for "omp simd array" variables.
34195 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
34197         PR target/88469
34198         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
34199         force the alignment of m_val.
34201 2019-01-24  Richard Biener  <rguenther@suse.de>
34203         PR lto/87187
34204         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
34205         When in "legacy" debug mode make sure to reset self-origins.
34207 2019-01-24  Martin Liska  <mliska@suse.cz>
34209         PR gcov-profile/88994
34210         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
34211         result will be always smaller or equal to the original.
34212         * gcov.c (mangle_name): Fix else branch where we should
34213         also copy to PTR and shift the pointer.
34215 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
34217         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
34218         * vr-values.c (find_case_label_ranges): Fix a comment typo.
34220 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
34222         * common/config/i386/i386-common.c
34223         (OPTION_MASK_ISA_ENQCMD_SET,
34224         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
34225         (ix86_handle_option): Handle -menqcmd.
34226         * config.gcc (enqcmdintrin.h): New header file.
34227         * config/i386/cpuid.h (bit_ENQCMD): New bit.
34228         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
34229         -menqcmd.
34230         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
34231         function type.
34232         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
34233         __builtin_ia32_enqcmds): New builtins.
34234         * config/i386/i386-c.c (__ENQCMD__): New macro.
34235         * config/i386/i386-option.c (ix86_target_string): Add
34236         -menqcmd.
34237         (ix86_valid_target_attribute_inner_p): Likewise.
34238         * config/i386/i386-expand.c
34239         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
34240         IX86_BUILTIN_ENQCMDS.
34241         * config/i386/i386.h (TARGET_ENQCMD): New.
34242         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
34243         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
34244         (movdir64b_<mode>): Parameterize to enable share expansion code
34245         with ENQCMD in function ix86_expand_builtin.
34246         * config/i386/i386.opt: Add -menqcmd.
34247         * config/i386/immintrin.h: Include enqcmdintrin.h.
34248         * config/i386/enqcmdintrin.h: New intrinsic file.
34249         * doc/invoke.texi: Add -menqcmd.
34251 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
34252             Steve Ellcey  <sellcey@marvell.com>
34254         PR target/85711
34255         * recog.c (address_operand): Return false on wrong mode for address.
34256         (constrain_operands): Check for mode with 'p' constraint.
34258 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
34260         PR target/88998
34261         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
34262         Disparage MMX alternative.
34263         (sse2_cvtpd2pi): Ditto.
34264         (sse2_cvttpd2pi): Ditto.
34266 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
34268         PR driver/89014
34269         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
34270         use-after-free of the result of
34271         aarch64_get_extension_string_for_isa_flags.
34273 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34275         PR c/44715
34276         * doc/extend.texi: Document break and continue behavior in
34277         statement expressions.
34279 2019-01-23  Richard Biener  <rguenther@suse.de>
34281         PR tree-optimization/89008
34282         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
34283         not leave another stray operand.
34285 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34287         * BASE-VER: Bump to 9.0.1.
34289 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
34291         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34292         thunk that returns by reference, use the type of the return object
34293         of the thunk instead of that of the alias to build the dereference.
34295 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
34297         * config/arc/atomic.md: Add operand to DMB instruction.
34299 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34301         PR tree-optimization/88964
34302         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34303         build_zero_cst instead of build_int_cst.  Return false for loop
34304         invariants which honor signed zeros.
34306 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
34308         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34310 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34312         PR target/88965
34313         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34314         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34315         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34317         PR middle-end/88968
34318         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34319         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34321         PR target/87064
34322         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34323         Disable for little endian.
34325 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34327         PR target/88469
34328         * config/arm/arm.c (arm_needs_double_word_align): Check
34329         DECL_BIT_FIELD_TYPE.
34331 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
34332             H.J. Lu  <hongjiu.lu@intel.com>
34334         PR target/88909
34335         * config/i386/i386-builtin.def: Add mask2 to all builtin
34336         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34337         SPECIAL_ARGS.
34338         * config/i386/i386.c (BDESC): Add mask2 to the definition.
34339         (BDESC_FIRST): Likewise.
34340         (define_builtin): Add an argument for mask2.  Updated to handle
34341         both ix86_isa_flags and ix86_isa_flags2.
34342         (define_builtin_const): Likewise.
34343         (define_builtin_pure): Likewise.
34344         (define_builtin2): Deleted.
34345         (define_builtin_const2): Likewise.
34346         (builtin_description): Add a member, mask2.
34347         (bdesc_*): Add mask2 to builtin initializations.
34348         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34349         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
34350         support.
34351         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34353 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
34355         PR target/88954
34356         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34357         noplt attribute.
34359 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34361         PR target/88469
34362         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34363         alignment is dominated by a bitfield with 64-bit aligned base type.
34364         (arm_function_arg): Emit a warning if the alignment has changed since
34365         earlier GCC releases.
34366         (arm_function_arg_boundary): Likewise.
34367         (arm_setup_incoming_varargs): Likewise.
34369 2019-01-22  Richard Biener  <rguenther@suse.de>
34371         PR tree-optimization/88862
34372         * graphite-scop-detection.c
34373         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34375 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
34377         * doc/extend.tex (AMD GCN Function Attributes): New section.
34378         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34379         * doc/invoke.texi (AMD GCN Options): New section.
34380         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34382 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34384         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34385         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34387 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34389         PR tree-optimization/88044
34390         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34391         is false in the first iteration, but !every_iteration, return false
34392         instead of true with niter->niter zero.
34394         PR rtl-optimization/88904
34395         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34396         any nonequal registers before processing BB_END (b).
34398         PR target/88905
34399         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34400         GET_MODE (op0).
34401         (expand_binop_directly, expand_doubleword_clz,
34402         expand_doubleword_popcount, expand_ctz, expand_ffs,
34403         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34405         PR rtl-optimization/49429
34406         PR target/49454
34407         PR rtl-optimization/86334
34408         PR target/88906
34409         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34410         addressable from here...
34411         (emit_block_op_via_libcall): ... to here.
34413 2019-01-22  Richard Biener  <rguenther@suse.de>
34415         * tree-vect-loop.c (vect_analyze_loop_operations): Use
34416         auto_vec for cost vector to fix memleak.
34417         (vectorize_fold_left_reduction): Properly gather SLP defs.
34418         (vectorizable_comparison): Do not swap operands to properly
34419         gather SLP defs.
34421 2019-01-22  Alan Modra  <amodra@gmail.com>
34423         PR target/88614
34424         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34425         stays a reg.  Allow a const_int.
34426         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34427         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34428         (IS_NOMARK_TLSGETADDR): Define.
34429         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34430         (rs6000_output_tlsargs): New function.
34431         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34432         __tls_get_addr call takes an arg.
34433         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34434         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34435         delete split..
34436         (call_value_nonlocal_sysv): ..or here, delete split.
34437         (tls_gdld_nomark): Delete.
34438         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34439         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
34440         (call_value_nonlocal_sysv): Likewise.
34441         (call_value_nonlocal_sysv_secure): Likewise.
34442         (call_value_nonlocal_aix): Likewise.
34443         (call_value_indirect_aix): Likewise.
34444         (call_value_indirect_elfv2): Likewise.
34445         (call_value_local32, call_value_local64): Disable for no-mark tls.
34446         (call_value_local_aix): Likewise.
34448 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
34450         PR target/88938
34451         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34452         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34454 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
34456         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34457         string contents as hash_map keys.
34459 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34461         PR c/88928
34462         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34463         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
34464         instead of TYPE_ALIGN.
34465         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34466         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
34467         pointer from TYPE_STUB_DECL.
34469 2019-01-21  Richard Biener  <rguenther@suse.de>
34471         PR tree-optimization/88934
34472         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34473         at the possibly non-constant operand.
34474         (vect_get_constant_vectors): Adjust.
34476 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
34478         PR target/71659
34479         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34480         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34481         instead of _X86INTRIN_H_INCLUDED.
34482         * onfig/i386/clwbintrin.h: Likewise.
34483         * config/i386/pkuintrin.h: Likewise.
34484         * config/i386/prfchwintrin.h: Likewise.
34485         * config/i386/rdseedintrin.h: Likewise.
34486         * config/i386/wbnoinvdintrin.h: Likewise.
34487         * config/i386/xsavecintrin.h: Likewise.
34488         * config/i386/xsavesintrin.h: Likewise.
34489         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34490         * config/i386/xsaveintrin.h: Likewise.
34491         * config/i386/xsaveoptintrin.h: Likewise.
34492         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34493         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34494         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34495         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34496         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34497         * config/i386/immintrin.h: Here.
34499 2019-01-20  Martin Jambor  <mjambor@suse.cz>
34501         PR ipa/87615
34502         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34503         with aa_walk_budget.
34504         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34505         aa_walk_budget_p parameter.
34506         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
34507         walk.  Updated all callers.
34508         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34509         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34510         unmodified_parm.
34511         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34512         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
34513         and to unmodified_parm.
34514         (phi_result_unknown_predicate): New parameter fbi, removed parameter
34515         info, updated call to will_be_nonconstant_expr_predicate.
34516         (param_change_prob): New parameter fbi, limit AA walking.
34517         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
34518         calls to various above functions.
34519         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34520         parameter.  Use it to limit AA walking.
34521         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34522         fbi, limit AA walk.
34523         (detect_type_change): New parameter fbi, pass it on to
34524         detect_type_change_from_memory_writes.
34525         (detect_type_change_ssa): Likewise.
34526         (aa_overwalked): Removed.
34527         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34528         accordingly, adjust to the neew AA limiting scheme.
34529         (parm_ref_data_preserved_p): Likewise.
34530         (ipa_compute_jump_functions_for_edge): Adjust call to
34531         get_dynamic_type.
34532         (ipa_analyze_call_uses): Likewise.
34533         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34534         (ipa_analyze_node): Initialize aa_walk_budget.
34535         (ipcp_transform_function): Likewise.
34536         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34537         to get_dynamic_type.
34539 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
34541         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34542         outside of #if CHECKING_P code.
34544 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
34546         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34547         New function, split out from...
34548         (loop_versioning::analyze_stride): ...here.
34549         (loop_versioning::find_per_loop_multiplication): Use gassign.
34550         (loop_versioning::analyze_term_using_scevs): Return a success code.
34551         (loop_versioning::analyze_arbitrary_term): New function.
34552         (loop_versioning::analyze_address_fragment): Use
34553         analyze_arbitrary_term if all else fails.
34555 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
34557         PR target/88892
34558         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34559         operands.
34561 2019-01-18  Richard Biener  <rguenther@suse.de>
34563         PR tree-optimization/88903
34564         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34565         scalar stmts a SLP shift amount is composed of when detecting
34566         shifts by scalars.
34568 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
34570         PR target/88799
34571         * config/arm/arm-cpus.in (mp): New feature.
34572         (sec): New feature.
34573         (fgroup ARMv7ve): Add mp and sec features.
34574         (arch armv7-a): Add options to allow mp and sec extensions.
34575         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34576         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34577         extenstions to the base architecture.
34578         (cpu cortex-a8): Add sec extension to the base architecture.
34579         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34580         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34581         variants down to the base v7-a varaint.
34582         * config/arm/t-multilib (v7_a_arch_variants): New variable.
34583         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34584         of permitted extensions for -march=armv7-a and for
34585         -mcpu=generic-armv7-a.
34587 2019-01-18  Martin Liska  <mliska@suse.cz>
34589         * params.def: Fix comment.
34590         * tree-profile.c (gimple_init_gcov_profiler): Bump function
34591         name.
34592         (gimple_gen_ic_func_profiler): Likewise.
34594 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34596         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34597         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34598         and put in error checks for stack protector guard options.
34599         (aarch64_stack_protect_guard): New.
34600         (TARGET_STACK_PROTECT_GUARD): Define.
34601         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34602         (reg_stack_protect_address<mode>): New.
34603         (stack_protect_set): Adjust for SSP_GLOBAL.
34604         (stack_protect_test): Likewise.
34605         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34606         (-mstack-protector-guard): Likewise.
34607         (-mstack-protector-guard-offset): Likewise.
34609 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
34611         PR tree-optimization/86214
34612         * tree-inline.h (struct copy_body_data): Add
34613         add_clobbers_to_eh_landing_pads member.
34614         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34615         (copy_edges_for_bb): Call it if EH edge destination is <
34616         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
34617         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34618         if flag_stack_reuse != SR_NONE and clear it afterwards.
34620 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
34622         PR target/85596
34623         * doc/install.texi (with-multilib-list): Document for aarch64.
34625 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
34627         PR target/88734
34628         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34629         (("..."))) with ("...").
34631 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34633         * doc/extend.texi (Built-in Functions for Memory Model Aware
34634         Atomic Operations): Document atomic fetch and nand.
34636 2019-01-18  Martin Liska  <mliska@suse.cz>
34637             Richard Biener  <rguenther@suse.de>
34639         PR middle-end/88587
34640         * cgraph.h (create_version_clone_with_body): Add new argument
34641         with attributes.
34642         * cgraphclones.c (cgraph_node::create_version_clone): Add
34643         DECL_ATTRIBUTES to a newly created decl.  And call
34644         valid_attribute_p so that proper cl_target_optimization_node
34645         is set for the newly created declaration.
34646         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34647         for declaration.
34648         (expand_target_clones): Do not call valid_attribute_p, it must
34649         be already done.
34650         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34651         vector types.
34653 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
34655         PR target/88734
34656         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34657         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
34658         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34660 2019-01-17  Martin Sebor  <msebor@redhat.com>
34662         PR middle-end/88273
34663         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34664         Handle anti-ranges the same as no range at all.
34666 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
34668         * config/aarch64/aarch64.c (cgraph.h): New include.
34669         (intl.h): New include.
34670         (supported_simd_type): New function.
34671         (currently_supported_simd_type): Ditto.
34672         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34673         (aarch64_simd_clone_adjust): Ditto.
34674         (aarch64_simd_clone_usable): Ditto.
34675         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34676         (TARGET_SIMD_CLONE_ADJUST): Ditto.
34677         (TARGET_SIMD_CLONE_USABLE): Ditto.
34678         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34679         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34680         call.
34682 2019-01-17  Martin Sebor  <msebor@redhat.com>
34684         PR tree-optimization/88800
34685         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34686         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
34687         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34688         redundant argument.  Add new argument and issue diagnostics under
34689         its control.  Detect out-of-bounds access even with warnings
34690         disabled.
34691         (check_bounds_or_overlap): Change return type.  Add argument.
34692         (wrestrict_dom_walker::check_call): Adjust.
34693         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34694         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34695         check_bounds_or_overlap's return value.
34696         (handle_builtin_stxncpy): Same.
34697         (handle_builtin_strcat): Same.
34699 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34700             Kwok Cheung Yeung  <kcy@codesourcery.com>
34701             Julian Brown  <julian@codesourcery.com>
34702             Tom de Vries  <tom@codesourcery.com>
34704         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34706 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34708         * doc/sourcebuild.texi: Document dg-require-effective-target
34709         llvm_binutils and offload_gcn.
34711 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34712             Kwok Cheung Yeung  <kcy@codesourcery.com>
34713             Julian Brown  <julian@codesourcery.com>
34714             Tom de Vries  <tom@codesourcery.com>
34716         * doc/sourcebuild.texi: Document dg-required-effective-target
34717         exceptions.
34719 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34720             Kwok Cheung Yeung  <kcy@codesourcery.com>
34721             Julian Brown  <julian@codesourcery.com>
34722             Tom de Vries  <tom@codesourcery.com>
34723             Jan Hubicka  <hubicka@ucw.cz>
34724             Martin Jambor  <mjambor@suse.cz>
34726         * config.gcc: Add amdgcn*-*-amdhsa configuration.
34727         * configure.ac: Check for dlopen.
34728         * configure: Regenerate.
34730 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34731             Kwok Cheung Yeung  <kcy@codesourcery.com>
34732             Julian Brown  <julian@codesourcery.com>
34733             Tom de Vries  <tom@codesourcery.com>
34734             Jan Hubicka  <hubicka@ucw.cz>
34735             Martin Jambor  <mjambor@suse.cz>
34737         * common/config/gcn/gcn-common.c: New file.
34738         * config/gcn/driver-gcn.c: New file.
34739         * config/gcn/gcn-builtins.def: New file.
34740         * config/gcn/gcn-hsa.h: New file.
34741         * config/gcn/gcn-modes.def: New file.
34742         * config/gcn/gcn-opts.h: New file.
34743         * config/gcn/gcn-passes.def: New file.
34744         * config/gcn/gcn-protos.h: New file.
34745         * config/gcn/gcn-run.c: New file.
34746         * config/gcn/gcn-tree.c: New file.
34747         * config/gcn/gcn.c: New file.
34748         * config/gcn/gcn.h: New file.
34749         * config/gcn/gcn.opt: New file.
34750         * config/gcn/t-gcn-hsa: New file.
34752 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34753             Kwok Cheung Yeung  <kcy@codesourcery.com>
34754             Julian Brown  <julian@codesourcery.com>
34755             Tom de Vries  <tom@codesourcery.com>
34756             Jan Hubicka  <hubicka@ucw.cz>
34757             Martin Jambor  <mjambor@suse.cz>
34759         * config/gcn/constraints.md: New file.
34760         * config/gcn/gcn-valu.md: New file.
34761         * config/gcn/gcn.md: New file.
34762         * config/gcn/predicates.md: New file.
34764 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
34766         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34767         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34768         (stmt_uses_0_or_null_in_undefined_way): Likewise.
34769         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34771 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
34773         PR target/88851
34774         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34775         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34776         it and document registers.
34778 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34780         * config/aarch64/aarch64.c (ares_tunings): Define.
34781         * config/aarch64/aarch64-cores.def (ares): Use the above.
34783 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34785         PR target/88794
34786         Revert:
34787         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
34789         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34790         (_mm512_fixupimm_round_pd): Update parameters and builtin.
34791         (_mm512_maskz_fixupimm_round_pd): Ditto.
34792         (_mm512_fixupimm_round_ps): Ditto.
34793         (_mm512_maskz_fixupimm_round_ps): Ditto.
34794         (_mm_fixupimm_round_sd): Ditto.
34795         (_mm_maskz_fixupimm_round_sd): Ditto.
34796         (_mm_fixupimm_round_ss): Ditto.
34797         (_mm_maskz_fixupimm_round_ss): Ditto.
34798         (_mm512_fixupimm_pd): Ditto.
34799         (_mm512_maskz_fixupimm_pd): Ditto.
34800         (_mm512_fixupimm_ps): Ditto.
34801         (_mm512_maskz_fixupimm_ps): Ditto.
34802         (_mm_fixupimm_sd): Ditto.
34803         (_mm_maskz_fixupimm_sd): Ditto.
34804         (_mm_fixupimm_ss): Ditto.
34805         (_mm_maskz_fixupimm_ss): Ditto.
34806         (_mm512_mask_fixupimm_round_pd): Update builtin.
34807         (_mm512_mask_fixupimm_round_ps): Ditto.
34808         (_mm_mask_fixupimm_round_sd): Ditto.
34809         (_mm_mask_fixupimm_round_ss): Ditto.
34810         (_mm512_mask_fixupimm_pd): Ditto.
34811         (_mm512_mask_fixupimm_ps): Ditto.
34812         (_mm_mask_fixupimm_sd): Ditto.
34813         (_mm_mask_fixupimm_ss): Ditto.
34814         * config/i386/avx512vlintrin.h:
34815         (_mm256_fixupimm_pd): Update parameters and builtin.
34816         (_mm256_maskz_fixupimm_pd): Ditto.
34817         (_mm256_fixupimm_ps): Ditto.
34818         (_mm256_maskz_fixupimm_ps): Ditto.
34819         (_mm_fixupimm_pd): Ditto.
34820         (_mm_maskz_fixupimm_pd): Ditto.
34821         (_mm_fixupimm_ps): Ditto.
34822         (_mm_maskz_fixupimm_ps): Ditto.
34823         (_mm256_mask_fixupimm_pd): Update builtin.
34824         (_mm256_mask_fixupimm_ps): Ditto.
34825         (_mm_mask_fixupimm_pd): Ditto.
34826         (_mm_mask_fixupimm_ps): Ditto.
34827         * config/i386/i386-builtin-types.def: Add new types and remove
34828         useless ones.
34829         * config/i386/i386-builtin.def: Update builtin definitions.
34830         * config/i386/i386.c: Handle new builtin types and remove useless ones.
34831         * config/i386/sse.md: Update VFIXUPIMM* patterns.
34832         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34833         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34834         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34835         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34836         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34837         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34838         * config/i386/subst.md:
34839         (round_saeonly_sd_mask_operand4): Add new subst_attr.
34840         (round_saeonly_sd_mask_op4): Ditto.
34841         (round_saeonly_expand_operand5): Ditto.
34842         (round_saeonly_expand): Update.
34844 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34846         PR target/88794
34847         Revert:
34848         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
34850         * config/i386/sse.md: Combine VFIXUPIMM* patterns
34851         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34852         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34853         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34854         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34855         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34856         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34858 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34860         PR target/88794
34861         Revert:
34862         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
34864         PR target/88489
34865         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34866         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34867         instead of UNSPEC_FIXUPIMM.
34869 2019-01-17  Richard Biener  <rguenther@suse.de>
34871         PR lto/86736
34872         * dwarf2out.c (want_pubnames): Never generate pubnames sections
34873         and friends for the LTO part of debug info.
34875 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
34877         PR tree-optimization/86214
34878         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34879         if x == y.
34881         PR rtl-optimization/88870
34882         * dce.c (deletable_insn_p): Never delete const/pure calls that can
34883         throw if we can't alter the cfg or delete dead exceptions.
34884         (mark_insn): Don't call find_call_stack_args for such calls.
34886 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
34888         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34889         prototypes for vec_st.
34890         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34891         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34892         mainly on signed/unsigned long long and double.
34894 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
34896         PR target/88861
34897         * combine.c (delete_noop_moves): Convert to "bool" return,
34898         returning true if any edges are eliminated.
34899         (combine_instructions): Also return true if delete_noop_moves
34900         returns true.
34902 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34904         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34905         correct max nunits for endian swap.
34906         (aarch64_expand_fcmla_builtin): Correct subreg code.
34907         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34908         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34909         lane endianness.
34911 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
34913         * config/alpha/alpha.c (alpha_gimplify_va_arg):
34914         Handle split indirect COMPLEX_TYPE arguments.
34916 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
34918         PR target/86891
34919         * config/aarch64/aarch64-modes.def: Add comment about how the carry
34920         bit is set by add and compare.
34921         (CC_ADC): New CC_MODE.
34922         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34923         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
34924         comparison.  Add detection for CC_ADCmode.
34925         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
34926         CC_ADCmode.
34927         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34928         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34929         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
34930         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
34931         to eliminate the need for zero-extending the operands.
34932         (add<mode>3_compareC_imm): Delete.  Merge into ...
34933         (add<mode>3_compareC): ... this.  Restructure the comparison to
34934         eliminate the need for zero-extending the operands.
34935         (add<mode>3_carryin): Use LTU for the overflow detection.
34936         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34937         Reexpress comparison for overflow.
34938         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34939         (add<mode>3_carryinC): Likewise.
34940         (add<mode>3_carryinV): Use LTU for carry between partials.
34941         * config/aarch64/predicates.md (aarch64_carry_operation): Update
34942         handling of CC_Cmode and add CC_ADCmode.
34943         (aarch64_borrow_operation): Likewise.
34945 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34947         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34948         Remove patternmode.
34949         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34950         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34951         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34952         Remove endianness conversion.
34954 2019-01-16  Martin Liska  <mliska@suse.cz>
34956         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34957         for GCC driver.
34958         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34959         a new argument.
34960         * gcc.c (add_sysrooted_hdrs_prefix): New function.
34961         (path_prefix_reset): Move up in the source file.
34962         (find_fortran_preinclude_file): Make complex search for the
34963         fortran header files.
34965 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
34967         * godump.c (go_output_typedef): When outputting a typedef, refer
34968         to the underlying type by its name and not its structure.
34970 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
34972         PR c++/88795
34973         * tree.c (build_function_type): Assert that arg_types is not
34974         error_mark_node.
34976 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
34978         PR inline-asm/52813
34979         * doc/extend.texi: Document that listing the stack pointer in the
34980         clobber list of an asm is a deprecated feature.
34981         * common.opt (Wdeprecated): Moved from c-family/c.opt.
34982         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34983         warning instead of an error for clobbers of the stack pointer.
34984         Add a note explaining why.
34986 2019-01-15  Richard Biener  <rguenther@suse.de>
34988         PR debug/88046
34989         * dwarf2out.c (gen_member_die): Do not generate inheritance
34990         DIEs late.
34992 2019-01-15  Richard Biener  <rguenther@suse.de>
34994         PR tree-optimization/88855
34995         * tree-if-conv.c (combine_blocks): Collect
34996         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34998 2019-01-15  Tom de Vries  <tdevries@suse.de>
35000         PR target/80547
35001         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
35002         lhs == NULL_TREE for gang-level reduction.
35004 2019-01-15  Richard Biener  <rguenther@suse.de>
35005             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35007         PR ipa/88788
35008         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
35009         return true if SSA_NAME is already marked in visited bitmap.
35010         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
35012 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
35014         PR tree-optimization/88775
35015         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
35016         equal == 0 equality pointer comparisons some more if compared in
35017         integral types and either one points to an automatic var and the
35018         other to a global, or we can prove at least one points to the middle
35019         or both point to start or both point to end.
35021 2019-01-14  Andi Kleen  <ak@linux.intel.com>
35023         * Makefile.in: Lower autofdo sampling rate by 10x.
35024         * Makefile.tpl: Dito.
35026 2019-01-14  Tom Honermann  <tom@honermann.net>
35028         * defaults.h: Define CHAR8_TYPE.
35030 2019-01-14  Martin Sebor  <msebor@redhat.com>
35032         PR target/88638
35033         * doc/extend.texi (Darwin Format Checks): Clarify.
35035 2019-01-14  Richard Biener  <rguenther@suse.de>
35037         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
35038         whether we are in (simplify ...) or (match ...) context.
35040 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
35042         PR rtl-optimization/88796
35043         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
35044         * cfgexpand.c (stack_protect_prologue): Initialize
35045         crtl->stack_protect_guard_decl.
35046         * function.c (stack_protect_epilogue): Use it instead of calling
35047         targetm.stack_protect_guard again.
35048         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
35049         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
35050         crtl->stack_protect_guard_decl.
35051         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
35052         on the returned MEM_EXPR.
35054 2019-01-12  Tom de Vries  <tdevries@suse.de>
35056         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
35057         vector length using -fopenacc-dim.
35059 2019-01-12  Tom de Vries  <tdevries@suse.de>
35061         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
35062         lengths into account.
35064 2019-01-12  Svante Signell  <svante.signell@gmail.com>
35066         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
35067         (TARGET_CAN_SPLIT_STACK): Define.
35068         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
35070 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35072         * params.def (inline-unit-growth): Set to 40.
35074 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
35076         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
35078 2019-01-12  Tom de Vries  <tdevries@suse.de>
35080         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
35081         region calling vector-partitionable routine, set default_vector_length
35082         to WARP_SIZE.
35084 2019-01-12  Tom de Vries  <tdevries@suse.de>
35086         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
35087         variable default_vector_length.
35089 2019-01-12  Tom de Vries  <tdevries@suse.de>
35091         PR middle-end/88703
35092         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
35093         from oacc_default_dims, as oacc_validate_dims would do it, and apply
35094         dimensions limits.
35096 2019-01-12  Tom de Vries  <tdevries@suse.de>
35098         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
35099         (nvptx_goacc_validate_dims): Add used parameter.
35100         * doc/tm.texi: Regenerate.
35101         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
35102         argument to call to targetm.goacc.validate_dims.
35103         (default_goacc_validate_dims): Add used
35104         parameter.
35105         * target.def (validate_dims): Add used parameter in DEFHOOK.
35106         * targhooks.h (default_goacc_validate_dims): Add used parameter.
35108 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35110         PR middle-end/85956
35111         PR lto/88733
35112         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
35113         field.
35114         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
35115         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
35116         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
35117         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
35119 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
35121         PR rtl-optimization/87305
35122         * lra-assigns.c
35123         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
35124         for little endian pseudos used as paradoxical subreg.
35126 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35128         PR tree-optimization/88693
35129         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
35130         for STRING_CSTs that don't contain any NUL characters in the first
35131         TREE_STRING_LENGTH bytes.
35133 2019-01-11  Alan Modra  <amodra@gmail.com>
35135         PR 88777
35136         PR 88614
35137         * genattrtab.c (min_fn): Don't translate values.
35138         (min_attr_value): Return INT_MAX when the value can't be calculated.
35139         Return minimum among any values that can be calculated.
35140         (max_attr_value): Adjust.
35142 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35144         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
35146 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35148         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35149         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
35150         (aarch64_return_call_with_max_clobbers): New function.
35151         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
35152         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
35153         argument.
35154         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
35155         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
35156         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
35157         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
35158         * cselib.c (cselib_process_insn): Add argument to
35159         targetm.hard_regno_call_part_clobbered call.
35160         * ira-conflicts.c (ira_build_conflicts): Ditto.
35161         * ira-costs.c (ira_tune_allocno_costs): Ditto.
35162         * lra-constraints.c (inherit_reload_reg): Ditto.
35163         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
35164         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
35165         argument.  Call targetm.return_call_with_max_clobbers.
35166         Add argument to targetm.hard_regno_call_part_clobbered call.
35167         (calls_have_same_clobbers_p): New function.
35168         (process_bb_lives): Add call_insn and last_call_insn variables.
35169         Pass call_insn to check_pseudos_live_through_calls.
35170         Modify if stmt to check targetm.return_call_with_max_clobbers.
35171         Update setting of flush variable.
35172         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
35173         to false.
35174         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
35175         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
35176         targetm.hard_regno_call_part_clobbered call.
35177         * reginfo.c (choose_hard_reg_mode): Ditto.
35178         * regrename.c (check_new_reg_p): Ditto.
35179         * reload.c (find_equiv_reg): Ditto.
35180         * reload1.c (emit_reload_insns): Ditto.
35181         * sched-deps.c (deps_analyze_insn): Ditto.
35182         * sel-sched.c (init_regs_for_mode): Ditto.
35183         (mark_unavailable_hard_regs): Ditto.
35184         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
35185         * target.def (hard_regno_call_part_clobbered): Add insn argument.
35186         (return_call_with_max_clobbers): New target function.
35187         * doc/tm.texi: Regenerate.
35188         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
35189         * hooks.c (hook_bool_uint_mode_false): Change to
35190         hook_bool_insn_uint_mode_false.
35191         * hooks.h (hook_bool_uint_mode_false): Ditto.
35193 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35195         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35196         (aarch64_remove_extra_call_preserved_regs): New function.
35197         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
35198         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
35199         * doc/tm.texi: Regenerate.
35200         * final.c (get_call_reg_set_usage): Call new hook.
35201         * target.def (remove_extra_call_preserved_regs): New hook.
35202         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
35203         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
35205 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35207         PR bootstrap/88714
35208         * passes.c (finish_optimization_passes): Call print_combine_total_stats
35209         inside of pass_combine_1 dump rather than pass_profile_1.
35211 2019-01-11  Tom de Vries  <tdevries@suse.de>
35213         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
35214         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
35215         (PTX_NUM_PER_WORKER_BARRIERS): Define.
35216         (nvptx_apply_dim_limits): Prevent vector_length 64 and
35217         num_workers 16.
35219 2019-01-11  Tom de Vries  <tdevries@suse.de>
35221         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
35223 2019-01-11  Jan Beulich  <jbeulich@suse.com>
35225         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
35226         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
35227         sse2_cvtsi2sd): Add {l}.
35228         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
35229         syntax.
35231 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35233         PR target/88785
35234         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
35235         define_expand.
35236         (*float<floatunssuffix>v2div2sf2): New define_insn.
35237         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
35238         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
35239         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
35240         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
35241         match_operands with "const0_operand" "C".
35243 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35245         * config/aarch64/aarch64-builtins.c
35246         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
35247         (aarch64_init_simd_builtins): ...Here
35249 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35251         PR rtl-optimization/87305
35252         * lra-assigns.c
35253         (setup_live_pseudos_and_spill_after_risky_transforms): Check
35254         allocation for big endian pseudos used as paradoxical subregs and
35255         spill them if it is wrong.
35256         * lra-constraints.c (lra_constraints): Add a comment.
35258 2019-01-10  Richard Biener  <rguenther@suse.de>
35260         PR tree-optimization/88792
35261         * tree-ssa-pre.c (get_representative_for): Do not return a
35262         value-number here.
35264 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35266         PR middle-end/84877
35267         PR bootstrap/88450
35268         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
35269         (assign_parm_setup_block): Do the argument slot realignment here
35270         instead.
35272 2019-01-10  Stefan Agner  <stefan@agner.ch>
35274         PR target/88648
35275         * config/arm/arm.c (arm_option_override_internal): Force
35276         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
35278 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35280         PR c/88568
35281         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
35282         DECL_EXTERNAL.
35284 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35286         * config/arm/arm-builtins.c
35287         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35288         (MAC_LANE_PAIR_QUALIFIERS): New.
35289         (arm_expand_builtin_args): Use it.
35290         (arm_expand_builtin_1): Likewise.
35291         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35292         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35293         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35294         * config/arm/arm_neon.h:
35295         (vcadd_rot90_f16): New.
35296         (vcaddq_rot90_f16): New.
35297         (vcadd_rot270_f16): New.
35298         (vcaddq_rot270_f16): New.
35299         (vcmla_f16): New.
35300         (vcmlaq_f16): New.
35301         (vcmla_lane_f16): New.
35302         (vcmla_laneq_f16): New.
35303         (vcmlaq_lane_f16): New.
35304         (vcmlaq_laneq_f16): New.
35305         (vcmla_rot90_f16): New.
35306         (vcmlaq_rot90_f16): New.
35307         (vcmla_rot90_lane_f16): New.
35308         (vcmla_rot90_laneq_f16): New.
35309         (vcmlaq_rot90_lane_f16): New.
35310         (vcmlaq_rot90_laneq_f16): New.
35311         (vcmla_rot180_f16): New.
35312         (vcmlaq_rot180_f16): New.
35313         (vcmla_rot180_lane_f16): New.
35314         (vcmla_rot180_laneq_f16): New.
35315         (vcmlaq_rot180_lane_f16): New.
35316         (vcmlaq_rot180_laneq_f16): New.
35317         (vcmla_rot270_f16): New.
35318         (vcmlaq_rot270_f16): New.
35319         (vcmla_rot270_lane_f16): New.
35320         (vcmla_rot270_laneq_f16): New.
35321         (vcmlaq_rot270_lane_f16): New.
35322         (vcmlaq_rot270_laneq_f16): New.
35323         (vcadd_rot90_f32): New.
35324         (vcaddq_rot90_f32): New.
35325         (vcadd_rot270_f32): New.
35326         (vcaddq_rot270_f32): New.
35327         (vcmla_f32): New.
35328         (vcmlaq_f32): New.
35329         (vcmla_lane_f32): New.
35330         (vcmla_laneq_f32): New.
35331         (vcmlaq_lane_f32): New.
35332         (vcmlaq_laneq_f32): New.
35333         (vcmla_rot90_f32): New.
35334         (vcmlaq_rot90_f32): New.
35335         (vcmla_rot90_lane_f32): New.
35336         (vcmla_rot90_laneq_f32): New.
35337         (vcmlaq_rot90_lane_f32): New.
35338         (vcmlaq_rot90_laneq_f32): New.
35339         (vcmla_rot180_f32): New.
35340         (vcmlaq_rot180_f32): New.
35341         (vcmla_rot180_lane_f32): New.
35342         (vcmla_rot180_laneq_f32): New.
35343         (vcmlaq_rot180_lane_f32): New.
35344         (vcmlaq_rot180_laneq_f32): New.
35345         (vcmla_rot270_f32): New.
35346         (vcmlaq_rot270_f32): New.
35347         (vcmla_rot270_lane_f32): New.
35348         (vcmla_rot270_laneq_f32): New.
35349         (vcmlaq_rot270_lane_f32): New.
35350         (vcmlaq_rot270_laneq_f32): New.
35351         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35352         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35353         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35354         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35355         vcmlaq_lane270): New.
35356         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35357         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35358         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35359         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35360         (arm_option_reconfigure_globals): Use them.
35361         * config/arm/iterators.md (VDF, VQ_HSF): New.
35362         (VCADD, VCMLA): New.
35363         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35364         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35365         New.
35366         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35367         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35369 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35371         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35372         Add qualifier_lane_pair_index.
35373         (emit-rtl.h): Include.
35374         (TYPES_QUADOP_LANE_PAIR): New.
35375         (aarch64_simd_expand_args): Use it.
35376         (aarch64_simd_expand_builtin): Likewise.
35377         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35378         New.
35379         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35380         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35381         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35382         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35383         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35384         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35385         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35386         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35387         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35388         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35389         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35390         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35391         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35392         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35393         Add __ARM_FEATURE_COMPLEX.
35394         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35395         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35396         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35397         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35398         fcmlaq_lane270): New.
35399         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35400         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35401         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35402         * config/aarch64/arm_neon.h:
35403         (vcadd_rot90_f16): New.
35404         (vcaddq_rot90_f16): New.
35405         (vcadd_rot270_f16): New.
35406         (vcaddq_rot270_f16): New.
35407         (vcmla_f16): New.
35408         (vcmlaq_f16): New.
35409         (vcmla_lane_f16): New.
35410         (vcmla_laneq_f16): New.
35411         (vcmlaq_lane_f16): New.
35412         (vcmlaq_rot90_lane_f16): New.
35413         (vcmla_rot90_laneq_f16): New.
35414         (vcmla_rot90_lane_f16): New.
35415         (vcmlaq_rot90_f16): New.
35416         (vcmla_rot90_f16): New.
35417         (vcmlaq_laneq_f16): New.
35418         (vcmla_rot180_laneq_f16): New.
35419         (vcmla_rot180_lane_f16): New.
35420         (vcmlaq_rot180_f16): New.
35421         (vcmla_rot180_f16): New.
35422         (vcmlaq_rot90_laneq_f16): New.
35423         (vcmlaq_rot270_laneq_f16): New.
35424         (vcmlaq_rot270_lane_f16): New.
35425         (vcmla_rot270_laneq_f16): New.
35426         (vcmlaq_rot270_f16): New.
35427         (vcmla_rot270_f16): New.
35428         (vcmlaq_rot180_laneq_f16): New.
35429         (vcmlaq_rot180_lane_f16): New.
35430         (vcmla_rot270_lane_f16): New.
35431         (vcadd_rot90_f32): New.
35432         (vcaddq_rot90_f32): New.
35433         (vcaddq_rot90_f64): New.
35434         (vcadd_rot270_f32): New.
35435         (vcaddq_rot270_f32): New.
35436         (vcaddq_rot270_f64): New.
35437         (vcmla_f32): New.
35438         (vcmlaq_f32): New.
35439         (vcmlaq_f64): New.
35440         (vcmla_lane_f32): New.
35441         (vcmla_laneq_f32): New.
35442         (vcmlaq_lane_f32): New.
35443         (vcmlaq_laneq_f32): New.
35444         (vcmla_rot90_f32): New.
35445         (vcmlaq_rot90_f32): New.
35446         (vcmlaq_rot90_f64): New.
35447         (vcmla_rot90_lane_f32): New.
35448         (vcmla_rot90_laneq_f32): New.
35449         (vcmlaq_rot90_lane_f32): New.
35450         (vcmlaq_rot90_laneq_f32): New.
35451         (vcmla_rot180_f32): New.
35452         (vcmlaq_rot180_f32): New.
35453         (vcmlaq_rot180_f64): New.
35454         (vcmla_rot180_lane_f32): New.
35455         (vcmla_rot180_laneq_f32): New.
35456         (vcmlaq_rot180_lane_f32): New.
35457         (vcmlaq_rot180_laneq_f32): New.
35458         (vcmla_rot270_f32): New.
35459         (vcmlaq_rot270_f32): New.
35460         (vcmlaq_rot270_f64): New.
35461         (vcmla_rot270_lane_f32): New.
35462         (vcmla_rot270_laneq_f32): New.
35463         (vcmlaq_rot270_lane_f32): New.
35464         (vcmlaq_rot270_laneq_f32): New.
35465         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35466         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35467         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35468         (FCADD, FCMLA): New.
35469         (rot): New.
35470         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35472 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35474         PR other/16615
35476         * config/pa/pa.c: Change "can not" to "cannot".
35477         * gimple-ssa-evrp-analyze.c: Likewise.
35478         * ipa-icf.c: Likewise.
35479         * ipa-polymorphic-call.c: Likewise.
35480         * ipa-pure-const.c: Likewise.
35481         * lra-constraints.c: Likewise.
35482         * lra-remat.c: Likewise.
35483         * reload1.c: Likewise.
35484         * reorg.c: Likewise.
35485         * tree-ssa-uninit.c: Likewise.
35487 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35489         PR other/16615
35491         * Makefile.in: Mechanically replace "can not" with "cannot".
35492         * alias.c: Likewise.
35493         * builtins.c: Likewise.
35494         * calls.c: Likewise.
35495         * cgraph.c: Likewise.
35496         * cgraph.h: Likewise.
35497         * cgraphclones.c: Likewise.
35498         * cgraphunit.c: Likewise.
35499         * combine-stack-adj.c: Likewise.
35500         * combine.c: Likewise.
35501         * common/config/i386/i386-common.c: Likewise.
35502         * config/aarch64/aarch64.c: Likewise.
35503         * config/alpha/sync.md: Likewise.
35504         * config/arc/arc.c: Likewise.
35505         * config/arc/predicates.md: Likewise.
35506         * config/arm/arm-c.c: Likewise.
35507         * config/arm/arm.c: Likewise.
35508         * config/arm/arm.h: Likewise.
35509         * config/arm/arm.md: Likewise.
35510         * config/arm/cortex-r4f.md: Likewise.
35511         * config/csky/csky.c: Likewise.
35512         * config/csky/csky.h: Likewise.
35513         * config/darwin-f.c: Likewise.
35514         * config/epiphany/epiphany.md: Likewise.
35515         * config/i386/i386.c: Likewise.
35516         * config/i386/sol2.h: Likewise.
35517         * config/m68k/m68k.c: Likewise.
35518         * config/mcore/mcore.h: Likewise.
35519         * config/microblaze/microblaze.md: Likewise.
35520         * config/mips/20kc.md: Likewise.
35521         * config/mips/sb1.md: Likewise.
35522         * config/nds32/nds32.c: Likewise.
35523         * config/nds32/predicates.md: Likewise.
35524         * config/pa/pa.c: Likewise.
35525         * config/rs6000/e300c2c3.md: Likewise.
35526         * config/rs6000/rs6000.c: Likewise.
35527         * config/s390/s390.h: Likewise.
35528         * config/sh/sh.c: Likewise.
35529         * config/sh/sh.md: Likewise.
35530         * config/spu/vmx2spu.h: Likewise.
35531         * cprop.c: Likewise.
35532         * dbxout.c: Likewise.
35533         * df-scan.c: Likewise.
35534         * doc/cfg.texi: Likewise.
35535         * doc/extend.texi: Likewise.
35536         * doc/fragments.texi: Likewise.
35537         * doc/gty.texi: Likewise.
35538         * doc/invoke.texi: Likewise.
35539         * doc/lto.texi: Likewise.
35540         * doc/md.texi: Likewise.
35541         * doc/objc.texi: Likewise.
35542         * doc/rtl.texi: Likewise.
35543         * doc/tm.texi: Likewise.
35544         * dse.c: Likewise.
35545         * emit-rtl.c: Likewise.
35546         * emit-rtl.h: Likewise.
35547         * except.c: Likewise.
35548         * expmed.c: Likewise.
35549         * expr.c: Likewise.
35550         * fold-const.c: Likewise.
35551         * genautomata.c: Likewise.
35552         * gimple-fold.c: Likewise.
35553         * hard-reg-set.h: Likewise.
35554         * ifcvt.c: Likewise.
35555         * ipa-comdats.c: Likewise.
35556         * ipa-cp.c: Likewise.
35557         * ipa-devirt.c: Likewise.
35558         * ipa-fnsummary.c: Likewise.
35559         * ipa-icf.c: Likewise.
35560         * ipa-inline-transform.c: Likewise.
35561         * ipa-inline.c: Likewise.
35562         * ipa-polymorphic-call.c: Likewise.
35563         * ipa-profile.c: Likewise.
35564         * ipa-prop.c: Likewise.
35565         * ipa-pure-const.c: Likewise.
35566         * ipa-reference.c: Likewise.
35567         * ipa-split.c: Likewise.
35568         * ipa-visibility.c: Likewise.
35569         * ipa.c: Likewise.
35570         * ira-build.c: Likewise.
35571         * ira-color.c: Likewise.
35572         * ira-conflicts.c: Likewise.
35573         * ira-costs.c: Likewise.
35574         * ira-int.h: Likewise.
35575         * ira-lives.c: Likewise.
35576         * ira.c: Likewise.
35577         * ira.h: Likewise.
35578         * loop-invariant.c: Likewise.
35579         * loop-unroll.c: Likewise.
35580         * lower-subreg.c: Likewise.
35581         * lra-assigns.c: Likewise.
35582         * lra-constraints.c: Likewise.
35583         * lra-eliminations.c: Likewise.
35584         * lra-lives.c: Likewise.
35585         * lra-remat.c: Likewise.
35586         * lra-spills.c: Likewise.
35587         * lra.c: Likewise.
35588         * lto-cgraph.c: Likewise.
35589         * lto-streamer-out.c: Likewise.
35590         * postreload-gcse.c: Likewise.
35591         * predict.c: Likewise.
35592         * profile-count.h: Likewise.
35593         * profile.c: Likewise.
35594         * recog.c: Likewise.
35595         * ree.c: Likewise.
35596         * reload.c: Likewise.
35597         * reload1.c: Likewise.
35598         * reorg.c: Likewise.
35599         * resource.c: Likewise.
35600         * rtl.def: Likewise.
35601         * rtl.h: Likewise.
35602         * rtlanal.c: Likewise.
35603         * sched-deps.c: Likewise.
35604         * sched-ebb.c: Likewise.
35605         * sched-rgn.c: Likewise.
35606         * sel-sched-ir.c: Likewise.
35607         * sel-sched.c: Likewise.
35608         * shrink-wrap.c: Likewise.
35609         * simplify-rtx.c: Likewise.
35610         * symtab.c: Likewise.
35611         * target.def: Likewise.
35612         * toplev.c: Likewise.
35613         * tree-call-cdce.c: Likewise.
35614         * tree-cfg.c: Likewise.
35615         * tree-complex.c: Likewise.
35616         * tree-core.h: Likewise.
35617         * tree-eh.c: Likewise.
35618         * tree-inline.c: Likewise.
35619         * tree-loop-distribution.c: Likewise.
35620         * tree-nrv.c: Likewise.
35621         * tree-profile.c: Likewise.
35622         * tree-sra.c: Likewise.
35623         * tree-ssa-alias.c: Likewise.
35624         * tree-ssa-dce.c: Likewise.
35625         * tree-ssa-dom.c: Likewise.
35626         * tree-ssa-forwprop.c: Likewise.
35627         * tree-ssa-loop-im.c: Likewise.
35628         * tree-ssa-loop-ivcanon.c: Likewise.
35629         * tree-ssa-loop-ivopts.c: Likewise.
35630         * tree-ssa-loop-niter.c: Likewise.
35631         * tree-ssa-phionlycprop.c: Likewise.
35632         * tree-ssa-phiopt.c: Likewise.
35633         * tree-ssa-propagate.c: Likewise.
35634         * tree-ssa-threadedge.c: Likewise.
35635         * tree-ssa-threadupdate.c: Likewise.
35636         * tree-ssa-uninit.c: Likewise.
35637         * tree-ssanames.c: Likewise.
35638         * tree-streamer-out.c: Likewise.
35639         * tree.c: Likewise.
35640         * tree.h: Likewise.
35641         * vr-values.c: Likewise.
35643 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
35645         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35646         (ix86_split_xorsign): Ditto.
35647         * config/i386/i386.c (ix86_expand_xorsign): New function.
35648         (ix86_split_xorsign): Ditto.
35649         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35650         (xorsign<mode>3): New expander.
35651         (xorsign<mode>3_1): New insn_and_split pattern.
35652         * config/i386/sse.md (xorsign<mode>3): New expander.
35654 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35656         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35657         (*tablejump_sp64): Likewise.
35658         (*tablejump<P:mode>): ...this.
35659         (*call_address_sp32): Merge into...
35660         (*call_address_sp64): Likewise.
35661         (*call_address<P:mode>): ...this.
35662         (*call_symbolic_sp32): Merge into...
35663         (*call_symbolic_sp64): Likewise.
35664         (*call_symbolic<P:mode>): ...this.
35665         (call_value): Remove constraint and add predicate.
35666         (*call_value_address_sp32): Merge into...
35667         (*call_value_address_sp64): Likewise.
35668         (*call_value_address<P:mode>): ...this.
35669         (*call_value_symbolic_sp32): Merge into...
35670         (*call_value_symbolic_sp64): Likewise.
35671         (*call_value_symbolic<P:mode>): ...this.
35672         (*sibcall_symbolic_sp32): Merge into...
35673         (*sibcall_symbolic_sp64): Likewise.
35674         (*sibcall_symbolic<P:mode>): ...this.
35675         (sibcall_value): Remove constraint and add predicate.
35676         (*sibcall_value_symbolic_sp32): Merge into...
35677         (*sibcall_value_symbolic_sp64): Likewise.
35678         (*sibcall_value_symbolic<P:mode>): ...this.
35679         (window_save): Minor tweak.
35680         (*branch_sp32): Merge into...
35681         (*branch_sp64): Likewise.
35682         (*branch<P:mode>): ...this.
35684 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35685             James Clarke  <jrtc27@jrtc27.com>
35687         PR target/84010
35688         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35689         consistently in TLS address generation and adjust code to the renaming
35690         of patterns.  Mark calls to __tls_get_addr as const.
35691         * config/sparc/sparc.md (tgd_hi22): Turn into...
35692         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35693         (tgd_lo10): Turn into...
35694         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35695         (tgd_add32): Merge into...
35696         (tgd_add64): Likewise.
35697         (tgd_add<P:mode>): ...this and use Pmode throughout.
35698         (tldm_hi22): Turn into...
35699         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35700         (tldm_lo10): Turn into...
35701         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35702         (tldm_add32): Merge into...
35703         (tldm_add64): Likewise.
35704         (tldm_add<P:mode>): ...this and use Pmode throughout.
35705         (tldm_call32): Merge into...
35706         (tldm_call64): Likewise.
35707         (tldm_call<P:mode>): ...this and use Pmode throughout.
35708         (tldo_hix22): Turn into...
35709         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35710         (tldo_lox10): Turn into...
35711         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35712         (tldo_add32): Merge into...
35713         (tldo_add64): Likewise.
35714         (tldo_add<P:mode>): ...this and use Pmode throughout.
35715         (tie_hi22): Turn into...
35716         (tie_hi22<P:mode>): ...this and use Pmode throughout.
35717         (tie_lo10): Turn into...
35718         (tie_lo10<P:mode>): ...this and use Pmode throughout.
35719         (tie_ld64): Use DImode throughout.
35720         (tie_add32): Merge into...
35721         (tie_add64): Likewise.
35722         (tie_add<P:mode>): ...this and use Pmode throughout.
35723         (tle_hix22_sp32): Merge into...
35724         (tle_hix22_sp64): Likewise.
35725         (tle_hix22<P:mode>): ...this and use Pmode throughout.
35726         (tle_lox22_sp32): Merge into...
35727         (tle_lox22_sp64): Likewise.
35728         (tle_lox22<P:mode>): ...this and use Pmode throughout.
35729         (*tldo_ldub_sp32): Merge into...
35730         (*tldo_ldub_sp64): Likewise.
35731         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35732         (*tldo_ldub1_sp32): Merge into...
35733         (*tldo_ldub1_sp64): Likewise.
35734         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35735         (*tldo_ldub2_sp32): Merge into...
35736         (*tldo_ldub2_sp64): Likewise.
35737         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35738         (*tldo_ldsb1_sp32): Merge into...
35739         (*tldo_ldsb1_sp64): Likewise.
35740         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35741         (*tldo_ldsb2_sp32): Merge into...
35742         (*tldo_ldsb2_sp64): Likewise.
35743         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35744         (*tldo_ldub3_sp64): Use DImode throughout.
35745         (*tldo_ldsb3_sp64): Likewise.
35746         (*tldo_lduh_sp32): Merge into...
35747         (*tldo_lduh_sp64): Likewise.
35748         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35749         (*tldo_lduh1_sp32): Merge into...
35750         (*tldo_lduh1_sp64): Likewise.
35751         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35752         (*tldo_ldsh1_sp32): Merge into...
35753         (*tldo_ldsh1_sp64): Likewise.
35754         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35755         (*tldo_lduh2_sp64): Use DImode throughout.
35756         (*tldo_ldsh2_sp64): Likewise.
35757         (*tldo_lduw_sp32): Merge into...
35758         (*tldo_lduw_sp64): Likewise.
35759         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35760         (*tldo_lduw1_sp64): Use DImode throughout.
35761         (*tldo_ldsw1_sp64): Likewise.
35762         (*tldo_ldx_sp64): Likewise.
35763         (*tldo_stb_sp32): Merge into...
35764         (*tldo_stb_sp64): Likewise.
35765         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35766         (*tldo_sth_sp32): Merge into...
35767         (*tldo_sth_sp64): Likewise.
35768         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35769         (*tldo_stw_sp32): Merge into...
35770         (*tldo_stw_sp64): Likewise.
35771         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35772         (*tldo_stx_sp64): Use DImode throughout.
35774 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35776         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35777         check configure option to set BTI and Return Address Signing.
35778         * configure.ac: Add --enable-standard-branch-protection and
35779         --disable-standard-branch-protection.
35780         * configure: Regenerated.
35781         * doc/install.texi: Document the same.
35783 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35784             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35786         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35787         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35788         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35789         if bti is enabled.
35790         * config/aarch64/aarch64-bti-insert.c: New file.
35791         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35792         pass.
35793         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35794         new bti pass.
35795         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35796         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35797         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35798         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35800 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35802         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35803         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35804         Disable bti for -mbranch-protection=none.
35805         (aarch64_handle_standard_branch_protection): Enable bti for
35806         -mbranch-protection=standard.
35807         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35808         -mbranch-protection.
35809         (aarch64_bti_enabled): Check if bti is enabled.
35810         * config/aarch64/aarch64.opt: Declare target variable.
35811         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35813 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35815         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35816         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35817         (aarch64_expand_epilogue): Likewise.
35818         (aarch64_output_mi_thunk): Likewise.
35819         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35820         TAILCALL_ADDR_REGS to x16 and x17.
35821         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35823 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35825         * config/aarch64/aarch64-option-extensions.def: Define
35826         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35827         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35828         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35829         (AARCH64_FL_PREDRES): New.
35830         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35831         AARCH64_FL_PREDRES by default.
35832         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35834 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35836         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35837         ARMv8.5-A.
35838         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35839         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35840         * doc/invoke.texi: Document ARMv8.5-A.
35842 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
35844         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35845         (xorsign<mode>3): Likewise.
35847 2019-01-09  Jelinek  <jakub@redhat.com>
35849         PR middle-end/88758
35850         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35851         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35853         PR rtl-optimization/88331
35854         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35855         not currently_expanding_to_rtl.
35857 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35859         * doc/invoke.texi (-Os): Remove trailing spaces.
35860         (-finline-functions): Remove reference to -O2.
35862 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
35864         PR rtl-optimization/79593
35865         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35867         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35868         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
35870 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35872         PR bootstrap/88721
35873         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35874         to -1 on entry.
35876         PR debug/88723
35877         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35878         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35880 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
35882         PR target/88717
35883         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35884         ix86_avx_u128_mode_entry.
35886 2019-01-08  Martin Liska  <mliska@suse.cz>
35888         PR tree-optimization/88753
35889         * tree-switch-conversion.c (switch_conversion::build_one_array):
35890         Come up with local variable constructor.  Convert first to
35891         type of constructor values.
35893 2019-01-08  Richard Biener  <rguenther@suse.de>
35895         PR tree-optimization/86554
35896         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35897         rpo_avail): Move earlier.
35898         (visit_nary_op): When value-numbering to expressions
35899         with different overflow behavior make sure there's an
35900         available expression on the path.
35902 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
35904         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35905         aarch64_parse_branch_protection,
35906         struct aarch64_branch_protect_type,
35907         aarch64_handle_no_branch_protection,
35908         aarch64_handle_standard_branch_protection,
35909         aarch64_validate_mbranch_protection,
35910         aarch64_handle_pac_ret_protection,
35911         aarch64_handle_attr_branch_protection,
35912         accepted_branch_protection_string,
35913         aarch64_pac_ret_subtypes,
35914         aarch64_branch_protect_types,
35915         aarch64_handle_pac_ret_leaf): Define.
35916         (aarch64_override_options_after_change_1, aarch64_override_options):
35917         Add check for accepted_branch_protection_string.
35918         (aarch64_option_save): Save accepted_branch_protection_string.
35919         (aarch64_option_restore): Save accepted_branch_protection_string.
35920         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35921         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35922         msign-return-address.
35923         * doc/invoke.texi: Add mbranch-protection.
35925 2019-01-08  Alan Modra  <amodra@gmail.com>
35927         PR target/88614
35928         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35929         Delete "unknownp" parameter.  Adjust callers.  Handle
35930         CONST_INT, PLUS, MINUS, and MULT.
35931         (attr_value_aligned): Renamed from or_attr_value.
35932         (min_attr_value): Return INT_MIN for unhandled rtl case..
35933         (min_fn): ..and translate to INT_MAX here.
35934         (write_length_unit_log): Modify to cope without "unknown".
35935         (write_attr_value): Handle IF_THEN_ELSE.
35937 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35939         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35940         optimization for masked stores.
35942 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35944         PR middle-end/88567
35945         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35946         output vector directly to duplicate_and_interleave instead of
35947         going through a temporary.  Postpone insertion of ctor_seq to
35948         the end of the loop.
35950 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
35952         PR target/86891
35953         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35954         unsigned_p.  Handle signed and unsigned overflow correction as
35955         required.
35956         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35957         prototype.
35958         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35959         for operand 2.
35960         (add<mode>3_compareV_imm): Make this callable for expanding.
35961         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
35962         aarch64_plus_operand for operand 2.
35963         (subv<GPI:mode>_insn): New insn pattern.
35964         (subv<GPI:mode>_imm): Likewise.
35965         (negv<GPI:mode>3): New expand pattern.
35966         (negv<GPI:mode>_insn): New insn pattern.
35967         (negv<GPI:mode>_cmp_only): Likewise.
35968         (cmpv<GPI:mode>_insn): Likewise.
35969         (subvti4): Use register_operand for operand 1.  Update call to
35970         aarch64_expand_subvti.
35971         (usubvti4): Likewise.
35972         (negvti3): New expand pattern.
35973         (negdi_carryout): New insn pattern.
35974         (negvdi_carryinV): New insn pattern.
35975         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35976         version the named version.
35977         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35978         operands.
35979         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35980         patterns.
35981         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35982         patterns.
35983         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35984         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35985         (sub<mode>3_carryinCV): Delete.
35986         (sub<GPI:mode>3_carryinV): New expand pattern.
35987         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35989 2019-01-07  Richard Biener  <rguenther@suse.de>
35991         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35992         of tree_operand_hash.
35994 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35996         PR tree-optimization/88598
35997         * tree.h (single_nonzero_element): Declare.
35998         * tree.c (single_nonzero_element): New function.
35999         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
36000         if I is the only nonzero element of CST.
36002 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36004         PR tree-optimization/88598
36005         * tree.h (initializer_each_zero_or_onep): Declare.
36006         * tree.c (initializer_each_zero_or_onep): New function.
36007         (signed_or_unsigned_type_for): Handle float types too.
36008         (unsigned_type_for, signed_type_for): Update comments accordingly.
36009         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
36010         x & { 0 or -1, 0 or -1, ... }.
36012 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
36014         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
36015         with x86_64-pc-linux-gnu.
36017 2019-01-07  Tom de Vries  <tdevries@suse.de>
36019         PR target/85486
36020         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
36021         function.
36022         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
36023         routines.
36025 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
36027         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
36028         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
36029         TARGET_AVX512F as condition.
36031         PR debug/88723
36032         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
36033         const_not_ok_for_debug_p target hook.
36034         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
36035         on UNSPEC and subexpressions thereof if all subexpressions of the
36036         UNSPEC are CONSTANT_P.
36038         PR tree-optimization/88676
36039         * tree-ssa-phiopt.c (two_value_replacement): New function.
36040         (tree_ssa_phiopt_worker): Call it.
36042         PR sanitizer/88619
36043         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
36044         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
36046         PR c++/85052
36047         * tree-vect-generic.c: Include insn-config.h and recog.h.
36048         (expand_vector_piecewise): Add defaulted ret_type argument,
36049         if non-NULL, use that in preference to type for the result type.
36050         (expand_vector_parallel): Formatting fix.
36051         (do_vec_conversion, do_vec_narrowing_conversion,
36052         expand_vector_conversion): New functions.
36053         (expand_vector_operations_1): Call expand_vector_conversion
36054         for VEC_CONVERT ifn calls.
36055         * internal-fn.def (VEC_CONVERT): New internal function.
36056         * internal-fn.c (expand_VEC_CONVERT): New function.
36057         * fold-const-call.c (fold_const_vec_convert): New function.
36058         (fold_const_call): Use it for CFN_VEC_CONVERT.
36059         * doc/extend.texi (__builtin_convertvector): Document.
36061 2019-01-07  Tom de Vries  <tdevries@suse.de>
36063         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
36064         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
36065         vector_red_partition, vector_red_sym): New global variables.
36066         (nvptx_option_override): Initialize vector_red_sym.
36067         (nvptx_declare_function_name): Restore red_partition register.
36068         (nvptx_file_end): Emit code to declare the vector reduction variables.
36069         (nvptx_output_red_partition): New function.
36070         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
36071         large vector reductions.
36072         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
36073         (nvptx_init_builtins): Add VECTOR_ADDR.
36074         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
36075         Handle nvptx_expand_shared_addr.
36076         (nvptx_get_shared_red_addr): Add vector argument and handle large
36077         vectors.
36078         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
36079         large vectors.
36080         (nvptx_goacc_reduction_init): Likewise.
36081         (nvptx_goacc_reduction_fini): Likewise.
36082         (nvptx_goacc_reduction_teardown): Likewise.
36083         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
36084         init,fini,teardown}.
36085         (nvptx_init_axis_predicate): Initialize vector_red_partition.
36086         (nvptx_set_current_function): Init vector_red_partition.
36087         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
36088         (nvptx_red_partition): New insn.
36089         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
36091 2019-01-07  Tom de Vries  <tdevries@suse.de>
36093         PR target/85381
36094         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
36095         empty loops.
36097 2019-01-07  Tom de Vries  <tdevries@suse.de>
36099         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
36100         (nvptx_option_override): Init oacc_bcast_partition.
36101         (nvptx_init_oacc_workers): New function.
36102         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
36103         (nvptx_needs_shared_bcast): New function.
36104         (nvptx_find_par): Generalize to enable vectors to use shared-memory
36105         to propagate state.
36106         (nvptx_shared_propagate): Initialize vector bcast partition and
36107         synchronization state.
36108         (nvptx_single): Generalize to enable vectors to use shared-memory
36109         to propagate state.
36110         (nvptx_process_pars): Likewise.
36111         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
36112         * config/nvptx/nvptx.h (struct machine_function): Add
36113         bcast_partition and sync_bar members.
36115 2019-01-07  Tom de Vries  <tdevries@suse.de>
36117         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
36118         (nvptx_apply_dim_limits): New function.
36119         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
36120         PTX_WARP_SIZE.
36122 2019-01-07  Tom de Vries  <tdevries@suse.de>
36124         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
36125         as late as possible.
36127 2019-01-07  Tom de Vries  <tdevries@suse.de>
36129         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
36130         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
36131         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
36132         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
36133         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
36135 2019-01-07  Tom de Vries  <tdevries@suse.de>
36137         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
36139 2019-01-07  Tom de Vries  <tdevries@suse.de>
36141         * omp-offload.c (oacc_get_min_dim): New function.
36142         * omp-offload.h (oacc_get_min_dim): Declare.
36144 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
36146         PR target/88521
36147         * config/i386/i386.c (function_value_ms_64): Return small sturct in
36148         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
36150 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36152         PR tree-opt/86020
36153         Revert:
36154         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
36156         * ipa-inline.c (edge_badness): Use inlined_time instead of
36157         inline_summaries->get.
36159 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36161         * opts.c (enable_fdo_optimizations): Enable
36162         version-loops-for-strides, loop-interchange, unrol-and-jam
36163         and tree-loop-distribution.
36164         * invoke.texi: Document newly enabled options.
36166 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36168         * doc/invoke.texi (max-inline-insns-small): New parameters.
36169         * ipa-inline.c (want_early_inline_function_p): simplify.
36170         (want_inline_small_function_p): Fix pasto from previous patch;
36171         use max-inline-insns-small bound.
36172         * params.def (max-inline-insns-small): New param.
36173         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
36174         variables correctly.
36176 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36178         * doc/invoke.texi: Document max-inline-insns-size,
36179         uninlined-function-insns, uninlined-function-time,
36180         uninlined-thunk-insns and uninlined-thunk-time.
36181         * params.def: Add max-inline-insns-size,
36182         uninlined-function-insns, uninlined-function-time,
36183         uninlined-thunk-insns and uninlined-thunk-time.
36184         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
36185         new parameters.
36186         * ipa-inline.c (can_inline_edge_by_limits_p,
36187         want_inline_small_function_p): Use new parameters.
36189 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36191         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
36193 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
36195         PR middle-end/82564
36196         PR target/88620
36197         * expr.c (expand_assignment): For calls returning VLA structures
36198         if to_rtx is not a MEM, force it into a stack temporary.
36200         PR debug/88635
36201         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
36202         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
36203         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
36204         subexpressions of both operands.
36205         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
36206         subrtxes are CONSTANT_P.
36207         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
36208         2018-11-09 changes.
36210 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
36212         * params.def (hot-bb-count-ws-permille): Set to 990.
36214 2019-01-04  Martin Sebor  <msebor@redhat.com>
36216         PR c/88546
36217         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
36218         leaf.
36220 2019-01-04  Martin Sebor  <msebor@redhat.com>
36222         PR c/88363
36223         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
36225 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36227         * gdbinit.in: Turn off pagination for the skip commands, restore
36228         it to previous state afterwards.
36230 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36232         PR target/88594
36233         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
36234         of GET_MODE (opN) as modes of the libcall arguments.
36236 2019-01-04  Jan Beulich  <jbeulich@suse.com>
36238         * config/i386/sse.md
36239         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
36240         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
36241         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36242         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36243         avx512f_vmcmp<mode>3<round_saeonly_name>,
36244         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
36245         avx512f_maskcmp<mode>3,
36246         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36247         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36248         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36249         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36250         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36251         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36252         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36253         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36254         <avx512>_testm<mode>3<mask_scalar_merge_name>,
36255         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
36256         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
36257         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
36258         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
36259         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
36260         avx512cd_maskb_vec_dup<mode>,
36261         avx512cd_maskw_vec_dup<mode>,
36262         avx512dq_fpclass<mode><mask_scalar_merge_name>,
36263         avx512dq_vmfpclass<mode>,
36264         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
36265         instead of =Yk.
36267 2019-01-03  Martin Sebor  <msebor@redhat.com>
36269         PR tree-optimization/88659
36270         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
36272 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
36274         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
36275         unaligned vsx and avoid lxvd2x/stxvd2x.
36276         (gen_lvx_v4si_move): New function.
36278 2019-01-03  Tom de Vries  <tdevries@suse.de>
36280         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
36281         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
36282         function.
36283         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
36285 2019-01-03  Tom de Vries  <tdevries@suse.de>
36287         * config/nvptx/nvptx.c (struct offload_attrs): New.
36288         (populate_offload_attrs): New function.  Factor mask extraction out of
36289         nvptx_reorg.  Add extraction of dimensions.
36290         (nvptx_reorg): Use populate_offload_attrs.
36292 2019-01-03  Tom de Vries  <tdevries@suse.de>
36294         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36295         cases for oacc_min_dims_p and routine_p.  Add asserts for
36296         oacc_default_dims_p and offload_region_p.
36298 2019-01-03  Tom de Vries  <tdevries@suse.de>
36300         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36301         factored out of ...
36302         (nvptx_goacc_validate_dims): ... here.
36304 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36306         PR tree-optimization/85574
36307         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36308         structure.
36309         (struct ssa_equip_hash_traits): Declare.
36310         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36312 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
36314         PR debug/88644
36315         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36316         change it to qualified_type.
36318 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36320         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36321         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36323 2019-01-02  Martin Sebor  <msebor@redhat.com>
36324             Jeff Law  <law@redhat.com>
36326         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36327         (get_range_strlen_tree): Update appropriately.
36328         (get_range_strlen)
36329         * gimple-fold.h (get_range_strlen): Drop unused last argument.
36331         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36332         rather than set_range_info.
36333         * tree-ssa-strlen.c (set_strlen_range): Extracted from
36334         maybe_set_strlen_range.  Handle potentially boundary crossing
36335         cases more conservatively.
36336         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36337         Call set_strlen_range.
36338         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36340         PR middle-end/88663
36341         * gimple-fold.c (get_range_strlen): Update prototype to no longer
36342         need the flexp argument.
36343         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
36344         from calls to get_range_strlen.  Update comments.  Just update
36345         VAL for an unterminated const char array and let the reset of the
36346         code handle it normally.  No longer try to set *flexp.  Adjust
36347         return value.
36348         (get_range_strlen): Update for the new get_range_strlen API.
36349         (get_maxval_strlen): Similarly.
36350         (gimple_fold_builtin_strlen): Handle update meaning of return value
36351         from get_range_strlen.
36352         * gimple-ssa-sprintf.c (get_string_length): Update for the new
36353         get_range_strlen API.
36355 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
36357         PR lto/88130
36358         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36359         false at WPA time when body was removed.
36361 2019-01-02  Martin Liska  <mliska@suse.cz>
36363         PR tree-optimization/88650
36364         * predict.c (set_even_probabilities): Calculate probability
36365         remainer only when really used.
36367 2019-01-02  Richard Biener  <rguenther@suse.de>
36369         PR middle-end/88651
36370         * tree-data-ref.c (analyze_subscript_affine_affine): Use
36371         widest_ints when mangling max_stmt_execution results.
36373 2019-01-02  Richard Biener  <rguenther@suse.de>
36375         PR tree-optimization/88621
36376         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36377         bitfields when canoncalizing.
36379 2019-01-02  Richard Biener  <rguenther@suse.de>
36381         PR target/87545
36382         * config/i386/x86-tune-costs.h (intel_cost): Adjust
36383         cost of cheap SSE instruction.
36385 2019-01-02  Richard Biener  <rguenther@suse.de>
36387         PR ipa/85574
36388         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36389         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36390         function.
36391         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36392         set after UIDs before splitting them.
36394 2019-01-01  Martin Sebor  <msebor@redhat.com>
36395             Jeff Law  <law@redhat.com>
36397         * gimple-fold.c (get_range_strlen_tree): Record if the computed
36398         length is optimistic.  If it is, then arrange to compute the
36399         conservative length as well.
36401         * gimple-fold.h (get_range_strlen): Update prototype.
36402         * builtins.c (check_access): Update call to get_range_strlen to use
36403         c_strlen_data pointer.   Change various variable accesses to instead
36404         pull data from the c_strlen_data structure.
36405         (check_strncat_sizes, expand_builtin_strncat): Likewise.
36406         * calls.c (maybe_warn_nonstring_arg): Likewise.
36407         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
36408         minimum length if maximum lengh is unknown.
36409         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
36410         that used c_strlen, it's no longer needed.  Restructure slightly.
36411         (format_string): Set unlikely range appropriately.
36412         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
36413         formatting issues.
36414         (get_range_strlen): Accept c_strlen_data pointer for external
36415         call sites as well.  Pass through to call to internal get_range_strlen.
36416         Adjust minlen, maxlen and maxbound as needed.
36417         (get_maxval_strlen): Update comments.
36418         (gimple_fold_builtin_strlen): Update call to get_range_strlen
36419         to use c_strlen_data pointer.  Change variable accesses to instead
36420         use c_strlen_data data members.
36422         * gimple-fold.c (get_range_strlen): Update prototype.
36423         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
36424         local variables.  Use pdata to return information to caller.
36425         Update calls to get_range_strlen.  Update pdata->maxbound.
36426         (get_range_strlen -- static version): Similarly.
36427         (get_range_strlen -- extern version): Update for internal
36428         get_range_strlen API change.  Convert to external data format.
36429         (get_maxval_strlen): Similarly.
36431 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
36433         * coverage.c (get_coverage_counts): Use current_function_decl.
36434         * profile.c (read_thunk_profile): New function.
36435         (branch_prob): Add THUNK parameter.
36436         * tree-profile.c (tree_profiling): Handle thunks.
36437         * value-prof.c (init_node_map): Handle thunks.
36438         * value-prof.h (branch_prob): Upate prototype.
36439         (read_thunk_profile): Declare.
36441 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
36443         Update copyright years.
36445         * gcc.c (process_command): Update copyright notice dates.
36446         * gcov-dump.c (print_version): Ditto.
36447         * gcov.c (print_version): Ditto.
36448         * gcov-tool.c (print_version): Ditto.
36449         * gengtype.c (create_file): Ditto.
36450         * doc/cpp.texi: Bump @copying's copyright year.
36451         * doc/cppinternals.texi: Ditto.
36452         * doc/gcc.texi: Ditto.
36453         * doc/gccint.texi: Ditto.
36454         * doc/gcov.texi: Ditto.
36455         * doc/install.texi: Ditto.
36456         * doc/invoke.texi: Ditto.
36458 Copyright (C) 2019 Free Software Foundation, Inc.
36460 Copying and distribution of this file, with or without modification,
36461 are permitted in any medium without royalty provided the copyright
36462 notice and this notice are preserved.