8fa7cc49c3059d9095be1d9b82d19ca1b46aba0b
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2019-12-16  Segher Boessenkool  <segher@kernel.crashing.org>
2
3         * config/rs6000/rs6000.md (movsi_to_cr_one): Use CR0_REGNO instead of
4         hardcoding the (old, expired) register number.
5         (*mtcrfsi): Ditto.
6
7 2019-12-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8
9         * config.gcc: s/msp430*-*-*/msp430-*-*.
10         Handle msp430-*-elfbare.
11         * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define.
12         (_MSPMKSTR): Define.
13         (__MSPMKSTR): Define.
14         (rest_of_devices_path): Use TARGET_SUBDIR value in string.
15         * config/msp430/msp430.c (msp430_option_override): Error if
16         -fuse-cxa-atexit is used when it has been disabled at configure time.
17         * config/msp430/t-msp430: Define TARGET_SUBDIR when building
18         msp430-devices.o.
19         * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare.
20         * doc/invoke.texi: Update documentation about which path devices.csv is
21         searched for.
22
23 2019-12-16  Andreas Krebbel  <krebbel@linux.ibm.com>
24
25         PR target/92950
26         * config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
27         and lhrl with llc.
28
29 2019-12-14  Martin Sebor  <msebor@redhat.com>
30
31         * doc/extend.texi (attribute access): Correct typos.
32
33 2019-12-14  Jakub Jelinek  <jakub@redhat.com>
34
35         PR ipa/92357
36         * ipa-fnsummary.c (ipa_fn_summary_write): Use
37         lto_symtab_encoder_iterator with lsei_start_function_in_partition and
38         lsei_next_function_in_partition instead of walking all cgraph nodes
39         in encoder.
40
41         PR tree-optimization/92930
42         * ipa-pure-const.c (special_builtin_state): Don't handle
43         BUILT_IN_APPLY.  Formatting fixes.
44         (check_call): Formatting fixes.
45
46 2019-12-14  Iain Sandoe  <iain@sandoe.co.uk>
47
48         * config/darwin.h (DARWIN_EXTRA_SPECS): Add new
49         bundle spec. (DARWIN_BUNDLE1_SPEC): New.
50         (STARTFILE_SPEC): Use darwin bundle spec.
51         * config/rs6000/darwin.h (DARWIN_BUNDLE1_SPEC): New.
52         (DARWIN_DYLIB1_SPEC): Delete duplicate.
53
54 2019-12-13  Martin Sebor  <msebor@redhat.com>
55
56         PR middle-end/91582
57         PR middle-end/92868
58         * builtins.c (addr_decl_size): New function.
59         (gimple_call_alloc_size): Add arguments.
60         (compute_objsize): Add an argument.  Set *PDECL even for allocated
61         objects.
62         Correct checking for negative wide_int.
63         Correct handling of negative outer offsets into unknown regions
64         or with unknown inner offsets.
65         Extend offsets to at most sizetype precision.
66         Only handle constant subobject sizes.
67         * builtins.h (gimple_call_alloc_size): Add arguments.
68         * tree.c (component_ref_size): Always return sizetype.
69         * tree-ssa-strlen.c (strinfo::alloc): New member.
70         (get_addr_stridx): Add argument.
71         (get_stridx): Use ptrdiff_t.  Add argument.
72         (new_strinfo): Set new member.
73         (get_string_length): Handle alloca and VLA.
74         (dump_strlen_info): Dump more state.
75         (maybe_invalidate): Print more info.  Decrease indentation.
76         (unshare_strinfo): Set new member.
77         (valid_builtin_call): Handle alloca and VLA.
78         (maybe_warn_overflow): Check and set no-warning bit.  Improve
79         handling of offsets.  Print allocated objects.
80         (handle_builtin_strlen): Handle strinfo records with null lengths.
81         (handle_builtin_strcpy): Add argument.  Call maybe_warn_overflow.
82         (is_strlen_related_p): Handle dynamically allocated objects.
83         (get_range): Add argument.
84         (handle_builtin_malloc): Rename...
85         (handle_alloc): ...to this and handle all allocation functions.
86         (handle_builtin_memset): Call maybe_warn_overflow.
87         (count_nonzero_bytes): Handle more MEM_REF forms.
88         (strlen_check_and_optimize_call): Call handle_alloc_call.  Pass
89         arguments to more callees.
90         (handle_integral_assign): Add argument.  Create strinfo entries
91         for MEM_REF assignments.
92         (check_and_optimize_stmt): Handle more MEM_REF forms.
93
94 2019-12-13  Iain Sandoe  <iain@sandoe.co.uk>
95
96         * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
97
98 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
99
100         * lto-streamer-in.c (input_function): Add node parameter.
101         (lto_read_body_or_constructor): Use it.
102
103 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
104
105         PR rtl-optimization/92591
106         * modulo-sched.c (ps_add_node_check_conflicts): Improve checking
107         for history > 0 case.
108
109 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
110
111         * modulo-sched.c (sms_schedule): Use param_sms_max_ii_factor
112         value instead of macro.  Adjust comment.
113         (sms_schedule_by_order): Use parameter value without macro.
114         * params.opt: Add ranges for modulo scheduler parameters,
115         set param_sms_max_ii_factor = 2 by default.
116
117 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
118
119         PR rtl-optimization/90001
120         * ddg.c (create_ddg): Init max_dist array for each node.
121         (free_ddg): Free max_dist array.
122         (create_ddg_edge): Use bool field instead of aux union.
123         (set_recurrence_length): Use prepared max_dist information instead
124         of calling longest_simple_path.
125         (create_scc): Remove graph argument, fill node's aux.count with
126         SCC id, and move set_recurrence_length call to...
127         (create_ddg_all_sccs): ...here, after filling all max_dist arrays
128         using Floyd–Warshall-like algorithm.
129         (update_dist_to_successors): Remove the whole function.
130         (longest_simple_path): Likewise.
131         * ddg.h (struct ddg_node): Add max_dist pointer.
132         (struct ddg_edge): Use bool field instead of unused aux union.
133
134 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
135
136         * config/gcn/gcn-valu.md (mulv64si3<exec>): Rename to ...
137         (mul<mode>3<exec>): ... this, and implement sub-dword patterns.
138         (mulv64si3_dup<exec>): Rename to ...
139         (mul<mode>3_dup<exec>): ... this, and implement sub-dword patterns.
140
141 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
142
143         * ipa-utils.c (ipa_merge_profiles): Improve dumping; merge common
144         targets.
145
146 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
147
148         * config/gcn/gcn-valu.md (sdwa): New mode attribute.
149         (VCVT_FROM_MODE): Rename to ...
150         (VCVT_MODE): ... this.
151         (VCVT_TO_MODE): Delete mode iterator.
152         (VCVT_FMODE): New mode iterator.
153         (VCVT_IMODE): Likewise.
154         (<cvt_name><VCVT_FROM_MODE:mode><VCVT_TO_MODE:mode>2<exec>): Change ...
155         (<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): ... to this.
156         (<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): New.
157         (zero_convert): New code iterator.
158         (convop): New code attribute.
159         (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
160         : New.
161         (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
162         : New.
163         (vec_truncatev64div64si): Rename to ...
164         (truncv64di<mode>2): ... this and implement sub-dword patterns.
165         (vec_truncatev64div64si_exec): Rename to ...
166         (truncv64di<mode>2_exec): ... this and implement sub-dword patterns.
167         (<convop><mode>v64di2): New insn_and_split.
168         (<convop><mode>v64di2_exec): Likewise.
169         (mask_gather_load<mode>): Update truncate names.
170         (mask_scatter_store<mode>): Likewise.
171         * config/gcn/gcn.c (gcn_expand_scaled_offsets): Update truncate names.
172
173 2019-12-13  Dennis Zhang  <dennis.zhang@arm.com>
174
175         * config/aarch64/aarch64-arches.def (armv8.6-a): New.
176         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
177         __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC and
178         __ARM_FEATURE_BF16_SCALAR_ARITHMETIC when enabled.
179         * config/aarch64/aarch64-option-extensions.def (i8mm, bf16): New.
180         (fp): Disabling fp also disables i8mm and bf16.
181         (simd): Disabling simd also disables i8mm.
182         * config/aarch64/aarch64.h (AARCH64_FL_V8_6): New macro.
183         (AARCH64_FL_I8MM, AARCH64_FL_BF16, AARCH64_FL_FOR_ARCH8_6): Likewise.
184         (AARCH64_ISA_V8_6, AARCH64_ISA_I8MM, AARCH64_ISA_BF16): Likewise.
185         (TARGET_I8MM, TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
186         * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options
187         and add a new table to list permissible values for ARCH.
188
189 2019-12-13  Jakub Jelinek  <jakub@redhat.com>
190
191         PR target/92908
192         * simplify-rtx.c (simplify_relational_operation): Punt for vector
193         cmp_mode and scalar mode, if simplify_relational_operation returned
194         const_true_rtx.
195         (simplify_const_relational_operation): Change VOID_mode in function
196         comment to VOIDmode.
197
198 2019-12-13  Kewen Lin  <linkw@gcc.gnu.org>
199
200         * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
201         (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
202         stmt_cost.
203
204 2019-12-12  Jakub Jelinek  <jakub@redhat.com>
205
206         PR target/92904
207         * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
208         not need_temp, decrease alignment of the read because the GPR save
209         area only guarantees 8-byte alignment.
210
211 2019-12-12  Georg-Johann Lay  <avr@gjlay.de>
212
213         Add support for some more AVR devices from avrxmega3 family.
214
215         * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
216         (attiny402, attiny404, attiny406)
217         (attiny804, attiny806, attiny807)
218         (attiny202, attiny204): Add AVR_MCU lines to support them.
219         * doc/avr-mmcu.texi: Regenerate.
220
221 2019-12-12  Jan Hubicka  <hubicka@ucw.cz>
222
223         * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
224         of execution of function call parameters.
225
226 2019-12-12  Vineet Gupta  <vgupta@synopsys.com>
227
228         * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
229         helps codegen generate exceptions even for quiet NaN.
230         * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
231         (get_arc_condition_code): Likewise.
232         (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
233         * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
234         * config/arc/predicates.md (proper_comparison_operator): Likewise.
235         * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
236         (cmpdf_fpu_trap): Likewise.
237
238 2019-12-12  Claudiu Zissulescu  <claziss@synopsys.com>
239
240         * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
241         (cstoredi4): Use TARGET_HARD_FLOAT.
242
243 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
244
245         * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
246         entry from -O3 or later section to -O2 or later section.
247         * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
248         option is enabled by default at -O2+ rather than just at -O3.
249
250         PR target/92723
251         * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
252         vect_internal_def, use oprnd1 as is, without trying to cast it.
253         Formatting fix.
254
255 2019-12-11  Martin Sebor  <msebor@redhat.com>
256
257         * builtins.c (compute_objsize): Add an argument and set it to offset
258         into destination.
259         * builtins.h (compute_objsize): Add an argument.
260         * tree-object-size.c (addr_object_size): Add an argument and set it
261         to offset into destination.
262         (compute_builtin_object_size): Same.
263         * tree-object-size.h (compute_builtin_object_size): Add an argument.
264         * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
265         to offset into destination.
266         (maybe_warn_overflow): New function.
267         (handle_store): Call maybe_warn_overflow to issue warnings.
268
269 2019-12-11  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
270
271         * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
272         crtbegin_no_eh.o if building for the C language.
273         [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
274         except C.
275         (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for 
276         the C language.
277         [fno-exceptions]: Use crtend_no_eh.o if building for any language
278         except C.
279         * config/msp430/t-msp430: Add -fno-exceptions multilib.
280         * doc/install.texi: Document --disable-no-exceptions multilib configure
281         option.
282         * doc/sourcebuild.texi: Document exceptions_enabled effective target.
283
284 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
285
286         * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
287         (pretty_printer::clone): New vfunc implementation.
288         * pretty-print.h (format_postprocessor::clone): New pure vfunc
289         decl.
290         (pretty_printer::pretty_printer): New copy-ctor decl.
291         (pretty_printer::clone): New vfunc decl.
292
293 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
294
295         * function-tests.c (selftest::make_fndecl): Make non-static.
296         * selftest.h (selftest::make_fndecl): New decl.
297
298 2019-12-11  Lewis Hyatt  <lhyatt@gmail.com>
299
300         PR 91853
301         * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
302         multibyte input.  Fix off-by-one-bug printing the last byte before a
303         hex-escaped output.
304         (pp_character): Don't apply line wrapping in the middle of multibyte
305         characters.
306         (test_utf8): New test.
307         (pretty_print_c_tests): Call the new test.
308
309 2019-12-11  Richard Earnshaw  <rearnsha@arm.com>
310
311         * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
312         (ALL_SIMD): Use it.
313         (ALL_FPU_EXTERNAL): New fgroup.
314         (ALL_FP): Use it.
315         (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
316         +simd from architecture specification.
317         (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
318         * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
319         (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
320         (isa_all_fpbits): New bitmap.
321         (arm_option_override): Initialize it.
322         (arm_configure_build_target): If the target isa does not have any
323         FP enabled, do not warn about mismatches in FP-related feature bits.
324
325 2019-12-11  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
326
327         * real.c (struct arm_bfloat_half_format,
328         encode_arm_bfloat_half, decode_arm_bfloat_half): New.
329         * real.h (arm_bfloat_half_format): New.
330
331 2019-12-11  Hongtao Liu  <hongtao.liu@intel.com>
332
333         PR target/92865
334         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
335         integer mask cmov when available even with TARGET_XOP.
336
337 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
338
339         PR tree-optimization/92891
340         * builtins.c (gimple_call_alloc_size): Convert size to sizetype
341         before returning it.
342
343 2019-12-10  Vladimir Makarov  <vmakarov@redhat.com>
344
345         PR rtl-optimization/92796
346         * lra-int.h (lra_risky_transformations_p): Rename to
347         check_and_force_assignment_correctness_p.
348         * lra-assigns.c: Ditto.
349         (lra_assign): Reset check_and_force_assignment_correctness_p.
350         * lra-constraints.c (lra_risky_transformations_p): Rename to
351         check_and_force_assignment_correctness_p.
352         (lra_constraints): Set up check_and_force_assignment_correctness_p
353         only for the 1st sub-pass.
354         * lra-eliminations.c (process_insn_for_elimination): Set up
355         check_and_force_assignment_correctness_p if the insn chnaged its
356         code.
357
358 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
359
360         PR rtl-optimization/92882
361         * regstat.c (regstat_bb_compute_calls_crossed): Don't check
362         INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
363         NONDEBUG_INSN_P.
364
365         PR ipa/92883
366         * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
367         than *jfunc->m_vr to intersect.  Formatting fix.
368
369         PR middle-end/92825
370         * cfgexpand.c (add_stack_protection_conflicts): Change return type
371         from void to bool, return true if at least one stack_vars[i].decl
372         is addressable.
373         (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
374         (expand_used_vars): Don't call stack_protect_decl_p, instead for
375         -fstack-protector-strong set gen_stack_protect_signal to true
376         if add_stack_protection_conflicts returned true.  Formatting fixes.
377         * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
378         out variables or variables not living on the stack don't count.
379         (-fstack-protector): Likewise.  Clarify it affects >= 8 byte arrays
380         rather than > 8 byte.
381
382         * ipa-param-manipulation.c
383         (ipa_param_body_adjustments::register_replacement): Fix comment typo
384         - accross -> across.
385         * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
386         Likewise.
387         (param_splitting_across_edge): Fix typo in dump message - accross
388         -> across.
389
390 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
391
392         * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
393         * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
394         * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
395         (expand_all_functions): First expand ordered section and then
396         unordered.
397         * profile.c (compute_value_histograms): Error on out of range
398         tp_first_runs.
399
400 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
401
402         * predict.c (compute_function_frequency): Check for presence of IPA
403         profile.
404
405 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
406
407         * varasm.c (default_function_section): Fix confused tests for
408         tp_first_run reordering.
409
410 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
411
412         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
413         allow SVE modes in GPRs.
414
415 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
416
417         * config/aarch64/iterators.md (vccore): New iterator.
418         * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
419         of vwcore.
420         (*vec_series<mode>_plus): Likewise.
421
422 2019-12-10  Frederik Harwath  <frederik@codesourcery.com>
423
424         * omp-low.c (scan_omp_for): Use clause location in warning.
425
426 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
427
428         * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
429         (add_const_value_attribute): Likewise.
430
431 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
432
433         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
434         handling direct_slp_reduc, allow the PHI arguments to have
435         a different type from the vector elements.
436
437 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
438
439         * tree-vect-stmts.c (vectorizable_condition): Record the loop
440         masks required for extract-last reductions.
441
442 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
443
444         * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
445         original scalar statement rather than a pattern statement.
446         (vectorizable_condition): Likewise, in the handling of extract-last
447         reductions.
448
449 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
450
451         * tree-vect-loop.c (vectorizable_reduction): Don't use
452         EXTRACT_LAST_REDUCTION for chained reductions.
453
454 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
455
456         * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
457         * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
458         second demangled name.
459
460 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
461
462         * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
463
464 2019-12-10  Martin Liska  <mliska@suse.cz>
465
466         PR tree-optimization/92862
467         * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
468         * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
469         instead of true;
470
471 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
472
473         * gcc-rich-location.c
474         (maybe_range_label_for_tree_type_mismatch::get_text): Replace
475         label_text ctor call with label_text::borrow.
476         * gcc-rich-location.h (text_range_label::get_text): Replace
477         label_text ctor called with false with label_text::borrow.
478
479 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
480
481         * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
482         newline.
483         (selftest::test_diagnostic_show_locus_unknown_location): Remove
484         initial newline from expected outputs.
485         (selftest::test_one_liner_simple_caret): Likewise.
486         (selftest::test_one_liner_caret_and_range): Likewise.
487         (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
488         (selftest::test_one_liner_fixit_insert_before): Likewise.
489         (selftest::test_one_liner_fixit_insert_after): Likewise.
490         (selftest::test_one_liner_fixit_remove): Likewise.
491         (selftest::test_one_liner_fixit_replace): Likewise.
492         (selftest::test_one_liner_fixit_replace_non_equal_range):
493         Likewise.
494         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
495         Likewise.
496         (selftest::test_one_liner_fixit_validation_adhoc_locations):
497         Likewise.
498         (selftest::test_one_liner_many_fixits_1): Likewise.
499         (selftest::test_one_liner_many_fixits_2): Likewise.
500         (selftest::test_one_liner_labels): Likewise.
501         (selftest::test_one_liner_simple_caret_utf8): Likewise.
502         (selftest::test_one_liner_caret_and_range_utf8): Likewise.
503         (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
504         Likewise.
505         (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
506         (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
507         (selftest::test_one_liner_fixit_remove_utf8): Likewise.
508         (selftest::test_one_liner_fixit_replace_utf8): Likewise.
509         (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
510         Likewise.
511         (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
512         Likewise.
513         (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
514         Likewise.
515         (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
516         (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
517         (selftest::test_one_liner_labels_utf8): Likewise.
518         (selftest::test_add_location_if_nearby): Likewise.
519         (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
520         (selftest::test_overlapped_fixit_printing): Likewise.
521         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
522         (selftest::test_overlapped_fixit_printing_2): Likewise.
523         (selftest::test_fixit_insert_containing_newline): Likewise.
524         (selftest::test_fixit_insert_containing_newline_2): Likewise.
525         (selftest::test_fixit_replace_containing_newline): Likewise.
526         (selftest::test_fixit_deletion_affecting_newline): Likewise.
527         (selftest::test_line_numbers_multiline_range): Likewise.
528         * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
529         before call to diagnostic_show_locus.
530         (diagnostic_append_note): Likewise.
531
532 2019-12-09  Martin Sebor  <msebor@redhat.com>
533
534         PR middle-end/92761
535         PR middle-end/92762
536         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
537         up tests.
538         * hash-table.h (hash_table::expand): Use placement new to copy
539         construct objects in uninitialized storage.
540         (hash_table::empty_slow): Avoid invoking copy assignment on
541         uninitialized objects.
542
543 2019-12-09  Lewis Hyatt  <lhyatt@gmail.com>
544
545         PR preprocessor/49973
546         * input.c (location_compute_display_column): New function to help with
547         multibyte awareness in diagnostics.
548         (test_cpp_utf8): New self-test.
549         (input_c_tests): Call the new test.
550         * input.h (location_compute_display_column): Declare.
551         * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
552         to all classes and functions.
553         (enum column_unit): New enum.
554         (class exploc_with_display_col): New class.
555         (class layout_point): Convert m_column member to array m_columns[2].
556         (layout_range::contains_point): Add col_unit argument.
557         (test_layout_range_for_single_point): Pass new argument.
558         (test_layout_range_for_single_line): Likewise.
559         (test_layout_range_for_multiple_lines): Likewise.
560         (line_bounds::convert_to_display_cols): New function.
561         (layout::get_state_at_point): Add col_unit argument.
562         (make_range): Use empty filename rather than dummy filename.
563         (get_line_width_without_trailing_whitespace): Rename to...
564         (get_line_bytes_without_trailing_whitespace): ...this.
565         (test_get_line_width_without_trailing_whitespace): Rename to...
566         (test_get_line_bytes_without_trailing_whitespace): ...this.
567         (class layout): m_exploc changed to exploc_with_display_col from
568         plain expanded_location.
569         (layout::get_linenum_width): New accessor member function.
570         (layout::get_x_offset_display): Likewise.
571         (layout::calculate_linenum_width): New subroutine for the constuctor.
572         (layout::calculate_x_offset_display): Likewise.
573         (layout::layout): Use the new subroutines. Add multibyte awareness.
574         (layout::print_source_line): Add multibyte awareness.
575         (layout::print_line): Likewise.
576         (layout::print_annotation_line): Likewise.
577         (line_label::line_label): Likewise.
578         (layout::print_any_labels): Likewise.
579         (layout::annotation_line_showed_range_p): Likewise.
580         (get_printed_columns): Likewise.
581         (class line_label): Rename m_length to m_display_width.
582         (get_affected_columns): Rename to...
583         (get_affected_range): ...this; add col_unit argument and multibyte
584         awareness.
585         (class correction): Add m_affected_bytes and m_display_cols
586         members.  Rename m_len to m_byte_length for clarity.  Add multibyte
587         awareness throughout.
588         (correction::insertion_p): Add multibyte awareness.
589         (correction::compute_display_cols): New function.
590         (correction::ensure_terminated): Use new member name m_byte_length.
591         (line_corrections::add_hint): Add multibyte awareness.
592         (layout::print_trailing_fixits): Likewise.
593         (layout::get_x_bound_for_row): Likewise.
594         (test_one_liner_simple_caret_utf8): New self-test analogous to the one
595         with _utf8 suffix removed, testing multibyte awareness.
596         (test_one_liner_caret_and_range_utf8): Likewise.
597         (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
598         (test_one_liner_fixit_insert_before_utf8): Likewise.
599         (test_one_liner_fixit_insert_after_utf8): Likewise.
600         (test_one_liner_fixit_remove_utf8): Likewise.
601         (test_one_liner_fixit_replace_utf8): Likewise.
602         (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
603         (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
604         (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
605         (test_one_liner_many_fixits_1_utf8): Likewise.
606         (test_one_liner_many_fixits_2_utf8): Likewise.
607         (test_one_liner_labels_utf8): Likewise.
608         (test_diagnostic_show_locus_one_liner_utf8): Likewise.
609         (test_overlapped_fixit_printing_utf8): Likewise.
610         (test_overlapped_fixit_printing): Adapt for changes to
611         get_affected_columns, get_printed_columns and class corrections.
612         (test_overlapped_fixit_printing_2): Likewise.
613         (test_linenum_sep): New constant.
614         (test_left_margin): Likewise.
615         (test_offset_impl): Helper function for new test.
616         (test_layout_x_offset_display_utf8): New test.
617         (diagnostic_show_locus_c_tests): Call new tests.
618
619 2019-12-09  Eric Botcazou  <ebotcazou@adacore.com>
620
621         * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
622         TYPE_CANONICAL from the element type only if it is true.  Remove a few
623         obsolete lines and adjust recursive call.
624         (fld_process_array_type): Adjust call to build_array_type_1.
625         (build_array_type): Likewise.
626         (build_nonshared_array_type): Likewise.
627
628 2019-12-09  Andrew Stubbs  <ams@codesourcery.com>
629
630         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
631         %s to %o in asm output.
632         (gather<mode>_insn_2offsets<exec>): Likewise.
633
634 2019-12-09  Richard Earnshaw  <rearnsha@arm.com>
635
636         * config/arm/t-multilib: Use arm->thumb multilib reuse rules
637         on a-profile.
638
639 2019-12-09  Segher Boessenkool  <segher@kernel.crashing.org>
640
641         * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
642         set<mode>_cc.
643         (unnamed define_insn_and_split): Delete.
644         (unnamed define_insn): Delete.
645         (unnamed define_insn): Delete.
646         (unnamed define_split): Delete.
647
648 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
649
650         * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
651         avoid a warning.
652
653 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
654
655         PR middle-end/92410
656         * bb-reorder.c (pass_reorder_blocks::execute): Recompute
657         dataflow luids once basic blocks have been reordered.
658         * haifa-sched.c (reemit_notes): Create df insn record for each
659         new note.
660         * regstat.c (regstat_bb_compute_calls_crossed): Assert every
661         insn has an insn record before trying to use it.
662
663 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
664
665         * common/config/i386/i386-common.c
666         (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
667         OPTION_MASK_ISA2_AVX5124FMAPS_SET.
668         (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
669         OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
670         OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
671         OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
672         OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
673         OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
674         OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
675         OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
676         OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
677         OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
678         OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
679         OPTION_MASK_ISA_AVX512BF16_UNSET,
680         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
681         OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
682         OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
683         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
684         OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
685         OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
686         OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
687         OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
688         OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
689         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
690         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
691         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
692         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
693         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
694         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
695         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
696         OPTION_MASK_ISA_ENQCMD): Ditto.
697         * config/i386/i386-builtin.def
698         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
699         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
700         OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
701         OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
702         OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
703         * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
704         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
705         OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
706         * config/i386/i386-c.c
707         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
708         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
709         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
710         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
711         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
712         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
713         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
714         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
715         OPTION_MASK_ISA_ENQCMD): Ditto.
716         * config/i386/i386-option.c: Ditto
717         * config/i386/i386.opt: Ditto..
718         * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
719         TARGET_ISA_AVX5124VNNIW,  TARGET_ISA_AVX512BF16,
720         TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
721         TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
722         TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
723         TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
724         TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
725         TARGET_ISA_ENQCMD): Ditto.
726
727 2019-12-09  Sudakshina Das  <sudi.das@arm.com>
728             Richard Sandiford  <richard.sandiford@arm.com>
729
730         * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
731         vect_model_simple_cost call on scalar_shift_arg.
732
733 2019-12-09  Jakub Jelinek  <jakub@redhat.com>
734
735         PR tree-optimization/92834
736         * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
737         A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
738
739 2019-12-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
740
741         PR tree-optimization/89007
742         * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
743         target support available, generate code to distribute rshift over plus
744         and add a carry.
745
746 2019-12-09  Martin Liska  <mliska@suse.cz>
747
748         PR ipa/92737
749         * cgraph.c (symbol_table_test::symbol_table_test): Fix
750         coding style.
751         * cgraph.h (symtab_node::symtab_node): New constructor.
752         (cgraph_node::cgraph_node): Likewise.
753         (varpool_node::varpool_node): Likewise.
754         (symbol_table::allocate_cgraph_symbol): Use newly
755         created constructor.
756         (symbol_table::allocate_cgraph_symbol): Remove.
757         * cgraphunit.c (symtab_terminator): Likewise.
758         * varpool.c (varpool_node::create_empty): Use newly
759         created constructor.
760
761 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
762
763         PR target/92686
764         * config/i386/sse.md
765         (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
766         *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
767         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
768         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
769         * config/i386/i386.c (ix86_print_operand): New operand substitution.
770         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
771         New function.
772         (ix86_expand_sse_cmp): Relax condition for integer mask from
773         512-bit vector to all 128/256/512-bit vector. Delete code gen
774         for avx512f compare patterns since we have generic pattern now.
775         (ix86_expand_sse_movcc): Adjust condition and codegen for
776         maskcmp.
777         (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
778         when corresponding vector compare is available.
779
780 2019-12-08  Sandra Loosemore  <sandra@codesourcery.com>
781
782         Revert:
783         2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
784
785         * config/nios2/linux.h (LINK_EH_SPEC): Define.
786
787 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
788
789         * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
790         * cgraph.h (cgrpah_node): Likewise.
791         (tp_first_run_node_cmp): Deeclare.
792         * cgraphunit.c (node_cmp): Rename to ...
793         (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
794         clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
795         (expand_all_functions): Collect tp_first_run and normal functions to
796         two vectors so the other functions remain sorted. Do not check for
797         flag_profile_reorder_functions it is function local flag.
798         * profile.c (compute_value_histograms): Update tp_first_run printing.
799
800 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
801
802         * opts.c (common_handle_option): Do not clear ipa_reference for
803         -fprofile-use.
804
805 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
806
807         * ipa-split.c (split_function): Preserve 0 tp_first_run.
808
809 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
810
811         * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
812         sanity check.
813
814 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
815
816         PR tree-optimization/92860
817         * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
818         Optimization flag.
819
820 2019-12-07  Marek Polacek  <polacek@redhat.com>
821
822         PR c++/91678 - wrong error with decltype and location wrapper.
823         * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
824
825 2019-12-07  Eric Botcazou  <ebotcazou@adacore.com>
826
827         PR middle-end/90840
828         * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
829         sure to pass a valid inner mode in calls to simplify_gen_subreg.
830
831 2019-12-07  Tobias Burnus  <tobias@codesourcery.com>
832             David Malcolm  <dmalcolm@redhat.com>
833             Jakub Jelinek  <jakub@redhat.com>
834
835         PR c/87488
836         * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
837         instead of ST sequence to terminate OSC 8 strings.
838
839 2019-12-06  Andreas Krebbel  <krebbel@linux.ibm.com>
840             Vladimir Makarov  <vmakarov@redhat.com>
841
842         PR rtl-optimization/92176
843         * lra.c (simplify_subreg_regno): Don't permit unconditional
844         changing mode for LRA too.
845
846 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
847
848         * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
849         (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
850         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
851         Handle them.
852
853 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
854
855         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
856         in the asm output.
857
858 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
859
860         * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
861         (VEC_1REG_ALT): Likewise.
862         (VEC_ALL1REG_MODE): New mode iterator.
863         (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
864         (VEC_1REG_INT_ALT): Likewise.
865         (VEC_ALL1REG_INT_MODE): New mode interator.
866         (VEC_ALL1REG_INT_ALT): Likewise.
867         (VEC_REG_MODE): Remove V64QI and V64HI.
868         (VEC_ALLREG_MODE): New mode interator.
869         (vec_merge): Change to VEC_ALLREG_MODE.
870         (vec_merge_with_clobber): Likewise.
871         (vec_merge_with_vcc): Likewise.
872         (mov<mode>): Likewise.
873         (mov<mode>_unspec): Likewise.
874         (*mov<mode>): Change to VEC_ALL1REG_MODE.
875         (mov<mode>_exec): Likewise.
876         (*mov<mode>_exec_match): Likewise.
877         (mov<mode>_sgprbase): Likewise.
878         (reload_in<mode>): Change to VEC_ALLREG_MODE.
879         (reload_out<mode>): Likewise.
880         (scalar address splits): Likewise.
881         (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
882         (vec_set<mode>): Change to VEC_ALLREG_MODE.
883         (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
884         (vec_duplicate<mode><exec>): Likewise.
885         (vec_extract<mode><scalar_mode>): Likewise.
886         (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
887         (gather_load<mode>): Likewise.
888         (gather<mode>_exec): Likewise.
889         (gather<mode>_expr<exec>): Likewise.
890         (gather<mode>_insn_1offset<exec>): Likewise.
891         (gather<mode>_insn_1offset_ds<exec>): Likewise.
892         (gather<mode>_insn_2offsets<exec>): Likewise.
893         (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
894         (VEC_INT_MODE): Remove V64QI and V64HI.
895         (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
896         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
897         VEC_ALL1REG_MODE.
898         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
899         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
900         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
901         (maskload<mode>di): Change to VEC_ALL1REG_MODE.
902         (maskstore<mode>di): Likewise.
903         (mask_gather_load<mode>): Likewise.
904         (mov_from_lane63_<mode>): Likewise.
905         * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
906         and V64HImode vectorization.
907         (gcn_related_vector_mode): New function.
908         (TARGET_VECTORIZE_RELATED_MODE): New define.
909
910 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
911             Kwok Cheung Yeung  <kcy@codesourcery.com>
912
913         * omp-low.c (lower_omp_target): For optional arguments, deref once
914         more to obtain the type.
915
916 2019-12-06  Richard Biener  <rguenther@suse.de>
917
918         * match.pd (nop_convert): Remove empty match.  Use nop_convert?
919         everywhere.
920
921 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
922
923         * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
924         for empty vectors.  Avoid using ordered_remove and instead
925         shuffle the vector as we go.
926
927 2019-12-06  Richard Biener  <rguenther@suse.de>
928
929         * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
930         VIEW_CONVERT{0,1,2}.
931         (expr::opt_grp): Add and initialize.
932         (lower_opt_convert): Rename to ...
933         (lower_opt): ... and work on opt_grp, simply switching operations
934         from being optional to being present or not.
935         (has_opt_convert): Rename to ...
936         (has_opt): ... and adjust.
937         (parser::parse_operation): Return the optional opt_grp,
938         remove special-casing of conditional operations and more generally
939         parse [digit]'?'.
940         (parser::parse_expr): Stick on the parsed opt_grp and perform
941         rough verification.
942         (parser::parse_for): Remove now unnecessary code.
943         (main): Likewise.
944         * doc/match-and-simplify.texi: Mention ? now works on all
945         unary operations and also match predicates.
946
947 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
948
949         * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
950         functions, not inline clones.
951
952 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
953
954         * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
955
956 2019-12-06  Richard Biener  <rguenther@suse.de>
957
958         * genmatch.c (c_expr::gen_transform): Emit newlines from line
959         number changes rather than after every semicolon.
960
961 2019-12-06  Richard Biener  <rguenther@suse.de>
962
963         PR tree-optimization/92819
964         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
965         into the last lane.  For two-element vectors try inserting
966         into the last lane when inserting into the first fails.
967
968 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
969
970         * common.opt (fprofile-partial-training): Terminate description with
971         full stop.
972
973 2019-12-05  Martin Sebor  <msebor@redhat.com>
974
975         PR middle-end/92622
976         * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
977         left uninitialized by get_addr_base_and_unit_offset on failure.
978
979 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
980
981         * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
982         (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
983         (detect_type_change): Likewise.
984         (detect_type_change_ssa): Likewise.
985         (ipa_analyze_virtual_call_uses): Update.
986
987 2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
988
989         * config/nios2/linux.h (LINK_EH_SPEC): Define.
990
991 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
992
993         * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
994
995 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
996
997         * cgraphclones.c (localize_profile): New function.
998         (cgraph_node::create_clone): Use it for partial profiles.
999         * common.opt (fprofile-partial-training): New flag.
1000         * doc/invoke.texi (-fprofile-partial-training): Document.
1001         * ipa-cp.c (update_profiling_info): For partial profiles do not
1002         set function profile to zero.
1003         * profile.c (compute_branch_probabilities): With partial profile
1004         watch if edge count is zero and turn all probabilities to guessed.
1005         (compute_branch_probabilities): For partial profiles do not apply
1006         profile when entry count is zero.
1007         * tree-profile.c (tree_profiling): Only do value_profile_transformations
1008         when profile is read.
1009
1010 2019-12-05  Sudakshina Das  <sudi.das@arm.com>
1011
1012         * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
1013         check from if condition.
1014
1015 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
1016
1017         * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
1018         and Fortran's optional arguments, unconditionally add the is-present
1019         condition before the libgomp call.
1020
1021 2019-12-05  Richard Sandiford  <richard.sandiford@arm.com>
1022
1023         PR middle-end/92768
1024         * tree-core.h (OEP_BITWISE): New flag.
1025         * fold-const.c (operand_compare::operand_equal_p): Handle it.
1026         * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
1027
1028 2019-12-05  Richard Biener  <rguenther@suse.de>
1029
1030         PR middle-end/92818
1031         * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
1032         heuristics on what don't care element to choose.
1033         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
1034
1035 2019-12-05  Martin Liska  <mliska@suse.cz>
1036
1037         PR gcov-profile/92817
1038         * coverage.c (build_gcov_exit_decl): Remove superfluous
1039         void_type_node.
1040
1041 2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1042
1043         * config/msp430/msp430.md (cbranch<mode>4): Use
1044         msp430_general_dst_nonv_operand instead of nonimmediate_operand for
1045         dest operand of CMP instruction.
1046         (cbranchpsi4_real): Likewise.
1047         (cbranchqi4_real): Likewise.
1048         (cbranchhi4_real): Likewise.
1049         (cbranchpsi4_reversed): Likewise.
1050         (cbranchqi4_reversed): Likewise.
1051         (cbranchhi4_reversed): Likewise.
1052
1053 2019-12-05  Richard Biener  <rguenther@suse.de>
1054
1055         PR tree-optimization/92803
1056         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1057         invariant vector construction.
1058
1059 2019-12-05  Martin Liska  <mliska@suse.cz>
1060
1061         PR gcov-profile/91971
1062         * coverage.c (coverage_init): Mangle full path
1063         only when -fprofile-dir is used.
1064
1065 2019-12-05  Jakub Jelinek  <jakub@redhat.com>
1066
1067         PR target/92791
1068         * config/i386/i386.md (movstrict<mode>): Move test for
1069         TARGET_PARTIAL_REG_STALL and not optimizing for size from
1070         expander's condition to the body - FAIL; in that case.
1071
1072 2019-12-03  Martin Sebor  <msebor@redhat.com>
1073
1074         PR middle-end/91582
1075         * builtins.c (gimple_call_alloc_size): New function.
1076         (compute_objsize): Add argument.  Call gimple_call_alloc_size.
1077         Handle variable offsets and indices.
1078         * builtins.h (gimple_call_alloc_size): Declare.
1079         (compute_objsize): Add argument.
1080         * gimple-ssa-warn-restrict.c: Remove assertions.
1081         * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
1082
1083 2019-12-04  Julian Brown  <julian@codesourcery.com>
1084
1085         * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
1086
1087 2019-12-04  Peter Bergner <bergner@linux.ibm.com>
1088
1089         PR bootstrap/92661
1090         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
1091         rs6000.h.
1092         (altivec_overloaded_builtins): Move to rs6000-call.c.
1093         * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
1094         rs6000-c.c.
1095         * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
1096         (altivec_overloaded_builtins): Moved from rs6000-c.c.
1097         (rs6000_common_init_builtins): Do no define builtins that overload
1098         builtins that have been disabled.
1099
1100 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1101
1102         * config/arm/arm.c (arm_option_override_internal):
1103         Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
1104
1105 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1106
1107         * config/aarch64/aarch64.c
1108         (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
1109         (thunderx_tunings): Likewise.
1110         (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
1111         (thunderx2t99_tunings): Likewise.
1112         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
1113         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
1114
1115 2019-12-04  Richard Biener  <rguenther@suse.de>
1116
1117         * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
1118         empty CTOR and memset partial-def registering.  Take advantage
1119         of fancy offset analysis in memset handling.
1120
1121 2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
1122
1123         * fold-const.c (native_encode_vector_part): Handle
1124         VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
1125         (native_decode_vector_tree): Delete, moving the bulk of the code to...
1126         (native_interpret_vector_part): ...this new function.  Use a pointer
1127         and length instead of a vec<> and start index.
1128         (native_interpret_vector): Use native_interpret_vector_part.
1129         (fold_view_convert_vector_encoding): Likewise.
1130
1131 2019-12-04  Richard Biener  <rguenther@suse.de>
1132
1133         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
1134         non-constant defs in the most trivial way.
1135         (vn_reference_lookup_3): Also push down SSA partial defs.
1136
1137 2019-12-04  Martin Liska  <mliska@suse.cz>
1138
1139         * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
1140         Initialize count of newly created BB.
1141
1142 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
1143
1144         PR tree-optimization/92734
1145         * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
1146         A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
1147
1148 2019-12-04  Kewen Lin  <linkw@gcc.gnu.org>
1149
1150         PR target/92760
1151         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
1152         VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
1153
1154 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1155
1156         * ipa-fnsummary.c: Include tree-into-ssa.h.
1157         (compute_fn_summary): Call update_ssa.
1158
1159 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1160
1161         * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
1162         is set only for symbol in comdat group.
1163         * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
1164
1165 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1166
1167         * cgraph.c: Include tree-into-ssa.h
1168         (cgraph_node::get_body): Call update_ssa.
1169         * cgraphunit.c (cgraph_node::expand): Likewise.
1170         * lto-streamer-in.c (input_function): Do not call update_ssa.
1171
1172 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1173
1174         * gimplify.c (gimplify_compound_lval): Don't gimplify and install
1175         an array element size if array_element_size is already an invariant.
1176         Similarly don't gimplify and install a field offset if
1177         component_ref_field_offset is already an invariant.
1178
1179 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1180
1181         * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
1182         with POLY_INT_CST size is made to a fixed-size object, force the
1183         object to live in memory.
1184
1185 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
1186
1187         * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
1188         for the data mode.
1189
1190 2019-12-03  Richard Biener  <rguenther@suse.de>
1191
1192         PR tree-optimization/92758
1193         * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
1194         operation on uniform vectors.
1195
1196 2019-12-03  Richard Biener  <rguenther@suse.de>
1197
1198         PR tree-optimization/92645
1199         * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1200         from or to a properly aligned register variable.
1201
1202 2019-12-03  Matthias Klose  <doko@ubuntu.com>
1203
1204         * Makefile.in (SOURCES): Add doc/lto-dump.1.
1205         (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1206         ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1207
1208 2019-12-03  Richard Biener  <rguenther@suse.de>
1209
1210         PR tree-optimization/92751
1211         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1212         when a clobber ends up in the partial-def vector.
1213         (vn_reference_lookup_3): Let clobbers be handled by the
1214         assignment from CTOR handling.
1215
1216 2019-12-03  Jakub Jelinek  <jakub@redhat.com>
1217
1218         PR tree-optimization/92734
1219         * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1220         CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1221         inner subtraction.
1222
1223 2019-12-03  Uroš Bizjak  <ubizjak@gmail.com>
1224             Jakub Jelinek  <jakub@redhat.com>
1225
1226         PR target/92744
1227         * config/i386/i386.md (peephole2 for *swap<mode>): Use
1228         general_reg_operand predicates instead of register_operand.
1229
1230 2019-12-03  Richard Biener  <rguenther@suse.de>
1231
1232         PR tree-optimization/92645
1233         * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1234         a full def of a vector via a BIT_INSERT_EXPR.
1235
1236 2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
1237
1238         * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1239         static.
1240         * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1241         decl.
1242
1243 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1244
1245         PR middle-end/92741
1246         * fold-const.c (fold_convertible_p): Check vector types more
1247         thoroughly.
1248
1249 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1250
1251         * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1252         (aarch64_expand_mov_immediate): Use it when attempting to measure
1253         the length of an SVE vector.
1254         (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1255         SVE is enabled.
1256
1257 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1258
1259         * config/aarch64/aarch64-sve-builtins.h
1260         (gimple_folder::force_vector): Declare.
1261         * config/aarch64/aarch64-sve-builtins.cc
1262         (gimple_folder::force_vector): New function.
1263         * config/aarch64/aarch64-sve-builtins-base.cc
1264         (svcmp_impl::fold): Likewise.
1265         (svdup_impl::fold): Handle svdup_z too.
1266
1267 2019-12-02  Martin Liska  <mliska@suse.cz>
1268
1269         * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1270         function.
1271         (debug_tree_odr_name): New.
1272         * ipa-utils.h (get_odr_name_for_type): New.
1273
1274 2019-12-02  Richard Biener  <rguenther@suse.de>
1275
1276         PR tree-optimization/92742
1277         * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1278         touch the def-type but verify it is consistent with the
1279         original stmts.
1280
1281 2019-12-02  Jakub Jelinek  <jakub@redhat.com>
1282
1283         PR tree-optimization/92712
1284         * match.pd ((A * B) +- A -> (B +- 1) * A,
1285         A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1286         even when we don't know anything about range of A, but do know
1287         something about range of B and the simplification won't introduce
1288         new UB.
1289
1290 2019-12-02  Feng Xue  <fxue@os.amperecomputing.com>
1291
1292         PR ipa/92133
1293         * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1294         (ipa-cp-min-recursive-probability): Likewise.
1295         * params.opt (ipa-cp-max-recursive-depth): New.
1296         (ipa-cp-min-recursive-probability): Likewise.
1297         * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1298         val_p and unlimited.
1299         (self_recursively_generated_p): New function.
1300         (get_val_across_arith_op): Likewise.
1301         (propagate_vals_across_arith_jfunc): Add constant propagation for
1302         self-recursive function.
1303         (incorporate_penalties): Do not penalize pure self-recursive function.
1304         (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1305         (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1306         (get_info_about_necessary_edges): Relax hotness check for edge to
1307         self-recursive function.
1308         * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1309
1310 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
1311
1312         PR target/92499
1313
1314         * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1315         objects of flexible types to be small if they have internal linkage
1316         or are declared extern.
1317         * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1318         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
1319         instead of the size of the object initializer.
1320         * tree.c (flexible_array_type_p): Move from C front end, and
1321         generalize to handle fields in non-C structures.
1322         * tree.h (flexible_array_type_p): Declare.
1323
1324 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1325
1326         * profile-count.h (profile_count::operator<): Use IPA value for
1327         comparsion.
1328         (profile_count::operator>): Likewise.
1329         (profile_count::operator<=): Likewise.
1330         (profile_count::operator>=): Likewise.
1331         * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1332
1333 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1334
1335         * ipa-inline.c (compute_max_insns): Return int64_t.
1336         (inline_small_functions): Simplify.
1337
1338 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1339
1340         * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1341         scaling happen.
1342
1343 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1344
1345         * cgraph.h (symtab_node): Add symver flag.
1346         * cgraphunit.c (process_symver_attribute): New.
1347         (process_common_attributes): Use process_symver_attribute.
1348         * lto-cgraph.c (lto_output_node): Stream symver.
1349         (lto_output_varpool_node): Stream symver.
1350         (input_overwrite_node): Stream symver.
1351         (input_varpool_node): Stream symver.
1352         * output.h (do_assemble_symver): Decalre.
1353         * symtab.c (symtab_node::dump_base): Dump symver.
1354         (symtab_node::verify_base): Verify symver.
1355         (symtab_node::resolve_alias): Handle symver.
1356         * varasm.c (do_assemble_symver): New function.
1357         * varpool.c (varpool_node::assemble_aliases): Use it.
1358         * doc/extend.texi: (symver attribute): Document.
1359         * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1360
1361 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1362
1363         * target.h (type_context_kind): New enum.
1364         (verify_type_context): Declare.
1365         * target.def (verify_type_context): New target hook.
1366         * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1367         * doc/tm.texi: Regenerate.
1368         * tree.c (verify_type_context): New function.
1369         * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1370         Declare.
1371         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1372         New function.
1373         * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1374         (TARGET_VERIFY_TYPE_CONTEXT): Define.
1375
1376 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1377
1378         * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1379         * cgraph.h (cgraph_node): Add unit_id and
1380         merged_extern_inline.
1381         (symbol_table): Add max_unit.
1382         (symbol_table::symbol_table): Initialize it.
1383         * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1384         merged_comdat, merged_extern_inline.
1385         (cgraph_node::create_clone): Likewise.
1386         (cgraph_node::create_version_clone): Likewise.
1387         * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1388         calls.
1389         * ipa-fnsummary.h (cross_module_call_p): New inline function.
1390         * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1391         * ipa-inline.c (inline_small_functions): Likewise.
1392         * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1393         copy merged_comdat and merged_extern_inline.
1394         * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1395         merged_extern_inline and unit_id.
1396         (input_overwrite_node): Stream in these.
1397         (input_cgraph_1): Set unit_base.
1398         * lto-streamer.h (lto_file_decl_data): Add unit_base.
1399         * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1400
1401 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
1402
1403         * gcc.c (process_command): Only warn about an ineffective `-x'
1404         option if any input files have actually been supplied.
1405
1406 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
1407
1408         * doc/install.texi (Options specification): Remove the list of
1409         target library subdirectories supporting
1410         `--enable-version-specific-runtime-libs'.  Document defaults for
1411         the option.
1412
1413 2019-11-29  Vladimir Makarov  <vmakarov@redhat.com>
1414
1415         PR rtl-optimization/92283
1416         * lra.c (lra): Update reg notes after inheritance sub-pass and
1417         before constraint sub-pass.
1418
1419 2019-11-29  Richard Biener  <rguenther@suse.de>
1420
1421         PR tree-optimization/91003
1422         * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1423         operand number, avoid handling the non-condition operands of
1424         COND_EXPRs as comparisons.
1425         (vect_get_constant_vectors): Pass down the operand number.
1426         (vect_get_slp_defs): Likewise.
1427
1428 2019-11-29  Frederik Harwath  <frederik@codesourcery.com>
1429
1430         * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1431         generic_expr_could_trap_p to check if the condition of COND_EXPR or
1432         VEC_COND_EXPR can trap.
1433
1434 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1435
1436         PR tree-optimization/92677
1437         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1438         to zero when dissolving a group of strided accesses.
1439
1440 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1441
1442         PR tree-optimization/92596
1443         * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1444         operations.
1445         (vectorizable_operation): Likewise, instead of relying on
1446         vect_get_mask_type_for_stmt to do this.
1447         (vect_get_vector_types_for_stmt): Always return a vector type
1448         immediately, rather than deferring the choice for boolean results.
1449         Use a vector mask type instead of a normal vector if
1450         vect_use_mask_type_p.
1451         (vect_get_mask_type_for_stmt): Delete.
1452         * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1453         mask_producers argument and special boolean_type_node handling.
1454         (vect_determine_vf_for_stmt): Remove mask_producers argument and
1455         update calls to vect_determine_vf_for_stmt_1.  Remove doubled call.
1456         (vect_determine_vectorization_factor): Update call accordingly.
1457         * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1458         boolean_type_node handling.
1459         (vect_slp_analyze_node_operations_1): Likewise.
1460
1461 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1462
1463         * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1464         (vect_use_mask_type_p): New function.
1465         * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1466         mask precision to the pattern statement.
1467         (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1468         and use it to initialize the new stmt's mask precision.
1469         (search_type_for_mask_1): Delete.
1470         (search_type_for_mask): Replace with...
1471         (integer_type_for_mask): ...this new function.  Use the information
1472         cached in the stmt_vec_info.
1473         (vect_recog_bool_pattern): Update accordingly.
1474         (build_mask_conversion): Pass the scalar type associated with the
1475         mask type to append_pattern_def_seq.
1476         (vect_recog_mask_conversion_pattern): Likewise.  Call
1477         integer_type_for_mask instead of search_type_for_mask.
1478         (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1479         of search_type_for_mask.
1480         (possible_vector_mask_operation_p): New function.
1481         (vect_determine_mask_precision): Likewise.
1482         (vect_determine_stmt_precisions): Call it.
1483
1484 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1485
1486         * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1487         the slp_tree parameter with a group size parameter.
1488         (vect_get_mask_type_for_stmt): Likewise.
1489         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1490         (vect_get_mask_type_for_stmt): Likewise.
1491         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1492         call accordingly.
1493
1494 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1495
1496         * tree-vect-stmts.c (vectorizable_operation): Punt early
1497         on codes that are handled elsewhere.
1498
1499 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1500
1501         * doc/sourcebuild.texi (vect_bool_cmp): Document.
1502         * tree-vect-patterns.c (search_type_for_mask_1): If neither
1503         operand to a boolean comparison is a natural vector mask,
1504         handle both operands like normal integers instead.
1505
1506 2019-11-29  Richard Biener  <rguenther@suse.de>
1507
1508         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1509         out early for too large objects.
1510
1511 2019-11-29  Martin Jambor  <mjambor@suse.cz>
1512
1513         PR ipa/92476
1514         * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1515         the summary only if the summary exists.
1516         (find_more_scalar_values_for_callers_subset): Check node_dead in
1517         the summary only if the summary exists.
1518         (ipcp_store_bits_results): Ignore nodes without lattices.
1519         (ipcp_store_vr_results): Likewise.
1520         * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1521         header files required by them.
1522         (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1523
1524 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
1525
1526         PR tree-optimization/92710
1527         * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1528         vector mask arguments.
1529
1530 2019-11-29  Jan Hubicka  <hubicka@ucw.cz>
1531
1532         * profile-count.c (profile_count::to_cgraph_frequency,
1533         profile_count::to_sreal_scale): Check for compaibility of counts.
1534         * profile-count.h (compatible_p): Make public; add checking for
1535         global0 versus global types.
1536         * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1537
1538 2019-11-29  Richard Biener  <rguenther@suse.de>
1539
1540         PR tree-optimization/92715
1541         * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1542         out for uniform vectors and source vectors with less elements
1543         than the destination.
1544
1545 2019-11-29  Martin Liska  <mliska@suse.cz>
1546
1547         PR lto/91574
1548         * ipa-devirt.c (types_same_for_odr): Check for existence
1549         of TYPE_NAMEs first.
1550
1551 2019-11-29  Richard Biener  <rguenther@suse.de>
1552
1553         PR tree-optimization/92704
1554         * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1555         in loops performing only loads.
1556
1557 2019-11-29  Julian Brown  <julian@codesourcery.com>
1558
1559         * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1560         BT_DFLOAT128_PTR) Remove.
1561         * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1562         TI_DFLOAT128_PTR_TYPE): Remove.
1563         * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1564         dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1565         * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1566         dfloat128_ptr_type_node): Remove macros.
1567
1568 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1569
1570         * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
1571         formatting.
1572         (*movdi_internal64): Ditto.
1573
1574 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1575
1576         PR target/92602
1577         * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1578         indexed_or_indirect_operand to be memory_operand.
1579         (bswap<mode>2_store for HSI): Ditto.
1580         (bswapdi2_load): Ditto.
1581         (bswapdi2_store): Ditto.
1582
1583 2019-11-28  Martin Liska  <mliska@suse.cz>
1584
1585         PR debug/46558
1586         * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1587         headers for translation.
1588
1589 2019-11-28  Martin Liska  <mliska@suse.cz>
1590
1591         PR lto/92609
1592         * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1593         consistently.
1594
1595 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1596
1597         * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1598         checks.
1599
1600 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1601
1602         * profile-count.c (profile_count::combine_with_ipa_count): Return
1603         uninitialized count if called on ininitialized count.
1604
1605 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1606
1607         * ipa-inline-transform.c (inline_transform): Scale profile before
1608         redirecting.
1609
1610 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1611
1612         * profile-count.h (profile_count::max): Work on profiles of different
1613         type.
1614         (profile_count::apply_scale): Be sure that ret is not local or global0
1615         type if num is global.
1616
1617 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1618
1619         * profile-count.h (profile_count::max): Work on profiles of different
1620         type.
1621         (profile_count::apply_scale): Be sure that ret is not local or global0
1622         type if num is global.
1623
1624 2019-11-28  Martin Jambor  <mjambor@suse.cz>
1625
1626         PR ipa/92697
1627         * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1628         ifunc_resolvers.
1629         * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1630         Removed trailig whitespace.
1631
1632 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1633
1634         * profile-count.h (profile_count::combine_with_ipa_count_within):
1635         Declare.
1636         * profile-count.c (profile_count::combine_with_ipa_count_within):
1637         New.
1638         * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1639         it.
1640
1641 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1642
1643         * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1644         of counters are done same way.
1645
1646 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1647
1648         * ipa-cp.c (update_profiling_info): Fix scaling.
1649
1650 2019-11-28  Richard Biener  <rguenther@suse.de>
1651
1652         PR tree-optimization/92645
1653         * tree-inline.c (remap_gimple_stmt): When the return value
1654         is not wanted, elide GIMPLE_RETURN.
1655
1656 2019-11-28  Richard Biener  <rguenther@suse.de>
1657
1658         PR tree-optimization/92645
1659         * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1660         conversions inside a mode class.  Remove restriction on
1661         preserving the element size.
1662         (simplify_vector_constructor): Deal with the above and for
1663         identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1664         and VEC_PACK_TRUNC_EXPR.
1665
1666 2019-11-28  Georg-Johann Lay  <avr@gjlay.de>
1667
1668         Must use push insn to pass varargs arguments of DFmode because
1669         otherwise the middle-end generates wrong code.
1670
1671         PR target/92055
1672         * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1673
1674 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
1675
1676         PR tree-optimization/92691
1677         * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1678         in function comment.
1679         (strlen_check_and_optimize_call): Likewise.  For handle_printf_call
1680         calls, return !handle_printf_call rather than always returning true.
1681         (check_and_optimize_stmt): Describe return value meaning in function
1682         comment.  Formatting fix.
1683
1684 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
1685
1686         * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1687         combination of globa0 and global counters..
1688
1689 2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>
1690
1691         PR target/92566
1692         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1693         by VECTOR_UNIT_NONE_P instead.
1694
1695 2019-11-28  Hongtao Liu  <hongtao.liu@inte.com>
1696
1697         * config/i386/sse.md (avx512f_maskcmp<mode>3):
1698         Refine VF to VF_AVX512VL.
1699
1700 2019-11-27  Michael Meissner  <meissner@linux.ibm.com>
1701
1702         * config/rs6000/rs6000.md (movsi_internal): Reformat.
1703         (movdi_internal64): Reformat.
1704
1705 2019-11-27  Peter Bergner <bergner@linux.ibm.com>
1706
1707         PR bootstrap/92661
1708         * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1709         builtin if we don't have an actual type.
1710         (builtin_function_type): If the builtin function uses a DFP type
1711         and decimal float has been disabled, then return NULL_TREE.
1712
1713 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
1714
1715         PR rtl-optimization/92510
1716         * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1717         of comparison into a comparison with different mode if both imode and
1718         omode are scalar integral modes.
1719
1720 2019-11-27  Vladimir Makarov  <vmakarov@redhat.com>
1721
1722         PR rtl-optimization/90007
1723         * recog.c (constrain_operands): Permit hard registers too for
1724         memory when LRA is used.
1725
1726 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
1727
1728         * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1729         between Coldfire and regular m68k.
1730         * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1731
1732 2019-11-27  Richard Biener  <rguenther@suse.de>
1733
1734         * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1735         * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1736         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1737         * optabs-tree.c (supportable_convert_operation): Do not call
1738         targetm.vectorize.builtin_conversion.  Remove unused decl parameter.
1739         * optabs-tree.h (supportable_convert_operation): Adjust.
1740         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1741         * doc/tm.texi: Regenerate.
1742         * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1743         * tree-vect-generic.c (expand_vector_conversion): Likewise.
1744         * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1745         unused decl parameter and adjust.
1746         (vect_create_vectorized_promotion_stmts): Likewise.
1747         (vectorizable_conversion): Adjust.
1748
1749 2019-11-27  Richard Biener  <rguenther@suse.de>
1750
1751         PR tree-optimization/92690
1752         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1753         converting elements not originally converted.
1754
1755 2019-11-27  Tobias Burnus  <tobias@codesourcery.com>
1756
1757         PR middle-end/92463
1758         * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1759         do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1760         mpfr_rnd_t instead of mp_rnd_t.
1761         * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1762         do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1763         * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1764         Use mpfr_exp_t instead of mp_exp_t.
1765         * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1766         MPFR_RNDx instead of GMP_RNDx.
1767         * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1768         mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1769         * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1770         of mp_rnd_t and remove MPFR_RNDx poisoning.
1771         * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1772
1773 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
1774
1775         PR tree-optimization/91790
1776         * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1777         DR for vect_setup_realignment when first_stmt_info is different
1778         from first_stmt_info_for_drptr.
1779
1780 2019-11-27  Richard Biener  <rguenther@suse.de>
1781
1782         PR tree-optimization/92645
1783         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1784         CTORs with just a subset of the original vectors.
1785
1786 2019-11-27  Richard Biener  <rguenther@suse.de>
1787
1788         PR middle-end/92674
1789         * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1790         edges and instead record blocks in bitmap.
1791         (gimple_expand_calls_inline): Adjust.
1792         (fold_marked_statements): Delay EH cleanup until all folding is
1793         done.
1794         (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1795         inlining finished.
1796
1797 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
1798
1799         * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1800         LRA is enabled.
1801         * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1802         disabled.
1803
1804 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
1805
1806         PR debug/92664
1807         * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1808
1809 2019-11-26  Martin Sebor  <msebor@redhat.com>
1810
1811         PR tree-optimization/92683
1812         * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1813         inadvertently removed in a previous change.  Rename local variable
1814         for clarity.
1815
1816 2019-11-26  Richard Biener  <rguenther@suse.de>
1817
1818         PR middle-end/92669
1819         * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1820         NULL pre_order.
1821
1822 2019-11-26  Robin Dapp  <rdapp@linux.ibm.com>
1823
1824         * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1825
1826 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
1827
1828         PR tree-optimization/92644
1829         * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1830         next to INTEGER_CST checks.
1831
1832 2019-11-26  Richard Biener  <rguenther@suse.de>
1833
1834         PR tree-optimization/92645
1835         * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1836         do not build the operation from scalars if the operand is.
1837
1838 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
1839
1840         * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1841         func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1842         definitions.
1843
1844 2019-11-25  Martin Liska  <mliska@suse.cz>
1845
1846         * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1847         up used dump message.
1848
1849 2019-11-25  Martin Liska  <mliska@suse.cz>
1850
1851         PR bootstrap/92653
1852         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1853         too strict checking assert.
1854
1855 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1856
1857         PR c/91985
1858         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1859         (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1860         error_mark_node if corresponding global tree node is NULL.
1861         * tree.c (build_common_tree_nodes): Do not initialize
1862         dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1863         decimal floating-point not supported.
1864
1865 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
1866
1867         * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1868         types.
1869
1870 2019-11-25  Bernd Schmidt  <bernds_cb1@t-online.de>
1871
1872         * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1873         Replace code for non-CONST_INT constants with gcc_unreachable.
1874         * config/m68k/m68k.md (cbranchdi): Don't generate individual
1875         compare and test.
1876         (CMPMODE): New mode_iterator.
1877         (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1878         cbranch<mode>4.
1879         (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1880         cstore<mode>4.
1881         (cmp<mode>_68881): Remove 'F' constraint from first comparison
1882         operand.
1883         (bit test insns patterns): Use nonimmediate_operand, not
1884         register_operand, for source operands that allow memory in
1885         their constraints.
1886         (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1887         Use register_operand, not nonimmediate_operand, for the
1888         destinations.
1889         (DBCC): New mode_iterator.
1890         (dbcc peepholes): Use it to reduce duplication.
1891         (trap): Use const_true_rtx, not const1_rtx.
1892         * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1893         from m68k_subword_comparison_operand and changed to handle
1894         SImode.
1895
1896         PR target/91851
1897         * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1898         declaration.
1899         (m68k_init_cc): New declaration.
1900         (m68k_output_compare_di, m68k_output_compare_si)
1901         (m68k_output_compare_hi, m68k_output_compare_qi)
1902         (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1903         (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1904         (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1905         m68k_output_branch_float, m68k_output_branch_float_rev):
1906         Likewise.
1907         (valid_dbcc_comparison_p_2, flags_in_68881)
1908         (output_btst): Remove declaration.
1909         * config/m68k/m68k.c (INCLDUE_STRING): Define.
1910         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1911         (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1912         (flags_compare_op0, flags_compare_op1, flags_operand1,
1913         flags_operand2, flags_valid): New static variables.
1914         (m68k_find_flags_value, m68k_init_cc): New functions.
1915         (handle_flags_for_move, m68k_asm_final_postscan_insn,
1916         remember_compare_flags): New static functions.
1917         (output_dbcc_and_branch): New argument CODE.  Use it, and add
1918         PLUS and MINUS to the possible codes.  All callers changed.
1919         (m68k_output_btst): Renamed from output_btst.  Remove OPERANDS
1920         and INSN arguments, add CODE arg.  Return the comparison code
1921         to use.  All callers changed.  Use CODE instead of
1922         next_insn_tests_no_inequality, and replace cc_status management
1923         with changing the return code.
1924         (m68k_rtx_costs): Instead of testing for COMPARE, test for
1925         RTX_COMPARE or RTX_COMM_COMPARE.
1926         (output_move_simode, output_move_qimode): Call
1927         handle_flags_for_move.
1928         (notice_update_cc): Delete function.
1929         (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1930         m68k_output_compare_hi, m68k_output_compare_qi,
1931         m68k_output_compare_fp, m68k_output_branch_integer,
1932         m68k_output_branch_integer_rev, m68k_output_scc,
1933         m68k_output_branch_float, m68k_output_branch_float_rev,
1934         m68k_output_scc_float): New functions.
1935         (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1936         once at the start, and set flags_valid and flags_operand1 if the
1937         flags are usable.
1938         * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1939         CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1940         definitions.
1941         (CC_STATUS_INIT): Define.
1942         * config/m68k/m68k.md (flags_valid): New define_attr.
1943         (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1944         tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1945         cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1946         cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1947         tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1948         sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1949         sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1950         bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1951         ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1952         bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1953         blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1954         bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1955         bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1956         ctrapqi4, conditional_trap): Delete patterns.
1957         (cbranchdi4_insn): New pattern.
1958         (cbranchdi4): Don't generate cc0 patterns.  When testing LT or GE,
1959         test high part only.  When testing EQ or NE, generate beq0_di
1960         and bne0_di patterns directly.
1961         (cstoredi4): When testing LT or GE, test high part only.
1962         (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1963         patterns.
1964         (scc0_constraints, cmp1_constraints, cmp2_constraints,
1965         scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1966         cmp2_cf_predicate): New define_mode_attrs.
1967         (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1968         cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1969         cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1970         New patterns.
1971         (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1972         (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1973         cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1974         New patterns.
1975         (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1976         cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1977         Likewise.
1978         (BTST): New define_mode_iterator.
1979         (btst_predicate, btst_constraint, btst_range): New
1980         define_mode_attrs.
1981         (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1982         patterns.
1983         (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1984         unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1985         patterns): Set attr "flags_valid".
1986         (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1987         management.  Set attr "flags_valid".
1988         (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1989         extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1990         addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1991         addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1992         manual CC_STATUS management.
1993         (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1994         unnamed strict_lowpart subhi and subqi patterns): Set attr
1995         "flags_valid".
1996         (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1997         Remove code to operate on address regs and assert the case
1998         does not occur.
1999         (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
2000         manual CC_STATUS_INIT.
2001         (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
2002         xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
2003         negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
2004         one_cmplqi2, unnamed strict_lowpart patterns
2005         for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
2006         one_cmplhi and one_cmplqi): Set attr "flags_valid".
2007         (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
2008         (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
2009         CC_STATUS_INIT.
2010         (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
2011         lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
2012         rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
2013         unnamed strict_low_part patterns for HI and
2014         QI versions): Set attr "flags_valid".
2015         (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
2016         bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
2017         insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
2018         insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
2019         dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
2020         (various unnamed peepholes): Adjust compare/branch sequences
2021         for new cbranch patterns.
2022         (dbcc peepholes): Likewise, and output the comparison here
2023         as well.
2024         * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
2025         (fp_src_operand): Allow constant zero.
2026         (address_reg_operand): New predicate.
2027
2028         * rtl.h (inequality_comparisons_p): Remove declaration.
2029         * recog.h (next_insn_tests_no_inequality): Likewise.
2030         * rtlanal.c (inequality_comparisons_p): Delete function.
2031         * recog.c (next_insn_tests_no_inequality): Likewise.
2032
2033 2019-11-25  Richard Biener  <rguenther@suse.de>
2034
2035         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
2036         (vect_detect_hybrid_slp): Swap lane and instance iteration,
2037         properly re-building the visited hash-map for each lane.
2038
2039 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
2040
2041         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
2042         gcn_md_reorg): Remove unused variables.
2043         (gcn_emutls_var_init): Add missing (but unreachable) return
2044         to silence warning.
2045         (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
2046         target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
2047         an uninitialized variable.
2048
2049 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2050
2051         PR ipa/92109
2052         * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
2053         * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
2054         (cgraph_materialize_clone): Move removel from clone tree to the
2055         the new method and use it instead.
2056         * ipa.c (symbol_table::remove_unreachable_nodes): When removing
2057         bodies of clones, also remove it from the clone tree.
2058
2059 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2060
2061         PR ipa/91956
2062         * ipa-sra.c (process_isra_node_results): Put the new node to the
2063         same comdat group as the original node.
2064
2065 2019-11-25  Georg-Johann Lay  <avr@gjlay.de>
2066
2067         Build double32 / long-double32 multilibs if needed.
2068
2069         PR target/92055
2070         * config/avr/t-avr:
2071         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
2072         (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
2073         (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
2074         tm_defines and pass to genmultilib.awk.
2075         * config/avr/genmultilib.awk: Use these variables to add double32
2076         and / or long-double32 multilib(s) as needed.
2077         * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
2078
2079 2019-11-25  Richard Biener  <rguenther@suse.de>
2080
2081         * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
2082         loop body, defaulted to NULL.
2083         (single_likely_exit): Add exit vector argument
2084         * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
2085         (number_of_iterations_exit): Likewise.
2086         (number_of_iterations_exit_assumptions): Likewise.
2087         * cfgloop.c (get_loop_exit_edges): Use passed in loop body
2088         if not NULL.
2089         * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
2090         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
2091         Compute exit vector around call to single_likely_exit.
2092         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
2093         loop body to loop_only_exit_p.
2094         * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
2095         caller.
2096         (number_of_iterations_exit_assumptions): Get loop body from caller
2097         if not NULL.
2098         (number_of_iterations_exit): Pass through new loop body arg.
2099         (infer_loop_bounds_from_undefined): Get loop body from caller.
2100         (estimate_numbers_of_iterations): Compute loop body once.
2101
2102 2019-11-25  Richard Biener  <rguenther@suse.de>
2103
2104         * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
2105         auto_bb_flag instead of an sbitmap for visited handling.
2106
2107 2019-11-25 Kewen Lin  <linkw@gcc.gnu.org>
2108
2109         * config/rs6000/vector.md (vector_fp_comparison_simple): New code
2110         iterator.
2111         (vector_fp_comparison_complex): Likewise.
2112         (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
2113         define_and_split.
2114         (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
2115         Likewise.
2116         (vector_lt<mode> for VEC_F): Refactor with
2117         vector_fp_comparison_simple.
2118         (vector_le<mode> for VEC_F): Likewise.
2119         (vector_unge<mode> for VEC_F): Likewise.
2120         (vector_unle<mode> for VEC_F): Likewise.
2121         (vector_ne<mode> for VEC_F): Likewise.
2122         (vector_ungt<mode> for VEC_F): Likewise.
2123         (vector_unlt<mode> for VEC_F): Likewise.
2124         (vector_ltgt<mode> for VEC_F): Refactor with
2125         vector_fp_comparison_complex.
2126         (vector_ordered<mode> for VEC_F): Likewise.
2127         (vector_uneq<mode> for VEC_F): Likewise.
2128         (vector_unordered<mode> for VEC_F): Likewise.
2129
2130 2019-11-24  Bernd Schmidt  <bernds_cb1@t-online.de>
2131
2132         * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
2133         COMPARE, representing an overflow detection.
2134
2135         * combine.c (combine_instructions): Record costs for jumps.
2136
2137         * combine.c (can_combine_p): Allow autoinc in jumps.
2138
2139 2019-11-23  Jan Hubicka  <hubicka@ucw.cz>
2140
2141         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
2142         * doc/invoke.texi (max-inline-insns-single-O2,
2143         inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
2144         early-inlining-insns-O2): Remove documentation.
2145         * ipa-fnsummary.c (analyze_function_body,
2146         compute_fn_summary): Use opt_for_fn when accessing parameters.
2147         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2148         inline_insns_auto, can_inline_edge_by_limits_p,
2149         want_early_inline_function_p, big_speedup_p,
2150         want_inline_small_function_p, want_inline_self_recursive_call_p,
2151         recursive_inlining, compute_max_insns, inline_small_functions):
2152         Likewise.
2153         * opts.c (default_options): Add -O3 defaults for
2154         OPT__param_early_inlining_insns_,
2155         OPT__param_inline_heuristics_hint_percent_,
2156         OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
2157         * params.opt (-param=early-inlining-insns-O2=,
2158         -param=inline-heuristics-hint-percent-O2=,
2159         -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
2160         -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
2161         -param=inline-min-speedup=, -param=inline-unit-growth=,
2162         -param=large-function-growth=, -param=large-stack-frame=,
2163         -param=large-stack-frame-growth=, -param=large-unit-insns=,
2164         -param=max-inline-insns-recursive=,
2165         -param=max-inline-insns-recursive-auto=,
2166         -param=max-inline-insns-single=,
2167         -param=max-inline-insns-size=, -param=max-inline-insns-small=,
2168         -param=max-inline-recursive-depth=,
2169         -param=max-inline-recursive-depth-auto=,
2170         -param=min-inline-recursive-probability=,
2171         -param=partial-inlining-entry-probability=,
2172         -param=uninlined-function-insns=, -param=uninlined-function-time=,
2173         -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
2174         Optimization.
2175
2176 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
2177
2178         * ipa-fnsummary.c: Fix comment typos.
2179         * ipa-ref.h: Likewise.
2180         * ipa-predicate.h: Likewise.
2181         * ipa-split.c: Likewise.
2182         * ipa-inline-analysis.c: Likewise.
2183         * ipa-predicate.c: Likewise.
2184         * ipa-devirt.c: Likewise.
2185         * ipa-icf.h: Likewise.
2186         * profile-count.c: Likewise.
2187         * ipa-icf.c: Likewise.
2188         (sem_function::equals_wpa): Fix typos in dump messages.
2189         * ipa-icf-gimple.h: Fix comment typos.
2190         * ipa-inline-transform.c: Likewise.
2191         * ipa-polymorphic-call.c: Likewise.
2192         * ipa-fnsummary.h: Likewise.
2193         * ipa-inline.c: Likewise.
2194         (dump_inline_stats): Fix typo in debug dump message.
2195         * profile-count.h: Fix comment typos.
2196
2197         PR target/92615
2198         * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2199         GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2200         register_operand, force x into register before storing it into dest.
2201         Formatting fix.
2202
2203         PR middle-end/83859
2204         * doc/extend.texi (attribute access): Fix a typo.
2205
2206         PR rtl-optimization/92610
2207         * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2208         cse_cfg_altered is set, even when tem is 0.
2209         (rest_of_handle_cse_after_global_opts): Likewise.
2210
2211 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
2212
2213         PR c++/92458
2214         * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2215         tree_hash): Move to ...
2216         * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2217         (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2218         types.
2219         (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2220
2221         PR tree-optimization/92618
2222         * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2223         containing the auto_vec and a tree.
2224         (undistribute_bitref_for_vector): Handle the case when element type
2225         of vec is not the same as type of the BIT_FIELD_REF.  Formatting
2226         fixes.
2227
2228 2019-11-22  Martin Sebor  <msebor@redhat.com>
2229
2230         PR middle-end/83859
2231         * attribs.h (struct attr_access): New.
2232         * attribs.c (decl_attributes): Add an informational note.
2233         * builtins.c (check_access): Make extern.  Consistently set no-warning
2234         after issuing a warning.  Handle calls through function pointers.  Set
2235         no-warning.
2236         * builtins.h (check_access): Declare.
2237         * calls.c (rdwr_access_hash): New type.
2238         (rdwr_map): Same.
2239         (init_attr_rdwr_indices): New function.
2240         (maybe_warn_rdwr_sizes): Same.
2241         (initialize_argument_information): Call init_attr_rdwr_indices.
2242         Call maybe_warn_rdwr_sizes.
2243         (get_size_range): Avoid null argument.
2244         * doc/extend.texi (attribute access): Document new attribute.
2245
2246 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2247
2248         * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2249         (ACC_LDS_SIZE): Define.
2250         (OTHER_LDS_SIZE): Define.
2251         (LDS_SIZE): Redefine using above.
2252         (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2253
2254 2019-11-22  Martin Sebor  <msebor@redhat.com>
2255
2256         PR middle-end/88226
2257         * builtins.c (check_nul_terminated_array): New function.
2258         (fold_builtin_0): Remove declaration.
2259         (fold_builtin_1): Same.
2260         (fold_builtin_2): Same.
2261         (fold_builtin_3): Same.
2262         (fold_builtin_strpbrk): Add argument.
2263         (fold_builtin_strspn): Same.
2264         (fold_builtin_strcspn): Same.
2265         (expand_builtin_strcat): Call it.  Remove unused argument.
2266         (expand_builtin_stpncpy): Same.
2267         (expand_builtin_strncat): Same.
2268         (expand_builtin_strncpy): Same.  Adjust indentation.
2269         (expand_builtin_strcmp): Same.
2270         (expand_builtin_strncmp): Same.
2271         (expand_builtin_fork_or_exec): Same.
2272         (expand_builtin): Handle more built-ins.
2273         (fold_builtin_2): Add argument.
2274         (fold_builtin_n): Make static.  Add argument.
2275         (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2276         (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2277         (fold_builtin_strpbrk): Add argument.  Call check_nul_terminated_array.
2278         (fold_call_stmt): Pass new argument to fold_builtin_n.
2279         * builtins.h: Correct a comment.
2280         * gimple-fold.c (gimple_fold_builtin_strchr): Call
2281         check_nul_terminated_array.
2282         * tree-ssa-strlen.c (handle_builtin_strlen): Call
2283         check_nul_terminated_array.
2284         (handle_builtin_strchr): Same.
2285         (handle_builtin_string_cmp): Same.
2286
2287 2019-11-22  Martin Sebor  <msebor@redhat.com>
2288
2289         PR tree-optimization/92501
2290         * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2291         handle unterminated arrays.  Rename local variables for clarity.
2292
2293 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2294
2295         * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2296         granulated_sgprs according to architecture.
2297
2298 2019-11-22  Jan Hubicka  <jh@suse.cz>
2299
2300         * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2301         * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2302         (memory_block_pool::reduce_free_list): ... this one.
2303         (memory_block_pool::trim): New static function.
2304         * memory-block.h (memory_block_pool::freelist_size): New constant
2305         (memory_block_pool::clear_free_list): Rename to ...
2306         (memory_block_pool::reduce_free_list): ... this one.
2307         (memory_block_pool::trim): Declare.
2308
2309 2019-11-22  Richard Sandiford  <richard.sandiford@arm.com>
2310
2311         * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2312         vect_cost_for_stmt.
2313         (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2314         here rather than...
2315         * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2316
2317 2019-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
2318
2319         * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2320         (bic_cmp0_noout): New pattern.
2321         (bic_cmp0): Likewise.
2322         (neg_scc_insn): Remove pattern.
2323         (not_scc_insn): Likewise.
2324
2325 2019-11-21  Harald van Dijk  <harald@gigawatt.nl>
2326
2327         * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2328
2329 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
2330
2331         * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2332         pedwarn instead of warning_at for fallthrough not preceding a case
2333         or default label.
2334
2335 2019-11-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2336
2337         PR tree-optimization/92608
2338         * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2339         of dyn_cast.
2340
2341 2019-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
2342
2343         * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2344         New predicate.
2345         * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2346         * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2347         special for FP comparisons that need a cror instruction eventually.
2348         (rs6000_emit_fp_cror): New function.
2349         (rs6000_emit_sCOND): Expand all floating point comparisons to one
2350         instruction, for normal FP modes, with HONOR_NANS.
2351         (rs6000_emit_cbranch): Reformat.
2352         * config/rs6000/rs6000.md (fp_rev): New iterator.
2353         (fp_two): New iterator.
2354         *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2355         *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2356         *cbranch_2insn: New define_insn_and_split.
2357
2358 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2359
2360         PR tree-optimization/92526
2361         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2362         versioning for alignment if the accesses do not have a consistent
2363         mask, rather than asserting that the masks are consistent.
2364
2365 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2366
2367         PR tree-optimization/92595
2368         * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2369         check.
2370         (vectorizable_store, vectorizable_load): Likewise.
2371
2372 2019-11-21  Jan Hubicka  <jh@suse.cz>
2373
2374         * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2375         (resolve_noninline_speculation, inline_small_functions): Avoid
2376         redundant updates.
2377
2378 2019-11-21  Richard Biener  <rguenther@suse.de>
2379
2380         * lra.c (lra_insn_recog_data_pool): New.
2381         (free_insn_recog_data): Adjust.
2382         (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2383         (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2384
2385 2019-11-21  Richard Biener  <rguenther@suse.de>
2386
2387         PR tree-optimization/92596
2388         * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2389
2390 2019-11-21  Jan Hubicka  <jh@suse.cz>
2391
2392         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2393         ready for some vectors to not be allocated.
2394         (evaluate_properties_for_edge): Document better; make
2395         known_vals and known_aggs caller allocated; avoid determining
2396         values of parameters which are not used.
2397         (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2398         known_aggs.
2399         * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2400         (do_estimate_edge_size): Likewise.
2401         (do_estimate_edge_hints): Likewise.
2402         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2403         values are not known.
2404         (ipa_release_agg_values): Add option to not release vector itself.
2405         * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2406
2407 2019-11-21  Richard Biener  <rguenther@suse.de>
2408
2409         * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2410         (loop_iterator::to_visit): Use an auto_vec with internal storage.
2411         (loop_iterator::loop_iterator): Adjust.
2412         * cfganal.c (compute_dominance_frontiers_1): Fold into...
2413         (compute_dominance_frontiers): ... this.  Hoist invariant
2414         get_immediate_dominator call.
2415         (compute_idf): Use a work-set instead of a work-list for more
2416         optimal iteration order and duplicate avoidance.
2417         * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2418         the vector all the time, instead pre-allocate the vector only
2419         once.
2420         (delete_update_ssa): Simplify.
2421         * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2422
2423 2019-11-21  Jakub Jelinek  <jakub@redhat.com>
2424
2425         PR tree-optimization/91355
2426         * tree-ssa-sink.c (select_best_block): Use >= rather than >
2427         for early_bb scaled count with best_bb count comparison.
2428
2429         * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2430         preffer -> prefer.
2431         * ipa-inline.c (edge_badness): Likewise.
2432         * lto-streamer.h (class lto_location_cache): Likewise.
2433         * tree-ssa-sink.c (select_best_block): Likewise.  Fix comment typos,
2434         gratutious -> gratuitous.
2435
2436 2019-11-21  Richard Biener  <rguenther@suse.de>
2437
2438         Revert
2439         2019-09-17  Richard Biener  <rguenther@suse.de>
2440
2441         PR tree-optimization/91790
2442         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2443         use the correct DR for setting up realignment.
2444
2445 2019-11-21  Richard Biener  <rguenther@suse.de>
2446
2447         * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2448         (equiv_class_obstack): New.
2449         (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2450         (perform_var_substitution): Initialize equiv_class_obstack.
2451         (free_var_substitution_info): Free equiv_class_obstack.
2452
2453 2019-11-20  Jan Hubicka  <jh@suse.cz>
2454
2455         * ipa-inline.c (want_early_inline_function_p): Do not estimate
2456         edge growth when callee function is very large.
2457         * ipa-inline.h (estimate_min_edge_growth): New.
2458
2459 2019-11-20  Jan Hubicka  <jh@suse.cz>
2460
2461         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2462         negative time in calls summary; correct roundoff errors
2463         leading to negative times.
2464         (ipa_merge_fn_summary_after_inlining): Update calls size time table
2465         if present.
2466         (ipa_update_overall_fn_summary): Add RESET parameter.
2467         * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2468         * ipa-inline-transform.c (inline_call): Enable incremental updates.
2469
2470 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
2471
2472         * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2473         def types for two-operation SLP.
2474
2475 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
2476
2477         PR testsuite/92366
2478         * doc/sourcebuild.texi (vect_char_add): Document.
2479
2480 2019-11-20  Alexandre Oliva <oliva@adacore.com>
2481
2482         * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2483         * function.c (record_final_call): Record even calls that might
2484         have been in the cgraph.
2485         * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2486         callees.
2487
2488 2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>
2489
2490         * configure.ac: Use https for gcc.gnu.org
2491         * configure: Regenerated.
2492         * doc/install.texi: Use https for gcc.gnu.org.
2493         * doc/sourcebuild.texi: Likewise.
2494
2495 2019-11-20  Julian Brown  <julian@codesourcery.com>
2496
2497         * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2498
2499 2019-11-20  Jan Hubicka  <jh@suse.cz>
2500
2501         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2502         parameter and update call_size_time_table.
2503         (ipa_fn_summary::max_size_time_table_size): New constant.
2504         (estimate_calls_size_and_time_1): Break out from ...
2505         (estimate_calls_size_and_time): ... here; implement summary production.
2506         (summarize_calls_size_and_time): New function.
2507         (ipa_call_context::estimate_size_and_time): Bypass
2508         estimate_calls_size_and_time for leaf functions.
2509         (ipa_update_overall_fn_summary): Likewise.
2510         * ipa-fnsummary.h (call_size_time_table): New.
2511         (ipa_fn_summary::account_size_time): Update prototype.
2512
2513 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
2514
2515         * doc/invoke.texi (-Wc11-c2x-compat): Document.
2516
2517 2019-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
2518
2519         PR85678
2520         * common.opt (fcommon): Change init to 1.
2521         * doc/invoke.texi (-fcommon): Update documentation.
2522
2523 2019-11-20  Jan Hubicka  <jh@suse.cz>
2524
2525         * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2526         to ordinary array.
2527
2528 2019-11-20  Jan Hubicka  <jh@suse.cz>
2529
2530         * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2531         Add allocator parameter.
2532         (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2533         (fibonacci_heap<K,V>::m_allocator): New.
2534         (fibonacci_heap<K,V>::m_own_allocator): New.
2535         (fibonacci_heap<K,V>::insert): Use allocator.
2536         (fibonacci_heap<K,V>::extract_min): Likewise.
2537         (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2538         allocator.
2539         (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2540         on stack.
2541         * fibonacci_heap.c: Include alloc-pool
2542         (test_empty_heap): Initialize allocator.
2543         (test_union): Likewise.
2544         * bb-reorder.c: Include alloc-pool.h.
2545         * tracer.c: Inlclude alloc-pool.h.
2546
2547 2019-11-20  Jan Hubicka  <jh@suse.cz>
2548
2549         * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2550         Preallocate for 32 entries.
2551         (DFS::worklist): Likewise.
2552         (DFS::DFS): Do not initialize sccstack and worklist.
2553         (DFS::~DFS): Do not release sccstack.
2554
2555 2019-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
2556
2557         PR target/92573
2558         * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2559         Handle UNORDERED if !HONOR_NANS.
2560
2561 2019-11-20  Jan Hubicka  <jh@suse.cz>
2562
2563         * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2564         (edge_badness): ... here.
2565         (inline_small_functions): Use monotonicity of badness calculation
2566         to avoid redundant updates.
2567
2568 2019-11-20  Richard Biener  <rguenther@suse.de>
2569
2570         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2571         constructors we are actually analyzing.
2572         (vect_slp_check_for_constructors): Do not vectorize uniform
2573         constuctors, do not dump here.
2574
2575 2019-11-20  Richard Biener  <rguenther@suse.de>
2576
2577         PR tree-optimization/92537
2578         * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2579         vectorization validity check...
2580         (vect_slp_analyze_operations): ... here.
2581
2582 2019-11-20  Claudiu Zissulescu  <claziss@synopsys.com>
2583
2584         * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2585         (make_pass_arc_predicate_delay_insns): Likewise.
2586         * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2587         method, remove clone.
2588         (class pass_arc_predicate_delay_insns): Likewise.
2589         (arc_init): Remove registering of ARC specific passes.
2590         * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2591         * config/arc/arc-passes.def: New file.
2592
2593 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
2594
2595         PR middle-end/90840
2596         * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2597         and has a mode that doesn't have corresponding integral type.
2598
2599         PR target/90867
2600         * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2601         clear opts->x_ix86_isa_flags{,2} here...
2602         (ix86_valid_target_attribute_inner_p): ... but here when seeing
2603         arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.
2604
2605         PR c/90898
2606         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2607         assertion.
2608         (insert_clobbers_for_var): Fix a typo in function comment.
2609
2610 2019-11-20  Jiangning Liu  <jiangning.liu@amperecomputing.com>
2611             Jakub Jelinek  <jakub@redhat.com>
2612
2613         PR middle-end/91195
2614         * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2615         earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
2616         load.
2617
2618 2019-11-20  Georg-Johann Lay  <avr@gjlay.de>
2619
2620         Make 0-series device specs work with older versions of avr-gcc.
2621
2622         PR target/92545
2623         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2624         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2625         <*link_pm_base_address>: Don't write spec.
2626         <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2627
2628 2019-11-20  Richard Biener  <rguenther@suse.de>
2629
2630         PR c/92088
2631         * builtins.c (compute_objsize): Deal with VLAs.
2632
2633 2019-11-19  Pat Haugen  <pthaugen@us.ibm.com>
2634
2635         * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2636         from common code.
2637         (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2638         call new function.
2639         (power9_sched_reorder2): Call new function.
2640         (rs6000_sched_reorder2): Likewise.
2641
2642 2019-11-18  Jan Hubicka  <jh@suse.cz>
2643
2644         * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2645         (estimate_calls_size_and_time): Update.
2646
2647 2019-11-18  Jan Hubicka  <jh@suse.cz>
2648
2649         * ipa-inline.c (inlining_speedup): New function.
2650         (edge_badness): Use it.
2651
2652 2019-11-19  Zoran Jovanovic <zoran.jovanovic@mips.com>
2653                         Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
2654
2655         * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2656         Mark as not having "likely" version.
2657         * config/mips/mips.md (insn_count): The simd_div instruction with
2658         TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2659         (can_delay): Exclude simd_branch.
2660         (defile_delay *): Add simd_branch instructions.
2661         They have one regular delay slot.
2662
2663 2019-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2664
2665         Revert:
2666         2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2667
2668         * cse.c (cse_insn): Delete no-op register moves too.
2669         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2670         Take a second comparison to control the value for NE.
2671         (mask_to_comparison): Handle unsigned comparisons.
2672         (simplify_logical_relational_operation): Likewise.  Update call
2673         to comparison_to_mask.  Handle AND if !HONOR_NANs.
2674         (simplify_binary_operation_1): Call the above for AND too.
2675
2676 2019-11-19  Martin Liska  <mliska@suse.cz>
2677
2678         * toplev.c (general_init): Move the call...
2679         (toplev::main): ... here as we need init_options_struct
2680         being called.
2681
2682 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
2683
2684         PR target/79262
2685         * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2686         vec_to_scalar_cost.
2687
2688 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
2689
2690         * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2691         (armv7-a): Likewise.
2692         (armv7ve): Likewise.
2693
2694 2019-11-19  Richard Biener  <rguenther@suse.de>
2695
2696         PR tree-optimization/92581
2697         * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2698         condition reduction chains gather all conditions involved
2699         for computing the index reduction vector.
2700
2701 2019-11-19  Dennis Zhang  <dennis.zhang@arm.com>
2702
2703         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2704         AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2705         AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2706         AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2707         AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2708         (aarch64_init_memtag_builtins): New.
2709         (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2710         (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2711         (aarch64_expand_builtin_memtag): New.
2712         (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2713         (AARCH64_BUILTIN_SUBCODE): New macro.
2714         (aarch64_resolve_overloaded_memtag): New.
2715         (aarch64_resolve_overloaded_builtin_general): New. Call
2716         aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2717         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2718         __ARM_FEATURE_MEMORY_TAGGING when enabled.
2719         (aarch64_resolve_overloaded_builtin): Call
2720         aarch64_resolve_overloaded_builtin_general.
2721         * config/aarch64/aarch64-protos.h
2722         (aarch64_resolve_overloaded_builtin_general): New declaration.
2723         * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2724         (TARGET_MEMTAG): Likewise.
2725         * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2726         (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2727         (irg, gmi, subp, addg, ldg, stg): New instructions.
2728         * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2729         (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2730         (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2731         (__arm_mte_get_tag): Likewise.
2732         * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2733         (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2734         * config/arm/types.md (memtag): New.
2735         * doc/invoke.texi (-memtag): Update description.
2736
2737 2019-11-19  Richard Henderson  <richard.henderson@linaro.org>
2738
2739         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2740         to define __GCC_ASM_FLAG_OUTPUTS__.
2741         * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2742         (arm_option_params_internal): Swap out targetm.md_asm_adjust
2743         depending on TARGET_THUMB1.
2744         * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2745
2746 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2747
2748         PR target/92549
2749         * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2750
2751         PR middle-end/91450
2752         * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2753         operand is negative and one non-negative, compare the non-negative
2754         one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
2755         don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2756         and s2 == 0, unless one of them is known to be negative.  Remove
2757         tem2 variable, use tem where tem2 has been used before.
2758
2759 2019-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2760
2761         * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2762
2763 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
2764
2765         PR tree-optimization/92557
2766         * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2767         vmode rather than asserting it always is.
2768
2769 2019-11-19  Richard Biener  <rguenther@suse.de>
2770
2771         PR tree-optimization/92554
2772         * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2773         for the actual condition stmt and deal with sign-changes.
2774
2775 2019-11-19  Richard Biener  <rguenther@suse.de>
2776
2777         PR tree-optimization/92555
2778         * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2779         for non-SLP stmts.
2780
2781 2019-11-19  Martin Liska  <mliska@suse.cz>
2782
2783         PR bootstrap/92540
2784         * config/riscv/riscv.c (riscv_address_insns): Initialize
2785         addr in order to remove boostrap -Wmaybe-uninitialized
2786         error.
2787
2788 2019-11-18  Martin Sebor  <msebor@redhat.com>
2789
2790         PR tree-optimization/92493
2791         * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2792         assignment.
2793
2794 2019-11-18  Giuliano Belinassi  <giuliano.belinassi@usp.br>
2795
2796         * cfgloop.c (get_loop_body_in_custom_order): New.
2797         * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2798         * tree-loop-distribution.c (class loop_distribution): New.
2799         (bb_top_order_cmp): Remove.
2800         (bb_top_order_cmp_r): New.
2801         (create_rdg_vertices): Move into class loop_distribution.
2802         (stmts_from_loop): Same as above.
2803         (update_for_merge): Same as above.
2804         (partition_merge_into): Same as above.
2805         (get_data_dependence): Same as above.
2806         (data_dep_in_cycle_p): Same as above.
2807         (update_type_for_merge): Same as above.
2808         (build_rdg_partition_for-vertex): Same as above.
2809         (classify_builtin_ldst): Same as above.
2810         (classify_partition): Same as above.
2811         (share_memory_accesses): Same as above.
2812         (rdg_build_partitions): Same as above.
2813         (pg_add_dependence_edges): Same as above.
2814         (build_partition_graph): Same as above.
2815         (merge_dep_scc_partitions): Same as above.
2816         (break_alias_scc_partitions): Same as above.
2817         (finalize_partitions): Same as above.
2818         (distribute_loop): Same as above.
2819         (bb_top_order_init): New method
2820         (bb_top_order_destroy): New method.
2821         (get_bb_top_order_index_size): New method.
2822         (get_bb_top_order_index_index): New method.
2823         (get_bb_top_order_index_index): New method.
2824         (loop_distribution::execute): New method.
2825         (pass_loop_distribution::execute): Instantiate loop_distribution.
2826
2827 2019-11-18  Jan Hubicka  <jh@suse.cz>
2828
2829         PR ipa/92508
2830         * ipa-inline.c (inline_small_functions): Add new edges after reseting
2831         caches.
2832         * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2833
2834 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2835
2836         * doc/sourcebuild.texi (vect_check_ptrs): Document.
2837         * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2838         * doc/md.texi: Document them.
2839         * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2840         internal functions.
2841         * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2842         * internal-fn.c (check_ptrs_direct): New macro.
2843         (expand_check_ptrs_optab_fn): Likewise.
2844         (direct_check_ptrs_optab_supported_p): Likewise.
2845         (internal_check_ptrs_fn_supported_p): New fuction.
2846         * tree-data-ref.c: Include internal-fn.h.
2847         (create_ifn_alias_checks): New function.
2848         (create_intersect_range_checks): Use it.
2849         * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2850         (optab, cmp_op): Handle it.
2851         (raw_war, unspec): New int attributes.
2852         * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2853         constants.
2854         * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2855         New predicate.
2856         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2857         expander.
2858         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2859         pattern.
2860
2861 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2862
2863         * tree.c (build_vector_from_ctor): Directly return a zero vector for
2864         empty constructors.
2865
2866 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2867
2868         * cse.c (cse_insn): Delete no-op register moves too.
2869         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2870         Take a second comparison to control the value for NE.
2871         (mask_to_comparison): Handle unsigned comparisons.
2872         (simplify_logical_relational_operation): Likewise.  Update call
2873         to comparison_to_mask.  Handle AND if !HONOR_NANs.
2874         (simplify_binary_operation_1): Call the above for AND too.
2875
2876 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2877
2878         * fold-const.c (native_encode_vector): Turn into a wrapper function,
2879         splitting the main code out into...
2880         (native_encode_vector_part): ...this new function.
2881         (native_decode_vector_tree): New function.
2882         (fold_view_convert_vector_encoding): Likewise.
2883         (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2884         to VECTOR_TYPEs.
2885
2886 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2887
2888         * tree-data-ref.c (create_intersect_range_checks_index): If the
2889         alias pair describes simple WAW and WAR dependencies, just check
2890         whether the first B access overlaps later A accesses.
2891         (create_waw_or_war_checks): New function that performs the same
2892         optimization on addresses.
2893         (create_intersect_range_checks): Call it.
2894
2895 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2896
2897         * lra-constraints.c (valid_address_p): Take the operand and a
2898         constraint as argument.  If the operand is a MEM and the constraint
2899         is a memory constraint, check whether the eliminated form of the
2900         MEM already satisfies the constraint.
2901         (process_address_1): Update calls accordingly.
2902
2903 2019-11-18  Tom Tromey  <tromey@adacore.com>
2904
2905         * doc/tm.texi: Rebuild.
2906         * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2907         * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2908
2909 2019-11-18  Richard Biener  <rguenther@suse.de>
2910
2911         PR tree-optimization/92516
2912         * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2913         argument, hoist bst_map creation/destruction to ...
2914         (vect_analyze_slp): ... here, forming a true graph with
2915         SLP instances being the entries.
2916         (vect_detect_hybrid_slp_stmts): Remove wrapper.
2917         (vect_detect_hybrid_slp): Use one visited set for all
2918         graph entries.
2919         (vect_slp_analyze_node_operations): Simplify visited/lvisited
2920         to hash-sets of slp_tree.
2921         (vect_slp_analyze_operations): Likewise.
2922         (vect_bb_slp_scalar_cost): Remove wrapper.
2923         (vect_bb_vectorization_profitable_p): Use one visited set for
2924         all graph entries.
2925         (vect_schedule_slp_instance): Elide bst_map use.
2926         (vect_schedule_slp): Likewise.
2927
2928 2019-11-18  Richard Biener  <rguenther@suse.de>
2929
2930         * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2931         was vectorized with just external refs fail.
2932
2933 2019-11-18  Martin Liska  <mliska@suse.cz>
2934
2935         PR ipa/92525
2936         * ipa-icf.c (sem_function::init): Unset m_checker
2937         at the end of the function.
2938
2939 2019-11-18  Richard Biener  <rguenther@suse.de>
2940
2941         PR tree-optimization/92558
2942         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2943         reducting the width of a reduction vector def update new_phis.
2944
2945 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2946
2947         * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2948         and s390*-*-linux-musl* targets.
2949         * configure: Regenerate.
2950
2951 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2952
2953         * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2954         (MUSL_DYNAMIC_LINKER64): Define.
2955
2956 2019-11-18  Martin Liska  <mliska@suse.cz>
2957
2958         * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2959         message for an unknown counter.
2960         (dbg_cnt_process_single_pair): Support 0 as minimum value.
2961         (dbg_cnt_process_opt): Remove unreachable code.
2962
2963 2019-11-18  Martin Liska  <mliska@suse.cz>
2964
2965         PR ipa/92529
2966         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2967         Compare LHS types of NOP_EXPR.
2968
2969 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
2970
2971         * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2972         "initial_pass_name" argument -- by running "*clean_state" pass.
2973         Also free the "initial_pass_name" when done.
2974
2975 2019-11-18  Richard Biener  <rguenther@suse.de>
2976
2977         PR rtl-optimization/92462
2978         * alias.c (find_base_term): Restrict the look through ANDs.
2979         (find_base_value): Likewise.
2980
2981 2019-11-18  Georg-Johann Lay  <avr@gjlay.de>
2982
2983         Add support for AVR devices from the 0-series.
2984
2985         PR target/92545
2986         * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2987         * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2988         * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2989         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2990         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2991         <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2992         for spec definitions.
2993         * doc/avr-mmcu.texi: Regenerate.
2994
2995 2019-11-18  Hongtao Liu  <hongtao.liu@intel.com>
2996
2997         PR target/92448
2998         * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2999         Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
3000         * config/i386/i386-option.c (ix86_vec_cost): Ditto.
3001         (ix86_reassociation_width): Ditto.
3002         * config/i386/i386-options.c (ix86_option_override_internal):
3003         Replace TARGET_AVX128_OPTIAML with
3004         ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
3005         * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
3006         (TARGET_AVX128_OPTIMAL): Deleted.
3007         * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
3008         DEF_TUNE.
3009
3010 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3011
3012         * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
3013         (@cceq_ior_compare_<mode> for GPR): ... this.  Allow GPR instead of
3014         just SI.
3015         (cceq_rev_compare): Rename to...
3016         (@cceq_rev_compare_<mode> for GPR): ... this.  Allow GPR instead of
3017         just SI.
3018         (define_split for <bd>tf_<mode>): Add SImode first argument to
3019         gen_cceq_ior_compare.
3020
3021 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3022
3023         * common/config/powerpcspe: Delete.
3024
3025 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3026
3027         * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
3028         output in UNSPEC_WRFFR.
3029
3030 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3031
3032         * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
3033         the index tests to have the form (unsigned T) (B - A + bias) <= limit.
3034
3035 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3036
3037         * tree-data-ref.c (create_intersect_range_checks_index)
3038         (create_intersect_range_checks): Print dump messages.
3039
3040 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3041
3042         * tree-data-ref.c (dump_alias_pair): New function.
3043         (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
3044
3045 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3046
3047         * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
3048         * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
3049         merging data references with different steps.
3050         (create_intersect_range_checks_index): Take a
3051         dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
3052         Bail out if DR_ALIAS_MIXED_STEPS is set.
3053         (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
3054         instead of two dr_with_seg_lens.  Update call to
3055         create_intersect_range_checks_index.
3056         (create_runtime_alias_checks): Update call accordingly.
3057
3058 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3059
3060         * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
3061         (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
3062         (dr_with_seg_len_pair_t::sequencing): New enum.
3063         (dr_with_seg_len_pair_t::flags): New member variable.
3064         (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
3065         parameter and initialize the flags member variable.
3066         * tree-loop-distribution.c (compute_alias_check_pairs): Update
3067         call accordingly.
3068         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3069         Ensure the two data references in an alias pair are in statement
3070         order, if there is a defined order.
3071         * tree-data-ref.c (prune_runtime_alias_test_list): Use
3072         DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
3073         swapped the references in a dr_with_seg_len_pair_t.  OR together
3074         the flags when merging two dr_with_seg_len_pair_ts.  After merging,
3075         try to restore the original dr_with_seg_len order, updating the
3076         flags if that fails.
3077
3078 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3079
3080         * tree-data-ref.c (prune_runtime_alias_test_list): Delay
3081         swapping the dr_as based on init values until we've decided
3082         whether to merge them.
3083
3084 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3085
3086         * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
3087         two accesses in each dr_with_seg_len_pair_t before trying to
3088         combine separate dr_with_seg_len_pair_ts.
3089         * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
3090         that here.
3091         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3092
3093 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3094
3095         * config/aarch64/aarch64-sve.md
3096         (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3097         (scatter_store<SVE_24:mode><v_int_container>): ...this.
3098         (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3099         (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
3100         (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3101         (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
3102         (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
3103         pattern.
3104         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3105         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3106         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3107         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3108
3109 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3110
3111         * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
3112         (SVE_4HSI): New mode iterators.
3113         (ANY_EXTEND2): New code iterator.
3114         * config/aarch64/aarch64-sve.md
3115         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
3116         Extend to...
3117         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
3118         ...this, handling extension to partial modes as well as full modes.
3119         Describe the extension as a predicated rather than unpredicated
3120         extension.
3121         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3122         Likewise extend to...
3123         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
3124         ...this, making the same adjustments.
3125         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3126         Likewise extend to...
3127         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
3128         ...this, making the same adjustments.
3129         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3130         Likewise extend to...
3131         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
3132         ...this, making the same adjustments.
3133         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
3134         New pattern.
3135         (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
3136         extension predicate.
3137         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3138         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3139         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3140         Describe the extension as a predicated rather than unpredicated
3141         extension.
3142         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3143         Likewise.  Canonicalize to a constant extension predicate.
3144         * config/aarch64/aarch64-sve-builtins-base.cc
3145         (svld1_gather_extend_impl::expand): Add an extra predicate for
3146         the extension.
3147         (svldff1_gather_extend_impl::expand): Likewise.
3148
3149 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3150
3151         * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
3152         iterators.
3153         * config/aarch64/aarch64-sve.md
3154         (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3155         (gather_load<SVE_24:mode><v_int_container>): ...this.
3156         (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3157         (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
3158         (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3159         (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
3160         (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
3161         New pattern.
3162         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3163         (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3164         Allow the nominal extension predicate to be different from the
3165         load predicate.
3166         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3167         (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3168
3169 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3170
3171         * config/aarch64/aarch64-sve.md
3172         (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
3173         * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
3174         function.
3175         (aarch64_sve_adjust_stmt_cost): Call it.
3176
3177 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3178
3179         * config/aarch64/aarch64-sve.md
3180         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
3181         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3182         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3183         Combine into...
3184         (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3185         ...this new pattern, handling extension to partial modes as well
3186         as full modes.  Describe the extension as a predicated rather than
3187         unpredicated extension.
3188         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3189         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3190         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3191         Combine into...
3192         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3193         ...this new pattern, handling extension to partial modes as well
3194         as full modes.  Describe the extension as a predicated rather than
3195         unpredicated extension.
3196         * config/aarch64/aarch64-sve-builtins.cc
3197         (function_expander::use_contiguous_load_insn): Add an extra
3198         predicate for extending loads.
3199         * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3200         (aarch64_sve_adjust_stmt_cost): Likewise.
3201         (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3202         the cost of SVE vector stmts.
3203
3204 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3205
3206         * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3207         (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3208         * config/aarch64/aarch64-sve.md
3209         (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3210         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3211         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3212         comment.  Avoid new narrower_mask ambiguity.
3213         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3214         (*cond_uxt<mode>_2): Update comment.
3215         (*cond_uxt<mode>_any): Likewise.
3216
3217 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3218
3219         * config/aarch64/aarch64-modes.def: Define partial SVE vector
3220         float modes.
3221         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3222         function.
3223         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3224         new vector float modes.
3225         (aarch64_sve_container_bits): New function.
3226         (aarch64_sve_pred_mode): Likewise.
3227         (aarch64_get_mask_mode): Use it.
3228         (aarch64_sve_element_int_mode): Handle structure modes and partial
3229         modes.
3230         (aarch64_sve_container_int_mode): New function.
3231         (aarch64_vectorize_related_mode): Return SVE modes when given
3232         SVE modes.  Handle partial modes, taking the preferred number
3233         of units from the size of the given mode.
3234         (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3235         in registers.
3236         (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3237         (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3238         (aarch64_split_sve_subreg_move): Use the mode form of
3239         aarch64_sve_pred_mode.
3240         (aarch64_secondary_reload): Handle partial modes in the same way
3241         as full big-endian vectors.
3242         (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3243         (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3244         merging with the Advanced SIMD modes.  If two modes have the
3245         same size, try the Advanced SIMD mode first.
3246         (aarch64_simd_valid_immediate): Use the container rather than
3247         the element mode for INDEX constants.
3248         (aarch64_simd_vector_alignment): Make the alignment of partial
3249         SVE vector modes the same as their minimum size.
3250         (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3251         * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3252         (mov<SVE_ALL:mode>): ...this.
3253         (movmisalign<SVE_FULL:mode>): Extend to...
3254         (movmisalign<SVE_ALL:mode>): ...this.
3255         (*aarch64_sve_mov<mode>_le): Rename to...
3256         (*aarch64_sve_mov<mode>_ldr_str): ...this.
3257         (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3258         (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this.  Handle
3259         partial modes regardless of endianness.
3260         (aarch64_sve_reload_be): Rename to...
3261         (aarch64_sve_reload_mem): ...this and enable for little-endian.
3262         Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3263         (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3264         (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3265         (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3266         (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3267         (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3268         (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3269         (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3270         (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3271         (maskload<SVE_FULL:mode><vpred>): Extend to...
3272         (maskload<SVE_ALL:mode><vpred>): ...this.
3273         (maskstore<SVE_FULL:mode><vpred>): Extend to...
3274         (maskstore<SVE_ALL:mode><vpred>): ...this.
3275         (vec_duplicate<SVE_FULL:mode>): Extend to...
3276         (vec_duplicate<SVE_ALL:mode>): ...this.
3277         (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3278         (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3279         (sve_ld1r<SVE_FULL:mode>): Extend to...
3280         (sve_ld1r<SVE_ALL:mode>): ...this.
3281         (vec_series<SVE_FULL_I:mode>): Extend to...
3282         (vec_series<SVE_I:mode>): ...this.
3283         (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3284         (*vec_series<SVE_I:mode>_plus): ...this.
3285         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3286         new VPRED ambiguity.
3287         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3288         (add<SVE_FULL_I:mode>3): Extend to...
3289         (add<SVE_I:mode>3): ...this.
3290         * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3291         (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3292         (VPRED, vpred): Likewise.
3293         (Vctype): New iterator.
3294         (vw): Remove SVE modes.
3295
3296 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3297
3298         * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3299         (SVE_PARTIAL_I): ...this.
3300         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3301
3302 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3303
3304         * config/aarch64/iterators.md (SVE_ALL): Rename to...
3305         (SVE_FULL): ...this.
3306         (SVE_I): Rename to...
3307         (SVE_FULL_I): ...this.
3308         (SVE_F): Rename to...
3309         (SVE_FULL_F): ...this.
3310         (SVE_BHSI): Rename to...
3311         (SVE_FULL_BHSI): ...this.
3312         (SVE_HSD): Rename to...
3313         (SVE_FULL_HSD): ...this.
3314         (SVE_HSDI): Rename to...
3315         (SVE_FULL_HSDI): ...this.
3316         (SVE_HSF): Rename to...
3317         (SVE_FULL_HSF): ...this.
3318         (SVE_SD): Rename to...
3319         (SVE_FULL_SD): ...this.
3320         (SVE_SDI): Rename to...
3321         (SVE_FULL_SDI): ...this.
3322         (SVE_SDF): Rename to...
3323         (SVE_FULL_SDF): ...this.
3324         (SVE_S): Rename to...
3325         (SVE_FULL_S): ...this.
3326         (SVE_D): Rename to...
3327         (SVE_FULL_D): ...this.
3328         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3329         * config/aarch64/aarch64-sve2.md: Likewise.
3330
3331 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3332
3333         * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3334         New option.
3335         * doc/invoke.texi: Document it.
3336         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3337         By default, return VECT_COMPARE_COSTS for SVE.
3338
3339 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3340
3341         * target.h (VECT_COMPARE_COSTS): New constant.
3342         * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3343         * doc/tm.texi: Regenerate.
3344         * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3345         * targhooks.c (default_autovectorize_vector_modes): Likewise.
3346         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3347         Likewise.
3348         * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3349         * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3350         * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3351         * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3352         * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3353         (_loop_vec_info::vec_inside_cost): New member variables.
3354         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3355         (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3356         (vect_analyze_loop): When autovectorize_vector_modes returns
3357         VECT_COMPARE_COSTS, try vectorizing the loop with each available
3358         vector mode and picking the one with the lowest cost.
3359         (vect_estimate_min_profitable_iters): Record the computed costs
3360         in the loop_vec_info.
3361
3362 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3363
3364         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3365         element type rather than an element mode.
3366         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3367         Use get_vectype_for_scalar_type to query the natural types
3368         for a given element type rather than basing everything on
3369         GET_MODE_SIZE (vinfo->vector_mode).  Limit int_mode_for_size
3370         query to MAX_FIXED_MODE_SIZE.
3371         (duplicate_and_interleave): Update call accordingly.
3372         * tree-vect-loop.c (vectorizable_reduction): Likewise.
3373
3374 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3375
3376         * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3377         optional maximum nunits.
3378         (get_vectype_for_scalar_type): Likewise.  Also declare a form that
3379         takes an slp_tree.
3380         (get_mask_type_for_scalar_type): Take an optional slp_tree.
3381         (vect_get_mask_type_for_stmt): Likewise.
3382         * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3383         the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3384         * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3385         vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3386         to get an assumed vector type for data references.
3387         * tree-vect-slp.c (vect_update_shared_vectype): New function.
3388         (vect_update_all_shared_vectypes): Likewise.
3389         (vect_build_slp_tree_1): Pass the group size to
3390         vect_get_vector_types_for_stmt.  Use vect_update_shared_vectype
3391         for BB vectorization.
3392         (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3393         before building the vectof from scalars.
3394         (vect_analyze_slp_instance): Pass the group size to
3395         get_vectype_for_scalar_type.
3396         (vect_slp_analyze_node_operations_1): Don't recompute the vector
3397         types for BB vectorization here; just handle the case in which
3398         we deferred the choice for booleans.
3399         (vect_get_constant_vectors): Pass the slp_tree to
3400         get_vectype_for_scalar_type.
3401         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3402         (vectorizable_call): Likewise.
3403         (vectorizable_simd_clone_call): Likewise.
3404         (vectorizable_conversion): Likewise.
3405         (vectorizable_shift): Likewise.
3406         (vectorizable_operation): Likewise.
3407         (vectorizable_comparison): Likewise.
3408         (vect_is_simple_cond): Take the slp_tree as argument and
3409         pass it to get_vectype_for_scalar_type.
3410         (vectorizable_condition): Update call accordingly.
3411         (get_vectype_for_scalar_type): Take a group_size argument.
3412         For BB vectorization, limit the the vector to that number
3413         of elements.  Also define an overload that takes an slp_tree.
3414         (get_mask_type_for_scalar_type): Add an slp_tree argument and
3415         pass it to get_vectype_for_scalar_type.
3416         (vect_get_vector_types_for_stmt): Add a group_size argument
3417         and pass it to get_vectype_for_scalar_type.  Don't use the
3418         cached vector type for BB vectorization if a group size is given.
3419         Handle data references in that case.
3420         (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3421         pass it to get_mask_type_for_scalar_type.
3422
3423 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
3424
3425         * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3426         parameter.
3427         (estimate_edge_time): Use it.
3428         * ipa-inline-analysis.c (do_estimate_edge_time): Add
3429         ret_nonspec_time parameter.
3430
3431 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3432
3433         * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3434
3435 2019-11-15  Nick Clifton  <nickc@redhat.com>
3436             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3437
3438         PR target/65649
3439         * config/microblaze/microblaze.c (print_operand): Print value as long.
3440
3441 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
3442
3443         * ipa-inline.c (edge_badness, inline_small_functions): Revert
3444         accidental commit.
3445
3446 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3447
3448         * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3449         (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3450
3451 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3452
3453         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3454         (gcn_conditional_register_usage): Use constants in place of hard-coded
3455         values.
3456         (gcn_hsa_declare_function_name): Set lower bound for number of
3457         SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3458         MAX_NORMAL_VGPR_COUNT.
3459
3460 2019-11-15  Martin Jambor  <mjambor@suse.cz>
3461
3462         * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3463         declaration.
3464
3465 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3466
3467         * config/gcn/gcn.c (default_requested_args): New.
3468         (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3469         set with default_requested_args.
3470         (gcn_conditional_register_usage): Limit register usage of non-kernel
3471         functions.  Reassign fixed registers if a non-standard set of args is
3472         requested.
3473         * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3474
3475 2019-11-15  Feng Xue  <fxue@os.amperecomputing.com>
3476
3477         PR ipa/92528
3478         * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3479         aggregate jump function when inlined-to caller has no edge summary.
3480
3481 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3482
3483         * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3484
3485 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3486
3487         * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3488         prologue use of v0.
3489         (print_operand_address): Use v1 for zero vector offset.
3490
3491 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3492
3493         PR tree-optimization/92515
3494         * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3495         types when converting a vector/scalar shift into a vector/vector one,
3496         using tree_nop_conversion_p instead of useless_type_conversion_p.
3497         Move the conversion code to the transform block.
3498
3499 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3500
3501         * read-rtl-function.c
3502         (function_reader::add_fixup_source_location): Take additional
3503         parameter of a column.
3504         (function_reader::maybe_read_location): Optionally parse column
3505         information and pass to add_fixup_source_location.
3506
3507 2019-11-15  Richard Biener  <rguenther@suse.de>
3508
3509         PR tree-optimization/92512
3510         * tree-vect-loop.c (check_reduction_path): Fix operand index
3511         computability check.  Add check for second use in COND_EXPRs.
3512
3513 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3514
3515         PR target/92515
3516         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3517         VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3518
3519 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3520
3521         * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3522         register class for VCC_LO and VCC_HI.
3523         (gcn_spill_class): Use SGPR_REGS to spill registers in
3524         VCC_CONDITIONAL_REG.
3525
3526 2019-11-15  Richard Biener  <rguenther@suse.de>
3527
3528         PR tree-optimization/92324
3529         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3530         singedness of SLP reduction epilouge operations.  Also reduce
3531         the vector width for SLP reductions before doing elementwise
3532         operations if possible.
3533
3534 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3535
3536         * passes.c (skip_pass): Set epilogue_completed if skipping the
3537         pro_and_epilogue pass.
3538
3539 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
3540
3541         * passes.c (should_skip_pass_p): Always run "dfinish".
3542
3543 2019-11-15  Richard Biener  <rguenther@suse.de>
3544
3545         * ipa-inline.c (inline_small_functions): Move assignment
3546         to next before call destroying edge.
3547
3548 2019-11-15  Richard Biener  <rguenther@suse.de>
3549
3550         PR tree-optimization/92039
3551         PR tree-optimization/91975
3552         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3553         previous change, treat invariants consistently as non-constant.
3554         (tree_estimate_loop_size): Ternary ops with just the first op
3555         constant are not optimized away.
3556
3557 2019-11-15  Jakub Jelinek  <jakub@redhat.com>
3558
3559         * gimplify.c (gimplify_call_expr): Don't call
3560         omp_resolve_declare_variant after gimplification.
3561         * omp-general.c (omp_context_selector_matches): For isa that might
3562         match in some other function, defer if in declare simd function.
3563         (omp_context_compute_score): Don't look for " score" in construct
3564         trait set.  Set *score to -1 if it can't ever match.
3565         (omp_resolve_declare_variant): If any variants need to be deferred,
3566         don't punt immediately, but compute scores of all variants and if
3567         ther eis a score winner that doesn't need to be deferred, return that.
3568
3569 2019-11-15  Luo Xiong Hu  <luoxhu@linux.ibm.com>
3570
3571         * ipa-comdats.c: Fix comments typo.
3572         * ipa-profile.c: Fix comments typo.
3573         * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3574         __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3575         (gimple_gen_ic_func_profiler): Likewise.
3576         (pass_ipa_tree_profile::gate): Fix comments typo.
3577
3578 2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>
3579
3580         * ipa-inline.c (inline_small_functions): Update iterator of next.
3581
3582 2019-11-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3583
3584         * lra-spills.c (assign_spill_hard_regs): Check that the spill
3585         register is suitable for the mode.
3586
3587 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
3588
3589         * range-op.h (range_operator::fold_range): Return a bool.
3590         * range-op.cc (range_operator::wi_fold): Assert supported type.
3591         (range_operator::fold_range): Assert supported type and return true.
3592         (operator_equal::fold_range): Return true.
3593         (operator_not_equal::fold_range): Same.
3594         (operator_lt::fold_range): Same.
3595         (operator_le::fold_range): Same.
3596         (operator_gt::fold_range): Same.
3597         (operator_ge::fold_range): Same.
3598         (operator_plus::op1_range): Adjust call to fold_range.
3599         (operator_plus::op2_range): Same.
3600         (operator_minus::op1_range): Same.
3601         (operator_minus::op2_range): Same.
3602         (operator_exact_divide::op1_range): Same.
3603         (operator_lshift::fold_range): Return true and adjust fold_range call.
3604         (operator_rshift::fold_range): Same.
3605         (operator_cast::fold_range): Return true.
3606         (operator_logical_and::fold_range): Same.
3607         (operator_logical_or::fold_range): Same.
3608         (operator_logical_not::fold_range): Same.
3609         (operator_bitwise_not::fold_range): Adjust call to fold_range.
3610         (operator_bitwise_not::op1_range): Same.
3611         (operator_cst::fold_range): Return true.
3612         (operator_identity::fold_range): Return true.
3613         (operator_negate::fold_range): Return true and adjust fold_range call.
3614         (operator_addr_expr::fold_range): Return true.
3615         (operator_addr_expr::op1_range): Adjust call to fold_range.
3616         (range_cast): Same.
3617         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3618         (range_fold_unary_symbolics_p): Same.
3619
3620 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
3621
3622         PR tree-optimization/92506
3623         * range-op.cc (range_operator::fold_range): Start with range undefined.
3624         (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3625         overflow is varying.
3626
3627 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
3628
3629         * range-op.cc (*operator*::*range): Remove calls to
3630         range_intersect, range_invert, and range_union in favor of calling
3631         the in-place API methods.
3632         (range_tests): Same.
3633         * range.cc (range_intersect): Remove.
3634         (range_union): Remove.
3635         (range_invert): Remove.
3636         * range.h (range_intersect): Remove.
3637         (range_union): Remove.
3638         (range_intersect): Remove.
3639
3640 2019-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
3641
3642         PR rtl-optimization/92430
3643         * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3644         (pass_jump_after_combine::execute): Perform jump threading
3645         unconditionally.
3646
3647 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
3648             Doug Rupp <rupp@adacore.com>
3649             Olivier Hainque  <hainque@adacore.com>
3650
3651         * config.gcc: Collapse the arm-vxworks entries into
3652         a single arm-wrs-vxworks7* one, bpabi based.  Update
3653         the default cpu from arm8 to armv7-a
3654         * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3655         we always use ARM_UNWIND_INFO.
3656         (DWARF2_UNWIND_INFO): Remove redefinition.
3657         (ARM_TARGET2_DWARF_FORMAT): Likewise.
3658         (VXWORKS_PERSONALITY): Define, to "llvm".
3659         (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3660
3661 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
3662
3663         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3664         _VX_CPU instead of CPU and handle arm_arch8.
3665
3666 2019-11-14  Doug Rupp  <rupp@adacore.com>
3667             Olivier Hainque  <hainque@adacore.com>
3668             Jerome Lambourg  <lambourg@adacore.com>
3669
3670         * config.gcc: Handle aarch64*-wrs-vxworks7*.
3671         * config/aarch64/aarch64-vxworks.h: New file.
3672         * config/aarch64/t-aarch64-vxworks: New file.
3673
3674 2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
3675             Olivier Hainque  <hainque@adacore.com>
3676
3677         * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3678         definition, pointless with a VxWorks specific version
3679         of crtstuff.
3680         (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3681         * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3682         New local macros, controlling the addition of vxworks specific
3683         crtstuff objects depending on the EH mechanism and kind of
3684         module being linked.
3685         (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3686
3687 2019-11-06  Pat Bernardi  <bernardi@adacore.com>
3688             Jerome Lambourg  <lambourg@adacore.com>
3689             Olivier Hainque  <hainque@adacore.com>
3690
3691         * config.gcc: Add comment to introduce the TARGET_VXWORKS
3692         common macro definitions, conveying VXWORKS7 or 64bit general
3693         variations.  Add a block to set gcc_cv_initfini_array
3694         unconditionally to "yes" for VxWorks7.
3695         config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3696         by default.  Update some comments.
3697         config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3698         default, to be added the end of VXWORKS_LIBS_RTP.
3699         (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3700         and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3701         redefine.
3702         (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3703         (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3704         to account for the now available TLS abilities.
3705         (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3706         (VXWORKS_HAVE_TLS): Likewise.
3707
3708 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3709
3710         * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3711         (vect_slp_convert_to_external): Likewise.
3712         (vect_slp_analyze_node_operations): If analysis fails, try building
3713         the node from scalars instead.
3714
3715 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3716
3717         * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3718         between vector types.
3719         * tree-vect-stmts.c (vectorizable_conversion): Extend the
3720         non-widening and non-narrowing path to handle standard
3721         conversion codes, if the target supports them.
3722         * expr.c (convert_move): Try using the extend and truncate optabs
3723         for vectors.
3724         * optabs-tree.c (supportable_convert_operation): Likewise.
3725         * config/aarch64/iterators.md (Vnarroqw): New iterator.
3726         * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3727         (trunc<mode><Vnarrowq>2): New patterns.
3728
3729 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3730
3731         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3732         require vectype and nunits_vectype to have the same size;
3733         instead assert that nunits_vectype has at least as many
3734         elements as vectype.  Don't compute a separate nunits_vectype
3735         if the scalar type is obviously the same as vectype's.
3736         Tweak dump messages.
3737
3738 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3739
3740         * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3741         function.
3742         (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3743         (TARGET_VECTORIZE_RELATED_MODE): Define.
3744
3745 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3746
3747         * tree-vectorizer.h (vec_info::mode_set): New typedef.
3748         (vec_info::used_vector_mode): New member variable.
3749         (vect_chooses_same_modes_p): Declare.
3750         * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3751         chosen vector mode in vec_info::used_vector_mode.
3752         (vect_chooses_same_modes_p): New function.
3753         * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3754         the same vector statements multiple times.
3755         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3756
3757 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3758
3759         * machmode.h (opt_machine_mode::operator==): New function.
3760         (opt_machine_mode::operator!=): Likewise.
3761         * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3762         (get_related_vectype_for_scalar_type): Delete.
3763         (get_vectype_for_scalar_type_and_size): Declare.
3764         * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3765         whether analysis passed or failed, and with what vector modes.
3766         Use related_vector_mode to check whether trying a particular
3767         vector mode would be redundant with the autodetected mode,
3768         and print a dump message if we decide to skip it.
3769         * tree-vect-loop.c (vect_analyze_loop): Likewise.
3770         (vect_create_epilog_for_reduction): Use
3771         get_related_vectype_for_scalar_type instead of
3772         get_vectype_for_scalar_type_and_size.
3773         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3774         with...
3775         (get_related_vectype_for_scalar_type): ...this new function.
3776         Take a starting/"prevailing" vector mode rather than a vector size.
3777         Take an optional nunits argument, with the same meaning as for
3778         related_vector_mode.  Use related_vector_mode when not
3779         auto-detecting a mode, falling back to mode_for_vector if no
3780         target mode exists.
3781         (get_vectype_for_scalar_type): Update accordingly.
3782         (get_same_sized_vectype): Likewise.
3783         * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3784
3785 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3786
3787         * tree-vect-stmts.c (vectorizable_call): Require the types
3788         to have the same size.
3789
3790 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3791
3792         * tree-vect-stmts.c (vectorizable_call): If an operand is
3793         constant or external, use get_vectype_for_scalar_type
3794         rather than get_same_sized_vectype to get its vector type.
3795         (vectorizable_conversion, vectorizable_shift): Likewise.
3796         (vectorizable_operation): Likewise.
3797
3798 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3799
3800         * tree-vectorizer.h (vec_info::vector_size): Replace with...
3801         (vec_info::vector_mode): ...this new field.
3802         * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3803         (vect_analyze_loop, vect_transform_loop): Likewise.
3804         * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3805         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3806         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3807         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3808         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3809
3810 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3811
3812         * target.h (vector_sizes, auto_vector_sizes): Delete.
3813         (vector_modes, auto_vector_modes): New typedefs.
3814         * target.def (autovectorize_vector_sizes): Replace with...
3815         (autovectorize_vector_modes): ...this new hook.
3816         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3817         Replace with...
3818         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3819         * doc/tm.texi: Regenerate.
3820         * targhooks.h (default_autovectorize_vector_sizes): Delete.
3821         (default_autovectorize_vector_modes): New function.
3822         * targhooks.c (default_autovectorize_vector_sizes): Delete.
3823         (default_autovectorize_vector_modes): New function.
3824         * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3825         of autovectorize_vector_sizes.  Use the number of units in the mode
3826         to calculate the maximum VF.
3827         * omp-low.c (omp_clause_aligned_alignment): Use
3828         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3829         Use a loop based on related_mode to iterate through all supported
3830         vector modes for a given scalar mode.
3831         * optabs-query.c (can_vec_mask_load_store_p): Use
3832         autovectorize_vector_modes instead of autovectorize_vector_sizes.
3833         * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3834         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3835         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3836         Replace with...
3837         (aarch64_autovectorize_vector_modes): ...this new function.
3838         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3839         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3840         * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3841         (arc_autovectorize_vector_modes): ...this new function.
3842         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3843         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3844         * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3845         (arm_autovectorize_vector_modes): ...this new function.
3846         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3847         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3848         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3849         (ix86_autovectorize_vector_modes): ...this new function.
3850         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3851         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3852         * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3853         (mips_autovectorize_vector_modes): ...this new function.
3854         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3855         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3856
3857 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3858
3859         * tree-vect-stmts.c (vectorizable_shift): Check the number
3860         of vector elements as well as the type mode when deciding
3861         whether an op1_vectype is compatible.  Reuse the result of
3862         this check when generating vector statements.
3863
3864 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3865
3866         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3867         targetm.vectorize.preferred_simd_mode returns an integer mode,
3868         use mode_for_vector to decide what the vector type's mode
3869         should actually be.  Use build_vector_type_for_mode instead
3870         of build_vector_type.
3871
3872 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3873
3874         * target.def (get_mask_mode): Take a vector mode itself as argument,
3875         instead of properties about the vector mode.
3876         * doc/tm.texi: Regenerate.
3877         * targhooks.h (default_get_mask_mode): Update to reflect new
3878         get_mode_mask interface.
3879         * targhooks.c (default_get_mask_mode): Likewise.  Use
3880         related_int_vector_mode.
3881         * optabs-query.c (can_vec_mask_load_store_p): Update call
3882         to get_mask_mode.
3883         * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3884         first that the original mode really is a vector.
3885         * tree.c (build_truth_vector_type_for): Likewise.
3886         * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3887         get_mode_mask interface.
3888         (aarch64_expand_sve_vcond): Update call accordingly.
3889         * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3890         get_mode_mask interface.
3891         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3892
3893 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3894
3895         * tree.h (build_truth_vector_type): Delete.
3896         (build_same_sized_truth_vector_type): Likewise.
3897         * tree.c (build_truth_vector_type): Rename to...
3898         (build_truth_vector_type_for): ...this.  Make static and take
3899         a vector type as argument.
3900         (truth_type_for): Update accordingly.
3901         (build_same_sized_truth_vector_type): Delete.
3902         * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3903         instead of build_same_sized_truth_vector_type.
3904         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3905         (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3906         * tree-vect-patterns.c (build_mask_conversion): Likeise.
3907         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3908         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3909         (vect_build_gather_load_calls, vectorizable_call): Likewise.
3910         (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3911         (vectorizable_store, vectorizable_condition): Likewise.
3912         (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3913         (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3914         build_truth_vector_type.
3915         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3916         Use truth_type_for instead of build_same_sized_truth_vector_type.
3917         * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3918
3919 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3920
3921         * tree.h (build_truth_vector_type_for_mode): Declare.
3922         * tree.c (build_truth_vector_type_for_mode): New function,
3923         split out from...
3924         (build_truth_vector_type): ...here.
3925         (build_opaque_vector_type): Fix head comment.
3926         * tree-vectorizer.h (supportable_narrowing_operation): Remove
3927         vec_info parameter.
3928         (vect_halve_mask_nunits): Replace vec_info parameter with the
3929         mode of the new vector.
3930         (vect_double_mask_nunits): Likewise.
3931         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3932         (vect_double_mask_nunits): Likewise.
3933         * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3934         (vect_maybe_permute_loop_masks): Remove vinfo parameter.  Update call
3935         to vect_halve_mask_nunits, getting the required mode from the unpack
3936         patterns.
3937         (vect_set_loop_condition_masked): Update call accordingly.
3938         * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3939         parameter and update call to vect_double_mask_nunits.
3940         (vectorizable_conversion): Update call accordingly.
3941         (simple_integer_narrowing): Likewise.  Remove vec_info parameter.
3942         (vectorizable_call): Update call accordingly.
3943         (supportable_widening_operation): Update call to
3944         vect_halve_mask_nunits.
3945         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3946         Use build_truth_vector_type_mode instead of build_truth_vector_type.
3947
3948 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3949
3950         * machmode.h (mode_for_int_vector): Delete.
3951         (related_int_vector_mode): Declare.
3952         * stor-layout.c (mode_for_int_vector): Delete.
3953         (related_int_vector_mode): New function.
3954         * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3955         instead of mode_for_int_vector.
3956         (expand_vec_perm_const): Likewise.
3957         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3958         (aarch64_evpc_sve_tbl): Likewise.
3959         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3960         (s390_expand_vcond): Likewise.
3961
3962 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
3963
3964         * target.def (related_mode): New hook.
3965         * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3966         * doc/tm.texi: Regenerate.
3967         * targhooks.h (default_vectorize_related_mode): Declare.
3968         * targhooks.c (default_vectorize_related_mode): New function.
3969         * machmode.h (related_vector_mode): Declare.
3970         * stor-layout.c (related_vector_mode): New function.
3971         * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3972         * optabs-query.c (qimode_for_vec_perm): Likewise.
3973         * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3974         (vectorizable_store, vectorizable_load): Likewise
3975
3976 2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
3977
3978         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3979         * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3980         * config/arm/arm-c.c (arm_cpu_builtins): Define
3981         __GCC_ASM_FLAG_OUTPUTS__.
3982         * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3983         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3984         Define __GCC_ASM_FLAG_OUTPUTS__.
3985         * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3986         * doc/extend.texi (FlagOutputOperands): Add documentation
3987         for ARM and AArch64.
3988
3989         * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3990         * config/arm/predicates.md (nz_comparison_operator): Rename
3991         from noov_comparison_operator.
3992         * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3993         (arm_gen_dicompare_reg): Likewise.
3994         (maybe_get_arm_condition_code): Likewise.
3995         (thumb1_final_prescan_insn): Likewise.
3996         (arm_emit_coreregs_64bit_shift): Likewise.
3997         * config/arm/arm.md (addsi3_compare0): Likewise.
3998         (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3999         (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
4000         (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
4001         (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
4002         (*mulsi3addsi_compare0_scratch): Likewise.
4003         (*mulsi3addsi_compare0_scratch_v6): Likewise.
4004         (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
4005         (*zeroextractsi_compare0_scratch): Likewise.
4006         (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
4007         (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
4008         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4009         (andsi_not_shiftsi_si_scc): Likewise.
4010         (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
4011         (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
4012         (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
4013         (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
4014         (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
4015         (*notsi_compare0, *notsi_compare0_scratch): Likewise.
4016         (return_addr_mask, *check_arch2): Likewise.
4017         (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
4018         (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
4019         (compare_scc splitters): Likewise.
4020         (movcond_addsi): Likewise.
4021         * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
4022         (*thumb2_addsi3_compare0_scratch): Likewise.
4023         (*thumb2_mulsi_short_compare0): Likewise.
4024         (*thumb2_mulsi_short_compare0_scratch): Likewise.
4025         (compare peephole2s): Likewise.
4026         * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
4027         nz_comparison_operator names.
4028         (cbranchsi4_insn): Likewise.
4029
4030         * config/arm/constraints.md (c): Use cc_register predicate.
4031
4032         * config/aarch64/constraints.md (c): New constraint.
4033
4034 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4035
4036         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
4037         ipa_merge_fn_summary_after_inlining): Micro optimize.
4038
4039 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4040
4041         * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
4042
4043 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4044
4045         * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4046         (ipa_value_range_from_jfunc): New function.
4047         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
4048         known_value_ranges parameter; use it to evalulate conditions.
4049         (evaluate_properties_for_edge): Compute known value ranges.
4050         (ipa_fn_summary_t::duplicate): Update use of
4051         evaluate_conditions_for_known_args.
4052         (estimate_ipcp_clone_size_and_time): Likewise.
4053         (ipa_merge_fn_summary_after_inlining): Likewise.
4054         * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
4055
4056 2019-11-14  Martin Liska  <mliska@suse.cz>
4057
4058         * ipa-inline.c (want_inline_small_function_p): Use
4059         CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
4060         of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
4061
4062 2019-11-14  Martin Liska  <mliska@suse.cz>
4063
4064         * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
4065         of a callee to get value of the param.
4066         * ipa-inline.c (inline_insns_auto): Use proper
4067         opt_for_fn.
4068         * opts.c (maybe_default_option): Do not overwrite param
4069         value if optimization level does not match.  Note that
4070         params usually have default value set via Init() keyword.
4071         * params.opt: Remove -param=max-inline-insns-auto-O2.
4072         * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
4073         * doc/invoke.texi: Remove documentation of
4074         max-inline-insns-auto-O2.
4075
4076 2019-11-14  Martin Liska  <mliska@suse.cz>
4077
4078         * tree-switch-conversion.c (switch_conversion::switch_conversion):
4079         Do not initialize m_other_count.
4080         (switch_conversion::collect): Do not count m_default_count and
4081         m_other_count as we use frequencies for edges.
4082         * tree-switch-conversion.h: Remove m_default_count and m_other_count.
4083
4084 2019-11-14  Martin Liska  <mliska@suse.cz>
4085
4086         PR other/92329
4087         * doc/invoke.texi: Document -fallocation-dce.
4088
4089 2019-11-14  Martin Liska  <mliska@suse.cz>
4090
4091         PR target/92389
4092         * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
4093         PTA_ICELAKE_CLIENT which is later interited by
4094         PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
4095
4096 2019-11-14  Martin Liska  <mliska@suse.cz>
4097
4098         * ipa-icf.c (sem_item_optimizer::execute): Save
4099         loaded_symbols.
4100         (sem_item_optimizer::parse_nonsingleton_classes):
4101         Return number of loaded symbols.
4102         (sem_item_optimizer::merge_classes): Print
4103         statistics about totally needed symbols.
4104         * ipa-icf.h (parse_nonsingleton_classes): Change return
4105         type.
4106         (merge_classes): Add one argument.
4107
4108 2019-11-14  Martin Liska  <mliska@suse.cz>
4109
4110         * ipa-icf-gimple.c (func_checker::hash_operand): Improve
4111         func_checker::hash_operand by handling of FIELD_DECLs.
4112
4113 2019-11-14  Martin Liska  <mliska@suse.cz>
4114
4115         * ipa-icf-gimple.h (func_checker::func_checker): Add
4116         default constructor.
4117         * ipa-icf.c (sem_function::init): Make operand_equal_p
4118         and hash_operand public.
4119         (sem_item::add_expr): Remove.
4120         (sem_item::add_type): Remove.
4121         (sem_function::hash_stmt): Use m_checker for hashing
4122         of GIMPLE statements.
4123         (sem_function::parse): Init with checker.
4124         (sem_variable::parse): Pass NULL as checker.
4125         (sem_item_optimizer::parse_funcs_and_vars):
4126         Pass checker to ::parse function.
4127         (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
4128         (sem_variable::parse): New function.
4129         (sem_variable::get_hash): Only return computed hash value.
4130         (sem_variable::init): Initialize hash of a variable.
4131         * ipa-icf.h: Remove add_expr, add_type and add func_checker
4132         to couple of functions as a new argument.
4133
4134 2019-11-14  Martin Liska  <mliska@suse.cz>
4135
4136         * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
4137         bail out reason.
4138         (func_checker::compare_gimple_assign): Likewise.
4139
4140 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
4141
4142         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
4143         change sse4.2 to sse4_2 and sse4.1 to sse4.1.
4144         * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
4145
4146         * omp-general.c (omp_context_name_list_prop): New function.
4147         (omp_context_selector_matches): Use it.  Return 0 if it returns
4148         NULL.
4149         (omp_context_selector_props_compare): Allow equivalency of an
4150         identifier and a string literal containing no embedded zeros.
4151
4152 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4153
4154         * range-op.cc (RANGE3): Remove.
4155         (range_tests): Remove all selftest that check for multi-ranges.
4156         Put tests in namespace selftest.
4157         * selftest.h: Move range_tests into namespace selftest.
4158         * value-range.h (class value_range): Unfriend range_tests.
4159
4160 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4161
4162         * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4163         normalize_symbolics and normalize_addresses working in place.
4164         (range_fold_unary_symbolics_p): Same.
4165         (range_fold_unary_symbolics_p): Same.
4166         * value-range.cc (num_pairs): Same.
4167         (lower_bound): Same.
4168         (upper_bound): Same.
4169         (contains_p): Same.
4170         (normalize_addresses): Same.
4171         (normalize_symbolics): Same.
4172         * value-range.h (normalize_symbolics): Same.
4173         (normalize_addresses): Same.
4174
4175 2019-11-14  Feng Xue  <fxue@os.amperecomputing.com>
4176
4177         PR ipa/91682
4178         * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
4179         (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
4180         (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
4181         (ipa_agg_jump_function): Remove member function equal_to.
4182         (ipa_agg_jump_function_p): Remove typedef.
4183         (ipa_copy_agg_values, ipa_release_agg_values): New functions.
4184         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
4185         information for aggregate jump function.
4186         (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
4187         record last definition statement.
4188         (load_from_unmodified_param_or_agg): New function.
4189         (ipa_known_agg_contents_list): Add new field type and value, remove
4190         field constant.
4191         (build_agg_jump_func_from_list): Rename parameter const_count to
4192         value_count, build aggregate jump function from ipa_load_agg_data.
4193         (analyze_agg_content_value): New function.
4194         (extract_mem_content): Analyze memory store assignment to prepare
4195         information for aggregate jump function generation.
4196         (determine_known_aggregate_parts): Add new parameter fbi, remove
4197         parameter aa_walk_budeget_p.
4198         (update_jump_functions_after_inlining): Update aggregate jump function.
4199         (ipa_find_agg_cst_for_param): Change type of parameter agg.
4200         (try_make_edge_direct_simple_call): Add new parameter new_root.
4201         (try_make_edge_direct_virtual_call): Add new parameter new_root and
4202         new_root_info.
4203         (update_indirect_edges_after_inlining): Pass new argument to
4204         try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4205         (ipa_write_jump_function): Write aggregate jump function to file.
4206         (ipa_read_jump_function): Read aggregate jump function from file.
4207         (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4208         * ipa-cp.c (ipa_get_jf_arith_result): New function.
4209         (ipa_agg_value_from_node): Likewise.
4210         (ipa_agg_value_set_from_jfunc): Likewise.
4211         (propagate_vals_across_arith_jfunc): Likewise.
4212         (propagate_aggregate_lattice): Likewise.
4213         (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4214         (propagate_vals_across_pass_through): Call
4215         propagate_vals_across_arith_jfunc.
4216         (get_clone_agg_value): Move forward.
4217         (propagate_aggs_across_jump_function): Handle value propagation for
4218         aggregate jump function.
4219         (agg_jmp_p_vec_for_t_vec): Remove.
4220         (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4221         with vec<ipa_agg_value>.
4222         (copy_plats_to_inter, intersect_with_plats): Likewise.
4223         (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4224         (intersect_aggregate_with_edge): Likewise.
4225         (find_aggregate_values_for_callers_subset): Likewise.
4226         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4227         (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4228         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4229         (gather_context_independent_values): Likewise.
4230         (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4231         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4232         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4233         (evaluate_properties_for_edge): Likewise.
4234         (estimate_edge_devirt_benefit): Likewise.
4235         (estimate_edge_size_and_time):  Likewise.
4236         (estimate_calls_size_and_time): Likewise.
4237         (ipa_call_context::ipa_call_context): Likewise.
4238         (estimate_ipcp_clone_size_and_time):  Likewise.
4239         * ipa-fnsummary.h (ipa_call_context): Replace
4240         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4241         * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4242         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4243         (do_estimate_edge_size): Likewise.
4244         (do_estimate_edge_hints): Likewise.
4245
4246 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4247
4248         * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4249         binary operations.
4250
4251 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4252
4253         * ipa-profile.c (check_argument_count): Check properly that e_info
4254         is non-NULL; do not check descriptors.
4255
4256 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4257
4258         * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4259         check for ipa profiles.
4260
4261 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4262
4263         PR c++/92421
4264         * ipa-prop.c (update_indirect_edges_after_inlining):
4265         Mark parameter as used.
4266         * ipa-inline.c (recursive_inlining): Reset node cache
4267         after inlining.
4268         (inline_small_functions): Remove checking ifdef.
4269         * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4270         cache consistency.
4271
4272 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4273
4274         PR ipa/92498
4275         * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4276         is NULL.
4277         (ipa_profile): Fix reversed test.
4278
4279 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4280
4281         * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4282         (propagate_constants_topo): Fix typo.
4283
4284 2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4285
4286         * Makefile.in (OBJS): Add value-range.o.
4287         (GTFILES): Add value-range.h.
4288         * gengtype.c (open_base_files): Add value-range.h to list of
4289         header files.
4290         * tree-vrp.c: Move the following value_range related functions:
4291         ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4292         constant_p, set_undefined, set_varying, may_contain_p,
4293         singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4294         vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4295         set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4296         value_inside_range, ranges_from_anti_range, union_ranges,
4297         intersect_ranges, intersect_helper, union_helper, union_,
4298         normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4299         upper_bound, contains_p, invert, intersect...
4300         * value-range.cc: ...to here.
4301         * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4302         associated inline methods from here...
4303         * value-range.h: ...to here.
4304
4305 2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
4306
4307         * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4308         instead of asserting its value.
4309
4310 (2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4311
4312         * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4313         constructors and set methods so value_range_kind is the last
4314         argument and defaults to VR_RANGE.
4315         * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4316         * ipa-cp.c (propagate_vr_across_jump_function): Same.
4317         * ipa-prop.c (ipa_get_value_range): Same.
4318         (ipa_compute_jump_functions_for_edge): Same.
4319         * range-op.cc (value_range_from_overflowed_bounds): Same.
4320         (operator_cast::op1_range): Same.
4321         (range_tests): Same.
4322         * range.cc (range_nonzero): Same.
4323         * tree-ssanames.c (get_range_info): Same.
4324         * tree-vrp.c (value_range_equiv::set): Same.
4325         (value_range::value_range): Same.
4326         (value_range_equiv::value_range_equiv): Same.
4327         (value_range_equiv::update): Same.
4328         (value_range_equiv::deep_copy): Same.
4329         (value_range_equiv::move): Same.
4330         (value_range_equiv::set_undefined): Same.
4331         (value_range::set): Same.
4332         (value_range::set_nonzero): Same.
4333         (ranges_from_anti_range): Same.
4334         (extract_range_from_plus_minus_expr): Same.
4335         (value_range::intersect_helper): Same.
4336         (value_range_equiv::intersect): Same.
4337         (value_range::union_helper): Same.
4338         (value_range_equiv::union_): Same.
4339         (value_range::normalize_symbolics): Same.
4340         (value_range::invert): Same.
4341         (determine_value_range_1): Same.
4342         * tree-vrp.h (class value_range): Same.
4343         (class value_range_equiv): Same.
4344         * vr-values.c (set_value_range_to_nonnegative): Same.
4345         (set_value_range_to_truthvalue): Same.
4346         (vr_values::update_value_range): Same.
4347         (vr_values::extract_range_for_var_from_comparison_expr): Same.
4348         (vr_values::extract_range_from_binary_expr): Same.
4349         (vr_values::extract_range_from_comparison): Same.
4350         (vr_values::extract_range_basic): Same.
4351         (vr_values::adjust_range_with_scev): Same.
4352         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4353         (vr_values::extract_range_from_phi_node): Same.
4354
4355 2019-11-13  Ulrich Drepper  <drepper@redhat.com>
4356
4357         * tree-dump.c (dequeue_and_dump): Print first tree operand
4358         for VIEW_CONVERT_EXPR.
4359
4360 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
4361
4362         * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4363         DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4364         * real.c (get_max_float): Add norm_max argument.
4365         * real.h (get_max_float): Update prototype.
4366         * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4367         get_max_float.
4368
4369 2019-11-13  Martin Liska  <mliska@suse.cz>
4370
4371         * dbgcnt.c (test_sorted_dbg_counters): New.
4372         (dbgcnt_c_tests): Likewise.
4373         * selftest-run-tests.c (selftest::run_tests): Likewise.
4374         * selftest.h (dbgcnt_c_tests): Likewise.
4375
4376 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4377             Martin Jambor  <mjambor@suse.cz>
4378
4379         PR ipa/92454
4380         * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4381         (identify_dead_nodes): Likewise.
4382
4383 2019-11-13  Martin Liska  <mliska@suse.cz>
4384
4385         * ipa-icf.c (sem_function::equals_private): Do not overuse
4386         push/pop_cfun functions.
4387
4388 2019-11-13  Martin Liska  <mliska@suse.cz>
4389
4390         * common.opt: Document change of -fdbg-cnt option.
4391         * dbgcnt.c (DEBUG_COUNTER): Remove.
4392         (dbg_cnt_is_enabled): Remove.
4393         (dbg_cnt): Work with new intervals.
4394         (dbg_cnt_set_limit_by_index): Set to new
4395         list of intervals.
4396         (dbg_cnt_set_limit_by_name): Likewise.
4397         (dbg_cnt_process_single_pair): Process new format.
4398         (dbg_cnt_process_opt): Likewise.
4399         (dbg_cnt_list_all_counters): Likewise.
4400         * doc/invoke.texi: Document change of -fdbg-cnt option.
4401         (cmp_tuples): New.
4402
4403 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4404
4405         * ipa-inline.c (ipa_inline): Check that function is defined before
4406         flattening.
4407
4408 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4409             Julian Brown  <julian@codesourcery.com>
4410
4411         * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4412         flag_worker_partitioning is not set.
4413         (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4414         * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4415
4416 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4417
4418         * config/gcn/gcn-run.c (heap_region): New global variable.
4419         (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4420         (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4421         (get_kernarg_region): Move contents to ....
4422         (get_memory_region): .... here.
4423         (get_heap_region): New function.
4424         (init_device): Initialize the heap_region.
4425         (device_malloc): Add region parameter.
4426         (struct kernargs): Move heap ....
4427         (heap): ... to global scope.
4428         (main): Allocate heap separate to kernargs.
4429
4430 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4431
4432         * ipa-prop.c (ipa_print_node_jump_functions,
4433         ipa_print_node_params): Print info about missing summaries.
4434
4435 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4436
4437         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4438         the cost of generating loop masks.
4439
4440 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4441
4442         * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4443         New function.
4444         * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4445         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4446         (vect_transform_loop): Likewise.
4447         (vect_analyze_loop_costing): Don't take the cost of versioning
4448         into account for the static profitability threshold if it turns
4449         out that no versioning is needed.
4450
4451 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4452
4453         * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4454         and target_option_default_node to get -fprofile-generate ctors working
4455         right with LTO.
4456
4457 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4458
4459         * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4460         * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4461         (vectorizable_assignment): Don't add a cost for nop conversions.
4462         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4463         Likewise.
4464         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4465
4466 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4467
4468         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4469         number of ncopies as an additional argument.
4470         (vectorizable_conversion): Update call accordingly.  Use "modifier"
4471         to check whether a conversion is between vectors with the same
4472         numbers of units.
4473
4474 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4475
4476         * config/aarch64/aarch64-sve-builtins-functions.h
4477         (unary_count::expand): Use aarch64_sve_int_mode instead of
4478         mode_for_int_vector.
4479
4480 2019-11-13  Martin Liska  <mliska@suse.cz>
4481
4482         * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4483
4484 2019-11-13  Martin Liska  <mliska@suse.cz>
4485
4486         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4487         Remove call to finalize_options_struct.
4488
4489 2019-11-13  Georg-Johann Lay  <avr@gjlay.de>
4490
4491         PR target/92055
4492         * config/avr/t-avr (avr-mcus): Do not depend on
4493         $(srcdir)/config/avr/t-multilib.
4494
4495 2019-11-13  Richard Biener  <rguenther@suse.de>
4496
4497         PR tree-optimization/92473
4498         * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4499         direct optab reduction in the correct type.
4500
4501 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
4502
4503         * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4504         hexadecimal literal.
4505
4506 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
4507
4508         * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4509         UNORDERED if !HONOR_NANS (DFmode).
4510         (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4511         if !HONOR_NANS (<MODE>mode).
4512
4513 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
4514
4515         * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4516         (ipcp_verify_propagated_values): Likewise.
4517         (propagate_constants_across_call): Likewise.
4518         (propagate_constants_topo): Likewise.
4519         (ipcp_propagate_stage): Likewise.
4520
4521 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
4522
4523         PR ipa/92471
4524         * ipa-profile.c (check_argument_count): Break out from ...;
4525         watch for missing summaries.
4526         (ipa_profile): Here.
4527
4528 2019-11-12  Martin Sebor  <msebor@redhat.com>
4529
4530         PR tree-optimization/92412
4531         * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4532         extern variables.
4533
4534 2019-11-12  Martin Sebor  <msebor@redhat.com>
4535
4536         PR middle-end/83688
4537         * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4538         (directive::argno): New member.
4539         (format_result::aliases, format_result::alias_count): New data members.
4540         (format_result::append_alias): New member function.
4541         (fmtresult::dst_offset): New data member.
4542         (pass_sprintf_length::call_info::dst_origin): New data member.
4543         (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4544         (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4545         (get_origin_and_offset): Same.
4546         (format_string): Call it.
4547         (format_directive): Call append_alias and set directive argument
4548         number.
4549         (maybe_warn_overlap): New function.
4550         (pass_sprintf_length::compute_format_length): Call it.
4551         (pass_sprintf_length::handle_gimple_call): Initialize new members.
4552         * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4553
4554 2019-11-12  Ilya Leoshkevich  <iii@linux.ibm.com>
4555
4556         PR rtl-optimization/92430
4557         * cfgcleanup.c (pass_jump_after_combine::execute): Free
4558         dominance info at the beginning.
4559
4560 2019-11-12  Richard Biener  <rguenther@suse.de>
4561
4562         PR tree-optimization/92460
4563         * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4564         expression before gimplifying.
4565
4566 2019-11-12  Richard Biener  <rguenther@suse.de>
4567
4568         PR tree-optimization/92461
4569         * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4570         stmt after propagation.
4571
4572 2019-11-12  Martin Liska  <mliska@suse.cz>
4573
4574         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4575         Use SET_OPTION_IF_UNSET.
4576         (ix86_option_override_internal): Likewise.
4577         * opts.c (default_options_optimization): Likewise.
4578         (finish_options): Likewise.
4579         (enable_fdo_optimizations): Likewise.
4580         (common_handle_option): Likewise.
4581
4582 2019-11-12  Martin Liska  <mliska@suse.cz>
4583
4584         * common/common-target.def: Remove option_validate_param and
4585         option_default_params.
4586         * common/common-targhooks.c (default_option_validate_param):
4587         Remove.
4588         * common/common-targhooks.h (default_option_validate_param):
4589         Remove.
4590         * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4591         Remove usage of this.
4592         (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4593         (aarch64_option_validate_param): Likewise.
4594         (aarch64_option_default_params): Likewise
4595         * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4596         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4597         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4598         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4599         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4600         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4601         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4602         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4603         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4604         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4605         * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4606         guard_size here.
4607         * doc/tm.texi: Remove option_default_params and option_validate_param.
4608         * doc/tm.texi.in: Likewise.
4609
4610 2019-11-12  Martin Liska  <mliska@suse.cz>
4611
4612         * common/common-target.def:
4613         Do not mention set_default_param_value
4614         and set_param_value.
4615         * doc/tm.texi: Likewise.
4616
4617 2019-11-12  Martin Liska  <mliska@suse.cz>
4618
4619         * common.opt: Remove param_values.
4620         * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4621         Remove finalize_options_struct.
4622         * gcc.c (driver::decode_argv): Do not call global_init_params
4623         and finish_params.
4624         (driver::finalize): Do not call params_c_finalize
4625         and finalize_options_struct.
4626         * opt-suggestions.c (option_proposer::get_completions): Remove
4627         special casing of params.
4628         (option_proposer::find_param_completions): Remove.
4629         (test_completion_partial_match): Update expected output.
4630         * opt-suggestions.h: Remove find_param_completions.
4631         * opts-common.c (add_misspelling_candidates): Add
4632         --param with a space.
4633         * opts.c (handle_param): Remove.
4634         (init_options_struct):. Remove init_options_struct and
4635         similar calls.
4636         (finalize_options_struct): Remove.
4637         (common_handle_option): Use SET_OPTION_IF_UNSET.
4638         * opts.h (finalize_options_struct): Remove.
4639         * toplev.c (general_init): Do not call global_init_params.
4640         (toplev::finalize): Do not call params_c_finalize and
4641         finalize_options_struct.
4642
4643 2019-11-12  Martin Liska  <mliska@suse.cz>
4644
4645         * Makefile.in: Remove PARAMS_H and params.list
4646         and params.options.
4647         * params-enum.h: Remove.
4648         * params-list.h: Remove.
4649         * params-options.h: Remove.
4650         * params.c: Remove.
4651         * params.def: Remove.
4652         * params.h: Remove.
4653         * asan.c: Do not include params.h.
4654         * auto-profile.c: Likewise.
4655         * bb-reorder.c: Likewise.
4656         * builtins.c: Likewise.
4657         * cfgcleanup.c: Likewise.
4658         * cfgexpand.c: Likewise.
4659         * cfgloopanal.c: Likewise.
4660         * cgraph.c: Likewise.
4661         * combine.c: Likewise.
4662         * common/config/aarch64/aarch64-common.c: Likewise.
4663         * common/config/gcn/gcn-common.c: Likewise.
4664         * common/config/ia64/ia64-common.c: Likewise.
4665         * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4666         * common/config/rs6000/rs6000-common.c: Likewise.
4667         * common/config/sh/sh-common.c: Likewise.
4668         * config/aarch64/aarch64.c: Likewise.
4669         * config/alpha/alpha.c: Likewise.
4670         * config/arm/arm.c: Likewise.
4671         * config/avr/avr.c: Likewise.
4672         * config/csky/csky.c: Likewise.
4673         * config/i386/i386-builtins.c: Likewise.
4674         * config/i386/i386-expand.c: Likewise.
4675         * config/i386/i386-features.c: Likewise.
4676         * config/i386/i386-options.c: Likewise.
4677         * config/i386/i386.c: Likewise.
4678         * config/ia64/ia64.c: Likewise.
4679         * config/rs6000/rs6000-logue.c: Likewise.
4680         * config/rs6000/rs6000.c: Likewise.
4681         * config/s390/s390.c: Likewise.
4682         * config/sparc/sparc.c: Likewise.
4683         * config/visium/visium.c: Likewise.
4684         * coverage.c: Likewise.
4685         * cprop.c: Likewise.
4686         * cse.c: Likewise.
4687         * cselib.c: Likewise.
4688         * dse.c: Likewise.
4689         * emit-rtl.c: Likewise.
4690         * explow.c: Likewise.
4691         * final.c: Likewise.
4692         * fold-const.c: Likewise.
4693         * gcc.c: Likewise.
4694         * gcse.c: Likewise.
4695         * ggc-common.c: Likewise.
4696         * ggc-page.c: Likewise.
4697         * gimple-loop-interchange.cc: Likewise.
4698         * gimple-loop-jam.c: Likewise.
4699         * gimple-loop-versioning.cc: Likewise.
4700         * gimple-ssa-split-paths.c: Likewise.
4701         * gimple-ssa-sprintf.c: Likewise.
4702         * gimple-ssa-store-merging.c: Likewise.
4703         * gimple-ssa-strength-reduction.c: Likewise.
4704         * gimple-ssa-warn-alloca.c: Likewise.
4705         * gimple-ssa-warn-restrict.c: Likewise.
4706         * graphite-isl-ast-to-gimple.c: Likewise.
4707         * graphite-optimize-isl.c: Likewise.
4708         * graphite-scop-detection.c: Likewise.
4709         * graphite-sese-to-poly.c: Likewise.
4710         * graphite.c: Likewise.
4711         * haifa-sched.c: Likewise.
4712         * hsa-gen.c: Likewise.
4713         * ifcvt.c: Likewise.
4714         * ipa-cp.c: Likewise.
4715         * ipa-fnsummary.c: Likewise.
4716         * ipa-inline-analysis.c: Likewise.
4717         * ipa-inline.c: Likewise.
4718         * ipa-polymorphic-call.c: Likewise.
4719         * ipa-profile.c: Likewise.
4720         * ipa-prop.c: Likewise.
4721         * ipa-split.c: Likewise.
4722         * ipa-sra.c: Likewise.
4723         * ira-build.c: Likewise.
4724         * ira-conflicts.c: Likewise.
4725         * loop-doloop.c: Likewise.
4726         * loop-invariant.c: Likewise.
4727         * loop-unroll.c: Likewise.
4728         * lra-assigns.c: Likewise.
4729         * lra-constraints.c: Likewise.
4730         * modulo-sched.c: Likewise.
4731         * opt-suggestions.c: Likewise.
4732         * opts.c: Likewise.
4733         * postreload-gcse.c: Likewise.
4734         * predict.c: Likewise.
4735         * reload.c: Likewise.
4736         * reorg.c: Likewise.
4737         * resource.c: Likewise.
4738         * sanopt.c: Likewise.
4739         * sched-deps.c: Likewise.
4740         * sched-ebb.c: Likewise.
4741         * sched-rgn.c: Likewise.
4742         * sel-sched-ir.c: Likewise.
4743         * sel-sched.c: Likewise.
4744         * shrink-wrap.c: Likewise.
4745         * stmt.c: Likewise.
4746         * targhooks.c: Likewise.
4747         * toplev.c: Likewise.
4748         * tracer.c: Likewise.
4749         * trans-mem.c: Likewise.
4750         * tree-chrec.c: Likewise.
4751         * tree-data-ref.c: Likewise.
4752         * tree-if-conv.c: Likewise.
4753         * tree-inline.c: Likewise.
4754         * tree-loop-distribution.c: Likewise.
4755         * tree-parloops.c: Likewise.
4756         * tree-predcom.c: Likewise.
4757         * tree-profile.c: Likewise.
4758         * tree-scalar-evolution.c: Likewise.
4759         * tree-sra.c: Likewise.
4760         * tree-ssa-ccp.c: Likewise.
4761         * tree-ssa-dom.c: Likewise.
4762         * tree-ssa-dse.c: Likewise.
4763         * tree-ssa-ifcombine.c: Likewise.
4764         * tree-ssa-loop-ch.c: Likewise.
4765         * tree-ssa-loop-im.c: Likewise.
4766         * tree-ssa-loop-ivcanon.c: Likewise.
4767         * tree-ssa-loop-ivopts.c: Likewise.
4768         * tree-ssa-loop-manip.c: Likewise.
4769         * tree-ssa-loop-niter.c: Likewise.
4770         * tree-ssa-loop-prefetch.c: Likewise.
4771         * tree-ssa-loop-unswitch.c: Likewise.
4772         * tree-ssa-math-opts.c: Likewise.
4773         * tree-ssa-phiopt.c: Likewise.
4774         * tree-ssa-pre.c: Likewise.
4775         * tree-ssa-reassoc.c: Likewise.
4776         * tree-ssa-sccvn.c: Likewise.
4777         * tree-ssa-scopedtables.c: Likewise.
4778         * tree-ssa-sink.c: Likewise.
4779         * tree-ssa-strlen.c: Likewise.
4780         * tree-ssa-structalias.c: Likewise.
4781         * tree-ssa-tail-merge.c: Likewise.
4782         * tree-ssa-threadbackward.c: Likewise.
4783         * tree-ssa-threadedge.c: Likewise.
4784         * tree-ssa-uninit.c: Likewise.
4785         * tree-switch-conversion.c: Likewise.
4786         * tree-vect-data-refs.c: Likewise.
4787         * tree-vect-loop.c: Likewise.
4788         * tree-vect-slp.c: Likewise.
4789         * tree-vrp.c: Likewise.
4790         * tree.c: Likewise.
4791         * value-prof.c: Likewise.
4792         * var-tracking.c: Likewise.
4793
4794 2019-11-12  Martin Liska  <mliska@suse.cz>
4795
4796         * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4797         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
4798         macro.
4799         (asan_sanitize_allocas_p): Likewise.
4800         (asan_emit_stack_protection): Likewise.
4801         (asan_protect_global): Likewise.
4802         (instrument_derefs): Likewise.
4803         (instrument_builtin_call): Likewise.
4804         (asan_expand_mark_ifn): Likewise.
4805         * auto-profile.c (auto_profile): Likewise.
4806         * bb-reorder.c (copy_bb_p): Likewise.
4807         (duplicate_computed_gotos): Likewise.
4808         * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4809         * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4810         (try_crossjump_bb): Likewise.
4811         * cfgexpand.c (defer_stack_allocation): Likewise.
4812         (stack_protect_classify_type): Likewise.
4813         (pass_expand::execute): Likewise.
4814         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4815         (estimate_reg_pressure_cost): Likewise.
4816         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4817         * combine.c (combine_instructions): Likewise.
4818         (record_value_for_reg): Likewise.
4819         * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4820         (aarch64_option_default_params): Likewise.
4821         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4822         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4823         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4824         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4825         * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4826         (aarch64_allocate_and_probe_stack_space): Likewise.
4827         (aarch64_expand_epilogue): Likewise.
4828         (aarch64_override_options_internal): Likewise.
4829         * config/alpha/alpha.c (alpha_option_override): Likewise.
4830         * config/arm/arm.c (arm_option_override): Likewise.
4831         (arm_valid_target_attribute_p): Likewise.
4832         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4833         * config/i386/i386.c (get_probe_interval): Likewise.
4834         (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4835         (ix86_max_noce_ifcvt_seq_cost): Likewise.
4836         * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4837         * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4838         (get_stack_clash_protection_guard_size): Likewise.
4839         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4840         * config/s390/s390.c (allocate_stack_space): Likewise.
4841         (s390_emit_prologue): Likewise.
4842         (s390_option_override_internal): Likewise.
4843         * config/sparc/sparc.c (sparc_option_override): Likewise.
4844         * config/visium/visium.c (visium_option_override): Likewise.
4845         * coverage.c (get_coverage_counts): Likewise.
4846         (coverage_compute_profile_id): Likewise.
4847         (coverage_begin_function): Likewise.
4848         (coverage_end_function): Likewise.
4849         * cse.c (cse_find_path): Likewise.
4850         (cse_extended_basic_block): Likewise.
4851         (cse_main): Likewise.
4852         * cselib.c (cselib_invalidate_mem): Likewise.
4853         * dse.c (dse_step1): Likewise.
4854         * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4855         (get_max_insn_count): Likewise.
4856         (make_debug_insn_raw): Likewise.
4857         (init_emit): Likewise.
4858         * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4859         * final.c (compute_alignments): Likewise.
4860         * fold-const.c (fold_range_test): Likewise.
4861         (fold_truth_andor): Likewise.
4862         (tree_single_nonnegative_warnv_p): Likewise.
4863         (integer_valued_real_single_p): Likewise.
4864         * gcse.c (want_to_gcse_p): Likewise.
4865         (prune_insertions_deletions): Likewise.
4866         (hoist_code): Likewise.
4867         (gcse_or_cprop_is_too_expensive): Likewise.
4868         * ggc-common.c: Likewise.
4869         * ggc-page.c (ggc_collect): Likewise.
4870         * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4871         (MAX_DATAREFS): Likewise.
4872         (OUTER_STRIDE_RATIO): Likewise.
4873         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4874         * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4875         * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4876         * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4877         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4878         (imm_store_chain_info::output_merged_store): Likewise.
4879         (pass_store_merging::process_store): Likewise.
4880         * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4881         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4882         (scop_to_isl_ast): Likewise.
4883         * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4884         (optimize_isl): Likewise.
4885         * graphite-scop-detection.c (build_scops): Likewise.
4886         * haifa-sched.c (set_modulo_params): Likewise.
4887         (rank_for_schedule): Likewise.
4888         (model_add_to_worklist): Likewise.
4889         (model_promote_insn): Likewise.
4890         (model_choose_insn): Likewise.
4891         (queue_to_ready): Likewise.
4892         (autopref_multipass_dfa_lookahead_guard): Likewise.
4893         (schedule_block): Likewise.
4894         (sched_init): Likewise.
4895         * hsa-gen.c (init_prologue): Likewise.
4896         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4897         (cond_move_process_if_block): Likewise.
4898         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4899         (merge_agg_lats_step): Likewise.
4900         (devirtualization_time_bonus): Likewise.
4901         (hint_time_bonus): Likewise.
4902         (incorporate_penalties): Likewise.
4903         (good_cloning_opportunity_p): Likewise.
4904         (ipcp_propagate_stage): Likewise.
4905         * ipa-fnsummary.c (decompose_param_expr): Likewise.
4906         (set_switch_stmt_execution_predicate): Likewise.
4907         (analyze_function_body): Likewise.
4908         (compute_fn_summary): Likewise.
4909         * ipa-inline-analysis.c (estimate_growth): Likewise.
4910         * ipa-inline.c (caller_growth_limits): Likewise.
4911         (inline_insns_single): Likewise.
4912         (inline_insns_auto): Likewise.
4913         (can_inline_edge_by_limits_p): Likewise.
4914         (want_early_inline_function_p): Likewise.
4915         (big_speedup_p): Likewise.
4916         (want_inline_small_function_p): Likewise.
4917         (want_inline_self_recursive_call_p): Likewise.
4918         (edge_badness): Likewise.
4919         (recursive_inlining): Likewise.
4920         (compute_max_insns): Likewise.
4921         (early_inliner): Likewise.
4922         * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4923         * ipa-profile.c (ipa_profile): Likewise.
4924         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4925         (ipa_analyze_node): Likewise.
4926         (ipcp_transform_function): Likewise.
4927         * ipa-split.c (consider_split): Likewise.
4928         * ipa-sra.c (allocate_access): Likewise.
4929         (process_scan_results): Likewise.
4930         (ipa_sra_summarize_function): Likewise.
4931         (pull_accesses_from_callee): Likewise.
4932         * ira-build.c (loop_compare_func): Likewise.
4933         (mark_loops_for_removal): Likewise.
4934         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4935         * loop-doloop.c (doloop_optimize): Likewise.
4936         * loop-invariant.c (gain_for_invariant): Likewise.
4937         (move_loop_invariants): Likewise.
4938         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4939         (decide_unroll_runtime_iterations): Likewise.
4940         (decide_unroll_stupid): Likewise.
4941         (expand_var_during_unrolling): Likewise.
4942         * lra-assigns.c (spill_for): Likewise.
4943         * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4944         * modulo-sched.c (sms_schedule): Likewise.
4945         (DFA_HISTORY): Likewise.
4946         * opts.c (default_options_optimization): Likewise.
4947         (finish_options): Likewise.
4948         (common_handle_option): Likewise.
4949         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4950         (if): Likewise.
4951         * predict.c (get_hot_bb_threshold): Likewise.
4952         (maybe_hot_count_p): Likewise.
4953         (probably_never_executed): Likewise.
4954         (predictable_edge_p): Likewise.
4955         (predict_loops): Likewise.
4956         (expr_expected_value_1): Likewise.
4957         (tree_predict_by_opcode): Likewise.
4958         (handle_missing_profiles): Likewise.
4959         * reload.c (find_equiv_reg): Likewise.
4960         * reorg.c (redundant_insn): Likewise.
4961         * resource.c (mark_target_live_regs): Likewise.
4962         (incr_ticks_for_insn): Likewise.
4963         * sanopt.c (pass_sanopt::execute): Likewise.
4964         * sched-deps.c (sched_analyze_1): Likewise.
4965         (sched_analyze_2): Likewise.
4966         (sched_analyze_insn): Likewise.
4967         (deps_analyze_insn): Likewise.
4968         * sched-ebb.c (schedule_ebbs): Likewise.
4969         * sched-rgn.c (find_single_block_region): Likewise.
4970         (too_large): Likewise.
4971         (haifa_find_rgns): Likewise.
4972         (extend_rgns): Likewise.
4973         (new_ready): Likewise.
4974         (schedule_region): Likewise.
4975         (sched_rgn_init): Likewise.
4976         * sel-sched-ir.c (make_region_from_loop): Likewise.
4977         * sel-sched-ir.h (MAX_WS): Likewise.
4978         * sel-sched.c (process_pipelined_exprs): Likewise.
4979         (sel_setup_region_sched_flags): Likewise.
4980         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4981         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4982         * toplev.c (print_version): Likewise.
4983         (process_options): Likewise.
4984         * tracer.c (tail_duplicate): Likewise.
4985         * trans-mem.c (tm_log_add): Likewise.
4986         * tree-chrec.c (chrec_fold_plus_1): Likewise.
4987         * tree-data-ref.c (split_constant_offset): Likewise.
4988         (compute_all_dependences): Likewise.
4989         * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4990         * tree-inline.c (remap_gimple_stmt): Likewise.
4991         * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4992         * tree-parloops.c (MIN_PER_THREAD): Likewise.
4993         (create_parallel_loop): Likewise.
4994         * tree-predcom.c (determine_unroll_factor): Likewise.
4995         * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4996         * tree-sra.c (analyze_all_variable_accesses): Likewise.
4997         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4998         * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4999         (dse_optimize_redundant_stores): Likewise.
5000         (dse_classify_store): Likewise.
5001         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5002         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
5003         * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
5004         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5005         (try_peel_loop): Likewise.
5006         (tree_unroll_loops_completely): Likewise.
5007         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5008         (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
5009         (MAX_CONSIDERED_GROUPS): Likewise.
5010         (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
5011         * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
5012         * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
5013         * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
5014         (L1_CACHE_SIZE_BYTES): Likewise.
5015         (L2_CACHE_SIZE_BYTES): Likewise.
5016         (should_issue_prefetch_p): Likewise.
5017         (schedule_prefetches): Likewise.
5018         (determine_unroll_factor): Likewise.
5019         (volume_of_references): Likewise.
5020         (add_subscript_strides): Likewise.
5021         (self_reuse_distance): Likewise.
5022         (mem_ref_count_reasonable_p): Likewise.
5023         (insn_to_prefetch_ratio_too_small_p): Likewise.
5024         (loop_prefetch_arrays): Likewise.
5025         (tree_ssa_prefetch_arrays): Likewise.
5026         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
5027         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5028         (convert_mult_to_fma): Likewise.
5029         (math_opts_dom_walker::after_dom_children): Likewise.
5030         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5031         (hoist_adjacent_loads): Likewise.
5032         (gate_hoist_loads): Likewise.
5033         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5034         (compute_partial_antic_aux): Likewise.
5035         * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
5036         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
5037         (vn_reference_lookup): Likewise.
5038         (do_rpo_vn): Likewise.
5039         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
5040         * tree-ssa-sink.c (select_best_block): Likewise.
5041         * tree-ssa-strlen.c (new_stridx): Likewise.
5042         (new_addr_stridx): Likewise.
5043         (get_range_strlen_dynamic): Likewise.
5044         (class ssa_name_limit_t): Likewise.
5045         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
5046         (create_variable_info_for_1): Likewise.
5047         (init_alias_vars): Likewise.
5048         * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
5049         (tail_merge_optimize): Likewise.
5050         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
5051         (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
5052         (thread_jumps::find_jump_threads_backwards): Likewise.
5053         * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5054         * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
5055         * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
5056         (jump_table_cluster::can_be_handled): Likewise.
5057         * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
5058         (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
5059         (param_switch_conversion_branch_ratio): Likewise.
5060         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
5061         (vect_enhance_data_refs_alignment): Likewise.
5062         (vect_prune_runtime_alias_test_list): Likewise.
5063         * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
5064         (vect_get_datarefs_in_loop): Likewise.
5065         (vect_analyze_loop): Likewise.
5066         * tree-vect-slp.c (vect_slp_bb): Likewise.
5067         * tree-vectorizer.h: Likewise.
5068         * tree-vrp.c (find_switch_asserts): Likewise.
5069         (vrp_prop::check_mem_ref): Likewise.
5070         * tree.c (wide_int_to_tree_1): Likewise.
5071         (cache_integer_cst): Likewise.
5072         * var-tracking.c (EXPR_USE_DEPTH): Likewise.
5073         (reverse_op): Likewise.
5074         (vt_find_locations): Likewise.
5075
5076 2019-11-12  Martin Liska  <mliska@suse.cz>
5077
5078         * Makefile.in: Include params.opt.
5079         * flag-types.h (enum parloops_schedule_type): Add
5080         parloops_schedule_type used in params.opt.
5081         * params.opt: New file.
5082
5083 2019-11-12  Martin Liska  <mliska@suse.cz>
5084
5085         * common.opt: Remove --param and --param= options.
5086         * opt-functions.awk: Mark CL_PARAMS for options
5087         that have Param keyword.
5088         * opts-common.c (decode_cmdline_options_to_array):
5089         Replace --param key=value with --param=key=value.
5090         * opts.c (print_filtered_help): Remove special
5091         printing of params.
5092         (print_specific_help): Update title for params.
5093         (common_handle_option): Do not handle OPT__param.
5094         opts.h (SET_OPTION_IF_UNSET): New macro.
5095         * doc/options.texi: Document Param keyword.
5096
5097 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
5098             Frederik Harwath  <frederik@codesourcery.com>
5099             Thomas Schwinge  <thomas@codesourcery.com>
5100
5101         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
5102         enumeration constant.
5103         (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5104         (is_gimple_omp_offloaded): Likewise.
5105         * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
5106         constant.  Adjust the value of ORT_NONE accordingly.
5107         (is_gimple_stmt): Handle OACC_SERIAL.
5108         (oacc_default_clause): Handle ORT_ACC_SERIAL.
5109         (gomp_needs_data_present): Likewise.
5110         (gimplify_adjust_omp_clauses): Likewise.
5111         (gimplify_omp_workshare): Handle OACC_SERIAL.
5112         (gimplify_expr): Likewise.
5113         * omp-expand.c (expand_omp_target):
5114         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5115         (build_omp_regions_1, omp_make_gimple_edges): Likewise.
5116         * omp-low.c (is_oacc_parallel): Rename function to...
5117         (is_oacc_parallel_or_serial): ... this.
5118         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5119         (scan_sharing_clauses): Adjust accordingly.
5120         (scan_omp_for): Likewise.
5121         (lower_oacc_head_mark): Likewise.
5122         (convert_from_firstprivate_int): Likewise.
5123         (lower_omp_target): Likewise.
5124         (check_omp_nesting_restrictions): Handle
5125         GF_OMP_TARGET_KIND_OACC_SERIAL.
5126         (lower_oacc_reductions): Likewise.
5127         (lower_omp_target): Likewise.
5128         * tree.def (OACC_SERIAL): New tree code.
5129         * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
5130
5131         * doc/generic.texi (OpenACC): Document OACC_SERIAL.
5132
5133 2019-11-12  Jakub Jelinek  <jakub@redhat.com>
5134
5135         PR target/92449
5136         * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
5137         don't emit UNORDERED_EXPR guarded libcall.  Formatting fixes.
5138
5139         PR tree-optimization/92452
5140         * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
5141         into NULL_TREE, set up_bound to NULL_TREE instead of computing
5142         MINUS_EXPR on it.
5143
5144 2019-11-12  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5145
5146         * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
5147         safelen with 0.
5148
5149 2019-11-12  Alan Modra  <amodra@gmail.com>
5150
5151         * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
5152         element of unspec vec.
5153         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
5154         PC-relative TLS.
5155         * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
5156         (tls_gd_pcrel, tls_ld_pcrel): New insns.
5157         (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
5158         (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
5159
5160 2019-11-12  Alan Modra  <amodra@gmail.com>
5161
5162         * config/rs6000/rs6000.opt (mtls-markers): Delete.
5163         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5164         (IS_NOMARK_TLSGETADDR): Likewise.
5165         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
5166         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
5167         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
5168         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
5169         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
5170         (rs6000_indirect_call_template_1): Likewise.
5171         (rs6000_pltseq_template): Likewise.
5172         (rs6000_opt_vars): Remove "tls-markers" entry.
5173         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
5174         with TARGET_ELF.
5175         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
5176         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
5177         (pltseq_plt_pcrel<mode>): Likewise.
5178         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
5179         (call_value_local64): Likewise.
5180         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
5181         output and length attribute sub-expression.
5182         (call_value_nonlocal_sysv<mode>),
5183         (call_value_nonlocal_sysv_secure<mode>),
5184         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
5185         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
5186         (call_value_indirect_pcrel<mode>): Likewise.
5187         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
5188         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
5189         * configure: Regenerate.
5190         * config.in: Regenerate.
5191
5192 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
5193
5194         * config/rs6000/predicates.md (prefixed_memory): New predicate.
5195         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
5196         address being a prefixed load/store.
5197         (stack_protect_testdi): Deal with either address being a prefixed
5198         load.
5199
5200 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
5201
5202         PR bootstrap/92433
5203         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5204         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
5205         std::swap.
5206
5207 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
5208
5209         PR tree-optimization/92420
5210         * tree-vect-stmts.c (get_negative_load_store_type): Move further
5211         up file.
5212         (get_group_load_store_type): Use it for reversed SLP accesses.
5213
5214 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
5215
5216         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5217         summary.
5218         (ipcp_transformation_t::duplicate): Break out from ...
5219         (ipa_node_params_t::duplicate): ... here; add copying of agg
5220         replacements.
5221         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5222         (ipcp_transformation_t): Add duplicate.
5223
5224 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
5225
5226         PR fortran/91828
5227         * doc/install.texi: Document that the minimum MPFR version is
5228         3.1.0.
5229
5230 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5231
5232         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5233         use new register constraint letters.
5234
5235 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5236
5237         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5238         as well, if interesting recover the symbol and re-legitimize the
5239         pic address.
5240
5241 2019-11-11  Martin Liska  <mliska@suse.cz>
5242
5243         * dbgcnt.def (DEBUG_COUNTER): Sort counters
5244         alphabetically.
5245
5246 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5247
5248         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5249         account when checking if there are enough iterations to vectorize
5250         epilogue.
5251
5252 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
5253             Kwok Cheung Yeung  <kcy@codesourcery.com>
5254
5255         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5256         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5257         (LANG_HOOKS_DECLS): Rename also here.
5258         * langhooks.h (lang_hooks_for_decls): Rename
5259         omp_is_optional_argument to omp_check_optional_argument; take
5260         additional bool argument.
5261         * omp-general.h (omp_check_optional_argument): Likewise.
5262         * omp-general.h (omp_check_optional_argument): Likewise.
5263         * omp-low.c (lower_omp_target): Update calls; handle absent
5264         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5265
5266 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
5267
5268         PR target/87833
5269         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5270         -fPIC and -shared the last to create offload image.
5271
5272 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
5273
5274         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5275         of 'offset'.
5276
5277         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5278         (config.status): Use/depend on it.
5279         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5280         * configure: Regenerate.
5281
5282 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
5283
5284         PR tree-optimization/88760
5285         * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5286         * common/config/rs6000/rs6000-common.c
5287         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5288         Turn on -funroll-loops and -munroll-only-small-loops.
5289         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5290         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5291         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5292         Turn off -munroll-only-small-loops for explicit -funroll-loops.
5293         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5294         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
5295
5296 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
5297
5298         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5299         Make scalar_load, vector_load, unaligned_load and
5300         vector_gather_load cost more to conform hardware latency and
5301         insn cost settings.
5302
5303 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
5304
5305         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5306         (MACHO_SYMBOL_LINKER_VIS_P): New.
5307
5308 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
5309
5310         * lra-spills.c (assign_spill_hard_regs): Do not spill into
5311         registers in eliminable_regset.
5312
5313 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5314
5315         * ipa-inline.c (compute_uninlined_call_time,
5316         compute_inlined_call_time): Take edge frequency as
5317         parameter rather than computing it by itself.
5318         (big_speedup_p, edge_badness): Manually CSE sreal
5319         frequency calculations.
5320
5321 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5322
5323         * profile-count.c (profile_count::to_sreal_scale): Short circuit
5324         case where profiles are same.
5325
5326 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5327
5328         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5329
5330 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5331
5332         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5333         args summaries of inlined edge unless it holds info about
5334         described reference.
5335
5336 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
5337
5338         * config/rs6000/rs6000.md (CC_any): New mode iterator.
5339         (*movcc_internal1): Rename to...
5340         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
5341
5342 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5343
5344         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5345         (cgraph_node::create_virtual_clone): Copy it.
5346         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5347         summaries.
5348         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5349         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5350         is disabled.
5351         (propagate_constants_across_call): If callee is not analyzed, give up.
5352         (propagate_constants_topo): Lower to bottom latties of all callees of
5353         functions with ipa-cp disabled.
5354         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5355         (cgraph_edge_brings_value_p): Check for availability first.
5356         (create_specialized_node): Set ipcp_clone.
5357         (ipcp_store_bits_results): Check that info is present.
5358         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5359         thunks.
5360         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5361         conservative when callee summary is missing.
5362         (remap_edge_summaries): Lookup call summary only when needed.
5363         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5364         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5365         Use get_create.
5366         (ipa_analyze_node): Use get_create.
5367         (propagate_controlled_uses): Do not propagate when function is not
5368         analyzed.
5369         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5370         (ipa_read_node_info): Use get_create.
5371         * ipa-prop.h (IPA_NODE_REF): Use get.
5372         (IPA_NODE_REF_GET_CREATE): New.
5373
5374 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5375
5376         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5377         on function symbol.
5378
5379 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5380
5381         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5382         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5383         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5384         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5385
5386 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5387
5388         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5389         capping the growth cumulated.
5390         (offline_size): Break out from ...
5391         (estimate_growth): ... here.
5392         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5393         parameters.
5394         (growth_likely_positive): Turn to ...
5395         (growth_positive_p): Re-implement.
5396         * ipa-inline.h (growth_likely_positive): Remove.
5397         (growth_positive_p): Declare.
5398         * ipa-inline.c (want_inline_small_function_p): Use
5399         growth_positive_p.
5400         (want_inline_function_to_all_callers_p): Likewise.
5401
5402 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5403
5404         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5405         calculation of min_size.
5406         (ipa_update_overall_fn_summary): Likewise.
5407
5408 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5409
5410         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5411         estimate_edge_devirt_benefit when not computing hints;
5412         do not compute time when not asked for.
5413         (estimate_calls_size_and_time): Pass NULL hints and time when
5414         these are not computed; do not evaluate hint predicates when these are
5415         not computed.
5416         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5417         frequency.
5418
5419 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
5420
5421         PR tree-optimization/92401
5422         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5423         if res_op->code is an expression with code length 1.
5424         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5425         if res_op->code is an expression with code length 2.
5426         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5427         if res_op->code is an expression with code length 3.
5428
5429 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
5430
5431         * config/darwin.c (machopic_mcount_stub_name): Validate the
5432         symbol stub name when it is created.
5433         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5434         stub validation.
5435
5436 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
5437
5438         * symtab.c: Fix comment typos.
5439         * cgraphunit.c: Likewise.
5440         * cgraph.h: Likewise.
5441         * cgraphclones.c: Likewise.
5442         * cgraph.c: Likewise.
5443         * varpool.c: Likewise.
5444         * tree-ssa-strlen.c: Likewise.
5445         * ipa-sra.c: Likewise.
5446         (scan_expr_access, check_all_callers_for_issues): Fix typo
5447         in a dump message.
5448
5449 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
5450
5451         * config/darwin-protos.h: Add include quard.
5452
5453 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
5454
5455         * range-op.h (range_operator::fold_range): Return result in a
5456         reference parameter instead of by value.
5457         (range_operator::wi_fold): Same.
5458         * range-op.cc (range_operator::wi_fold): Return result in a reference
5459         parameter instead of by value.
5460         (range_operator::fold_range): Same.
5461         (value_range_from_overflowed_bounds): Same.
5462         (value_range_with_overflow): Same
5463         (create_possibly_reversed_range): Same.
5464         (operator_equal::fold_range): Same.
5465         (operator_not_equal::fold_range): Same.
5466         (operator_lt::fold_range): Same.
5467         (operator_le::fold_range): Same.
5468         (operator_gt::fold_range): Same.
5469         (operator_ge::fold_range): Same.
5470         (operator_plus::wi_fold): Same.
5471         (operator_plus::op1_range): Change call to fold_range.
5472         (operator_plus::op2_range): Change call to fold_range.
5473         (operator_minus::wi_fold): Return result via reference parameter.
5474         (operator_minus::op1_range): Change call to fold_range.
5475         (operator_minus::op2_range): Change call to fold_range.
5476         (operator_min::wi_fold): Return result via reference parameter.
5477         (operator_max::wi_fold): Same.
5478         (cross_product_operator::wi_cross_product): Same.
5479         (operator_mult::wi_fold): Same.
5480         (operator_div::wi_fold): Same.
5481         (operator_div op_floor_div): Fix whitespace.
5482         (operator_exact_divide::op1_range): Change call to fold_range.
5483         (operator_lshift::fold_range): Return result via reference parameter.
5484         (operator_lshift::wi_fold): Same.
5485         (operator_rshift::fold_range): Same.
5486         (operator_rshift::wi_fold): Same.
5487         (operator_cast::fold_range): Same.
5488         (operator_cast::op1_range): Change calls to fold_range.
5489         (operator_logical_and::fold_range): Return result via reference.
5490         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5491         (operator_bitwise_and::wi_fold): Return result via reference.
5492         (operator_logical_or::fold_range): Same.
5493         (operator_bitwise_or::wi_fold): Same.
5494         (operator_bitwise_xor::wi_fold): Same.
5495         (operator_trunc_mod::wi_fold): Same.
5496         (operator_logical_not::fold_range): Same.
5497         (operator_bitwise_not::fold_range): Same.
5498         (operator_bitwise_not::op1_range): Change call to fold_range.
5499         (operator_cst::fold_range): Return result via reference.
5500         (operator_identity::fold_range): Same.
5501         (operator_abs::wi_fold): Same.
5502         (operator_absu::wi_fold): Same.
5503         (operator_negate::fold_range): Same.
5504         (operator_negate::op1_range): Change call to fold_range.
5505         (operator_addr_expr::fold_range): Return result via reference.
5506         (operator_addr_expr::op1_range): Change call to fold_range.
5507         (operator_pointer_plus::wi_fold): Return result via reference.
5508         (operator_pointer_min_max::wi_fold): Same.
5509         (operator_pointer_and::wi_fold): Same.
5510         (operator_pointer_or::wi_fold): Same.
5511         (range_op_handler): Change call to fold_range.
5512         (range_cast): Same.
5513         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5514         fold_range.
5515         (range_fold_unary_symbolics_p): Same.
5516         (range_fold_binary_expr): Same.
5517         (range_fold_unary_expr): Same.
5518
5519 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5520
5521         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5522         vector type as an argument rather than reading it from the
5523         stmt_vec_info.
5524         (vect_create_epilog_for_reduction): Update accordingly.
5525         (vectorizable_reduction): Likewise.
5526         (vect_transform_cycle_phi): Likewise.
5527
5528 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
5529
5530         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5531         the comparison codes that make sense for the mode used, and only the
5532         codes that can be done with a single branch instruction.
5533
5534 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5535
5536         PR tree-optimization/92351
5537         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5538         peeling the main loop for alignment, make sure to set the misalignment
5539         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5540
5541 2019-11-08  Richard Biener  <rguenther@suse.de>
5542
5543         * dbgcnt.def (ivopts_loop): Add.
5544         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5545         ivopts_loop before optimizing a loop.
5546
5547 2019-11-08  Richard Biener  <rguenther@suse.de>
5548
5549         PR ipa/92409
5550         * tree-inline.c (declare_return_variable): Properly handle
5551         type mismatches for the return slot.
5552
5553 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5554
5555         PR target/92095
5556         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5557         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5558         change.
5559         (got_helper_needed): New static variable.
5560         (output_load_pcrel_sym): New function.
5561         (get_pc_thunk_name): Remove after inlining...
5562         (load_got_register): ...here.  Rework the initialization of the GOT
5563         register and of the GOT helper.
5564         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5565         (sparc_file_end): Test got_helper_needed to decide whether the GOT
5566         helper must be emitted.  Use output_asm_insn instead of fprintf.
5567         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5568         if optimization is enabled.
5569         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5570         by calling output_load_pcrel_sym.
5571
5572 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5573
5574         * tree-sra.c (create_access): Delay disqualifying the base
5575         for poly_int values until we know we have a base.
5576
5577 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5578
5579         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5580         for loops with SIMDUID set.  Enable epilogue vectorization for loops
5581         with SIMDLEN set after finding a main loop with a VF that matches it.
5582
5583 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
5584
5585         PR target/92038
5586         * gimple-ssa-store-merging.c (find_constituent_stores): For return
5587         value only, return non-NULL if there is a single non-clobber
5588         constituent store even if there are constituent clobbers and return
5589         one of clobber constituent stores if all constituent stores are
5590         clobbers.
5591         (split_group): Handle clobbers.
5592         (imm_store_chain_info::output_merged_store): When computing
5593         bzero_first, look after all clobbers at the start.  Don't count
5594         clobber stmts in orig_num_stmts, except if the first orig store is
5595         a clobber covering the whole area and split_stores cover the whole
5596         area, consider equal number of stmts ok.  Punt if split_stores
5597         contains only ->orig stores and their number plus number of original
5598         clobbers is equal to original number of stmts.  For ->orig, look past
5599         clobbers in the constituent stores.
5600         (imm_store_chain_info::output_merged_stores): Don't remove clobber
5601         stmts.
5602         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5603         rhs.
5604         (store_valid_for_store_merging_p): Allow clobber stmts.
5605         (verify_clear_bit_region_be): Fix up a thinko in function comment.
5606
5607         PR c++/92384
5608         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5609         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5610         slot.
5611         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5612         force creation of a unique data.stack_parm slot.
5613
5614 2019-11-08  Richard Biener  <rguenther@suse.de>
5615
5616         * genmatch.c (expr::gen_transform): Use the resimplify
5617         member function instead of hard-coding the gimple_resimplifyN variant.
5618         (dt_simplify::gen_1): Likewise.
5619
5620 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5621
5622         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5623         POLY_INT_CST.
5624
5625 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5626
5627         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5628         instead of INTEGER_CST.
5629
5630 2019-11-08  Richard Biener  <rguenther@suse.de>
5631
5632         PR tree-optimization/92324
5633         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5634         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5635         sign-conversions as necessary.
5636         (vectorizable_reduction): Reject conversions in the chain
5637         that are not sign-conversions, base analysis on a non-converting
5638         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
5639         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5640         for debug stmts.
5641         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5642         (STMT_VINFO_REDUC_VECTYPE): Likewise.
5643
5644 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
5645
5646         PR target/92055
5647         * config/avr/avr.opt (-mdouble=, -mlong-double=):
5648         Fix a missing '-' when displaying these options in the
5649         help screen.
5650
5651 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5652
5653         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5654
5655 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5656
5657         * config/aarch64/aarch64-builtins.c
5658         (aarch64_builtin_vectorized_function): Remove bswap handling.
5659
5660 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5661
5662         * tree-core.h (tree_type_common::indivisible_p): New member variable.
5663         * tree.h (TYPE_INDIVISIBLE_P): New macro.
5664         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5665         Treat the vector types as indivisible.
5666
5667 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
5668
5669         * optabs.def (gather_load_optab, mask_gather_load_optab)
5670         (scatter_store_optab, mask_scatter_store_optab): Turn into
5671         conversion optabs, with the offset mode given explicitly.
5672         * doc/md.texi: Update accordingly.
5673         * config/aarch64/aarch64-sve-builtins-base.cc
5674         (svld1_gather_impl::expand): Likewise.
5675         (svst1_scatter_impl::expand): Likewise.
5676         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5677         (expand_scatter_store_optab_fn): Likewise.
5678         (direct_gather_load_optab_supported_p): Likewise.
5679         (direct_scatter_store_optab_supported_p): Likewise.
5680         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
5681         to be argument 4.
5682         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5683         (internal_gather_scatter_fn_supported_p): Replace the offset sign
5684         argument with the offset vector type.  Require the two vector
5685         types to have the same number of elements but allow their element
5686         sizes to be different.  Treat the optabs as conversion optabs.
5687         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5688         prototype accordingly.
5689         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5690         (supports_vec_convert_optab_p): ...this new function.
5691         (supports_vec_gather_load_p): Update accordingly.
5692         (supports_vec_scatter_store_p): Likewise.
5693         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5694         Replace the offset sign and bits parameters with a scalar type tree.
5695         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5696         Pass back the offset vector type instead of the scalar element type.
5697         Allow the offset to be wider than the memory elements.  Search for
5698         an offset type that the target supports, stopping once we've
5699         reached the maximum of the element size and pointer size.
5700         Update call to internal_gather_scatter_fn_supported_p.
5701         (vect_check_gather_scatter): Update calls accordingly.
5702         When testing a new scale before knowing the final offset type,
5703         check whether the scale is supported for any signed or unsigned
5704         offset type.  Check whether the target supports the source and
5705         target types of a conversion before deciding whether to look
5706         through the conversion.  Record the chosen offset_vectype.
5707         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5708         (vect_recog_gather_scatter_pattern): Get the scalar offset type
5709         directly from the gs_info's offset_vectype instead.  Pass a zero
5710         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5711         * tree-vect-stmts.c (check_load_store_masking): Update call to
5712         internal_gather_scatter_fn_supported_p, passing the offset vector
5713         type recorded in the gs_info.
5714         (vect_truncate_gather_scatter_offset): Update call to
5715         vect_check_gather_scatter, leaving it to search for a valid
5716         offset vector type.
5717         (vect_use_strided_gather_scatters_p): Convert the offset to the
5718         element type of the gs_info's offset_vectype.
5719         (vect_get_gather_scatter_ops): Get the offset vector type directly
5720         from the gs_info.
5721         (vect_get_strided_load_store_ops): Likewise.
5722         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5723         and IFN_MASK_GATHER_LOAD.
5724         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5725         (gather_load<mode><v_int_equiv>): ...this.
5726         (mask_gather_load<mode>): Rename to...
5727         (mask_gather_load<mode><v_int_equiv>): ...this.
5728         (scatter_store<mode>): Rename to...
5729         (scatter_store<mode><v_int_equiv>): ...this.
5730         (mask_scatter_store<mode>): Rename to...
5731         (mask_scatter_store<mode><v_int_equiv>): ...this.
5732
5733 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
5734
5735         PR target/92132
5736         * config/rs6000/predicates.md
5737         (signed_or_equality_comparison_operator): New predicate.
5738         (unsigned_or_equality_comparison_operator): Likewise.
5739         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5740         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5741         * config/rs6000/vector.md
5742         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5743         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5744         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5745         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5746         vector modes and same-size integer vector modes.
5747         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5748         (vector_lt<mode> for VEC_F): New expand.
5749         (vector_le<mode> for VEC_F): Likewise.
5750         (vector_ne<mode> for VEC_F): Likewise.
5751         (vector_unge<mode> for VEC_F): Likewise.
5752         (vector_ungt<mode> for VEC_F): Likewise.
5753         (vector_unle<mode> for VEC_F): Likewise.
5754         (vector_unlt<mode> for VEC_F): Likewise.
5755         (vector_uneq<mode>): Expose name.
5756         (vector_ltgt<mode>): Likewise.
5757         (vector_unordered<mode>): Likewise.
5758         (vector_ordered<mode>): Likewise.
5759
5760 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
5761
5762         PR target/92295
5763         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5764         Enhance ix86_expand_vector_init_concat.
5765
5766 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
5767
5768         * doc/invoke.texi (-Wold-style-definition): Document () not being
5769         considered an old-style definition for C2x.
5770
5771 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
5772
5773         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5774         Enhance comment.
5775         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5776         insn patterns using ldcw instruction.
5777         (memory_barrier): Remove insn pattern using sync instruction.
5778         * config/pa/pa.opt (coherent-ldcw): New option.
5779         (ordered): New option.
5780
5781 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5782
5783         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5784         valid conditions.
5785
5786 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
5787
5788         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5789         typo - mistmatch -> mismatch.
5790         * ipa-profile.c (ipa_profile): Likewise.
5791         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5792         - mistmatch -> mismatch.
5793
5794 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5795
5796         * simplify-rtx.c (comparison_to_mask): New function.
5797         (mask_to_comparison): New function.
5798         (simplify_logical_relational_operation): New function.
5799         (simplify_binary_operation_1): Call
5800         simplify_logical_relational_operation.
5801
5802 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
5803
5804         PR other/92090
5805         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5806         modes for integer constants.
5807
5808 2019-11-07  Jan Hubicka  <jh@suse.cz>
5809
5810         PR ipa/92406
5811         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5812         summary.
5813
5814 2019-11-07  Jan Hubicka  <jh@suse.cz>
5815
5816         * optc-save-gen.awk: Generate cl_target_option_free
5817         and cl_optimization_option_free.
5818         * opth-en.awk: Declare cl_target_option_free
5819         and cl_optimization_option_free.
5820         * tree.c (free_node): Use it.
5821
5822 2019-11-06  Jan Hubicka  <jh@suse.cz>
5823
5824         * lto-streamer-in.c: Include alloc-pool.h.
5825         (freeing_string_slot_hasher): Remove.
5826         (string_slot_allocator): New object allocator.
5827         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5828         (file_name_obstack): New obstack.
5829         (canon_file_name): Allocate in obstack and allocator.
5830         (lto_reader_init): Initialize obstack and allocator.
5831         (lto_free_file_name_hash): New function.
5832         * lto-streamer.h (lto_free_file_name_hash): New.
5833
5834 2019-11-07  Feng Xue  <fxue@os.amperecomputing.com>
5835
5836         PR tree-optimization/89134
5837         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5838         * params.def: Add min-loop-cond-split-prob.
5839         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5840         outside checks on loop into the function.
5841         (split_info): New class.
5842         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5843         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5844         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5845         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5846         (stmt_semi_invariant_p, branch_removable_p): Likewise.
5847         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5848         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5849         (split_loop_on_cond): Likewise.
5850         (tree_ssa_split_loops): Add loop split on conditional statement.
5851
5852 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
5853
5854         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5855         pattern.
5856
5857 2019-11-07  Richard Biener  <rguenther@suse.de>
5858
5859         PR tree-optimization/92405
5860         * tree-vect-loop.c (vectorizable_reduction): Appropriately
5861         restrict lane-reducing ops to single stmt chains.
5862
5863 2019-11-07  Martin Jambor  <mjambor@suse.cz>
5864
5865         PR lto/70929
5866         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5867         * cgraph.h (gimple_check_call_matching_types): Remove
5868         * cgraph.c (gimple_check_call_args): Likewise.
5869         (gimple_check_call_matching_types): Likewise.
5870         (symbol_table::create_edge): Do not call
5871         gimple_check_call_matching_types.
5872         (cgraph_edge::make_direct): Likewise.
5873         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5874         * value-prof.h (check_ic_target): Remove.
5875         * value-prof.c (check_ic_target): Remove.
5876         (gimple_ic_transform): Do nat call check_ic_target.
5877         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5878         (afdo_indirect_call): Likewise.
5879         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5880         gimple_check_call_matching_types.
5881         * ipa-inline.c (early_inliner): Likewise.
5882
5883 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5884
5885         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5886         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5887         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5888         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5889         * config/arm/iterators.md (USSAT16): New int_iterator.
5890         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5891         (sup): Likewise.
5892         * config/arm/predicates.md (ssat16_imm): New predicate.
5893         (usat16_imm): Likewise.
5894         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5895
5896 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5897
5898         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5899         New define_insns.
5900         (arm_<simd32_op>): New define_expands.
5901         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5902         __smuad, __smuadx): Define.
5903         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5904         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5905         (SIMD32_BINOP_Q): Likewise.
5906         (simd32_op): Handle the above.
5907         * config/arm/unspecs.md: Define unspecs for the above.
5908
5909 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5910
5911         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5912         * config/arm/arm.md (APSRGE_REGNUM): Define.
5913         (arm_<simd32_op>): New define_insn.
5914         (arm_sel): Likewise.
5915         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5916         (CALL_USED_REGISTERS): Likewise.
5917         (REG_ALLOC_ORDER): Likewise.
5918         (FIRST_PSEUDO_REGISTER): Update value.
5919         (ARM_GE_BITS_READ): Define.
5920         * config/arm/arm.c (arm_conditional_register_usage): Clear
5921         APSRGE_REGNUM from operand_reg_set.
5922         (arm_ge_bits_access): Define.
5923         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5924         ARM_BUIILTIN_sel.
5925         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5926         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5927         FAIL if ARM_GE_BITS_READ.
5928         (*arm_add<mode>3): New define_insn.
5929         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
5930         (*arm_sub<mode>3): New define_insn.
5931         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5932         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5933         __usub16): Define.
5934         * config/arm/arm_acle_builtins.def: Define builtins for the above.
5935         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5936         (simd32_op): Handle the above.
5937         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5938         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5939         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5940         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5941
5942 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5943
5944         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5945         (arm_smlabb): New define_expand.
5946         (*maddhisi4tb): Rename to...
5947         (maddhisi4tb): ... This.
5948         (*maddhisi4tt): Rename to...
5949         (maddhisi4tt): ... This.
5950         (arm_smlatb_setq): New define_insn.
5951         (arm_smlatb): New define_expand.
5952         (arm_smlatt_setq): New define_insn.
5953         (arm_smlatt): New define_expand.
5954         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5955         (arm_<smlaw_op>): New define_expand.
5956         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5957         __smlawb, __smlawt): Define.
5958         * config/arm_acle_builtins.def: Define builtins for the above.
5959         * config/arm/iterators.md (SMLAWBT): New int_iterator.
5960         (slaw_op): New int_attribute.
5961         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5962
5963 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5964
5965         * config/arm/arm.md (arm_<ss_op>): New define_expand.
5966         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5967         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5968         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5969         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5970         (ss_op): New code_attr.
5971
5972 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5973
5974         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5975         * config/arm/arm.md (APSRQ_REGNUM): Define.
5976         (add_setq): New define_subst.
5977         (add_clobber_q_name): New define_subst_attr.
5978         (add_clobber_q_pred): Likewise.
5979         (maddhisi4): Change to define_expand.  Split into mult and add if
5980         ARM_Q_BIT_READ.
5981         (arm_maddhisi4): New define_insn.
5982         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5983         (*maddhisi4tt): Likewise.
5984         (arm_ssat): New define_expand.
5985         (arm_usat): Likewise.
5986         (arm_get_apsr): New define_insn.
5987         (arm_set_apsr): Likewise.
5988         (arm_saturation_occurred): New define_expand.
5989         (arm_set_saturation): Likewise.
5990         (*satsi_<SAT:code>): Rename to...
5991         (satsi_<SAT:code><add_clobber_q_name>): ... This.
5992         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5993         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5994         (CALL_USED_REGISTERS): Mark apsrq.
5995         (FIRST_PSEUDO_REGISTER): Update value.
5996         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5997         (machine_function): Add q_bit_access.
5998         (ARM_Q_BIT_READ): Define.
5999         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
6000         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
6001         operand_reg_set.
6002         (arm_q_bit_access): Define.
6003         * config/arm/arm-builtins.c: Include stringpool.h.
6004         (arm_sat_binop_imm_qualifiers,
6005         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
6006         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
6007         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
6008         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
6009         SET_SAT_QUALIFIERS): Likewise.
6010         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
6011         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
6012         Handle 0 argument expander.
6013         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
6014         (arm_check_builtin_call): Define.
6015         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
6016         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
6017         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
6018         (arm_q_bit_access): Likewise.
6019         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
6020         __saturation_occurred, __set_saturation_occurred): Define.
6021         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
6022         saturation_occurred, set_saturation_occurred.
6023         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
6024         (UNSPEC_APSR_READ): Likewise.
6025         (VUNSPEC_APSR_WRITE): Likewise.
6026         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
6027         (*arm_ssadd<mode>3): New define_insn.
6028         (sssub<mode>3): Convert to define_expand.
6029         (*arm_sssub<mode>3): New define_insn.
6030         (ssmulsa3): Convert to define_expand.
6031         (*arm_ssmulsa3): New define_insn.
6032         (usmulusa3): Convert to define_expand.
6033         (*arm_usmulusa3): New define_insn.
6034         (ssmulha3): FAIL if ARM_Q_BIT_READ.
6035         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
6036         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
6037
6038 2019-11-07  Martin Liska  <mliska@suse.cz>
6039
6040         PR c++/92354
6041         * cgraph.c (delete_function_version): Clear global
6042         variable version_info_node if equal to deleted
6043         function.
6044
6045 2019-11-07  Martin Liska  <mliska@suse.cz>
6046
6047         * fold-const.c (operand_compare::operand_equal_p): Add comparison
6048         of CONSTRUCTOR_NO_CLEARING.
6049         (operand_compare::hash_operand): Likewise.
6050
6051 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
6052
6053         Support 64-bit double and 64-bit long double configurations.
6054
6055         PR target/92055
6056         * config.gcc (tm_defines) [avr]: Set from --with-double=,
6057         --with-long-double=.
6058         * config/avr/t-multilib: Remove.
6059         * config/avr/t-avr: Output of genmultilib.awk is now fully
6060         dynamically generated and no more part of the repo.
6061         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
6062         Pass them down to...
6063         * config/avr/genmultilib.awk: ...here and handle them.
6064         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
6065         (-mlong-double=, avr_long_double). New option and var.
6066         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
6067         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
6068         Set default as requested by --with-double=
6069         (TARGET_HANDLE_OPTION): Define to this...
6070         (avr_handle_option): ...new hook worker.
6071         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
6072         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
6073         (avr_double_lib): New proto for spec function.
6074         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
6075         (DRIVER_SELF_SPECS): Call %:double-lib.
6076         * config/avr/avr.c (avr_option_override): Assert
6077         sizeof(long double) >= sizeof(double) for the target.
6078         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
6079         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
6080         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
6081         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
6082         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
6083         New built-in define depending on --with-double=, --with-long-double=.
6084         * config/avr/driver-avr.c (avr_double_lib): New spec function.
6085         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
6086         * doc/install.texi (Cross-Compiler-Specific Options)
6087         <--with-double=, --with-long-double=>: Doc.
6088
6089 2019-11-07  Richard Biener  <rguenther@suse.de>
6090
6091         * dbgcnt.def (gimple_unroll): New.
6092         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
6093         gimple_unroll debug counter before applying transform.
6094         (try_peel_loop): Likewise.
6095
6096 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
6097
6098         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
6099         frame pointer in multiple registers.
6100         (ira_setup_eliminable_regset): Setup eliminable_regset,
6101         ira_no_alloc_regs and regs_ever_live for frame pointer in
6102         multiple registers.
6103
6104 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6105
6106         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
6107         V2DI modes.
6108
6109 2019-11-06  Jan Hubicka  <jh@suse.cz>
6110
6111         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
6112         allocations.
6113         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
6114         Do not silently ignore summary corruptions.
6115
6116 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6117
6118         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
6119         the epilogue if there are peeled iterations for it to handle.
6120
6121 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6122
6123         * config/arc/arc.c (arc_split_ior): Add asserts.
6124         (arc_split_mov_const): Likewise.
6125         (arc_check_ior_const): Do not match known short immediate values.
6126         * config/arc/arc.md (movsi): Don't split predicated instructions
6127         (iorsi): Likewise.
6128
6129 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6130
6131         * config/arc/arc.opt (mea): Update help string.
6132         * doc/invoke.texi(ARC): Update mea option info.
6133
6134 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6135
6136         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
6137         (zero_extendqisi2_ac): Likewise.
6138         (zero_extendhisi2_i): Likewise.
6139         (extendqihi2_i): Likewise.
6140         (extendqisi2_ac): Likewise.
6141         (extendhisi2_i): Likewise.
6142
6143 2019-11-06  Richard Biener  <rguenther@suse.de>
6144
6145         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
6146         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
6147         Simplify single_defuse_cycle condition.
6148
6149 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6150
6151         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
6152         epilogue loop, make sure that the VF is small enough or that
6153         the epilogue loop can be fully-masked.
6154
6155 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6156
6157         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
6158         loop when we've finished, rather than returning directly from
6159         the loop.  Use a local variable to track whether we're still
6160         searching for the preferred simdlen.  Make vect_epilogues
6161         record whether the next iteration should try to treat the
6162         loop as an epilogue.
6163
6164 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
6165
6166         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
6167         __arc_hard_float__, __ARC_HARD_FLOAT__,
6168         __arc_soft_float__, __ARC_SOFT_FLOAT__
6169
6170 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6171
6172         PR tree-optimization/92317
6173         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
6174         update phi's with constant phi arguments.
6175
6176 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6177             Alexandre Oliva  <oliva@adacore.com>
6178
6179         * common.opt (-fcallgraph-info[=]): New option.
6180         * doc/invoke.texi (Developer options): Document it.
6181         * opts.c (common_handle_option): Handle it.
6182         * builtins.c (expand_builtin_alloca): Record allocation if
6183         -fcallgraph-info=da.
6184         * calls.c (expand_call): If -fcallgraph-info, record the call.
6185         (emit_library_call_value_1): Likewise.
6186         * flag-types.h (enum callgraph_info_type): New type.
6187         * explow.c: Include stringpool.h.
6188         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
6189         * function.c (allocate_stack_usage_info): New.
6190         (allocate_struct_function): Call it for -fcallgraph-info.
6191         (prepare_function_start): Call it otherwise.
6192         (record_final_call, record_dynamic_alloc): New.
6193         * function.h (struct callinfo_callee): New.
6194         (CALLEE_FROM_CGRAPH_P): New.
6195         (struct callinfo_dalloc): New.
6196         (struct stack_usage): Add callees and dallocs.
6197         (record_final_call, record_dynamic_alloc): Declare.
6198         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6199         object if -fcallgraph-info=da.
6200         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6201         * print-tree.h (print_decl_identifier): Declare.
6202         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6203         * print-tree.c: Include print-tree.h.
6204         (print_decl_identifier): New function.
6205         * toplev.c: Include print-tree.h.
6206         (callgraph_info_file): New global variable.
6207         (callgraph_info_external_printed): Likewise.
6208         (output_stack_usage): Rename to...
6209         (output_stack_usage_1): ... this.  Make it static, add cf
6210         parameter.  If -fcallgraph-info=su, print stack usage to cf.
6211         If -fstack-usage, use print_decl_identifier for
6212         pretty-printing.
6213         (INDIRECT_CALL_NAME): New.
6214         (dump_final_node_vcg_start): New.
6215         (dump_final_callee_vcg, dump_final_node_vcg): New.
6216         (output_stack_usage): New.
6217         (lang_dependent_init): Open and start file if
6218         -fcallgraph-info.  Allocated callgraph_info_external_printed.
6219         (finalize): If callgraph_info_file is not null, finish it,
6220         close it, and release callgraph_info_external_printed.
6221
6222 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
6223             Frederik Harwath  <frederik@codesourcery.com>
6224             Thomas Schwinge  <thomas@codesourcery.com>
6225
6226         * omp-low.c (struct omp_context): New fields
6227         local_reduction_clauses, outer_reduction_clauses.
6228         (new_omp_context): Initialize these.
6229         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6230         (scan_omp_for): Check reduction clauses for incorrect nesting.
6231
6232 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
6233
6234         PR inline-asm/92352
6235         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6236         operands with non-memory constraints.
6237
6238 2019-11-05  Martin Sebor  <msebor@redhat.com>
6239
6240         PR tree-optimization/92373
6241         * tree.c (component_ref_size): Only consider initializers of objects
6242         of matching struct types.
6243         Return null for instances of interior zero-length arrays.
6244
6245 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
6246
6247         * doc/md.texi (Insn Splitting): Fix combiner documentation.
6248
6249 2019-11-05  Jason Merrill  <jason@redhat.com>
6250
6251         PR tree-optimization/91825
6252         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6253
6254 2019-11-05  Jim Wilson  <jimw@sifive.com>
6255
6256         PR middle-end/92263
6257         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6258         optimize_insn_for_speed_p is true.
6259
6260 2019-11-05  Martin Sebor  <msebor@redhat.com>
6261
6262         PR middle-end/92333
6263         PR middle-end/82608
6264         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6265         size.
6266         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6267         name and location for a temporary variable.
6268
6269 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6270
6271         * tree-vrp.c (value_range::value_range): Fix whitespace.
6272         (defined_ranges_p): Same.
6273         (range_fold_binary_symbolics_p): Same.
6274         (value_range::intersect_helper): Same.
6275         (value_range::union_helper): Same.
6276         * tree-vrp.h (range_fold_binary_expr): Same.
6277
6278 2019-11-04  Martin Sebor  <msebor@redhat.com>
6279
6280         PR middle-end/92341
6281         PR middle-end/82612
6282         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6283         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6284         of message printed in a warning for empty arrays.
6285         (vrp_prop::check_mem_ref): Also handle function parameters and
6286         empty arrays.
6287
6288 2019-11-05  Richard Biener  <rguenther@suse.de>
6289
6290         PR tree-optimization/92371
6291         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6292         on the original stmt of live stmts in the chain.
6293         (vectorizable_live_operation): Look at the original stmt when
6294         checking STMT_VINFO_REDUC_DEF.
6295
6296 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6297
6298         * gimple-fold.c, gimple-loop-versioning.cc,
6299         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6300         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6301         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6302         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6303         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6304         value_range_equiv, and value_range_base to value_range.
6305
6306 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6307
6308         * expr.c (build_personality_function): Fix generated type to
6309         match actual personality functions.
6310
6311 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6312
6313         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6314         enough bytes for the NULL character.
6315
6316 2019-11-05  Richard Biener  <rguenther@suse.de>
6317
6318         PR tree-optimization/92280
6319         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6320         had a single use do not create a new CTOR.
6321         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6322         BIT_FIELD_REF of a CTOR via GENERIC.
6323
6324 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
6325
6326         * config/s390/s390.c (s390_vector_alignment): Check if the value
6327         fits into uhwi before using it.
6328
6329 2019-11-05  Martin Liska  <mliska@suse.cz>
6330
6331         * symbol-summary.h: Use ggc_delete.
6332
6333 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
6334
6335         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6336         Change vec_perm field to 10.
6337
6338 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
6339
6340         * doc/install.texi: Further fix syntax for html generation.
6341
6342 2019-11-05  Martin Liska  <mliska@suse.cz>
6343
6344         * symbol-summary.h: Rename allocator to m_allocator and
6345         add comment.
6346
6347 2019-11-05  Richard Biener  <rguenther@suse.de>
6348
6349         PR tree-optimization/92324
6350         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6351         all signed or unsigned operations.
6352
6353 2019-11-05  Jan Hubicka  <jh@suse.cz>
6354
6355         * hsa-brig.c: Include alloc-pool.h
6356         * hsa-dump.c: Likewise.
6357         * hsa-gen.c: Likewise.
6358         * hse-regalloc.c: Likewise.
6359         * ipa-hsa.c: Likewise.
6360         * ipa-predicate.c: Likewise.
6361         * ipa-reference.c: Likewise.
6362         * ipa-sra.c: Likewise.
6363         * omp-expand.c: Likewise.
6364         * omp-general.c: Likewise.
6365         * omp-low.c: Likewise.
6366         * sumbol-summary.h (function_summary_base): Add allocator.
6367         (function_summary<T *>::function_summary): Update construction.
6368         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6369         (call_summary_base): Add allcator.
6370         (call_summary<T *>::call_summary): Update construction.
6371         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6372
6373 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
6374
6375         PR tree-optimization/91945
6376         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6377         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6378         Formatting fix.
6379
6380 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6381
6382         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6383         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6384         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6385         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6386         (vrp_set_zero_nonzero_bits): Move to...
6387         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6388         (vr_values::simplify_bit_ops_using_ranges): Rename
6389         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6390
6391 2019-11-05  Martin Liska  <mliska@suse.cz>
6392
6393         PR c++/92339
6394         * fold-const.c (operand_compare::hash_operand): Remove
6395         FIELD_DECL handling.
6396
6397 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6398
6399         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6400         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6401         static.
6402
6403 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6404
6405         * tree-vrp.c (value_range_base::operator==): Use equal_p to
6406         properly handle symbolics.
6407         (range_compatible_p): Remove.
6408
6409 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
6410
6411         * common.opt (-fabi-version): Document =14.
6412         * doc/invoke.texi (C++ Dialect Options): Likewise.
6413
6414 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6415
6416         * tree-vrp.c (value_range_base::set): Do not special case pointers.
6417
6418 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
6419
6420         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6421         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6422         gcn_omp_device_kind_arch_isa.
6423         * config/gcn/t-omp-device: New file.
6424         * configure.ac: Support gcn for omp_device_property.
6425         * configure: Regenerate.
6426
6427 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6428
6429         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6430         (vrp_val_max): Same.
6431         (vrp_val_is_min): Same.
6432         (vrp_val_is_max): Same.
6433         (value_range_base::nonzero_p): Remove last argument to
6434         vrp_val_is_max.
6435         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6436         (vrp_val_max): Same.
6437         (vrp_val_is_min): Same.
6438         (vrp_val_is_max): Same.
6439         (value_range_base::set_varying): Remove last argument to vrp_val*.
6440         (value_range_base::dump): Same.
6441         (value_range_base::set): Same.
6442         (value_range_base::normalize_symbolics): Same.
6443         (value_range_base::num_pairs): Same.
6444         (value_range_base::lower_bound): Same.
6445         (value_range_base::upper_bound): Same.
6446         (ranges_from_anti_range): Remove handle_pointers argument.
6447         (value_range_base::singleton_p): Remove last argument to
6448         ranges_from_anti_range.
6449
6450 2019-11-04  Jan Hubicka  <jh@suse.cz>
6451
6452         * ipa-reference.c (init_function_info): Initialize
6453         info->global.statics_read.
6454
6455 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6456
6457         * tree-vrp.c (value_range_base::invert): Use constructors to build
6458         range.
6459
6460 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6461
6462         * tree-vrp.c (range_int_cst_singleton_p): Remove.
6463         * tree-vrp.h (range_int_cst_singleton_p): Remove.
6464
6465 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6466
6467         * tree-vrp.c (value_range_base::normalize_addresses): Handle
6468         VR_UNDEFINED.
6469
6470 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
6471
6472         * tree-vrp.c (dump_assert_info): New.
6473         (dump_asserts_info): New.
6474
6475 2019-11-04  Jan Hubicka  <jh@suse.cz>
6476
6477         * ipa-inline-transform.c: Include ipa-utils.h
6478         (inline_call): Set thunk_expansion flag.
6479         * ipa-utils.h (thunk_expansion): Declare.
6480         * ipa-devirt.c (thunk_expansion): New global var.
6481         (devirt_node_removal_hook): Do not invalidate cache while
6482         doing thunk expansion.
6483
6484 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
6485
6486         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6487
6488 2019-11-04  Martin Sebor  <msebor@redhat.com>
6489
6490         PR tree-optimization/92349
6491         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6492         memebers have constant sizes.
6493
6494 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6495
6496         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6497         parameter.
6498         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6499         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6500         vect_analyze_loop.
6501
6502 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
6503
6504         * expr.c (store_constructor): Modify to handle single element vectors.
6505         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6506         constructors.
6507         (vect_slp_check_for_constructors): New function.
6508         (vect_slp_analyze_bb_1): Call new function to check for vector
6509         constructors.
6510         (vectorize_slp_instance_root_stmt): New function.
6511         (vect_schedule_slp): Call new function to vectorize root stmt of vector
6512         constructors.
6513         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6514
6515 2019-11-04  Richard Biener  <rguenther@suse.de>
6516
6517         PR tree-optimization/92345
6518         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6519         we produced a reduction chain.
6520         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6521         LOOP_VINFO_REDUCTIONS.
6522
6523 2019-11-04  Jan Hubicka  <jh@suse.cz>
6524
6525         * cgraphclones.c (cgraph_node::create_version_clone): Do not
6526         duplicate summaries.
6527         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6528         first.
6529         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6530         access call summaries.
6531         (dump_ipa_call_summary): Be ready for missing edge summaries.
6532         (analyze_function_body): Use get instead of get_create to access
6533         edge summary.
6534         (estimate_calls_size_and_time): Do not access summaries of
6535         inlined edges; sanity check they are missing.
6536         (ipa_call_context::estimate_size_and_time): Use get instead
6537         of get_create to access node summary.
6538         (inline_update_callee_summaries): Do not update depth of
6539         inlined edge.
6540         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6541         growth caches.
6542         (ipa_merge_fn_summary_after_inlining): Use get instead
6543         of get_create.
6544         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6545         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6546         fast summary.
6547         (initialize_growth_caches): Update.
6548         (do_estimate_edge_time): Remove redundant copy of context.
6549         (ipa_remove_from_growth_caches): New function.
6550         * ipa-inline.c (flatten_function): Update overall summary
6551         only when optimizing.
6552         (inline_to_all_callers): Update overall summary of function
6553         inlined to.
6554         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6555         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6556         to false.
6557
6558 2019-11-04  Richard Biener  <rguenther@suse.de>
6559
6560         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6561         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6562
6563 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
6564
6565         * ggc-common.c: Include system.h before malloc.h.
6566
6567 2019-11-04  Alexandre Oliva <oliva@adacore.com>
6568
6569         * configure.ac: Pass --enable-obsolete=* and
6570         --enable-option-checking=* down to build configure, and fail
6571         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
6572         * configure: Rebuild.
6573         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6574         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6575
6576 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6577
6578         * config.in: Regenerate.
6579         * config/msp430/msp430.c (msp430_option_override): Emit an error if
6580         -mtiny-printf is used without GCC being configured with
6581         --enable-newlib-nano-formatted-io.
6582         * config/msp430/msp430.h (LINK_SPEC): Pass 
6583         "--wrap puts --wrap printf" when -mtiny-printf is used.
6584         * config/msp430/msp430.opt: Document -mtiny-printf.
6585         * configure: Regenerate.
6586         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6587         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6588         --enable-newlib-nano-formatted-io is passed.
6589         * doc/invoke.texi: Document -mtiny-printf.
6590
6591 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6592
6593         * configure: Regenerate.
6594
6595 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6596
6597         * config/msp430/driver-msp430.c
6598         (msp430_get_linker_devices_include_path): New spec function.
6599         * config/msp430/msp430-devices.c (msp430_dirname): New function.
6600         (extract_devices_dir_from_exec_prefix): New function.
6601         (extract_devices_dir_from_collect_gcc): New function.
6602         (msp430_check_env_var_for_devices): New function.
6603         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6604         (parse_devices_csv): Call msp430_check_env_var_for_devices if
6605         devices.csv was not found using other methods.
6606         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6607         New prototype.
6608         (msp430_dirname): Likewise.
6609         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6610         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6611         msp430_get_linker_devices_include_path.
6612         (TARGET_EXTRA_PRE_INCLUDES): Define.
6613         * doc/invoke.texi: Document new ways of searching for support files.
6614
6615 2019-11-04  Richard Biener  <rguenther@suse.de>
6616
6617         PR tree-optimization/92301
6618         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6619         as required by epilogue generation
6620
6621 2019-11-04  Martin Liska  <mliska@suse.cz>
6622
6623         PR ipa/92304
6624         * fold-const.c (operand_compare::hash_operand): Fix field
6625         hashing of CONSTRUCTOR.
6626
6627 2019-11-04  Martin Liska  <mliska@suse.cz>
6628
6629         * ggc.h (ggc_delete): New function.
6630         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6631         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6632         (ipa_free_all_node_params): Likewise.
6633         * ipa-sra.c (ipa_sra_analysis): Likewise.
6634
6635 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6636
6637         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6638         set_switch_stmt_execution_predicate, compute_bb_predicates,
6639         will_be_nonconstant_expr_predicate,
6640         phi_result_unknown_predicate,
6641         analyze_function_body): Pass arround params summary.
6642         (ipa_call_context::duplicate_from): New comment;
6643         only duplicate useful values.
6644         (ipa_call_context::equal_to): Only compare useful values.
6645         (remap_edge_summaries): Pass params_summary.
6646         (remap_hint_predicate): Likewise.
6647         (ipa_merge_fn_summary_after_inlining): Likewise.
6648         (inline_read_section): Initialize params summary used flags.
6649         * ipa-predicate.c (predicate::remap_after_inlining): Pass
6650         around param_summary.
6651         (add_condition): Initialized used params summary flags.
6652         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6653         (inline_param_summary::useless_p): New predicate.
6654         (remap_after_inlining, add_condition): Update prototype
6655         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6656         move_cost.
6657         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6658         summaries.
6659         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6660         (ipa_analyze_virtual_call_uses): Likewise.
6661         (update_indirect_edges_after_inlining): Update param summaries.
6662         (ipa_print_node_params): Print used flags.
6663         (ipa_read_indirect_edge_info): Update param summareis.
6664         * ipa-prop.h (ipa_param_descriptor): Add
6665         used_by_ipa_predicates, used_by_indirect_call
6666         and used_by_polymorphic_call.
6667         (ipa_set_param_used_by_ipa_predicates,
6668         ipa_set_param_used_by_indirect_call,
6669         ipa_set_param_used_by_polymorphic_call,
6670         ipa_is_param_used_by_ipa_predicates,
6671         ipa_is_param_used_by_indirect_call,
6672         ipa_is_param_used_by_polymorphic_call): New inline functions.
6673
6674 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6675
6676         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6677         member function.
6678         (ipa_call_context::release): Add ALL parameter.
6679         (ipa_call_context::equal_to): New member function.
6680         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6681         duplicate_form, release, equal_to and exists_p member functoins.
6682         * ipa-inline-analysis.c (node_context_cache_entry): New
6683         class.
6684         (node_context_summary): Likewise.
6685         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6686         node_context_clear): New static vars.
6687         (initialize_growth_caches): New function.
6688         (free_growth_caches): Also delete node_context_cache; output stats.
6689         (do_estimate_edge_time): Cache contexts.
6690         (reset_node_cache): New function.
6691         * ipa-inline.c (reset_edge_caches): Reset also node cache.
6692         (inline_small_functions): Initialize growth caches.
6693         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6694         Declare.
6695         * ipa-predicate.h (inline_param_summary::equal_to): New.
6696         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6697         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6698         (ipa_agg_jump_function): Implement equal_to member function.
6699
6700 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6701
6702         * ipa-fnsummary.c (inline_read_section): Set vector size
6703         ahead of time.
6704
6705 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6706
6707         * ipa-fnsummary.c (ipa_call_context): New constructor.
6708         (estimate_node_size_and_time): Turn to ...
6709         (ipa_call_context::estimate_size_and_time): ... this one.
6710         (ipa_call_context::release): New.
6711         * ipa-fnsummary.h (ipa_call_context): New class.
6712         (estimate_node_size_and_time): Remove.
6713         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6714         do_estimate_edge_hints): Update.
6715
6716 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
6717
6718         * config.in: Regenerate.
6719         * configure: Regenerate.
6720         * configure.ac: Check for mallinfo.
6721         * ggc-common.c: Include malloc.h if available;
6722         include options.h
6723         (report_heap_memory_use): New functoin.
6724         * ggc-page.c (ggc_grow): Do not print "start".
6725         * ggc.h (report_heap_memory_use): Declare.
6726         * pases.c (execute_one_pass): Report memory after IPA passes.
6727         (ipa_read_summaries_1): Likewise.
6728         (ipa_read_optimization_summaries_1): Likewise.
6729
6730 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
6731
6732         * gimplify.h (omp_construct_selector_matches): Change return
6733         type to int, add a new SCORES argument.
6734         * gimplify.c (omp_construct_selector_matches): Likewise.  If
6735         SCORES is non-NULL, compute scores of each construct.
6736         * omp-general.h (omp_get_context_selector): Declare.
6737         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6738         Adjust omp_construct_selector_matches callers.
6739         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6740         (omp_context_compute_score): New function.
6741         (omp_resolve_declare_variant): Compute scores and decide based on
6742         that.
6743
6744         PR bootstrap/92314
6745         * configure.ac: Don't look for omp-device-properties files from
6746         installed offloading compilers.  Instead add tmake_file snippets
6747         for configured offloading targets and use files they generate.
6748         * Makefile.in (install): Don't depend on
6749         install-omp-device-properties.
6750         (install-omp-device-properties): Remove goal.
6751         * config/i386/t-omp-device: New file.
6752         * config/i386/t-intelmic (omp-device-properties): Remove goal.
6753         * config/nvptx/t-omp-device: New file.
6754         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6755         * configure: Regenerated.
6756
6757         * omp-general.h (omp_context_selector_set_compare): Declare.
6758         * omp-general.c (omp_construct_simd_compare,
6759         omp_context_selector_props_compare, omp_context_selector_set_compare,
6760         omp_context_selector_compare): New functions.
6761         (omp_resolve_declare_variant): Prune variants that are strict subset
6762         of another variant.
6763
6764 2019-11-01  Martin Sebor  <msebor@redhat.com>
6765
6766         PR middle-end/91679
6767         PR middle-end/91647
6768         PR middle-end/91463
6769         PR middle-end/92312
6770         * doc/invoke.texi (-Wzero-length-bounds): Document.
6771         * gimple-match-head.c (try_conditional_simplification): Use memcpy
6772         instead of a hand-rolled loop to avoid PR 92323.
6773         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6774         with initializers.
6775         (vrp_prop::check_mem_ref): Handle declared struct objects.
6776         * tree.c (last_field): New function.
6777         (array_at_struct_end_p): Handle MEM_REF.
6778         (get_initializer_for): New helper.
6779         (component_ref_size): Add argument.  Rename locals.  Call
6780         get_initializer_for instead of fold_ctor_reference.  Correct handling
6781         of flexible array members.
6782         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6783
6784 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6785
6786         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6787         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6788         UNSPEC_VSX_CVSPUXDS): Remove.
6789         (vsx_xvcvspdp): New define_expand, old define_insn split to...
6790         (vsx_xvcvspdp_be): ... this.  New.  And...
6791         (vsx_xvcvspdp_le): ... this.  New.
6792         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6793         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
6794         (vsx_xvcv<su>xwdp_le): ... this.  New.
6795         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6796         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
6797         (vsx_xvcvsp<su>xds_le): ... this.  New.
6798
6799 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6800
6801         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6802         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6803         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6804         UNSPEC_VSX_XVCVSPSXWS): Remove.
6805         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6806         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6807
6808 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
6809
6810         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6811         (UNSPEC_VSX_XVCDPSP): Remove.
6812         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6813         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6814
6815 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
6816
6817         * hooks.c (hook_tree_tree_bool_null): New.
6818         * hooks.h (hook_tree_tree_bool_null): Declare.
6819         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6820         (LANG_HOOKS_DECLS): Add it.
6821         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6822         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6823         (lower_omp_target): Handle Fortran array with descriptor in
6824         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6825
6826 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
6827
6828         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6829         Assert that the type we store in abi_vector_types is its own
6830         main variant.
6831         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6832
6833 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6834
6835         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6836         from a CONST_INT address when TARGET_THUMB2.
6837
6838 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
6839
6840         * config/arm/arm.md (add_not_cin): New insn.
6841         (add_not_shift_cin): Likewise.
6842
6843 2019-10-31  Martin Liska  <mliska@suse.cz>
6844
6845         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6846         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6847         and compare_memory_operand.
6848
6849 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
6850
6851         * configure.ac: Compute and substitute omp_device_properties and
6852         omp_device_property_deps.
6853         * Makefile.in (generated_files): Add omp-device-properties.h.
6854         (omp-general.o): Depend on omp-device-properties.h.
6855         (omp_device_properties): New make variable.
6856         (omp-device-properties.h, s-omp-device-properties-h,
6857         install-omp-device-properties): New goals.
6858         (install): Depend on install-omp-device-properties for accelerators.
6859         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6860         * target.h (enum omp_device_kind_arch_isa): New enum.
6861         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6862         documentation.
6863         * omp-general.c: Include omp-device-properties.h.
6864         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6865         colon instead of comma.
6866         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6867         functions.
6868         (omp_context_selector_matches): Implement device set arch/isa
6869         selectors, improve device set kind selector handling.
6870         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6871         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6872         TARGET_SIMD_CLONE_USABLE): Formatting fix.
6873         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6874         ix86_omp_device_kind_arch_isa.
6875         * config/i386/i386-options.c (struct ix86_target_opts): Move type
6876         definition from ix86_target_string to file scope.
6877         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6878         to file scope.
6879         (ix86_omp_device_kind_arch_isa): New function.
6880         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6881         isa_opts definitions to file scope.
6882         * config/i386/t-intelmic (omp-device-properties): New goal.
6883         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6884         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6885         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6886         nvptx_omp_device_kind_arch_isa.
6887         * configure: Regenerate.
6888         * doc/tm.texi: Regenerate.
6889
6890         PR middle-end/92231
6891         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6892         DECL_BUILT_IN in comment.  Remove redundant ()s around return
6893         argument.
6894         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6895         before calling fndecl_built_in_p.
6896         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6897         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6898         fndecl_built_in_p on it.
6899
6900 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6901
6902         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6903
6904 2019-10-31  Martin Liska  <mliska@suse.cz>
6905
6906         * config/arm/arm.c (arm_get_pcs_model): Remove usage
6907         of cgraph_local_info and use local_info_node instead.
6908         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6909         (bfin_function_ok_for_sibcall): Likewise.
6910         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6911         (must_reload_pic_reg_p): Likewise.
6912
6913 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
6914
6915         PR c++/90947
6916         * tree.h (type_initializer_zero_p): Remove.
6917         * tree.c (type_initializer_zero_p): Remove.
6918
6919 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6920
6921         * doc/invoke.texi (-Wshadow, -Wshadow=global
6922         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6923
6924 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
6925
6926         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6927         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6928         and 'target exit data'.
6929
6930 2019-10-30  Martin Jambor  <mjambor@suse.cz>
6931
6932         ipa/92278
6933         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6934         availability comparison.
6935
6936 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6937
6938         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6939         calls to __mspabi_mpy* functions.
6940         * config/msp430/msp430.md (mulhisi3): New define_expand.
6941         (umulhisi3): New define_expand.
6942         (*mulhisi3_inline): Use old mulhisi3 define_insn.
6943         (*umulhisi3_inline): Use old umulhisi3 define_insn.
6944
6945 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6946
6947         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6948         (msp430_check_plus_not_high_mem): New.
6949         (msp430_op_not_in_high_mem): Use new functions to check if the operand
6950         might be in low memory.
6951         Indicate that a 16-bit absolute address is in lower memory.
6952
6953 2019-10-30  Martin Jambor  <mjambor@suse.cz>
6954
6955         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6956         ultimate_alias_target.
6957
6958 2019-10-30  Richard Biener  <rguenther@suse.de>
6959
6960         PR tree-optimization/92275
6961         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6962         Copy all loop-closed PHIs.
6963
6964 2019-10-30  Martin Liska  <mliska@suse.cz>
6965
6966         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6967         const_tree as function argument.
6968         (func_checker::compare_decl): Likewise.
6969         (func_checker::operand_equal_p): Likewise.
6970         (func_checker::compare_variable_decl): Likewise.
6971         (func_checker::parse_labels): Likewise.
6972         * ipa-icf-gimple.h: Likewise.
6973
6974 2019-10-30  Martin Liska  <mliska@suse.cz>
6975
6976         * ipa-icf-gimple.c (func_checker::compatible_types_p):
6977         Do not compare alias sets.  It's handled by operand_equal_p.
6978
6979 2019-10-30  Martin Liska  <mliska@suse.cz>
6980
6981         * ipa-icf-gimple.c (func_checker::func_checker): Do not
6982         initialize m_compare_polymorphic.
6983         (func_checker::compare_decl): Do not compare polymorphic types.
6984         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6985         * ipa-icf.c (sem_function::equals_private): Do not call
6986         compare_polymorphic_p.
6987
6988 2019-10-30  Martin Liska  <mliska@suse.cz>
6989
6990         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6991         compare_operand.
6992         (func_checker::compare_memory_operand): Remove.
6993         (func_checker::compare_cst_or_decl): Remove.
6994         (func_checker::operand_equal_valueize): Do not handle
6995         FIELD_DECL.
6996         (func_checker::compare_gimple_call): Call compare_operand.
6997         (func_checker::compare_gimple_assign): Likewise.
6998         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6999         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
7000         * ipa-icf.h (icf_handled_component_p): Remove.
7001
7002 2019-10-30  Martin Liska  <mliska@suse.cz>
7003
7004         * ipa-icf-gimple.c (func_checker::hash_operand): New.
7005         (func_checker::compare_cst_or_decl): Remove handling
7006         of FIELD_DECL.
7007         (func_checker::compare_operand): Transform to ...
7008         (func_checker::operand_equal_p): ... this.
7009         * ipa-icf-gimple.h (class func_checker): Add
7010         operand_equal_p and hash_operand.
7011         * ipa-icf.c (sem_function::equals_private): Fix
7012         pushing and popping of cfun.
7013
7014 2019-10-30  Martin Liska  <mliska@suse.cz>
7015
7016         * fold-const.c (operand_equal_p): Move to ...
7017         (operand_compare::operand_equal_p): ... here.
7018         (operand_compare::verify_hash_value): New.
7019         (add_expr): Move to ...
7020         (operand_compare::hash_operand): ... here.
7021         * fold-const.h (operand_equal_p): Move to the class.
7022         (class operand_compare): New.
7023         * tree.c (add_expr): Remove.
7024
7025 2019-10-30  Martin Liska  <mliska@suse.cz>
7026
7027         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
7028         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
7029
7030 2019-10-30  Martin Liska  <mliska@suse.cz>
7031
7032         PR lto/91393
7033         PR lto/88220
7034         * cgraph.c (cgraph_node::get_create): Overwrite node->order
7035         from a first_clone in order to get proper LTO section
7036         in LTO stream.
7037         (cgraph_node::get_untransformed_body):
7038         Use lto_get_section_data where symtab_node::order
7039         must be provided.
7040         * cgraphclones.c (cgraph_node::find_replacement):
7041         Update also symbol order.
7042         * ipa-fnsummary.c (ipa_fn_summary_read):
7043         Use new function lto_get_summary_section_data.
7044         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
7045         * ipa-icf.c (sem_item_optimizer::read_summary):
7046         Likewise.
7047         * ipa-prop.c (ipa_prop_read_jump_functions):
7048         Likewise.
7049         (ipcp_read_transformation_summaries): Likewise.
7050         * ipa-sra.c (ipa_sra_read_summary): Likewise.
7051         * lto-cgraph.c (input_node): Add also order_base.
7052         (input_varpool_node): Likewise.
7053         (input_cgraph_1): Assign the order_base.
7054         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
7055         * lto-opts.c (lto_write_options): Pass new argument.
7056         * lto-section-in.c (lto_get_section_data): Add new argumente order.
7057         (lto_get_summary_section_data): New.
7058         (lto_get_raw_section_data): Add order argument.
7059         (lto_create_simple_input_block): Likewise.
7060         * lto-section-out.c (lto_destroy_simple_output_block):
7061         Likewise.
7062         * lto-streamer-in.c (lto_input_toplevel_asms):
7063         Use lto_get_summary_section_data.
7064         (lto_input_mode_table): Likewise.
7065         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
7066         (lto_output_toplevel_asms): Pass new argument.
7067         (copy_function_or_variable): Likewise.
7068         (produce_lto_section):Likewise.
7069         (produce_symtab): Likewise.
7070         (lto_write_mode_table): Likewise.
7071         (produce_asm_for_decls): Likewise.
7072         * lto-streamer.c (lto_get_section_name): Concat symbol name
7073         and symbol order.
7074         * lto-streamer.h (lto_get_section_data): Add order argument.
7075         (lto_get_summary_section_data): New.
7076         (lto_get_raw_section_data): Add order argument.
7077         (lto_get_section_name): Likewise.
7078         * varpool.c (varpool_node::get_constructor): Pass order argument.
7079
7080 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
7081
7082         PR tree-optimization/92262
7083         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
7084         ubase or cbase here.
7085         (remove_unused_ivs): Unshare comp before using it.
7086
7087 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
7088
7089         * ipa-prop.c (update_jump_functions_after_inlining):
7090         Watch for missing summaries.
7091
7092 2019-10-30  Richard Biener  <rguenther@suse.de>
7093
7094         PR tree-optimization/65930
7095         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
7096         chains also allow a leading and trailing conversion.
7097         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7098         intermediate reduction chains.
7099         (vect_analyze_slp_instance): Likewise.  Build a SLP
7100         node for a trailing conversion manually.
7101
7102 2019-10-30  Martin Liska  <mliska@suse.cz>
7103
7104         * cgraph.c (cgraph_node::local_info): Transform to ...
7105         (cgraph_node::local_info_node): ... this.
7106         (cgraph_node::dump): Remove cgraph_local_info and
7107         put its fields directly into cgraph_node.
7108         (cgraph_node::get_availability): Likewise.
7109         (cgraph_node::make_local): Likewise.
7110         (cgraph_node::verify_node): Likewise.
7111         * cgraph.h (struct GTY): Likewise.
7112         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
7113         (duplicate_thunk_for_node): Likewise.
7114         (cgraph_node::create_clone): Likewise.
7115         (cgraph_node::create_virtual_clone): Likewise.
7116         (cgraph_node::create_version_clone): Likewise.
7117         * cgraphunit.c (cgraph_node::reset): Likewise.
7118         (cgraph_node::finalize_function): Likewise.
7119         (cgraph_node::add_new_function): Likewise.
7120         (analyze_functions): Likewise.
7121         * combine.c (setup_incoming_promotions): Likewise.
7122         * config/i386/i386.c (ix86_function_regparm): Likewise.
7123         (ix86_function_sseregparm): Likewise.
7124         (init_cumulative_args): Likewise.
7125         * ipa-cp.c (determine_versionability): Likewise.
7126         (count_callers): Likewise.
7127         (set_single_call_flag): Likewise.
7128         (initialize_node_lattices): Likewise.
7129         (estimate_local_effects): Likewise.
7130         (create_specialized_node): Likewise.
7131         (identify_dead_nodes): Likewise.
7132         * ipa-fnsummary.c (compute_fn_summary): Likewise.
7133         (ipa_fn_summary_generate): Likewise.
7134         * ipa-hsa.c (check_warn_node_versionable): Likewise.
7135         (process_hsa_functions): Likewise.
7136         * ipa-icf.c (set_local): Likewise.
7137         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
7138         * ipa-inline.c (speculation_useful_p): Likewise.
7139         * ipa-profile.c (ipa_propagate_frequency): Likewise.
7140         (ipa_profile): Likewise.
7141         * ipa-split.c (split_function): Likewise.
7142         (execute_split_functions): Likewise.
7143         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7144         (ipa_sra_ipa_function_checks): Likewise.
7145         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7146         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7147         * lto-cgraph.c (lto_output_node): Likewise.
7148         (input_overwrite_node): Likewise.
7149         * multiple_target.c (expand_target_clones): Likewise.
7150         * omp-simd-clone.c (simd_clone_create): Likewise.
7151         * trans-mem.c (expand_call_tm): Likewise.
7152         (ipa_tm_mayenterirr_function): Likewise.
7153         (ipa_tm_diagnose_tm_safe): Likewise.
7154         (ipa_tm_diagnose_transaction): Likewise.
7155         (ipa_tm_create_version): Likewise.
7156         (ipa_tm_transform_calls_redirect): Likewise.
7157         (ipa_tm_execute): Likewise.
7158         * tree-inline.c (expand_call_inline): Likewise.
7159
7160 2019-10-29  Martin Liska  <mliska@suse.cz>
7161
7162         * symbol-summary.h (function_summary): Pass memory location
7163         to underlaying hash_map (or vec).
7164         (V>::fast_function_summary): Likewise.
7165
7166 2019-10-29  Martin Liska  <mliska@suse.cz>
7167
7168         * ggc.h (ggc_alloc_no_dtor): New function.
7169         * ipa-fnsummary.c (ipa_free_fn_summary): Call
7170         destructor and ggc_free.
7171         (ipa_free_size_summary): Call delete instead
7172         of release.
7173         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
7174         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
7175         (ipa_free_all_edge_args): Call destructor and ggc_free.
7176         (ipa_free_all_node_params): Likewise.
7177         (ipcp_free_transformation_sum): Likewise.
7178         * ipa-prop.h (ipa_check_create_node_params):
7179         Call new ggc_alloc_no_dtor.
7180         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
7181         (ipa_sra_analysis): Call destructor and ggc_free.
7182         Replace release with delete operator.
7183         * symbol-summary.h (release): Remove ..
7184         (V>::~fast_function_summary): and move logic here.
7185         Likewise for other classes.
7186
7187 2019-10-29  Richard Biener  <rguenther@suse.de>
7188
7189         PR tree-optimization/92260
7190         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
7191         lane-reducing ops.
7192
7193 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7194
7195         PR tree-optimization/88915
7196         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7197         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7198         and make the valueize function pointer also take a void pointer.
7199         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7200         around vn_valueize, to call it without a context.
7201         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7202         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7203         (~_loop_vec_info): Release epilogue_vinfos.
7204         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7205         number of iterations of epilogue.
7206         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7207         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
7208         versioning threshold needed for main loop.
7209         (vect_analyze_loop): Likewise.
7210         (find_in_mapping): New helper function.
7211         (update_epilogue_loop_vinfo): New function.
7212         (vect_transform_loop): When vectorizing epilogues re-use analysis done
7213         on main loop and call update_epilogue_loop_vinfo to update it.
7214         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7215         stmts on loop preheader edge.
7216         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7217         we decided to vectorize epilogues.  Update epilogues NITERS and
7218         construct ADVANCE to update epilogues data references where needed.
7219         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7220         (vect_do_peeling, vect_update_inits_of_drs,
7221          determine_peel_for_niter, vect_analyze_loop): Add or update
7222         declarations.
7223         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7224         created loop_vec_info's for epilogues when available.  Otherwise analyse
7225         epilogue separately.
7226
7227 2019-10-29  Richard Biener  <rguenther@suse.de>
7228
7229         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7230         example.
7231
7232 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7233
7234         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7235         index for the COND_EXPR from stmt_info rather than reduc_info.
7236
7237 2019-10-29  Richard Biener  <rguenther@suse.de>
7238
7239         PR tree-optimization/65930
7240         * tree-vect-loop.c (check_reduction_path): Relax single-use
7241         check allowing out-of-loop uses.
7242         (vect_is_simple_reduction): SLP reduction chains cannot have
7243         intermediate stmts used outside of the loop.
7244         (vect_create_epilog_for_reduction): The adjustment might need
7245         to be converted.
7246         (vectorizable_reduction): Annotate live stmts of the reduction
7247         chain with STMT_VINFO_REDUC_DEF.
7248         * tree-vect-stms.c (process_use): Remove no longer true asserts.
7249
7250 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7251
7252         * calls.c (pass_by_reference): Leave the target to decide whether
7253         POLY_INT_CST-sized arguments should be passed by value or reference,
7254         rather than forcing them to be passed by reference.
7255         (must_pass_in_stack_var_size): Likewise.
7256         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7257         V31_REGNUM to P15_REGNUM.
7258         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7259         Take an extra "silent_p" parameter, defaulting to false.
7260         (aarch64_sve::svbool_type_p): Declare.
7261         (aarch64_sve::nvectors_if_data_type): Likewise.
7262         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7263         (aarch64_frame::reg_offset): Turn into poly_int64s.
7264         (aarch64_frame::save_regs_size): Likewise.
7265         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7266         (aarch64_frame::sve_callee_adjust): Likewise.
7267         (aarch64_frame::spare_reg_reg): Likewise.
7268         (ARM_PCS_SVE): New arm_pcs value.
7269         (CUMULATIVE_ARGS::aapcs_nprn): New field.
7270         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7271         (CUMULATIVE_ARGS::silent_p): Likewise.
7272         (BITS_PER_SVE_PRED): New macro.
7273         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7274         function.  Reject aarch64_vector_pcs attributes on SVE functions.
7275         (aarch64_attribute_table): Use the above handler.
7276         (aarch64_sve_abi): New function.
7277         (aarch64_sve_argument_p): Likewise.
7278         (aarch64_returns_value_in_sve_regs_p): Likewise.
7279         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7280         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7281         descriptor for them.
7282         (aarch64_simd_decl_p): Delete.
7283         (aarch64_emit_cfi_for_reg_p): New function.
7284         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7285         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
7286         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7287         as partly clobbered for the SVE PCS.
7288         (aarch64_function_ok_for_sibcall): Check whether the two functions
7289         use the same ABI, rather than checking specifically for whether
7290         they're aarch64_vector_pcs functions.
7291         (aarch64_pass_by_reference): Raise an error for attempts to pass
7292         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
7293         if there are not enough free registers left, or if the argument is
7294         variadic.
7295         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7296         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7297         tuples in memory.
7298         (aarch64_layout_arg): Take a function_arg_info rather than
7299         individual properties.  Handle SVE predicates, vectors and tuples.
7300         Raise an error if they are passed to unprototyped functions.
7301         (aarch64_function_arg): If the silent_p flag is set, suppress the
7302         usual error about using float registers without TARGET_FLOAT.
7303         (aarch64_init_cumulative_args): Take a silent_p parameter and store
7304         it in the cumulative_args structure.  Initialize aapcs_nprn and
7305         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
7306         error about using float registers without TARGET_FLOAT.
7307         If the silent_p flag is not set, also raise an error about
7308         using SVE functions when SVE is disabled.
7309         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7310         and call it for SVE functions too.  Update aapcs_nprn similarly
7311         to the other register counts.
7312         (aarch64_layout_frame): If a big-endian function needs to save
7313         and restore Z8-Z15, search for a spare predicate that it can use.
7314         Store SVE predicates at the bottom of the register save area,
7315         followed by SVE vectors, then followed by the normal slots.
7316         Keep pointing the hard frame pointer at the base of the normal slots,
7317         above the SVE vectors.  Update the various frame creation and
7318         tear-down strategies for the new layout, initializing the new
7319         sve_callee_adjust field.  Add an additional layout for frames
7320         whose saved registers are all SVE registers.
7321         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7322         (aarch64_return_address_signing_enabled): Likewise.
7323         (aarch64_push_regs, aarch64_pop_regs): Update calls to
7324         aarch64_reg_save_mode.
7325         (aarch64_adjust_sve_callee_save_base): New function.
7326         (aarch64_add_cfa_expression): Move earlier in file.  Take the
7327         saved register as an rtx rather than a register number and use
7328         its mode for the MEM slot.
7329         (aarch64_save_callee_saves): Remove the mode argument and instead
7330         use aarch64_reg_save_mode to get the mode of each save slot.
7331         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
7332         offsets.  Allow GP offsets to be saved at a VL-based offset from
7333         the stack, handling this case using the frame pointer if available
7334         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
7335         big-endian SVE functions; use normal moves for other SVE saves.
7336         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7337         returns true.  Add explicit CFA notes when not storing via the
7338         stack pointer.  Do not try to pair SVE saves.
7339         (aarch64_restore_callee_saves): Cope with poly_int64 register
7340         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7341         use normal moves for other SVE restores.  Only add CFA restore notes
7342         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
7343         SVE restores.
7344         (aarch64_get_separate_components): Always keep the first SVE save
7345         in the prologue if we need to use it as a stack probe.  Don't allow
7346         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7347         Likewise the spare predicate register that they need.  Update the
7348         offset calculation to account for the SVE save area.  Use the
7349         appropriate range check for SVE LDR and STR instructions.
7350         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7351         (aarch64_process_components): Likewise.  Update the offset
7352         calculation to account for the SVE save area.  Only mark the
7353         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7354         Do not try to pair SVE saves.
7355         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7356         reg_offsets.  When handling the final allocation, expect the
7357         first SVE register save to be part of the initial allocation
7358         and for it to act as a probe at SP.  Account for the SVE callee
7359         save area in the dump information.
7360         (aarch64_expand_prologue): Update the frame diagram.  Fold the
7361         SVE callee allocation into the initial allocation if stack clash
7362         protection is enabled.  Use new variables to track the offset
7363         of the frame chain (and hard frame pointer) from the current
7364         stack pointer, and likewise the offset of the bottom of the
7365         register save area.  Update calls to aarch64_save_callee_saves
7366         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
7367         saving the FP&SIMD registers.  Save the predicate registers.
7368         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7369         into account when setting the stack pointer from the frame pointer,
7370         and when deciding whether we can inherit the initial adjustment
7371         amount from the prologue.  Restore the predicate registers after
7372         the vector registers, then apply sve_callee_adjust, then restore
7373         the general registers.
7374         (aarch64_secondary_reload): Don't use secondary SVE reloads
7375         for VNx16BImode.
7376         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7377         (aarch64_short_vector_p): Return false for SVE types.
7378         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7379         at the start of the function.  Return false for SVE types.
7380         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7381         functions too.
7382         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7383         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7384         to big-endian targets for bytewise moves.
7385         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7386
7387 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7388             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7389             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7390
7391         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7392         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7393         aarch64-sve-builtins-base.o to extra_objs.  Add
7394         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7395         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7396         (aarch64-sve-builtins-shapes.o): Likewise.
7397         (aarch64-sve-builtins-base.o): New rules.
7398         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7399         (aarch64_resolve_overloaded_builtin): Likewise.
7400         (aarch64_check_builtin_call): Likewise.
7401         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7402         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
7403         pragma.
7404         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7405         (aarch64_svprfop): New enum.
7406         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7407         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7408         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7409         (aarch64_output_sve_cnt_pat_immediate): Likewise.
7410         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7411         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7412         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7413         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7414         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7415         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7416         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7417         (aarch64_sve::mangle_builtin_type): Likewise.
7418         (aarch64_sve::resolve_overloaded_builtin): Likewise.
7419         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7420         (aarch64_sve::expand_builtin): Likewise.
7421         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7422         (aarch64_sve_int_mode): Likewise.
7423         (aarch64_ptrue_all_mode): New function.
7424         (aarch64_convert_sve_data_to_pred): Make public.
7425         (svprfop_token): New function.
7426         (aarch64_output_sve_prefetch): Likewise.
7427         (aarch64_fold_sve_cnt_pat): Likewise.
7428         (aarch64_output_sve_cnt_pat_immediate): Likewise.
7429         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7430         instead of gen_while_ult.
7431         (aarch64_replace_reg_mode): Make public.
7432         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7433         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7434         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7435         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7436         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7437         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7438         (aarch64_sve_ptrue_svpattern_p): Likewise.
7439         (aarch64_sve_pred_valid_immediate): Check
7440         aarch64_sve_ptrue_svpattern_p.
7441         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7442         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7443         functions.
7444         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7445         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7446         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7447         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7448         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7449         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7450         New unspecs.
7451         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7452         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7453         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7454         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7455         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7456         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7457         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7458         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7459         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7460         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7461         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7462         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7463         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7464         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7465         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7466         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7467         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7468         (Vesize): Handle partial vector modes.
7469         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7470         mode attributes.
7471         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7472         iterators.
7473         (s, paired_extend, inc_dec): New code attributes.
7474         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7475         (SVE_INT_UNARY): Add UNSPEC_RBIT.
7476         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7477         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7478         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7479         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7480         UNSPEC_COND_FMULX.
7481         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7482         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7483         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7484         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7485         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7486         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7487         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7488         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7489         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7490         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7491         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7492         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7493         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7494         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7495         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7496         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7497         UNSPEC_COND_FSCALE.
7498         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7499         (binqops_op, binqops_op_rev, last_op): New int attributes.
7500         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7501         (fn, ab): New int attributes.
7502         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7503         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7504         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7505         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7506         UNSPEC_RBIT.
7507         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7508         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7509         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7510         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7511         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7512         UNSPEC_COND_FMULX.
7513         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7514         (brk_reg_con, brk_reg_opno): New int attributes.
7515         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7516         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7517         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7518         UNSPEC_COND_FMIN.
7519         (max_elem_bits): New int attribute.
7520         (min_elem_bits): Handle UNSPEC_RBIT.
7521         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7522         TRUNCATE as well as SUBREG.
7523         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7524         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7525         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7526         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7527         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7528         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7529         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7530         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7531         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7532         (aarch64_gather_scale_operand_h): New predicates.
7533         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7534         (vgd, vgh, vgw, vsQ, vsS): New constraints.
7535         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7536         (*aarch64_sve_reinterpret<mode>): Allow any source register
7537         instead of requiring an exact match.
7538         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7539         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7540         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7541         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7542         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7543         (aarch64_update_ffrt): New patterns.
7544         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7545         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7546         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7547         (@aarch64_ld<fn>f1<mode>): New patterns.
7548         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7549         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7550         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7551         (@aarch64_ldnt1<mode>): New patterns.
7552         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7553         the scalar part of the address.
7554         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7555         scalar part of the addresse and add an alternative for handling
7556         nonzero offsets.
7557         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7558         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7559         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7560         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7561         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7562         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7563         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7564         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7565         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7566         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7567         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7568         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7569         (@aarch64_sve_prefetch<mode>): New patterns.
7570         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7571         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7572         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7573         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7574         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7575         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7576         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7577         (@aarch64_stnt1<mode>): New patterns.
7578         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7579         the scalar part of the address.
7580         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7581         the scalar part of the addresse and add an alternative for handling
7582         nonzero offsets.
7583         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7584         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7585         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7586         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7587         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7588         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7589         New patterns.
7590         (vec_duplicate<mode>): Use QI as the mode of the input operand.
7591         (extract_last_<mode>): Generalize to...
7592         (@extract_<LAST:last_op>_<mode>): ...this.
7593         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7594         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7595         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7596         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7597         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7598         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7599         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7600         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7601         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7602         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7603         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7604         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7605         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7606         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7607         (*aarch64_adr_uxtw_unspec): Likewise.
7608         (*aarch64_adr_uxtw): Rename to...
7609         (*aarch64_adr_uxtw_and): ...this.
7610         (@aarch64_adr<mode>_shift): New expander.
7611         (*aarch64_adr_shift_sxtw): New pattern.
7612         (aarch64_<su>abd<mode>_3): Rename to...
7613         (@aarch64_pred_<su>abd<mode>): ...this.
7614         (<su>abd<mode>_3): Update accordingly.
7615         (@aarch64_cond_<su>abd<mode>): New expander.
7616         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7617         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7618         (*<su>mul<mode>3_highpart): Rename to...
7619         (@aarch64_pred_<optab><mode>): ...this.
7620         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7621         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7622         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7623         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7624         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7625         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7626         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7627         (*v<ASHIFT:optab><mode>3): Rename to...
7628         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7629         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7630         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7631         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7632         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7633         (@cond_asrd<mode>): New expander.
7634         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7635         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7636         (*sdiv_pow2<mode>3): Delete.
7637         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7638         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7639         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7640         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7641         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7642         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7643         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7644         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7645         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7646         (*add<SVE_F:mode>3): Rename to...
7647         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7648         for SVE_STRICT_GP.
7649         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7650         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7651         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7652         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7653         (*sub<SVE_F:mode>3): Rename to...
7654         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7655         for SVE_STRICT_GP.
7656         (@aarch64_pred_abd<SVE_F:mode>): New expander.
7657         (*fabd<SVE_F:mode>3): Rename to...
7658         (*aarch64_pred_abd<SVE_F:mode>): ...this.
7659         (@aarch64_cond_abd<SVE_F:mode>): New expander.
7660         (*mul<SVE_F:mode>3): Rename to...
7661         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7662         for SVE_STRICT_GP.
7663         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7664         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7665         to...
7666         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7667         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7668         (*<nlogical><PRED_ALL:mode>3): Rename to...
7669         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7670         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7671         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7672         (*<logical_nn><PRED_ALL:mode>3): Rename to...
7673         (aarch64_pred_<logical_nn><mode>_z): ...this.
7674         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7675         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7676         (*fma<SVE_I:mode>4): Rename to...
7677         (@aarch64_pred_fma<SVE_I:mode>): ...this.
7678         (*fnma<SVE_I:mode>4): Rename to...
7679         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7680         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7681         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7682         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7683         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7684         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7685         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7686         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7687         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7688         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7689         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7690         (@aarch64_sve_tmad<mode>): Likewise.
7691         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7692         (*aarch64_sel_dup<mode>): Rename to...
7693         (@aarch64_sel_dup<mode>): ...this.
7694         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7695         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7696         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7697         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7698         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7699         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7700         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7701         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7702         (*fcm<cmp_op><mode>): Rename to...
7703         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
7704         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7705         (*fcmuo<mode>): Rename to...
7706         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
7707         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7708         (@aarch64_pred_fac<cmp_op><mode>): New expander.
7709         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7710         (fold_extract_last_<mode>): Generalize to...
7711         (@fold_extract_<last_op>_<mode>): ...this.
7712         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7713         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7714         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7715         DImode result explicit.
7716         (reduc_plus_scal_<mode>): Update accordingly.
7717         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7718         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7719         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7720         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7721         (*aarch64_sve_tbl<mode>): Rename to...
7722         (@aarch64_sve_tbl<mode>): ...this.
7723         (@aarch64_sve_compact<mode>): New pattern.
7724         (*aarch64_sve_dup_lane<mode>): Rename to...
7725         (@aarch64_sve_dup_lane<mode>): ...this.
7726         (@aarch64_sve_dupq_lane<mode>): New pattern.
7727         (@aarch64_sve_splice<mode>): Likewise.
7728         (aarch64_sve_<perm_insn><mode>): Rename to...
7729         (@aarch64_sve_<perm_insn><mode>): ...this.
7730         (*aarch64_sve_ext<mode>): Rename to...
7731         (@aarch64_sve_ext<mode>): ...this.
7732         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7733         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7734         to...
7735         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7736         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7737         Rename to...
7738         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7739         ...this.
7740         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7741         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7742         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7743         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7744         to...
7745         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7746         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7747         a "@" marker.
7748         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7749         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7750         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7751         pattern.
7752         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7753         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7754         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7755         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7756         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7757         "@" marker.
7758         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7759         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7760         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7761         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7762         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7763         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7764         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7765         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7766         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7767         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7768         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7769         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7770         (aarch64_sve_cnt_pat): Likewise.
7771         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7772         (*aarch64_sve_incsi_pat): Likewise.
7773         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7774         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7775         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7776         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7777         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7778         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7779         (*aarch64_sve_decsi_pat): Likewise.
7780         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7781         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7782         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7783         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7784         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7785         (@aarch64_pred_cntp<mode>): Likewise.
7786         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7787         New expander.
7788         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7789         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7790         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7791         New expander.
7792         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7793         New pattern.
7794         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7795         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7796         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7797         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7798         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7799         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7800         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7801         New expander.
7802         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7803         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7804         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7805         New expander.
7806         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7807         New pattern.
7808         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7809         expander.
7810         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7811         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7812         expander.
7813         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7814         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7815         expander.
7816         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7817         * config/aarch64/arm_sve.h: New file.
7818         * config/aarch64/aarch64-sve-builtins.h: Likewise.
7819         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7820         * config/aarch64/aarch64-sve-builtins.def: Likewise.
7821         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7822         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7823         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7824         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7825         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7826         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7827
7828 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7829
7830         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7831         New pattern.
7832         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7833         SVE modes.
7834
7835 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7836
7837         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7838         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7839         FFRT_REGNUM + 1.
7840         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7841         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7842         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7843         (aarch64_hard_regno_nregs): Handle the new register classes.
7844         (aarch64_hard_regno_mode_ok): Likewise.
7845         (aarch64_regno_regclass): Likewise.
7846         (aarch64_class_max_nregs): Likewise.
7847         (aarch64_register_move_cost): Likewise.
7848         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7849         as general register_operands.
7850
7851 2019-10-29  Martin Liska  <mliska@suse.cz>
7852
7853         * ggc-common.c: One can't subtract unsigned types
7854         in compare function.
7855
7856 2019-10-29  Martin Liska  <mliska@suse.cz>
7857
7858         * cgraphunit.c (symbol_table::compile): Pass
7859         title as dump_memory_report argument.
7860         * toplev.c (dump_memory_report):  New argument.
7861         (finalize): Pass new argument.
7862         * toplev.h (dump_memory_report): Add argument.
7863
7864 2019-10-29  Martin Liska  <mliska@suse.cz>
7865
7866         * ggc-common.c: Move Leak to the first column.
7867
7868 2019-10-29  Martin Liska  <mliska@suse.cz>
7869
7870         * cgraphunit.c (symbol_table::compile): Remove argument
7871         for dump_memory_report.
7872         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7873         (compare_final): Remove in order to make report
7874         better readable.
7875         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
7876         * mem-stats.h (mem_alloc_description::get_list):
7877         Do not pass cmp.
7878         (mem_alloc_description::dump): Likewise here.
7879         * toplev.c (dump_memory_report): Remove final
7880         argument.
7881         (finalize): Likewise.
7882         * toplev.h (dump_memory_report): Remove argument.
7883
7884 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7885
7886         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7887         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7888         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7889         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7890         accept "const".
7891
7892 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7893
7894         * coretypes.h (string_int_pair): New typedef.
7895         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7896         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7897         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7898
7899 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7900
7901         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7902         (simulate_builtin_function_decl): Declare.
7903         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7904         (LANG_HOOKS_INITIALIZER): Include it.
7905         * langhooks.c (add_builtin_function_common): Rename to...
7906         (build_builtin_function): ...this.  Add a location parameter and use
7907         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
7908         the decl instead.
7909         (add_builtin_function): Update accordingly, passing the returned
7910         decl to the lang hook.
7911         (add_builtin_function_ext_scope): Likewise
7912         (simulate_builtin_function_decl): New function.
7913
7914 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
7915
7916         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7917         example, use actual names of supported offload targets.
7918
7919         PR target/92258
7920         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7921
7922 2019-10-28  Martin Sebor  <msebor@redhat.com>
7923
7924         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7925         (handle_store): Pass argument to get_addr_stridx.
7926
7927 2019-10-28  Martin Sebor  <msebor@redhat.com>
7928
7929         PR tree-optimization/92226
7930         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7931         the offset is in the open range outlined by SI's length.
7932
7933 2019-10-28  Martin Sebor  <msebor@redhat.com>
7934
7935         PR c/66970
7936         * doc/cpp.texi (__has_builtin): Document.
7937         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7938
7939 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
7940
7941         PR target/82981
7942         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7943         doubleword and low doubleword result of multiplication on
7944         MIPS64R6.
7945
7946         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7947         pure qualifier to the built-in.
7948         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7949         built-ins.
7950         (struct mips_builtin_description): Add is_pure flag.
7951         (mips_init_builtins): Mark built-in as pure if the flag in the
7952         corresponding mips_builtin_description struct is set.
7953
7954         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7955         alternative which covers the floating-point input value. Also
7956         forbid the split of insert.d pattern for floating-point values.
7957
7958 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7959
7960         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7961         * config/riscv/riscv-sr.c: New file.
7962         * config/riscv/riscv.c (riscv_reorg): New function.
7963         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7964         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7965         (riscv_remove_unneeded_save_restore_calls): Declare.
7966         * config/riscv/t-riscv (riscv-sr.o): New build rule.
7967
7968 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7969
7970         PR tree-optimization/92163
7971         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7972         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7973         before calling bitmap_set_bit.
7974         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7975         delete_dead_or_redundant_assignment.
7976         (dse_dom_walker::dse_optimize_stmt): Likewise.
7977         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7978
7979 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7980
7981         PR middle-end/91272
7982         * tree-vect-stmts.c (vectorizable_condition): Support
7983         EXTRACT_LAST_REDUCTION with fully-masked loops.
7984
7985 2019-10-28  Richard Biener  <rguenther@suse.de>
7986
7987         PR tree-optimization/92252
7988         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7989         STMT_VINFO_REDUC_IDX when swapping operands.
7990
7991 2019-10-28  Richard Biener  <rguenther@suse.de>
7992
7993         PR tree-optimization/92241
7994         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7995         we failed to update the reduction index do not use the pattern
7996         stmts for the reduction chain.
7997         (vectorizable_reduction): When the reduction chain is corrupt,
7998         fail.
7999         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
8000         fail to update the reduction chain.
8001
8002 2019-10-28  Richard Biener  <rguenther@suse.de>
8003
8004         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8005         STMT_VINFO_REDUC_IDX from the actual stmt.
8006         (vect_transform_reduction): Likewise.
8007         (vectorizable_reduction): Compute the reduction chain length,
8008         do not recompute the reduction operand index.  Remove no longer
8009         necessary restriction for condition reduction chains.
8010
8011 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
8012
8013         PR target/92225
8014         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
8015         condition for V2DImode.
8016
8017 2019-10-28  Uroš Bizjak  <ubizjak@gmail.com>
8018
8019         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
8020         Remove %k operand modifier.
8021         (*vec_extractv2df_1_sse): Remove %q operand modifier.
8022
8023 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
8024
8025         PR rtl-optimization/92007
8026         * cfgcleanup.c (thread_jump): Add an assertion that we don't
8027         call it after reload if hot/cold partitioning has been done.
8028         (class pass_postreload_jump): Rename to
8029         pass_jump_after_combine.
8030         (make_pass_postreload_jump): Rename to
8031         make_pass_jump_after_combine.
8032         * passes.def(pass_postreload_jump): Move before reload, rename
8033         to pass_jump_after_combine.
8034         * tree-pass.h (make_pass_postreload_jump): Rename to
8035         make_pass_jump_after_combine.
8036
8037 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
8038
8039         PR ipa/92242
8040         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
8041         for missing EDGE_REF
8042         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
8043
8044 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
8045
8046         PR tree-optimization/88760
8047         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
8048         Enable -funroll-loops for -O2 and above.
8049         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
8050         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
8051         do not turn on web and rngreg implicitly, if the unroller is not
8052         explicitly enabled.
8053
8054 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8055
8056         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
8057         jump functions.
8058
8059 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
8060
8061         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
8062         * cgraph.h (cgraph_node::rtl_info): Likewise.
8063
8064 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8065
8066         * ipa-cp.c (propagate_constants_across_call): If args are not available
8067         just drop everything to varying.
8068         (find_aggregate_values_for_callers_subset): Watch for missing
8069         edge summary.
8070         (find_more_scalar_values_for_callers_subs): Likewise.
8071         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8072         update_jump_functions_after_inlining, propagate_controlled_uses):
8073         Watch for missing summaries.
8074         (ipa_propagate_indirect_call_infos): Remove summary after propagation
8075         is finished.
8076         (ipa_write_node_info): Watch for missing summaries.
8077         (ipa_read_edge_info): Create new ref.
8078         (ipa_edge_args_sum_t): Add remove.
8079         (IPA_EDGE_REF_GET_CREATE): New macro.
8080         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
8081         edge summary.
8082         (remap_edge_change_prob): Likewise.
8083
8084 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8085
8086         * ipa-inline-transform.c (inline_call): update function summaries
8087         after expanidng thunk.
8088
8089 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8090
8091         * ipa-icf.c (sem_function::merge): Update function summaries.
8092         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
8093
8094 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
8095
8096         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
8097         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
8098         operand already has scalar mode.
8099         (iptr): Remove SF/DF.
8100
8101 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
8102
8103         PR target/91289
8104         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
8105         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
8106         this.
8107
8108 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8109
8110         * config/i386/sse.md
8111         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
8112         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
8113         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
8114         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
8115         <sse>_vmmaskcmp<mode>3):
8116         Change predicates from vector_operand to nonimmediate_operand,
8117         constraints xBm to xm, since scalar operations don't need
8118         memory address alignment.
8119         (avx512f_vmcmp<mode>3<round_saeonly_name>,
8120         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
8121         round_saeonly_nimm_predicate with
8122         round_saeonly_nimm_scalar_predicate.
8123         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8124         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
8125         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8126         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
8127         avx512f_vmfmadd_<mode>_mask3<round_name>,
8128         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8129         *avx512f_vmfmsub_<mode>_mask<round_name>,
8130         avx512f_vmfmsub_<mode>_mask3<round_name>,
8131         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
8132         *avx512f_vmfnmadd_<mode>_mask<round_name>,
8133         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8134         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8135         *avx512f_vmfnmsub_<mode>_mask<round_name>,
8136         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
8137         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
8138         cvtusi2<ssescalarmodesuffix>32<round_name>,
8139         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
8140         round_nimm_predicate with round_nimm_scalr_predicate.
8141         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
8142         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
8143         avx512er_vmrcp28<mode><round_saeonly_name>,
8144         avx512er_vmrsqrt28<mode><round_saeonly_name>,
8145         ): Replace round_saeonly_nimm_predicate with
8146         round_saeonly_nimm_scalar_predicate.
8147         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
8148         vector_operand with nonimmediate_operand.
8149         * config/i386/subst.md (round_scalar_nimm_predicate,
8150         round_saeonly_scalar_nimm_predicate): Replace
8151         vector_operand with nonimmediate_operand.
8152
8153 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8154
8155         PR target/89071
8156         * config/i386/i386.md (*rcpsf2_sse): Add
8157         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
8158         (*rsqrtsf2_sse): Ditto.
8159         (*sqrt<mode>2_sse): Ditto.
8160         (sse4_1_round<mode>2): separate constraint vm, add
8161         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
8162         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
8163         by pass rpad.
8164         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
8165         Ditto.
8166         (*sse_vmrsqrtv4sf2): Ditto.
8167         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8168         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
8169         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
8170         <iptr> pointer size modifier since vround support memory operand.
8171
8172 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
8173
8174         PR target/85969
8175         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
8176         static function.
8177
8178 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8179             Tobias Burnus  <tobias@codesourcery.com>
8180
8181         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
8182         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8183         common block decls.
8184
8185 2019-10-25  Richard Biener  <rguenther@suse.de>
8186
8187         PR tree-optimization/92222
8188         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
8189         (_slp_oprnd_info::second_pattern): Likewise.
8190         (_slp_oprnd_info::any_pattern): New.
8191         (vect_create_oprnd_info): Adjust.
8192         (vect_get_and_check_slp_defs): Compute whether any stmt is
8193         in a pattern.
8194         (vect_build_slp_tree_2): Avoid building up a node from scalars
8195         if any of the operand defs, not just the first, is in a pattern.
8196
8197 2019-10-25  Richard Biener  <rguenther@suse.de>
8198
8199         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8200         swapping if we actually have to modify the IL on a shared stmt.
8201         (vect_build_slp_tree_2): Never fail swapping on shared stmts
8202         because we no longer modify the IL.
8203
8204 2019-10-25  Martin Liska  <mliska@suse.cz>
8205
8206         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8207
8208 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
8209
8210         * tree-vect-loop.c (vectorizable_reduction): Restrict the
8211         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8212         handled by vect_transform_reduction.  Allow fully-masked loops
8213         to be used with reduction chains.
8214         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8215         operations in fully-masked loops.
8216         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8217         operations in fully-masked loops.
8218
8219 2019-10-25  Richard Biener  <rguenther@suse.de>
8220
8221         * tree-vect-loop.c (vectorizable_reduction): Verify
8222         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8223         correctly.
8224         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8225         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8226         stmts.
8227
8228 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
8229
8230         * gimplify.h (omp_construct_selector_matches): Declare.
8231         * gimplify.c (struct gimplify_omp_ctx): Add code member.
8232         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8233         called function if needed for flag_openmp.
8234         (gimplify_scan_omp_clauses): Set ctx->code.
8235         (omp_construct_selector_matches): New function.
8236         * omp-general.h (omp_constructor_traits_to_codes,
8237         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8238         * omp-general.c (omp_constructor_traits_to_codes,
8239         omp_context_selector_matches, omp_resolve_declare_variant): New
8240         functions.
8241
8242         * config/arc/arc.c (hwloop_optimize): Add missing space in string
8243         literal.
8244         * config/rx/rx.c (rx_print_operand): Likewise.
8245         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8246         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8247         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8248         Likewise.
8249         * genemit.c (emit_c_code): Likewise.
8250         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
8251
8252 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8253
8254         * symbols-summary.h (fast_function_summary<T *, V>::release,
8255         fast_call_summary<T *, V>::release): Free m_vector.
8256
8257 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8258
8259         * cgraphunit.c (symbol_table::process_new_functions): Call
8260         ipa_free_size_summary.
8261         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8262         (devirtualization_time_bonus): Update.
8263         (ipcp_propagate_stage): Update.
8264         * ipa-fnsummary.c (ipa_size_summaries): New.
8265         (ipa_fn_summary_alloc): Alloc size summary.
8266         (dump_ipa_call_summary): Update.
8267         (ipa_dump_fn_summary): Update.
8268         (analyze_function_body): Update.
8269         (compute_fn_summary): Likewise.
8270         (ipa_get_stack_frame_offset): New function.
8271         (inline_update_callee_summaries): Do not update frame offsets.
8272         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8273         remove call and function summary.
8274         (ipa_update_overall_fn_summary): Update.
8275         (inline_read_section): Update.
8276         (ipa_fn_summary_write): Update.
8277         (ipa_free_fn_summary): Do not remove summaries.
8278         (ipa_free_size_summary): New.
8279         (release summary pass): Also run at WPA.
8280         * ipa-fnsummary.h (ipa_size_summary): Declare.
8281         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8282         estimated_self_stack_size.
8283         (ipa_size_summary_t): New type.
8284         (ipa_size_summaries): Declare.
8285         (ipa_free_size_summary): Declare.
8286         (ipa_get_stack_frame_offset): Declare.
8287         * ipa-icf.c (sem_function::merge): Update.
8288         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8289         (estimate_growth): Update.
8290         (growth_likely_positive): Update.
8291         (clone_inlined_nodes): Update.
8292         (inline_call): Update.
8293         * ipa-inline.c (caller_growth_limits): Update.
8294         (edge_badness): Update.
8295         (recursive_inlining): Update.
8296         (inline_small_functions): Update.
8297         (inline_to_all_callers_1): Update.
8298         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8299
8300 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
8301
8302         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8303         (uavg<mode>3_ceil): ... This.
8304         (altivec_vavgs<VI_char>): Rename to...
8305         (avg<mode>3_ceil): ... This.
8306         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8307         VAVGUW, VAVGSW): Adjust.
8308
8309 2019-10-24  Nathan Sidwell  <nathan@acm.org>
8310
8311         * dumpfile.c (dump_begin): Reorder decls to use RAII.
8312
8313 2019-10-24  Martin Liska  <mliska@suse.cz>
8314
8315         * symbol-summary.h (gt_pch_nx): Mark all functions
8316         with gcc_unreachable as we do not expect to be called.
8317
8318 2019-10-24  Richard Biener  <rguenther@suse.de>
8319
8320         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8321         chains try harder with operand swapping and instead of
8322         putting a shifted chain into the reduction operands put
8323         a repetition of the final reduction op there as if we'd
8324         reassociate the expression.
8325
8326 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8327
8328         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8329         statics_not_read and statics_not_written to statics_read and
8330         statics_written respectively.
8331         (no_module_statics): New static var.
8332         (ipa_reference_get_not_read_global): Rename to ...
8333         (ipa_reference_get_read_global): ... this.
8334         (ipa_reference_get_not_written_global): Rename to ...
8335         (ipa_reference_get_written_global): ... this.
8336         (dump_static_vars_set_to_file): Dump no_module_statics.
8337         (copy_static_var_set): Add for propagation parameter.
8338         (ipa_init): Initialize no_module_statics.
8339         (ipa_ref_opt_summary_t::duplicate): Update.
8340         (ipa_ref_opt_summary_t::remove): Update.
8341         (propagate): Update.
8342         (write_node_summary_p): Look correctly for bitmap differences.
8343         (ipa_reference_write_optimization_summary): Update.
8344         (ipa_reference_read_optimization_summary): Update.
8345         * ipa-reference.h
8346         (ipa_reference_get_not_read_global): Rename to ...
8347         (ipa_reference_get_read_global): ... this.
8348         (ipa_reference_get_not_written_global): Rename to ...
8349         (ipa_reference_get_written_global): ... this.
8350         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8351         (call_may_clobber_ref_p_1): Update.
8352
8353 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8354
8355         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8356         and add comment.
8357         (msp430_hard_regno_nregs_with_padding): Remove.
8358
8359 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8360
8361         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8362         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8363         shift amount is between 1 and 4.
8364         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8365         is between 1 and 4.
8366
8367 2019-10-24  Richard Biener  <rguenther@suse.de>
8368
8369         PR tree-optimization/92205
8370         * tree-vect-loop.c (vectorizable_reduction): Restrict
8371         search for alternate vectype_in to lane-reducing patterns
8372         we support.
8373
8374 2019-10-24  Richard Biener  <rguenther@suse.de>
8375
8376         PR tree-optimization/92203
8377         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8378         Skip eliminating conversion stmts inserted by insertion.
8379
8380 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
8381
8382         * config/s390/s390.c (s390_get_thread_pointer): Use
8383         gen_get_thread_pointer.
8384         (s390_expand_split_stack_prologue): Likewise.
8385         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8386         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8387         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8388         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8389         parameterized name.
8390
8391 2019-10-24  Richard Biener  <rguenther@suse.de>
8392
8393         * tree-vect-slp.c (vect_analyze_slp): When reduction group
8394         SLP discovery fails try to handle the reduction as part
8395         of SLP reduction discovery.
8396
8397 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
8398
8399         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8400         declaration.
8401         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8402         attribute if it exists, rather than the insn size.  If we use the
8403         insn size, adjust the size to remove the extra size that prefixed
8404         instructions take.
8405         (rs6000_adjust_insn_length): New function.
8406         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8407         update the instruction sized if prefixed instructions are used.
8408         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8409         (non_prefixed_length attribute): Delete.
8410         (num_insns attribute): New insn attribute to return the number of
8411         instructions.
8412         (max_prefixed_insns attribute): New insn attribute to return the
8413         maximum number of prefixed instructions in an insn.
8414         (length attribute): Do not adjust for prefix instructions here,
8415         punt to ADJUST_INSN_LENGTH.
8416         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8417         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8418         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8419         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8420         max_prefixed_insns and num_insns.
8421
8422         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8423         (movtd_64bit_nodm): Reformat.
8424         (mov<mode>_32bit): Reformat.
8425         (mov<mode>_softfloat): Reformat.
8426         (FMOVE128_GPR splitter): Reformat.
8427         (DIFD splitter): Reformat.
8428         (TI2 splitter): Reformat.
8429         * config/rs6000/predicates.md (lwa_operand): If the bottom two
8430         bits of the offset for the memory address are non-zero, use PLWA
8431         if prefixed instructions are available.
8432
8433 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8434
8435         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8436
8437 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8438
8439         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8440         previous patch.
8441
8442 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8443
8444         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8445         (cmp_symbol_files): New.
8446         (lto_output): Copy sections in file order.
8447         * lto-streamer.h (lto_file_decl_data): Add field order.
8448
8449 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8450
8451         * ipa-reference.h (ipa_reference_var_uid): Move offline.
8452         * ipa-reference.c (reference_vars_map_t): new type.
8453         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8454         (ipa_reference_var_uid): Implement.
8455         (varpool_node_hooks): New static var.
8456         (varpool_removal_hook): New function.
8457         (is_improper): Do not check bitmap for id==-1
8458         (get_static_name): Update.
8459         (ipa_init): Initialize new datastructures.
8460         (analyze_function): Do not recompute ids.
8461         (propagate): Free reference_vars_to_consider.
8462         (stream_out_bitmap): Update.
8463         (ipa_reference_read_optimization_summary): Update.
8464
8465 2019-10-23  qing zhao  <qing.zhao@oracle.com>
8466
8467         PR gcov-profile/91971
8468         * coverage.c (coverage_init): Mangle the full path of filename when
8469         filename is a absolute path.
8470
8471 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8472
8473         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8474         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8475         (msp430_has_hwmult): New.
8476         (msp430_output_labelref):
8477         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8478         * config/msp430/msp430.md (mulhisi3): Likewise.
8479         (umulhisi3): Likewise.
8480         (mulsidi3): Likewise.
8481         (umulsidi3): Likewise.
8482
8483 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
8484
8485         PR ipa/92074
8486         * params.def (inline-heuristics-hint-percent): Set to 600.
8487
8488 2019-10-23  Richard Biener  <rguenther@suse.de>
8489
8490         PR tree-optimization/65930
8491         * tree-vect-loop.c (check_reduction_path): Allow conversions
8492         that only change the sign.
8493         (vectorizable_reduction): Relax latch def stmts we handle further.
8494
8495 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
8496
8497         PR debug/90231
8498         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8499         (remove_unused_ivs): Use it instead of get_computation_at.  When
8500         choosing best candidate, only consider candidates where
8501         get_debug_computation_at actually returns non-NULL.
8502
8503 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8504
8505         PR tree-optimization/92131
8506         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8507         range would be symbolic, drop to varying for any explicit overflow
8508         in the constant part or if neither range is a singleton.
8509
8510 2019-10-23  Martin Liska  <mliska@suse.cz>
8511
8512         PR middle-end/81669
8513         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8514         Initialize m_data.
8515
8516 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
8517
8518         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8519         int_mode_for_mode rather than mode_for_int_vector for scalars.
8520
8521 2019-10-23  Richard Biener  <rguenther@suse.de>
8522
8523         PR tree-optimization/92179
8524         * tree-vect-stmts.c (vectorizable_shift): For shift args
8525         that are all the same remove type restriction in the SLP case.
8526         Adjust SLP code to handle converting of the shift arg to
8527         only apply in case the modes are different.
8528
8529 2019-10-23  Martin Liska  <mliska@suse.cz>
8530
8531         PR ipa/91969
8532         * ipa-inline.c (recursive_inlining): Do not print
8533         when curr->count is not initialized.
8534
8535 2019-10-23  Richard Biener  <rguenther@suse.de>
8536
8537         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8538         op from scalars in case there's a constant operand in its
8539         definition.
8540
8541 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
8542
8543         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8544         against out of range max skip or log values.
8545
8546 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8547
8548         * cgraph.c (dump_graphviz): Change name to dump_name
8549
8550 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
8551
8552         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8553         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8554         subtraction from a carry operation.
8555
8556 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
8557
8558         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8559
8560 2019-10-22  Richard Biener  <rguenther@suse.de>
8561
8562         PR tree-optimization/92173
8563         * tree-vect-loop.c (vectorizable_reduction): If
8564         vect_transform_reduction cannot handle code-generation try without
8565         the single-def-use-cycle optimization.  Pass optab_vector to
8566         optab_for_tree_code to get vector shifts as that's what we'd
8567         generate.
8568
8569 2019-10-22  Michael Matz  <matz@suse.de>
8570
8571         PR middle-end/90796
8572         * gimple-loop-jam.c (any_access_function_variant_p): New function.
8573         (adjust_unroll_factor): Use it to constrain safety, new parameter.
8574         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8575
8576 2019-10-22  Richard Biener  <rguenther@suse.de>
8577
8578         PR tree-optimization/92173
8579         * tree-vect-loop.c (vectorizable_reduction): If
8580         vect_transform_reduction cannot handle code-generation try without
8581         the single-def-use-cycle optimization.  Pass optab_vector to
8582         optab_for_tree_code to get vector shifts as that's what we'd
8583         generate.
8584
8585 2019-10-22  Martin Liska  <mliska@suse.cz>
8586
8587         * diagnostic-format-json.cc (json_from_expanded_location):
8588         Use json::integer_number.
8589         * gcov.c (output_intermediate_json_line): Use new
8590         json::integer_number.
8591         (output_json_intermediate_file): Likewise.
8592         * json.cc (number::print): Move to ...
8593         (float_number::print): ... this.
8594         (integer_number::print): New.
8595         (test_writing_numbers): Move to ...
8596         (test_writing_float_numbers): ... this.
8597         (test_writing_integer_numbers): New.
8598         (json_cc_tests): Register test_writing_integer_numbers.
8599         * json.h (class value): Add forward declaration
8600         for float_number and integer_number.
8601         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8602         (class number): Move to ...
8603         (class float_number): ... this.
8604         (class integer_number): New.
8605         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8606         Use json::integer_number.
8607         (optrecord_json_writer::location_to_json): Likewise.
8608         (optrecord_json_writer::profile_count_to_json): Likewise.
8609         (optrecord_json_writer::pass_to_json): Likewise.
8610
8611 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8612
8613         * tree-vect-slp.c (vect_slp_bb_region): Check whether
8614         autodetected_vector_size rather than vector_size is zero.
8615         * tree-vect-loop.c (vect_analyze_loop): Likewise.
8616         Set autodetected_vector_size immediately after calling
8617         vect_analyze_loop_2.  Check for a fatal error before advancing
8618         next_size.
8619
8620 2019-10-21  Jason Merrill  <jason@redhat.com>
8621
8622         * lock-and-run.sh: Check for process existence rather than timeout.
8623
8624 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8625
8626         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8627         widening multiplication.
8628
8629 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
8630
8631         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8632         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8633         type attribute.
8634         (subsi3_carryin_shift): Separate into register and constant controlled
8635         alternatives.  Use shift_amount_operand for operand 4.  Set shift
8636         attribute and simplify type attribute.
8637         (subsi3_carryin_shift_alt): Likewise.
8638         (rsbsi3_carryin_shift): Likewise.
8639         (rsbsi3_carryin_shift_alt): Likewise.
8640         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
8641         and register controlled shifts into distinct alternatives.
8642         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8643         (andsi_not_shiftsi_si_scc): Likewise.
8644         (arm_cmpsi_negshiftsi_si): Likewise.
8645         (not_shiftsi): Remove redundant M constraint from alternative 1.
8646         (not_shiftsi_compare0): Likewise.
8647         (arm_cmpsi_insn): Remove redundant alternative 2.
8648         (cmpsi_shift_swp): Likewise.
8649         (sub_shiftsi): Likewise.
8650         (sub_shiftsi_compare0_scratch): Likewise.
8651         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8652         (thumb2_cmpsi_neg_shiftsi): Likewise.
8653
8654 2019-10-21  Richard Biener  <rguenther@suse.de>
8655
8656         PR tree-optimization/92162
8657         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8658         STMT_VINFO_REDUC_IDX in reduc_info.
8659         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8660
8661 2019-10-21  Richard Biener  <rguenther@suse.de>
8662
8663         * tree-vectorizer.h (_slp_tree::ops): New member.
8664         (SLP_TREE_SCALAR_OPS): New.
8665         (vect_get_slp_defs): Adjust prototype.
8666         * tree-vect-slp.c (vect_free_slp_tree): Release
8667         SLP_TREE_SCALAR_OPS.
8668         (vect_create_new_slp_node): Initialize it.  New overload for
8669         initializing by an operands array.
8670         (_slp_oprnd_info::ops): New member.
8671         (vect_create_oprnd_info): Initialize it.
8672         (vect_free_oprnd_info): Release it.
8673         (vect_get_and_check_slp_defs): Populate the operands array.
8674         Do not swap operands in the IL when not necessary.
8675         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8676         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
8677         swap operands in the operands array.  Do not swap operands in
8678         the IL.
8679         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8680         (vect_gather_slp_loads): Fix.
8681         (vect_detect_hybrid_slp_stmts): Likewise.
8682         (vect_slp_analyze_node_operations_1): Search for a internal
8683         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8684         (vect_slp_analyze_node_operations): Skip ops-only stmts for
8685         the def-type push/pop dance.
8686         (vect_get_constant_vectors): Compute number_of_vectors here.
8687         Use SLP_TREE_SCALAR_OPS and simplify greatly.
8688         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8689         (vect_get_slp_defs): Simplify greatly.
8690         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8691         (vect_transform_reduction): Likewise.
8692         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8693         (vectorizable_call): Likewise.
8694         (vectorizable_operation): Likewise.
8695         (vectorizable_load): Likewise.
8696         (vectorizable_condition): Likewise.
8697         (vectorizable_comparison): Likewise.
8698
8699 2019-10-21  Richard Biener  <rguenther@suse.de>
8700
8701         PR tree-optimization/92161
8702         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8703         for reductions.
8704
8705 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8706
8707         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8708         (aarch64_rndr): New define_insn.
8709         (aarch64_rndrrs): Likewise.
8710         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8711         (TARGET_RNG): Likewise.
8712         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8713         argument.
8714         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8715         Add fourth argument in prototype.
8716         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8717         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8718         (aarch64_init_rng_builtins): Define.
8719         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8720         (aarch64_expand_rng_builtin): Define.
8721         (aarch64_general_expand_builtin): Use IGNORE argument, handle
8722         RNG builtins.
8723         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8724         __ARM_FEATURE_RNG when TARGET_RNG.
8725         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8726
8727 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8728
8729         * tree-vect-stmts (ensure_base_align): Only change alignment if new
8730         alignment is more restrictive.
8731
8732 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8733
8734         * tree-vectorizer.h (vec_info::vector_size): New member variable.
8735         (vect_update_max_nunits): Update comment.
8736         (current_vector_size): Delete.
8737         * tree-vect-stmts.c (current_vector_size): Likewise.
8738         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8739         of current_vector_size.
8740         (get_mask_type_for_scalar_type): Likewise.
8741         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8742         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8743         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8744         (vect_double_mask_nunits, vect_transform_loop): Likewise.
8745         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8746         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8747
8748 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8749
8750         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8751         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8752         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
8753         accordingly.
8754
8755 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8756
8757         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8758         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8759         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8760         call accordingly.
8761         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8762
8763 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8764
8765         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8766         a loop_vec_info.
8767         (vect_set_loop_condition_masked): Update call accordingly.
8768
8769 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8770
8771         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8772         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8773         (simple_integer_narrowing): Update call accordingly.
8774         (vectorizable_conversion): Likewise.
8775
8776 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8777
8778         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8779         (vectorizable_call): Update call accordingly.
8780
8781 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8782
8783         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8784         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8785         (duplicate_and_interleave): Update call accordingly.
8786         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8787
8788 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8789
8790         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8791         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8792         (vect_get_constant_vectors): Update call accordingly.
8793         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8794
8795 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8796
8797         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8798         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8799         (vect_prologue_cost_for_slp_op): Update call accordingly.
8800         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8801         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8802         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8803         (get_mask_type_for_scalar_type): Likewise.
8804         (vect_get_vector_types_for_stmt): Likewise.
8805         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8806         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8807         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8808         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8809         (vect_split_statement, vect_convert_input): Likewise.
8810         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8811         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8812         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8813         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8814         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8815         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8816         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8817         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8818         (vect_recog_mask_conversion_pattern): Likewise.
8819         (vect_add_conversion_to_pattern): Likewise.
8820         (vect_recog_gather_scatter_pattern): Likewise.
8821         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8822         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8823
8824 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8825
8826         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8827         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8828         (vect_check_load_store_mask): Update call accordingly.
8829         (vect_get_mask_type_for_stmt): Likewise.
8830         * tree-vect-patterns.c (check_bool_pattern): Likewise.
8831         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8832         (vect_convert_mask_for_vectype): Likewise.
8833
8834 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8835
8836         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8837         a vec_info.
8838         (vect_recog_dot_prod_pattern): Update call accordingly.
8839         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8840         (vect_recog_widen_sum_pattern): Likewise.
8841
8842 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8843
8844         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8845         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8846         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8847         accordingly.
8848
8849 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8850
8851         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8852         get_vectype_for_scalar_type_and_size instead of
8853         get_vectype_for_scalar_type.
8854
8855 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8856
8857         * common.opt (-fcommon): Fix description.
8858
8859 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
8860
8861         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8862         * config/i386/i386.c (ix86_pre_reload_split): New function.
8863         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8864         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8865         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8866         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8867         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8868         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8869         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8870         *<shift_insn><dwi>3_doubleword_mask,
8871         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8872         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8873         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8874         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8875         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8876         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8877         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8878         *avx2_<code>v8qiv8si2<mask_name>_2,
8879         *sse4_1_<code>v4qiv4si2<mask_name>_2,
8880         *sse4_1_<code>v4hiv4si2<mask_name>_2,
8881         *avx512f_<code>v8qiv8di2<mask_name>_2,
8882         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8883         *sse4_1_<code>v2hiv2di2<mask_name>_2,
8884         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8885         sse4_2_pcmpistr): Likewise.
8886
8887 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
8888
8889         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8890         now defaults to https.
8891
8892 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
8893
8894         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8895         skip non-zero array accesses.
8896
8897 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8898
8899         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8900         and return a boolean success value.  Move the allocation and
8901         initialization of the bb_vec_info to...
8902         (vect_slp_bb_region): ...here.  Update call accordingly.
8903         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8904         than in vect_slp_analyze_bb_1.
8905
8906 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8907
8908         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8909         when processing the given datarefs for the first time and
8910         check_datarefs subsequently.
8911         (vect_slp_bb_region): New function, split out of...
8912         (vect_slp_bb): ...here.  Don't recompute the region bounds and
8913         dataref sets when retrying with a different vector size.
8914
8915 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
8916             Uroš Bizjak  <ubizjak@gmail.com>
8917
8918         PR target/92140
8919         * config/i386/predicates.md (int_nonimmediate_operand): New special
8920         predicate.
8921         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8922         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8923         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8924         define_insn_and_split patterns.
8925
8926 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
8927
8928         * config/rs6000/rs6000.md: Delete out--of-date comment about
8929         special-casing integer loads.
8930
8931 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
8932
8933         * escaped_string.h (escaped_string): New header.
8934         * tree.c (escaped_string): Remove escaped_string class.
8935
8936 2019-10-18  Martin Sebor  <msebor@redhat.com>
8937
8938         PR tree-optimization/92157
8939         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8940         compute_string_length to return a negative result.
8941
8942 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8943
8944         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8945         (negvsi3, negvdi3): Delete.
8946         (negdi2_compare): Delete.
8947
8948 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8949
8950         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8951         operations.
8952         (subdi3_compare1): Delete pattern.
8953         (subvsi3_borrow): New insn pattern.
8954         (subvsi3_borrow_imm): Likewise.
8955
8956 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8957
8958         * config/arm/arm.md (subv<mode>4): Delete.
8959         (subvdi4): New expander pattern.
8960         (subvsi4): Likewise.  Handle some immediate values.
8961         (subvsi3_intmin): New insn pattern.
8962         (subvsi3): Likewise.
8963         (subvsi3_imm1): Likewise.
8964         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8965         idioms.
8966
8967 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8968
8969         * config/arm/arm.md (usubvdi4): Allow registers or integers for
8970         incoming operands.  Early split the calculation into SImode
8971         operations.
8972         (usubvsi3_borrow): New insn pattern.
8973         (usubvsi3_borrow_imm): Likewise.
8974
8975 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8976
8977         * config/arm/arm.md (usubv<mode>4): Delete expansion.
8978         (usubvsi4): New pattern.  Allow some immediate values for inputs.
8979         (usubvdi4): New pattern.
8980
8981 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8982
8983         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8984         or second operand of the PLUS inside a DImode equality test to be
8985         sign-extend when selecting CC_Vmode.
8986         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8987         instructions.
8988         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8989         expand patterns.
8990         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8991         (addsi3_cin_vout_0): Likewise.
8992         (adddi3_compareV): Delete.
8993
8994 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
8995
8996         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8997         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
8998         to transform this back into the summation version when that leads
8999         to smaller code.
9000
9001 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9002
9003         * config/arm/arm.md (addv<mode>4): Delete.
9004         (addvsi4): New pattern.  Handle immediate values that the architecture
9005         supports.
9006         (addvdi4): New pattern.
9007         (addsi3_compareV): Rename to ...
9008         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
9009         and use COMPARE rather than NE.
9010         (addsi3_compareV_imm): New pattern.
9011         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
9012         a signed-overflow check.
9013
9014 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9015
9016         * config/arm/arm-modes.def (CC_ADC): New CC mode.
9017         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
9018         CC_ADCmode.
9019         (maybe_get_arm_condition_code): Handle CC_ADCmode.
9020         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
9021         with overflow.
9022         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
9023         expand patterns.
9024         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
9025         (addsi3_cin_cout_imm_insn): Likewise.
9026         (adddi3_compareC): Delete insn.
9027         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
9028
9029 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9030
9031         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
9032         * (uaddv<mode>4): Delete expansion pattern.
9033         (uaddvsi4): New pattern.
9034         (uaddvdi4): Likewise.
9035         (addsi3_compareC): Delete pattern, change callers to use
9036         addsi3_compare_op1.
9037         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
9038         reduce the number of alternatives and re-work type attribute handling.
9039         (addsi3_compare_op2): Clean up constraints to reduce the number of
9040         alternatives and re-work type attribute handling.
9041         (compare_addsi2_op0): Likewise.
9042         (compare_addsi2_op1): Likewise.
9043
9044 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9045
9046         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
9047         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
9048         for DImode operands.
9049         (arm_gen_dicompare_reg): Remove unreachable expansion code.
9050         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
9051         CC_NCVmode.
9052         * config/arm/arm.md (arm_cmpdi_insn): Delete.
9053         (arm_cmpdi_unsigned): Delete.
9054
9055 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9056
9057         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
9058         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
9059         unchanged only if that will be cheaper.
9060         (arm_select_cc_mode): Recognize a swapped comparison that will
9061         be regenerated using RSBS or RSCS.  Relax restriction on selecting
9062         CC_RSBmode.
9063         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
9064         a constant.
9065         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
9066         is CC_RSBmode.
9067         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
9068         as CCmode.
9069         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
9070         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
9071
9072 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9073
9074         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
9075         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
9076         need these modes.
9077         (arm_gen_dicompare_reg): New code to early expand the sub-operations
9078         of EQ, NE, LT, GE, LTU and GEU.
9079         * config/arm/iterators.md (CC_EXTEND): New code attribute.
9080         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
9081         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
9082         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
9083         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
9084
9085 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9086
9087         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
9088         operand 2.
9089         (cstoredi4): Similarly, but for operand 3.
9090         * config/arm/arm.c (arm_canoncialize_comparison): Allow
9091         canonicalization of unsigned compares with a constant on Arm.
9092         Prefer using const+1 and adjusting the comparison over swapping the
9093         operands whenever the original constant was not valid.
9094         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
9095         register here.
9096         (arm_validize_comparison): Do not force invalid DImode operands to
9097         registers here.
9098
9099 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9100
9101         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
9102         return CC_Zmode if comparing against a constant where one word is
9103         zero.
9104         (arm_gen_compare_reg): Split DImode handling to ...
9105         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
9106         against simple constants.
9107         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
9108
9109 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9110
9111         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
9112         (rsbsi3_carryin_shift_alt): Likewise.
9113
9114 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9115
9116         * config/arm/arm.md (negscc_borrow): New pattern.
9117         (mov_negscc): Don't split if the insn would match negscc_borrow.
9118         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
9119         (thumb2_mov_negscc_strict_it): Likewise.
9120
9121 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9122
9123         * config/arm/arm.c (arm_insn_cost): New function.
9124         (TARGET_INSN_COST): Override default definition.
9125
9126 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9127
9128         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9129         borrow operations.
9130
9131 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9132
9133         * config/arm/arm.c (strip_carry_operation): New function.
9134         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
9135         for SImode.
9136
9137 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9138
9139         * config/arm/predicates.md (arm_carry_operation): New special
9140         predicate.
9141         * config/arm/iterators.md (LTUGEU): Delete iterator.
9142         (cnb): Delete code attribute.
9143         (optab): Delete ltu and geu elements.
9144         * config/arm/arm.md (addsi3_carryin): Renamed from
9145         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
9146         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
9147         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
9148         (addsi3_carryin_clobercc): Similarly.
9149         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
9150         Thumb2 state.
9151
9152 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9153
9154         * config/arm/arm.md (arm_subdi3): Delete insn.
9155         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
9156
9157 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9158
9159         * config/arm/arm-modes.def (CC_RSB): New CC mode.
9160         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
9161         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
9162         return CC_RSBmode.
9163         (maybe_get_arm_condition_code): Handle CC_RSBmode.
9164         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
9165         expand.
9166         (subdi3): Rewrite to early-expand the sub-operations.
9167         (rsb_im_compare): New pattern.
9168         (negdi2): Delete.
9169         (negdi2_insn): Delete.
9170         (arm_negsi2): Correct type attribute to alu_imm.
9171         (negsi2_0compare): New insn pattern.
9172         (negsi2_carryin): New insn pattern.
9173
9174 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9175
9176         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
9177         operand 2.
9178
9179 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9180
9181         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9182         to match canonical form.
9183
9184 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9185
9186         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
9187         (extend<mode>di2): Likewise.
9188
9189 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9190
9191         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
9192         * config/arm/arm.c (arm_decompose_di_binop): New function.
9193         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
9194         If not generating Thumb-1 code, decompose the operation into 32-bit
9195         pieces.
9196         * add0si_carryin_<optab>: New pattern.
9197
9198 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9199
9200         * arm.md (adddi3): Only accept register operands.
9201         (arm_adddi3): Convert to simple insn with no split.  Do not accept
9202         constants.
9203         (adddi_sesidi_di): Delete patern.
9204         (adddi_zesidi_di): Likewise.
9205         (uaddv<mode>4): Use LTU as condition for branch.
9206         (adddi3_compareV): Convert to simple insn with no split.
9207         (addsi3_compareV_upper): Delete pattern.
9208         (adddi3_compareC): Convert to simple insn with no split.  Correct
9209         flags setting expression.
9210         (addsi3_compareC_upper): Delete pattern.
9211         (addsi3_compareC): Correct flags setting expression.
9212         (subdi3_compare1): Convert to simple insn with no split.
9213         (subsi3_carryin_compare): Delete pattern.
9214         (arm_subdi3): Convert to simple insn with no split.
9215         (subdi_zesidi): Delete pattern.
9216         (subdi_di_sesidi): Delete pattern.
9217         (subdi_zesidi_di): Delete pattern.
9218         (subdi_sesidi_di): Delete pattern.
9219         (subdi_zesidi_zesidi): Delete pattern.
9220         (negvdi3): Use s_register_operand.
9221         (negdi2_compare): Convert to simple insn with no split.
9222         (negdi2_insn): Likewise.
9223         (negsi2_carryin_compare): Delete pattern.
9224         (negdi_zero_extendsidi): Delete pattern.
9225         (arm_cmpdi_insn): Convert to simple insn with no split.
9226         (negdi2): Don't call gen_negdi2_neon.
9227         * config/arm/neon.md (adddi3_neon): Delete pattern.
9228         (subdi3_neon): Delete pattern.
9229         (negdi2_neon): Delete pattern.
9230         (splits for negdi2_neon): Delete splits.
9231
9232 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9233
9234         PR middle-end/92153
9235         * ggc-page.c (release_pages): Read g->alloc_size before free rather
9236         than after it.
9237
9238 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9239
9240         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9241         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
9242         new multilib variants and new mappings.
9243
9244 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
9245
9246         PR target/86040
9247         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9248
9249 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9250             Richard Sandiford  <richard.sandiford@arm.com>
9251
9252         PR target/86753
9253         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9254         and define hashmap traits for it.
9255         (loop_vec_info::scalar_cond_masked_set): New member.
9256         (vect_record_loop_mask): Adjust prototype.
9257         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9258         Implement method.
9259         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9260         vect_record_loop_mask.
9261         (vectorizable_live_operation): Likewise.
9262         (vect_record_loop_mask): New param scalar_mask. Add entry
9263         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9264         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9265         Pass it as last arg to vect_record_loop_mask.
9266         (vectorizable_call): Pass scalar_mask as last arg to
9267         vect_record_loop_mask.
9268         (vectorizable_store): Likewise.
9269         (vectorizable_load): Likewise.
9270         (vectorizable_condition): Check if another part of vectorized code
9271         applies loop_mask to condition or to it's inverse, and if yes,
9272         apply loop_mask to result of vector comparison.
9273
9274 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
9275
9276         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9277
9278 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9279
9280         PR tree-optimization/92056
9281         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9282         before calling compute_builtin_object_size.
9283
9284 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
9285
9286         PR target/65342
9287         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9288         (movdi_low_st): Delete.
9289         * config/rs6000/rs6000.c
9290         (darwin_rs6000_legitimate_lo_sum_const_p): New.
9291         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9292         * config/rs6000/rs6000.md (movsi_low): Delete.
9293
9294 2019-10-17  Jason Merrill  <jason@redhat.com>
9295
9296         * gimplify.h (get_initialized_tmp_var): Add default argument to
9297         post_p.
9298         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9299         NULL post_p argument.
9300         * targhooks (std_gimplify_va_arg_expr): Likewise.
9301
9302 2019-10-17  Richard Biener  <rguenther@suse.de>
9303
9304         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9305         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9306         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9307         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9308         * tree-vect-loop.c (vect_is_simple_reduction): Set
9309         STMT_VINFO_REDUC_CODE.
9310         (vectorizable_reduction): Remove dead and redundant code, use
9311         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9312
9313 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
9314
9315         Fix breakage introduced by r276985.
9316
9317         * config/avr/avr.c (avr_option_override): Remove set of
9318         PARAM_ALLOW_STORE_DATA_RACES.
9319         * common/config/avr/avr-common.c (avr_option_optimization_table)
9320         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9321
9322 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
9323
9324         * config/i386/i386.h (processor_costs): Add clear_ratio.
9325         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9326         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9327         of 6 and move_ratio in all cost models.
9328
9329 2019-10-17  Richard Biener  <rguenther@suse.de>
9330
9331         * tree-vect-loop.c (check_reduction_path): Compute reduction
9332         operation here.
9333         (vect_is_simple_reduction): Remove special-case of single-stmt
9334         reduction path detection.
9335
9336 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
9337
9338         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9339
9340 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
9341
9342         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9343         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9344         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9345         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9346         New combine patterns.
9347         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9348         above.
9349         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9350
9351 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
9352
9353         * tree-vrp.c (value_range_base::dump): Display +INF for both
9354         pointers and integers when appropriate.
9355
9356 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9357
9358         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9359         when to use versioning threshold.
9360
9361 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9362
9363         * tree-vect-loop.c (determine_peel_for_niter): New function contained
9364         outlined code from ...
9365         (vect_analyze_loop_2): ... here.
9366
9367 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9368
9369         * tree-vect-loop.c (vect_transform_loop): Move code from here...
9370         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9371         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9372
9373 2019-10-17  Richard Biener  <rguenther@suse.de>
9374
9375         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9376         (vect_is_simple_reduction): Move all validity checks ...
9377         (vectorizable_reduction): ... here.  Compute whether we
9378         need a fold-left reduction here.
9379         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9380         both overloads, check needs_fold_left_reduction_p directly.
9381         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9382
9383 2019-10-17  Richard Biener  <rguenther@suse.de>
9384
9385         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9386         TARGET_MEM_REF creation.
9387
9388 2019-10-17  Richard Biener  <rguenther@suse.de>
9389
9390         PR tree-optimization/92129
9391         * tree-vect-loop.c (vectorizable_reduction): Also fail
9392         on GIMPLE_SINGLE_RHS.
9393
9394 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
9395
9396         PR tree-optimization/92056
9397         * tree-object-size.c (cond_expr_object_size): Return early if then_
9398         processing resulted in unknown size.
9399
9400         PR tree-optimization/92115
9401         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9402         temporary if it could trap.
9403
9404 2019-10-17  Richard Biener  <rguenther@suse.de>
9405
9406         PR debug/91887
9407         * dwarf2out.c (gen_formal_parameter_die): Also try to match
9408         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9409
9410 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
9411
9412         * tree-ssa-strlen.c (maybe_invalidate): Use
9413         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9414
9415 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
9416             Jim Wilson  <jimw@sifive.com>
9417
9418         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9419         regs to SIBCALL_REGS.
9420         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9421         passing regs to SIBCALL_REGS.
9422
9423 2019-10-16  Martin Sebor  <msebor@redhat.com>
9424
9425         PR tree-optimization/83821
9426         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
9427         the length of a string when available.
9428         (handle_builtin_memset) Add argument.
9429         (handle_store, strlen_check_and_optimize_call): Same.
9430         (check_and_optimize_stmt): Same.  Pass it to callees.
9431
9432 2019-10-16  Martin Sebor  <msebor@redhat.com>
9433
9434         PR tree-optimization/91996
9435         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9436         information.
9437         (compare_nonzero_chars): Add an overload.
9438         (count_nonzero_bytes): Add an argument.  Call overload above.
9439         Handle non-constant lengths in some range.
9440         (handle_store): Add an argument.
9441         (check_and_optimize_stmt): Pass an argument to handle_store.
9442
9443 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
9444
9445         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9446
9447 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
9448
9449         * config/mips/mips.c (mips_expand_builtin_insn): Force the
9450         operands which correspond to the same input-output register to
9451         have the same pseudo assigned to them.
9452
9453 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
9454
9455         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9456
9457 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
9458
9459         * config/aarch64/aarch64.c (aarch64_classify_symbol):
9460         Apply reasonable limit to symbol offsets.
9461
9462 2019-10-16  Richard Biener  <rguenther@suse.de>
9463
9464         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9465         (vect_is_simple_reduction): Delay checking to
9466         vectorizable_reduction and relax the checking.
9467         (vectorizable_reduction): Check we have a simple use.  Check
9468         for bogus condition reductions.
9469         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9470         are looking at the last stmt in a pattern sequence when
9471         filling in backedge PHI values.
9472
9473 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
9474             Jiufu Guo  <guojiufu@linux.ibm.com>
9475
9476         PR target/70010
9477         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9478         the callee explicitly disables some isa_flags the caller is using.
9479
9480 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9481
9482         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9483
9484 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9485
9486         * genmodes.c (mode_data::order): New field.
9487         (blank_mode): Update accordingly.
9488         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9489         (make_vector_modes): Likewise.
9490         (VECTOR_MODES): Update use accordingly.
9491         (cmp_modes): Sort by the new order field ahead of sorting by size.
9492         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9493         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9494         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9495         (aarch64_classify_vector_mode): Handle the new partial modes.
9496         (aarch64_vl_bytes): New function.
9497         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9498         when counting the number of registers in an SVE mode.
9499         (aarch64_class_max_nregs): Likewise.
9500         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9501         in registers yet.
9502         (aarch64_classify_address): Treat partial vectors analogously
9503         to full vectors.
9504         (aarch64_print_address_internal): Consolidate the printing of
9505         MUL VL addresses, using aarch64_vl_bytes as the number of
9506         bytes represented by "VL".
9507         (aarch64_vector_mode_supported_p): Reject partial vector modes.
9508
9509 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9510
9511         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9512         rather than known_lt when choosing frame layouts.
9513
9514 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9515
9516         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9517         that all the adjustments add up to the full frame size.
9518         Use crtl->outgoing_args_size directly as the final adjustment
9519         where appropriate.
9520
9521 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9522
9523         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9524         "frame" reference instead of always referring directly to
9525         "cfun->machine->frame".
9526
9527 2019-10-16  Richard Biener  <rguenther@suse.de>
9528
9529         PR tree-optimization/92119
9530         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9531         against missing bswap lhs.
9532
9533 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
9534
9535         PR middle-end/92033
9536         * poly-int.h (constant_lower_bound_with_limit): New function.
9537         (constant_upper_bound_with_limit): Likewise.
9538         * doc/poly-int.texi: Document them.
9539         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9540         into the worst-case INTEGER_CST bounds.
9541
9542 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
9543
9544         PR ipa/91088
9545         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9546         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9547         * ipa-predicat.h (struct expr_eval_op): New struct.
9548         (expr_eval_ops): New typedef.
9549         (struct condition): Add type and param_ops fields, remove size field.
9550         (add_condition): Replace size parameter with type parameter, add
9551         param_ops parameter.
9552         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9553         (predicate::add_clause): Add comparisons on type and param_ops.
9554         (dump_condition): Add debug dump for param_ops.
9555         (remap_after_inlining): Adjust call arguments to add_condition.
9556         (add_condition): Replace size parameter with type parameter, add
9557         param_ops parameter. Unshare constant value used in conditions.
9558         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9559         parameter expressions using param_ops.
9560         (decompose_param_expr):  New function.
9561         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9562         to replace call to unmodified_parm_or_parm_agg_item.
9563         (set_switch_stmt_execution_predicate): Likewise.
9564         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9565         with type.
9566         (inline_read_section): Read param_ops from summary stream.
9567         (ipa_fn_summary_write): Write param_ops to summary stream.
9568
9569 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
9570
9571         PR rtl-optimization/92107
9572         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9573         expression written.
9574
9575 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
9576
9577         * config/darwin.c: Update description of fix and continue.
9578
9579 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
9580
9581         * config/darwin.c (darwin_binds_local_p): Update to call
9582         default_binds_local_p_3 () directly. amend comments.
9583
9584 2019-10-15  Richard Biener  <rguenther@suse.de>
9585
9586         * lto-streamer-out.c (lto_variably_modified_type_p): New.
9587         (tree_is_indexable): Use it.
9588         * tree-streamer-out.c (pack_ts_type_common_value_fields):
9589         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9590         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9591
9592 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9593
9594         * config/msp430/msp430.md (zero_extendqipsi2): New.
9595         (zero_extendqisi2): Optimize case where src register and base dst
9596         register are the same.
9597         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9598         (zero_extendpsisi2): Optimize r->m case.
9599         Add unnamed insn patterns to catch insns combine searches for when
9600         optimizing pointer manipulation.
9601
9602 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9603
9604         * config/msp430/msp430.md: Group zero_extend* insns together.
9605
9606 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9607
9608         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9609         constraint.
9610         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9611         POST_INC.
9612         (msp430_subreg): Likewise.
9613         (msp430_split_addsi): Likewise.
9614         (msp430_print_operand_addr): Likewise.
9615         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9616         (USE_STORE_POST_INCREMENT): Define.
9617         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9618         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9619         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9620         (msp430_general_dst_operand): New.
9621         (msp430_general_dst_nonv_operand): New.
9622         (msp430_nonsubreg_operand): Remove.
9623         (msp430_nonsubreg_dst_operand): New.
9624         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9625         of defunct msp430_nonsubreg_operand.
9626         (msp430_nonsubregnonpostinc_or_imm_operand): New.
9627
9628 2019-10-15  Richard Biener  <rguenther@suse.de>
9629
9630         PR tree-optimization/91929
9631         * tree-ssa-pre.c (pre_expr_d::loc): New member.
9632         (get_or_alloc_expr_for_name): Initialize it.
9633         (get_or_alloc_expr_for_constant): Likewise.
9634         (phi_translate_1): Copy it.
9635         (create_expression_by_pieces): Use the original location
9636         of the expression for the inserted stmt.
9637         (compute_avail): Record the location of the stmt for the
9638         expressions created.
9639
9640 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
9641
9642         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9643         before using tree_to_uhwi.
9644
9645 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
9646
9647         * config/s390/s390.md: Run %a0:DI splitters only after reload.
9648
9649 2019-10-15  Richard Biener  <rguenther@suse.de>
9650
9651         PR tree-optimization/92094
9652         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9653         do not adjust the reduction definition def type.
9654         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9655         defines the latch argument of the PHI.
9656
9657 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
9658
9659         PR target/92035
9660         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9661         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9662         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9663         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9664         _mm_maskz_roundscale_round_sd): New intrinsics.
9665         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9666         __builtin_ia32_rndscales?_mask_round builtins instead of
9667         __builtin_ia32_rndscales?_round.
9668         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9669         __builtin_ia32_rndscalesd_round): Remove.
9670         (__builtin_ia32_rndscaless_mask_round,
9671         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9672         * config/i386/sse.md
9673         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9674         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9675          ... this, adjust and add subst atrributes to make it maskable.
9676
9677 2019-10-15  Richard Biener  <rguenther@suse.de>
9678
9679         PR middle-end/92046
9680         * common.opt (fallow-store-data-races): New.
9681         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9682         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9683         * doc/invoke.texi (fallow-store-data-races): Document.
9684         (--param allow-store-data-races): Remove docs.
9685         * opts.c (default_options_table): Enable -fallow-store-data-races
9686         at -Ofast.
9687         (default_options_optimization): Do not enable --param
9688         allow-store-data-races at -Ofast.
9689         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9690         instead of PARAM_ALLOW_STORE_DATA_RACES.
9691         * tree-ssa-loop-im.c (execute_sm): Likewise.
9692
9693 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9694
9695         PR tree-optimization/92085
9696         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9697         instead of calling it unconditionally after
9698         delete_dead_or_redundant_assignment and fix indentation.
9699
9700 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
9701
9702         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9703         TARGET_VFP_DOUBLE.
9704         (*fmsub<SDF:mode>4): Likewise.
9705         *fnmsub<SDF:mode>4): Likewise.
9706         (*fnmadd<SDF:mode>4): Likewise.
9707
9708 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
9709
9710         * doc/tree-ssa.texi: Update renamed macro name.
9711
9712 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
9713
9714         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9715         vector constants.
9716
9717 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
9718
9719         * config/darwin.c: Use unsigned ints for the picbase label
9720         counters, initialise the vars explicitly.
9721         (update_pic_label_number_if_needed): Move a variable declaration
9722         to where it's needed.
9723         (machopic_output_function_base_name): Use a more strict checking
9724         assert, and and unsigned int for the picbase label counter.
9725         (machopic_get_function_picbase): Likewise.
9726
9727 2019-10-14  Richard Biener  <rguenther@suse.de>
9728
9729         PR middle-end/92046
9730         * dse.c (scan_insn): Use param max_active_local_stores.
9731         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9732         based on optimization level.
9733         * loop-invariant.c (move_loop_invariants): Adjust
9734         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9735         * opts.c (default_options_optimization): Do not adjust
9736         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9737         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9738
9739 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9740
9741         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9742
9743 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
9744
9745         * config/arm/arm.c (arm_option_override): Don't override sched
9746         pressure algorithm.
9747
9748 2019-10-14  Richard Biener  <rguenther@suse.de>
9749
9750         PR tree-optimization/92069
9751         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9752         cycles do not set vect_nested_cycle on the latch definition.
9753
9754 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
9755
9756         * function-abi.h (expr_callee_abi): Declare.
9757         * function-abi.cc (expr_callee_abi): New function.
9758
9759 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
9760
9761         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9762         into [1,MAX].
9763         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9764         non-zero being represented as [1,MAX].
9765
9766 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9767
9768         * tree-sra.c (dump_access): Add missing braces.
9769
9770 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9771
9772         * config/darwin.c (machopic_indirection_name): Rework the
9773         function to emit linker-visible symbols only for indirections
9774         in the data section.  Clean up the code and update comments.
9775
9776 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
9777
9778         * config/darwin.c (machopic_indirect_data_reference): Remove
9779         redundant code.
9780
9781 2019-10-13  Nathan Sidwell  <nathan@acm.org>
9782
9783         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9784
9785 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9786
9787         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9788         c99_runtime.
9789
9790 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
9791
9792         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9793         so non-virutal are before virutals.
9794         (output_function): Avoid body modifications.
9795
9796 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9797
9798         * config/pa/pa.c (pa_output_call): Load descriptor address to register
9799         %r22.  Load function address before global pointer.
9800         (pa_attr_length_indirect_call): Adjust length of inline versions of
9801         $$dyncall.
9802         (pa_output_indirect_call): Remove fast inline version of $$dyncall
9803         before normal cases.  Update inline $$dyncall sequences to preserve
9804         function descriptor address in register %r22.
9805         (TRAMPOLINE_CODE_SIZE): Adjust.
9806         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
9807         register %r22 contains trampoline address.
9808         (pa_trampoline_init): Adjust offsets.
9809         (pa_trampoline_adjust_address): Likewise.
9810         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9811
9812 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9813
9814         PR target/67183
9815         * config/darwin.c (machopic_indirection): New field to flag
9816         non-lazy-symbol-pointers in the data section.
9817         (machopic_indirection_name): Compute if an indirection should
9818         appear in the data section.
9819         (machopic_output_data_section_indirection): New callback split
9820         from machopic_output_indirection.
9821         (machopic_output_stub_indirection): Likewise.
9822         (machopic_output_indirection): Retain the code for non-lazy
9823         symbol pointers in their regular section.
9824         (machopic_finish): Use the new callbacks to order the indirection
9825         output.
9826
9827 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9828
9829         * config/darwin-protos.h (machopic_finish): Delete.
9830         * config/darwin.c (machopic_finish): Make static.
9831
9832 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
9833
9834         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9835         sections when building kernel extension code.
9836
9837 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
9838
9839         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9840         later standard."
9841
9842 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
9843
9844         * config/pa/pa.c (pa_option_override): Remove trailing comma
9845         from warning.
9846
9847 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
9848
9849         PR middle-end/92063
9850         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9851         <case VEC_COND_EXPR>: Return false with *handled = false.
9852         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9853         recursing on the first operand.
9854         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9855         instead of tree_could_trap_p.
9856         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9857
9858 2019-10-11  Jim Wilson  <jimw@sifive.com>
9859
9860         PR rtl-optimization/91860
9861         * combine.c (subst): If new_rtx is a constant, also check for
9862         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9863
9864 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
9865
9866         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9867         INTVAL when calling store_bit_field.
9868
9869 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
9870
9871         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9872         size.
9873
9874 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9875
9876         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9877         vectorizable_live_operation.
9878         (vectorizable_live_operation): Adjust parameters.
9879         * tree-vect-stmts.c (vect_init_vector,
9880         vect_gen_widened_results_half): Fix typo in function comment.
9881         (can_vectorize_live_stmts): Adjust function comment.
9882         Adjust parameters.  Adjust call to vectorizable_live_operation.
9883         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9884         (vect_transform_stmt): Adjust function comment.  Adjust call to
9885         can_vectorize_live_stmts.
9886         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9887
9888 2019-10-11  Richard Biener  <rguenther@suse.de>
9889
9890         PR tree-optimization/90883
9891         PR tree-optimization/91091
9892         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9893         alias-sets both for recording VN table entries and continuing
9894         walking after translating through copies.  Handle same-sized
9895         reads from SSA names by returning the plain SSA name.
9896         (eliminate_dom_walker::eliminate_stmt): Properly handle
9897         non-size precision stores in redundant store elimination.
9898
9899 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
9900
9901         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9902         (ggc_collect): Dump later to not interfere with release_page dump.
9903         (ggc_trim): New function.
9904         * ggc-none.c (ggc_trim): New.
9905         * ggc.h (ggc_trim): Declare.
9906
9907 2019-10-11  Richard Biener  <rguenther@suse.de>
9908
9909         PR tree-optimization/92066
9910         PR tree-optimization/92046
9911         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9912         Fix bogus cost model check.
9913
9914 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9915
9916         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9917         (LANG_HOOKS_DECLS): Add it.
9918         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9919         update comment for omp_is_optional_argument.
9920         * omp-general.c (omp_is_allocatable_or_ptr): New.
9921         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9922         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9923         Fortran's optional arguments and allocatable/pointer scalars
9924         with use_device_addr.
9925
9926 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
9927
9928         PR target/77918
9929         * config/s390/2827.md: Add new opcodes.
9930         * config/s390/2964.md: Likewise.
9931         * config/s390/3906.md: Likewise.
9932         * config/s390/8561.md: Likewise.
9933         * config/s390/s390-builtins.def (s390_vfchesb): Use
9934         the new vec_cmpgev4sf_quiet_nocc.
9935         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9936         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9937         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9938         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9939         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9940         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9941         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9942         * config/s390/s390-modes.def (CCSFPS): New mode.
9943         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9944         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9945         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9946         (s390_expand_vec_compare): Use non-signaling patterns where
9947         necessary.
9948         (s390_reverse_condition): Support CCSFPS.
9949         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9950         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9951         (asm_fcmp_op): Likewise.
9952         (*smaxv2df3_vx): Use pattern for quiet comparison.
9953         (*sminv2df3_vx): Likewise.
9954         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9955         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9956         (vec_cmpgt<mode>_quiet_nocc): Likewise.
9957         (vec_cmplt<mode>_quiet_nocc): New expander.
9958         (vec_cmpge<mode>_quiet_nocc): New pattern.
9959         (vec_cmple<mode>_quiet_nocc): New expander.
9960         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9961         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9962         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9963         (*vec_cmpge<mode>_signaling_nocc): Likewise.
9964         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9965         (vec_cmpungt<mode>): New expander.
9966         (vec_cmpunge<mode>): Likewise.
9967         (vec_cmpuneq<mode>): Use quiet patterns.
9968         (vec_cmpltgt<mode>): Allow only on z14+.
9969         (vec_cmpordered<mode>): Use quiet patterns.
9970         (vec_cmpunordered<mode>): Likewise.
9971         (VEC_CMP_EXPAND): Add ungt and unge.
9972
9973 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
9974
9975         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9976         parameter.
9977         * lto-streamer-out.c: Include tree-dfa.h.
9978         (output_cfg): Do not use cfun.
9979         (lto_prepare_function_for_streaming): New.
9980         (output_function): Do not push cfun; do not initialize loop optimizer.
9981         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9982         * passes.c (ipa_write_summaries): Use it.
9983         (ipa_write_optimization_summaries): Do not modify bodies.
9984         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9985         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9986         * tree-ssa-dse.c (pass_dse::execute): Update use of
9987         renumber_gimple_stmt_uids.
9988         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9989
9990 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
9991
9992         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9993         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9994
9995 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
9996
9997         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9998         macros.
9999         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
10000         Also define DFP macros for these conditions.
10001         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
10002         DEC128_SUBNORMAL_MIN): Do not define.
10003         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
10004         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
10005
10006 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
10007             Sandra Loosemore  <sandra@codesourcery.com>
10008
10009         PR middle-end/26241
10010         * doc/lto.texi (IPA): Reference to the IPA passes.
10011         * doc/passes.texi (Pass manager): Add node IPA passes and
10012           description for each IPA pass.
10013
10014 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10015
10016         * ipa-reference.c: Do not include splay-tree.h
10017         (reference_vars_to_consider): Turn to hash map.
10018         (get_static_name, ipa_init, analyze_function, propagate,
10019         stream_out_bitmap, ipa_reference_write_optimization_summary,
10020         ipa_reference_write_optimization_summary): Update.
10021
10022 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10023
10024         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
10025
10026 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
10027
10028         * config/darwin.c: Lookup Objective C metadata and force indirection
10029         for IVAR refs.
10030
10031 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
10032
10033         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
10034         addresses.
10035         (mem_operand_gpr): Add check for prefixed addresses.
10036         (mem_operand_ds_form): Add check for prefixed addresses.
10037         (rs6000_legitimate_offset_address_p): If we support prefixed
10038         addresses, check for a 34-bit offset instead of 16-bit.
10039         (rs6000_legitimate_address_p): Add check for prefixed addresses.
10040         Do not allow load/store with update if the address is prefixed.
10041         (rs6000_mode_dependent_address):  If we support prefixed
10042         addresses, check for a 34-bit offset instead of 16-bit.
10043
10044 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10045
10046         PR target/77918
10047         * config/s390/vector.md (vcond_comparison_operator): New
10048         predicate.
10049         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
10050
10051 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10052
10053         PR 87488
10054         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
10055         -D.
10056         * configure.ac (--with-documentation-root-url): New option.
10057         * configure: Regenerate.
10058         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
10059         option URL, add it as a new string field of the diagnostic option.
10060         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
10061         (print_option_information): If get_option_url is non-NULL, call
10062         it, and if the result is non-NULL, potentially emit an escape
10063         sequence to markup the option text with the resulting URL.
10064         * diagnostic.h (diagnostic_context::get_option_url): New callback.
10065         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
10066         example of JSON output.
10067         * opts-diagnostic.h (get_option_url): New decl.
10068         * opts.c (get_option_url): New function.
10069         * toplev.c (general_init): Initialize the get_option_url callback.
10070
10071 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10072
10073         PR 87488
10074         * common.opt (fdiagnostics-urls=): New option.
10075         (diagnostic-url.h): Add SourceInclude.
10076         (diagnostic_url_rule): New enum.
10077         * diagnostic-color.c: Include "diagnostic-url.h".
10078         (diagnostic_urls_enabled_p): New function.
10079         * diagnostic-url.h: New file.
10080         * diagnostic.c: Include "diagnostic-url.h".
10081         (diagnostic_urls_init): New function.
10082         * diagnostic.h (diagnostic_urls_init): New decl.
10083         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10084         -fdiagnostics-urls to the list.
10085         (-fdiagnostics-urls): New option.
10086         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
10087         (driver::global_initializations): Call diagnostic_urls_init.
10088         * opts-global.c (init_options_once): Likewise.
10089         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
10090         * pretty-print.c (pretty_printer::pretty_printer): Initialize
10091         show_urls.
10092         (pp_begin_url): New function.
10093         (pp_end_url): New function.
10094         (selftest::test_urls): New selftest.
10095         (selftest::pretty_print_c_tests): Call it.
10096         * pretty-print.h (pretty_printer::show_urls): New field.
10097         (pp_begin_url): New decl.
10098         (pp_end_url): New decl.
10099
10100 2019-10-10  Uroš Bizjak  <ubizjak@gmail.com>
10101
10102         PR target/92022
10103         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
10104
10105 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
10106
10107         PR target/88630
10108         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
10109         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
10110         also for TARGET_FPU_SH4_300.
10111         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
10112         TARGET_SH4_300.
10113         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
10114         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
10115         (*negsf2_i): Split into ...
10116         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
10117         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
10118         (**abssf2_i): Split into ...
10119         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
10120         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
10121         (*negdf2_i): Split into ...
10122         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
10123         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
10124         (**abssf2_i): Split into ...
10125         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
10126
10127 2019-10-10  Richard Biener  <rguenther@suse.de>
10128
10129         PR middle-end/92046
10130         * opts.c (finish_options): Do not influence global --params
10131         from options that are adjustable per function.
10132         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10133         Apply --param adjustment based on active cost-model.
10134         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
10135         further store-sinking when vectorization or if-conversion
10136         are not enabled.
10137
10138 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10139
10140         PR middle-end/92037
10141         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
10142         rather than ggc_alloc_cleared to alloc symbol table.
10143         * toplev.c (general_init): Likewise.
10144         * cgraph.h (symbol_table): Explicitly construct every field.
10145
10146 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10147
10148         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
10149         (PF_Z15): ... this.
10150         * config.gcc: Add z15 as option for --with-arch and --with-tune
10151         configure switches.
10152         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
10153         error reporting for unsupported builtins.
10154         * config/s390/s390-opts.h (enum processor_type): Rename
10155         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
10156         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
10157         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10158         Likewise.
10159         * config/s390/s390-builtins.def: Likewise.
10160         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
10161         (s390_expand_builtin): Add missing check for unsupported builtins.
10162         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
10163         (s390_rtx_costs): Likewise.
10164         (s390_get_sched_attrmask): Rename arch13 to z15.
10165         (s390_get_unit_mask): Likewise.
10166         (s390_is_fpd): Likewise.
10167         (s390_is_fxd): Likewise.
10168         * config/s390/s390.h (enum processor_flags): Likewise.
10169         * config/s390/s390.md: Likewise.
10170         * config/s390/vector.md: Likewise.
10171         * config/s390/vx-builtins.md: Likewise.
10172         * config/s390/s390.opt: Add z15 to processor_type value.
10173
10174 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10175
10176         PR target/91035
10177         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
10178         prototype.
10179         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
10180         ("split_stack_data", "split_stack_call")
10181         ("split_stack_call_<mode>", "split_stack_cond_call")
10182         ("split_stack_cond_call_<mode>"): Remove.
10183         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
10184         insn definition.
10185         * config/s390/s390.c (s390_output_split_stack_data): New function.
10186         (s390_expand_split_stack_prologue): Use the merged expander.
10187
10188 2019-10-09  Martin Sebor  <msebor@redhat.com>
10189
10190         PR tree-optimization/90879
10191         * builtins.c (check_access): Avoid using maxbound when null.
10192         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
10193         * doc/invoke.texi (-Wstring-compare): Document new warning option.
10194         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
10195         conditional.
10196         (get_range_strlen): Overwrite initial maxbound when non-null.
10197         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10198         changes.
10199         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10200         (used_only_for_zero_equality): New function.
10201         (handle_builtin_memcmp): Call it.
10202         (determine_min_objsize): Return an integer instead of tree.
10203         (get_len_or_size, strxcmp_eqz_result): New functions.
10204         (maybe_warn_pointless_strcmp): New function.
10205         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
10206         between a longer string and a smaller array.
10207         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10208
10209 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10210
10211         * config/darwin.c (darwin_override_options): Make the check for
10212         Objective-C ABI version more specific for 64bit code.
10213
10214 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10215
10216         * config/darwin.c (machopic_indirect_data_reference): Set flag to
10217         indicate that the new symbol is an indirection.
10218         (machopic_indirect_call_target): Likewise.
10219         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10220         (MACHO_SYMBOL_INDIRECTION_P): New.
10221         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10222
10223 2019-10-08  Jason Merrill  <jason@redhat.com>
10224
10225         * doc/invoke.texi: Document -fconcepts-ts.
10226
10227 2019-10-09  Richard Biener  <rguenther@suse.de>
10228
10229         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10230         allow stmts other than GIMPLE_ASSIGN in nested cycles.
10231
10232 2019-10-08  Richard Biener  <rguenther@suse.de>
10233
10234         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10235         (_stmt_vec_info::force_single_cycle): Likewise.
10236         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10237         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10238         * tree-vect-loop.c (vectorizable_reduction): Set
10239         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10240         (vect_transform_reduction): Use them to remove redundant code.
10241         (vect_transform_cycle_phi): Likewise.
10242
10243 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10244
10245         PR tree-optimization/90836
10246         * match.pd (popcount): New pattern.
10247
10248 2019-10-08  Martin Sebor  <msebor@redhat.com>
10249
10250         PR middle-end/92026
10251         PR middle-end/92014
10252         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10253         again once nbytes has been set.  Set the access size when not yet set.
10254
10255 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10256
10257         * config/darwin.c (machopic_select_section): Remove dead code for
10258         old Objective-C section selection method, replace with unreachable.
10259
10260 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10261
10262         * config/darwin.c (machopic_indirect_data_reference): Check for
10263         required indirections before making direct access to defined
10264         values.
10265         (machopic_output_indirection): Place the indirected pointes for
10266         required indirections into the non-lazy symbol pointers section.
10267         (darwin_encode_section_info):
10268         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10269         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10270
10271 2019-10-08  Uroš Bizjak  <ubizjak@gmail.com>
10272
10273         PR target/91994
10274         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10275         instead of ALL_SSE_REG to check if function call preserves some
10276         256-bit SSE registers.
10277
10278 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10279
10280         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10281         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10282         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10283
10284 2019-10-08  Richard Biener  <rguenther@suse.de>
10285
10286         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10287         (_stmt_vec_info::is_reduc_info): Add.
10288         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10289         (vectorizable_condition): Remove.
10290         (vectorizable_shift): Likewise.
10291         (vectorizable_reduction): Adjust.
10292         (info_for_reduction): New.
10293         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10294         (vect_analyze_scalar_cycles_1): ... here.
10295         (vect_analyze_loop_operations): Adjust.
10296         (needs_fold_left_reduction_p): Simplify for single caller.
10297         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
10298         for nested cycles not part of double reductions.
10299         (vect_model_reduction_cost): Pass in the reduction type.
10300         (info_for_reduction): New function.
10301         (vect_create_epilog_for_reduction): Use it, access reduction
10302         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
10303         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10304         (vectorize_fold_left_reduction): Remove pointless assert.
10305         (vectorizable_reduction): Analyze the full reduction when
10306         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
10307         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
10308         stmt code-generation to vectorizable_* in most cases.  Verify
10309         code-generation only for cases handled by
10310         vect_transform_reductuon.
10311         (vect_transform_reduction): Use info_for_reduction to get at
10312         reduction meta.  Simplify.
10313         (vect_transform_cycle_phi): Likewise.
10314         (vectorizable_live_operation): Likewise.
10315         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10316         at the PHI node for STMT_VINFO_REDUC_TYPE.
10317         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10318         longer necessary code.
10319         * tree-vect-stmts.c (vectorizable_shift): Make static again.
10320         (vectorizable_condition): Likewise.  Get at reduction related
10321         info via info_for_reduction.
10322         (vect_analyze_stmt): Adjust.
10323         (vect_transform_stmt): Likewise.
10324         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10325         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10326
10327 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
10328
10329         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10330         -fno-fp-int-builtin-inexact default for C2X.
10331
10332 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10333             Richard Biener  <rguenther@suse.de>
10334
10335         PR tree-optimization/91532
10336         * tree-if-conv.c: Include tree-ssa-dse.h.
10337         (ifcvt_local_dce): Change param from bb to loop,
10338         and call dse_classify_store.
10339         (tree_if_conversion): Pass loop instead of loop->header as arg
10340         to ifcvt_local_dce.
10341         * tree-ssa-dse.c: Include tree-ssa-dse.h.
10342         (delete_dead_or_redundant_assignment): Remove static qualifier from
10343         declaration, and add prototype in tree-ssa-dse.h.
10344         (dse_store_status): Move to tree-ssa-dse.h.
10345         (dse_classify_store): Remove static qualifier and add new tree param
10346         stop_at_vuse, and add prototype in tree-ssa-dse.h.
10347         * tree-ssa-dse.h: New header.
10348
10349 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10350
10351         * config/darwin.c (machopic_output_indirection): Don't put
10352         hidden symbol indirections into the .data section, use the
10353         non-lazy symbol pointers section as normal.
10354         (darwin_encode_section_info): Record if a symbol is hidden.
10355         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10356         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10357
10358 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10359
10360         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10361         predicates instead of accessing bits directly.
10362         (machopic_indirect_call_target): Likewise.
10363         (machopic_output_indirection): Likewise.
10364         (darwin_encode_section_info): Improve description.  Use renamed
10365         symbol flags.  Use predicate macros for variables and functions.
10366         * config/darwin.h:
10367         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10368         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10369         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10370         (MACHO_SYMBOL_VARIABLE_P): New.
10371         (MACHO_SYMBOL_DEFINED_P):New.
10372         (MACHO_SYMBOL_STATIC_P): New.
10373         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10374         (SYMBOL_FLAG_SUBT_DEP): New.
10375         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10376
10377 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10378
10379         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10380         (msp430_expand_epilogue): Likewise.
10381         * config/msp430/predicates.md: Likewise.
10382         * config/msp430/msp430.md: Likewise.
10383         Replace blocks of 8 spaces with tabs.
10384
10385 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10386
10387         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10388         * config/msp430/msp430.c (msp430_split_addsi): New.
10389         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10390         a block of C code for splitting addsi.
10391
10392 2019-10-07  Uroš Bizjak  <ubizjak@gmail.com>
10393
10394         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10395         ix86_expand_rounddf_32): Reorder functions.
10396         * config/i386/i386-protos.h: Update.
10397
10398 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10399
10400         * config.in: Regenerate.
10401         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10402         Add new "Yx" constraint.
10403         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10404         function.
10405         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10406         prototype.
10407         * config/msp430/msp430.c (msp430_option_override): Allow the lower
10408         code/data region to be selected in the small memory model.
10409         (msp430_section_attr): Don't warn if the "section" and "lower"
10410         attributes are used together.
10411         (msp430_handle_generic_attribute): Likewise.
10412         (msp430_var_in_low_mem): New function.
10413         (TARGET_ENCODE_SECTION_INFO): Define.
10414         (msp430_encode_section_info): New function.
10415         (gen_prefix): Return early in the small memory model.
10416         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10417         ".lower" prefix if -m{code,data}-region=lower have been passed.
10418         (msp430_output_aligned_decl_common): Emit common symbols when
10419         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10420         set.
10421         (TARGET_ASM_FILE_END): Define.
10422         (msp430_file_end): New function.
10423         (msp430_do_not_relax_short_jumps): Allow relaxation when
10424         function will be in the lower region.
10425         (msp430_op_not_in_high_mem): New function.
10426         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10427         the 'X' operand selector.
10428         Clarify comment for 'x' operand selector.
10429         * config/msp430/msp430.h (LINK_SPEC): Propagate
10430         -m{code,data}-region to the linker via spec function
10431         msp430_propagate_region_opt.
10432         (msp430_propagate_region_opt): New prototype.
10433         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10434         (SYMBOL_FLAG_LOW_MEM): Define.
10435         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10436         selector.
10437         (zero_extendqihi2): Fix operand number used by "%X" selector.
10438         (zero_extendqisi2): Likewise.
10439         (zero_extendhisi2): Likewise.
10440         (movqi): Use "Yx" constraint in place of "%X" operand selector.
10441         (movhi): Likewise.
10442         (addqi3): Likewise.
10443         (addhi3): Likewise.
10444         (addsi3): Likewise.
10445         (addhi3_cy): Likewise.
10446         (addchi4_cy): Likewise.
10447         (subqi3): Likewise.
10448         (subhi3): Likewise.
10449         (subsi3): Likewise.
10450         (bic<mode>3): Likewise.
10451         (and<mode>3): Likewise.
10452         (ior<mode>3): Likewise.
10453         (xor<mode>3): Likewise.
10454         (slli_1): Add missing "%X" operand selector.
10455         (slll_1): Likewise.
10456         (slll_2): Likewise.
10457         (srai_1): Likewise.
10458         (sral_1): Likewise.
10459         (sral_2): Likewise.
10460         (srli_1): Likewise.
10461         (srll_1): Likewise.
10462         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10463         selector.
10464         (cbranchhi4_real): Likewise.
10465         (cbranchqi4_reversed): Likewise.
10466         (cbranchhi4_reversed): Likewise.
10467         (*bitbranch<mode>4): Likewise.
10468         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10469         * config/msp430/msp430.opt (mcode-region=): Set default to
10470         MSP430_REGION_LOWER. Improve docstring.
10471         (mdata-region=): Likewise.
10472         (muse-lower-region-prefix): New option.
10473         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10474         mdata-region=none multilib.
10475         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10476         mdata-region=none multilib.
10477         MULTILIB_EXCEPTIONS: Remove.
10478         MULTILIB_REQUIRED: Define.
10479         * configure: Regenerate.
10480         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10481         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10482         * doc/extend.texi: Clarify comment for {upper,lower,either}
10483         function attributes.
10484         Add separate description for "lower" variable attribute.
10485
10486 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
10487
10488         PR target/77918
10489         * optabs-tree.c (vcond_icode_p): New function.
10490         (vcond_eq_icode_p): Likewise.
10491         (expand_vec_cond_expr_p): Use vcond_icode_p and
10492         vcond_eq_icode_p.
10493         * optabs.c (can_vcond_compare_p): New function.
10494         * optabs.h (can_vcond_compare_p): Likewise.
10495
10496 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
10497
10498         PR target/77918
10499         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10500         caller passes a non-trapping condition.
10501         (is_gimple_condexpr): Allow trapping conditions.
10502         (is_gimple_condexpr_1): New helper function.
10503         (is_gimple_condexpr_for_cond): New function, acts like old
10504         is_gimple_condexpr.
10505         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10506         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10507         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10508         * gimplify.c (gimplify_cond_expr): Use
10509         is_gimple_condexpr_for_cond.
10510         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10511         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10512         VEC_COND_EXPR.
10513         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10514         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10515         is_gimple_condexpr_for_cond, remove pointless tmp check
10516         (forward_propagate_into_cond): Remove pointless tmp check.
10517
10518 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
10519
10520         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10521         match that of other gsi_next_* functions.  Adjust the comment.
10522         (gsi_start_nonvirtual_phis): New function.
10523         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10524         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
10525
10526 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
10527
10528         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10529         setjmp situation here.  Fix a verb's ending: "the exact variables or
10530         elements for which there are warnings depends" -> "... depend".
10531
10532 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10533
10534         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10535
10536 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10537
10538         * ipa-prop.c (ipa_vr::nonzero_p): New.
10539         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10540         non-zero range.
10541         * ipa-prop.h (class ipa_vr): Add nonzero_p.
10542         * tree-vrp.c (range_has_numeric_bounds_p): New.
10543         (range_int_cst_p): Use range_has_numeric_bounds_p.
10544         (get_range_op_handler): New.
10545         (supported_types_p): New.
10546         (defined_ranges_p): New.
10547         (drop_undefines_to_varying): New.
10548         (range_fold_binary_symbolics_p): New.
10549         (range_fold_unary_symbolics_p): New.
10550         (range_fold_unary_expr): Extract out into above functions.
10551         (range_fold_binary_expr): Same.
10552         (value_range_base::normalize_addresses): New.
10553         (value_range_base::normalize_symbolics): Normalize addresses.
10554         * tree-vrp.h (class value_range_base): Add normalize_addresses.
10555
10556 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
10557
10558         * tree-vrp.c (value_range_base::singleton_p): Use
10559         value_range_base::num_pairs instead of vrp_val_is* to check
10560         if a range has one sub-range.
10561
10562 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10563
10564         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10565         DEF is not a true earlyclobber but is tied to a specific input
10566         operand, and so is effectively earlyclobber wrt inputs that have
10567         different values.
10568         (make_early_clobber_and_input_conflicts): Pass this case to the above.
10569
10570 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10571
10572         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10573         (pod_mode): Mark operators likewise.
10574         (scalar_int_mode): Mark non-default constructors and
10575         operators with CONSTEXPR.
10576         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10577         (fixed_size_mode): Likewise.
10578
10579 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10580
10581         PR target/91994
10582         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10583         and wrap the unspec_volatile in a parallel.
10584         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
10585         the unspec_volatile.
10586         * config/i386/predicates.md (vzeroupper_pattern): Expect the
10587         unspec_volatile to be wrapped in a parallel.
10588         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10589         (ix86_add_reg_usage_to_vzerouppers): New functions.
10590         (rest_of_handle_insert_vzeroupper): Use them to add register
10591         usage information to the vzeroupper instructions.
10592
10593 2019-10-07  Richard Biener  <rguenther@suse.de>
10594
10595         PR tree-optimization/91975
10596         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10597         handle invariants.
10598
10599 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
10600
10601         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10602         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10603
10604 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
10605
10606         * config/darwin.c (darwin_override_options): Adjust objective-c
10607         ABI version error messages to avoid punctuation and contracted
10608         negations.
10609
10610 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
10611
10612         * ipa-inline.c: Fix type; compute size rather than self_size
10613         for size of caller function.
10614
10615 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
10616
10617         PR target/59888
10618         * config/darwin.c (darwin_rodata_section): Add relocation flag,
10619         choose const_data section for constants with relocations.
10620         (machopic_select_section): Pass relocation flag to
10621         darwin_rodata_section ().
10622
10623 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
10624
10625         PR tree-optimization/91734
10626         * generic-match-head.c: Include fold-const-call.h.
10627         * match.pd (sqrt(x) cmp c): Check the boundary value and
10628         in case inexact computation of c*c affects comparison of the boundary,
10629         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10630         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
10631         for -frounding-math.  For c2, try the next smaller or larger floating
10632         point constant depending on comparison code and if it has the same
10633         sqrt as c2, use it instead of c2.
10634
10635 2019-10-04  Martin Sebor  <msebor@redhat.com>
10636
10637         PR middle-end/91977
10638         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10639         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
10640         uninitialized objects.
10641
10642 2019-10-04  Martin Sebor  <msebor@redhat.com>
10643
10644         * builtins.c (compute_objsize): Add an argument.
10645         * tree-object-size.c (addr_object_size): Same.
10646         (compute_builtin_object_size): Same.
10647         * tree-object-size.h (compute_builtin_object): Same.
10648
10649 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
10650
10651         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10652
10653 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
10654
10655         * match.pd (sinh (x) / cosh (x)): New simplification rule.
10656
10657 2019-10-04  Martin Jambor  <mjambor@suse.cz>
10658
10659         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10660         fntype when switching to calling memcpy instead of memset.
10661
10662 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10663
10664         * hash-table.h (hash_table::empty_slow): Don't assign
10665         size_t values to int variables.
10666
10667 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10668
10669         * expr.c (convert_mode_scalar): Remove shadowing local var.
10670         (emit_block_move): Rename local vars.
10671         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10672         (emit_push_insn): Rename local vars.
10673         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
10674         shadowing local vars.
10675         (store_constructor): Remove shadowing local vars.  Rename local var.
10676         (store_field, expand_cond_expr_using_cmove,
10677         expand_expr_real_2): Remove shadowing local vars.
10678         (expand_expr_real_1,
10679         do_store_flag): Remove shadowing local vars.  Rename local vars.
10680
10681 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10682
10683         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10684
10685 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10686
10687         * genmatch.c (commutate): Rename local var.
10688         (lower_cond): Reuse local var.
10689         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10690         dt_operand::gen, dt_operand::gen_gimple_expr,
10691         dt_simplify::gen): Add a param.  Rename generated vars.
10692         (decision_tree::insert_operand,
10693         (capture_info::walk_match, capture_info::walk_result,
10694         capture_info::walk_c_expr): Rename local vars.
10695         (expr::gen_transform): Rename generated vars.
10696         Use snprintf.  Rename local vars.
10697         (capture::gen_transform, dt_operand::get_name,
10698         dt_operand::gen_opname): Rename generated vars.
10699         (write_predicate): Adjust call to gen_kids.
10700         (parser::get_internal_capture_id): Rename generated vars.
10701         (parser::parse_expr): Rename local vars.
10702         (parser::parse_if): Remove local var.
10703         (parser::parse_pattern, add_operator): Rename local vars.
10704
10705 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
10706
10707         * builtins.def (DEF_C2X_BUILTIN): New macro.
10708         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10709         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10710         (strndup): Use DEF_C2X_BUILTIN.
10711         * coretypes.h (enum function_class): Add function_c2x_misc.
10712
10713 2019-10-04  Maya Rashish  <coypu@sdf.org>
10714
10715         * ira-color.c (update_costs_from_allocno): Call
10716         ira_init_register_move_cost_if_necessary.
10717
10718 2019-10-04  Jeff Law  <law@redhat.com>
10719
10720         * config/h8300/h8300.md (cpymemsi): Disable.
10721         (movmd, movmd_internal_<mode>, movstr, movsd):
10722         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10723         (movmd splitter, movsd splitter): Likewise.
10724
10725         * range-op.cc (range_tests): Avoid two tests when ints and
10726         shorts are the same size.
10727
10728 2019-10-04  Richard Biener  <rguenther@suse.de>
10729
10730         PR lto/91968
10731         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10732         BLOCK_VARS.
10733
10734 2019-10-04  Richard Biener  <rguenther@suse.de>
10735
10736         PR tree-optimization/91982
10737         * tree-vect-loop.c (vectorizable_live_operation): Also guard
10738         against EXTRACT_LAST_REDUCTION.
10739         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10740
10741 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
10742
10743         * range-op.o (value_range_from_overflowed_bounds): Rename from
10744         adjust_overflow_bound.
10745         (value_range_with_overflow): Rename from
10746         create_range_with_overflow.
10747         (create_possibly_reversed_range): Adjusted for above renames.
10748         (operator_*::wi_fold): Same.
10749         (cross_product_operator::wi_cross_productor): Same.
10750
10751 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10752
10753         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10754         -Wshadow=compatible-local): Fix description.
10755         Add an example where -Wshadow=compatible-local does not
10756         warn.
10757
10758 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
10759
10760         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10761
10762         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10763         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10764
10765 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
10766
10767         * expr.c (emit_block_move_hints): Slightly cleaner fix to
10768         can_move_by_pieces issue.
10769
10770 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
10771
10772         PR target/87243
10773         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10774         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10775         is available and the user has not set one on the command line.
10776
10777 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
10778
10779         PR target/91769
10780         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10781         instead of REGNO equality check on addr.reg.
10782
10783 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
10784
10785         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10786         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10787         * doc/invoke.texi (inline-heuristics-hint-percent,
10788         inline-heuristics-hint-percent-O2): Document.
10789         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10790         hint attribute.
10791         (can_inline_edge_by_limits_p): Use it.
10792
10793 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
10794
10795         * config/arm/arm.c (arm_print_value): Use real_to_decimal
10796         to print CONST_DOUBLEs.
10797
10798 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
10799
10800         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10801         * ipa-prop.c (ipcp_free_transformation_sum): New function.
10802         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10803
10804 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
10805
10806         * Makefile.in (OBJS): Add range.o and range-op.o.
10807         Remove wide-int-range.o.
10808         * function-tests.c (test_ranges): New.
10809         (function_tests_c_tests): Call test_ranges.
10810         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10811         range_fold_unary_expr instead of extract_range_from_unary_expr.
10812         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10813         * range-op.cc: New file.
10814         * range-op.h: New file.
10815         * range.cc: New file.
10816         * range.h: New file.
10817         * selftest.h (range_tests): New prototype.
10818         * ssa.h: Include range.h.
10819         * tree-vrp.c (value_range_base::value_range_base): New
10820         constructors.
10821         (value_range_base::singleton_p): Do not call
10822         ranges_from_anti_range until sure we will need to.
10823         (value_range_base::type): Rename gcc_assert to
10824         gcc_checking_assert.
10825         (vrp_val_is_max): New argument.
10826         (vrp_val_is_min): Same.
10827         (wide_int_range_set_zero_nonzero_bits): Move from
10828         wide-int-range.cc.
10829         (extract_range_into_wide_ints): Remove.
10830         (extract_range_from_multiplicative_op): Remove.
10831         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10832         from extract_range_from_binary_expr.
10833         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10834         from extract_range_from_binary_expr.
10835         (extract_range_from_binary_expr): Remove.
10836         (normalize_for_range_ops): New.
10837         (range_fold_binary_expr): New.
10838         (range_fold_unary_expr): New.
10839         (value_range_base::num_pairs): New.
10840         (value_range_base::lower_bound): New.
10841         (value_range_base::upper_bound): New.
10842         (value_range_base::upper_bound): New.
10843         (value_range_base::contains_p): New.
10844         (value_range_base::invert): New.
10845         (value_range_base::union_): New.
10846         (value_range_base::intersect): New.
10847         (range_compatible_p): New.
10848         (value_range_base::operator==): New.
10849         (determine_value_range_1): Call range_fold_*expr instead of
10850         extract_range_from_*expr.
10851         * tree-vrp.h (class value_range_base): Add new constructors.
10852         Add methods for union_, intersect, operator==, contains_p,
10853         num_pairs, lower_bound, upper_bound, invert.
10854         (vrp_val_is_min): Add handle_pointers argument.
10855         (vrp_val_is_max): Same.
10856         (extract_range_from_unary_expr): Remove.
10857         (extract_range_from_binary_expr): Remove.
10858         (range_fold_unary_expr): New.
10859         (range_fold_binary_expr): New.
10860         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10861         range_fold_binary_expr instead of extract_range_from_binary_expr.
10862         (vr_values::extract_range_basic): Same.
10863         (vr_values::extract_range_from_unary_expr): Call
10864         range_fold_unary_expr instead of extract_range_from_unary_expr.
10865         * wide-int-range.cc: Remove.
10866         * wide-int-range.h: Remove.
10867
10868 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
10869
10870         * config/rs6000/rs6000.c (mem_operand_gpr): Use
10871         SIGNED_16BIT_OFFSET_EXTRA_P macro.
10872         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10873         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10874         macro.
10875
10876 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
10877
10878         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10879         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10880         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10881         * glimits.h: Likewise.
10882
10883 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
10884
10885         PR rtl-optimization/91976
10886         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10887         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
10888         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
10889
10890 2019-10-02  Martin Sebor  <msebor@redhat.com>
10891
10892         PR tree-optimization/80936
10893         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10894
10895 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10896
10897         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10898         instead of reg_class_contents[ALL_REGS].
10899
10900 2019-09-30  Jason Merrill  <jason@redhat.com>
10901
10902         Add some hash_map_safe_* functions like vec_safe_*.
10903         * hash-map.h (default_hash_map_size): New variable.
10904         (create_ggc): Use it as default argument.
10905         (hash_map_maybe_create, hash_map_safe_get)
10906         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10907
10908 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
10909
10910         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10911         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10912         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10913         (can_inline_edge_by_limits_p): Use it.
10914         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10915         (want_inline_small_function_p): Use O2 bounds.
10916         (edge_badness): LIkewise.
10917         * opts.c (default_options): Add OPT_finline_functions.
10918         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10919         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10920         New parameters.
10921         * doc/invoke.texi (-finline-functions): Update documentation.
10922         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10923         inline-min-speedup-O2): Document.
10924         (early-inlining-insns-O2): Simplify docs.
10925
10926 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
10927
10928         PR rtl-optimization/87047
10929         * ifcvt.c (average_cost): New static function.  Use it...
10930         (noce_process_if_block): ... here.
10931
10932 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
10933
10934         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10935         * config/rs6000/rs6000-string.c (expand_block_move): Add
10936         might_overlap parm.
10937         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10938         (cpymemsi): Add might_overlap parm to expand_block_move() call.
10939
10940 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
10941
10942         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10943         (expand_builtin_memcpy): Use might_overlap parm.
10944         (expand_builtin_mempcpy_args): Use might_overlap parm.
10945         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10946         (expand_builtin_memory_copy_args): Add might_overlap parm.
10947         * expr.c (emit_block_move_via_cpymem): Rename to
10948         emit_block_move_via_pattern, add might_overlap parm, use cpymem
10949         or movmem optab as appropriate.
10950         (emit_block_move_hints): Add might_overlap parm, do the right
10951         thing for might_overlap==true.
10952         * expr.h (emit_block_move_hints): Update prototype.
10953
10954 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
10955
10956         * tree-eh.h (unsplit_eh_edges): Declare.
10957         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10958         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10959         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10960         (struct store_immediate_info): Add lp_nr field.
10961         (store_immediate_info::store_immediate_info): Add NR2 parameter and
10962         initialize lp_nr with it.
10963         (struct merged_store_group): Add lp_nr and only_constants fields.
10964         (merged_store_group::merged_store_group): Initialize them.
10965         (merged_store_group::can_be_merged_into): Deal with them.
10966         (pass_store_merging): Rename terminate_and_release_chain into
10967         terminate_and_process_chain.
10968         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10969         renaming and remove useless assertions.
10970         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10971         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10972         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10973         instead of always recomputing it and compare lp_nr.
10974         (imm_store_chain_info::output_merged_store): If the group is in an
10975         active EH region, register new stores if they can throw.  Moreover,
10976         if the insertion has created new basic blocks, adjust the PHI nodes
10977         of the post landing pad.
10978         (imm_store_chain_info::output_merged_stores): If the original stores
10979         are in an active EH region, deregister them.
10980         (lhs_valid_for_store_merging_p): Prettify.
10981         (adjust_bit_pos): New function extracted from...
10982         (mem_valid_for_store_merging): ...here.  Use it for the base address
10983         and also for the offset if it is the addition of a constant.
10984         (lp_nr_for_store): New function.
10985         (pass_store_merging::process_store): Change return type to bool.
10986         Call lp_nr_for_store to initialize the store info.  Propagate the
10987         return status of various called functions to the return value.
10988         (store_valid_for_store_merging_p): New predicate.
10989         (enum basic_block_status): New enumeration.
10990         (get_status_for_store_merging): New function.
10991         (pass_store_merging::execute): If the function can throw and catch
10992         non-call exceptions, unsplit the EH edges on entry and clean up the
10993         CFG on exit if something changed.  Call get_status_for_store_merging
10994         for every basic block and keep the chains open across basic blocks
10995         when possible.  Terminate and process open chains at the end, if any.
10996
10997 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
10998
10999         * reginfo.c (globalize_reg): Fix shadowed variable in
11000         function_abis walk.
11001
11002 2019-10-02  Martin Jambor  <mjambor@suse.cz>
11003
11004         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
11005         do not compute some stuff when set.
11006         (cgraph_node::create_edge): Likewise.
11007         (cgraph_node::create_indirect_edge): Renamed last parameter to
11008         coning_p and flipped its meaning, don't even calculate
11009         inline_failed when set.
11010         * cgraph.h (cgraph_node::create_edge): Add new parameter.
11011         (symbol_table::::create_edge): Likewise.
11012         (cgraph_node::create_indirect_edge): Rename last parameter, flip
11013         the default value.
11014         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
11015         call graph edge creating functions.
11016
11017 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11018
11019         PR c++/91222
11020         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
11021         namespace types.
11022
11023 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
11024
11025         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
11026
11027 2019-10-02  Richard Biener  <rguenther@suse.de>
11028
11029         * tree-vectorizer.h (vect_transform_reduction): Declare.
11030         * tree-vect-stmts.c (vect_transform_stmt): Use it.
11031         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
11032         stmt transform to ...
11033         (vect_transform_reduction): ... this.
11034
11035 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
11036
11037         * omp-low.c (lower_omp_target): Dereference optional argument
11038         to work with the right pointer.
11039
11040 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
11041
11042         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
11043         false.
11044         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
11045         * langhooks.h (omp_is_optional_argument): New hook.
11046         * omp-general.c (omp_is_optional_argument): New.
11047         * omp-general.h (omp_is_optional_argument): New declaration.
11048         * omp-low.c (lower_omp_target): Create temporary for received value
11049         and take the address for new_var if the original variable was a
11050         DECL_BY_REFERENCE.  Use size of referenced object when a
11051         pass-by-reference optional argument used as argument to firstprivate.
11052
11053 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
11054
11055         PR tree-optimization/91940
11056         * tree-vect-patterns.c: Include tree-vector-builder.h and
11057         vec-perm-indices.h.
11058         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
11059         unpromoting the argument back to uint16_t, or by converting into a
11060         rotate, or into shifts plus ior.
11061
11062 2019-10-02  Richard Biener  <rguenther@suse.de>
11063
11064         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
11065         New.
11066         (vect_transform_cycle_phi): Declare.
11067         * tree-vect-stmts.c (vect_transform_stmt): Call
11068         vect_transform_cycle_phi.
11069         * tree-vect-loop.c (vectorizable_reduction): Split out
11070         PHI transformation stage to ...
11071         (vect_transform_cycle_phi): ... here.
11072
11073 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11074
11075         PR middle-end/91957
11076         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
11077         eliminable registers.
11078         (make_hard_regno_live): Likewise, and don't make them live.
11079
11080 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
11081
11082         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
11083         Call pp_emit_prefix.
11084         (layout::print_source_line): Likewise.
11085         (layout::start_annotation_line): Likewise.
11086         (diagnostic_show_locus): Remove call to temporarily clear the
11087         prefix.
11088         (selftest::test_one_liner_fixit_remove): Add test coverage for the
11089         interaction of pp_set_prefix with rulers and fix-it hints.
11090         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
11091         prefix when calling diagnostic_show_locus, rather than destroying
11092         it afterwards.
11093         (print_parseable_fixits): Temporarily clear prefix.
11094         * pretty-print.c (pp_format): Save and restore line_length, rather
11095         than assuming it is zero.
11096         (pp_output_formatted_text): Remove assertion that line_length is
11097         zero.
11098
11099 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11100
11101         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11102         Rename to ...
11103         (nonoverlapping_refs_since_match_p): ... this; handle also
11104         ARRAY_REFs.
11105         (alias_stats): Update stats.
11106         (dump_alias_stats): Likewise.
11107         (cheap_array_ref_low_bound): New function.
11108         (aliasing_matching_component_refs_p): Add partial_overlap
11109         argument;
11110         pass it to nonoverlapping_refs_since_match_p.
11111         (aliasing_component_refs_walk): Update call of
11112         aliasing_matching_component_refs_p
11113         (nonoverlapping_array_refs_p): New function.
11114         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
11115         indirect_refs_may_alias_p): Update calls of
11116         nonoverlapping_refs_since_match_p.
11117
11118 2019-10-01  Maya Rashish  <coypu@sdf.org>
11119
11120         PR target/85401
11121         * ira-color.c (allocno_copy_cost_saving): Call
11122         ira_init_register_move_cost_if_necessary.
11123
11124 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
11125
11126         * Makefile.in (gnat_install_lib): New variable.
11127         * configure.ac: Substitute it.
11128         * configure: Regenerate.
11129
11130 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11131
11132         PR lto/91222
11133         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
11134         is matched with non-C++ type
11135
11136 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11137
11138         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
11139         after local CSE.
11140
11141 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11142
11143         * doc/invoke.texi (early-inlining-insns-O2): Document.
11144         (early-inlining-insns): Update.
11145         * params.def (early-inlining-insns-O2): New bound.
11146         (early-inlining-insns): Update docs.
11147         * ipa-inline.c (want_early_inline_function_p): Use new bound.
11148
11149 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
11150
11151         PR target/88562
11152         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
11153         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
11154         a memory access insn.
11155
11156 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
11157
11158         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
11159         vpmsumd.
11160
11161 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11162
11163         PR target/77918
11164         * config/s390/s390.c (s390_expand_vec_compare): Use
11165         gen_vec_cmpordered and gen_vec_cmpunordered.
11166         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
11167         vec_unordered): Delete.
11168         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
11169         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
11170         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
11171         (vec_cmp<code>): Generic dispatcher.
11172
11173 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11174
11175         PR target/77918
11176         * config/s390/vector.md (V_HW): Add V1TI in order to make
11177         vcond$a$b generate vcondv1tiv1tf.
11178
11179 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11180
11181         PR rtl-optimization/91948
11182         * ira-build.c (ira_create_allocno): Initialize
11183         ALLOCNO_CROSSED_CALLS_ABIS.
11184         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
11185         than regno to ira_need_caller_save_p.
11186
11187 2019-10-01  Alexandre Oliva <oliva@adacore.com>
11188
11189         * config/i386/i386-options.c
11190         (ix86_recompute_optlev_based_flags): New, moved out of...
11191         (ix86_option_override_internal): ... this.  Call it.
11192         (ix86_override_options_after_change): Call it here too.
11193
11194         PR debug/91507
11195         * dwarf2out.c (override_type_for_decl_p): New.
11196         (gen_variable_die): Use it.
11197
11198 2019-10-01  Richard Biener  <rguenther@suse.de>
11199
11200         * tree-vect-loop.c (vectorizable_reduction): Move variables
11201         to where they are used.
11202
11203 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11204
11205         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11206         (build_def_use): Use PC instead of CC0 in a comment.
11207
11208 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11209
11210         * rtl.def (CLOBBER_HIGH): Delete.
11211         * doc/rtl.texi (clobber_high): Remove documentation.
11212         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11213         (reg_is_clobbered_by_clobber_high): Delete.
11214         (gen_hard_reg_clobber_high): Likewise.
11215         * alias.c (record_set): Remove CLOBBER_HIGH handling.
11216         * cfgexpand.c (expand_gimple_stmt): Likewise.
11217         * combine-stack-adj.c (single_set_for_csa): Likewise.
11218         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11219         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11220         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11221         * cse.c (invalidate_reg): Remove clobber_high parameter.
11222         (invalidate): Update call accordingly.
11223         (canonicalize_insn): Remove CLOBBER_HIGH handling.
11224         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11225         (count_reg_usage, insn_live_p): Likewise.
11226         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11227         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11228         (cselib_invalidate_rtx_note_stores): Update call accordingly.
11229         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11230         (cselib_invalidate_regno, cselib_process_insn): Likewise.
11231         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11232         (mark_nonreg_stores_2): Likewise.
11233         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11234         (df_get_call_refs): Likewise.
11235         * dwarf2out.c (mem_loc_descriptor): Likewise.
11236         * emit-rtl.c (verify_rtx_sharing): Likewise.
11237         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11238         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11239         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11240         * genemit.c (gen_exp, gen_insn): Likewise.
11241         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11242         * haifa-sched.c (haifa_classify_rtx): Likewise.
11243         * ira-build.c (create_insn_allocnos): Likewise.
11244         * ira-costs.c (scan_one_insn): Likewise.
11245         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11246         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11247         * jump.c (mark_jump_label_1): Likewise.
11248         * lra-int.h (lra_insn_reg::clobber_high): Delete.
11249         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11250         handling.
11251         (mark_not_eliminable): Likewise.
11252         * lra-lives.c (process_bb_lives): Likewise.
11253         * lra.c (new_insn_reg): Remove clobber_high parameter.
11254         (collect_non_operand_hard_regs): Likewise.  Update call to new
11255         insn_reg.  Remove CLOBBER_HIGH handling.
11256         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
11257         to collect_non_operand_hard_regs.
11258         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11259         Update call to new_insn_reg.
11260         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11261         * postreload.c (reload_cse_simplify, reload_combine_note_use)
11262         (move2add_note_store): Likewise.
11263         * print-rtl.c (print_pattern): Likewise.
11264         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11265         (if_test_bypass_p): Likewise.
11266         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11267         * reginfo.c (reg_scan_mark_refs): Likewise.
11268         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11269         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11270         (forget_old_reloads_1): Likewise.
11271         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11272         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11273         (dbr_schedule): Likewise.
11274         * resource.c (update_live_status, mark_referenced_resources)
11275         (mark_set_resources): Likewise.
11276         * rtl.c (copy_rtx): Likewise.
11277         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11278         (note_pattern_stores): Likewise.
11279         (reg_is_clobbered_by_clobber_high): Delete.
11280         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11281         CLOBBER_HIGH handling.
11282
11283 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11284
11285         PR target/91452
11286         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11287         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11288         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11289         Handle ARM_PCS_TLSDESC.
11290         (aarch64_tlsdesc_abi_id): New function.
11291         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11292         rtx instead of a list of clobbers and clobber_highs.
11293         (tlsdesc_small_<mode>): Update accordingly.
11294
11295 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11296
11297         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11298         extra callee_abi argument.
11299         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11300         Insert a CALLEE_ABI unspec into the call pattern as the second
11301         element in the PARALLEL.
11302         (aarch64_simd_call_p): Delete.
11303         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11304         the new CALLEE_ABI element of the PARALLEL.
11305         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11306         from the function type, if given.
11307         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11308         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
11309         when passed the function_arg_info end marker.
11310         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11311         final argument of gen_sibcall.
11312         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11313         (call): Make operand 2 a const_int_operand and pass it to expand_call.
11314         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11315         pattern.
11316         (call_value): Likewise operand 3.
11317         (sibcall): Likewise operand 2.  Place the unspec before rather than
11318         after the return.
11319         (sibcall_value): Likewise operand 3.
11320         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11321         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11322         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
11323         constraint strings.
11324         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11325
11326 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11327
11328         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11329         choose_hard_reg_mode.
11330         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11331
11332 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11333
11334         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11335         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11336         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11337
11338 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
11339
11340         * diagnostic-show-locus.c (line_label::line_label): Initialize
11341         m_has_vbar.
11342         (line_label::comparator): Reverse the sort order by m_state_idx,
11343         so that when the list is walked backwards the labels appear in
11344         order of insertion into the rich_location.
11345         (line_label::m_has_vbar): New field.
11346         (layout::print_any_labels): When dealing with multiple labels at
11347         the same line and column, only print vertical bars for the one
11348         with the highest label_line.
11349         (selftest::test_one_liner_labels): Update test for multiple labels
11350         to expect the labels to be in the order of insertion into the
11351         rich_location.  Add a test for many such labels, where the column
11352         numbers are out-of-order relative to the insertion order.
11353
11354 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11355
11356         * config/i386/i386.h (ix86_frame::expensive_p): New field.
11357         (ix86_frame::expensive_count): Likewise.
11358         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11359         of use_fast_prologue_epilogue robust against incidental changes
11360         in function size.
11361
11362 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
11363
11364         PR target/77918
11365         * config/s390/vector.md (vec_unordered<mode>): Call
11366         gen_vec_ordered<mode>.
11367
11368 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
11369
11370         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11371         New pattern for ASRD.
11372         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11373         * internal-fn.def (IFN_DIV_POW2): New internal function.
11374         * optabs.def (sdiv_pow2_optab): New optab.
11375         * tree-vect-patterns.c (vect_recog_divmod_pattern):
11376         Modify pattern to support new operation.
11377         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11378         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11379         Document new target selector.
11380
11381 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11382
11383         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11384         to test whether we're compiling a vector PCS function and to test
11385         whether the function needs to save a particular register.
11386         Remove the vector PCS handling of df_set_regs_ever_live.
11387         (aarch64_components_for_bb): Use crtl->abi to test whether
11388         the function needs to save a particular register.
11389         (aarch64_process_components): Use crtl->abi to test whether
11390         we're compiling a vector PCS function.
11391         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11392         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11393
11394 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11395
11396         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11397         Delete.
11398         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11399         whether the block calls a function that clobbers more registers
11400         than the current function is allowed to.
11401         (aarch64_use_simple_return_insn_p): Delete.
11402         * config/aarch64/aarch64.md (simple_return): Remove condition.
11403
11404 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11405
11406         * function-abi.h (function_abi_aggregator): New class.
11407         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11408         function.
11409         * ira.c (update_equiv_regs_prescan): New function.  Call
11410         set_paradoxical_subreg here rather than...
11411         (update_equiv_regs): ...here.
11412         (ira): Call update_equiv_regs_prescan.
11413
11414 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11415
11416         * hard-reg-set.h (regs_invalidated_by_call): Only define if
11417         IN_TARGET_CODE.
11418         (call_used_or_fixed_regs): Likewise.
11419         (call_used_or_fixed_reg_p): Likewise.
11420         * reginfo.c (regs_invalidated_by_call): New macro.
11421
11422 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11423
11424         * shrink-wrap.c: Include function-abi.h.
11425         (requires_stack_frame_p): Use crtl->abi to test whether the
11426         current function can use a register without saving it first.
11427
11428 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11429
11430         * sel-sched-ir.h (_def::crosses_call): Replace with...
11431         (_def::crossed_call_abis): ..this new field.
11432         (def_list_add): Take a mask of ABIs instead of a crosses_call
11433         boolean.
11434         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
11435         of _def accordingly.
11436         * sel-sched.c: Include function-abi.h.
11437         (hard_regs_data::regs_for_call_clobbered): Delete.
11438         (reg_rename::crosses_call): Replace with...
11439         (reg_rename::crossed_call_abis): ...this new field.
11440         (fur_static_params::crosses_call): Replace with...
11441         (fur_static_params::crossed_call_abis): ...this new field.
11442         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11443         (init_hard_regs_data): Use crtl->abi to test which registers the
11444         current function would need to save before it uses them.
11445         (mark_unavailable_hard_regs): Update handling of call-clobbered
11446         registers, using call_clobbers_in_region to find out which registers
11447         might be call-clobbered (but without taking -fipa-ra into account
11448         for now).  Remove separate handling of partially call-clobbered
11449         registers.
11450         (verify_target_availability): Use crossed_call_abis instead of
11451         crosses_call.
11452         (get_spec_check_type_for_insn, find_used_regs): Likewise.
11453         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11454
11455 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11456
11457         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11458         function to test whether a register is fully or partly clobbered.
11459
11460 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11461
11462         * rtlanal.c: Include function-abi.h.
11463         (reg_set_p): Use insn_callee_abi to get the ABI of the called
11464         function and clobbers_reg_p to test whether the register
11465         is call-clobbered.
11466         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11467         to get the ABI of the called function and full_reg_clobbers to
11468         get the set of fully call-clobbered registers.  Warn about the
11469         pitfalls of using this mode.
11470
11471 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11472
11473         * reload.c: Include function-abi.h.
11474         (find_equiv_reg): Use clobbers_reg_p to test whether either
11475         of the equivalent registers is clobbered by a call.
11476         * reload1.c: Include function-abi.h.
11477         (reg_reloaded_call_part_clobbered): Delete.
11478         (reload): Use crtl->abi to test which registers would need
11479         saving in the prologue before use.
11480         (find_reg): Likewise.
11481         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11482         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
11483         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11484
11485 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11486
11487         * regrename.h (du_head::call_clobber_mask): New field.
11488         (du_head::need_caller_save_reg): Replace with...
11489         (du_head::call_abis): ...this new field.
11490         * regrename.c: Include function-abi.h.
11491         (call_clobbered_in_chain_p): New function.
11492         (check_new_reg_p): Use crtl->abi when deciding whether a register
11493         is free for use after RA.  Use call_clobbered_in_chain_p to test
11494         whether a candidate register would be clobbered by a call.
11495         (find_rename_reg): Don't add call-clobber conflicts here.
11496         (rename_chains): Check call_abis instead of need_caller_save_reg.
11497         (merge_chains): Update for changes to du_head.
11498         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11499         target.  Record the ABI identifier in call_abis and the set of
11500         fully or partially clobbered registers in call_clobber_mask.
11501         Add fully-clobbered registers to hard_conflicts here rather
11502         than in find_rename_reg.
11503         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11504         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11505         * config/aarch64/falkor-tag-collision-avoidance.c: Include
11506         function-abi.h.
11507         * config/c6x/c6x.c: Likewise.
11508
11509 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11510
11511         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11512         mode of the register when deciding whether it is no longer
11513         available after a call.
11514
11515 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11516
11517         * recog.c: Include function-abi.h.
11518         (peep2_find_free_register): Use crtl->abi when deciding whether
11519         a register is free for use after RA.
11520
11521 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11522
11523         * postreload-gcse.c: Include regs.h and function-abi.h.
11524         (record_opr_changes): Use insn_callee_abi to get the ABI of the
11525         call insn target.  Conservatively assume that partially-clobbered
11526         registers are altered.
11527
11528 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11529
11530         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11531         when deciding whether a register is free for use after RA.
11532         (reload_combine): Remove unnecessary use of fixed_reg_set.
11533         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11534         call insn target.  Use reg_mode when testing whether a register
11535         is no longer available.
11536
11537 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11538
11539         * target.def (return_call_with_max_clobbers): Delete.
11540         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11541         * doc/tm.texi: Regenerate.
11542         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11543         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11544         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11545         (lra_reg::call_insn): Delete.
11546         * lra.c: Include function-abi.h.
11547         (initialize_lra_reg_info_element): Don't initialize the fields above.
11548         (lra): Use crtl->abi to test whether the current function needs to
11549         save a register in the prologue.  Remove special pre-inheritance
11550         lra_create_live_ranges pass for flag_ipa_ra.
11551         * lra-assigns.c: Include function-abi.h
11552         (find_hard_regno_for_1): Use crtl->abi to test whether the current
11553         function needs to save a register in the prologue.
11554         (lra_assign): Assert that registers aren't allocated to a
11555         conflicting register, rather than checking only for overlaps
11556         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
11557         and for registers that are not live across a call.
11558         * lra-constraints.c (last_call_for_abi): New variable.
11559         (full_and_partial_call_clobbers): Likewise.
11560         (setup_next_usage_insn): Remove the register from
11561         full_and_partial_call_clobbers.
11562         (need_for_call_save_p): Use call_clobbered_in_region_p to test
11563         whether the register needs a caller save.
11564         (need_for_split_p): Use full_and_partial_reg_clobbers instead
11565         of call_used_or_fixed_regs.
11566         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11567         full_and_partial_call_clobbers.
11568         * lra-lives.c (check_pseudos_live_through_calls): Replace
11569         last_call_used_reg_set and call_insn arguments with an abi argument.
11570         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
11571         as the set of conflicting registers.
11572         (calls_have_same_clobbers_p): Delete.
11573         (process_bb_lives): Track the ABI of the last call instead of an
11574         insn/HARD_REG_SET pair.  Update calls to
11575         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
11576         the set of registers that could be clobbered by an EH edge.
11577         Include partially-clobbered as well as fully-clobbered registers.
11578         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11579         * lra-remat.c: Include function-abi.h.
11580         (call_used_regs_arr_len, call_used_regs_arr): Delete.
11581         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11582         registers and bitmap_view to combine them into dead_regs.
11583         (call_used_input_regno_present_p): Take a function_abi argument
11584         and use it to test whether a register is call-clobbered.
11585         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11586         call insn target.  Update tje call to call_used_input_regno_present_p.
11587         (do_remat): Likewise.
11588         (lra_remat): Remove the initialization of call_used_regs_arr_len
11589         and call_used_regs_arr.
11590
11591 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11592
11593         * loop-iv.c: Include regs.h and function-abi.h.
11594         (simplify_using_initial_values): Use insn_callee_abi to get the
11595         ABI of the call insn target.  Conservatively assume that
11596         partially-clobbered registers are altered.
11597
11598 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11599
11600         * function-abi.h (call_clobbers_in_region): Declare.
11601         (call_clobbered_in_region_p): New function.
11602         * function-abi.cc (call_clobbers_in_region): Likewise.
11603         * ira-int.h: Include function-abi.h.
11604         (ira_allocno::crossed_calls_abis): New field.
11605         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11606         (ira_need_caller_save_regs): New function.
11607         (ira_need_caller_save_p): Likewise.
11608         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11609         of call_used_or_fixed_regs.
11610         (do_reload): Use crtl->abi to test whether the current function
11611         needs to save a register in the prologue.  Count registers that
11612         need to be saved rather than registers that don't.
11613         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11614         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11615         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11616         (propagate_some_info_from_allocno): Likewise.
11617         (copy_info_to_removed_store_destinations): Likewise.
11618         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11619         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11620         (ira_build): Use ira_need_caller_save_regs instead of
11621         call_used_or_fixed_regs.
11622         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11623         whether the current function would need to save a register
11624         before using it.
11625         (calculate_spill_cost): Likewise.
11626         (allocno_reload_assign): Use ira_need_caller_save_regs and
11627         ira_need_caller_save_p instead of call_used_or_fixed_regs.
11628         * ira-conflicts.c (ira_build_conflicts): Use
11629         ira_need_caller_save_regs rather than call_used_or_fixed_regs
11630         as the set of call-clobbered registers.  Remove the
11631         call_used_or_fixed_regs mask from the calculation of
11632         temp_hard_reg_set and mask its use instead.  Remove special
11633         handling of partially-clobbered registers.
11634         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11635         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11636         calculate the set of conflicting registers for calls that
11637         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11638         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11639         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11640         Use eh_edge_abi to calculate the set of registers that could
11641         be clobbered by an EH edge.  Include partially-clobbered as
11642         well as fully-clobbered registers.
11643
11644 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11645
11646         * haifa-sched.c: Include function-abi.h.
11647         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11648         the function would need to save a register before using it.
11649
11650 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11651
11652         * gcse.c: Include function-abi.h.
11653         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11654         the call insn target.  Invalidate partially call-clobbered
11655         registers as well as fully call-clobbered ones.
11656
11657 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11658
11659         * function.c (aggregate_value_p): Work out which ABI the
11660         function is using before testing which registers are at least
11661         partly preserved by a call.
11662
11663 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11664
11665         * early-remat.c: Include regs.h and function-abi.h.
11666         (early_remat::maybe_add_candidate): Don't check for call-clobbered
11667         registers here.
11668         (early_remat::restrict_remat_for_unavail_regs): New function.
11669         (early_remat::restrict_remat_for_call): Likewise.
11670         (early_remat::process_block): Before calling emit_remat_insns
11671         for a previous call in the block, invalidate any candidates
11672         that would clobber call-preserved registers.
11673         (early_remat::emit_remat_insns_for_block): Likewise for the
11674         final call in a block.  Do the same thing for live-in registers
11675         when calling emit_remat_insns at the head of a block.
11676
11677 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11678
11679         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11680         whether the current function needs to save at least part of a
11681         register before using it.
11682         (df_get_exit_block_use_set): Likewise for epilogue restores.
11683
11684 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11685
11686         * df-problems.c: Include regs.h and function-abi.h.
11687         (df_rd_problem_data): Rename sparse_invalidated_by_call to
11688         sparse_invalidated_by_eh and dense_invalidated_by_call to
11689         dense_invalidated_by_eh.
11690         (df_print_bb_index): Update accordingly.
11691         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11692         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11693         that are clobbered by an EH edge.  Clobber partially-clobbered
11694         registers as well as fully-clobbered ones.
11695         (df_md_confluence_n): Likewise.
11696         (df_rd_local_compute): Likewise.  Update for changes to
11697         df_rd_problem_data.
11698         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11699         of registers that are clobbered by an EH edge.  Includde partially-
11700         clobbered registers as well as fully-clobbered ones.
11701
11702 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11703
11704         * cselib.c (cselib_process_insn): If we know what mode a
11705         register was set in, check whether it is clobbered in that
11706         mode by a call.  Only fall back to reg_raw_mode if that fails.
11707
11708 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11709
11710         * cse.c: Include regs.h and function-abi.h.
11711         (invalidate_for_call): Take the call insn as an argument.
11712         Use insn_callee_abi to get the ABI of the call and invalidate
11713         partially clobbered registers as well as fully clobbered ones.
11714         (cse_insn): Update call accordingly.
11715
11716 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11717
11718         * combine.c: Include function-abi.h.
11719         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11720         of the target of call insns.  Invalidate partially-clobbered
11721         registers as well as fully-clobbered ones.
11722
11723 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11724
11725         * cfgloopanal.c: Include regs.h and function-abi.h.
11726         (init_set_costs): Use default_function_abi to test whether
11727         a general register is call-clobbered.
11728
11729 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11730
11731         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11732         instead of the call-clobbered sets.
11733
11734 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11735
11736         * caller-save.c (setup_save_areas): Remove redundant |s of
11737         fixed_reg_set.
11738         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
11739         than call_used_or_fixed_regs to decide whether a REG_RETURNED
11740         value is useful.
11741
11742 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11743
11744         * rtl.h (predefined_function_abi): Declare.
11745         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11746         instead of a boolean call_save flag.
11747         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11748         accordingly.
11749         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11750         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11751         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11752         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11753         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11754         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11755         * reginfo.c (init_reg_modes_target): Likewise.
11756         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11757         instead of a boolean call_save flag.
11758         * targhooks.c: Include function-abi.h.
11759         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11760         using eh_edge_abi to choose the mode.
11761
11762 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11763
11764         * target.def (hard_regno_call_part_clobbered): Take an ABI
11765         identifier instead of an rtx_insn.
11766         * doc/tm.texi: Regenerate.
11767         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11768         (hook_bool_uint_uint_mode_false): New function.
11769         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11770         (hook_bool_uint_uint_mode_false): New function.
11771         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11772         Take an ABI identifier instead of an rtx_insn.
11773         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11774         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11775         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11776         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11777         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11778         Likewise.
11779         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11780         * cselib.c: Include function-abi.h.
11781         (cselib_process_insn): Update call to
11782         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11783         to get the appropriate ABI identifier.
11784         * function-abi.cc (predefined_function_abi::initialize): Update call
11785         to targetm.hard_regno_call_part_clobbered.
11786         * ira-conflicts.c (ira_build_conflicts): Likewise.
11787         * ira-costs.c (ira_tune_allocno_costs): Likewise.
11788         * lra-constraints.c: Include function-abi.h.
11789         (need_for_call_save_p): Update call to
11790         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11791         to get the appropriate ABI identifier.
11792         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11793         * regcprop.c (copyprop_hardreg_forward_1): Update call
11794         to targetm.hard_regno_call_part_clobbered.
11795         * reginfo.c (choose_hard_reg_mode): Likewise.
11796         * regrename.c (check_new_reg_p): Likewise.
11797         * reload.c (find_equiv_reg): Likewise.
11798         * reload1.c (emit_reload_insns): Likewise.
11799         * sched-deps.c: Include function-abi.h.
11800         (deps_analyze_insn): Update call to
11801         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11802         to get the appropriate ABI identifier.
11803         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11804         call to targetm.hard_regno_call_part_clobbered.
11805         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11806
11807 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11808
11809         * config/i386/i386.c: Include function-abi.h.
11810         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11811         if they preserve some 256-bit or 512-bit SSE registers.
11812
11813 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11814
11815         * target.def (insn_callee_abi): New hook.
11816         (remove_extra_call_preserved_regs): Delete.
11817         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11818         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11819         * doc/tm.texi: Regenerate.
11820         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11821         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11822         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11823         insn argument.
11824         (aarch64_remove_extra_call_preserved_regs): Delete.
11825         (aarch64_insn_callee_abi): New function.
11826         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11827         (TARGET_INSN_CALLEE_ABI): New macro.
11828         * rtl.h (get_call_fndecl): Declare.
11829         (cgraph_rtl_info): Fix formatting.  Tweak comment for
11830         function_used_regs.  Remove function_used_regs_valid.
11831         * rtlanal.c (get_call_fndecl): Moved from final.c
11832         * function-abi.h (insn_callee_abi): Declare.
11833         (target_function_abi_info): Mention insn_callee_abi.
11834         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11835         way to get_call_reg_set_usage did.
11836         (insn_callee_abi): New function.
11837         * regs.h (get_call_reg_set_usage): Delete.
11838         * final.c: Include function-abi.h.
11839         (collect_fn_hard_reg_usage): Add fixed and stack registers to
11840         function_used_regs before the main loop rather than afterwards.
11841         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
11842         if function_used_regs ends up not being useful.
11843         (get_call_fndecl): Move to rtlanal.c
11844         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11845         * caller-save.c: Include function-abi.h.
11846         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11847         instead of get_call_reg_set_usage.
11848         * cfgcleanup.c: Include function-abi.h.
11849         (old_insns_match_p): Use insn_callee_abi instead of
11850         get_call_reg_set_usage.
11851         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11852         a tree.
11853         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
11854         function_used_regs.
11855         * df-scan.c: Include function-abi.h.
11856         (df_get_call_refs): Use insn_callee_abi instead of
11857         get_call_reg_set_usage.
11858         * ira-lives.c: Include function-abi.h.
11859         (process_bb_node_lives): Use insn_callee_abi instead of
11860         get_call_reg_set_usage.
11861         * lra-lives.c: Include function-abi.h.
11862         (process_bb_lives): Use insn_callee_abi instead of
11863         get_call_reg_set_usage.
11864         * postreload.c: Include function-abi.h.
11865         (reload_combine): Use insn_callee_abi instead of
11866         get_call_reg_set_usage.
11867         * regcprop.c: Include function-abi.h.
11868         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11869         get_call_reg_set_usage.
11870         * resource.c: Include function-abi.h.
11871         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11872         instead of get_call_reg_set_usage.
11873         * var-tracking.c: Include function-abi.h.
11874         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11875         get_call_reg_set_usage.
11876
11877 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11878
11879         * target.def (fntype_abi): New target hook.
11880         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11881         * doc/tm.texi: Regenerate.
11882         * target.h (predefined_function_abi): Declare.
11883         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11884         if defined.
11885         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11886         * config/aarch64/aarch64.c: Include function-abi.h.
11887         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11888         (TARGET_FNTYPE_ABI): Define.
11889
11890 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11891
11892         * Makefile.in (OBJS): Add function-abi.o.
11893         (GTFILES): Add function-abi.h.
11894         * function-abi.cc: New file.
11895         * function-abi.h: Likewise.
11896         * emit-rtl.h (rtl_data::abi): New field.
11897         * function.c: Include function-abi.h.
11898         (prepare_function_start): Initialize crtl->abi.
11899         * read-rtl-function.c: Include regs.h and function-abi.h.
11900         (read_rtl_function_body): Initialize crtl->abi.
11901         (read_rtl_function_body_from_file_range): Likewise.
11902         * reginfo.c: Include function-abi.h.
11903         (init_reg_sets_1): Initialize default_function_abi.
11904         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11905         when making a register global.
11906         * target-globals.h (this_target_function_abi_info): Declare.
11907         (target_globals::function_abi_info): New field.
11908         (restore_target_globals): Copy it.
11909         * target-globals.c: Include function-abi.h.
11910         (default_target_globals): Initialize the function_abi_info field.
11911         (target_globals): Allocate it.
11912         (save_target_globals): Free it.
11913
11914 2019-09-30  Nick Clifton  <nickc@redhat.com>
11915
11916         PR target/85978
11917         * config/frv/frv.c (frv_register_move_cost): Add break statements
11918         to avoid falling through to the wrong cases.  Tidy code.
11919
11920 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11921
11922         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11923         For multi-registers modes, test how big each register part is.
11924
11925 2019-09-30  Nick Clifton  <nickc@redhat.com>
11926
11927         PR target/59205
11928         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11929         (TARGET_ASM_SELECT_SECTION): Remove definition.
11930         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11931
11932 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
11933
11934         * emit-rtl.c (init_raw_REG): New function.
11935         (gen_raw_REG): Use init_raw_REG.
11936         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11937         macros.
11938         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11939         * rtl.h (rtx_init): New function.
11940         (rtx_alloca): New function.
11941         (init_raw_REG): New function.
11942         (alloca_raw_REG): New macro.
11943
11944 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
11945
11946         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11947         (pcrel_local_address): Replace pcrel_address predicate, use the
11948         new function address_to_insn_form.
11949         (pcrel_external_address): Replace with new implementation using
11950         address_to_insn_form..
11951         (prefixed_mem_operand): Delete predicate which is now unused.
11952         (pcrel_external_mem_operand): Delete predicate which is now
11953         unused.
11954         * config/rs6000/rs6000-protos.h (enum insn_form): New
11955         enumeration.
11956         (enum non_prefixed_form): New enumeration.
11957         (address_to_insn_form): New declaration.
11958         (prefixed_load_p): New declaration.
11959         (prefixed_store_p): New declaration.
11960         (prefixed_paddi_p): New declaration.
11961         (rs6000_asm_output_opcode): New declaration.
11962         (rs6000_final_prescan_insn): Move declaration and update calling
11963         signature.
11964         (address_is_prefixed): New helper inline function.
11965         * config/rs6000/rs6000.c(print_operand_address): Check for either
11966         PC-relative local symbols or PC-relative external symbols.
11967         (rs6000_emit_move): Support loading PC-relative addresses.
11968         (mode_supports_prefixed_address_p): Delete, no longer used.
11969         (rs6000_prefixed_address_mode_p): Delete, no longer used.
11970         (address_to_insn_form): New function to decode an address format.
11971         (reg_to_non_prefixed): New function to identify what the
11972         non-prefixed memory instruction format is for a register.
11973         (prefixed_load_p): New function to identify prefixed loads.
11974         (prefixed_store_p): New function to identify prefixed stores.
11975         (prefixed_paddi_p): New function to identify prefixed load
11976         immediates.
11977         (next_insn_prefixed_p): New static state variable.
11978         (rs6000_final_prescan_insn): New function to determine if an insn
11979         uses a prefixed instruction.
11980         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11981         prefixed instruction.
11982         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11983         (ASM_OUTPUT_OPCODE): New target hook.
11984         * config/rs6000/rs6000.md (prefixed): New insn attribute for
11985         prefixed instructions.
11986         (prefixed_length): New insn attribute for the size of prefixed
11987         instructions.
11988         (non_prefixed_length): New insn attribute for the size of
11989         non-prefixed instructions.
11990         (pcrel_local_addr): New insn to load up a local PC-relative
11991         address.
11992         (pcrel_extern_addr): New insn to load up an external PC-relative
11993         address.
11994         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11995         GPR and loading a 128-bit floating point type to a GPR.
11996
11997 2019-09-30  Richard Biener  <rguenther@suse.de>
11998
11999         * gimple.c (gimple_get_lhs): For PHIs return the result.
12000         * tree-vectorizer.h (vectorizable_live_operation): Also get the
12001         SLP instance as argument.
12002         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
12003         double-reduction PHIs with vectorizable_lc_phi.
12004         (vect_analyze_loop_operations): Adjust.
12005         (vect_create_epilog_for_reduction): Remove all code not dealing
12006         with reduction LC PHI or epilogue generation.
12007         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
12008         for live stmts of reductions.
12009         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
12010         do not handle defs that are not vect_internal_def.
12011         (can_vectorize_live_stmts): Adjust.
12012         (vect_analyze_stmt): When the vectorized stmt defined a value
12013         used on backedges adjust the backedge uses of vectorized PHIs.
12014
12015 2019-09-30  Martin Jambor  <mjambor@suse.cz>
12016
12017         PR ipa/91853
12018         * tree-inline.c (force_value_to_type): New function.
12019         (setup_one_parameter): Use force_value_to_type to convert type.
12020         * tree-inline.c (force_value_to_type): Declare.
12021         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
12022         with register type mismatches.
12023
12024 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
12025
12026         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
12027         32-bit PowerPC.
12028         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
12029         * config/rs6000/t-freebsd64: Make use of the above define and build
12030         the 32-bit libraries with secure-plt.
12031
12032 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
12033
12034         PR target/91931
12035         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
12036         gen_int_mode instead of GEN_INT.
12037
12038 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
12039
12040         * config/darwin.c (gen_macho_low): Amend to include the mode
12041         argument.
12042         (machopic_indirect_data_reference): Amend gen_macho_low call
12043         to include mode argument
12044         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
12045         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
12046         the macho_high expander and two define_insn entries.
12047
12048 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
12049
12050         PR bootstrap/90543
12051         * optc-save-gen.awk: Fix up printing string option differences.
12052
12053 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12054
12055         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
12056         vec_perm cost to 1 for non-Power7 VSX architectures.
12057
12058 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12059
12060         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
12061         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
12062         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
12063
12064 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
12065
12066         * config/darwin.c (gen_macho_high): Amend to include the mode
12067         argument.
12068         (machopic_indirect_data_reference): Amend gen_macho_high call
12069         to include mode argument.
12070         (machopic_legitimize_pic_address): Likewise.
12071         * config/rs6000/rs6000.c (rs6000_legitimize_address):
12072         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
12073         the macho_high expander and two define_insn entries.
12074
12075 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12076
12077         PR target/86805
12078         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12079
12080 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12081
12082         PR target/80672
12083         * config/sh/sh.c (parse_validate_atomic_model_option): Use
12084         std::string::compare instead of std::string::find.
12085
12086 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
12087
12088         * configure: Regenerate.
12089
12090 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12091
12092         PR middle-end/91920
12093         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
12094         variables as shared.
12095
12096 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
12097
12098         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
12099         replaces the expander and two define_insn entries.
12100         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
12101         call.
12102         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
12103
12104 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12105
12106         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
12107         (fibonacci_heap::nodes): Likewise.
12108         (fibonacci_heap::min_key): Likewise.
12109         (fibonacci_heap::min): Likewise.
12110
12111 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12112
12113         * cgraph.c (cgraph_node::get_fun): Make const.
12114         * cgraph.h (cgraph_node::get_fun): Likewise.
12115
12116 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12117
12118         PR target/91919
12119         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
12120         of SImode MULT.
12121
12122 2019-09-27  Richard Biener  <rguenther@suse.de>
12123
12124         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
12125         (STMT_VINFO_REDUC_FN): Likewise.
12126         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12127         STMT_VINFO_REDUC_FN.
12128         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
12129         for condition reductions.
12130         (vect_create_epilog_for_reduction): Compute all required state
12131         from the stmt to be vectorized.
12132         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
12133         invocation and remove then dead code.  For single def-use chains
12134         record only a single vector stmt.
12135
12136 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12137
12138         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
12139         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
12140         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
12141         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
12142         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
12143         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
12144         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
12145         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
12146         (aarch64_general_builtin_rsqrt): Declare.
12147         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
12148         New function.
12149         (aarch64_mangle_builtin_type): Rename to...
12150         (aarch64_general_mangle_builtin_type): ...this.
12151         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
12152         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
12153         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
12154         aarch64_general_add_builtin instead of add_builtin_function.
12155         (aarch64_init_builtins): Rename to...
12156         (aarch64_general_init_builtins): ...this.  Use
12157         aarch64_general_add_builtin instead of add_builtin_function.
12158         (aarch64_builtin_decl): Rename to...
12159         (aarch64_general_builtin_decl): ...this and remove the unused
12160         arguments.
12161         (aarch64_expand_builtin): Rename to...
12162         (aarch64_general_expand_builtin): ...this and remove the unused
12163         arguments.
12164         (aarch64_builtin_rsqrt): Rename to...
12165         (aarch64_general_builtin_rsqrt): ...this.
12166         (aarch64_fold_builtin): Rename to...
12167         (aarch64_general_fold_builtin): ...this.  Take the function subcode
12168         and return type as arguments.  Remove the "ignored" argument.
12169         (aarch64_gimple_fold_builtin): Rename to...
12170         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
12171         subcode and gcall as arguments, and return the new function call.
12172         * config/aarch64/aarch64.c (aarch64_init_builtins)
12173         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
12174         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
12175         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
12176         instead of aarch64_builtin_rsqrt.
12177         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
12178         instead of aarch64_mangle_builtin_type.
12179
12180 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12181
12182         * target.def (check_builtin_call): New target hook.
12183         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
12184         * doc/tm.texi: Regenerate.
12185
12186 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12187
12188         PR tree-optimization/91909
12189         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
12190         reduc_index parameter.  When handling COND_REDUCTION, make sure
12191         that the reduction phi operand is in the correct arm of the
12192         VEC_COND_EXPR.
12193         (vectorizable_reduction): Pass reduc_index to the above.
12194
12195 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
12196
12197         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12198         New combine pattern.
12199
12200 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
12201
12202         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12203         loop instruction into new basic block before the loop when basic
12204         block that precedes the loop is empty.
12205
12206 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
12207
12208         * function.c (gimplify_parameters): Use build_clobber function.
12209         * tree-ssa.c (execute_update_addresses_taken): Likewise.
12210         * tree-inline.c (expand_call_inline): Likewise.
12211         * tree-sra.c (clobber_subtree): Likewise.
12212         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12213         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12214         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12215         lower_omp_target): Likewise.
12216         * omp-expand.c (expand_omp_for_generic): Likewise.
12217         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12218
12219 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
12220
12221         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12222         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12223         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12224         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12225         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12226         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12227         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12228         LD_ELEMREV_V16QI): Use the PURE attribute.
12229
12230 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
12231
12232         * config/rs6000/darwin.md: Replace the expanders for
12233         load_macho_picbase and reload_macho_picbase with use of '@'
12234         and <mode> in their respective define_insns.
12235         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12236         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12237         Pmode to gen_load_macho_picbase.
12238         * config/rs6000/rs6000.md: Likewise.
12239
12240 2019-09-25  Richard Biener  <rguenther@suse.de>
12241
12242         PR tree-optimization/91896
12243         * tree-vect-loop.c (vectorizable_reduction): The single
12244         def-use cycle optimization cannot apply when there's more
12245         than one pattern stmt involved.
12246
12247 2019-09-26  Richard Biener  <rguenther@suse.de>
12248
12249         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12250         loop-closed PHIs that are vect_internal_def.
12251         (vect_create_epilog_for_reduction): Exit early for nested cycles.
12252         Simplify.
12253         (vectorizable_lc_phi): New.
12254         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12255         (vect_transform_stmt): Likewise.
12256         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12257         (vectorizable_lc_phi): Declare.
12258
12259 2019-09-26  Richard Biener  <rguenther@suse.de>
12260
12261         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12262         vectorizable_reduction for vect_double_reduction_def.
12263         (vect_transform_loop): Likewise.
12264         (vect_create_epilog_for_reduction): Move double-reduction
12265         PHI creation and preheader argument setting of PHIs ...
12266         (vectorizable_reduction): ... here.  Also process
12267         vect_double_reduction_def PHIs, creating the vectorized
12268         PHI nodes, remembering the scalar adjustment computed for
12269         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12270         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12271         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12272         Initialize STMT_VINFO_REDUC_CODE.
12273         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12274         (_stmt_vec_info::reduc_code): Likewise.
12275         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12276         (STMT_VINFO_REDUC_CODE): Likewise.
12277
12278 2019-09-26  Matt Turner  <mattst88@gmail.com>
12279
12280         PR driver/69471
12281         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12282         (mtune=): Add Negative(mtune=).
12283         (mcpu=): Add Negative(mcpu=).
12284         * config/arm/arm.opt: Likewise.
12285
12286 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12287
12288         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12289         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12290         Define.
12291         * config/arm/arm_acle.h: Define builtins for the above.
12292         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12293         (simd32_op): Handle the above.
12294         * config/arm/unspecs.md: Define unspecs for the above.
12295
12296 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12297
12298         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12299         (arm_<sup>xtb16): Likewise.
12300         (arm_usada8): Likewise.
12301         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12302         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12303         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12304         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12305         __sxtb16, __uxtab16, __uxtb16): Define.
12306         * config/arm/arm_acle_builtins.def: Define builtins for the above.
12307         * config/arm/unspecs.md: Define unspecs for the above.
12308         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12309         (USXTB16): Likewise.
12310         (simd32_op): New int_attribute.
12311         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12312         * doc/sourcebuild.exp (arm_simd32_ok): Document.
12313
12314 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12315
12316         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12317         internal_error.
12318
12319 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12320
12321         * ipa-sra.c (process_scan_results): Fix continue condition.
12322
12323 2019-09-26  Martin Liska  <mliska@suse.cz>
12324
12325         PR tree-optimization/91885
12326         * tree-vectorizer.c (try_vectorize_loop_1): Add
12327         TODO_update_ssa_only_virtuals similarly to what slp pass does.
12328
12329 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
12330
12331         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12332         aarch64_plus_immediate rather than aarch64_uimm12_shift
12333         to test for valid PLUS immediates.
12334
12335 2019-09-25  Martin Jambor  <mjambor@suse.cz>
12336
12337         * tree-sra.c (no_accesses_p): Remove.
12338         (no_accesses_representant): Likewise.
12339
12340 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12341
12342         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12343         consistenly.
12344         (vaba_s16): Likewise.
12345         (vaba_s32): Likewise.
12346         (vaba_u8): Likewise.
12347         (vaba_u16): Likewise.
12348         (vaba_u32): Likewise.
12349         (vabal_high_s8): Likewise.
12350         (vabal_high_s16): Likewise.
12351         (vabal_high_s32): Likewise.
12352         (vabal_high_u8): Likewise.
12353         (vabal_high_u16): Likewise.
12354         (vabal_high_u32): Likewise.
12355         (vabal_s8): Likewise.
12356         (vabal_s16): Likewise.
12357         (vabal_s32): Likewise.
12358         (vabal_u8): Likewise.
12359         (vabal_u16): Likewise.
12360         (vabal_u32): Likewise.
12361         (vabaq_s8): Likewise.
12362         (vabaq_s16): Likewise.
12363         (vabaq_s32): Likewise.
12364         (vabaq_u8): Likewise.
12365         (vabaq_u16): Likewise.
12366         (vabaq_u32): Likewise.
12367         (vabd_s8): Likewise.
12368         (vabd_s16): Likewise.
12369         (vabd_s32): Likewise.
12370         (vabd_u8): Likewise.
12371         (vabd_u16): Likewise.
12372         (vabd_u32): Likewise.
12373         (vabdl_high_s8): Likewise.
12374         (vabdl_high_s16): Likewise.
12375         (vabdl_high_s32): Likewise.
12376         (vabdl_high_u8): Likewise.
12377         (vabdl_high_u16): Likewise.
12378         (vabdl_high_u32): Likewise.
12379         (vabdl_s8): Likewise.
12380         (vabdl_s16): Likewise.
12381         (vabdl_s32): Likewise.
12382         (vabdl_u8): Likewise.
12383         (vabdl_u16): Likewise.
12384         (vabdl_u32): Likewise.
12385         (vabdq_s8): Likewise.
12386         (vabdq_s16): Likewise.
12387         (vabdq_s32): Likewise.
12388         (vabdq_u8): Likewise.
12389         (vabdq_u16): Likewise.
12390         (vabdq_u32): Likewise.
12391         (vaddlv_s8): Likewise.
12392         (vaddlv_s16): Likewise.
12393         (vaddlv_u8): Likewise.
12394         (vaddlv_u16): Likewise.
12395         (vaddlvq_s8): Likewise.
12396         (vaddlvq_s16): Likewise.
12397         (vaddlvq_s32): Likewise.
12398         (vaddlvq_u8): Likewise.
12399         (vaddlvq_u16): Likewise.
12400         (vaddlvq_u32): Likewise.
12401         (vcvtx_f32_f64): Likewise.
12402         (vcvtx_high_f32_f64): Likewise.
12403         (vcvtxd_f32_f64): Likewise.
12404         (vmla_n_f32): Likewise.
12405         (vmla_n_s16): Likewise.
12406         (vmla_n_s32): Likewise.
12407         (vmla_n_u16): Likewise.
12408         (vmla_n_u32): Likewise.
12409         (vmla_s8): Likewise.
12410         (vmla_s16): Likewise.
12411         (vmla_s32): Likewise.
12412         (vmla_u8): Likewise.
12413         (vmla_u16): Likewise.
12414         (vmla_u32): Likewise.
12415         (vmlal_high_n_s16): Likewise.
12416         (vmlal_high_n_s32): Likewise.
12417         (vmlal_high_n_u16): Likewise.
12418         (vmlal_high_n_u32): Likewise.
12419         (vmlal_high_s8): Likewise.
12420         (vmlal_high_s16): Likewise.
12421         (vmlal_high_s32): Likewise.
12422         (vmlal_high_u8): Likewise.
12423         (vmlal_high_u16): Likewise.
12424         (vmlal_high_u32): Likewise.
12425         (vmlal_n_s16): Likewise.
12426         (vmlal_n_s32): Likewise.
12427         (vmlal_n_u16): Likewise.
12428         (vmlal_n_u32): Likewise.
12429         (vmlal_s8): Likewise.
12430         (vmlal_s16): Likewise.
12431         (vmlal_s32): Likewise.
12432         (vmlal_u8): Likewise.
12433         (vmlal_u16): Likewise.
12434         (vmlal_u32): Likewise.
12435         (vmlaq_n_f32): Likewise.
12436         (vmlaq_n_s16): Likewise.
12437         (vmlaq_n_s32): Likewise.
12438         (vmlaq_n_u16): Likewise.
12439         (vmlaq_n_u32): Likewise.
12440         (vmlaq_s8): Likewise.
12441         (vmlaq_s16): Likewise.
12442         (vmlaq_s32): Likewise.
12443         (vmlaq_u8): Likewise.
12444         (vmlaq_u16): Likewise.
12445         (vmlaq_u32): Likewise.
12446         (vmls_n_f32): Likewise.
12447         (vmls_n_s16): Likewise.
12448         (vmls_n_s32): Likewise.
12449         (vmls_n_u16): Likewise.
12450         (vmls_n_u32): Likewise.
12451         (vmls_s8): Likewise.
12452         (vmls_s16): Likewise.
12453         (vmls_s32): Likewise.
12454         (vmls_u8): Likewise.
12455         (vmls_u16): Likewise.
12456         (vmls_u32): Likewise.
12457         (vmlsl_high_n_s16): Likewise.
12458         (vmlsl_high_n_s32): Likewise.
12459         (vmlsl_high_n_u16): Likewise.
12460         (vmlsl_high_n_u32): Likewise.
12461         (vmlsl_high_s8): Likewise.
12462         (vmlsl_high_s16): Likewise.
12463         (vmlsl_high_s32): Likewise.
12464         (vmlsl_high_u8): Likewise.
12465         (vmlsl_high_u16): Likewise.
12466         (vmlsl_high_u32): Likewise.
12467         (vmlsl_n_s16): Likewise.
12468         (vmlsl_n_s32): Likewise.
12469         (vmlsl_n_u16): Likewise.
12470         (vmlsl_n_u32): Likewise.
12471         (vmlsl_s8): Likewise.
12472         (vmlsl_s16): Likewise.
12473         (vmlsl_s32): Likewise.
12474         (vmlsl_u8): Likewise.
12475         (vmlsl_u16): Likewise.
12476         (vmlsl_u32): Likewise.
12477         (vmlsq_n_f32): Likewise.
12478         (vmlsq_n_s16): Likewise.
12479         (vmlsq_n_s32): Likewise.
12480         (vmlsq_n_u16): Likewise.
12481         (vmlsq_n_u32): Likewise.
12482         (vmlsq_s8): Likewise.
12483         (vmlsq_s16): Likewise.
12484         (vmlsq_s32): Likewise.
12485         (vmlsq_u8): Likewise.
12486         (vmlsq_u16): Likewise.
12487         (vmlsq_u32): Likewise.
12488         (vmovl_high_s8): Likewise.
12489         (vmovl_high_s16): Likewise.
12490         (vmovl_high_s32): Likewise.
12491         (vmovl_high_u8): Likewise.
12492         (vmovl_high_u16): Likewise.
12493         (vmovl_high_u32): Likewise.
12494         (vmovl_s8): Likewise.
12495         (vmovl_s16): Likewise.
12496         (vmovl_s32): Likewise.
12497         (vmovl_u8): Likewise.
12498         (vmovl_u16): Likewise.
12499         (vmovl_u32): Likewise.
12500         (vmovn_high_s16): Likewise.
12501         (vmovn_high_s32): Likewise.
12502         (vmovn_high_s64): Likewise.
12503         (vmovn_high_u16): Likewise.
12504         (vmovn_high_u32): Likewise.
12505         (vmovn_high_u64): Likewise.
12506         (vmovn_s16): Likewise.
12507         (vmovn_s32): Likewise.
12508         (vmovn_s64): Likewise.
12509         (vmovn_u16): Likewise.
12510         (vmovn_u32): Likewise.
12511         (vmovn_u64): Likewise.
12512         (vmull_high_n_s16): Likewise.
12513         (vmull_high_n_s32): Likewise.
12514         (vmull_high_n_u16): Likewise.
12515         (vmull_high_n_u32): Likewise.
12516         (vmull_high_p8): Likewise.
12517         (vmull_high_s8): Likewise.
12518         (vmull_high_s16): Likewise.
12519         (vmull_high_s32): Likewise.
12520         (vmull_high_u8): Likewise.
12521         (vmull_high_u16): Likewise.
12522         (vmull_high_u32): Likewise.
12523         (vmull_n_s16): Likewise.
12524         (vmull_n_s32): Likewise.
12525         (vmull_n_u16): Likewise.
12526         (vmull_n_u32): Likewise.
12527         (vmull_p8): Likewise.
12528         (vmull_s8): Likewise.
12529         (vmull_s16): Likewise.
12530         (vmull_s32): Likewise.
12531         (vmull_u8): Likewise.
12532         (vmull_u16): Likewise.
12533         (vmull_u32): Likewise.
12534         (vpadal_s8): Likewise.
12535         (vpadal_s16): Likewise.
12536         (vpadal_s32): Likewise.
12537         (vpadal_u8): Likewise.
12538         (vpadal_u16): Likewise.
12539         (vpadal_u32): Likewise.
12540         (vpadalq_s8): Likewise.
12541         (vpadalq_s16): Likewise.
12542         (vpadalq_s32): Likewise.
12543         (vpadalq_u8): Likewise.
12544         (vpadalq_u16): Likewise.
12545         (vpadalq_u32): Likewise.
12546         (vpaddl_s8): Likewise.
12547         (vpaddl_s16): Likewise.
12548         (vpaddl_s32): Likewise.
12549         (vpaddl_u8): Likewise.
12550         (vpaddl_u16): Likewise.
12551         (vpaddl_u32): Likewise.
12552         (vpaddlq_s8): Likewise.
12553         (vpaddlq_s16): Likewise.
12554         (vpaddlq_s32): Likewise.
12555         (vpaddlq_u8): Likewise.
12556         (vpaddlq_u16): Likewise.
12557         (vpaddlq_u32): Likewise.
12558         (vpaddq_s8): Likewise.
12559         (vpaddq_s16): Likewise.
12560         (vpaddq_s32): Likewise.
12561         (vpaddq_s64): Likewise.
12562         (vpaddq_u8): Likewise.
12563         (vpaddq_u16): Likewise.
12564         (vpaddq_u32): Likewise.
12565         (vpaddq_u64): Likewise.
12566         (vqdmulh_n_s16): Likewise.
12567         (vqdmulh_n_s32): Likewise.
12568         (vqdmulhq_n_s16): Likewise.
12569         (vqdmulhq_n_s32): Likewise.
12570         (vqmovn_high_s16): Likewise.
12571         (vqmovn_high_s32): Likewise.
12572         (vqmovn_high_s64): Likewise.
12573         (vqmovn_high_u16): Likewise.
12574         (vqmovn_high_u32): Likewise.
12575         (vqmovn_high_u64): Likewise.
12576         (vqmovun_high_s16): Likewise.
12577         (vqmovun_high_s32): Likewise.
12578         (vqmovun_high_s64): Likewise.
12579         (vqrdmulh_n_s16): Likewise.
12580         (vqrdmulh_n_s32): Likewise.
12581         (vqrdmulhq_n_s16): Likewise.
12582         (vqrdmulhq_n_s32): Likewise.
12583         (vrsqrte_u32): Likewise.
12584         (vrsqrteq_u32): Likewise.
12585         (vtst_p8): Likewise.
12586         (vtst_p16): Likewise.
12587         (vtst_p64): Likewise.
12588         (vtstq_p8): Likewise.
12589         (vtstq_p16): Likewise.
12590         (vtstq_p64): Likewise.
12591         (vaddlv_s32): Likewise.
12592         (vaddlv_u32): Likewise.
12593         (vqtbl1_p8): Likewise.
12594         (vqtbl1_s8): Likewise.
12595         (vqtbl1_u8): Likewise.
12596         (vqtbl1q_p8): Likewise.
12597         (vqtbl1q_s8): Likewise.
12598         (vqtbl1q_u8): Likewise.
12599         (vqtbx1_s8): Likewise.
12600         (vqtbx1_u8): Likewise.
12601         (vqtbx1_p8): Likewise.
12602         (vqtbx1q_s8): Likewise.
12603         (vqtbx1q_u8): Likewise.
12604         (vqtbx1q_p8): Likewise.
12605         (vtbl1_s8): Likewise.
12606         (vtbl1_u8): Likewise.
12607         (vtbl1_p8): Likewise.
12608         (vtbl2_s8): Likewise.
12609         (vtbl2_u8): Likewise.
12610         (vtbl2_p8): Likewise.
12611         (vtbl3_s8): Likewise.
12612         (vtbl3_u8): Likewise.
12613         (vtbl3_p8): Likewise.
12614         (vtbl4_s8): Likewise.
12615         (vtbl4_u8): Likewise.
12616         (vtbl4_p8): Likewise.
12617         (vtbx2_s8): Likewise.
12618         (vtbx2_u8): Likewise.
12619         (vtbx2_p8): Likewise.
12620         (vld1_f32): Likewise.
12621         (vld1_f64): Likewise.
12622         (vld1_p8): Likewise.
12623         (vld1_p16): Likewise.
12624         (vld1_p64): Likewise.
12625         (vld1_s8): Likewise.
12626         (vld1_s16): Likewise.
12627         (vld1_s32): Likewise.
12628         (vld1_s64): Likewise.
12629         (vld1_u8): Likewise.
12630         (vld1_u16): Likewise.
12631         (vld1_u32): Likewise.
12632         (vld1_u64): Likewise.
12633         (vld1q_f32): Likewise.
12634         (vld1q_f64): Likewise.
12635         (vld1q_p8): Likewise.
12636         (vld1q_p16): Likewise.
12637         (vld1q_p64): Likewise.
12638         (vld1q_s8): Likewise.
12639         (vld1q_s16): Likewise.
12640         (vld1q_s32): Likewise.
12641         (vld1q_s64): Likewise.
12642         (vld1q_u8): Likewise.
12643         (vld1q_u16): Likewise.
12644         (vld1q_u32): Likewise.
12645         (vld1q_u64): Likewise.
12646         (vpmax_s8): Likewise.
12647         (vpmax_s16): Likewise.
12648         (vpmax_s32): Likewise.
12649         (vpmax_u8): Likewise.
12650         (vpmax_u16): Likewise.
12651         (vpmax_u32): Likewise.
12652         (vpmaxq_s8): Likewise.
12653         (vpmaxq_s16): Likewise.
12654         (vpmaxq_s32): Likewise.
12655         (vpmaxq_u8): Likewise.
12656         (vpmaxq_u16): Likewise.
12657         (vpmaxq_u32): Likewise.
12658         (vpmax_f32): Likewise.
12659         (vpmaxq_f32): Likewise.
12660         (vpmaxq_f64): Likewise.
12661         (vpmaxqd_f64): Likewise.
12662         (vpmaxs_f32): Likewise.
12663         (vpmaxnm_f32): Likewise.
12664         (vpmaxnmq_f32): Likewise.
12665         (vpmaxnmq_f64): Likewise.
12666         (vpmaxnmqd_f64): Likewise.
12667         (vpmaxnms_f32): Likewise.
12668         (vpmin_s8): Likewise.
12669         (vpmin_s16): Likewise.
12670         (vpmin_s32): Likewise.
12671         (vpmin_u8): Likewise.
12672         (vpmin_u16): Likewise.
12673         (vpmin_u32): Likewise.
12674         (vpminq_s8): Likewise.
12675         (vpminq_s16): Likewise.
12676         (vpminq_s32): Likewise.
12677         (vpminq_u8): Likewise.
12678         (vpminq_u16): Likewise.
12679         (vpminq_u32): Likewise.
12680         (vpmin_f32): Likewise.
12681         (vpminq_f32): Likewise.
12682         (vpminq_f64): Likewise.
12683         (vpminqd_f64): Likewise.
12684         (vpmins_f32): Likewise.
12685         (vpminnm_f32): Likewise.
12686         (vpminnmq_f32): Likewise.
12687         (vpminnmq_f64): Likewise.
12688         (vpminnmqd_f64): Likewise.
12689         (vpminnms_f32): Likewise.
12690         (vmla_f32): Likewise.
12691         (vmlaq_f32): Likewise.
12692         (vmlaq_f64): Likewise.
12693         (vmls_f32): Likewise.
12694         (vmlsq_f32): Likewise.
12695         (vmlsq_f64): Likewise.
12696         (vqtbl2_s8): Likewise.
12697         (vqtbl2_u8): Likewise.
12698         (vqtbl2_p8): Likewise.
12699         (vqtbl2q_s8): Likewise.
12700         (vqtbl2q_u8): Likewise.
12701         (vqtbl2q_p8): Likewise.
12702         (vqtbl3_s8): Likewise.
12703         (vqtbl3_u8): Likewise.
12704         (vqtbl3_p8): Likewise.
12705         (vqtbl3q_s8): Likewise.
12706         (vqtbl3q_u8): Likewise.
12707         (vqtbl3q_p8): Likewise.
12708         (vqtbl4_s8): Likewise.
12709         (vqtbl4_u8): Likewise.
12710         (vqtbl4_p8): Likewise.
12711         (vqtbl4q_s8): Likewise.
12712         (vqtbl4q_u8): Likewise.
12713         (vqtbl4q_p8): Likewise.
12714         (vqtbx2_s8): Likewise.
12715         (vqtbx2_u8): Likewise.
12716         (vqtbx2_p8): Likewise.
12717         (vqtbx2q_s8): Likewise.
12718         (vqtbx2q_u8): Likewise.
12719         (vqtbx2q_p8): Likewise.
12720         (vqtbx3_s8): Likewise.
12721         (vqtbx3_u8): Likewise.
12722         (vqtbx3_p8): Likewise.
12723         (vqtbx3q_s8): Likewise.
12724         (vqtbx3q_u8): Likewise.
12725         (vqtbx3q_p8): Likewise.
12726         (vqtbx4_s8): Likewise.
12727         (vqtbx4_u8): Likewise.
12728         (vqtbx4_p8): Likewise.
12729         (vqtbx4q_s8): Likewise.
12730         (vqtbx4q_u8): Likewise.
12731         (vqtbx4q_p8): Likewise.
12732         (vrev16_p8): Likewise.
12733         (vrev16_s8): Likewise.
12734         (vrev16_u8): Likewise.
12735         (vrev16q_p8): Likewise.
12736         (vrev16q_s8): Likewise.
12737         (vrev16q_u8): Likewise.
12738         (vrev32_p8): Likewise.
12739         (vrev32_p16): Likewise.
12740         (vrev32_s8): Likewise.
12741         (vrev32_s16): Likewise.
12742         (vrev32_u8): Likewise.
12743         (vrev32_u16): Likewise.
12744         (vrev32q_p8): Likewise.
12745         (vrev32q_p16): Likewise.
12746         (vrev32q_s8): Likewise.
12747         (vrev32q_s16): Likewise.
12748         (vrev32q_u8): Likewise.
12749         (vrev32q_u16): Likewise.
12750         (vrev64_f32): Likewise.
12751         (vrev64_p8): Likewise.
12752         (vrev64_p16): Likewise.
12753         (vrev64_s8): Likewise.
12754         (vrev64_s16): Likewise.
12755         (vrev64_s32): Likewise.
12756         (vrev64_u8): Likewise.
12757         (vrev64_u16): Likewise.
12758         (vrev64_u32): Likewise.
12759         (vrev64q_f32): Likewise.
12760         (vrev64q_p8): Likewise.
12761         (vrev64q_p16): Likewise.
12762         (vrev64q_s8): Likewise.
12763         (vrev64q_s16): Likewise.
12764         (vrev64q_s32): Likewise.
12765         (vrev64q_u8): Likewise.
12766         (vrev64q_u16): Likewise.
12767         (vrev64q_u32): Likewise.
12768         (vsha1cq_u32): Likewise.
12769         (vsha1mq_u32): Likewise.
12770         (vsha1pq_u32): Likewise.
12771         (vsha1h_u32): Likewise.
12772         (vsha1su0q_u32): Likewise.
12773         (vsha1su1q_u32): Likewise.
12774         (vsha256hq_u32): Likewise.
12775         (vsha256h2q_u32): Likewise.
12776         (vsha256su0q_u32): Likewise.
12777         (vsha256su1q_u32): Likewise.
12778         (vmull_p64): Likewise.
12779         (vmull_high_p64): Likewise.
12780         (vsqrt_f32): Likewise.
12781         (vsqrtq_f32): Likewise.
12782         (vsqrt_f64): Likewise.
12783         (vsqrtq_f64): Likewise.
12784         (vst1_f32): Likewise.
12785         (vst1_f64): Likewise.
12786         (vst1_p8): Likewise.
12787         (vst1_p16): Likewise.
12788         (vst1_p64): Likewise.
12789         (vst1_s8): Likewise.
12790         (vst1_s16): Likewise.
12791         (vst1_s32): Likewise.
12792         (vst1_s64): Likewise.
12793         (vst1_u8): Likewise.
12794         (vst1_u16): Likewise.
12795         (vst1_u32): Likewise.
12796         (vst1_u64): Likewise.
12797         (vst1q_f32): Likewise.
12798         (vst1q_f64): Likewise.
12799         (vst1q_p8): Likewise.
12800         (vst1q_p16): Likewise.
12801         (vst1q_p64): Likewise.
12802         (vst1q_s8): Likewise.
12803         (vst1q_s16): Likewise.
12804         (vst1q_s32): Likewise.
12805         (vst1q_s64): Likewise.
12806         (vst1q_u8): Likewise.
12807         (vst1q_u16): Likewise.
12808         (vst1q_u32): Likewise.
12809         (vst1q_u64): Likewise.
12810         (vst1_s64_x2): Likewise.
12811         (vst1_u64_x2): Likewise.
12812         (vst1_f64_x2): Likewise.
12813         (vst1_s8_x2): Likewise.
12814         (vst1_p8_x2): Likewise.
12815         (vst1_s16_x2): Likewise.
12816         (vst1_p16_x2): Likewise.
12817         (vst1_s32_x2): Likewise.
12818         (vst1_u8_x2): Likewise.
12819         (vst1_u16_x2): Likewise.
12820         (vst1_u32_x2): Likewise.
12821         (vst1_f16_x2): Likewise.
12822         (vst1_f32_x2): Likewise.
12823         (vst1_p64_x2): Likewise.
12824         (vst1q_s8_x2): Likewise.
12825         (vst1q_p8_x2): Likewise.
12826         (vst1q_s16_x2): Likewise.
12827         (vst1q_p16_x2): Likewise.
12828         (vst1q_s32_x2): Likewise.
12829         (vst1q_s64_x2): Likewise.
12830         (vst1q_u8_x2): Likewise.
12831         (vst1q_u16_x2): Likewise.
12832         (vst1q_u32_x2): Likewise.
12833         (vst1q_u64_x2): Likewise.
12834         (vst1q_f16_x2): Likewise.
12835         (vst1q_f32_x2): Likewise.
12836         (vst1q_f64_x2): Likewise.
12837         (vst1q_p64_x2): Likewise.
12838         (vst1_s64_x3): Likewise.
12839         (vst1_u64_x3): Likewise.
12840         (vst1_f64_x3): Likewise.
12841         (vst1_s8_x3): Likewise.
12842         (vst1_p8_x3): Likewise.
12843         (vst1_s16_x3): Likewise.
12844         (vst1_p16_x3): Likewise.
12845         (vst1_s32_x3): Likewise.
12846         (vst1_u8_x3): Likewise.
12847         (vst1_u16_x3): Likewise.
12848         (vst1_u32_x3): Likewise.
12849         (vst1_f16_x3): Likewise.
12850         (vst1_f32_x3): Likewise.
12851         (vst1_p64_x3): Likewise.
12852         (vst1q_s8_x3): Likewise.
12853         (vst1q_p8_x3): Likewise.
12854         (vst1q_s16_x3): Likewise.
12855         (vst1q_p16_x3): Likewise.
12856         (vst1q_s32_x3): Likewise.
12857         (vst1q_s64_x3): Likewise.
12858         (vst1q_u8_x3): Likewise.
12859         (vst1q_u16_x3): Likewise.
12860         (vst1q_u32_x3): Likewise.
12861         (vst1q_u64_x3): Likewise.
12862         (vst1q_f16_x3): Likewise.
12863         (vst1q_f32_x3): Likewise.
12864         (vst1q_f64_x3): Likewise.
12865         (vst1q_p64_x3): Likewise.
12866         (vst2_s64): Likewise.
12867         (vst2_u64): Likewise.
12868         (vst2_f64): Likewise.
12869         (vst2_s8): Likewise.
12870         (vst2_p8): Likewise.
12871         (vst2_s16): Likewise.
12872         (vst2_p16): Likewise.
12873         (vst2_s32): Likewise.
12874         (vst2_u8): Likewise.
12875         (vst2_u16): Likewise.
12876         (vst2_u32): Likewise.
12877         (vst2_f16): Likewise.
12878         (vst2_f32): Likewise.
12879         (vst2_p64): Likewise.
12880         (vst2q_s8): Likewise.
12881         (vst2q_p8): Likewise.
12882         (vst2q_s16): Likewise.
12883         (vst2q_p16): Likewise.
12884         (vst2q_s32): Likewise.
12885         (vst2q_s64): Likewise.
12886         (vst2q_u8): Likewise.
12887         (vst2q_u16): Likewise.
12888         (vst2q_u32): Likewise.
12889         (vst2q_u64): Likewise.
12890         (vst2q_f16): Likewise.
12891         (vst2q_f32): Likewise.
12892         (vst2q_f64): Likewise.
12893         (vst2q_p64): Likewise.
12894         (vst3_s64): Likewise.
12895         (vst3_u64): Likewise.
12896         (vst3_f64): Likewise.
12897         (vst3_s8): Likewise.
12898         (vst3_p8): Likewise.
12899         (vst3_s16): Likewise.
12900         (vst3_p16): Likewise.
12901         (vst3_s32): Likewise.
12902         (vst3_u8): Likewise.
12903         (vst3_u16): Likewise.
12904         (vst3_u32): Likewise.
12905         (vst3_f16): Likewise.
12906         (vst3_f32): Likewise.
12907         (vst3_p64): Likewise.
12908         (vst3q_s8): Likewise.
12909         (vst3q_p8): Likewise.
12910         (vst3q_s16): Likewise.
12911         (vst3q_p16): Likewise.
12912         (vst3q_s32): Likewise.
12913         (vst3q_s64): Likewise.
12914         (vst3q_u8): Likewise.
12915         (vst3q_u16): Likewise.
12916         (vst3q_u32): Likewise.
12917         (vst3q_u64): Likewise.
12918         (vst3q_f16): Likewise.
12919         (vst3q_f32): Likewise.
12920         (vst3q_f64): Likewise.
12921         (vst3q_p64): Likewise.
12922         (vst4_s64): Likewise.
12923         (vst4_u64): Likewise.
12924         (vst4_f64): Likewise.
12925         (vst4_s8): Likewise.
12926         (vst4_p8): Likewise.
12927         (vst4_s16): Likewise.
12928         (vst4_p16): Likewise.
12929         (vst4_s32): Likewise.
12930         (vst4_u8): Likewise.
12931         (vst4_u16): Likewise.
12932         (vst4_u32): Likewise.
12933         (vst4_f16): Likewise.
12934         (vst4_f32): Likewise.
12935         (vst4_p64): Likewise.
12936         (vst4q_s8): Likewise.
12937         (vst4q_p8): Likewise.
12938         (vst4q_s16): Likewise.
12939         (vst4q_p16): Likewise.
12940         (vst4q_s32): Likewise.
12941         (vst4q_s64): Likewise.
12942         (vst4q_u8): Likewise.
12943         (vst4q_u16): Likewise.
12944         (vst4q_u32): Likewise.
12945         (vst4q_u64): Likewise.
12946         (vst4q_f16): Likewise.
12947         (vst4q_f32): Likewise.
12948         (vst4q_f64): Likewise.
12949         (vst4q_p64): Likewise.
12950         (vtbx4_s8): Likewise.
12951         (vtbx4_u8): Likewise.
12952         (vtbx4_p8): Likewise.
12953         (vtrn_f32): Likewise.
12954         (vtrn_p8): Likewise.
12955         (vtrn_p16): Likewise.
12956         (vtrn_s8): Likewise.
12957         (vtrn_s16): Likewise.
12958         (vtrn_s32): Likewise.
12959         (vtrn_u8): Likewise.
12960         (vtrn_u16): Likewise.
12961         (vtrn_u32): Likewise.
12962         (vtrnq_f32): Likewise.
12963         (vtrnq_p8): Likewise.
12964         (vtrnq_p16): Likewise.
12965         (vtrnq_s8): Likewise.
12966         (vtrnq_s16): Likewise.
12967         (vtrnq_s32): Likewise.
12968         (vtrnq_u8): Likewise.
12969         (vtrnq_u16): Likewise.
12970         (vtrnq_u32): Likewise.
12971         (vrsqrte_f16): Likewise.
12972         (vrsqrteq_f16): Likewise.
12973         (vsqrt_f16): Likewise.
12974         (vsqrtq_f16): Likewise.
12975         (vabd_f16): Likewise.
12976         (vabdq_f16): Likewise.
12977         (vpadd_f16): Likewise.
12978         (vpaddq_f16): Likewise.
12979         (vpmax_f16): Likewise.
12980         (vpmaxq_f16): Likewise.
12981         (vpmaxnm_f16): Likewise.
12982         (vpmaxnmq_f16): Likewise.
12983         (vpmin_f16): Likewise.
12984         (vpminq_f16): Likewise.
12985         (vpminnm_f16): Likewise.
12986         (vpminnmq_f16): Likewise.
12987         (vrsqrts_f16): Likewise.
12988         (vrsqrtsq_f16): Likewise.
12989
12990 2019-09-25  Richard Biener  <rguenther@suse.de>
12991
12992         PR tree-optimization/91896
12993         * tree-vect-loop.c (vectorizable_reduction): The single
12994         def-use cycle optimization cannot apply when there's more
12995         than one pattern stmt involved.
12996
12997 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
12998
12999         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
13000         the 'P' mode iterator, replacing the (removed) SI and DI variants.
13001         (reload_macho_picbase_<mode>): Likewise.
13002
13003 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
13004
13005         * config/rs6000/rs6000.md: Move darwin.md include until
13006         after the definition of the mode iterators.
13007
13008 2019-09-23  Martin Sebor  <msebor@redhat.com>
13009
13010         PR tree-optimization/91570
13011         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
13012         non-constant minlen, maxlen and maxbound.
13013
13014 2019-09-24  Richard Biener  <rguenther@suse.de>
13015
13016         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
13017         Rename to...
13018         (_stmt_vec_info::cond_reduc_code): ... this.
13019         (_stmt_vec_info::induc_cond_initial_val): Add.
13020         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
13021         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
13022         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
13023         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
13024         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
13025         the reduction code.
13026         (vect_create_epilog_for_reduction): Drop special
13027         induction condition reduction params, pass in reduction code
13028         and simplify.
13029         (vectorizable_reduction): Perform condition reduction kind
13030         selection only at analysis time.  Adjust passing on state.
13031
13032 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13033
13034         * config/aarch64/aarch64.md (mov<mode>): Don't call
13035         aarch64_split_dimode_const_store on volatile MEM.
13036
13037 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
13038
13039         * config/aarch64/aarch64-option-extensions.def (fp16fml):
13040         Update hwcap string for fp16fml.
13041
13042 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
13043
13044         PR middle-end/91866
13045         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
13046         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
13047
13048 2019-09-24  Martin Liska  <mliska@suse.cz>
13049
13050         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
13051         instead of if-elseif-elseif-...
13052         * gimple-expr.c (extract_ops_from_tree): Likewise.
13053         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13054         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
13055
13056 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13057
13058         PR ipa/91831
13059         * ipa-param-manipulation.c (carry_over_param): Make a method of
13060         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
13061         in case of a context mismatch.
13062         (ipa_param_body_adjustments::common_initialization): Adjust call to
13063         carry_over_param.
13064         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
13065         private method carry_over_param.
13066
13067 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13068
13069         PR ipa/91832
13070         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
13071
13072 2019-09-24  Richard Biener  <rguenther@suse.de>
13073
13074         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
13075         base.
13076
13077 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13078
13079         * config/arm/t-arm (arm-builtins.o): Add dependency on
13080         arm_acle_builtins.def.
13081
13082 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13083
13084         PR target/91823
13085         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
13086         canonical CONST_INTs.  Use gen_rtvec.
13087
13088 2019-09-23  Richard Biener  <rguenther@suse.de>
13089
13090         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
13091         avoid adjusting by + 0 or * 1.
13092         (vect_create_epilog_for_reduction): Get reduction code only
13093         when necessary.  Deal with adjustment_def only when necessary.
13094
13095 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13096
13097         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
13098         memmodel index.
13099
13100 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13101
13102         PR ipa/91835
13103         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
13104         "ipa-sra".
13105
13106 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
13107
13108         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
13109         code.  Merge code blocks with common conditionals. Use declared
13110         macro instead of a magic number for PIC level.
13111
13112 2019-09-21  Martin Sebor  <msebor@redhat.com>
13113
13114         PR middle-end/91830
13115         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
13116         Simplify computation of the offset of the referenced subobject.
13117
13118 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
13119
13120         * config/darwin.c (machopic_legitimize_pic_address): Check
13121         for lra not reload.
13122
13123 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13124
13125         * ira-conflicts.c (can_use_same_reg_p): New function.
13126         (process_reg_shuffles): Take an insn parameter.  Ignore cases
13127         in which input operand op_num could seemingly never be allocated
13128         to the same register as the destination.
13129         (add_insn_allocno_copies): Update call to process_reg_shuffles.
13130
13131 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13132
13133         * simplify-rtx.c (neg_const_int): Replace with...
13134         (neg_poly_int_rtx): ...this new function.
13135         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
13136         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
13137         (simplify_plus_minus): Likewise for constant terms here.
13138
13139 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
13140
13141         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
13142         HOST_WIDE_PRINT_UNSIGNED.
13143
13144 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
13145
13146         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
13147         character.
13148
13149 2019-09-20  Maya Rashish  <coypu@sdf.org>
13150
13151         PR target/86811
13152         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
13153         Define to speculation_safe_value_not_needed.
13154
13155 2019-09-20  Richard Biener  <rguenther@suse.de>
13156             Uros Bizjak  <ubizjak@gmail.com>
13157
13158         PR target/91814
13159         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
13160         previous change.
13161         (general_scalar_chain::convert_op): Force not suitable memory
13162         operands to a register.
13163
13164 2019-09-20  Richard Biener  <rguenther@suse.de>
13165
13166         PR tree-optimization/91821
13167         * tree-vect-loop.c (check_reduction_path): Check we can compute
13168         reduc_idx.
13169         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
13170         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
13171         operands in canonical order.
13172         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
13173         STMT_VINFO_REDUC_IDX.
13174         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
13175         (STMT_VINFO_REDUC_IDX): Likewise.
13176
13177 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
13178
13179         PR target/91269
13180         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13181
13182 2019-09-20  Richard Biener  <rguenther@suse.de>
13183
13184         PR tree-optimization/91822
13185         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
13186         parameter.
13187         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
13188         for reduc_index in nested cycles, adjust vectorizable_condition
13189         calls.
13190         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
13191         parameter.
13192         (vect_analyze_stmt): Adjust.
13193         (vect_transform_stmt): Likewise.
13194
13195 2019-09-20  Richard Biener  <rguenther@suse.de>
13196
13197         PR target/91767
13198         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13199         Ensure there's a sequence point between allocating the new register
13200         and passing a reference to a reg via regno_reg_rtx.
13201
13202 2019-09-20  Martin Jambor  <mjambor@suse.cz>
13203
13204         * coretypes.h (cgraph_edge): Declare.
13205         * ipa-param-manipulation.c: Rewrite.
13206         * ipa-param-manipulation.h: Likewise.
13207         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13208         (OBJS): Added ipa-sra.o.
13209         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13210         and ref_p, added fields param_adjustments and performed_splits.
13211         (struct cgraph_clone_info): Remove ags_to_skip and
13212         combined_args_to_skip, new field param_adjustments.
13213         (cgraph_node::create_clone): Changed parameters to use
13214         ipa_param_adjustments.
13215         (cgraph_node::create_virtual_clone): Likewise.
13216         (cgraph_node::create_virtual_clone_with_body): Likewise.
13217         (tree_function_versioning): Likewise.
13218         (cgraph_build_function_type_skip_args): Removed.
13219         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13220         using ipa_param_adjustments.
13221         (clone_of_p): Likewise.
13222         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13223         (build_function_decl_skip_args): Likewise.
13224         (duplicate_thunk_for_node): Adjust parameters using
13225         ipa_param_body_adjustments, copy param_adjustments instead of
13226         args_to_skip.
13227         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13228         (cgraph_node::create_virtual_clone): Likewise.
13229         (cgraph_node::create_version_clone_with_body): Likewise.
13230         (cgraph_materialize_clone): Likewise.
13231         (symbol_table::materialize_all_clones): Likewise.
13232         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13233         ipa_replace_map check.
13234         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13235         (initialize_node_lattices): Make aware that some parameters might have
13236         already been removed.
13237         (want_remove_some_param_p): New function.
13238         (create_specialized_node): Convert to using ipa_param_adjustments and
13239         deal with possibly pre-existing adjustments.
13240         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13241         (output_node_opt_summary): Do not stream removed fields.  Stream
13242         parameter adjustments instead of argumetns to skip.
13243         (input_node_opt_summary): Likewise.
13244         (input_node_opt_summary): Likewise.
13245         * lto-section-in.c (lto_section_name): Added ipa-sra section.
13246         * lto-streamer.h (lto_section_type): Likewise.
13247         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13248         param_body_adjs.
13249         (copy_decl_to_var): Declare.
13250         * tree-inline.c (update_clone_info): Do not remap old_tree.
13251         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13252         statements, walk all extra generated statements and remap their
13253         operands.
13254         (redirect_all_calls): Add killed SSA names to a hash set.
13255         (remap_ssa_name): Do not remap killed SSA names.
13256         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13257         half of functionality moved to ipa_param_body_adjustments.
13258         (copy_decl_to_var): Make exported.
13259         (copy_body): Destroy killed_new_ssa_names hash set.
13260         (expand_call_inline): Remap performed splits.
13261         (update_clone_info): Likewise.
13262         (tree_function_versioning): Simplify tree_map processing.  Updated to
13263         accept ipa_param_adjustments and use ipa_param_body_adjustments.
13264         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13265         for the new interface.
13266         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13267         (simd_clone_compute_base_data_type): Likewise.
13268         (simd_clone_init_simd_arrays): Adjust for the new interface.
13269         (simd_clone_adjust_argument_types): Likewise.
13270         (struct modify_stmt_info): Likewise.
13271         (ipa_simd_modify_stmt_ops): Likewise.
13272         (ipa_simd_modify_function_body): Likewise.
13273         (simd_clone_adjust): Likewise.
13274         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
13275         (type_internals_preclude_sra_p): Make public.
13276         * tree-sra.h: New file.
13277         * ipa-inline-transform.c (save_inline_function_body): Update to
13278         refelct new tree_function_versioning signature.
13279         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13280         ipa_param_adjustments to get current parameter indices.
13281         (ipcp_modif_dom_walker::before_dom_children): Likewise.
13282         (ipcp_update_bits): Likewise.
13283         (ipcp_update_vr): Likewise.
13284         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13285         * ipa-sra.c: New file.
13286         * multiple_target.c (create_target_clone): Update to reflet new type
13287         of create_version_clone_with_body.
13288         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13289         tree_function_versioning.
13290         (modify_function): Update to reflect new type of
13291         tree_function_versioning.
13292         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13293         * passes.def: Remove old IPA-SRA and add new one.
13294         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13295         (make_pass_ipa_sra): Declare.
13296         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
13297         ipa_sra_retvalues.
13298         * doc/invoke.texi (ipa-sra-max-replacements): New.
13299
13300 2019-09-19  Martin Sebor  <msebor@redhat.com>
13301
13302         PR middle-end/91631
13303         * builtins.c (component_size): Correct trailing array computation,
13304         rename to component_ref_size and move...
13305         (compute_objsize): Adjust.
13306         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13307         (builtin_access::strict): Do not consider memmove.
13308         (builtin_access::write_off): New function.
13309         (builtin_memref::builtin_memref): Initialize refsize.
13310         (builtin_memref::set_base_and_offset): Adjust refoff and compute
13311         refsize.
13312         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13313         Handle refsize.
13314         (builtin_access::builtin_access): Initialize dstoff to destination
13315         refeence offset here instead of in maybe_diag_overlap.  Adjust
13316         referencess even to unrelated objects.  Adjust sizrange of bounded
13317         string functions to reflect bound.  For strcat, adjust destination
13318         sizrange by that of source.
13319         (builtin_access::strcat_overlap):  Adjust offsets and sizes
13320         to reflect the increase in destination sizrange above.
13321         (builtin_access::overlap): Do not set dstoff here but instead
13322         in builtin_access::builtin_access.
13323         (check_bounds_or_overlap): Use builtin_access::write_off.
13324         (maybe_diag_access_bounds): Add argument.  Add informational notes.
13325         (dump_builtin_memref, dump_builtin_access): New functions.
13326         * tree.c (component_ref_size): ...to here.
13327         * tree.h (component_ref_size): Declare.
13328         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13329         nul in the size of the source string.
13330
13331 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
13332
13333         PR c/67224
13334         * doc/cpp.texi: Document support for extended characters in
13335         identifiers.
13336         * doc/cppopts.texi: Likewise.
13337
13338 2019-09-19  Richard Biener  <rguenther@suse.de>
13339
13340         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13341         (check_reduction_path): New overload having the path as result.
13342         (vect_is_simple_reduction): From the detected reduction
13343         path build a SLP reduction chain if possible.
13344
13345 2019-09-19  Richard Biener  <rguenther@suse.de>
13346
13347         PR target/91814
13348         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13349         Force operand to a register if it isn't nonimmediate_operand.
13350
13351 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13352
13353         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13354         * config/arm/iterators.md (optab): Add and, ior, xor entries.
13355         (logical_op): Remove code attribute.
13356         (logical_OP): Likewise.
13357
13358 2019-09-19  Martin Liska  <mliska@suse.cz>
13359
13360         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13361         Use proper casting.
13362
13363 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
13364
13365         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13366         registers with %R.
13367
13368         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13369         for NE comparison of TImode values.
13370         (aarch64_emit_load_exclusive): Add support for TImode.
13371         (aarch64_emit_store_exclusive): Likewise.
13372         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13373         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13374         Change iterator from ALLI to ALLI_TI.
13375         (@atomic_compare_and_swap<JUST_TI>): New.
13376         (@atomic_compare_and_swap<JUST_TI>_lse): New.
13377         (aarch64_load_exclusive_pair): New.
13378         (aarch64_store_exclusive_pair): New.
13379         * config/aarch64/iterators.md (JUST_TI): New.
13380
13381         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13382         strong_zero_p for aarch64_track_speculation; unify some code paths;
13383         use aarch64_gen_compare_reg instead of open-coding.
13384
13385         * config/aarch64/aarch64.opt (-moutline-atomics): New.
13386         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13387         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13388         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13389         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13390         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13391         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13392         (atomic_<atomic_op><ALLI>): Likewise.
13393         (atomic_fetch_<atomic_op><ALLI>): Likewise.
13394         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13395         * doc/invoke.texi: Document -moutline-atomics.
13396
13397 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
13398
13399         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13400         trivial predicate for condition branch.
13401         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13402         for switch case.
13403         (compute_bb_predicates): Update predicate based on post-dominating
13404         relationship.
13405         (analyze_function_body): Calculate post-dominating information.
13406
13407 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
13408
13409         * tree-vectorizer.h (vectorizable_condition): Take an int
13410         reduction index instead of a boolean flag.
13411         * tree-vect-stmts.c (vectorizable_condition): Likewise.
13412         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13413         reductions if the reduction accumulator is the "then" rather
13414         than the "else" value.
13415         (vect_analyze_stmt): Update call accordingly.
13416         (vect_transform_stmt): Likewise.
13417         * tree-vect-loop.c (vectorizable_reduction): Likewise,
13418         asserting that the index is > 0.
13419
13420 2019-09-19  Martin Liska  <mliska@suse.cz>
13421
13422         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13423         (sort_congruence_classes_by_decl_uid): Likewise.
13424         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13425         easier sorting.
13426         (sem_item_optimizer::merge_classes): Likewise.
13427
13428 2019-09-19  Richard Biener  <rguenther@suse.de>
13429
13430         PR tree-optimization/91812
13431         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13432         volatile loads.
13433
13434 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
13435
13436         * defaults.h (TARGET_UNIT): New macro.
13437         (target_unit): New type.
13438         * rtl.h (native_encode_rtx, native_decode_rtx)
13439         (native_decode_vector_rtx, subreg_size_lsb): Declare.
13440         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13441         * rtlanal.c (subreg_lsb_1): Delete.
13442         (subreg_size_lsb): New function.
13443         * simplify-rtx.c: Include rtx-vector-builder.h
13444         (simplify_immed_subreg): Delete.
13445         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13446         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13447         functions.
13448         (simplify_subreg): Use them.
13449         (test_vector_subregs_modes, test_vector_subregs_repeating)
13450         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13451         (test_vector_subregs): New functions.
13452         (test_vector_ops): Call test_vector_subregs for integer vector
13453         modes with at least 2 elements.
13454
13455 2019-09-19  Richard Biener  <rguenther@suse.de>
13456
13457         * tree-parloops.c (parloops_is_slp_reduction): Do not set
13458         LOOP_VINFO_OPERANDS_SWAPPED.
13459         (parloops_is_simple_reduction): Likewise.
13460         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13461         initialize operands_swapped.
13462         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13463         (vect_is_slp_reduction): Do not swap operands.
13464         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13465         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13466
13467 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
13468
13469         PR target/87007
13470         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13471         Add avx_partial_xmm_update.
13472
13473 2019-09-18  Jim Wilson  <jimw@sifive.com>
13474
13475         PR target/91683
13476         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13477         (riscv_move_integer): Likewise.
13478         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13479         riscv_move_integer arg.
13480         (riscv_legitimize_move): Likewise.
13481         (riscv_force_temporary): New parameter in_splitter.  Don't call
13482         force_reg if true.
13483         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13484         arg.
13485         (riscv_add_offset): Likewise.
13486         (riscv_split_symbol): New parameter in_splitter.  Pass to
13487         riscv_force_temporary.
13488         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13489         arg.
13490         (riscv_move_integer): New parameter in_splitter.  New local
13491         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
13492         in_splitter TRUE.
13493         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13494         riscv_split_symbol, and riscv_force_temporary args.
13495         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13496         riscv_move_integer arg.
13497         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13498
13499 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
13500
13501         PR target/90878
13502         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13503         hard register store cost to 6.
13504
13505 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
13506
13507         PR target/91446
13508         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13509         pseudo register store cost from 3 to 6 to make it the same as
13510         QImode and HImode.
13511
13512 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13513
13514         PR target/91738
13515         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13516         (one_cmpldi2): Likewise.
13517         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13518         of the constant parts is simple.
13519         * config/arm/iterators.md (LOGICAL): Add new code iterator.
13520         (logical_op): Add new code attribute.
13521         (logical_OP): Likewise.
13522         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13523         (arm_iordi_operand): Add predicate.
13524         (arm_xordi_operand): Add predicate.
13525
13526 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13527
13528         * config/arm/arm.md (maddsidi4): Remove expander.
13529         (mulsidi3adddi): Remove pattern.
13530         (mulsidi3adddi_v6): Likewise.
13531         (mulsidi3_nov6): Likewise.
13532         (mulsidi3_v6): Likewise.
13533         (umulsidi3): Remove expander.
13534         (umulsidi3_nov6): Remove pattern.
13535         (umulsidi3_v6): Likewise.
13536         (umulsidi3adddi): Likewise.
13537         (umulsidi3adddi_v6): Likewise.
13538         (<Us>mulsidi3): Add combined expander.
13539         (<Us>maddsidi4): Likewise.
13540         (<US>mull): Add combined umull and smull pattern.
13541         (<US>mlal): Likewise.
13542         * config/arm/iterators.md (Us): Add new iterator.
13543
13544 2019-09-18  Richard Biener  <rguenther@suse.de>
13545
13546         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13547         swapping.
13548         (vectorize_fold_left_reduction): Remove assert.
13549         (vectorizable_reduction): Also expect COND_EXPR non-reduction
13550         operand in position 2.  Remove assert.
13551
13552 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13553
13554         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13555         (smulsi3_highpart_nov6): Remove pattern.
13556         (smulsi3_highpart_v6): Likewise.
13557         (umulsi3_highpart): Likewise.
13558         (umulsi3_highpart_nov6): Likewise.
13559         (umulsi3_highpart_v6): Likewise.
13560         (<US>mull_high): Add new combined multiply pattern.
13561
13562 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
13563
13564         * config/arm/arm.md (arm_mulsi3): Remove pattern.
13565         (arm_mulsi3_v6): Likewise.
13566         (mulsi3addsi_v6): Likewise.
13567         (mulsi3subsi): Likewise.
13568         (mul): Add new multiply pattern.
13569         (mla): Likewise.
13570         (mls): Likewise.
13571
13572 2019-09-18  Richard Biener  <rguenther@suse.de>
13573
13574         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13575         (parloops_valid_reduction_input_p): Copy from
13576         valid_reduction_input_p.
13577         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13578         (parloops_needs_fold_left_reduction_p): Copy from
13579         needs_fold_left_reduction_p.
13580         (parloops_is_simple_reduction): Copy from
13581         vect_is_simple_reduction.
13582         (parloops_force_simple_reduction): Copy from
13583         vect_force_simple_reduction.
13584         (gather_scalar_reductions): Adjust.
13585         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13586         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13587
13588 2019-09-18  Richard Biener  <rguenther@suse.de>
13589
13590         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13591         * tree-vect-loop.c (get_initial_def_for_reduction): Make
13592         static.
13593         (vect_create_epilog_for_reduction): Remove dead code.
13594
13595 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13596
13597         * varasm.c (assemble_real): Generate canonical const_ints.
13598
13599 2019-09-18  Richard Biener  <rguenther@suse.de>
13600
13601         PR lto/91763
13602         * lto-streamer-in.c (input_eh_regions): Move EH init to
13603         lto_materialize_function.
13604         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13605         Likewise.
13606
13607 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13608
13609         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13610         are INTEGER_CSTs.
13611
13612 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13613
13614         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13615         of checking specifically for INTEGER_CST.
13616
13617 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13618
13619         * stor-layout.c (compute_record_mode): Operate on poly_uint64
13620         sizes instead of uhwi sizes.
13621
13622 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
13623
13624         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13625         (add_const_value_attribute): Handle CONST_POLY_INT.
13626
13627 2019-09-18  Martin Liska  <mliska@suse.cz>
13628
13629         * dbgcnt.def (store_merging): New counter.
13630         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13631         Use it in store merging.
13632
13633 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13634
13635         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13636         function.
13637         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13638         * config/arm/arm.c (arm_sched_variable_issue): New function.
13639         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13640
13641 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13642
13643         * config/arm/types.md (no_reservation): New reservation.
13644         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13645         no_insn here.
13646         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13647         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13648         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13649         * config/arm/arm1020e.md (1020alu_op): Likewise.
13650         * config/arm/arm1026ejs.md (alu_op): Likewise.
13651         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13652         * config/arm/arm926ejs.md (9_alu_op): Likewise.
13653         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13654         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13655         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13656         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13657         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13658         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13659         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13660         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13661         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13662         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13663         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13664         * config/arm/fa526.md (526_alu_op): Likewise.
13665         * config/arm/fa606te.md (606te_alu_op): Likewise.
13666         * config/arm/fa626te.md (626te_alu_op): Likewise.
13667         * config/arm/fa726te.md (726te_alu_op): Likewise.
13668         * config/arm/xgene1.md (xgene1_nop): Likewise.
13669
13670 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13671
13672         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13673         "no_insn" to "branch".
13674
13675 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13676
13677         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13678
13679 2019-09-17  Richard Biener  <rguenther@suse.de>
13680
13681         PR debug/91772
13682         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13683         was missing generate locations only once.
13684
13685 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
13686
13687         PR ipa/91089
13688         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13689         option.
13690         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13691         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13692         for switch default case using range analysis information.
13693
13694 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
13695
13696         PR target/91749
13697         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13698         mode attributed is supported by FDPIC.
13699
13700 2019-09-17  Richard Biener  <rguenther@suse.de>
13701
13702         PR tree-optimization/91790
13703         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13704         use the correct DR for setting up realignment.
13705
13706 2019-09-16  Uroš Bizjak  <ubizjak@gmail.com>
13707
13708         PR target/91719
13709         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13710         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13711         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13712         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13713
13714 2019-09-16  Jason Merrill  <jason@redhat.com>
13715
13716         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13717
13718 2019-09-16  Martin Liska  <mliska@suse.cz>
13719
13720         * gimple-fold.c (or_comparisons_1): Remove rules moved
13721         to ...
13722         * match.pd: ... here.
13723
13724 2019-09-16  Martin Liska  <mliska@suse.cz>
13725
13726         * gimple-fold.c (or_comparisons_1): Remove rules
13727         moved to ...
13728         * match.pd: ... here.
13729
13730 2019-09-16  Martin Liska  <mliska@suse.cz>
13731
13732         * genmatch.c (dt_node::append_simplify): Do not print
13733         warning when we have duplicate patterns belonging
13734         to a same simplify rule.
13735         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13736         (maybe_fold_comparisons_from_match_pd): Handle
13737         tcc_comparison as a results.
13738         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13739
13740 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13741             Qi Feng  <ffengqi@linux.ibm.com>
13742
13743         PR middle-end/88784
13744         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
13745         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
13746         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13747         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
13748         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
13749         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13750         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13751         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
13752         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
13753         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13754         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
13755         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
13756
13757 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
13758             Martin Liska  <mliska@suse.cz>
13759
13760         * gimple-fold.c (and_comparisons_1): Add type as first
13761         argument.
13762         (and_var_with_comparison): Likewise.
13763         (and_var_with_comparison_1): Likewise.
13764         (or_comparisons_1): Likewise.
13765         (or_var_with_comparison): Likewise.
13766         (or_var_with_comparison_1): Likewise.
13767         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13768         (maybe_fold_or_comparisons): Likewise.
13769         (maybe_fold_comparisons_from_match_pd): New.
13770         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13771         (maybe_fold_or_comparisons): Likewise.
13772         * gimple.c (gimple_size): Make it public and add num_ops argument.
13773         (gimple_init): New function.
13774         (gimple_alloc): Call gimple_init.
13775         * gimple.h (gimple_size): New.
13776         (gimple_init): Likewise.
13777         * tree-if-conv.c (fold_or_predicates): Pass type.
13778         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13779         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13780         (optimize_vec_cond_expr): Likewise.
13781         (ovce_extract_ops): Return type of conditional expression.
13782         * tree-ssanames.c (init_ssa_name_imm_use): New.
13783         (make_ssa_name_fn): Use init_ssa_name_imm_use.
13784         * tree-ssanames.h (init_ssa_name_imm_use): New.
13785
13786 2019-09-16  Richard Biener  <rguenther@suse.de>
13787
13788         PR tree-optimization/91756
13789         PR tree-optimization/87132
13790         * tree-ssa-alias.h (enum translate_flags): New.
13791         (get_continuation_for_phi): Use it instead of simple bool flag.
13792         (walk_non_aliased_vuses): Likewise.
13793         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13794         (get_continuation_for_phi): When looking across backedges only
13795         disallow valueization.
13796         (walk_non_aliased_vuses): Adjust.
13797         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13798         if requested.
13799
13800 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
13801
13802         PR middle-end/80791
13803         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13804         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13805         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13806         * target.def (have_count_reg_decr_p): New hook.
13807         (doloop_cost_for_generic): Likewise.
13808         (doloop_cost_for_address): Likewise.
13809         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13810         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13811         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13812         * doc/tm.texi: Regenerate.
13813         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13814         addend.
13815         (record_group): Init doloop_p.
13816         (add_candidate_1): Add optional argument doloop, change the handlings
13817         accordingly.
13818         (add_candidate): Likewise.
13819         (generic_predict_doloop_p): Update attribute.
13820         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13821         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13822         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13823         MIN_EXPR.
13824         (get_computation_cost): Update for doloop IV cand extra cost.
13825         (determine_group_iv_cost_cond): Update for doloop IV cand.
13826         (determine_iv_cost): Likewise.
13827         (ivopts_estimate_reg_pressure): Likewise.
13828         (may_eliminate_iv): Update handlings for doloop IV cand.
13829         (add_iv_candidate_for_doloop): New function.
13830         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13831         (iv_ca_set_no_cp): Update for doloop IV cand.
13832         (iv_ca_set_cp): Likewise.
13833         (iv_ca_dump): Dump register cost.
13834         (find_doloop_use): New function.
13835         (analyze_and_mark_doloop_use): Likewise.
13836         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13837
13838 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13839
13840         PR middle-end/91708
13841         * cse.c (cse_insn): Do not replace anything with a
13842         MEM.
13843
13844 2019-09-13  Ian Lance Taylor  <iant@golang.org>
13845
13846         * doc/invoke.texi (Optimize Options): Fix typo.
13847
13848 2019-09-12  Uroš Bizjak  <ubizjak@gmail.com>
13849
13850         PR tree-optimization/89386
13851         * config/i386/sse.md (smulhrs<mode>3): New expander.
13852         (smulhrsv4hi3): Ditto.
13853
13854 2019-09-12  Richard Biener  <rguenther@suse.de>
13855
13856         PR tree-optimization/91750
13857         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13858         in the type of the evolution.
13859
13860 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
13861
13862         PR tree-optimization/89386
13863         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13864         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13865         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13866         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13867         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13868         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13869         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13870         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13871         (su, r): Handle the unspecs above.
13872         (bt): New int attribute.
13873         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13874         * internal-fn.c (first_commutative_argument): Commutativity info for
13875         above.
13876         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13877         (umulhrs_optab): New optabs.
13878         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13879         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13880         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13881         function.
13882         (vect_vect_recog_func_ptrs): Add it.
13883
13884 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
13885
13886         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13887         code.
13888
13889 2019-09-11  Nathan Sidwell  <nathan@acm.org>
13890
13891         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13892         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13893
13894 2019-09-11  Richard Biener  <rguenther@suse.de>
13895
13896         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13897         * lto-wrapper.c (merge_and_complain): Pick up -g.
13898         (append_compiler_options): Likewise.
13899         (run_gcc): Re-instantiate handling -g0 at link-time.
13900         * doc/invoke.texi (flto): Document debug info generation.
13901
13902 2019-09-11  Richard Biener  <rguenther@suse.de>
13903
13904         PR tree-optimization/90387
13905         * vr-values.c (vr_values::extract_range_basic): After inlining
13906         simplify non-constant __builtin_constant_p to false.
13907
13908 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
13909
13910         PR rtl-optimization/89795
13911         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13912         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13913
13914 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
13915
13916         PR tree-optimization/91723
13917         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13918         instead of pointer equality when checking if argument vectypes are
13919         the same.
13920
13921         PR middle-end/91725
13922         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13923         of get_nonzero_bits, only call it for integral types.
13924
13925 2019-09-11  Richard Biener  <rguenther@suse.de>
13926
13927         Revert
13928         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
13929
13930         * match.pd: Add flag_unsafe_math_optimizations check
13931         before deciding on the widest type in a binary math operation.
13932
13933 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
13934
13935         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13936         and CALL_REALLY_USED_REGISTERS must be defined, and that
13937         CALL_REALLY_USED_REGISTERS is preferred.
13938         * doc/tm.texi: Regenerate.
13939         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13940         (call_really_used_regs): Likewise.
13941         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13942         CALL_REALLY_USED_REGISTERS are defined.
13943         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13944         initial value if defined.
13945         (initial_call_really_used_regs): Delete.
13946         (saved_call_really_used_regs): Likewise.
13947         (CALL_REALLY_USED_REGNO_P): Likewise.
13948         (init_reg_sets): Remove handling of call_really_used_regs.
13949         (save_register_info, restore_register_info, globalize_reg): Likewise.
13950         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
13951         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
13952         outside operand_reg_set.
13953         (fix_register): Don't change call_used_regs if
13954         CALL_REALLY_USED_REGISTERS is defined.
13955         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13956         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13957         instead of call_really_used_regs.
13958         (csky_conditional_register_usage): Remove the old handling of
13959         call_used_regs and change the handling of call_really_used_regs
13960         to use call_used_regs instead.
13961         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13962         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13963         making a register fixed.
13964         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13965         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13966         instead of call_really_used_regs.
13967         (m32r_conditional_register_usage): Don't set call_used_regs when
13968         making a register fixed.
13969         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13970         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13971         instead of call_really_used_regs.
13972         (mips_interrupt_extra_call_saved_reg_p): Likewise.
13973         (mips_cfun_call_saved_reg_p): Likewise.
13974         (mips_swap_registers): Remove the old handling of call_used_regs
13975         and change the handling of call_really_used_regs to use call_used_regs
13976         instead.
13977         (mips_conditional_register_usage): Likewise.
13978         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13979         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13980         instead of call_really_used_regs.
13981         (mn10300_get_live_callee_saved_regs): Likewise.
13982         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13983         (mn10300_conditional_register_usage): Don't set call_used_regs when
13984         making a register fixed.
13985         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13986         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13987         Remove the old handling of call_used_regs and change the handling
13988         of call_really_used_regs to use call_used_regs instead.
13989         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13990         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13991         instead of call_really_used_regs.
13992         (s390_register_info_gprtofpr, s390_register_info): Likewise.
13993         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13994         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13995         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13996         (s390_conditional_register_usage): Remove the old handling of
13997         call_used_regs and change the handling of call_really_used_regs
13998         to use call_used_regs instead.
13999         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
14000         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
14001         (sh_fix_range, reg_unused_after): Likewise.
14002         (sh_conditional_register_usage): Remove the old handling of
14003         call_used_regs and change the handling of call_really_used_regs
14004         to use call_used_regs instead.
14005         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
14006         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
14007         call_used_regs when making a register fixed.
14008         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
14009         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
14010         call_used_regs when making a register fixed.
14011         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
14012         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
14013         set call_used_regs when making a register fixed.
14014         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
14015         * config/visium/visium.c (visium_conditional_register_usage): Remove
14016         the old handling of call_used_regs and change the handling of
14017         call_really_used_regs to use call_used_regs instead.
14018
14019 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14020
14021         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
14022         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
14023         * reginfo.c (call_used_regs): New macro.
14024
14025 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14026
14027         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
14028         fixed_regs test.
14029         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14030         (bpf_expand_epilogue): Likewise.
14031         * config/c6x/c6x.c (c6x_save_reg): Likewise.
14032         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14033         (ft32_expand_epilogue): Likewise.
14034         * config/i386/i386.c (ix86_save_reg): Likewise.
14035         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
14036         (moxie_expand_epilogue): Likewise.
14037         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14038         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14039         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14040
14041 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14042
14043         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
14044         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
14045         instead of testing call_used_regs directly.
14046         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
14047         (aarch64_components_for_bb): Likewise.
14048         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
14049         * config/arc/arc.c (arc_must_save_register): Likewise.
14050         (arc_epilogue_uses): Likewise.
14051         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
14052         (legitimize_pic_address, callee_saved_reg_p): Likewise.
14053         (arm_compute_save_reg0_reg12_mask): Likewise.
14054         (arm_compute_save_core_reg_mask): Likewise.
14055         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
14056         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
14057         (cmse_nonsecure_entry_clear_before_return): Likewise.
14058         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
14059         (arm_expand_epilogue): Likewise.
14060         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
14061         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
14062         (_reg_unused_after): Likewise.
14063         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
14064         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
14065         (add_to_reg, hwloop_optimize): Likewise.
14066         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14067         (bpf_expand_epilogue): Likewise.
14068         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
14069         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
14070         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
14071         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
14072         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
14073         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
14074         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
14075         * config/frv/frv.c (frv_stack_info): Likewise.
14076         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
14077         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
14078         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
14079         (move_callee_saved_registers): Likewise.
14080         * config/h8300/h8300.c (byte_reg): Likewise.
14081         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
14082         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
14083         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
14084         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
14085         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
14086         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
14087         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
14088         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
14089         * config/m32c/m32c.c (need_to_save): Likewise.
14090         * config/m68k/m68k.c (m68k_save_reg): Likewise.
14091         * config/mcore/mcore.c (calc_live_regs): Likewise.
14092         * config/microblaze/microblaze.c (microblaze_must_save_register):
14093         Likewise.
14094         * config/mmix/mmix.c (mmix_local_regno): Likewise.
14095         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
14096         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
14097         (mmix_expand_epilogue): Likewise.
14098         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
14099         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
14100         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
14101         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
14102         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
14103         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
14104         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
14105         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
14106         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
14107         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
14108         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
14109         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
14110         * config/rl78/rl78.c (need_to_save): Likewise.
14111         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
14112         (rs6000_stack_info, generate_set_vrsave): Likewise.
14113         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
14114         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
14115         * config/rx/rx.c (rx_get_stack_layout): Likewise.
14116         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14117         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
14118         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
14119         (save_local_or_in_reg_p): Likewise.
14120         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
14121         (xstormy16_epilogue_uses): Likewise.
14122         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14123         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14124         * config/v850/v850.c (compute_register_save_size): Likewise.
14125         * config/vax/vax.c (vax_expand_prologue): Likewise.
14126         * config/visium/visium.c (visium_save_reg_p): Likewise.
14127         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14128         * cselib.c (cselib_process_insn): Likewise.
14129         * df-scan.c (df_get_entry_block_def_set): Likewise.
14130         * function.c (aggregate_value_p): Likewise.
14131         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
14132         * ira-lives.c (process_bb_node_lives): Likewise.
14133         * ira.c (do_reload): Likewise.
14134         * lra-lives.c (process_bb_lives): Likewise.
14135         * lra-remat.c (lra_remat): Likewise.
14136         * lra.c (lra): Likewise.
14137         * postreload.c (reload_combine_recognize_pattern): Likewise.
14138         (reload_cse_move2add): Likewise.
14139         * recog.c (peep2_find_free_register): Likewise.
14140         * regrename.c (check_new_reg_p): Likewise.
14141         * reload.c (find_equiv_reg): Likewise.
14142         * reload1.c (reload, find_reg): Likewise.
14143         * sel-sched.c (init_hard_regs_data): Likewise.
14144
14145 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14146
14147         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
14148         regs_invalidated_by_call & ~fixed_reg_set instead of
14149         call_used_or_fixed_regs & ~fixed_reg_set.
14150         * config/sh/sh.c (output_stack_adjust): Likewise.
14151
14152 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14153
14154         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
14155         (call_used_reg_set): Delete.
14156         (call_used_or_fixed_regs): New macro.
14157         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
14158         of call_used_reg_set.
14159         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
14160         instead of call_used_regs.
14161         (save_call_clobbered_regs): Likewise.
14162         * cfgcleanup.c (old_insns_match_p): Likewise.
14163         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
14164         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14165         Likewise.
14166         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14167         * config/sh/sh.c (output_stack_adjust): Likewise.
14168         * final.c (collect_fn_hard_reg_usage): Likewise.
14169         * ira-build.c (ira_build): Likewise.
14170         * ira-color.c (calculate_saved_nregs): Likewise.
14171         (allocno_reload_assign, calculate_spill_cost): Likewise.
14172         * ira-conflicts.c (ira_build_conflicts): Likewise.
14173         * ira-costs.c (ira_tune_allocno_costs): Likewise.
14174         * ira-lives.c (process_bb_node_lives): Likewise.
14175         * ira.c (setup_reg_renumber): Likewise.
14176         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
14177         * lra-constraints.c (need_for_call_save_p): Likewise.
14178         (need_for_split_p, inherit_in_ebb): Likewise.
14179         * lra-lives.c (process_bb_lives): Likewise.
14180         * lra-remat.c (call_used_input_regno_present_p): Likewise.
14181         * postreload.c (reload_combine): Likewise.
14182         * regrename.c (find_rename_reg): Likewise.
14183         * reload1.c (reload_as_needed): Likewise.
14184         * rtlanal.c (find_all_hard_reg_sets): Likewise.
14185         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14186         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14187
14188 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14189
14190         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
14191         (no_caller_save_reg_set): Delete.
14192         * caller-save.c (init_caller_save): Don't initialize it.
14193         * ira-conflicts.c (ira_build_conflicts): Calculate
14194         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
14195
14196 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14197
14198         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14199         (target_hard_regs::x_savable_regs): New field.
14200         (call_fixed_reg_set): Delete.
14201         (savable_regs): New macro,
14202         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14203         (init_reg_sets_1): Likewise.  Initialize savable_regs.
14204         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14205         for all registers.  Set savable_regs instead of call_fixed_reg_set.
14206         (setup_save_areas, save_call_clobbered_regs): Replace uses of
14207         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14208         * config/sh/sh.c (output_stack_adjust): Likewise.
14209
14210 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14211
14212         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14213         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14214         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14215
14216 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14217
14218         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14219         * rtlanal.c (get_call_rtx_from): Likewise.
14220         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14221         than the pattern to get_call_rtx_from.
14222         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14223         an rtx_insn * instead of an rtx.
14224         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14225
14226 2019-09-10  Martin Liska  <mliska@suse.cz>
14227
14228         * common.opt: Use newly added WarnRemoved.
14229         * config/aarch64/aarch64.opt: Likewise.
14230         * config/arm/arm.opt: Likewise.
14231         * config/i386/i386.opt: Likewise.
14232         * config/ia64/ia64.opt: Likewise.
14233         * config/rs6000/rs6000.opt: Likewise.
14234         * doc/options.texi: Document WarnRemoved properly.
14235         * dwarf2out.c (gen_producer_string): Handle renamed
14236         OPT_SPECIAL_warn_removed.
14237         * lto-opts.c (lto_write_options): Likewise.
14238         * lto-wrapper.c (merge_and_complain): Likewise.
14239         * opts-common.c (decode_cmdline_option): Likewise.
14240         (prune_options): Likewise.
14241         (read_cmdline_option): Likewise.
14242         (control_warning_option): Likewise.
14243         * opts.c (print_filtered_help): Likewise.
14244         * optc-gen.awk: Parse for WarnRemoved and make usage
14245         of Deprecated an error.
14246         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14247
14248 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
14249
14250         * doc/install.texi: Fix syntax for html generation.
14251
14252 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
14253
14254         PR middle-end/91680
14255         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14256         the shift type to type.
14257
14258 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14259
14260         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14261         FDPIC mode.
14262         (stack_protect_combined_test_insn): Likewise.
14263
14264 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14265             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14266
14267         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14268         * config/arm/arm.md (FDPIC_REGNUM): New constant.
14269         (load_tp_soft_fdpic): New pattern.
14270         (load_tp_soft): Disable in FDPIC mode.
14271
14272 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14273             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14274
14275         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14276         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14277         (arm_call_tls_get_addr): Add FDPIC support.
14278         (legitimize_tls_address): Likewise.
14279         (arm_emit_tls_decoration): Likewise.
14280
14281 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14282             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14283
14284         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14285         support.
14286         (arm_trampoline_init): Likewise.
14287         (arm_trampoline_adjust_address): Likewise.
14288         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14289
14290 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14291             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14292
14293         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14294         (legitimize_pic_address): Enforce binding rules on function
14295         pointers in FDPIC mode.
14296         (arm_assemble_integer): Likewise.
14297
14298 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14299             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14300
14301         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14302         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14303         FDPIC.
14304
14305 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14306             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14307
14308         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14309         field.
14310
14311 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14312             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14313
14314         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14315         in FDPIC mode.
14316         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14317         new function.
14318         * config/arm/arm.c (arm_option_override): Define pic register to
14319         FDPIC_REGNUM.
14320         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14321         have no decl or go through PLT.
14322         (calculate_pic_address_constant): New function.
14323         (legitimize_pic_address): Call calculate_pic_address_constant.
14324         (arm_load_pic_register): Handle TARGET_FDPIC.
14325         (arm_is_segment_info_known): New function.
14326         (arm_pic_static_addr): Add support for FDPIC.
14327         (arm_load_function_descriptor): New function.
14328         (arm_emit_call_insn): Add support for FDPIC.
14329         (arm_assemble_integer): Add support for FDPIC.
14330         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14331         Define. (FDPIC_REGNUM): New define.
14332         * config/arm/arm.md (call): Add support for FDPIC.
14333         (call_value): Likewise.
14334         (restore_pic_register_after_call): New pattern.
14335         (untyped_call): Disable if FDPIC.
14336         (untyped_return): Likewise.
14337         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14338
14339 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14340             MickaĂ«l GuĂŞnĂ© <mickael.guene@st.com>
14341
14342         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14343         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14344         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14345         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14346         (CC1_SPEC): Use FDPIC_CC1_SPEC.
14347         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14348         * config/arm/uclinuxfdpiceabi.h: New file.
14349
14350 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14351
14352         * config.gcc: Handle *-*-uclinuxfdpiceabi.
14353
14354 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14355             MickaĂ«l GuĂŞnĂ©  <mickael.guene@st.com>
14356
14357         * config/arm/arm.opt: Add -mfdpic option.
14358         * doc/invoke.texi: Add documentation for -mfdpic.
14359
14360 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14361
14362         * expmed.c (extract_bit_field): Update function comment
14363         regarding alt_rtl.
14364         * expr.c (expand_expr_real): Update function comment
14365         regarding alt_rtl.
14366         (expand_misaligned_mem_ref): New helper function.
14367         (expand_expr_real_2): Use expand_misaligned_mem_ref.
14368         Remove duplicate assignment to "base" at case MEM_REF.
14369         Remove a shadowed variable "unsignedp" at case VCE. 
14370
14371 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14372
14373         * regset.h (regs_invalidated_by_call_regset): Delete.
14374         (fixed_reg_set_regset): Likewise.
14375         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14376         (fixed_reg_set_regset, persistent_obstack): Likewise.
14377         (init_reg_sets_1, globalize_reg): Update accordingly.
14378         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14379         instead of a bitmap.
14380         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14381         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14382         instead of regs_invalidated_by_call_regset.
14383         (df_lr_confluence_n, df_md_confluence_n): Likewise.
14384         * df-scan.c (df_scan_start_dump): Likewise.
14385         * dse.c (copy_fixed_regs): Likewise.
14386         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14387
14388 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14389
14390         * array-traits.h: New file.
14391         * coretypes.h (array_traits, bitmap_view): New types.
14392         * bitmap.h: Include "array-traits.h"
14393         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14394         (base_bitmap_view, bitmap_view): New classes.
14395         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14396         * hard-reg-set.h: Include array-traits.h.
14397         (array_traits<HARD_REG_SET>): New struct.
14398         * regset.h (IOR_REG_SET_HRS): New macro.
14399         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14400         rather than iterating over each hard register.
14401         * sched-deps.c (sched_analyze_insn): Likewise.
14402         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14403
14404 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14405
14406         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14407         instead of a HARD_REG_SET *.
14408         * ira-build.c (ior_hard_reg_conflicts): Likewise.
14409         (ira_build): Update call accordingly.
14410         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14411
14412 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14413
14414         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14415         (HARD_REG_SET::operator!=): Likewise.
14416         (hard_reg_set_equal_p): Delete.
14417         * cfgcleanup.c (old_insns_match_p): Use == instead of
14418         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14419         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14420         (add_allocno_hard_regs_to_forest): Likewise.
14421         (setup_allocno_available_regs_num): Likewise.
14422         * ira.c (setup_pressure_classes): Likewise.
14423         (setup_allocno_and_important_classes): Likewise.
14424         (setup_reg_class_relations): Likewise.
14425         * lra-lives.c (process_bb_lives): Likewise.
14426         * reg-stack.c (change_stack, convert_regs_1): Likewise.
14427
14428 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14429
14430         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14431         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14432         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14433         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14434         Likewise.
14435         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14436         * ira.c (setup_reg_renumber): Likewise.
14437         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14438         * regrename.c (regrename_find_superclass): Likewise.
14439         * reload1.c (find_reg): Likewise.
14440
14441 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14442
14443         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14444         * caller-save.c (setup_save_areas): Use "&~" instead of
14445         AND_COMPL_HARD_REG_SET.
14446         (save_call_clobbered_regs): Likewise.
14447         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14448         Likewise.
14449         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14450         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14451         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14452         * config/mips/mips.c (mips_class_max_nregs): Likewise.
14453         (mips_conditional_register_usage): Likewise.
14454         * config/sh/sh.c (output_stack_adjust): Likewise.
14455         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14456         (setup_profitable_hard_regs): Likewise.
14457         (get_conflict_and_start_profitable_regs): Likewise.
14458         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14459         (ira_build_conflicts): Likewise.
14460         * ira-costs.c (restrict_cost_classes): Likewise.
14461         (setup_regno_cost_classes_by_aclass): Likewise.
14462         * ira-lives.c (process_bb_node_lives): Likewise.
14463         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14464         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14465         (setup_allocno_and_important_classes, setup_class_translate_array)
14466         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14467         Likewise.
14468         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14469         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14470         (process_alt_operands, inherit_in_ebb): Likewise.
14471         * lra-eliminations.c (update_reg_eliminate): Likewise.
14472         * lra-lives.c (process_bb_lives): Likewise.
14473         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14474         * resource.c (find_dead_or_set_registers): Likewise.
14475         (mark_target_live_regs): Likewise.
14476         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14477         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14478         (implicit_clobber_conflict_p): Likewise.
14479         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14480         (try_shrink_wrapping): Likewise.
14481
14482 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14483
14484         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14485         (HARD_REG_SET::operator|=): Likewise.
14486         (IOR_HARD_REG_SET): Delete.
14487         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14488         IOR_HARD_REG_SET.
14489         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14490         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14491         * final.c (collect_fn_hard_reg_usage): Likewise.
14492         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14493         * ira-build.c (merge_hard_reg_conflicts): Likewise.
14494         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14495         (propagate_some_info_from_allocno): Likewise.
14496         (copy_info_to_removed_store_destinations): Likewise.
14497         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14498         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14499         (fast_allocation): Likewise.
14500         * ira-conflicts.c (ira_build_conflicts): Likewise.
14501         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14502         (process_bb_node_lives): Likewise.
14503         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14504         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14505         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14506         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14507         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14508         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14509         (process_bb_lives): Likewise.
14510         * lra-spills.c (assign_spill_hard_regs): Likewise.
14511         * postreload.c (reload_combine): Likewise.
14512         * reginfo.c (init_reg_sets_1): Likewise.
14513         * regrename.c (merge_overlapping_regs, find_rename_reg)
14514         (merge_chains): Likewise.
14515         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14516         (find_reload_regs, finish_spills, choose_reload_regs_init)
14517         (emit_reload_insns): Likewise.
14518         * reorg.c (redundant_insn): Likewise.
14519         * resource.c (find_dead_or_set_registers, mark_set_resources)
14520         (mark_target_live_regs): Likewise.
14521         * rtlanal.c (find_all_hard_reg_sets): Likewise.
14522         * sched-deps.c (sched_analyze_insn): Likewise.
14523         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14524         (find_best_reg_for_expr): Likewise.
14525         * shrink-wrap.c (try_shrink_wrapping): Likewise.
14526
14527 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14528
14529         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14530         (HARD_REG_SET::operator&): Likewise.
14531         (AND_HARD_REG_SET): Delete.
14532         * caller-save.c (setup_save_areas): Use "&" instead of
14533         AND_HARD_REG_SET.
14534         (save_call_clobbered_regs): Likewise.
14535         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14536         * config/m32c/m32c.c (reduce_class): Likewise.
14537         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14538         * final.c (get_call_reg_set_usage): Likewise.
14539         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14540         (setup_left_conflict_sizes_p): Likewise.
14541         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14542         (ira_build_conflicts): Likewise.
14543         * ira-costs.c (restrict_cost_classes): Likewise.
14544         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14545         (setup_reg_class_relations): Likewise.
14546         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14547         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14548         * resource.c (find_dead_or_set_registers): Likewise.
14549         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14550
14551 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14552
14553         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14554         (COMPL_HARD_REG_SET): Delete.
14555         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14556         of COMPL_HARD_REG_SET.
14557         (try_rename_operands): Likewise.
14558         * config/sh/sh.c (push_regs): Likewise.
14559         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14560         * lra-constraints.c (contains_reg_p): Likewise.
14561         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14562
14563 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14564
14565         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14566         * caller-save.c (save_call_clobbered_regs): Use assignment instead
14567         of COPY_HARD_REG_SET.
14568         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14569         (epiphany_conditional_register_usage): Likewise.
14570         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14571         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14572         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14573         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14574         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14575         * config/mips/mips.c (mips_class_max_nregs): Likewise.
14576         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14577         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14578         * config/sh/sh.c (output_stack_adjust): Likewise.
14579         * final.c (collect_fn_hard_reg_usage): Likewise.
14580         (get_call_reg_set_usage): Likewise.
14581         * ira-build.c (ira_create_object, remove_low_level_allocnos)
14582         (ira_flattening): Likewise.
14583         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14584         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14585         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14586         (ira_reassign_pseudos): Likewise.
14587         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14588         (ira_build_conflicts): Likewise.
14589         * ira-costs.c (restrict_cost_classes): Likewise.
14590         (setup_regno_cost_classes_by_aclass): Likewise.
14591         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14592         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14593         (setup_stack_reg_pressure_class, setup_pressure_classes)
14594         (setup_allocno_and_important_classes, setup_class_translate_array)
14595         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14596         (ira_setup_eliminable_regset): Likewise.
14597         * lra-assigns.c (find_hard_regno_for_1): Likewise.
14598         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14599         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14600         (process_alt_operands, inherit_in_ebb): Likewise.
14601         * lra-lives.c (process_bb_lives): Likewise.
14602         * lra-spills.c (assign_spill_hard_regs): Likewise.
14603         * lra.c (lra): Likewise.
14604         * mode-switching.c (new_seginfo): Likewise.
14605         * postreload.c (reload_combine): Likewise.
14606         * reg-stack.c (straighten_stack): Likewise.
14607         * reginfo.c (save_register_info, restore_register_info): Likewise.
14608         (init_reg_sets_1, record_subregs_of_mode): Likewise
14609         * regrename.c (create_new_chain, rename_chains): Likewise.
14610         * reload1.c (order_regs_for_reload, find_reg): Likewise.
14611         (find_reload_regs): Likewise.
14612         * resource.c (find_dead_or_set_registers): Likewise.
14613         (mark_target_live_regs): Likewise.
14614         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14615
14616 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14617
14618         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14619         (note_pattern_stores): Declare.
14620         (note_stores): Take an rtx_insn *.
14621         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14622         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14623         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14624         (note_stores): Take an rtx_insn * as argument and process
14625         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
14626         (note_pattern_stores): ...this.
14627         (find_first_parameter_load): Pass the insn rather than
14628         its pattern to note_stores.
14629         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14630         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14631         (insert_one_insn): Likewise.
14632         * combine.c (combine_instructions): Likewise.
14633         (likely_spilled_retval_p): Likewise.
14634         (try_combine): Use note_pattern_stores instead of note_stores.
14635         (record_dead_and_set_regs): Pass the insn rather than its pattern
14636         to note_stores.
14637         (reg_dead_at_p): Likewise.
14638         * config/bfin/bfin.c (workaround_speculation): Likewise.
14639         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
14640         rather than an rtx.
14641         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14642         instead of note_stores.
14643         (frv_optimize_membar_local): Pass the insn rather than its pattern
14644         to note_stores.
14645         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14646         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14647         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14648         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14649         (mips_reorg_process_insns): Likewise.
14650         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14651         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
14652         rather than rtxes.
14653         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14654         its pattern to note_stores.
14655         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14656         of note_stores.
14657         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14658         the insn to note_stores.
14659         (prescan_insns_for_dce): Update call accordingly.
14660         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14661         to note_stores.
14662         * df-problems.c (can_move_insns_across): Likewise.
14663         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14664         * function.c (assign_parm_setup_reg): Likewise.
14665         * gcse-common.c (record_last_mem_set_info_common): Likewise.
14666         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14667         (single_set_gcse): Likewise.
14668         * ira.c (validate_equiv_mem): Likewise.
14669         (update_equiv_regs): Use note_pattern_stores rather than note_stores
14670         for no_equiv.
14671         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14672         pattern to note_stores.
14673         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14674         * loop-iv.c (simplify_using_initial_values): Likewise.
14675         * mode-switching.c (optimize_mode_switching): Likewise.
14676         * optabs.c (emit_libcall_block_1): Likewise.
14677         (expand_atomic_compare_and_swap): Likewise.
14678         * postreload-gcse.c (load_killed_in_block_p): Likewise.
14679         (record_opr_changes): Likewise.  Remove explicit handling of
14680         CALL_INSN_FUNCTION_USAGE.
14681         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14682         * regcprop.c (kill_clobbered_values): Likewise.
14683         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14684         to note_stores.
14685         * regrename.c (build_def_use): Likewise.
14686         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
14687         for mark_not_eliminable.
14688         (reload_as_needed): Pass the insn rather than its pattern
14689         to note_stores.
14690         (emit_output_reload_insns): Likewise.
14691         * resource.c (mark_target_live_regs): Likewise.
14692         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14693         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14694         instead of note_stores.
14695         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14696         its pattern to note_stores.
14697         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14698         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14699
14700 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14701
14702         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14703         than a #define.  Use a structure rather than an array as the
14704         fallback definition.  Remove special cases for low array sizes.
14705         (const_hard_reg_set): New typedef.
14706         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14707         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14708         (hard_reg_set_empty_p): Likewise.
14709         (SET_HARD_REG_BIT): Use a function rather than a macro to
14710         handle the case in which HARD_REG_SET is a structure.
14711         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14712         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14713         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14714         (IOR_COMPL_HARD_REG_SET): Likewise.
14715         (hard_reg_set_iterator::pset): Constify the pointer target.
14716         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14717         of a "const HARD_REG_SET".  Update the handling of non-integer
14718         HARD_REG_SETs.
14719         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14720         * reload.h: Likewise.
14721         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14722         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14723         of a "const HARD_REG_SET".
14724         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14725         (range_in_hard_reg_set_p): Likewise.
14726         * ira-costs.c (restrict_cost_classes): Likewise.
14727         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14728         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14729         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14730         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14731         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14732         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14733         take an unsigned int and open-code the HARD_REG_SET operations.
14734
14735 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14736
14737         * Makefile.in (OBJS): Remove bt-load.o.
14738         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14739         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14740         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14741         document that the option no longer does anything.
14742         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14743         * target.def (branch_target_register_class): Delete.
14744         (branch_target_register_callee_saved): Likewise.
14745         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14746         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14747         * doc/tm.texi: Regenerate.
14748         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14749         (make_pass_branch_target_load_optimize2): Likewise.
14750         * passes.def (pass_branch_target_load_optimize1): Likewise.
14751         (pass_branch_target_load_optimize2): Likewise.
14752         * targhooks.h (default_branch_target_register_class): Likewise.
14753         * targhooks.c (default_branch_target_register_class): Likewise.
14754         * opt-suggestions.c (test_completion_valid_options): Remove
14755         -fbtr-bb-exclusive from the list of test options.
14756         * bt-load.c: Remove.
14757
14758 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
14759
14760         * match.pd: Add flag_unsafe_math_optimizations check
14761         before deciding on the widest type in a binary math operation.
14762
14763 2019-09-09  Martin Liska  <mliska@suse.cz>
14764
14765         * config/i386/i386.opt: Update comment of removed
14766         options that are preserved only for backward
14767         compatibility.
14768
14769 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
14770
14771         PR target/87853
14772         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14773         instead of __v16qs.
14774
14775         PR target/91704
14776         * config/i386/avxintrin.h (__v32qs): New typedef.
14777         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14778         instead of __v32qi.
14779
14780 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14781
14782         * doc/invoke.texi (Option Summary): Cover eBPF.
14783         (eBPF Options): New section.
14784         * doc/extend.texi (BPF Built-in Functions): Likewise.
14785         (BPF Kernel Helpers): Likewise.
14786
14787 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14788
14789         * config.gcc: Support for bpf-*-* targets.
14790         * common/config/bpf/bpf-common.c: New file.
14791         * config/bpf/t-bpf: Likewise.
14792         * config/bpf/predicates.md: Likewise.
14793         * config/bpf/constraints.md: Likewise.
14794         * config/bpf/bpf.opt: Likewise.
14795         * config/bpf/bpf.md: Likewise.
14796         * config/bpf/bpf.h: Likewise.
14797         * config/bpf/bpf.c: Likewise.
14798         * config/bpf/bpf-protos.h: Likewise.
14799         * config/bpf/bpf-opts.h: Likewise.
14800         * config/bpf/bpf-helpers.h: Likewise.
14801         * config/bpf/bpf-helpers.def: Likewise.
14802
14803 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14804
14805         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14806         indirect_calls.
14807
14808 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
14809
14810         * opt-functions.awk (integer_range_info): Make sure values are in
14811         numeric context before operating with them.
14812
14813 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
14814
14815         * genemit.c (gen_split): Print the filename and line number where the
14816         splitter (or peephole2) was defined, to the dump file.
14817
14818 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
14819
14820         PR tree-optimization/91665
14821         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14822         incompatible with the type of PHI result.
14823
14824 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14825
14826         PR target/91684
14827         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14828         gen_unaligned_storedi for 4-byte aligned addresses.
14829
14830 2019-09-06  Jim Wilson  <jimw@sifive.com>
14831
14832         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14833         change.
14834
14835 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14836
14837         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14838
14839 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
14840
14841         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14842         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14843
14844 2019-09-06  Uroš Bizjak  <ubizjak@gmail.com>
14845
14846         PR target/91654
14847         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14848         cost of SSE->integer and integer->SSE moves from 2 to 6.
14849         (core_cost): Ditto.
14850
14851 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
14852
14853         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14854         before testing TYPE_TRANSPARENT_AGGR.
14855         * calls.c (initialize_argument_information, load_register_parameters):
14856         Likewise.
14857
14858 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
14859
14860         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14861         high regs.
14862         (cmp_ior): Likewise.
14863
14864 2019-09-06  Martin Liska  <mliska@suse.cz>
14865
14866         * doc/match-and-simplify.texi: Separate tuples with ;.
14867
14868 2019-09-06  Martin Liska  <mliska@suse.cz>
14869
14870         PR c++/91125
14871         * Makefile.in: Remove tlink.o.
14872         * collect2.c (do_link): New function isolated
14873         from do_tlink.
14874         (main): Use.
14875         * collect2.h (do_tlink): Remove declaration of do_tlink.
14876         * doc/extend.texi: Remove documentation of -frepo.
14877         * doc/invoke.texi: Likewise.
14878         * doc/sourcebuild.texi: Remove cleanup-repo-files.
14879         * tlink.c: Remove.
14880
14881 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14882             Jim Wilson  <jimw@sifive.com>
14883
14884         PR target/91635
14885         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14886         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14887         paradoxical_subreg_p (operands[0]).
14888         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14889         use as intermediate value.
14890
14891 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
14892
14893         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14894         (sync_compare_and_swap<mode>_insn): Likewise.
14895
14896 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14897
14898         PR middle-end/91615
14899         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14900         without movmisalign optab.
14901
14902 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
14903
14904         PR middle-end/91001
14905         PR middle-end/91105
14906         PR middle-end/91106
14907         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14908         types, use type of their first field instead of type of
14909         args[i].tree_value.
14910
14911 2019-09-05  Richard Biener  <rguenther@suse.de>
14912
14913         PR rtl-optimization/91656
14914         * postreload-gcse.c (record_last_mem_set_info): Revert addition
14915         of early out.
14916
14917 2019-09-05  Richard Biener  <rguenther@suse.de>
14918
14919         PR middle-end/90501
14920         * tree-inline.c (declare_return_variable): Mark the return
14921         slot as addressable after building an address of it.
14922
14923 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
14924
14925         * doc/install.texi: Update and clarify requirements to build GNAT.
14926
14927 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
14928
14929         PR middle-end/91577
14930         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14931         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14932         call to be in memory.
14933         (pass_expand::execute): Call discover_nonconstant_array_refs before
14934         setting currently_expanding_to_rtl.
14935
14936 2019-09-04  Caroline Tice  <cmtice@google.com>
14937
14938         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14939         specified together.
14940
14941 2019-09-04  Marek Polacek  <polacek@redhat.com>
14942
14943         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14944
14945 2019-09-04  Uroš Bizjak  <ubizjak@gmail.com>
14946
14947         PR target/32413
14948         * config/i386/i386.c (inline_secondary_memory_needed): Return true
14949         for QI and HImode moves between SSE and general registers.
14950
14951 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14952
14953         PR c/78736
14954         * doc/invoke.texi: Document -Wenum-conversion.
14955
14956 2019-09-04  Richard Biener  <rguenther@suse.de>
14957
14958         PR rtl-optimization/36262
14959         * postreload-gcse.c: Include intl.h and gcse.h.
14960         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14961         to avoid linear list walk.
14962         (record_last_mem_set_info): Gate off if not computing transparentness.
14963         (get_bb_avail_insn): If transparentness isn't computed give up
14964         early.
14965         (gcse_after_reload_main): Skip compute_transp and extended PRE
14966         if gcse_or_cprop_is_too_expensive says so.
14967
14968 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14969
14970         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14971         noinit section.
14972         (msp430_select_section): Handle decls with the "noinit" attribute with
14973         default_elf_select_section.
14974         Handle SECCAT_RODATA_MERGE_* section types with
14975         default_elf_select_section.
14976         Add comments about handling of unsupported section types.
14977         (msp430_section_type_flags): Remove handling of the noinit section.
14978
14979 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14980
14981         * config/msp430/msp430.c (msp430_attr): Remove warnings about
14982         conflicting msp430-specific attributes.
14983         (msp430_section_attr): Likewise.
14984         Add warnings about conflicts with generic "noinit" and "section"
14985         attributes.
14986         Fix grammar in -mlarge error message.
14987         (msp430_data_attr): Rename to msp430_persist_attr.
14988         Add warnings about conflicts with generic "noinit" and "section"
14989         attributes.
14990         Add warning for when variable is not initialized.
14991         Chain conditionals which prevent the attribute being added.
14992         (ATTR_EXCL): New helper.
14993         (attr_reent_exclusions): New exclusion table.
14994         (attr_naked_exclusions): Likewise.
14995         (attr_crit_exclusions): Likewise.
14996         (attr_lower_exclusions): Likewise.
14997         (attr_upper_exclusions): Likewise.
14998         (attr_either_exclusions): Likewise.
14999         (attr_persist_exclusions): Likewise.
15000         (msp430_attribute_table): Update with exclusion rules.
15001         (msp430_output_aligned_decl_common): Don't output common symbol if decl
15002         has a section.
15003
15004 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15005
15006         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
15007         (msp430_handle_generic_attribute): New function.
15008         * doc/tm.texi: Regenerate.
15009         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
15010         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15011         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15012         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
15013
15014 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
15015
15016         PR tree-optimization/91504
15017         * match.pd: Add ((~a & b) ^a) --> (a | b).
15018
15019 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15020
15021         PR target/91604
15022         * config/i386/i386-expand.c (split_double_mode): If there is more than
15023         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
15024         already split matching MEM operand instead of calling adjust_address
15025         again.
15026
15027 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
15028
15029         * config.gcc: Obsolete spu target.  Remove references to spu.
15030         * configure.ac: Remove references to spu.
15031         * configure: Regenerate.
15032         * config/spu/: Remove directory.
15033         * common/config/spu/: Remove directory.
15034
15035         * doc/extend.texi: Remove references to spu.
15036         * doc/invoke.texi: Likewise.
15037         * doc/md.texi: Likewise.
15038         * doc/sourcebuild.texi: Likewise.
15039
15040 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15041
15042         PR middle-end/91603
15043         PR middle-end/91612
15044         PR middle-end/91613
15045         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
15046         and SSA_NAME referring to CONSTANT_P correctly.
15047
15048 2019-09-03  Richard Biener  <rguenther@suse.de>
15049
15050         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
15051         (vn_nary_op_insert): Likewise.
15052         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
15053         (vn_nary_op_lookup): Likewise.
15054         (vn_nary_op_insert): Likewise.
15055
15056 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
15057
15058         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
15059         (*op0, 1) instead of XEXP (*op1, 0).
15060
15061 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15062
15063         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
15064         (aarch64_fjcvtzs): New define_insn.
15065         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
15066         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
15067         Add AARCH64_JSCVT.
15068         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
15069         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
15070         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15071         __ARM_FEATURE_JCVT where appropriate.
15072         * config/aarch64/arm_acle.h (__jcvt): Define.
15073
15074 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15075
15076         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
15077         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
15078         (aarch64_<frintnzs_op><mode>): New define_insn.
15079         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
15080         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15081         __ARM_FEATURE_FRINT when appropriate.
15082         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
15083         frint32x, frint64z, frint64x.
15084         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
15085         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
15086         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
15087         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
15088         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
15089         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
15090         * config/aarch64/iterators.md (VSFDF): Define.
15091         (FRINTNZX): Likewise.
15092         (frintnzs_op): Likewise.
15093
15094 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
15095
15096         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
15097         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
15098         Cortex-A34.
15099         * config/aarch64/aarch64-tune.md: Regenerated.
15100         * doc/invoke.texi: Document the new processors.
15101
15102 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15103
15104         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
15105         string.
15106         (ssbs): Likewise.
15107         (sve2): Likewise.
15108         (sve2-sm4): Likewise.
15109         (sveaes): Likewise.
15110         (svesha3): Likewise.
15111         (svebitperm): Likewise.
15112
15113 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15114             Richard Biener  <rguenther@suse.de>
15115
15116         PR tree-optimization/91597
15117         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
15118         BIT_AND_EXPR optimization for pointers, even if both operand
15119         ranges don't include NULL, the result can be NULL.
15120
15121 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15122
15123         PR middle-end/91605
15124         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
15125         (non_mem_decl_p): ...this.
15126         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
15127         (expand_assignment): Call mem_ref_referes_to_non_mem_p
15128         unconditionally as before.
15129
15130 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15131
15132         PR target/91323
15133         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
15134         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
15135         * tree.def (LTGT_EXPR): Likewise.
15136         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
15137
15138 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
15139
15140         PR go/91617
15141         * fold-const.c (range_check_type): For enumeral and boolean
15142         type, pass 1 to type_for_size langhook instead of
15143         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
15144         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
15145         (build_range_check): Don't call unsigned_type_for for pointer types.
15146         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
15147         range_check_type result.
15148
15149 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15150
15151         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
15152         (replace_ref): Do not replace a chain of only two candidates which are
15153         valid memory references.
15154
15155 2019-09-02  Martin Liska  <mliska@suse.cz>
15156
15157         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
15158         Bail out when we'll end up with the same number of clusters as
15159         at the beginning.
15160         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
15161         (jump_table_cluster::can_be_handled): Remove the guard
15162         as it's already handled in ::is_enabled.  Allocate output
15163         after early bail out.
15164
15165 2019-09-02  Martin Liska  <mliska@suse.cz>
15166
15167         PR gcov-profile/91601
15168         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
15169         (path_contains_zero_or_negative_cycle_arc): ... this and handle
15170         also negative edges.
15171         (circuit): Handle also negative edges as they can happen
15172         in some situations.
15173
15174 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
15175
15176         PR target/91472
15177         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
15178         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
15179         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
15180
15181 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
15182
15183         PR middle-end/91623
15184         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
15185         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
15186         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
15187         zero vector.
15188
15189         PR lto/91572
15190         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
15191         GIMPLE_ASM TREE_LIST operands.
15192
15193 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
15194
15195         * doc/generic.texi (Unary and Binary Expressions): Mark up
15196         an instance of TYPE_MIN.
15197
15198 2019-08-31  Stafford Horne  <shorne@gmail.com>
15199
15200         * config/or1k/constraints.md (t): New constraint.
15201         * config/or1k/or1k.h (GOT_REGS): New register class.
15202         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15203
15204 2019-08-30  Jim Wilson  <jimw@sifive.com>
15205
15206         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15207         and -fpic and -mplt then disable -msave-restore and warn.
15208
15209 2019-08-30  Martin Sebor  <msebor@redhat.com>
15210
15211         PR middle-end/91599
15212         * tree-ssa-strlen.c (handle_store): Use a fallback location if
15213         the statement doesn't have one.
15214         * gimple-pretty-print.c (percent_G_format): Same.
15215
15216         PR middle-end/91584
15217         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15218         before using them to validate MEM_REF offset.
15219
15220 2019-08-30  Marek Polacek  <polacek@redhat.com>
15221
15222         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15223
15224 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15225
15226         * config/arm/arm.md (unaligned_loaddi,
15227         unaligned_storedi): New unspec insn patterns.
15228         * config/arm/neon.md (unaligned_storev8qi): Likewise.
15229         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15230         and unaligned_storedi for 4-byte aligned memory.
15231         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15232         4-byte aligned memory.
15233
15234 2019-08-30  Martin Jambor  <mjambor@suse.cz>
15235
15236         tree-optimization/91579
15237         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15238         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15239         appropriate.
15240         (arg_needs_copy_p): Removed.
15241         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15242         arg_needs_copy_p.
15243         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
15244
15245 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
15246
15247         * config/i386/i386-features.c
15248         (general_scalar_chain::compute_convert_gain):
15249         Correct cost for double-word shifts.
15250         (general_scalar_to_vector_candidate_p): Reject count operands
15251         greater or equal to mode bitsize.
15252
15253 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
15254
15255         * config/i386/i386.c (inline_secondary_memory_needed): Return true
15256         for moves between SSE and non-general registers and between
15257         mask and non-general registers.
15258         (ix86_register_move_cost): Remove stalled comment.
15259
15260 2019-08-29  Richard Biener  <rguenther@suse.de>
15261
15262         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15263         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15264
15265 2019-08-29  Richard Biener  <rguenther@suse.de>
15266
15267         PR bootstrap/91580
15268         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15269         Do not emit scalar copies for debug-insns, instead replace
15270         their uses with the reg copy used in the chain or reset them
15271         if there is a reaching definition outside of the chain as well.
15272
15273 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
15274
15275         PR target/91560
15276         * config/i386/i386-expand.c (expand_vec_perm_movs,
15277         expand_vec_perm_blend, expand_vec_perm_vpermil,
15278         expand_vec_perm_pshufb, expand_vec_perm_1,
15279         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15280         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15281         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15282         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15283         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15284         comments - replace ix86_expand_vec_perm_builtin_1 with
15285         ix86_expand_vec_perm_const_1.
15286         (expand_vec_perm2_vperm2f128_vblend): New function.
15287         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
15288         expand_vec_perm2_vperm2f128_vblend as last resort.
15289         (canonicalize_perm): Formatting fix.
15290
15291         PR tree-optimization/91351
15292         * tree-cfg.c (generate_range_test): Use range_check_type instead of
15293         unsigned_type_for.
15294         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15295         range_check_type returns NULL.
15296         * tree-switch-conversion.c (switch_conversion::build_one_array):
15297         Use range_check_type instead of unsigned_type_for, don't perform
15298         linear opt if it returns NULL.
15299         (bit_test_cluster::find_bit_tests): Formatting fix.
15300         (bit_test_cluster::emit): Use range_check_type instead of
15301         unsigned_type_for.
15302         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15303         returns NULL.
15304
15305 2019-08-29  Richard Biener  <rguenther@suse.de>
15306
15307         PR tree-optimization/91568
15308         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15309         (vect_update_max_nunits): Add overload for poly_uint64.
15310         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15311         (vect_build_slp_tree): Record max_nunits into the subtree
15312         and merge it upwards.
15313         (vect_print_slp_tree): Print max_nunits.
15314
15315 2019-08-28  Marek Polacek  <polacek@redhat.com>
15316
15317         Implement P1152R4: Deprecating some uses of volatile.
15318         PR c++/91361
15319         * doc/invoke.texi: Document -Wvolatile.
15320
15321 2019-08-28  Marek Polacek  <polacek@redhat.com>
15322
15323         PR c++/91360 - Implement C++20 P1143R2: constinit.
15324         * doc/invoke.texi: Document -Wc++20-compat.
15325
15326 2019-08-28  Martin Sebor  <msebor@redhat.com>
15327
15328         PR tree-optimization/91457
15329         * builtins.c (component_size): New function.
15330         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15331         * builtins.h (compute_objsize): Add argument.
15332         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15333         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15334         (vrp_prop::check_mem_ref): Same.
15335         (vrp_prop::search_for_addr_array): Set no-warning bit.
15336         (check_array_bounds): Same.
15337
15338 2019-08-28  Martin Sebor  <msebor@redhat.com>
15339
15340         PR driver/80545
15341         * opts-common.c (option_enabled): Correct checking for language
15342         options.
15343
15344 2019-08-28  Uroš Bizjak  <ubizjak@gmail.com>
15345
15346         * config/i386/i386.c (ix86_register_move_cost): Do not
15347         limit the cost of moves to/from XMM register to minimum 8.
15348
15349 2019-08-28  Martin Jambor  <mjambor@suse.cz>
15350
15351         PR ipa/91468
15352         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15353         checking assert a normal assert to test it really is redundant.
15354         * ipa-prop.c (compute_complex_assign_jump_func): Removed
15355         redundant test.
15356         (update_jump_functions_after_inlining): Removed combining unary
15357         arithmetic operations with an ancestor jump function.
15358         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15359         instead of t.
15360
15361 2019-08-28  Richard Biener  <rguenther@suse.de>
15362
15363         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15364         add the MD problem.
15365
15366 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15367             Richard Biener  <rguenther@suse.de>
15368
15369         * expr.c (expand_assignment): Handle misaligned DECLs.
15370         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15371         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15372         too.
15373         (assign_parm_setup_stack): Allocate properly aligned stack slots.
15374         * varasm.c (build_constant_desc): Align constants of misaligned types.
15375         * config/arm/predicates.md (aligned_operand): New predicate.
15376         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15377         aligned_operand to check restrictions on memory addresses.
15378         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15379         * config/arm/vec-common.md (mov<VALL>): Likewise.
15380
15381 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
15382
15383         PR libgomp/91530
15384         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15385         V_128 iterator instead of VI_128.
15386
15387 2019-08-28  Martin Liska  <mliska@suse.cz>
15388
15389         PR tree-optimization/90970
15390         * builtins.c (check_access): Remove assignment to maxread
15391         as it hasn't been used since when it was introduced in r255755.
15392
15393 2019-08-27  Martin Sebor  <msebor@redhat.com>
15394
15395         PR tree-optimization/91567
15396         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15397         of unknown strings.
15398         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15399         to PTRDIFF_MAX - 2.
15400
15401 2019-08-27  Jeff Law  <law@redhat.com>
15402
15403         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15404         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15405
15406 2019-08-27  Uroš Bizjak  <ubizjak@gmail.com>
15407
15408         PR target/91528
15409         * config/i386/i386-features.c (convert_scalars_to_vector):
15410         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15411         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
15412         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
15413         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15414
15415 2019-08-27  Richard Biener  <rguenther@suse.de>
15416
15417         * config/i386/i386-features.h
15418         (general_scalar_chain::~general_scalar_chain): Add.
15419         (general_scalar_chain::insns_conv): New bitmap.
15420         (general_scalar_chain::n_sse_to_integer): New.
15421         (general_scalar_chain::n_integer_to_sse): Likewise.
15422         (general_scalar_chain::make_vector_copies): Adjust signature.
15423         * config/i386/i386-features.c
15424         (general_scalar_chain::general_scalar_chain): Outline,
15425         initialize new members.
15426         (general_scalar_chain::~general_scalar_chain): New.
15427         (general_scalar_chain::mark_dual_mode_def): Record insns
15428         we need to insert conversions at and count them.
15429         (general_scalar_chain::compute_convert_gain): Account
15430         for conversion instructions at chain boundary.
15431         (general_scalar_chain::make_vector_copies): Generate a single
15432         copy for a def by a specific insn.
15433         (general_scalar_chain::convert_registers): First populate
15434         defs_map, then make copies at out-of chain insns.
15435
15436 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
15437
15438         * config/arm/arm.md (stack_protect_set_insn): Add security-related
15439         comment.
15440         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15441
15442 2019-08-27  Martin Liska  <mliska@suse.cz>
15443
15444         * cgraph.c (cgraph_node::remove): Remove dead assignment before
15445         loop.
15446         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15447         Enclose in anonymous namespace.
15448         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15449         hard_register initialization in braces.
15450         * tree-vrp.h (value_range_base::supports_type_p): Return false
15451         for function with boolean return type.
15452
15453 2019-08-26  Uroš Bizjak  <ubizjak@gmail.com>
15454
15455         * config/i386/i386.c (emit_i387_cw_initialization)
15456         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15457
15458 2019-08-26  Martin Sebor  <msebor@redhat.com>
15459
15460         PR c++/83431
15461         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15462         (sprintf_dom_walker): Remove class.
15463         (get_int_range): Make argument const.
15464         (directive::fmtfunc, directive::set_precision): Same.
15465         (format_none): Same.
15466         (build_intmax_type_nodes): Same.
15467         (adjust_range_for_overflow): Same.
15468         (format_floating): Same.
15469         (format_character): Same.
15470         (format_string): Same.
15471         (format_plain): Same.
15472         (get_int_range): Cast away constness.
15473         (format_integer): Same.
15474         (get_string_length): Call get_range_strlen_dynamic.  Handle
15475         null lendata.maxbound.
15476         (should_warn_p): Adjust argument scope qualifier.
15477         (maybe_warn): Same.
15478         (format_directive): Same.
15479         (parse_directive): Same.
15480         (is_call_safe): Same.
15481         (try_substitute_return_value): Same.
15482         (sprintf_dom_walker::handle_printf_call): Rename...
15483         (handle_printf_call): ...to this.  Initialize target to host charmap
15484         here instead of in pass_sprintf_length::execute.
15485         (struct call_info): Make global.
15486         (sprintf_dom_walker::compute_format_length): Make global.
15487         (sprintf_dom_walker::handle_gimple_call): Same.
15488         * passes.def (pass_sprintf_length): Replace with pass_strlen.
15489         * print-rtl.c (print_pattern): Reduce the number of spaces to
15490         avoid -Wformat-truncation.
15491         * tree-pass.h (make_pass_warn_printf): New function.
15492         * tree-ssa-strlen.c (strlen_optimize): New variable.
15493         (get_string_length): Add comments.
15494         (get_range_strlen_dynamic): New function.
15495         (check_and_optimize_call): New function.
15496         (handle_integral_assign): New function.
15497         (strlen_check_and_optimize_stmt): Factor code out into
15498         strlen_check_and_optimize_call and handle_integral_assign.
15499         (strlen_dom_walker::evrp): New member.
15500         (strlen_dom_walker::before_dom_children): Use evrp member.
15501         (strlen_dom_walker::after_dom_children): Use evrp member.
15502         (printf_strlen_execute): New function.
15503         (pass_strlen::gate): Update to handle printf calls.
15504         (dump_strlen_info): New function.
15505         (pass_data_warn_printf): New variable.
15506         (pass_warn_printf): New class.
15507         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15508         (handle_printf_call): Same.
15509         * tree-vrp.c (value_range_base::type): Adjust assertion.
15510         * vr-values.c (vr_values::update_value_range): Use type of the first
15511         argument rather than the second.
15512
15513 2019-08-26  Richard Biener  <rguenther@suse.de>
15514
15515         * config/i386/i386-features.c (general_remove_non_convertible_regs):
15516         Remove.
15517         (convert_scalars_to_vector): Do not call it.
15518
15519 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
15520             Uros Bizjak  <ubizjak@gmail.com>
15521
15522         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15523         CASE_MATHFN_FLOATN for roundeven.
15524         * config/i386/i386.c (ix86_i387_mode_needed): Add case
15525         I387_ROUNDEVEN.
15526         (ix86_mode_needed): Likewise.
15527         (ix86_mode_after): Likewise.
15528         (ix86_mode_entry): Likewise.
15529         (ix86_mode_exit): Likewise.
15530         (ix86_emit_mode_set): Likewise.
15531         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15532         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15533         (ix86_entity): Add I387_ROUNDEVEN.
15534         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15535         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15536         (define_int_iterator): Likewise.
15537         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15538         (define_constant): Define ROUND_ROUNDEVEN mode.
15539         (define_attr): Add roundeven mode for i387_cw.
15540         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15541         * internal-fn.def (ROUNDEVEN): New builtin function.
15542         * optabs.def (roundeven_optab): New optab.
15543
15544 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
15545
15546         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15547         for ROUNDEVEN.
15548         * builtins.def: Added function definitions for roundeven function
15549         variants.
15550         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15551         function call.  Adjust condition for floor, ceil, trunc and round.
15552         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15553         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15554         (integer_valued_real_call_p): Added case for roundeven function.
15555         * real.c (is_even): New function. Returns true if real number is even,
15556         otherwise returns false.
15557         (is_halfway_below): New function. Returns true if real number is
15558         halfway between two integers, else return false.
15559         (real_roundeven): New function. Round real number to nearest integer,
15560         rounding halfway cases towards even.
15561         * real.h (real_value): Added descriptive comments.  Added function
15562         declaration for roundeven function.
15563         * doc/extend.texi (Other Builtins): List roundeven variants among
15564         functions which can be handled as builtins.
15565
15566 2019-08-26  Richard Biener  <rguenther@suse.de>
15567
15568         PR target/91522
15569         PR target/91527
15570         * config/i386/i386-features.h (general_scalar_chain::defs_map):
15571         New member.
15572         (general_scalar_chain::replace_with_subreg): Remove.
15573         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15574         (general_scalar_chain::convert_reg): Adjust signature.
15575         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15576         iterate over all defs of a reg.
15577         (general_scalar_chain::replace_with_subreg): Remove.
15578         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15579         (general_scalar_chain::make_vector_copies): Populate defs_map,
15580         place copy only after defs that are used as vectors in the chain.
15581         (general_scalar_chain::convert_reg): Emit a copy for a specific
15582         def in a specific instruction.
15583         (general_scalar_chain::convert_op): All reg uses are converted here.
15584         (general_scalar_chain::convert_insn): Emit copies for scalar
15585         uses of defs here.  Replace uses with the copies we created.
15586         Replace and convert the def.  Adjust REG_DEAD notes, remove
15587         REG_EQUIV/EQUAL notes.
15588         (general_scalar_chain::convert_registers): Only handle copies
15589         into the chain here.
15590
15591 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
15592
15593         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15594
15595 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
15596
15597         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15598         Add nop_convert case.
15599         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15600         Fold all statements if requested.
15601         * tree-ssa-propagate.h (class substitute_and_fold_engine):
15602         Allow to fold all statements.
15603         * tree-vrp.c (class vrp_folder):
15604         Let substitute_and_fold_engine fold all statements.
15605
15606 2019-08-26  Richard Biener  <rguenther@suse.de>
15607
15608         PR tree-optimization/91526
15609         * passes.def: Note that after late FRE we do TODO_update_address_taken.
15610         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15611         TODO_update_address_taken.
15612
15613 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
15614
15615         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15616         __STDC_HOSTED__.
15617
15618 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
15619
15620         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15621         machine mode for unspec_volatile operand.
15622
15623 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
15624
15625         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15626         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15627         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15628         (prefer_neon_for_64bits): Remove.
15629         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15630         (tune_params): Remove PREF_NEON_64_FALSE uses.
15631         (arm_option_override): Remove prefer_neon selection code.
15632         (arm_print_tune_info): Remove prefer_neon_for_64bits.
15633         * config/arm/arm-protos.h (tune_params): Remove
15634         prefer_neon_for_64bits.
15635         (prefer_neon_for_64bits): Remove.
15636
15637 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
15638
15639         PR pch/61250
15640         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15641         and issue any diagnostics needed before collecting the pre-PCH
15642         state.
15643
15644 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
15645
15646         PR middle-end/91283
15647         * common.opt (fexcess-precision=): Add Optimization flag.  Use
15648         flag_excess_precision variable instead of
15649         flag_excess_precision_cmdline.
15650         * flags.h (class target_flag_state): Remove x_flag_excess_precision
15651         member.
15652         (flag_excess_precision): Don't define.
15653         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15654         flag_excess_precision_cmdline.  Remove comment.
15655         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15656         and x_flag_excess_precision instead of
15657         frontend_set_flag_excess_precision_cmdline and
15658         x_flag_excess_precision_cmdline.
15659         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15660         x_flag_excess_precision_cmdline.
15661         * toplev.c (init_excess_precision): Remove.
15662         (lang_dependent_init_target): Don't call it.
15663
15664 2019-08-23  Martin Liska  <mliska@suse.cz>
15665
15666         * lto-wrapper.c (run_gcc): When setting jobserver
15667         set also parallel to 1.  This was done so before r273908.
15668
15669 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
15670
15671         * config/arm/arm-cpus.in (cortex-m35p): New entry.
15672         (cortex-a76ae): Likewise.
15673         (cortex-a77): Likewise
15674         * config/arm/arm-tables.opt: Regenerate.
15675         * config/arm/arm-tune.md: Likewise.
15676         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15677         cortex-a77 CPU options.
15678
15679 2019-08-23  Martin Liska  <mliska@suse.cz>
15680
15681         * profile.c (instrument_values): Do not set
15682         0 as last argument.
15683         * tree-profile.c (gimple_gen_interval_profiler): Remove
15684         last argument.
15685         (gimple_gen_pow2_profiler): Likewise.
15686         (gimple_gen_topn_values_profiler): Likewise.
15687         (gimple_gen_ic_profiler): Likewise.
15688         (gimple_gen_time_profiler): Likewise.
15689         (gimple_gen_average_profiler): Likewise.
15690         (gimple_gen_ior_profiler): Likewise.
15691         * value-prof.c (dump_histogram_value): Use default
15692         in switch statement instead of HIST_TYPE_MAX.
15693         (stream_in_histogram_value): Likewise.
15694         (gimple_duplicate_stmt_histograms): Do not
15695         use NULL for implicitly set arguments.
15696         (gimple_divmod_values_to_profile): Do not use
15697         reserve+quick_push.
15698         (gimple_indirect_call_to_profile): Likewise.
15699         (gimple_find_values_to_profile): Use implicit
15700         function call arguments.
15701         * value-prof.h (gimple_alloc_histogram_value):
15702         Set default values.
15703         (gimple_gen_interval_profiler): Remove last argument.
15704         (gimple_gen_pow2_profiler): Likewise.
15705         (gimple_gen_topn_values_profiler): Likewise.
15706         (gimple_gen_ic_profiler): Likewise.
15707         (gimple_gen_time_profiler): Likewise.
15708         (gimple_gen_average_profiler): Likewise.
15709         (gimple_gen_ior_profiler): Likewise.
15710
15711 2019-08-22  Martin Sebor  <msebor@redhat.com>
15712
15713         PR middle-end/91490
15714         * builtins.c (c_strlen): Rename argument and introduce new local.
15715         Set no-warning bit on original argument.
15716         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15717         Fold empty and zero constructors into empty strings.
15718         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15719         for missing initializers.
15720         * tree.c (build_string_literal): Handle optional argument.
15721         * tree.h (build_string_literal): Add defaulted argument.
15722         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15723         no-warning bit on original expression.
15724
15725 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
15726
15727         PR target/91481
15728         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15729         and UNSPEC_DARN_RAW.
15730         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15731         UNSPECV_DARN_RAW.
15732         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15733         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15734         (darn): Use an unspec_volatile, and UNSPECV_DARN.
15735
15736 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
15737
15738         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15739         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15740         * config/rs6000/rs6000.md (unspec): ... here.
15741         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15742         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15743         cmpeqb, *cmpeqb_internal): Delete, move to...
15744         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15745         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15746         cmpeqb, *cmpeqb_internal): ... here.
15747
15748 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15749
15750         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15751         intrinsics if __ARM_FP.
15752         Use __ARM_FEATURE_CRC32 ifdef guard.
15753
15754 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15755
15756         * config/arm/arm.md (neon_for_64bits): Remove.
15757         (avoid_neon_for_64bits): Remove.
15758         (arm_adddi3): Always split early.
15759         (arm_subdi3): Always split early.
15760         (negdi2): Remove Neon expansion.
15761         (split zero_extend): Split before reload.
15762         (split sign_extend): Split before reload.
15763
15764 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15765
15766         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15767         (qhs_extenddi_cstr): Likewise.
15768         * config/arm/arm.md (ashldi3): Always expand early.
15769         (ashlsi3): Likewise.
15770         (ashrsi3): Likewise.
15771         (zero_extend<mode>di2): Remove Neon variants.
15772         (extend<mode>di2): Likewise.
15773         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15774         (signed_shift_di3_neon): Likewise.
15775         (unsigned_shift_di3_neon): Likewise.
15776         (ashrdi3_neon_imm_noclobber): Likewise.
15777         (lshrdi3_neon_imm_noclobber): Likewise.
15778         (<shift>di3_neon): Likewise.
15779         (split extend): Remove DI extend split patterns.
15780
15781 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
15782
15783         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15784         (split not): Add DImode not splitter.
15785         (anddi3): Remove pattern.
15786         (anddi3_insn): Likewise.
15787         (anddi_zesidi_di): Likewise.
15788         (anddi_sesdi_di): Likewise.
15789         (anddi_notdi_di): Likewise.
15790         (anddi_notzesidi_di): Likewise.
15791         (anddi_notsesidi_di): Likewise.
15792         (iordi3): Likewise.
15793         (iordi3_insn): Likewise.
15794         (iordi_zesidi_di): Likewise.
15795         (iordi_sesidi_di): Likewise.
15796         (xordi3): Likewise.
15797         (xordi3_insn): Likewise.
15798         (xordi_sesidi_di): Likewise.
15799         (xordi_zesidi_di): Likewise.
15800         (one_cmpldi2): Likewise.
15801         (one_cmpldi2_insn): Likewise.
15802         * config/arm/constraints.md: Remove De, Df, Dg constraints.
15803         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15804         alternative.
15805         (iwmmxt_xordi3): Likewise.
15806         (iwmmxt_anddi3): Likewise.
15807         * config/arm/neon.md (orndi3_neon): Remove pattern.
15808         (anddi_notdi_di): Likewise.
15809         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15810         (arm_iordi_operand_neon): Likewise.
15811         (arm_xordi_operand_neon): Likewise.
15812         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15813         (iordi_notzesidi_di): Likewise.
15814         (iordi_notdi_zesidi): Likewise.
15815         (iordi_notsesidi_di): Likewise.
15816
15817 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
15818
15819         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15820         insn.
15821         (iorsi3_compare0_scratch): Likewise.
15822
15823 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
15824
15825         * config/aarch64/aarch64-simd-builtins.def:
15826         (ld1x4): New.
15827         (st1x4): Likewise.
15828         * config/aarch64/aarch64-simd.md:
15829         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15830         (aarch64_st1x4<VALLDIF:mode>): Likewise.
15831         (aarch64_ld1_x4_<mode>): Likewise.
15832         (aarch64_st1_x4_<mode>): Likewise.
15833         * config/aarch64/arm_neon.h:
15834         (vld1_s8_x4): New function.
15835         (vld1q_s8_x4): Likewise.
15836         (vld1_s16_x4): Likewise.
15837         (vld1q_s16_x4): Likewise.
15838         (vld1_s32_x4): Likewise.
15839         (vld1q_s32_x4): Likewise.
15840         (vld1_u8_x4): Likewise.
15841         (vld1q_u8_x4): Likewise.
15842         (vld1_u16_x4): Likewise.
15843         (vld1q_u16_x4): Likewise.
15844         (vld1_u32_x4): Likewise.
15845         (vld1q_u32_x4): Likewise.
15846         (vld1_f16_x4): Likewise.
15847         (vld1q_f16_x4): Likewise.
15848         (vld1_f32_x4): Likewise.
15849         (vld1q_f32_x4): Likewise.
15850         (vld1_p8_x4): Likewise.
15851         (vld1q_p8_x4): Likewise.
15852         (vld1_p16_x4): Likewise.
15853         (vld1q_p16_x4): Likewise.
15854         (vld1_s64_x4): Likewise.
15855         (vld1_u64_x4): Likewise.
15856         (vld1_p64_x4): Likewise.
15857         (vld1q_s64_x4): Likewise.
15858         (vld1q_u64_x4): Likewise.
15859         (vld1q_p64_x4): Likewise.
15860         (vld1_f64_x4): Likewise.
15861         (vld1q_f64_x4): Likewise.
15862         (vst1_s8_x4): Likewise.
15863         (vst1q_s8_x4): Likewise.
15864         (vst1_s16_x4): Likewise.
15865         (vst1q_s16_x4): Likewise.
15866         (vst1_s32_x4): Likewise.
15867         (vst1q_s32_x4): Likewise.
15868         (vst1_u8_x4): Likewise.
15869         (vst1q_u8_x4): Likewise.
15870         (vst1_u16_x4): Likewise.
15871         (vst1q_u16_x4): Likewise.
15872         (vst1_u32_x4): Likewise.
15873         (vst1q_u32_x4): Likewise.
15874         (vst1_f16_x4): Likewise.
15875         (vst1q_f16_x4): Likewise.
15876         (vst1_f32_x4): Likewise.
15877         (vst1q_f32_x4): Likewise.
15878         (vst1_p8_x4): Likewise.
15879         (vst1q_p8_x4): Likewise.
15880         (vst1_p16_x4): Likewise.
15881         (vst1q_p16_x4): Likewise.
15882         (vst1_s64_x4): Likewise.
15883         (vst1_u64_x4): Likewise.
15884         (vst1_p64_x4): Likewise.
15885         (vst1q_s64_x4): Likewise.
15886         (vst1q_u64_x4): Likewise.
15887         (vst1q_p64_x4): Likewise.
15888         (vst1_f64_x4): Likewise.
15889         (vst1q_f64_x4): Likewise.
15890
15891 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15892
15893         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15894
15895 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15896             Richard Sandiford  <richard.sandiford@arm.com>
15897
15898         PR target/88839
15899         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15900         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15901
15902 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15903
15904         PR target/90724
15905         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15906         in reg if it fails aarch64_plus_operand predicate.
15907
15908 2019-08-21  Richard Biener  <rguenther@suse.de>
15909
15910         PR tree-optimization/91482
15911         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15912         BUILT_IN_ASSUME_ALIGNED calls.
15913
15914 2019-08-21  Richard Biener  <rguenther@suse.de>
15915
15916         PR target/91498
15917         PR target/91503
15918         * config/i386/i386-features.c
15919         (general_scalar_chain::make_vector_copies): Copy stack temporary
15920         rtx when using it multiple times.
15921         (general_scalar_chain::convert_reg): Likewise.
15922
15923 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15924
15925         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15926
15927 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
15928
15929         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15930         catch more redundant zero initialization cases.
15931         (dse_dom_walker::dse_optimize_stmt): Likewise.
15932
15933 2019-08-20  Richard Biener  <rguenther@suse.de>
15934
15935         PR lto/91307
15936         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15937         by collect2 when targetm.have_ctors_dtors which avoids dragging
15938         in temporary filenames from LTO input objects.
15939
15940 2019-08-20  Richard Biener  <rguenther@suse.de>
15941
15942         PR tree-optimization/37242
15943         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15944         to (T)a + (T)b if we know that a + b does not overflow.
15945
15946 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
15947
15948         PR rtl-optimization/91347
15949         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15950         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15951
15952 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15953
15954         * calls.h (function_arg_info): Add a pass_by_reference field,
15955         defaulting to false.
15956         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15957         when applying pass-by-reference semantics.
15958         (initialize_argument_information): Likewise.
15959         (emit_library_call_value_1): Likewise.
15960         * function.c (assign_parm_data_one): Remove passed_pointer field.
15961         (assign_parm_find_data_types): Don't set it.
15962         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15963         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15964         arg.pass_by_reference instead of passed_pointer.
15965
15966 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15967
15968         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15969         into a single function_arg_info, updating its fields when we
15970         apply pass-by-reference and promotion semantics.  Use the
15971         function_arg_info to track the mode rather than keeping it in
15972         a separate local variable.
15973         (initialize_argument_information): Likewise.  Base the final
15974         arg_to_skip on this new function_arg_info rather than creating
15975         a new one from scratch.
15976
15977 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15978
15979         * function.c (assign_parm_data_one): Replace passed_type,
15980         promoted_mode and named_arg with a function_arg_info field.
15981         (assign_parm_find_data_types): Remove local variables and
15982         assign directly to "data".  Make data->passed_mode shadow
15983         data->arg.mode until promotion, then assign the promoted
15984         mode to data->arg.mode.
15985         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15986         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15987         (assign_parm_remove_parallels, assign_parm_setup_block_p)
15988         (assign_parm_setup_block, assign_parm_setup_reg)
15989         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15990         arg.mode instead of promoted_mode, arg.type instead of passed_type
15991         and arg.named instead of named_arg.  Use data->arg for
15992         function_arg_info structures that had the field values passed_type,
15993         promoted_mode and named_arg.  Base other function_arg_infos on
15994         data->arg, changing the necessary properties.
15995
15996 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
15997
15998         * calls.h (apply_pass_by_reference_rules): Declare.
15999         * calls.c (apply_pass_by_reference_rules): New function.
16000         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
16001         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
16002         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16003         * function.c (assign_parm_find_data_types): Likewise.
16004         * var-tracking.c (prepare_call_arguments): Likewise.
16005
16006 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16007
16008         * target.def (must_pass_in_stack): Take a function_arg_info instead
16009         of a mode and a type.
16010         * doc/tm.texi: Regenerate.
16011         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
16012         instead of a mode and a type.
16013         (must_pass_in_stack_var_size_or_pad): Likewise.
16014         * calls.c (must_pass_in_stack_var_size): Likewise.
16015         (must_pass_in_stack_var_size_or_pad): Likewise.
16016         (initialize_argument_information): Update call to
16017         targetm.calls.must_pass_in_stack.
16018         (must_pass_va_arg_on_stack): Likewise.
16019         * function.c (assign_parm_find_entry_rtl): Likewise.
16020         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
16021         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16022         (alpha_function_arg_advance): Likewise.
16023         * config/cr16/cr16.c (cr16_function_arg): Likewise.
16024         (cr16_function_arg_advance): Likewise.
16025         * config/cris/cris.c (cris_pass_by_reference): Likewise.
16026         (cris_arg_partial_bytes): Likewise.
16027         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16028         * config/lm32/lm32.c (lm32_function_arg): Likewise.
16029         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
16030         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
16031         * config/mips/mips.c (mips_pass_by_reference): Likewise.
16032         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
16033         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
16034         * config/sh/sh.c (sh_pass_by_reference): Likewise.
16035         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16036         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16037         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
16038         instead of a mode and a type.
16039         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
16040         (fr30_num_arg_regs): Likewise.
16041         (fr30_setup_incoming_varargs): Update calls accordingly.
16042         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16043         (fr30_function_arg_advance): Likewise.
16044         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
16045         instead of a mode and a type.
16046         * config/gcn/gcn.c (num_arg_regs): Likewise.
16047         (gcn_function_arg, gcn_function_arg_advance): Update calls to
16048         num_arg_regs and targetm.calls.must_pass_in_stack.
16049         (gcn_arg_partial_bytes): Likewise.
16050         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
16051         function_arg_info instead of a mode and a type.
16052         (classify_argument): Update call accordingly.
16053         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
16054         function_arg_info instead of a mode and a type.
16055         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
16056         Likewise.
16057         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
16058         (rs6000_parm_needs_stack): Update call accordingly.
16059         (setup_incoming_varargs): Likewise.
16060
16061 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16062
16063         * target.def (callee_copies): Take a function_arg_info instead
16064         of a mode, type and named flag.
16065         * doc/tm.texi: Regenerate.
16066         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
16067         instead of a mode, type and named flag.
16068         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16069         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16070         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16071         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
16072         instead of a mode, type and named flag.
16073         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16074         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16075         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16076         * calls.h (reference_callee_copied): Take a function_arg_info
16077         instead of a mode, type and named flag.
16078         * calls.c (reference_callee_copied): Likewise.
16079         (initialize_argument_information): Update call accordingly.
16080         (emit_library_call_value_1): Likewise.
16081         * function.c (gimplify_parameters): Likewise.
16082         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
16083         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
16084         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
16085         * config/c6x/c6x.c (c6x_callee_copies): Delete.
16086         (TARGET_CALLEE_COPIES): Define to
16087         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16088         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
16089         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16090         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16091         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
16092         instead of a mode, type and named flag.
16093         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
16094         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16095         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16096         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
16097         * config/msp430/msp430.c (msp430_callee_copies): Delete.
16098         (TARGET_CALLEE_COPIES): Define to
16099         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16100         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
16101         instead of a mode, type and named flag.
16102         * config/sh/sh.c (sh_callee_copies): Likewise.
16103         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
16104         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16105         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16106
16107 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16108
16109         * target.def (function_arg_advance): Take a function_arg_info instead
16110         of a mode, type and named flag.
16111         * doc/tm.texi: Regenerate.
16112         * targhooks.h (default_function_arg_advance): Take a function_arg_info
16113         instead of a mode, type and named flag.
16114         * targhooks.c (default_function_arg_advance): Likewise.
16115         * calls.c (initialize_argument_information): Update call to
16116         targetm.calls.function_arg_advance.
16117         (emit_library_call_value_1): Likewise.
16118         * dse.c (get_call_args): Likewise.
16119         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16120         * function.c (assign_parms, gimplify_parameters): Likewise.
16121         * var-tracking.c (prepare_call_arguments): Likewise.
16122         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
16123         function_arg_info instead of a mode, type and named flag.
16124         (aarch64_setup_incoming_varargs): Update call accordingly.
16125         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
16126         function_arg_info instead of a mode, type and named flag.
16127         (alpha_setup_incoming_varargs): Update call accordingly.
16128         * config/arc/arc.c (arc_function_arg_advance): Take a
16129         function_arg_info instead of a mode, type and named flag.
16130         (arc_setup_incoming_varargs): Update call accordingly.
16131         * config/arm/arm.c (arm_function_arg_advance): Take a
16132         function_arg_info instead of a mode, type and named flag.
16133         (cmse_func_args_or_return_in_stack): Update call accordingly.
16134         (arm_function_ok_for_sibcall): Likewise.
16135         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16136         * config/avr/avr.c (avr_function_arg_advance): Take a
16137         function_arg_info instead of a mode, type and named flag.
16138         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
16139         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
16140         (c6x_call_saved_register_used): Update call accordingly.
16141         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
16142         function_arg_info instead of a mode, type and named flag.
16143         * config/cris/cris.c (cris_function_arg_advance): Likewise.
16144         * config/csky/csky.c (csky_function_arg_advance): Likewise.
16145         (csky_setup_incoming_varargs): Update call accordingly.
16146         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
16147         function_arg_info instead of a mode, type and named flag.
16148         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
16149         * config/frv/frv.c (frv_function_arg_advance): Likewise.
16150         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
16151         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
16152         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
16153         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16154         (ix86_setup_incoming_varargs): Update call accordingly.
16155         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
16156         function_arg_info instead of a mode, type and named flag.
16157         (ia64_setup_incoming_varargs): Update call accordingly.
16158         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
16159         function_arg_info instead of a mode, type and named flag.
16160         (iq2000_expand_prologue): Update call accordingly.
16161         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
16162         function_arg_info instead of a mode, type and named flag.
16163         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
16164         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
16165         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16166         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
16167         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16168         Likewise.
16169         (microblaze_expand_prologue): Update call accordingly.
16170         * config/mips/mips.c (mips_function_arg_advance): Take a
16171         function_arg_info instead of a mode, type and named flag.
16172         (mips_setup_incoming_varargs): Update call accordingly.
16173         (mips_output_args_xfer): Likewise.
16174         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
16175         function_arg_info instead of a mode, type and named flag.
16176         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
16177         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
16178         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
16179         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
16180         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
16181         (nios2_setup_incoming_varargs): Update call accordingly.
16182         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
16183         function_arg_info instead of a mode, type and named flag.
16184         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
16185         * config/pa/pa.c (pa_function_arg_advance): Likewise.
16186         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
16187         * config/pru/pru.c (pru_function_arg_advance): Likewise.
16188         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
16189         (riscv_setup_incoming_varargs): Update call accordingly.
16190         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
16191         function_arg_info instead of a mode, type and named flag.
16192         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
16193         Likewise.
16194         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
16195         (rs6000_parm_needs_stack): Update call accordingly.
16196         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16197         instead of a mode, type and named flag.
16198         * config/s390/s390.c (s390_function_arg_advance): Likewise.
16199         (s390_call_saved_register_used): Update call accordingly.
16200         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16201         instead of a mode, type and named flag.
16202         (sh_output_mi_thunk): Update call accordingly.
16203         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16204         function_arg_info instead of a mode, type and named flag.
16205         * config/spu/spu.c (spu_function_arg_advance): Likewise.
16206         (spu_setup_incoming_varargs): Update call accordingly.
16207         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16208         function_arg_info instead of a mode, type and named flag.
16209         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16210         (tilegx_setup_incoming_varargs): Update call accordingly.
16211         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16212         function_arg_info instead of a mode, type and named flag.
16213         (tilegx_setup_incoming_varargs): Update call accordingly.
16214         * config/v850/v850.c (v850_function_arg_advance): Take a
16215         function_arg_info instead of a mode, type and named flag.
16216         * config/vax/vax.c (vax_function_arg_advance): Likewise.
16217         * config/visium/visium.c (visium_function_arg_advance): Likewise.
16218         (visium_setup_incoming_varargs): Update call accordingly.
16219         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16220         function_arg_info instead of a mode, type and named flag.
16221
16222 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16223
16224         * target.def (function_arg, function_incoming_arg): Take a
16225         function_arg_info instead of a mode, tree and named flag.
16226         * doc/tm.texi: Regenerate.
16227         * targhooks.h (default_function_arg): Take a function_arg_info
16228         instead of a mode, tree and named flag.
16229         (default_function_incoming_arg): Likewise.
16230         * targhooks.c (default_function_arg): Likewise.
16231         (default_function_incoming_arg): Likewise.
16232         * calls.h (function_arg_info::end_marker_p): New function.
16233         (function_arg_info::end_marker): Likewise.
16234         * calls.c (prepare_call_address, initialize_argument_information)
16235         (expand_call, emit_library_call_value_1): Update calls to
16236         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16237         * dse.c: Include calls.h.
16238         (get_call_args): Update call to targetm.calls.function_arg.
16239         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16240         * var-tracking.c (prepare_call_arguments): Likewise.
16241         * function.c (assign_parm_find_entry_rtl): Update call to
16242         targetm.calls.function_incoming_arg.
16243         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16244         function_arg_info instead of a mode, tree and named flag.
16245         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16246         * config/arc/arc.c (arc_function_arg): Likewise.
16247         * config/arm/arm.c (arm_function_arg): Likewise.
16248         (cmse_func_args_or_return_in_stack): Update call accordingly.
16249         (arm_function_ok_for_sibcall): Likewise.
16250         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16251         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16252         instead of a mode, tree and named flag.
16253         * config/bfin/bfin.c (bfin_function_arg): Likewise.
16254         * config/c6x/c6x.c (c6x_function_arg): Likewise.
16255         (c6x_call_saved_register_used): Update call accordingly.
16256         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16257         instead of a mode, tree and named flag.
16258         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16259         (cris_function_arg_1): Likewise.
16260         * config/csky/csky.c (csky_function_arg): Likewise.
16261         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16262         * config/fr30/fr30.c (fr30_function_arg): Likewise.
16263         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16264         (frv_function_arg_1): Likewise.
16265         * config/ft32/ft32.c (ft32_function_arg): Likewise.
16266         * config/gcn/gcn.c (gcn_function_arg): Likewise.
16267         * config/h8300/h8300.c (h8300_function_arg): Likewise.
16268         * config/i386/i386.c (ix86_function_arg): Likewise.
16269         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16270         (ia64_function_arg_1): Likewise.
16271         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16272         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16273         accordingly.
16274         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16275         instead of a mode, tree and named flag.
16276         * config/m32c/m32c.c (m32c_function_arg): Likewise.
16277         * config/m32r/m32r.c (m32r_function_arg): Likewise.
16278         * config/m68k/m68k.c (m68k_function_arg): Likewise.
16279         * config/mcore/mcore.c (mcore_function_arg): Likewise.
16280         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16281         (microblaze_expand_prologue): Update call accordingly.
16282         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16283         instead of a mode, tree and named flag.
16284         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16285         (mmix_function_arg_1): Likewise.
16286         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16287         * config/moxie/moxie.c (moxie_function_arg): Likewise.
16288         * config/msp430/msp430.c (msp430_function_arg): Likewise.
16289         * config/nds32/nds32.c (nds32_function_arg): Likewise.
16290         * config/nios2/nios2.c (nios2_function_arg): Likewise.
16291         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16292         (nvptx_function_incoming_arg): Likewise.
16293         * config/or1k/or1k.c (or1k_function_arg): Likewise.
16294         * config/pa/pa.c (pa_function_arg): Likewise.
16295         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16296         * config/pru/pru.c (pru_function_arg): Likewise.
16297         * config/riscv/riscv.c (riscv_function_arg): Likewise.
16298         * config/rl78/rl78.c (rl78_function_arg): Likewise.
16299         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16300         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16301         (rs6000_parm_needs_stack): Update call accordingly.
16302         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16303         instead of a mode, tree and named flag.
16304         * config/s390/s390.c (s390_function_arg): Likewise.
16305         (s390_call_saved_register_used): Update call accordingly.
16306         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16307         instead of a mode, tree and named flag.
16308         (sh_output_mi_thunk): Update call accordingly.
16309         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16310         (sparc_function_incoming_arg): Take a function_arg_info instead of
16311         a mode, tree and named flag.
16312         * config/spu/spu.c (spu_function_arg): Likewise.
16313         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16314         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16315         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16316         * config/v850/v850.c (v850_function_arg): Likewise.
16317         * config/vax/vax.c (vax_function_arg): Likewise.
16318         * config/visium/visium.c (visium_function_arg): Likewise.
16319         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16320         (xtensa_function_incoming_arg): Likewise.
16321
16322 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16323
16324         * target.def (setup_incoming_varargs): Take a function_arg_info
16325         instead of a mode and tree.
16326         * doc/tm.texi: Regenerate.
16327         * targhooks.h (default_setup_incoming_varargs): Take a
16328         function_arg_info instead of a mode and tree.
16329         * targhooks.c (default_setup_incoming_varargs): Likewise.
16330         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16331         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16332         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16333         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16334         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16335         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16336         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16337         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16338         Likewise.
16339         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16340         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16341         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16342         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16343         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16344         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16345         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16346         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16347         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16348         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16349         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16350         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16351         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16352         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16353         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16354         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16355         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16356         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16357         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16358         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16359         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16360         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16361         * function.c (assign_parms_setup_varargs): Update call to
16362         targetm.calls.setup_incoming_varargs.
16363
16364 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16365
16366         * target.def (pass_by_reference): Take a function_arg_info instead
16367         of a mode, type and named flag.
16368         * doc/tm.texi: Regenerate.
16369         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16370         accordingly.
16371         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16372         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16373         function_arg_info instead of a mode, type and named flag.
16374         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16375         * calls.h (pass_by_reference): Take a function_arg_info instead of a
16376         mode, type and named flag.
16377         * calls.c (pass_by_reference): Likewise.
16378         (pass_va_arg_by_reference): Update call accordingly.
16379         (initialize_argument_information): Likewise.
16380         (emit_library_call_value_1): Likewise.
16381         * function.c (assign_parm_find_data_types): Likewise.
16382         * var-tracking.c (prepare_call_arguments): Likewise.
16383         * stor-layout.c: Include calls.h.
16384         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16385         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16386         function_arg_info instead of a mode, type and named flag.
16387         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16388         * config/arc/arc.c (arc_pass_by_reference): Likewise.
16389         * config/arm/arm.c (arm_pass_by_reference): Likewise.
16390         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16391         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16392         (c6x_call_saved_register_used): Update call to pass_by_reference.
16393         * config/cris/cris.c (cris_pass_by_reference): Take a
16394         function_arg_info instead of a mode, type and named flag.
16395         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16396         function_arg_info instead of a mode, type and named flag.
16397         (epiphany_arg_partial_bytes): Update call accordingly.
16398         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16399         function_arg_info instead of a mode, type and named flag.
16400         (ft32_arg_partial_bytes): Update call accordingly.
16401         * config/i386/i386.c (ix86_pass_by_reference): Take a
16402         function_arg_info instead of a mode, type and named flag.
16403         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16404         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16405         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16406         (m32r_return_in_memory): Update call accordingly.
16407         * config/mips/mips.c (mips_pass_by_reference): Take a
16408         function_arg_info instead of a mode, type and named flag.
16409         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16410         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16411         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16412         (moxie_arg_partial_bytes): Update call accordingly.
16413         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16414         function_arg_info instead of a mode, type and named flag.
16415         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16416         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16417         * config/pa/pa.c (pa_pass_by_reference): Likewise.
16418         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16419         (riscv_return_in_memory): Update call accordingly.
16420         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16421         function_arg_info instead of a mode, type and named flag.
16422         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16423         (rs6000_parm_needs_stack): Update call to pass_by_reference.
16424         * config/s390/s390.c (s390_pass_by_reference): Take a
16425         function_arg_info instead of a mode, type and named flag.
16426         (s390_call_saved_register_used): Update call accordingly.
16427         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16428         instead of a mode, type and named flag.
16429         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16430         * config/spu/spu.c (spu_pass_by_reference): Likewise.
16431         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16432         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16433         * config/v850/v850.c (v850_pass_by_reference): Likewise.
16434         * config/visium/visium.c (visium_pass_by_reference): Likewise.
16435
16436 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16437
16438         * target.def (arg_partial_bytes): Take a function_arg_info instead
16439         of a mode, type and named flag.
16440         * doc/tm.texi: Regenerate.
16441         * target.h (function_arg_info): Declare.
16442         * calls.h (function_arg_info): New class.
16443         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16444         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16445         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16446         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16447         * calls.c (initialize_argument_information): Update call to
16448         targetm.calls.partial_bytes.
16449         (emit_library_call_value_1): Likewise.
16450         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16451         * function.c (assign_parm_find_entry_rtl): Likewise.
16452         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16453         function_arg_info instead of a mode, type and named flag.
16454         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16455         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16456         (cmse_func_args_or_return_in_stack): Update accordingly.
16457         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16458         function_arg_info instead of a mode, type and named flag.
16459         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16460         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16461         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16462         * config/fr30/fr30.c: Include calls.h.
16463         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16464         type and named flag.
16465         * config/frv/frv.c: Include calls.h.
16466         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16467         type and named flag.
16468         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16469         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16470         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16471         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16472         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16473         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16474         * config/microblaze/microblaze.c (function_arg_partial_bytes):
16475         Likewise.
16476         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16477         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16478         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16479         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16480         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16481         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16482         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16483         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16484         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16485         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16486         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16487         (rs6000_parm_needs_stack): Update call accordingly.
16488         * config/sh/sh.c (sh_arg_partial_bytes): Take a
16489         function_arg_info instead of a mode, type and named flag.
16490         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16491         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16492
16493 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16494
16495         * calls.h (must_pass_va_arg_in_stack): Declare.
16496         * calls.c (must_pass_va_arg_in_stack): New function.
16497         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16498         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16499         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16500         Likewise.
16501         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16502
16503 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16504
16505         * calls.h (pass_va_arg_by_reference): Declare.
16506         * calls.c (pass_va_arg_by_reference): New function.
16507         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16508         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16509         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16510         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16511         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16512         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16513         (mips_gimplify_va_arg_expr): Likewise.
16514         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16515         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16516         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16517         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16518         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16519         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16520         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16521         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16522         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16523         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16524         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16525
16526 2019-08-20  Richard Biener  <rguenther@suse.de>
16527
16528         PR target/91498
16529         * config/i386/i386-features.c (general_scalar_chain::convert_op):
16530         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16531         (convert_scalars_to_vector): Add timode_p parameter and use it
16532         to guard TImode-only operation.
16533         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16534         (pass_stv::execute): Pass down timode_p.
16535
16536 2019-08-20  Lili Cui  <lili.cui@intel.com>
16537
16538         * common/config/i386/i386-common.c
16539         (processor_names): Add tigerlake and cooperlake.
16540         (processor_alias_table): Add tigerlake and cooperlake.
16541         * config.gcc: Add -march=tigerlake and cooperlake.
16542         * config/i386/driver-i386.c
16543         (host_detect_local_cpu): Detect tigerlake and cooperlake.
16544         Add "has_avx" to classify processor.
16545         * config/i386/i386-builtins.c (processor_model) :
16546         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16547         (arch_names_table): Add tigerlake and cooperlake.
16548         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16549         and PROCESSOR_COOPERLAKE.
16550         * config/i386/i386-c.c
16551         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16552         * config/i386/i386-options.c
16553         (m_TIGERLAKE): Define.
16554         (m_COOPERLAKE): Ditto.
16555         (m_CORE_AVX512): Ditto.
16556         (processor_cost_table): Add cascadelake.
16557         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16558         * config/i386/i386.h
16559         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16560         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16561         (PTA_MOVDIRI): Ditto.
16562         (PTA_MOVDIR64B): Ditto.
16563         (PTA_COOPERLAKE): Ditto.
16564         (PTA_TIGERLAKE): Ditto.
16565         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16566         * doc/extend.texi: Add tigerlake and cooperlake.
16567         * doc/invoke.texi: Add tigerlake and cooperlake.
16568
16569 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
16570
16571         * doc/install.texi (Specific, alpha): Remove note to use
16572         binutils 2.11.2 or later.
16573
16574 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16575
16576         PR middle-end/89544
16577         * function.c (assign_parm_find_stack_rtl): Use larger alignment
16578         when possible.
16579
16580 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
16581
16582         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16583         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16584         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16585         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16586         * config/aarch64/constraints.md (Dt): New constraint
16587         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16588
16589 2019-08-19  Richard Biener  <rguenther@suse.de>
16590
16591         PR tree-optimization/91403
16592         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16593         cases we can handle with tail-recursion...
16594         (follow_ssa_edge_expr): ... here.  Do so.
16595
16596 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
16597
16598         PR target/91441
16599         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16600         implemented for -fsanitize=kernel-address, and merge check logic
16601         with -fsanitize=address.
16602
16603 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
16604
16605         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16606         for cpu and machine.  Factor 64/32b builtins.
16607
16608 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
16609
16610         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16611         gone, point to sourceforge.net.
16612
16613 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
16614         
16615         * doc/ux.texi (User Experience Guidelines): Update reference.
16616
16617 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
16618         
16619         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16620         not LGPL".
16621
16622 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
16623
16624         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16625         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
16626
16627 2019-08-16  Martin Sebor  <msebor@redhat.com>
16628
16629         * tree.def (TYPE_SIZE): Clarify.
16630         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16631
16632 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16633
16634         PR tree-optimization/91109
16635         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16636         * lra.c (lra): Use lra_need_for_scratch_reg_p.
16637         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16638
16639 2019-08-16  Uroš Bizjak  <ubizjak@gmail.com>
16640
16641         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16642         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16643         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16644         (uavg<mode>3_ceil): New expander.
16645         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16646         mode iterator when creating CONST1_RTX.
16647         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16648         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16649         mode iterator for const1_operand predicate.
16650
16651 2019-08-16  Richard Biener  <rguenther@suse.de>
16652
16653         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16654         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16655         follow_ssa_edge.
16656         (follow_ssa_edge_in_condition_phi_branch): Likewise.
16657         (analyze_evolution_in_loop): Likewise.
16658         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16659         (follow_ssa_edge_expr): ... here.  Refactor code.
16660
16661 2019-08-16  Richard Biener  <rguenther@suse.de>
16662
16663         PR target/91469
16664         * config/i386/i386-features.c
16665         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16666
16667 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16668
16669         PR other/91255
16670         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16671         only if subst_name matches curr_attr string.
16672
16673 2019-08-16  Richard Biener  <rguenther@suse.de>
16674
16675         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16676         stmt at gsi_p, instead replace it with a NOP removed later.
16677         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16678         that became dead because of that.
16679
16680 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
16681
16682         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16683         for which we can't represent a range.
16684         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16685         set_varying.
16686         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16687         Set VR_UNDEFINED if type is not supported.
16688         * tree-ssanames.c (get_range_info): Pass type to set_varying.
16689         * tree-vrp.c (value_range_base::check): Assert that a varying has
16690         min/max set.
16691         (value_range_base::equal_p): Early bail for undefines.
16692         (value_range_base::set_varying): Accept a type.
16693         (value_range::set_varying): Same.
16694         (value_range_base::type): VARYING can have a type, while UNDEFINE
16695         is typeless.
16696         (value_range_base::dump): Print type for VARYING nodes.
16697         (value_range_base::set): Add type to VARYING.
16698         (extract_range_from_multiplicative_op): Pass type to set_varying.
16699         (extract_range_from_binary_expr): Same.
16700         (value_range_base::intersect_helper): Same.
16701         (value_range_base::union_helper): Same.
16702         (value_range_base::normalize_symbolics): Same.
16703         (determine_value_range_1): Same.
16704         * tree-vrp.h (class value_range_base): Add type to set_varying.
16705         Add prototype for dump(void).
16706         Add prototype for supports_type_p.
16707         (class value_range): Add type to set_varying.
16708         Add prototype for dump(void).
16709         * vr-values.c (set_value_range_to_truthvalue): Pass type to
16710         set_varying.
16711         (vr_values::get_lattice_entry): Set varying even if propagation
16712         finished.
16713         Pass type to set_varying.
16714         (vr_values::get_value_range): Remove vr_const_varying.
16715         Reallocate the lattice if needed.
16716         (vr_values::update_value_range): Pass type to set_varying.
16717         (vr_values::extract_range_for_var_from_comparison_expr): Same.
16718         (vr_values::extract_range_from_binary_expr): Same.
16719         (vr_values::extract_range_from_unary_expr): Same.
16720         (vr_values::extract_range_from_cond_expr): Same.
16721         (vr_values::check_for_binary_op_overflow): Same.
16722         (vr_values::extract_range_basic): Same.
16723         (vr_values::extract_range_from_assignment): Same.
16724         (vr_values::vr_values): Increase size of num_vr_values.
16725         (vr_values::extract_range_from_phi_node): Pass type to
16726         set_varying.
16727
16728 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
16729
16730         PR target/90878
16731         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16732         for costs of hard register moves.
16733         (ix86_register_move_cost): Likewise.
16734         * config/i386/i386.h (processor_costs): Move costs of hard
16735         register moves to hard_register.  Add int_load, int_store,
16736         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16737         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16738         for costs of RTL expressions.
16739         * config/i386/x86-tune-costs.h: Move costs of hard register
16740         moves to hard_register.  Duplicate int_load, int_store,
16741         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16742         sse_load, sse_store for costs of RTL expressions.
16743
16744 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16745
16746         * target.def (setup_incoming_vararg_bounds): Remove.
16747         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16748         * doc/tm.texi: Regenerate.
16749         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16750         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16751         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16752         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16753
16754 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16755
16756         MSP430: Fix lines over 80 characters long in
16757         config/msp430/*.{c,h} files
16758
16759         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16760         specifier in string.
16761         (msp430_select_hwmult_lib): Split line more than 80 characters long.
16762         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16763         redundant old comment.
16764         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16765         Split line more than 80 characters long.
16766         * config/msp430/msp430.c (msp430_option_override): Likewise.
16767         (msp430_return_in_memory): Likewise.
16768         (msp430_gimplify_va_arg_expr): Likewise.
16769         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16770         (msp430_legitimate_constant): Likewise.
16771         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16772         (msp430_attr): Likewise.
16773         (msp430_data_attr): Likewise.
16774         (msp430_start_function): Likewise.
16775         (gen_prefix): Likewise.
16776         (msp430_init_sections): Likewise.
16777         (msp430_select_section): Likewise.
16778         (msp430_function_section): Likewise.
16779         (msp430_unique_section): Likewise.
16780         (msp430_output_aligned_decl_common): Likewise.
16781         (msp430_do_not_relax_short_jumps): Likewise.
16782         (msp430_init_builtins): Likewise.
16783         (msp430_expand_delay_cycles): Likewise.
16784         (msp430_expand_prologue): Likewise.
16785         (msp430_expand_epilogue): Likewise.
16786         (msp430_expand_helper): Likewise.
16787         (msp430_split_movsi): Likewise.
16788         (msp430_print_operand): Likewise.
16789         (msp430_return_addr_rtx): Likewise.
16790         (msp430x_extendhisi): Likewise.
16791         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16792         (ASM_SPEC): Likewise.
16793         Remove very obvious comments.
16794         (LIB_SPEC): Split line more than 80 characters long.
16795         (EH_RETURN_HANDLER_RTX): Likewise.
16796         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16797
16798 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
16799
16800         MSP430: Fix whitespace errors and incorrect indentation in
16801         config/msp430/*.{c,h} files
16802
16803         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16804         (msp430_select_hwmult_lib): Likewise.
16805         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16806         (msp430_extract_mcu_data): Likewise.
16807         (struct t_msp430_mcu_data): Likewise.
16808         * config/msp430/msp430.c (struct machine_function): Remove whitespace
16809         before left square bracket.
16810         (msp430_option_override): Fix indentation.
16811         (msp430_hard_regno_nregs_with_padding): Likewise.
16812         (msp430_initial_elimination_offset): Likewise.
16813         (msp430_special_register_convention_p): Remove whitespace before left
16814         square bracket and after exclamation mark.
16815         (msp430_evaluate_arg): Likewise.
16816         (msp430_callee_copies): Fix indentation.
16817         (msp430_gimplify_va_arg_expr): Likewise.
16818         (msp430_function_arg_advance): Remove whitespace before left square
16819         bracket.
16820         (reg_ok_for_addr): Likewise.
16821         (msp430_preserve_reg_p): Likewise.
16822         (msp430_compute_frame_info): Likewise.
16823         (msp430_asm_output_addr_const_extra): Add space between function name
16824         and open parenthesis.
16825         (has_section_name): Fix indentation.
16826         (msp430_attr): Remove trailing whitespace.
16827         (msp430_section_attr): Likewise.
16828         (msp430_data_attr): Likewise.
16829         (struct msp430_attribute_table): Fix comment and whitespace.
16830         (msp430_start_function): Remove whitespace before left square bracket.
16831         Add space between function name and open parenthesis.
16832         (msp430_select_section): Remove trailing whitespace.
16833         (msp430_section_type_flags): Remove trailing whitespace.
16834         (msp430_unique_section): Remove space before closing parenthesis.
16835         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16836         (msp430_builtins): Remove whitespace before left square bracket.
16837         (msp430_init_builtins): Fix indentation.
16838         (msp430_expand_prologue): Remove whitespace before left square bracket.
16839         Remove space before closing parenthesis.
16840         (msp430_expand_epilogue): Remove whitespace before left square bracket.
16841         (msp430_split_movsi): Remove space before closing parenthesis.
16842         (helper_function_name_mappings): Fix indentation.
16843         (msp430_use_f5_series_hwmult): Fix whitespace.
16844         (use_32bit_hwmult): Likewise.
16845         (msp430_no_hwmult): Likewise.
16846         (msp430_output_labelref): Remove whitespace before left square bracket.
16847         (msp430_print_operand_raw): Likewise.
16848         (msp430_print_operand_addr): Likewise.
16849         (msp430_print_operand): Add two spaces after '.' in comment.
16850         Fix trailing whitespace.
16851         (msp430x_extendhisi): Fix indentation.
16852         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16853         tab.
16854         (PC_REGNUM): Likewise.
16855         (STACK_POINTER_REGNUM): Likewise.
16856         (CC_REGNUM): Likewise.
16857
16858 2019-08-15  Richard Biener  <rguenther@suse.de>
16859
16860         PR target/91454
16861         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16862         helper.
16863         (general_scalar_chain::make_vector_copies): Use it.
16864
16865 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16866
16867         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16868
16869 2019-08-15  Martin Liska  <mliska@suse.cz>
16870
16871         * tree-ssa-dce.c (propagate_necessity): We can't reach now
16872         operators with no arguments.
16873         (eliminate_unnecessary_stmts): Likewise here.
16874
16875 2019-08-15  Uroš Bizjak  <ubizjak@gmail.com>
16876
16877         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16878         <case COMPARE>: Revert 2019-08-14 change.
16879         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
16880         for (TARGET_64BIT || mode != DImode).
16881
16882 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
16883
16884         * tree-vrp.c (value_range_base::set): Merge in code from
16885         value_range_base::set_and_canonicalize.
16886         Enforce canonicalization at set time.
16887         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16888         (value_range_base::set_undefined): Inline call to set().
16889         (value_range_base::set_varying): Same.
16890         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16891         (vrp_val_max): New argument handle_pointers.
16892         (vrp_val_min): Same.
16893         (ranges_from_anti_range): Same.
16894         (extract_range_into_wide_ints): Use tree argument instead of sign
16895         and precision.
16896         (extract_range_from_multiplicative_op): Take in tree type instead
16897         of precision and sign.  Adapt function for canonicalized ranges.
16898         (extract_range_from_binary_expr): Pass type to
16899         extract_range_from_multiplicative_op.
16900         Adapt for canonicalized ranges.
16901         (extract_range_from_unary_expr): Same.
16902         (value_range_base::intersect_helper): Adjust for canonicalized
16903         ranges.
16904         (value_range_base::union_helper): Same.
16905         (value_range_base::normalize_symbolics): New.
16906         * tree-vrp.h (class value_range_base): Remove
16907         set_and_canonicalize.
16908         New prototype for normalize_symbolics.
16909         (class value_range): Remove set_and_canonicalize.
16910         (vrp_val_min): Adjust prototype.
16911         (vrp_val_max): Same.
16912         * vr-values.c
16913         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
16914         instead of set_and_canonicalize.
16915
16916 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16917
16918         PR middle-end/91444
16919         * tree-vect-stmts.c (vectorizable_call): Check that the function
16920         is a BUILT_IN_MD function before passing it to
16921         targetm.vectorize.builtin_md_vectorized_function.
16922
16923 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16924
16925         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16926         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16927         (aarch64_select_early_remat_modes): Use it.
16928
16929 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16930
16931         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16932         16 for SVE predicates even if they are fixed-length.
16933
16934 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16935
16936         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16937         operand order match the MOV /Z alias.
16938
16939 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16940
16941         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16942         the vector pattern as an aarch64_svpattern argument.  Update the
16943         overloaded caller accordingly.
16944         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16945         (aarch64_output_sve_vector_inc_dec): Likewise.
16946
16947 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16948
16949         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16950         multiplication case, try to compute VG * (lowest set bit) directly
16951         rather than always basing the multiplication on VG.  Use
16952         expand_mult for the multiplication if we can.
16953
16954 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16955
16956         * config/aarch64/aarch64-protos.h
16957         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16958         (aarch64_sve_inc_dec_immediate_p): Rename to...
16959         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16960         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16961         (aarch64_output_sve_scalar_inc_dec): Declare.
16962         (aarch64_output_sve_inc_dec_immediate): Rename to...
16963         (aarch64_output_sve_vector_inc_dec): ...this.
16964         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16965         (aarch64_output_sve_scalar_inc_dec): New functions.
16966         (aarch64_output_sve_addvl_addpl): Remove the base and offset
16967         arguments.  Only handle true ADDVL and ADDPL instructions;
16968         don't emit an INC or DEC.
16969         (aarch64_sve_inc_dec_immediate_p): Rename to...
16970         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16971         (aarch64_output_sve_inc_dec_immediate): Rename to...
16972         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
16973         aarch64_sve_vector_inc_dec_immediate_p.
16974         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16975         (aarch64_sve_plus_immediate): New predicates.
16976         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16977         rather than aarch64_sve_addvl_addpl_immediate.
16978         (aarch64_sve_inc_dec_immediate): Rename to...
16979         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
16980         aarch64_sve_vector_inc_dec_immediate_p.
16981         (aarch64_sve_add_operand): Update accordingly.
16982         * config/aarch64/constraints.md (Uai): New constraint.
16983         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16984         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16985         operand into a register if it satisfies aarch64_sve_plus_immediate.
16986         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16987         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
16988         * config/aarch64/aarch64-sve.md (add<mode>3): Call
16989         aarch64_output_sve_vector_inc_dec instead of
16990         aarch64_output_sve_inc_dec_immediate.
16991
16992 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
16993
16994         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16995         (UNSPEC_REVW): New constants.
16996         (elem_bits): New mode attribute.
16997         (SVE_INT_UNARY): New int iterator.
16998         (optab): Handle UNSPEC_REV[BHW].
16999         (sve_int_op): New int attribute.
17000         (min_elem_bits): Handle VNx16QI and the predicate modes.
17001         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
17002         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
17003         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
17004         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
17005         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
17006         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
17007         unspecs based on the total width of the reversed data.
17008         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
17009         reinterpret followed by a subreg on big-endian targets.
17010
17011 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17012             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17013
17014         * config/aarch64/aarch64-sve.md
17015         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
17016         alternatives in which one of the inputs is in the same register
17017         as the output.
17018
17019 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17020
17021         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
17022         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
17023
17024 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17025
17026         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
17027         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
17028
17029 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17030             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17031
17032         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
17033         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
17034         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
17035
17036 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17037             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17038
17039         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
17040         Add an alternative that uses reversed shifts.
17041
17042 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17043
17044         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
17045         struct.
17046
17047 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17048
17049         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
17050         a commutativity marker.
17051
17052 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17053             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17054
17055         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
17056         (aarch64_prepare_sve_cond_int_fma): Declare.
17057         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
17058         (aarch64_prepare_sve_int_fma): New functions.
17059         (aarch64_prepare_sve_cond_int_fma): Likewise.
17060         * config/aarch64/aarch64-sve.md
17061         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
17062         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
17063         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
17064         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
17065         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
17066         (*madd<mode>): Rename to...
17067         (*fma<mode>4): ...this.
17068         (*msub<mode>): Rename to...
17069         (*fnma<mode>4): ...this.
17070
17071 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17072             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17073
17074         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
17075         Print 2.0 naturally.
17076         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
17077         * config/aarch64/predicates.md
17078         (aarch64_sve_float_negated_arith_immediate): New predicate,
17079         renamed from aarch64_sve_float_arith_with_sub_immediate.
17080         (aarch64_sve_float_arith_with_sub_immediate): Test for both
17081         positive and negative constants.
17082         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
17083         or an aarch64_sve_float_arith_with_sub_immediate.
17084         * config/aarch64/constraints.md (vsN): Use
17085         aarch64_sve_float_negated_arith_immediate.
17086         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
17087         iterator.
17088         (sve_pred_fp_rhs2_immediate): New int attribute.
17089         * config/aarch64/aarch64-sve.md
17090         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
17091         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
17092         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
17093         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
17094         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
17095         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
17096
17097 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17098             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17099
17100         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
17101         (*aarch64_cond_abd<SVE_F:mode>_3)
17102         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
17103
17104 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17105             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17106
17107         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
17108         (*aarch64_cond_<su>abd<mode>_any): New patterns.
17109
17110 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17111             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17112
17113         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
17114         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
17115         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
17116         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
17117         optabs.
17118         * optabs.h (create_convert_operand_from): Expand comment.
17119         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
17120         when mapping scalar rtxes to vector operands.
17121         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
17122         ashiftrt and lshiftrt.
17123         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
17124         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
17125         (*cond_<optab><mode>_any_const): New patterns.
17126
17127 2019-08-15  Martin Liska  <mliska@suse.cz>
17128
17129         PR ipa/91438
17130         * cgraph.c (cgraph_node::remove): When setting
17131         n->origin = NULL for all nested functions, reset
17132         also next_nested.
17133
17134 2019-08-15  Martin Liska  <mliska@suse.cz>
17135
17136         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
17137         and next_nested.
17138
17139 2019-08-15  Martin Liska  <mliska@suse.cz>
17140
17141         PR ipa/91404
17142         * passes.c (order): Remove.
17143         (uid_hash_t): Likewise).
17144         (remove_cgraph_node_from_order): Remove from set
17145         of pointers (cgraph_node *).
17146         (insert_cgraph_node_to_order): New.
17147         (duplicate_cgraph_node_to_order): New.
17148         (do_per_function_toporder): Register all 3 cgraph hooks.
17149         Skip removed_nodes now as we know about all of them.
17150
17151 2019-08-14  Uroš Bizjak  <ubizjak@gmail.com>
17152
17153         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
17154         <case E_V8QImode>: Use vector_set path for
17155         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17156         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
17157         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17158
17159 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17160
17161         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
17162
17163 2019-08-14  Martin Sebor  <msebor@redhat.com>
17164
17165         PR tree-optimization/91294
17166         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
17167         source length as exact.
17168
17169 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
17170
17171         * doc/extend.texi: Add "noinit" attribute documentation.
17172         * doc/sourcebuild.texi: Add noinit effective target documentation.
17173         * varasm.c (default_section_type_flags): Add support for "noinit"
17174         section.
17175         (default_elf_select_section): Add support for "noinit" attribute.
17176         * config/msp430/msp430.c (msp430_attribute_table): Remove
17177         "noinit" entry.
17178
17179 2019-08-14  Richard Biener  <rguenther@suse.de>
17180             Uroš Bizjak  <ubizjak@gmail.com>
17181
17182         PR target/91154
17183         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
17184         mode arguments.
17185         (scalar_chain::smode): New member.
17186         (scalar_chain::vmode): Likewise.
17187         (dimode_scalar_chain): Rename to...
17188         (general_scalar_chain): ... this.
17189         (general_scalar_chain::general_scalar_chain): Take mode arguments.
17190         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
17191         base with TImode and V1TImode.
17192         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
17193         (general_scalar_chain::vector_const_cost): Adjust for SImode
17194         chains.
17195         (general_scalar_chain::compute_convert_gain): Likewise.  Add
17196         {S,U}{MIN,MAX} support.
17197         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17198         (general_scalar_chain::make_vector_copies): Likewise.  Handle
17199         non-DImode chains appropriately.
17200         (general_scalar_chain::convert_reg): Likewise.
17201         (general_scalar_chain::convert_op): Likewise.
17202         (general_scalar_chain::convert_insn): Likewise.  Add
17203         fatal_insn_not_found if the result is not recognized.
17204         (convertible_comparison_p): Pass in the scalar mode and use that.
17205         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
17206         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
17207         (scalar_to_vector_candidate_p): Remove by inlining into single
17208         caller.
17209         (general_remove_non_convertible_regs): Rename from
17210         dimode_remove_non_convertible_regs.
17211         (remove_non_convertible_regs): Remove by inlining into single caller.
17212         (convert_scalars_to_vector): Handle SImode and DImode chains
17213         in addition to TImode chains.
17214         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17215         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17216         (*<maxmin>di3_doubleword): Likewise.
17217
17218 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17219             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17220
17221         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17222         (*cond_bic<mode>_any): New patterns.
17223
17224 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17225
17226         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17227         take the equivalent mask, as well as a bit count.
17228         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17229         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17230         (aarch64_sve_pred_and_operand): New predicates.
17231         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17232         code attribute.
17233         * config/aarch64/aarch64-sve.md
17234         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17235         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17236
17237 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17238
17239         * config/aarch64/aarch64-sve.md
17240         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17241         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17242         New patterns.
17243
17244 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17245             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17246
17247         * config/aarch64/aarch64-sve.md
17248         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17249         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17250
17251 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17252             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17253
17254         * config/aarch64/aarch64-sve.md
17255         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17256         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17257
17258 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17259
17260         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17261         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17262         New pattern.
17263
17264 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17265             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17266
17267         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17268
17269 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17270             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17271
17272         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17273         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17274         (aarch64_print_operand): Add support for %I.
17275         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17276         Bitcast floating-point constants to the corresponding integer constant.
17277         (aarch64_float_const_representable_p): Handle vectors as well
17278         as scalars.
17279         (aarch64_expand_sve_vcond): Make sure that the operands are valid
17280         for the new vcond_mask_<mode><vpred> expander.
17281         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17282         test aarch64_float_const_representable_p.
17283         (aarch64_sve_reg_or_dup_imm): New predicate.
17284         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17285         gen_vcond_mask_<mode><vpred> instead of
17286         gen_aarch64_sve_dup<mode>_const.
17287         (vcond_mask_<mode><vpred>): Turn into a define_expand that
17288         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17289         for operands 1 and 2 respectively.  Force operand 2 into a
17290         register if operand 1 is a register.  Fold old define_insn...
17291         (aarch64_sve_dup<mode>_const): ...and this define_insn...
17292         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
17293         floating-point constants that can be moved as integers.  Add
17294         alternatives for MOV /M and FMOV /M.
17295         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17296         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17297         1 and 2 respectively.
17298         * config/aarch64/constraints.md (Ufc): Handle vectors as well
17299         as scalars.
17300         (vss): New constraint.
17301
17302 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17303
17304         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17305         (aarch64_sve_float_maxmin_operand): New predicates.
17306         * config/aarch64/constraints.md (vsB): New constraint.
17307         (vsM): Fix typo.
17308         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17309         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17310         UNSPEC_COND_FMINNM.
17311         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17312         Use aarch64_sve_float_maxmin_operand for operand 2.
17313         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17314         Add alternatives for the constant forms.
17315
17316 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17317
17318         * config/aarch64/constraints.md (vsb): New constraint.
17319         (vsm): Generalize description.
17320         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17321         iterator.
17322         (sve_imm_con): Handle smax, smin, umax and umin.
17323         (sve_imm_prefix): New code attribute.
17324         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17325         (aarch64_sve_vsb_operand): New predicates.
17326         (aarch64_sve_mul_immediate): Rename to...
17327         (aarch64_sve_vsm_immediate): ...this.
17328         (aarch64_sve_mul_operand): Rename to...
17329         (aarch64_sve_vsm_operand): ...this.
17330         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17331         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17332         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17333         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17334         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17335         add movprfx support for the immediate alternatives.
17336         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17337         of the above.
17338         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17339         for operand 3.
17340
17341 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17342
17343         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17344         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17345         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17346
17347 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17348
17349         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17350         (optab, sve_int_op): Handle them.
17351         * config/aarch64/aarch64-sve.md: Expand comment.
17352
17353 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17354
17355         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17356         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17357         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17358
17359 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17360
17361         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17362         (aarch64_expand_sve_const_pred_trn): New functions.
17363         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17364         use the above functions when the parameter is true.
17365         (aarch64_expand_sve_const_pred): Update call accordingly.
17366         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17367         Rename to...
17368         (@aarch64_sve_<perm_insn><mode>): ...this.
17369
17370 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17371
17372         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17373         Declare.
17374         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17375         (aarch64_sve_emit_int_cmp): New functions.
17376         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17377         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17378         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17379         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17380         (UNSPEC_PRED_Z): New unspec.
17381         (set_clobber_cc_nzc): Delete.
17382         * config/aarch64/aarch64-sve.md: Add a block comment about
17383         UNSPEC_PRED_Z.
17384         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17385         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17386         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
17387         UNSPEC_MERGE_PTRUE.
17388         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17389         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
17390         check for compatible predicates.
17391         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17392         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17393         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
17394         comparisons above.
17395
17396 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17397
17398         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17399         * config/aarch64/aarch64-sve.md: Add a section describing it.
17400         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17401         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17402         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17403         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17404         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17405         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17406         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17407         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17408         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17409         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17410         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17411         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17412         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17413         (aarch64_evpc_rev_local): Update accordingly.
17414
17415 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17416
17417         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17418         iterators.
17419         (SVE_BHSI, SVE_SDI): Tweak comment.
17420         (SVE_HSDI): Likewise.  Fix definition.
17421         (SVE_SDF): New mode iterator.
17422         (elem_bits): New mode attribute.
17423         (SVE_COND_FCVT): New int iterator.
17424         * config/aarch64/aarch64-sve.md
17425         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17426         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17427         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17428         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17429         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17430         ...these new patterns.
17431         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17432         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17433         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17434         Merge into...
17435         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17436         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17437         ...these new patterns.
17438         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17439         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17440         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17441         ...this new pattern.
17442         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17443         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17444         ...this new pattern.
17445         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17446
17447 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17448
17449         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17450         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17451         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17452         unspecs.
17453         (optab, su): Handle them.
17454         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17455         * config/aarch64/aarch64-sve.md
17456         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17457         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17458         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17459         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17460         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17461         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17462         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17463         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17464         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17465         FIXUORS.
17466         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17467         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17468         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17469         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17470         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17471         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17472         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17473         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17474         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17475         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17476         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17477         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17478         of UNSPEC_FLOAT_CONVERT.
17479         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17480         aarch64_sve_extend<mode><Vwide>2.
17481
17482 2019-08-14  Richard Biener  <rguenther@suse.de>
17483
17484         PR target/91154
17485         * config/i386/i386-features.c
17486         (dimode_scalar_chain::compute_convert_gain): Compute and dump
17487         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
17488         ix86_cost->sse_op for vector instruction costs.
17489
17490 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17491
17492         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17493         (cmp_op): Handle it.
17494         (SVE_COND_FP_CMP): Rename to...
17495         (SVE_COND_FP_CMP_I0): ...this.
17496         (SVE_FP_CMP): Remove.
17497         * config/aarch64/aarch64-sve.md
17498         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17499         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17500         using unspecs to represent the comparison.
17501         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17502         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17503         accordingly.
17504         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17505         (aarch64_unspec_cond_code): Move after integer code.  Handle
17506         UNORDERED.
17507         (aarch64_emit_sve_predicated_cond): Replace with...
17508         (aarch64_emit_sve_fp_cond): ...this new function.
17509         (aarch64_emit_sve_or_conds): Replace with...
17510         (aarch64_emit_sve_or_fp_conds): ...this new function.
17511         (aarch64_emit_sve_inverted_cond): Replace with...
17512         (aarch64_emit_sve_invert_fp_cond): ...this new function.
17513         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17514
17515 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17516
17517         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17518         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17519         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17520         SVE_HSD instead of SVE_SD.
17521
17522 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17523             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17524
17525         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17526         iterator.
17527         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17528         attributes.
17529         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17530         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17531         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17532         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17533         (*div<SVE_F:mode>3): Generalize to...
17534         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17535
17536 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17537             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17538
17539         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17540         constants.
17541         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17542         predicate.
17543         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17544         Declare.
17545         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17546         function.
17547         * config/aarch64/aarch64-sve.md: Add a block comment about the
17548         handling of predicated FP operations.
17549         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17550         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17551         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17552         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17553         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17554         operand.
17555         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17556         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17557         operand.
17558         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17559         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17560         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17561         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17562         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17563         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17564         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17565         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17566         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17567         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17568         strictness operands.  Use aarch64_sve_pred_dominates_p to check
17569         whether the predicate on the conditional operation is suitable
17570         for merging.  Split patterns into the canonical equal-predicate form.
17571         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17572         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17573
17574 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17575             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17576
17577         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17578         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17579         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17580         rtx codes.
17581         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17582         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17583         unspecs.
17584
17585 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17586             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17587
17588         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17589         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
17590         actually has, rather than relying on REG_EQUAL notes.
17591         Make the insn operand order match the SVE operand order.
17592         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17593         the SVE operand order.
17594
17595 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17596
17597         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17598         (aarch64_emit_set_immediate): Likewise.
17599         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17600         (aarch64_pfalse_reg): Likewise.
17601         (aarch64_convert_sve_data_to_pred): New function.
17602         (aarch64_sve_move_pred_via_while): Take an optional target register
17603         and the required register mode.
17604         (aarch64_expand_sve_const_pred_1): New function.
17605         (aarch64_expand_sve_const_pred): Likewise.
17606         (aarch64_expand_mov_immediate): Build an all-true predicate
17607         if the significant bits of the immediate are all true.  Use
17608         aarch64_expand_sve_const_pred for all compile-time predicate constants.
17609         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17610         before register allocation.
17611         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17612         a VNx16BI PTRUE when splitting the memory alternative.
17613         (vec_duplicate<mode>): Update accordingly.
17614         (*pred_cmp<cmp_op><mode>): Rename to...
17615         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17616
17617 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17618
17619         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17620         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17621         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17622         (UNSPEC_PTEST): New unspec.
17623         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17624         * config/aarch64/iterators.md (data_bytes): New mode attribute.
17625         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17626         * config/aarch64/aarch64-sve.md: Add a new section describing the
17627         handling of UNSPEC_PTEST.
17628         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17629         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17630         (ptest_ptrue<mode>): Replace with...
17631         (aarch64_ptest<mode>): ...this new pattern.
17632         (cbranch<mode>4): Update after above changes.
17633         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17634         UNSPEC_PTEST_PTRUE.
17635         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17636         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17637         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17638
17639 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
17640
17641         PR lto/91287
17642         * builtins.c (builtin_with_linkage_p): New function.
17643         * builtins.h (builtin_with_linkage_p): New function.
17644         * symtab.c (write_symbol): Remove redundant assert.
17645         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17646         Remove FIXME and use builtin_with_linkage_p.
17647
17648 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17649
17650         PR middle-end/91421
17651         * tree-core.h (function_decl::function_code): Change type to
17652         unsigned int.
17653         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17654         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17655         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17656         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
17657         is BUILT_IN_NORMAL.
17658         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17659         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17660         (fndecl_built_in_p): Change the type of the "name" argument to
17661         unsigned int.
17662         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17663         after check for DECL_BUILT_IN_CLASS.
17664         * cgraphclones.c (build_function_decl_skip_args): Use
17665         set_decl_built_in_function.
17666         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17667         * ipa-split.c (split_function): Likewise.
17668         * langhooks.c (add_builtin_function_common): Likewise.
17669         * omp-simd-clone.c (simd_clone_create): Likewise.
17670         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17671         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17672         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17673         DECL_FUNCTION_CODE.
17674         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17675         instead of DECL_FUNCTION_CODE.
17676         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17677         instead of DECL_FUNCTION_CODE.
17678         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17679         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17680         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
17681         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17682         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17683         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17684         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17685         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17686         (alpha_gimple_fold_builtin): Likewise.
17687         * config/arc/arc.c (arc_expand_builtin): Likewise.
17688         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17689         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17690         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17691         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17692         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17693         * config/frv/frv.c (frv_expand_builtin): Likewise.
17694         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17695         (gcn_expand_builtin): Likewise.
17696         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17697         (fold_builtin_cpu): Likewise.
17698         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17699         * config/i386/i386.c (ix86_fold_builtin): Likewise.
17700         (ix86_gimple_fold_builtin): Likewise.
17701         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17702         (ia64_expand_builtin): Likewise.
17703         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17704         * config/mips/mips.c (mips_expand_builtin): Likewise.
17705         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17706         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17707         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17708         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17709         * config/pa/pa.c (pa_expand_builtin): Likewise.
17710         * config/pru/pru.c (pru_expand_builtin): Likewise.
17711         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17712         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17713         Likewise.
17714         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17715         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17716         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17717         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17718         (rs6000_builtin_reciprocal): Likewise.
17719         * config/rx/rx.c (rx_expand_builtin): Likewise.
17720         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17721         * config/s390/s390.c (s390_expand_builtin): Likewise.
17722         * config/sh/sh.c (sh_expand_builtin): Likewise.
17723         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17724         (sparc_fold_builtin): Likewise.
17725         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17726         * config/spu/spu.c (spu_expand_builtin): Likewise.
17727         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17728         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17729         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17730         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17731         (xtensa_expand_builtin): Likewise.
17732
17733 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17734
17735         PR middle-end/91421
17736         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17737         before the DECL_FUNCTION_CODE.
17738         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17739         to check for a BUILT_IN_ALLOCA call.
17740         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17741         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
17742         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17743         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17744         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17745         for BUILT_IN_NORMAL functions.
17746         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17747         test for BUILT_IN_TM_ABORT.
17748         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17749         to check for a BUILT_IN_STACK_RESTORE call.
17750         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17751         * tree-ssa-threadedge.c
17752         (record_temporary_equivalences_from_stmts_at_dest): Check for a
17753         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17754         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17755         test for a BUILT_IN_NORMAL call instead of a negative test for
17756         an internal function call.
17757
17758 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17759
17760         * tree.h (build_vector_a_then_b): Declare.
17761         * tree.c (build_vector_a_then_b): New function.
17762         * fold-const-call.c (fold_while_ult): Likewise.
17763         (fold_const_call): Use it to handle IFN_WHILE_ULT.
17764         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17765         (aarch64_svpattern): New enum.
17766         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17767         constants through aarch64_expand_mov_immediate.
17768         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17769         than general_operand as the predicate for operand 1.
17770         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17771         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17772         insn_type.
17773         (simd_immediate_info::simd_immediate_info): New overload that
17774         takes a scalar_int_mode and an svpattern.
17775         (simd_immediate_info::u): Add a "pattern" field.
17776         (svpattern_token): New function.
17777         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17778         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17779         (aarch64_sve_move_pred_via_while): New functions.
17780         (aarch64_expand_mov_immediate): Try using
17781         aarch64_sve_move_pred_via_while for predicates that contain N ones
17782         followed by M zeros but that do not correspond to a VLnnn pattern.
17783         (aarch64_sve_pred_valid_immediate): New function.
17784         (aarch64_simd_valid_immediate): Use it instead of dealing directly
17785         with PTRUE and PFALSE.
17786         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17787         forms.
17788
17789 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17790
17791         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17792         flag.
17793         (darwin_override_options): Likewise.
17794         * config/darwin.h: Likewise.
17795         * config/darwin.opt: Likewise.
17796         * config/i386/i386.c (output_pic_addr_const): Likewise.
17797         * config/rs6000/darwin.h: Likewise.
17798         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17799         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17800         ... this TARGET_MACHO_SYMBOL_STUBS.
17801         (FUNCTION_PROFILER):Likewise.
17802         * config/i386/i386.h: Likewise.
17803
17804 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
17805
17806         * config/i386/i386-expand.c (ix86_expand_vector_extract)
17807         <case E_V2SImode>: Use vec_extr path for
17808         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17809         <case E_V8QImode>: Ditto.
17810         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17811         Use SWI48 mode iterator.  Use %k to output operand 0.
17812         (*mmx_pextrw): New insn pattern.
17813         (*mmx_pextrb): Ditto.
17814         (*mmx_pextrb_zext): Ditto.
17815
17816 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
17817
17818         * target.def (libc_has_function, libc_has_fast_function): Improve
17819         documentation strings.
17820         * doc/tm.texi: Regenerate.
17821
17822 2019-08-13  Caroline Tice  <cmtice@google.com>
17823
17824         PR other/91396
17825         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17826         vtv_end.o or vtv_end_preinit.o files if !static.
17827
17828 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17829
17830         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17831
17832 2019-08-13  Olivier Hainque  <hainque@adacore.com>
17833
17834         * rtlanal.c (tablejump_casesi_pattern): New function, to
17835         determine if a tablejump insn is a casesi dispatcher. Extracted
17836         from patch_jump_insn.
17837         * rtl.h (tablejump_casesi_pattern): Declare.
17838         * cfgrtl.c (patch_jump_insn): Use it.
17839         * dwarf2cfi.c (create_trace_edges): Use it.
17840
17841 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17842
17843         PR target/81800
17844         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17845         operand is larger than a long int.
17846
17847 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17848
17849         * machmode.h (opt_mode::else_mode): New function.
17850         (opt_mode::else_blk): Use it.
17851         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17852         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17853         (aarch64_gen_stepped_int_parallel): Likewise.
17854         (aarch64_stepped_int_parallel_p): Likewise.
17855         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17856         argument.
17857         * config/aarch64/aarch64.c
17858         (aarch64_expand_sve_widened_duplicate): Delete.
17859         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17860         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17861         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17862         argument.  Use early returns in the !CONST_INT_P handling.
17863         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17864         than handling some inline.
17865         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17866         from...
17867         (aarch64_simd_container_mode): ...here.
17868         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17869         (aarch64_sve_ld1rq_operand_p): New functions.
17870         * config/aarch64/predicates.md (descending_int_parallel)
17871         (aarch64_sve_ld1rq_operand): New predicates.
17872         * config/aarch64/constraints.md (UtQ): New constraint.
17873         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17874         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17875         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17876         (@aarch64_sve_reinterpret<mode>): New expander.
17877         (*aarch64_sve_reinterpret<mode>): New pattern.
17878         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17879         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17880         (*sve_ld1rq<Vesize>): Replace with...
17881         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17882
17883 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
17884
17885         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17886         16:12.
17887
17888 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17889
17890         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17891         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17892         (msp430_check_path_for_devices): New.
17893         (parse_devices_csv_1): New.
17894         (parse_devices_csv): New.
17895         (msp430_extract_mcu_data): Try to find devices.csv and search for the
17896         MCU data in devices.csv before using the hard-coded data.
17897         Warn if devices.csv isn't found and the MCU wasn't found in the
17898         hard-coded data either.
17899         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17900         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17901         Search for devices.csv on -I and -L paths.
17902         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17903         msp430_set_driver_var.
17904         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17905         -mdevices-csv-loc=.
17906         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17907         searched for devices.csv.
17908         (mwarn-devices-csv): Document option.
17909
17910 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17911
17912         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17913         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17914         Use a single Dn alternative instead of separate Dz and Dm
17915         alternatives.  Use aarch64_output_sve_move_immediate.
17916         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17917         function.
17918         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17919         for predicates too.
17920         (aarch64_output_sve_mov_immediate): Handle predicate modes.
17921         (aarch64_output_ptrue): Delete.
17922
17923 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17924
17925         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17926         INDEX.
17927         (simd_immediate_info::value, simd_immediate_info::step)
17928         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17929         with...
17930         (simd_immediate_info::u): ...this new union.
17931         (simd_immediate_info::simd_immediate_info): Update accordingly.
17932         (aarch64_output_simd_mov_immediate): Likewise.
17933         (aarch64_output_sve_mov_immediate): Likewise.
17934
17935 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17936
17937         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17938         extra_gcc_objs.
17939         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17940         (msp430_select_cpu): New spec function.
17941         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17942         MCU data.
17943         * config/msp430/msp430-devices.c: New file.
17944         * config/msp430/msp430-devices.h: New file.
17945         * config/msp430/msp430.c: Remove msp430_mcu_data.
17946         (msp430_option_override): Use msp430_extract_mcu_data to extract
17947         MCU data.
17948         (msp430_use_f5_series_hwmult): Likewise.
17949         (use_32bit_hwmult): Likewise.
17950         (msp430_no_hwmult): Likewise.
17951         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17952         assembler.
17953         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17954         and -mcpu option.
17955         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17956         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17957         Remove hard-coded MCU multilib data.
17958
17959 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17960
17961         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17962         based on the mode instead of testing properties of it.
17963
17964 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17965
17966         * doc/md.texi: Document the x and y constraints for AArch64.
17967         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17968         (FP_LO8_REGS): New reg_class.
17969         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17970         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17971         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17972         * config/aarch64/predicates.md (aarch64_simd_register): Use
17973         FP_REGNUM_P instead of checking the classes manually.
17974         * config/aarch64/constraints.md (y): New constraint.
17975
17976 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17977
17978         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17979         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17980         * config/aarch64/aarch64-simd.md
17981         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17982         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17983         from the asm template.
17984         * config/aarch64/aarch64-sve.md
17985         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17986         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17987         from the asm template.
17988         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17989         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17990         from the asm template.
17991         * config/aarch64/aarch64-simd-builtins.def: Update comment.
17992
17993 2019-08-13  Martin Liska  <mliska@suse.cz>
17994
17995         * value-prof.c (gimple_ic_transform): Add new line.
17996         Print details with MSG_NOTE.
17997
17998 2019-08-13  Martin Liska  <mliska@suse.cz>
17999
18000         * doc/invoke.texi: Document automatic detection of jobserver.
18001         * lto-wrapper.c (run_gcc): Detect jobserver always.
18002
18003 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
18004
18005         * config/i386/i386-expand.c (ix86_expand_vector_set)
18006         <case E_V2SImode>: Use vec_merge path for
18007         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18008         <case E_V8QImode>: Ditto.
18009         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
18010         (*mmx_pinsrb): Ditto.
18011
18012 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
18013
18014         PR target/83250
18015         PR target/91340
18016         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
18017         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
18018         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
18019         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
18020         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
18021
18022 2019-08-12  Richard Biener  <rguenther@suse.de>
18023
18024         PR lto/91375
18025         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
18026         flag_devirtualize.
18027
18028 2019-08-12  Richard Biener  <rguenther@suse.de>
18029
18030         PR driver/91130
18031         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
18032         lang_mask option, always use CL_DRIVER.
18033         (get_options_from_collect_gcc_options): Adjust.
18034         (find_and_merge_options): Likewise.
18035         (run_gcc): Likewise.
18036
18037 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18038
18039         * ipa-predicate.c (add_condition): Restore inverted test.
18040
18041 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
18042
18043         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
18044         (enum omp_clause_device_type_kind): New enum.
18045         (struct tree_omp_clause): Add subcode.device_type_kind.
18046         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
18047         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18048         for device_type clause.
18049         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
18050         * tree-pretty-print.c (dump_omp_clause): Likewise.
18051
18052         PR target/91408
18053         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
18054         vector_operand.
18055
18056 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
18057
18058         * reload1.c (finish_spills): Do not check ira_conflicts_p when
18059         handling spilled pseudos.
18060
18061 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18062
18063         PR target/91386
18064         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
18065         to preserve the contents of the original insns.
18066
18067 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18068
18069         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
18070         (addsi3_compare_op2): Likewise.
18071
18072 2019-08-09  Martin Liska  <mliska@suse.cz>
18073
18074         * alias.c (alias_ptr_types_compatible_p): Strengten
18075         type comparison in LTO mode.
18076
18077 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
18078
18079         PR middle-end/90313
18080         * tree-tailcall.c (find_tail_calls): Reject calls that might
18081         read from an escaped RESULT_DECL.
18082
18083 2019-08-09  Martin Liska  <mliska@suse.cz>
18084
18085         * doc/invoke.texi: Document the option value.
18086         * lto-wrapper.c (run_gcc): Set auto_parallel
18087         only with -flto=auto.
18088
18089 2019-08-09  Martin Liska  <mliska@suse.cz>
18090
18091         * opts.c (common_handle_option): Error for an invalid argument
18092         to -flto=.
18093
18094 2019-08-09  Martin Liska  <mliska@suse.cz>
18095
18096         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
18097         use dump_printf to report optimization.
18098         (sem_variable::merge): Likwise.
18099         (sem_item_optimizer::merge_classes): Use dump_printf to report
18100         ICF hits.
18101
18102 2019-08-09  Martin Liska  <mliska@suse.cz>
18103
18104         * value-prof.c (gimple_divmod_fixed_value_transform):
18105         Use dump_printf_loc.
18106         (gimple_mod_pow2_value_transform): Likewise.
18107         (gimple_mod_subtract_transform): Likewise.
18108         (init_node_map): Likewise.
18109         (gimple_ic_transform): Likewise.
18110         (gimple_stringops_transform): Likewise.
18111
18112 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
18113
18114         * doc/extend.texi: Add const qualifier to ld intrinsics.
18115
18116 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18117
18118         * config/rs6000/dfp.md (D64_D128): Rename to ...
18119         (DDTD): ... this, throughout.
18120         (dfp_suffix): Rename to ...
18121         (q): ... this, throughout.
18122
18123 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18124
18125         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
18126         (dfp_suffix): Ditto.
18127         (adddd3, addtd3): Merge to ...
18128         (add<mode>3 for D64_D128): ... this.
18129         (subdd3, subtd3): Merge to ...
18130         (sub<mode>3 for D64_D128): ... this.
18131         (muldd3, multd3): Merge to ...
18132         (mul<mode>3 for D64_D128): ... this.
18133         (divdd3, divtd3): Merge to ...
18134         (div<mode>3 for D64_D128): ... this.
18135         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
18136         (*cmp<mode>_internal1 for D64_D128): ... this.
18137         (ftruncdd2, ftrunctd2): Merge to ...
18138         (ftrunc<mode>2 for D64_D128): ... this.
18139         (fixdddi2, fixtddi2): Merge to ...
18140         (fix<mode>di2 for D64_D128): ... this.
18141
18142 2019-08-08  Jim Wilson  <jimw@sifive.com>
18143
18144         PR target/91229
18145         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
18146         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
18147         Pass into recursive call.
18148         (riscv_flatten_aggregate_argument): New arg.  Pass to
18149         riscv_flatten_aggregate_field.
18150         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
18151         riscv_flatten_aggregate_argument twice, with false and true as last
18152         arg.  Process result twice.  Compare results and warn if different.
18153         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
18154
18155 2019-08-08  Martin Liska  <mliska@suse.cz>
18156
18157         PR bootstrap/91352
18158         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
18159         * lto-wrapper.c (jobserver_active_p): Likewise.
18160
18161 2019-08-08  Martin Liska  <mliska@suse.cz>
18162
18163         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
18164         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
18165         (create_version_clone_with_body): Likewise.
18166
18167 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
18168
18169         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
18170         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
18171         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
18172         GOVD_EXPLICIT flags.
18173         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
18174         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
18175         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
18176         call install_var_field with mask 11 instead of 3.
18177         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
18178         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
18179
18180 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18181
18182         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
18183         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
18184
18185 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18186
18187         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
18188         MOVPRFX alternatives.  Make the GPR alternatives more expensive
18189         than the FPR ones.
18190
18191 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18192
18193         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
18194         Disparage the GPR alternative relative to the FPR one.
18195         Fix handling of 8-bit and 16-bit FPR values.
18196
18197 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18198
18199         * config/aarch64/iterators.md (BITWISEV): Delete.
18200         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18201         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18202         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18203         UNSPEC_FMINNMV, UNSPEC_FMINV.
18204         (bit_reduc_op): Delete.
18205         (sve_int_op): New int attribute.
18206         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18207         UNSPEC_FMINNMV, UNSPEC_FMINV.
18208         * config/aarch64/aarch64-sve.md
18209         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18210         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18211         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18212         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18213         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18214         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18215         new patterns.
18216         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18217         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18218         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18219         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18220         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18221         new patterns.
18222
18223 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18224
18225         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18226         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18227         (fms<mode>4, *fms<mode>4): Replace with...
18228         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18229         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18230         Use unspecs instead of rtx codes.
18231         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18232         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18233
18234 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18235
18236         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18237         int iterator.
18238         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18239         * config/aarch64/aarch64-sve.md
18240         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18241         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18242         use a single unspec for the rhs.
18243         (*<su><maxmin><mode>3): Delete.
18244         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18245
18246 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18247
18248         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18249         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18250         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18251         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18252         (optab, sve_fp_op): Handle them.
18253         (SVE_FP_UNARY): Delete.
18254         (optab): Remove sqrt entry.
18255         (sve_fp_op): Remove neg, abs and sqrt entries.
18256         (SVE_COND_FP_UNARY): New int iterator.
18257         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18258         (*<frint_pattern><mode>2): Delete.
18259         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18260         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18261         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18262         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18263
18264 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18265
18266         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18267
18268 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18269
18270         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18271         (UNSPEC_COND_FADD): ...this.
18272         (UNSPEC_COND_SUB): Rename to...
18273         (UNSPEC_COND_FSUB): ...this.
18274         (UNSPEC_COND_MUL): Rename to...
18275         (UNSPEC_COND_FMUL): ...this.
18276         (UNSPEC_COND_DIV): Rename to...
18277         (UNSPEC_COND_FDIV): ...this.
18278         (UNSPEC_COND_MAX): Rename to...
18279         (UNSPEC_COND_FMAXNM): ...this.
18280         (UNSPEC_COND_MIN): Rename to...
18281         (UNSPEC_COND_FMINNM): ...this.
18282         (UNSPEC_COND_LT): Rename to...
18283         (UNSPEC_COND_FCMLT): ...this.
18284         (UNSPEC_COND_LE): Rename to...
18285         (UNSPEC_COND_FCMLE): ...this.
18286         (UNSPEC_COND_EQ): Rename to...
18287         (UNSPEC_COND_FCMEQ): ...this.
18288         (UNSPEC_COND_NE): Rename to...
18289         (UNSPEC_COND_FCMNE): ...this.
18290         (UNSPEC_COND_GE): Rename to...
18291         (UNSPEC_COND_FCMGE): ...this.
18292         (UNSPEC_COND_GT): Rename to...
18293         (UNSPEC_COND_FCMGT): ...this.
18294         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18295         (sve_fp_op_rev): Update accordingly.
18296         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18297
18298 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18299
18300         * config/aarch64/aarch64-sve.md: Reorganize contents and add
18301         banner comments.
18302         * config/aarch64/check-sve-md.awk: New file.
18303         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18304         (insn-conditions.md): Depend on it.
18305
18306 2019-08-07  Uroš Bizjak  <ubizjak@gmail.com>
18307
18308         PR target/91385
18309         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18310         (*negsi2_cmpz_zext): Ditto.
18311
18312 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18313
18314         * config/aarch64/iterators.md (commutative): Remove.
18315
18316 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
18317
18318         PR driver/91130
18319         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18320         processing COLLECT_GCC_OPTIONS.
18321         (run_gcc): Likewise.
18322
18323 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18324
18325         PR tree-optimization/91109
18326         * lra-remat.c (update_scratch_ops): Remove assignment of the
18327         hard register.
18328
18329 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18330
18331         * data-streamer.h (streamer_write_poly_uint64): Declare.
18332         (streamer_read_poly_uint64): Likewise.
18333         * data-streamer-in.c (streamer_read_poly_uint64): New function.
18334         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18335         * ipa-predicate.h (condition::size): Turn into a poly_int64.
18336         (add_condition): Take a poly_int64 size.
18337         * ipa-predicate.c (add_condition): Likewise.
18338         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18339         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18340         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18341         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18342         condition::size as a poly_int64.
18343         (unmodified_parm_1): Take a poly_int64 size pointer.
18344         (unmodified_parm): Likewise.
18345         (unmodified_parm_or_parm_agg_item): Likewise.
18346         (set_cond_stmt_execution_predicate): Update accordingly.
18347         (set_switch_stmt_execution_predicate): Likewise.
18348         (will_be_nonconstant_expr_predicate): Likewise.
18349         (will_be_nonconstant_predicate): Likewise.
18350         (inline_read_section): Stream condition::size as a poly_int.
18351         (ipa_fn_summary_write): Likewise.
18352
18353 2019-08-07  Martin Liska  <mliska@suse.cz>
18354
18355         * fold-const.c (twoval_comparison_p): Replace int
18356         with bool as a return type.
18357         (simple_operand_p): Likewise.
18358         (operand_equal_p): Replace int with bool as a return type.
18359         * fold-const.h (operand_equal_p): Likewise.
18360
18361 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
18362
18363         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18364         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18365         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18366         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18367         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18368         * tree-pretty-print.c (dump_omp_clause): Likewise.
18369         * tree-nested.c (convert_nonlocal_omp_clauses,
18370         convert_local_omp_clauses): Likewise.
18371         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18372         Likewise.
18373         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18374         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18375         clause with array or reference to array types, no matter what type
18376         except for reference it has.
18377
18378 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
18379
18380         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18381
18382 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
18383
18384         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18385         (arch_canonicalize): Support rv32g and rv64g and fix error
18386         handling.
18387
18388 2019-08-06  Martin Liska  <mliska@suse.cz>
18389
18390         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18391         and DECL_IS_OPERATOR_DELETE_P.
18392
18393 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
18394
18395         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18396         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
18397         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18398         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18399         (gimplify_omp_for): Don't do C++ random access iterator clause
18400         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
18401         don't predetermine the artificial iterator in case of C++ random
18402         access iterators as lastprivate, but private.  For OMP_LOOP, force
18403         bind expr around simd body and force for_pre_body before the
18404         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18405         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18406         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18407         diff var of C++ random access iterators.  Handle
18408         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18409         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18410         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18411         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18412         * omp-low.c (lower_rec_input_clauses): For
18413         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18414         variables instead of default constructing them.
18415         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18416         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18417         is_taskloop_ctx check from the assert to the guarding condition.
18418
18419 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
18420
18421         * config/riscv/multilib-generator: (canonical_order): New.
18422         (arch_canonicalize): Dito.
18423         Apply arch_canonicalize for alts.
18424
18425 2019-08-05  Martin Sebor  <msebor@redhat.com>
18426
18427         * doc/extend.texi (Common Variable Attributes): Document alias
18428         attribute.
18429
18430 2019-08-05  Marek Polacek  <polacek@redhat.com>
18431
18432         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18433         * doc/invoke.texi: Document -Wcomma-subscript.
18434
18435 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18436
18437         * tree-core.h (tree_function_decl): Make function_code an
18438         independent field.  Group the remaining bitfields into bytes
18439         and move decl_type so that it contines to be at a byte boundary.
18440         Leave 12 bits for future expansion.
18441
18442 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18443
18444         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18445         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18446         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18447         IFN_MASK_STORE.
18448
18449 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18450
18451         * gimple.h (gimple_move_vops): Declare.
18452         * gimple.c (gimple_move_vops): New function
18453         * gimple-fold.c (replace_call_with_call_and_fold)
18454         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18455         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18456         (gimple_fold_call): Use it.
18457         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18458         * tree-call-cdce.c (use_internal_fn): Likewise.
18459         * tree-if-conv.c (predicate_load_or_store): Likewise.
18460         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18461         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18462         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18463         (update_call_from_tree): Likewise.
18464         * tree-vect-stmts.c (vectorizable_load): Likewise.
18465         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18466
18467 2019-08-05  Martin Liska  <mliska@suse.cz>
18468
18469         PR c++/91334
18470         * tree-ssa-dce.c (propagate_necessity): Handle new operators
18471         with not arguments.
18472         (eliminate_unnecessary_stmts): Likewise.
18473
18474 2019-08-05  Richard Biener  <rguenther@suse.de>
18475
18476         PR middle-end/91169
18477         * fold-const.c (get_array_ctor_element_at_index): Create
18478         offset_ints according to the sign of the index type and treat
18479         that as signed if it is obviously so.
18480
18481 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
18482
18483         PR target/91341
18484         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18485         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18486         _mm256_storeu2_m128i): New function.
18487
18488 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
18489
18490         * config/riscv/riscv.c (riscv_promote_function_mode): New.
18491         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18492
18493 2019-08-05  Alan Modra  <amodra@gmail.com>
18494
18495         PR target/91349
18496         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18497         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18498
18499 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
18500
18501         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18502         bug that was fixed in Tcl 8.6.1.
18503
18504 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
18505
18506         * config/rs6000/future.md: New file.
18507         * config/rs6000/rs6000.md: Include future.md.
18508         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18509
18510 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18511
18512         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18513         check to use targetm.slow_unaligned_access instead.
18514
18515         * function.c (assign_param_data_one): Remove unused data members.
18516
18517 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
18518
18519         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18520         build_distinct_type_copy.
18521         (simd_clone_adjust_argument_types): Ditto.
18522         (simd_clone_adjust): Call build_distinct_type_copy here.
18523         (expand_simd_clones): Ditto.
18524
18525 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
18526
18527         PR target/91201
18528         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18529
18530 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
18531
18532         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18533         from 'const void *'.
18534         (sort_locs_in_loop_postorder_cmp): Likewise.
18535
18536 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
18537
18538         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18539         (hot-bb-count-ws-permille): Likewise.
18540         (hot-bb-frequency-fraction): Likewise.
18541         (unlikely-bb-count-fraction): Likewise.
18542         * params.def (hot-bb-count-fraction): Rework description.
18543         (hot-bb-count-ws-permille): Likewise.
18544         (hot-bb-frequency-fraction): Likewise.
18545         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
18546         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18547
18548 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
18549
18550         PR target/91323
18551         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18552         Return false.
18553
18554 2019-08-02  Richard Biener  <rguenther@suse.de>
18555
18556         * vec.h (vec::sort): Add gcc_qsort_r support.
18557         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18558         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18559         to gcc_qsort_r style callback.
18560         (sort_locs_in_loop_postorder_cmp): Likewise.
18561         (analyze_memory_references): Use gcc_sort_r interfaces.
18562         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18563
18564 2019-08-02  Martin Liska  <mliska@suse.cz>
18565
18566         PR lto/91313
18567         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18568         to detect working job server.
18569         (driver::detect_jobserver): Test whether jobserver
18570         is active from GCC driver. That will prevent situation where
18571         GCC is invoked from a LD plugin and the linker already uses
18572         file descriptors suggested by make.  That leads to a wrong
18573         detection.
18574         * gcc.h (driver): Add detect_jobserver.
18575         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18576         not scanning for --jobserver-auth prefix.
18577
18578 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
18579
18580         PR tree-optimization/91201
18581         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18582         V16QImode extraction without sse4.1 try to use V4SImode lowpart
18583         extraction.
18584
18585 2019-08-01  Martin Sebor  <msebor@redhat.com>
18586
18587         PR c++/90947
18588         * tree.c (type_initializer_zero_p): Define.
18589         * tree.h (type_initializer_zero_p): New function.
18590
18591 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
18592
18593         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18594
18595 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
18596
18597         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18598         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
18599         * predict.c (maybe_hot_count_p): Likewise.
18600         (maybe_hot_bb_p): Tweak comment.
18601         (maybe_hot_edge_p): Likewise.
18602         (probably_never_executed): Likewise.  Minor tweak.
18603         (probably_never_executed_bb_p): Likewise.
18604         (unlikely_executed_edge_p): Likewise.
18605         (probably_never_executed_edge_p): Likewise.
18606         (optimize_function_for_size_p): Likewise.
18607         (optimize_function_for_speed_p): Likewise.
18608         (function_optimization_type): Likewise.
18609         (optimize_bb_for_size_p): Likewise.
18610         (optimize_bb_for_speed_p): Likewise.
18611         (bb_optimization_type): Likewise.
18612         (optimize_edge_for_size_p): Likewise.
18613         (optimize_edge_for_speed_p): Likewise.
18614         (optimize_insn_for_size_p): Likewise.
18615         (optimize_insn_for_speed_p): Likewise.
18616         (optimize_loop_for_size_p): Likewise.
18617         (optimize_loop_for_speed_p): Likewise.
18618         (optimize_loop_nest_for_speed_p): Likewise.
18619         (optimize_loop_nest_for_size_p): Likewise.
18620         (predictable_edge_p): Likewise.
18621         (handle_missing_profiles): Minor tweak.
18622
18623 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
18624
18625         * config/rs6000/predicates.md (pcrel_external_address): Update
18626         comment.
18627
18628 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
18629
18630         PR target/85693
18631         * config/i386/mmx.md (usadv8qi): New expander.
18632
18633 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
18634
18635         PR c++/90590
18636         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18637         with reserved names that are in a system header.
18638
18639 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
18640
18641         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18642         (*vec_extractv2si_0_zext_sse4): New insn pattern.
18643         (*vec_extractv2si_0_zext): Ditto.
18644         (*vec_extractv2si_1): Add (rm,x) alternative.
18645         (*vec_extractv2si_1_zext): New insn pattern.
18646         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18647         insn constraint.
18648
18649 2019-08-01  Richard Biener  <rguenther@suse.de>
18650
18651         * domwalk.c (bb_postorder): Remove static variable.
18652         (cmp_bb_postorder): Adjust.
18653         (sort_bbs_postorder): Adjust and use gcc_sort_r.
18654         (dom_walker::walk): Adjust.
18655
18656 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
18657
18658         * sort.cc (sort_r_ctx): New struct.
18659         (reorder23): Make templated on context type.
18660         (reorder45): Ditto.
18661         (cmp1): Ditto.  Adjust signature.
18662         (netsort): Ditto.
18663         (mergesort): Ditto.
18664         [CHECKING_P] (cmp2to3): New static function.  Use it...
18665         (gcc_qsort) [CHECKING_P]: ...here.
18666         (gcc_sort_r): New function.
18667         * system.h (sort_r_cmp_fn): New function typedef.
18668         (qsort_chk): Adjust signature.
18669         (gcc_sort_r): Declare.
18670         * vec.c (qsort_chk_error): Adjust.
18671         (qsort_chk): Adjust.
18672
18673 2019-08-01  Richard Biener  <rguenther@suse.de>
18674
18675         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18676         (compute_antic): Localize it here.
18677
18678 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
18679
18680         * common/config/riscv/riscv-common.c: Check -march string ends
18681         with null.
18682
18683 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
18684
18685         * ipa-devirt.c (type_warning_cmp): Make static.
18686         (decl_warning_cmp): Ditto.
18687
18688 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
18689
18690         PR target/91050
18691         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18692         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18693         use of deleted rs6000_dejagnu_cpu_index variable.
18694         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18695         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18696         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18697         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18698         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18699         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18700
18701 2019-07-31  Richard Biener  <rguenther@suse.de>
18702
18703         PR tree-optimization/91280
18704         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18705         Decompose MEM_REF manually for offset handling.
18706
18707 2019-07-31  Richard Biener  <rguenther@suse.de>
18708
18709         PR tree-optimization/91293
18710         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18711         of reduction stmts.
18712
18713 2019-07-31  Matt Thomas  <matt@3am-software.com>
18714             Nick Hudson  <nick@nthcliff.demon.co.uk>
18715             Matthew Green  <mrg@eterna.com.au>
18716             Maya Rashish  <coypu@sdf.org>
18717
18718         * config.gcc (hppa*-*-netbsd*): New target.
18719         * config/pa/pa-netbsd.h: New file.
18720         * config/pa/pa32-netbsd.h: New file.
18721
18722 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18723
18724         PR tree-optimization/91201
18725         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18726
18727 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
18728
18729         * config/gcn/gcn-valu.md
18730         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18731         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18732         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18733         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18734         struct ilist. Add nops for delayeduse insns.
18735         * config/gcn/gcn.md (delayeduse): New attribute.
18736         (*movbi): Remove s_waitcnt from stores.
18737         (*mov<mode>_insn): Likewise.
18738         (*movti_insn): Likewise. Add delayeduse attribute.
18739         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18740         (atomic_store<mode>): Remove or adjust s_waitcnt.
18741
18742 2019-07-31  Richard Biener  <rguenther@suse.de>
18743
18744         * vr-values.h (vr_values::swap_vr_value): New.
18745         (vr_values::free_value_range): likewise.
18746         * vr-values.c (vr_values::swap_vr_value): Implement.
18747         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18748         Do not return a range or take a var.
18749         (evrp_range_analyzer::stack): Change back to recording a non-const
18750         value_range *.
18751         * gimple-ssa-evrp-analyze.c
18752         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18753         value-range.
18754         (evrp_range_analyzer::pop_to_marker): Adjust.
18755         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18756         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
18757         no longer needed value-range.
18758
18759 2019-07-31  Martin Liska  <mliska@suse.cz>
18760
18761         * tree-ssa-dce.c (propagate_necessity): Delete operator can
18762         have size and (or) alignment as 2nd and later arguments.
18763         Mark all of them as necessary.
18764
18765 2019-07-31  Richard Biener  <rguenther@suse.de>
18766
18767         PR tree-optimization/91178
18768         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18769         Use tail-recursion.
18770
18771 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18772
18773         PR tree-optimization/91201
18774         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18775         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18776         TARGET_AVX512F.
18777         (reduc_plus_scal_<mode>): Improve formatting by introducing
18778         a temporary.
18779
18780 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
18781
18782         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18783         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18784         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18785         (aarch64_init_tme_builtins): New.
18786         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18787         (aarch64_expand_builtin_tme): New.
18788         (aarch64_expand_builtin): Handle TME builtins.
18789         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18790         __ARM_FEATURE_TME when enabled.
18791         * config/aarch64/aarch64-option-extensions.def: Add "tme".
18792         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18793         (TARGET_TME): New.
18794         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18795         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18796         UNSPECV_TCANCEL.
18797         (tstart, ttest, tcommit, tcancel): New instructions.
18798         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18799         (__tcancel, __ttest): New.
18800         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18801         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18802         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18803         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18804         * config/arm/types.md: Add new tme type attr.
18805         * doc/invoke.texi: Document "tme".
18806
18807 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
18808
18809         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18810         warn_unused_result attribute.
18811         (cmse_check_address_range): Add warn_unused_result attribute.
18812
18813 2019-07-31  Richard Biener  <rguenther@suse.de>
18814
18815         PR tree-optimization/91257
18816         * tree-vrp.c (union_ranges): Unify equality and less tests
18817         by using compare_values.  Re-order cheap tests first.
18818
18819 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
18820
18821         PR middle-end/91301
18822         * gimplify.c (gimplify_omp_for): If for class iterator on
18823         distribute parallel for there is no data sharing clause
18824         on inner_for_stmt, look for private clause on combined
18825         parallel too and if found, move it to inner_for_stmt.
18826
18827 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
18828
18829         * lra-int.h (lra_operand_data): Remove early_clobber field.
18830         (lra_insn_reg): Likewise.
18831         * lra.c (debug_operand_data): Update accordingly.
18832         (setup_operand_alternative): Likewise.
18833         (new_insn_reg): Likewise.  Remove early_clobber parameter.
18834         (collect_non_operand_hard_regs): Update call accordingly.
18835         Don't assign to lra_insn_reg::early_clobber.
18836         (add_regs_to_insn_regno_info): Remove early_clobber parameter
18837         and update calls to new_insn_reg.
18838         (lra_update_insn_regno_info): Update calls accordingly.
18839         * lra-constraints.c (update_and_check_small_class_inputs): Take the
18840         alternative number as a parameter and test whether the operand
18841         is earlyclobbered in that particular alternative.
18842         (process_alt_operands): Update call accordingly.  Use per-alternative
18843         checks for earyclobber here too.
18844         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18845         against zero for IRA_UNKNOWN_ALT.
18846
18847 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
18848
18849         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18850
18851 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
18852
18853         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18854         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18855
18856 2019-07-30  Martin Liska  <mliska@suse.cz>
18857
18858         PR ipa/89330
18859         * cgraph.c (cgraph_edge::make_direct): Use
18860         edge->indirect_unknown_callee as edge->resolve_speculation can
18861         deallocate edge which is this pointer.
18862
18863 2019-07-30  Richard Biener  <rguenther@suse.de>
18864
18865         PR tree-optimization/91257
18866         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18867
18868 2019-07-30  Martin Liska  <mliska@suse.cz>
18869
18870         * doc/invoke.texi: Document new behavior.
18871         * lto-wrapper.c (cpuset_popcount): New function
18872         is a copy of libgomp/config/linux/proc.c.
18873         (init_num_threads): Likewise.
18874         (run_gcc): Automatically detect core count for -flto.
18875         (jobserver_active_p): New function.
18876
18877 2019-07-30  Richard Biener  <rguenther@suse.de>
18878
18879         PR tree-optimization/91257
18880         * bitmap.h (bitmap_ior_into_and_free): Declare.
18881         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18882         whether to add the unliked element to the freelist.
18883         (bitmap_list_insert_element_after): Add defaulted param for
18884         an already allocated element.
18885         (bitmap_ior_into_and_free): New function.
18886         * tree-ssa-structalias.c (condense_visit): Reduce the
18887         ponts-to and edge bitmaps of the SCC members in a
18888         logarithmic fashion rather than all to one.
18889
18890 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18891
18892         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18893         parameter.  When nonnull, make sure that the addition or subtraction
18894         has the same condition.
18895         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18896         for CFN_COND_MUL too.
18897
18898 2019-07-30  Richard Biener  <rguenther@suse.de>
18899
18900         PR tree-optimization/91291
18901         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18902         constant values.
18903
18904 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
18905
18906         PR middle-end/91216
18907         * omp-low.c (global_nonaddressable_vars): New variable.
18908         (use_pointer_for_field): For global decls, if they are non-addressable,
18909         remember it in the global_nonaddressable_vars bitmap, if they are
18910         addressable and in the global_nonaddressable_vars bitmap, ignore their
18911         TREE_ADDRESSABLE bit.
18912         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18913         vars in global_nonaddressable_vars bitmap.
18914         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18915
18916         PR target/91150
18917         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18918         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
18919         comparison to unsigned HOST_WIDE_INT before shifting it left.
18920
18921 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
18922
18923         * config/i386/i386.md (movstrict<mode>): Use register_operand
18924         predicate for operand 0.  Add expander condition.  Assert that
18925         operand 0 is a SUBREG RTX.
18926         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18927         Update operand constraints and insn condition.
18928         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18929         (zero_extendqihi2_and): Do not call gen_movstrictqi.
18930         (*setcc_qi_slp): Use register_operand predicate for operand 0.
18931         Update operand 0 constraints.
18932         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18933
18934 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18935
18936         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18937         when -m{code,data}-region are used without -mlarge.
18938         * config/msp430/msp430.c (msp430_option_override): Error when a
18939         non-default code or data region is used without -mlarge.
18940         (msp430_section_attr): Emit a warning and do not add upper/lower/either
18941         attributes when they are used without -mlarge.
18942
18943 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18944
18945         PR target/70320
18946         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18947
18948 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
18949
18950         PR middle-end/91242
18951         * wide-int.h (generic_wide_int::sext_elt): New function.
18952         * inchash.h (hash::add_wide_int): Use it instead of elt.
18953
18954 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18955
18956         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18957         CODE_FOR_arm_##.
18958         * config/arm/arm.md (<crc_variant>): Rename to...
18959         (arm_<crc_variant>): ... This.
18960         (<cdp>): Rename to...
18961         (arm_<cdp>): ... This.
18962         (<ldc>): Rename to...
18963         (arm_<ldc>): ... This.
18964         (<stc>): Rename to...
18965         (arm_<stc>): ... This.
18966         (<mcr>): Rename to...
18967         (arm_<mcr>): ... This.
18968         (<mrc>): Rename to...
18969         (arm_<mrc>): ... This.
18970         (<mcrr>): Rename to...
18971         (arm_<mcrr>): ... This.
18972         (<mrrc>): Rename to...
18973         (arm_<mrrc>): ... This.
18974
18975 2019-07-29  Richard Biener  <rguenther@suse.de>
18976
18977         PR tree-optimization/91257
18978         * tree-ssa-sccvn.h (struct vn_avail): New.
18979         (struct vn_ssa_aux): Add avail member.
18980         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18981         member, add m_avail_freelist one.
18982         (rpo_elim::~rpo_elim): Remove.
18983         (rpo_elim::eliminate_avail): Adjust to new avail tracking
18984         data structure.
18985         (rpo_elim::eliminate_push_avail): Likewise.
18986         (do_unwind): Likewise.
18987         (do_rpo_vn): Likewise.
18988
18989 2019-07-29  Richard Biener  <rguenther@suse.de>
18990
18991         PR tree-optimization/91257
18992         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18993         most cases, instead call compare_values which handles the
18994         symbolic ranges we handle specially.
18995         (compare_values_warnv): Do not call operand_less_p but open-code
18996         the effective fold calls.  Avoid converting so much.
18997
18998 2019-07-29  Martin Liska  <mliska@suse.cz>
18999
19000         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
19001         remove LHS of operator new call.  It's handled latter.
19002
19003 2019-07-29  Richard Biener  <rguenther@suse.de>
19004
19005         PR tree-optimization/91267
19006         * vr-values.c (vr_values::update_value_range): Add early return
19007         for effectively VARYING lattice entry.
19008
19009 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19010
19011         PR debug/86638
19012         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
19013         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
19014         necessary if keep_all_vdefs_p is true.
19015         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
19016         that keep_all_vdefs_p is false.
19017         (mark_all_reaching_defs_necessary): Likewise.
19018         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
19019
19020 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19021
19022         * common.opt (Og): Change the initial value of flag_dse to 0.
19023         * opts.c (default_options_table): Move OPT_ftree_dse from
19024         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
19025         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
19026         entry before the OPT_ftree_sra entry.
19027         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
19028         of flags disabled by Og.
19029
19030 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19031
19032         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
19033         variables for -Og.
19034
19035 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19036
19037         * doc/sourcebuild.texi (check-function-bodies): Document.
19038
19039 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19040
19041         * simplify-rtx.c (simplify_const_unary_operation): Fold a
19042         VEC_DUPLICATE of a fixed-length vector even if the result
19043         is variable-length.  Likewise fold a duplicate of a
19044         variable-length vector if the variable-length vector is
19045         itself a duplicate of a fixed-length sequence.
19046         (test_vector_ops_duplicate): Test more cases.
19047
19048 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19049
19050         * vector-builder.h (vector_builder): Add a shape template parameter.
19051         (vector_builder::new_unary_operation): New function, generalizing
19052         the old tree_vector_builder function.
19053         (vector_builder::new_binary_operation): Likewise.
19054         (vector_builder::binary_encoded_nelts): Likewise.
19055         * int-vector-builder.h (int_vector_builder): Update template
19056         parameters to vector_builder.
19057         (int_vector_builder::shape_nelts): New function.
19058         * rtx-vector-builder.h (rtx_vector_builder): Update template
19059         parameters to vector_builder.
19060         (rtx_vector_builder::shape_nelts): New function.
19061         (rtx_vector_builder::nelts_of): Likewise.
19062         (rtx_vector_builder::npatterns_of): Likewise.
19063         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
19064         * tree-vector-builder.h (tree_vector_builder): Update template
19065         parameters to vector_builder.
19066         (tree_vector_builder::shape_nelts): New function.
19067         (tree_vector_builder::nelts_of): Likewise.
19068         (tree_vector_builder::npatterns_of): Likewise.
19069         (tree_vector_builder::nelts_per_pattern_of): Likewise.
19070         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
19071         (tree_vector_builder::new_binary_operation): Delete.
19072         (tree_vector_builder::binary_encoded_nelts): Likewise.
19073         * simplify-rtx.c: Include rtx-vector-builder.h.
19074         (distributes_over_addition_p): New function.
19075         (simplify_const_unary_operation)
19076         (simplify_const_binary_operation): Generalize handling of vector
19077         constants to include variable-length vectors.
19078         (test_vector_ops_series): Add more tests.
19079
19080 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
19081
19082         PR lto/91222
19083         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
19084         than INDENTIFIER_POINTER.
19085
19086 2019-07-28  Martin Liska  <mliska@suse.cz>
19087
19088         PR ipa/89330
19089         * cgraph.c (symbol_table::create_edge): Always allocate
19090         a cgraph_edge.
19091         (symbol_table::free_edge): Store summary_id to
19092         edge_released_summary_ids if != -1;
19093         * cgraph.h (NEXT_FREE_NODE): Remove.
19094         (SET_NEXT_FREE_NODE): Likewise.
19095         (NEXT_FREE_EDGE): Likewise.
19096         (symbol_table::release_symbol): Store summary_id to
19097         cgraph_released_summary_ids if != -1;
19098         (symbol_table::allocate_cgraph_symbol): Always allocate
19099         a cgraph_node.
19100
19101 2019-07-28  Alan Modra  <amodra@gmail.com>
19102
19103         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19104         gen_sibcall.
19105
19106 2019-07-28  Alan Modra  <amodra@gmail.com>
19107
19108         PR target/91135
19109         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
19110         define.
19111         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
19112         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
19113         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
19114
19115 2019-07-28  Alan Modra  <amodra@gmail.com>
19116
19117         PR target/91050
19118         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
19119         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
19120         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
19121         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
19122         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
19123         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
19124         in asm_default spec.
19125         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
19126         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
19127
19128 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
19129
19130         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
19131
19132 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19133
19134         PR target/89517
19135         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
19136         * config/aarch64/aarch64-option-extensions.def: Add new comments
19137         and restore easier to read options.
19138
19139 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19140
19141         * convert.c (convert_to_real_1): Move part of conversion code...
19142         * match.pd: ...To here.
19143
19144 2019-07-26  Martin Jambor  <mjambor@suse.cz>
19145
19146         PR ipa/89330
19147         * ipa-inline-transform.c (check_speculations_1): New function.
19148         (push_all_edges_in_set_to_vec): Likewise.
19149         (check_speculations): Use check_speculations_1, new parameter
19150         new_edges.
19151         (inline_call): Pass new_edges to check_speculations.
19152         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
19153         NULL.
19154         (speculation_useful_p): Early return true if edge is inlined, remove
19155         later checks for inline_failed.
19156
19157 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19158
19159         PR rtl-optimization/91223
19160         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
19161         matching with INOUT operand.
19162
19163 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19164
19165         * stmt.c (expand_case): Try to narrow the index type if it's larger
19166         than a word.  Tidy up.
19167
19168 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19169
19170         * cif-code.def (NEVER_CALL): New code.
19171         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
19172         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
19173
19174 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
19175
19176         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
19177         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19178
19179 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19180
19181         * ipa-devirt.c (add_type_duplicate): Fix return value.
19182
19183 2019-07-25  Richard Biener  <rguenther@suse.de>
19184
19185         * tree-vrp.c (extract_range_from_multiplicative_op): Add
19186         type parameter and use it instead of guessing expression
19187         type from the first operand.
19188         (extract_range_from_binary_expr): Pass expr_type down.
19189
19190 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19191
19192         * config/arm/arm.md (SATrev): Change to code attribute.
19193         (*satsi_<SAT:code>): Adjust for the above.
19194         (*satsi_<SAT:code>_shift): Likewise.
19195
19196 2019-07-25  Richard Biener  <rguenther@suse.de>
19197
19198         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19199         Make value_range * temporary const.
19200         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19201         Likewise.
19202         (evrp_range_analyzer::record_ranges_from_): Likewise.
19203         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19204         deal with having recorded a const one.
19205         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19206         Return a const value_range *.
19207         (evrp_range_analyzer::pop_value_range): Likewise.
19208         (evrp_range_analyzer::stack): Record const value_range *s.
19209         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19210         Adjust.
19211         * gimple-ssa-sprintf.c (get_int_range): Likewise.
19212         (format_integer): Likewise.
19213         (sprintf_dom_walker::handle_gimple_call): Likewise.
19214         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19215         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19216         (vrp_prop::get_value_range): Adjust.
19217         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19218         modifying the lattice in-place.
19219         (vrp_prop::visit_stmt): Likewise.
19220         * vr-values.c (vr_values::get_lattice_entry): New private method.
19221         (vr_values::get_value_range): Wrap it and return a const
19222         value_range *.
19223         (vr_values::set_def_to_varying): New.
19224         (vr_values::set_defs_to_varying): Use it.
19225         (vr_values::update_value_range): Likewise.
19226         (vr_values::vrp_stmt_computes_nonzero): Adjust.
19227         (values::op_with_constant_singleton_va): Likewise.
19228         (vr_values::extract_range_for_var_from_co): Likewise.
19229         (vr_values::extract_range_from_ssa_name): Likewise.
19230         (vr_values::extract_range_from_cond_expr): Likewise.
19231         (vr_values::extract_range_basic): Likewise.
19232         (compare_ranges): Take const value_range *, adjust.
19233         (compare_range_with_value): Likewise.
19234         (vrp_valueize): Adjust.
19235         (vrp_valueize_1): Likewise.
19236         (vr_values::get_vr_for_comparison): Return a const value_range *.
19237         (vr_values::compare_name_with_value): Adjust.
19238         (vr_values::compare_names): Likewise.
19239         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19240         Likewise.
19241         (vr_values::vrp_evaluate_conditional): Likewise.
19242         (find_case_label_ranges): Take a const value_range *.
19243         (vr_values::vrp_visit_switch_stmt): Adjust.
19244         (vr_values::extract_range_from_phi_node): Likewise.
19245         (vr_values::simplify_div_or_mod_using_ran): Likewise.
19246         (vr_values::simplify_abs_using_ranges): Likewise.
19247         (test_for_singularity): Take a const value_range *.
19248         (range_fits_type_p): Likewise.
19249         (vr_values::simplify_cond_using_ranges_1): Adjust.
19250         (vr_values::simplify_cond_using_ranges_2): Likewise.
19251         (vr_values::simplify_switch_using_ranges): Likewise.
19252         (vr_values::simplify_float_conversion_usi): Likewise.
19253         (vr_values::two_valued_val_range_p): Likewise.
19254         * vr-values.h (vr_values::get_value_range): Return a const
19255         value_range *.
19256         (vr_values::set_def_to_varying): New.
19257         (vr_values::get_lattice_entry): New private method.
19258         (vr_values::get_vr_for_comparison): Return a const value_range *.
19259
19260 2019-07-25  Martin Liska  <mliska@suse.cz>
19261             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
19262
19263         PR c++/23383
19264         * common.opt: Add -fallocation-dce
19265         * gimple.c (gimple_call_operator_delete_p): New.
19266         * gimple.h (gimple_call_operator_delete_p): Likewise.
19267         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19268         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19269         DECL_IS_OPERATOR_DELETE_P.
19270         (mark_all_reaching_defs_necessary_1): Likewise.
19271         (propagate_necessity): Likewise.
19272         (eliminate_unnecessary_stmts): Handle
19273         gimple_call_operator_delete_p.
19274         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19275         Add packing of OPERATOR_DELETE.
19276         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19277         Similarly here.
19278         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19279         (DECL_SET_IS_OPERATOR_DELETE): New.
19280         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19281
19282 2019-07-25  Martin Liska  <mliska@suse.cz>
19283
19284         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19285         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19286         * coverage.c (coverage_begin_function): Likewise.
19287         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19288         * gimple.c (gimple_call_nonnull_result_p): Likewise.
19289         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19290         (sem_item::hash_referenced_symbol_properties): Likewise.
19291         * lto-streamer-out.c (hash_tree): Likewise.
19292         * predict.c (expr_expected_value_1): Likewise.
19293         * tree-inline.c (expand_call_inline): Likewise.
19294         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19295         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19296         * tree-core.h (enum function_decl_type): New enum.
19297         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19298         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19299         (set_function_decl_type): Likewise.
19300         (DECL_IS_OPERATOR_NEW_P): New.
19301         (DECL_SET_IS_OPERATOR_NEW): Likewise.
19302         (DECL_LAMBDA_FUNCTION): Likewise.
19303         (DECL_LAMBDA_FUNCTION_P): Likewise.
19304         (DECL_IS_OPERATOR_NEW): Remove.
19305         (DECL_SET_LAMBDA_FUNCTION): Likewise.
19306
19307 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
19308
19309         * ipa-profile.c (get_most_common_single_value): Use
19310         get_nth_most_common_value.
19311         * profile.c (sort_hist_value): New function.
19312         (compute_value_histograms): Call sort_hist_value to sort the
19313         values after loading from disk.
19314         * value-prof.c (get_most_common_single_value): Rename to ...
19315         get_nth_most_common_value.  Add input params n, return
19316         the n_th value and count.
19317         (gimple_divmod_fixed_value_transform): Use
19318         get_nth_most_common_value.
19319         (gimple_ic_transform): Likewise.
19320         (gimple_stringops_transform): Likewise.
19321         * value-prof.h (get_most_common_single_value): Add input params
19322         n, default to 0.
19323
19324 2019-07-25  Richard Biener  <rguenther@suse.de>
19325
19326         PR tree-optimization/91236
19327         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19328         size of CONSTRUCTOR write.  Fix buffer size we pass to
19329         native_encode_expr.
19330
19331 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19332
19333         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19334         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19335         r273773.
19336
19337 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19338
19339         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19340         explicitly disabled with --disable-initfini-array.
19341
19342 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19343
19344         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19345         if-exists.
19346
19347 2019-07-24  Martin Sebor  <msebor@redhat.com>
19348
19349         PR tree-optimization/91183
19350         PR tree-optimization/86688
19351         * builtins.c (compute_objsize): Handle MEM_REF.
19352         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19353         (get_min_string_length): Remove.
19354         (count_nonzero_bytes): New function.
19355         (handle_char_store): Rename...
19356         (handle_store): to this.  Handle multibyte stores via integer types.
19357         (strlen_check_and_optimize_stmt): Adjust conditional and the called
19358         function name.
19359
19360 2019-07-24  Martin Sebor  <msebor@redhat.com>
19361
19362         PR driver/80545
19363         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19364         (diagnostic_report_diagnostic): Same.
19365         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19366         (diagnostic_context::lang_mask): New data member.
19367         * ipa-pure-const.c (suggest_attribute): Use
19368         lang_hooks.option_lang_mask ().
19369         * opts-common.c (option_enabled): Handle new argument.
19370         (get_option_state): Pass an additional argument.
19371         * opts.c (print_filtered_help): Print supported languages for
19372         unsupported options.  Adjust printing of current state.
19373         * opts.h (option_enabled): Add argument.
19374         * toplev.c (print_switch_values): Use lang_mask.
19375         (general_init): Set global_dc->lang_mask.
19376
19377 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
19378
19379         PR bootstrap/87030
19380         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19381
19382 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19383
19384         * cgraphunit.c (symbol_table::compile): Start and stop
19385         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19386         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19387
19388 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
19389
19390         * gimplify.c (flag_instrument_functions_exclude_p): Include
19391         namespace/class information in the printable name.
19392         * opts.c (add_comma_separated_to_vector): Add NUL terminator
19393         to tokens entered into the vector.
19394
19395 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
19396
19397         * tree-nested.c (build_simple_mem_ref_notrap): New function.
19398         (get_static_chain): Call it instead of build_simple_mem_ref.
19399         (get_frame_field): Likewise.
19400         (get_nonlocal_debug_decl): Likewise.
19401         (convert_nonlocal_reference_op): Likewise.
19402
19403 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
19404
19405         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19406         declaration.
19407         (arc_compute_frame_size): Millicode is disabled when compiling
19408         ISR.
19409         (arc_return_address_register): Likewise.
19410         (arc_compute_function_type): Likewise.
19411         (arc_compute_frame_size): Likewise.
19412         (secondary_reload_info): Likewise.
19413         (arc_get_unalign): Likewise.
19414         (arc_can_use_return_insn): Declare.
19415         * config/arc/arc.c (AUX_LP_START): Define
19416         (AUX_LP_END): Likewise.
19417         (arc_frame_info): Update gmask member to 64-bit datum.
19418         (GMASK_LEN): Update.
19419         (arc_compute_function_type): Make it static, move it forward.
19420         (arc_must_save_register): Update, consider the extra regs.
19421         (arc_compute_millicode_save_restore_regs): Update to use the 64
19422         bit gmask.
19423         (arc_compute_frame_size): Likewise.
19424         (arc_enter_leave_p): Likewise.
19425         (arc_save_callee_saves): Likewise.
19426         (arc_restore_callee_saves): Likewise.
19427         (arc_save_callee_enter): Likewise.
19428         (arc_restore_callee_leave): Likewise.
19429         (arc_save_callee_milli): Likewise.
19430         (arc_restore_callee_milli): Likewise.
19431         (arc_expand_prologue): Add new interrupt handling.
19432         (arc_return_address_register): Make it static, move it forward.
19433         (arc_expand_epilogue): Add new interrupt handling.
19434         (arc_get_unalign): Delete.
19435         (arc_epilogue_uses): Make sure we do not remove the extra
19436         saved/restored registers when interrupt.
19437         (arc_can_use_return_insn): New function.
19438         (push_reg): Likewise.
19439         (pop_reg): Likewise.
19440         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19441         procedures.
19442         (arc_restore_callee_saves): Likewise, but restoring.
19443         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19444         (R33_REG): Likewise.
19445         (R34_REG): Likewise.
19446         (R35_REG): Likewise.
19447         (R36_REG): Likewise.
19448         (R37_REG): Likewise.
19449         (R38_REG): Likewise.
19450         (R39_REG): Likewise.
19451         (R45_REG): Likewise.
19452         (R46_REG): Likewise.
19453         (R47_REG): Likewise.
19454         (R48_REG): Likewise.
19455         (R49_REG): Likewise.
19456         (R50_REG): Likewise.
19457         (R51_REG): Likewise.
19458         (R52_REG): Likewise.
19459         (R53_REG): Likewise.
19460         (R54_REG): Likewise.
19461         (R55_REG): Likewise.
19462         (R56_REG): Likewise.
19463         (R58_REG): Likewise.
19464         (type): Add rtie attribute.
19465         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19466         (movsi_insn): Accept moves to lp_count.
19467         (rtie): Update pattern.
19468         (simple_return): Simplify it, don't use this pattern as a return
19469         from an interrupt.
19470         (arc600_rtie): New pattern.
19471         (p_return_i): Clean up.
19472         (return): Likewise.
19473         * config/arc/builtins.def (rtie): Only available for non ARC6xx
19474         family CPUs.
19475         * config/arc/predicates.md (move_src_operand): Consider lp_count
19476         as a register.
19477
19478 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
19479
19480         * config/s390/predicates.md (addv_const_operand): New predicate.
19481         * config/s390/s390-modes.def (CCO): New condition code mode.
19482         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19483         (s390_branch_condition_mask): Likewise.
19484         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19485         ("mulv<mode>4"): New expanders.
19486         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19487         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19488         pattern definitions.
19489
19490 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19491
19492         PR middle-end/91166
19493         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19494         (define_predicates): Add entry for uniform_vector_p.
19495         (vec_same_elem_p): New match pattern.
19496
19497 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
19498
19499         PR bootstrap/87030
19500         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19501         * config/i386/darwin32-biarch.h .. to here.
19502         * config/i386/darwin64-biarch.h: Adjust comments.
19503         * config/rs6000/darwin32-biarch.h: Likewise.
19504         * config/rs6000/darwin64-biarch.h: Likewise.
19505         * config.gcc: Missed commit from r273746
19506         (*-*-darwin*): Don't include CPU t-darwin here.
19507         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19508         an error message if i686-darwin configuration is attempted for
19509         Darwin >= 18.
19510
19511 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
19512
19513         PR bootstrap/87030
19514         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19515         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19516         an error message if i686-darwin configuration is attempted for
19517         Darwin >= 18.
19518         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19519         (powerpc-*-darwin*): Use biarch files where needed.
19520         (powerpc64-*-darwin*): Likewise.
19521         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19522         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19523         arch case.
19524         * config/i386/darwin32-biarch.h: New.
19525         * config/i386/darwin64.h: Rename.
19526         * config/i386/darwin64-biarch.h: To this.
19527         * config/i386/t-darwin: Rename.
19528         * config/i386/t-darwin32-biarch: To this.
19529         * config/i386/t-darwin64: Rename.
19530         * config/i386/t-darwin64-biarch: To this.
19531         * config/rs6000/darwin32-biarch.h: New.
19532         * config/rs6000/darwin64.h: Rename.
19533         * config/rs6000/darwin64-biarch.h: To this.
19534         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19535         arch case.
19536         * config/rs6000/t-darwin8: Rename.
19537         * config/rs6000/t-darwin32-biarch: To this.
19538         * config/rs6000/t-darwin64 Rename.
19539         * config/rs6000/t-darwin64-biarch: To this.
19540
19541 2019-07-23  Martin Sebor  <msebor@redhat.com>
19542
19543         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19544
19545 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
19546
19547         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19548         (rh): New alias for it.
19549
19550 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
19551
19552         * gdbhooks.py: Pass replace=True to
19553         gdb.printing.register_pretty_printer.
19554
19555 2019-07-23  Richard Biener  <rguenther@suse.de>
19556
19557         PR debug/91231
19558         * lto-streamer-in.c (input_function): Drop inline-entry markers
19559         that ended up with an unknown location block.
19560
19561 2019-07-23  Richard Biener  <rguenther@suse.de>
19562
19563         PR tree-optimization/83518
19564         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19565         init from a constant even when partial defs are already recorded.
19566
19567 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19568
19569         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19570         * config/i386/znver1.md: Enable patterns for znver2 and add store
19571         variants which use extra AGU unit.
19572
19573 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19574
19575         * config/i386/i386-options.c (ix86_option_override_internal): Default
19576         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19577         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19578         for ZNVER2.
19579
19580 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19581
19582         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19583         (znver2_costs): Update 256 bit SSE costs and multiplication.
19584
19585 2019-07-23  Jan Beulich  <jbeulich@suse.com>
19586
19587         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19588         Require only AVX512F.
19589         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
19590         alternative expanding to vpternlog.
19591
19592 2019-07-23  Martin Liska  <mliska@suse.cz>
19593
19594         * dwarf2out.c (gen_producer_string): Canonize -flto=N
19595         to -flto in dwarf producer string.
19596
19597 2019-07-23  Richard Biener  <rguenther@suse.de>
19598
19599         * tree-cfg.c (label_for_bb): Remove global var.
19600         (main_block_label): Take label_for_bb as argument.
19601         (cleanup_dead_labels_eh): Likewise, adjust.
19602         (cleanup_dead_labels): Adjust.
19603
19604 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
19605
19606         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19607         Configurations): Add documentation for __builtin_mtfsf.
19608
19609 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
19610
19611         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19612         * config/riscv/riscv.c (riscv_constant_alignment): Use
19613         riscv_align_data_type.
19614         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19615         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19616         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19617         * config/riscv/riscv.opt (malign-data): New.
19618         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19619
19620 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19621
19622         * cgraph.c (dump_graphviz): New function.
19623         * cgraph.h (dump_graphviz): New function.
19624         * symtab.c (dump_graphviz): New function.
19625
19626 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
19627
19628         * config/aarch64/aarch64-simd.md
19629         (*aarch64_simd_sra<mode>): New.
19630         * config/aarch64/iterators.md
19631         (SHIFTRT): New iterator.
19632         (sra_op): New attribute.
19633
19634 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19635
19636         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19637         callee-saved regs R4->R10 in an interrupt function that calls another
19638         function.
19639
19640 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
19641
19642         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19643         (_mm_blendv_epi8): New.
19644
19645 2019-07-22  Richard Biener  <rguenther@suse.de>
19646
19647         PR tree-optimization/91221
19648         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19649         restrict partial-def handling of empty constructors and
19650         memset to refs with known offset.
19651
19652 2019-07-22  Jan Beulich  <jbeulich@suse.com>
19653
19654         * config/i386/sse.md (ternlogsuffix): New.
19655         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19656         AVX512F is in use.
19657         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19658
19659 2019-07-22  Martin Liska  <mliska@suse.cz>
19660
19661         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19662         comment.
19663         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19664
19665 2019-07-22  Martin Liska  <mliska@suse.cz>
19666
19667         * lto-section-in.c (lto_get_section_data):
19668         Use new function get_compression.
19669         * lto-streamer-out.c (produce_lto_section): Use
19670         set_compression to encode compression algorithm.
19671         * lto-streamer.h (struct lto_section): Do not
19672         use bitfields in the format.
19673
19674 2019-07-22  Martin Liska  <mliska@suse.cz>
19675
19676         PR driver/91172
19677         * opts-common.c (decode_cmdline_option): Decode
19678         argument of -Werror and check it for a wrong language.
19679         * opts-global.c (complain_wrong_lang): Remove such case.
19680
19681 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
19682
19683         * config/arc/arc.c (prepare_move_operands): Always use an
19684         intermediate register when storing a TLS symbols.
19685
19686 2019-07-22  Stafford Horne  <shorne@gmail.com>
19687
19688         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19689         force_reg.
19690
19691 2019-07-22  Stafford Horne  <shorne@gmail.com>
19692
19693         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19694         and munordered-float validations.
19695         * config/or1k/constraints.md (d): New register constraint.
19696         * config/or1k/predicates.md (fp_comparison_operator): New.
19697         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19698         operands.
19699         (or1k_expand_compare): Normalize unordered comparisons.
19700         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19701         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19702         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19703         * config/or1k/or1k.md (type): Add fpu.
19704         (fpu): New instruction reservation.
19705         (F, f, fr, fi, FI, FOP, fop): New.
19706         (<fop><F:mode>3): New ALU instruction definition.
19707         (float<fi><F:mode>2): New conversion instruction definition.
19708         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19709         (fpcmpcc): New code iterator.
19710         (*sf_fp_insn): New instruction definition.
19711         (cstore<F:mode>4): New expand definition.
19712         (cbranch<F:mode>4): New expand definition.
19713         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19714         munordered-float): New options.
19715         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19716         munordered-float.
19717
19718 2019-07-22  Stafford Horne  <shorne@gmail.com>
19719
19720         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19721         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19722         documenation to be more clear.
19723         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19724         more clear.
19725         * config/or1k/or1k.opt (mrori): New option.
19726         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19727         msfimm, mshftimm): Rewrite documentation to be more clear.
19728         * config/or1k/or1k.md (insn_support): Add ror and rori.
19729         (enabled): Add conditions for ror and rori.
19730         (rotrsi3): Replace condition for shftimm with ror and rori.
19731
19732 2019-07-22  Stafford Horne  <shorne@gmail.com>
19733
19734         PR target/90363
19735         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19736         (extend<mode>si2): Update predicate.
19737         * config/or1k/predicates.md (volatile_mem_operand): New.
19738         (reg_or_mem_operand): New.
19739
19740 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
19741
19742         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19743         * config/rs6000/rs6000-call.c: ... to here.
19744
19745 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19746
19747         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19748         memory.
19749
19750 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19751
19752         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19753
19754 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19755
19756         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19757
19758 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19759
19760         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19761         (any_memory_operand): New predicate.
19762         (reg_or_mem_operand): Use it.
19763
19764 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19765
19766         PR target/91204
19767         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19768
19769 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
19770
19771         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19772         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19773
19774 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
19775
19776         * tree.def (OMP_LOOP): New tree code.
19777         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19778         (enum omp_clause_bind_kind): New enum.
19779         (struct tree_omp_clause): Add subcode.bind_kind.
19780         * tree.h (OMP_LOOP_CHECK): Rename to ...
19781         (OMP_LOOPING_CHECK): ... this.
19782         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19783         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19784         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19785         (OMP_CLAUSE_BIND_KIND): Define.
19786         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19787         bind clause entries.
19788         (walk_tree_1): Handle OMP_CLAUSE_BIND.
19789         * tree-pretty-print.c (dump_omp_clause): Likewise.
19790         (dump_generic_node): Handle OMP_LOOP.
19791         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19792         (in_omp_construct): New variable.
19793         (is_gimple_stmt): Handle OMP_LOOP.
19794         (gimplify_scan_omp_clauses): For lastprivate don't set
19795         check_non_private if code == OMP_LOOP.  For reduction clause
19796         on OMP_LOOP combined with parallel or teams propagate as shared
19797         on the combined construct.  Handle OMP_CLAUSE_BIND.
19798         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19799         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19800         for constructs from a loop construct to gimplify_scan_omp_clauses.
19801         Don't predetermine iterator linear on OMP_SIMD from loop construct.
19802         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19803         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19804         to match the implicit ORT_TARGET construct around whole body.
19805         Temporarily clear in_omp_construct when processing body.
19806         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
19807         etc. temporarily set in_omp_construct when processing body.
19808         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19809         * omp-low.c (struct omp_context): Add loop_p.
19810         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19811         in that the original var might be private.
19812         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19813         (check_omp_nesting_restrictions): Adjust nesting restrictions for
19814         addition of loop construct.
19815         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19816
19817         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19818         lastprivate non-addressable iterator of a collapse(1) simd.
19819
19820 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
19821
19822         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19823         as in rs6000.c.
19824
19825 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
19826
19827         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19828         refer to default conditions.  Warn for the 'y' spec which is ignored
19829         by current linkers.
19830
19831 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
19832
19833         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19834         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19835         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19836         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19837         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19838         init_cumulative_args, rs6000_promote_function_mode,
19839         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19840         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19841         rs6000_function_arg_boundary, rs6000_parm_offset,
19842         rs6000_parm_start, rs6000_arg_size,
19843         rs6000_darwin64_record_arg_advance_flush,
19844         rs6000_darwin64_record_arg_advance_recurse,
19845         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19846         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19847         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19848         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19849         rs6000_finish_function_arg, rs6000_function_arg,
19850         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19851         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19852         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19853         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19854         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19855         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19856         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19857         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19858         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19859         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19860         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19861         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19862         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19863         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19864         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19865         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19866         get_element_number, altivec_expand_vec_set_builtin,
19867         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19868         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19869         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19870         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19871         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19872         rs6000_expand_builtin, rs6000_vector_type,
19873         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19874         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19875         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19876         to rs6000-call.c.
19877         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19878         cpu_supports_info, builtin_hash_struct, builtin_hasher,
19879         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19880         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19881         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19882         init_cumulative_args, rs6000_promote_function_mode,
19883         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19884         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19885         rs6000_function_arg_boundary, rs6000_parm_offset,
19886         rs6000_parm_start, rs6000_arg_size,
19887         rs6000_darwin64_record_arg_advance_flush,
19888         rs6000_darwin64_record_arg_advance_recurse,
19889         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19890         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19891         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19892         rs6000_mixed_function_arg, rs6000_psave_function_arg,
19893         rs6000_finish_function_arg, rs6000_function_arg,
19894         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19895         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19896         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19897         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19898         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19899         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19900         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19901         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19902         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19903         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19904         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19905         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19906         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19907         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19908         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19909         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19910         get_element_number, altivec_expand_vec_set_builtin,
19911         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19912         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19913         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19914         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19915         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19916         rs6000_expand_builtin, rs6000_vector_type,
19917         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19918         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19919         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19920         to here from rs6000.c.
19921         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19922         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19923         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19924         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19925         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19926         rs6000_return_in_memory, rs6000_return_in_msb,
19927         rs6000_pass_by_reference, setup_incoming_varargs,
19928         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19929         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19930         rs6000_function_arg_padding, rs6000_function_arg,
19931         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19932         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19933         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19934         rs6000_passes_long_double, rs6000_passes_vector,
19935         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19936         altivec_builtin_mask_for_load) Add declarations.
19937         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19938         * config/config.gcc: Add new source file rs6000-call.c to garbage
19939         collector and extra_objs.
19940
19941 2019-07-19  Jeff Law  <law@redhat.com>
19942
19943         PR tree-optimization/86061
19944         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19945         strncpy.  Drop some trivial dead code.
19946         (maybe_trim_memstar_call): Handle strncpy.
19947
19948 2019-07-19  Richard Biener  <rguenther@suse.de>
19949
19950         PR tree-optimization/91211
19951         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19952         memset encoding size.
19953
19954 2019-07-19  Uroš Bizjak  <ubizjak@gmail.com>
19955
19956         PR target/91204
19957         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19958
19959 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
19960
19961         PR ipa/91194
19962         * ipa-inline.c (recursive_inlining): Fix limits check.
19963
19964 2019-07-19  Richard Biener  <rguenther@suse.de>
19965
19966         PR tree-optimization/91200
19967         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19968         no PHI nodes in middle-bb.
19969
19970 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
19971
19972         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19973         to +sve-bitperm.
19974         * config/aarch64/aarch64-option-extensions.def: Likewise.
19975
19976 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
19977
19978         PR middle-end/91190
19979         * function.c (insert_temp_slot_address): Store into the hash table
19980         a copy of address to avoid RTL sharing issues.
19981
19982 2019-07-19  Richard Biener  <rguenther@suse.de>
19983
19984         PR tree-optimization/91207
19985         Revert
19986         2019-07-17  Richard Biener  <rguenther@suse.de>
19987
19988         PR tree-optimization/91178
19989         * tree-vect-stmts.c (get_group_load_store_type): For SLP
19990         loads with a gap larger than the vector size always use
19991         VMAT_STRIDED_SLP.
19992         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19993         avoid loading vectors that are only contained in the gap
19994         and thus are not needed.
19995
19996 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
19997
19998         * config/i386/i386.md (*addqi_2_slp): Remove.
19999         (*<code>qi_2_slp): Ditto.
20000
20001 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
20002
20003         * config/rs6000/predicates.md (prefixed_mem_operand): Call
20004         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
20005         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
20006         Rename function from rs6000_prefixed_address.
20007         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20008         TARGET_HAS_TOC.
20009         (TARGET_TOC): Likewise.
20010         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20011         rs6000.h.
20012         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20013         TARGET_HAS_TOC.
20014         (TARGET_TOC): Likewise.
20015         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20016         rs6000.h.
20017         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20018         TARGET_HAS_TOC.
20019         (TARGET_TOC): Likewise.
20020         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20021         check to require -mcmodel=medium for pc-relative addressing.
20022         (create_TOC_reference): Add assertion for TARGET_TOC.
20023         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
20024         TARGET_NO_TOC.
20025         (rs6000_emit_move): Likewise.
20026         (TOC_alias_set): Rename TOC alias set static variable from 'set'
20027         to 'TOC_alias_set'.
20028         (get_TOC_alias_set): Likewise.
20029         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
20030         TARGET_NO_TOC.
20031         (rs6000_can_eliminate): Likewise.
20032         (rs6000_prefixed_address_mode_p): Rename function from
20033         rs6000_prefixed_address.
20034         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
20035         TARGET_HAS_TOC and not pc-relative.
20036         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
20037         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20038         TARGET_HAS_TOC.
20039         (TARGET_TOC): Likewise.
20040         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20041         rs6000.h.
20042
20043 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
20044
20045         PR target/91188
20046         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
20047         for operand 0.  Do not use (match_dup) to match operand 1 with
20048         operand 0.  Add check in insn constraint that either input operand
20049         matches operand 0.  Use SWI12 mode iterator to also handle
20050         HImode operands.
20051         (*and<mode>_1_slp): Ditto.
20052         (*<code>qi_1_slp): Ditto.
20053         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
20054         Do not use (match_dup) to match operand 1 with operand 0.  Add
20055         check in insn constraint that operand 1 matches operand 0.
20056         Use SWI12 mode iterator to also handle HImode operands.
20057         (*ashl<mode>3_1_slp): Ditto.
20058         (*<shift_insn><mode>3_1_slp): Ditto.
20059         (*<rotate_insn><mode>3_1_slp): Ditto.
20060
20061 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20062
20063         * config/arm/arm-builtins.c
20064         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
20065         (arm_expand_unop_builtin): Likewise.
20066         * config/arm/crypto.md
20067         (crypto_sha1h): Convert from define_insn to define_expand.
20068         (crypto_<crypto_pattern>): Likewise.
20069         (crypto_sha1h_lb): New define_insn.
20070         (crypto_<crypto_pattern>_lb): Likewise.
20071
20072 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20073
20074         PR target/90317
20075         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
20076         (vsha1cq_u32): Likewise.
20077         (vsha1pq_u32): Likewise.
20078         (vsha1mq_u32): Likewise.
20079         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
20080         vec select.
20081         (crypto_sha1c): Correct vec select.
20082         (crypto_sha1m): Likewise.
20083         (crypto_sha1p): Likewise.
20084
20085 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
20086
20087         * config/arm/predicates.md (arm_borrow_operation): New predicate.
20088         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
20089         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
20090         (subdi_zesidi_zesidi): Likewise.
20091         (negdi2_compare, negdi2_insn): Likewise.
20092         (negdi_extensidi): Likewise.
20093         (negdi_zero_extendsidi): Likewise.
20094         (arm_cmpdi_insn): Likewise.
20095         (subsi3_carryin): Use arm_borrow_operation.
20096         (subsi3_carryin_const): Likewise.
20097         (subsi3_carryin_const0): Likewise.
20098         (subsi3_carryin_compare): Likewise.
20099         (subsi3_carryin_compare_const): Likewise.
20100         (subsi3_carryin_compare_const0): Likewise.
20101         (subsi3_carryin_shift): Likewise.
20102         (rsbsi3_carryin_shift): Likewise.
20103         (negsi2_carryin_compare): Likewise.
20104
20105 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
20106
20107         PR tree-optimization/91137
20108         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
20109         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
20110         Init, use and fini the above new field.
20111         (determine_base_object_1): New function.
20112         (determine_base_object): Reimplement using walk_tree.
20113
20114 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
20115
20116         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
20117         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
20118         CLEANUP_FORCE_FAST_DCE is set.
20119         * ifcvt.c (rest_of_handle_if_conversion): Pass
20120         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
20121         if-conversion succeeded.
20122
20123 2019-07-18  Richard Biener  <rguenther@suse.de>
20124
20125         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
20126         branches to make code less indented.
20127
20128 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
20129
20130         PR middle-end/81824
20131         * attribs.c (decls_mismatched_attributes): Simplify the logic
20132         that avoids duplicates and false positives.
20133
20134 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
20135
20136         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
20137         data into data section when generating PIC code.
20138         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
20139         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
20140         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
20141         return 2 for SOM and 0 for other targets.
20142
20143 2019-07-17  Jeff Law  <law@redhat.com>
20144
20145         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
20146         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
20147         avoid unexpected switch statement fallthru.
20148
20149 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
20150
20151         * config/i386/i386.md (*add<dwi>3_doubleword):
20152         Remove redundant constraints.
20153         (*add<mode>_1): Ditto.
20154         (*addhi_1): Ditto.
20155         (*addqi_1): Ditto.
20156         (*addqi_1_slp): Ditto.
20157         (*add<mode>_2): Ditto.
20158         (*addv<mode>4): Ditto.
20159         (*sub<dwi>3_doubleword): Ditto.
20160         (*sub<mode>_1): Ditto.
20161         (*subqi_1_slp): Ditto.
20162         (*sub<mode>_2): Ditto.
20163         (*subv<mode>4): Ditto.
20164         (*sub<mode>_3): Ditto.
20165         (@add<mode>3_carry): Ditto.
20166         (@sub<mode>3_carry): Ditto.
20167         (*add<mode>3_cc_overflow_1): Ditto.
20168         (*add<mode>3_zext_cc_overflow_2): Ditto.
20169         (*anddi_1): Ditto.
20170         (*and<mode>_1): Ditto.
20171         (*andqi_1): Ditto.
20172         (*andqi_1_slp): Ditto.
20173         (*anddi_2): Ditto.
20174         (*andqi_2_maybe_si): Ditto.
20175         (*and<mode>_2): Ditto.
20176         (*andqi_2_slp): Ditto.
20177         (*<code><mode>_1): Ditto.
20178         (*<code>qi_1): Ditto.
20179         (*<code>qi_1_slp): Ditto.
20180         (*<code><mode>_2): Ditto.
20181         (*<code>qi_2_slp): Ditto.
20182
20183 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
20184
20185         * alias.c (record_component_aliases): Do not simplify pointed-to
20186         types of ODR types.
20187
20188 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
20189
20190         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
20191         partial reg stall on alternative 2.
20192
20193 2019-07-17  Richard Biener  <rguenther@suse.de>
20194
20195         PR tree-optimization/91178
20196         * tree-ssa.c (release_defs_bitset): Iterate from higher to
20197         lower SSA names to avoid quadratic behavior in the common case.
20198         * tree-data-ref.c (split_constant_offset): Add limit argument
20199         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20200         (split_constant_offset_1): Add limit argument and use it to
20201         limit SSA def walking.  Optimize the common plus/minus case.
20202
20203 2019-07-17  Richard Biener  <rguenther@suse.de>
20204
20205         PR tree-optimization/91178
20206         * tree-vect-stmts.c (get_group_load_store_type): For SLP
20207         loads with a gap larger than the vector size always use
20208         VMAT_STRIDED_SLP.
20209         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20210         avoid loading vectors that are only contained in the gap
20211         and thus are not needed.
20212
20213 2019-07-17  Richard Biener  <rguenther@suse.de>
20214
20215         PR tree-optimization/91180
20216         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20217         computation for memset partial defs.
20218
20219 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
20220
20221         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20222         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20223         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20224         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20225         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20226         * omp-grid.c (grid_process_grid_body,
20227         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20228         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20229         == GF_OMP_FOR_KIND_SIMD.
20230         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20231         check_omp_nesting_restrictions, scan_omp_1_stmt,
20232         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20233         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20234         omp_find_scan): Likewise.
20235         * omp-expand.c (expand_omp_for): Likewise.
20236         * omp-general.c (omp_extract_for_data): Likewise.
20237
20238         PR tree-optimization/91157
20239         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20240         a vector boolean with scalar mode.
20241         (expand_vector_condition): Handle first operand being a vector boolean
20242         with scalar mode.
20243         (expand_vector_operations_1): For comparisons, don't bail out early
20244         if the return type is vector boolean with scalar mode, but comparison
20245         operand type is not.
20246
20247 2019-07-17  Richard Biener  <rguenther@suse.de>
20248
20249         PR tree-optimization/91181
20250         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20251         IFN_LOADs as calls.
20252
20253 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
20254
20255         * config/i386/i386.md (*testdi_1): Match CCZmode for
20256         constants that might have the SImode sign bit set.
20257         (*testqi_1_maybe_si): Remove "!" constraint modifier.
20258         Use correct constraints for pentium pairing.
20259         (*test<mode>_1): Ditto.
20260
20261 2019-07-16  Jeff Law  <law@redhat.com>
20262
20263         PR rtl-optimization/91173
20264         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20265         SSA_NAME with a constant value, fold its value into the offset
20266         and clear the base before calling gen_addr_rtx.
20267
20268 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
20269
20270         PR rtl-optimization/91164
20271         * dse.c (rest_of_handle_dse): If dead edges have been purged,
20272         invalidate dominance info.
20273
20274 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20275
20276         * read-md.h (md_reader::record_potential_iterator_use): Add a
20277         file_location parameter.
20278         * read-rtl.c (attribute_use::loc): New field.
20279         (map_attr_string): Take a file_location parameter.  Report cases
20280         in which attributes map to multiple distinct values.
20281         (apply_attribute_uses): Update call accordingly.
20282         (md_reader::handle_overloaded_name): Likewise.
20283         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
20284         nonnull strings.
20285         (record_attribute_use): Take a file_location parameter.
20286         Initialize attribute_use::loc.
20287         (md_reader::record_potential_iterator_use): Take a file_location
20288         parameter.  Update call to record_attribute_use.
20289         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20290         (rtx_reader::read_rtx_code): Likewise.
20291         (rtx_reader::read_rtx_operand): Likewise.  Record a location
20292         for implicitly-expanded empty strings.
20293
20294 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20295
20296         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20297         Use file_location instead of separate fields.
20298         (md_reader::set_md_ptr_loc): Take a file_location instead of a
20299         separate filename and line number.
20300         * read-md.c (ptr_loc): As above.
20301         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20302         (md_reader::fprint_md_ptr_loc): Likewise.
20303         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
20304         instead of a separate filename and line number.
20305         (md_reader::read_string): Update call accordingly.
20306
20307 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20308
20309         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20310         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20311         leaving the choice between SFDF and P implicit.
20312         (*mov<mode>_update2): Likewise.
20313         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20314         rather than leaving the choice betweem IBM128 and GPR implicit.
20315         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20316         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20317         QHSI implicit.
20318         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20319         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20320         * config/rs6000/vsx.md
20321         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20322         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20323         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20324         and VSX_EXTRACT_I implicit.
20325
20326 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20327
20328         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20329         Explicitly use <MOVEP1:MODE> for the mode attribute.
20330
20331 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
20332
20333         PR bootstrap/91176
20334         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20335
20336 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
20337
20338         PR target/91050
20339         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20340         .machine directive.
20341
20342 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
20343
20344         * config/i386/i386.md (@test<mode>_ccno_1):
20345         Rename from test<mode>_ccno_1.
20346         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
20347         (*testqi_1_maybe_si): Remove modrm attribute.
20348         (*test<mode>_1): Ditto.
20349         * config/i386/i386-expand.c (ix86_split_idivmod): Use
20350         gen_test_ccno_1 and gen_extend_insn.
20351
20352 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
20353
20354         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20355         to 0.
20356
20357 2019-07-15  Richard Biener  <rguenther@suse.de>
20358
20359         PR middle-end/91162
20360         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20361         node make sure to replace all uses with something valid.
20362
20363 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
20364
20365         PR tree-optimization/88497
20366         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20367         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20368         function undistribute_bitref_for_vector.
20369         (undistribute_bitref_for_vector): New function.
20370         (cleanup_vinfo_map): Likewise.
20371         (sort_by_mach_mode): Likewise.
20372
20373 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
20374
20375         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20376         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20377         and testdi_ccno_1 using SWI48 mode attribute.
20378         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20379         x86_64_szext_general_operand.
20380         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20381         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20382         instead of genera_operand mode attribute.
20383
20384 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
20385
20386         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20387         fopen and fclose to their respective types.
20388         (DotFn.invoke): Ditto.
20389
20390 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
20391
20392         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20393         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20394         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20395         (array_index_predicate): Remove.
20396         (analyze_function_body): Account cost for variable ofsetted array
20397         indexing.
20398         (estimate_node_size_and_time): Do not compute array index hint.
20399         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20400         (inline_read_section): Do not read array index hint.
20401         (ipa_fn_summary_write): Do not write array index hint.
20402         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20403         * ipa-cp.c (hint_time_bonus): Remove.
20404         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20405         (ipa_fnsummary): Remove array_index.
20406         * ipa-inline.c (want_inline_small_function_p): Do not use
20407         array_index.
20408         (edge_badness): Likewise.
20409         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20410
20411 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
20412
20413         PR target/91148
20414         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20415         superfluous "builtin function" phrasing.
20416
20417 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
20418
20419         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20420         Break out from ...
20421         (aliasing_component_refs_walk): Break out from ...
20422         (aliasing_component_refs_p): ... here.
20423
20424 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
20425
20426         PR target/91148
20427         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20428         "builtin function" phrasing.
20429
20430 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20431
20432         PR target/90723
20433         * recog.h (temporary_volatile_ok): New class.
20434         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20435         volatile_ok temporarily to true using temporary_volatile_ok.
20436         * expr.c (emit_block_move_via_cpymem): Likewise.
20437         * optabs.c (maybe_legitimize_operand): Likewise.
20438
20439 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
20440
20441         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20442         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20443         uses inside of order(concurrent) constructs.
20444         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20445         OMP_CLAUSE_ORDER is seen.
20446         * omp-low.c (struct omp_context): Add order_concurrent member.
20447         (scan_sharing_clauses): Set ctx->order_concurrent if
20448         OMP_CLAUSE_ORDER is seen.
20449         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20450         of simd order(concurrent).  Diagnose constructs not allowed inside of
20451         for order(concurrent).
20452         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20453         complaining about static double setjmp (double); or class static
20454         methods or non-global namespace setjmps.
20455         (omp_runtime_api_call): New function.
20456         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20457         order(concurrent) loops.
20458
20459 2019-07-12  Martin Sebor  <msebor@redhat.com>
20460
20461         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20462         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20463         * tree-vrp.c (vrp_prop::check_mem_ref): Use
20464         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20465
20466 2019-07-12  Jan Hubicka  <jh@suse.cz>
20467
20468         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20469         (indirect_refs_may_alias_p): ... here.
20470         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20471         mem refs in the access paths.
20472
20473 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
20474
20475         PR tree-optimization/89430
20476         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20477         store elimination for local variable without address escape.
20478
20479 2019-07-12  Jeff Law  <law@redhat.com>
20480
20481         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20482         for the ".far" section.
20483
20484 2019-07-12  Richard Biener  <rguenther@suse.de>
20485
20486         PR tree-optimization/91145
20487         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20488         chain check.
20489
20490 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
20491
20492         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20493         rather than this_state as the lowering context for the ELSE
20494         seq in a GIMPLE_EH_ELSE.
20495
20496 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20497
20498         * vector-builder.h (vector_builder::elt): Allow already-supplied
20499         elements to be read back before building is complete.
20500
20501 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
20502
20503         PR rtl-optimization/91136
20504         * df-core.c (ACCESSING REFS): Fix typos in comment.
20505         * resource.c (mark_target_live_reg): Add artificial defs that occur at
20506         the beginning of the block to the initial set of live registers.
20507
20508 2019-07-12  Richard Biener  <rguenther@suse.de>
20509
20510         * fold-const.h (get_array_ctor_element_at_index): Adjust.
20511         * fold-const.c (get_array_ctor_element_at_index): Add
20512         ctor_idx output parameter informing the caller where in
20513         the constructor the element was (not) found.  Add early exit
20514         for when the ctor is sorted.
20515         * gimple-fold.c (fold_array_ctor_reference): Support constant
20516         folding across multiple array elements.
20517
20518 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
20519
20520         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20521         doesn't have location, set the current location to the function's end.
20522
20523 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20524
20525         * config/aarch64/aarch64.md (*compare_condjump<mode>)
20526         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20527         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20528         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20529         * config/aarch64/aarch64-simd.md
20530         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20531         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20532         * config/aarch64/aarch64-sve.md
20533         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20534         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20535
20536 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
20537
20538         * doc/md.texi: Document that @ patterns can have different
20539         numbers of operands.
20540         * genemit.c (handle_overloaded_gen): Handle this case.
20541         * genopinit.c (handle_overloaded_gen): Likewise.
20542         * gensupport.c (replace_operands_with_dups): Iterate over
20543         the new rtx's format rather than the old one's.
20544
20545 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
20546
20547         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20548         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20549         order clause entries.
20550         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20551         * tree-pretty-print.c (dump_omp_clause): Likewise.
20552         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20553         Likewise.
20554         * omp-low.c (scan_sharing_clauses): Likewise.
20555         * tree-nested.c (convert_nonlocal_omp_clauses,
20556         convert_local_omp_clauses): Likewise.
20557
20558 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
20559
20560         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20561         fallthrough target of current basic block isn't the placed
20562         right next.
20563
20564 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
20565
20566         PR target/90980
20567         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20568         (_mm512_storeu_epi64): Likewise.
20569         (_mm512_loadu_epi32): Likewise.
20570         (_mm512_storeu_epi32): Likewise.
20571         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20572         (_mm_storeu_epi64): Likewise.
20573         (_mm256_storeu_epi32): Likewise.
20574         (_mm_storeu_epi32): Likewise.
20575
20576 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
20577
20578         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20579
20580 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
20581
20582         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20583         Handle Modula-2.
20584
20585 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
20586
20587         PR target/91124
20588         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20589         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
20590         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20591         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20592         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
20593         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20594         define_insns.
20595         (ufix_truncv2dfv2si2<mask_name>): Change into ...
20596         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
20597         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20598         define_insns.
20599         (sse2_cvttpd2dq<mask_name>): Change into ...
20600         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
20601         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20602         (*sse2_cvtpd2dq<mask_name>): Change into ...
20603         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
20604         Add "C" constraint to const0_operand.
20605         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20606         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20607         changes.
20608
20609         PR target/91124
20610         * config/i386/i386-builtin-types.def
20611         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20612         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20613         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20614         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20615         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20616         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20617         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20618         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20619         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20620         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20621         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20622         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20623         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20624         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20625         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20626         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20627         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20628         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20629         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20630         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20631         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20632         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20633         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20634         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20635         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20636         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20637         __builtin_ia32_vpdpbusd_v4si_maskz,
20638         __builtin_ia32_vpdpbusds_v16si_mask,
20639         __builtin_ia32_vpdpbusds_v16si_maskz,
20640         __builtin_ia32_vpdpbusds_v8si_mask,
20641         __builtin_ia32_vpdpbusds_v8si_maskz,
20642         __builtin_ia32_vpdpbusds_v4si_mask,
20643         __builtin_ia32_vpdpbusds_v4si_maskz,
20644         __builtin_ia32_vpdpwssd_v16si_mask,
20645         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20646         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20647         __builtin_ia32_vpdpwssd_v4si_maskz,
20648         __builtin_ia32_vpdpwssds_v16si_mask,
20649         __builtin_ia32_vpdpwssds_v16si_maskz,
20650         __builtin_ia32_vpdpwssds_v8si_mask,
20651         __builtin_ia32_vpdpwssds_v8si_maskz,
20652         __builtin_ia32_vpdpwssds_v4si_mask,
20653         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20654         suffixed types rather than *_INT.
20655         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20656         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20657         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20658         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20659         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20660         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20661
20662 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
20663
20664         * tree-vrp.c (intersect_ranges): If we know the intersection is
20665         empty, there is no need to conservatively add anything else to
20666         the set.
20667
20668 2019-07-11  Richard Biener  <rguenther@suse.de>
20669
20670         PR middle-end/91131
20671         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20672         when the object is volatile and we have not cleared it even though
20673         there are no nonzero elements.
20674
20675 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
20676
20677         * config/rs6000/predicates.md (cint34_operand): Update
20678         SIGNED_34BIT_OFFSET_P call.
20679         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20680         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20681         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20682         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20683         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20684         argument.
20685         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20686         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20687         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20688         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20689         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20690
20691 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
20692
20693         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20694         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20695         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20696         (DEF_MIN_OSX_VERSION): New.
20697
20698 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
20699
20700         * fold-const.c (fold_relational_const): Fix folding of
20701         vector-to-scalar NE_EXPRs.
20702         (test_vector_folding): Add more tests.
20703
20704 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
20705
20706         PR target/91060
20707         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20708         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20709         (vec_setv2di_internal): Reexpress as...
20710         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20711         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20712         rather than gen_neon_vset_lane<mode>.
20713
20714 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
20715
20716         PR target/91102
20717         * lra-constraints.c (process_alt_operands): Don't match user
20718         defined regs only if they are early clobbers.
20719
20720 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
20721
20722         * wide-int.h (wi::lshift): Reject negative values for the fast path.
20723
20724 2019-07-10  Richard Biener  <rguenther@suse.de>
20725
20726         PR tree-optimization/91126
20727         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20728         native encoding offset for BYTES_BIG_ENDIAN.
20729         (vn_reference_lookup_3): Likewise.
20730
20731 2019-07-10  Richard Biener  <rguenther@suse.de>
20732
20733         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20734         LHS whenever possible.
20735
20736 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
20737
20738         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20739         from ...; work also on duplicated types.
20740         (nonoverlapping_component_refs_since_match): ... here
20741         (ncr_type_uid): Break out from ...
20742         (ncr_compar): ... here; look for TYPE_UID of canonical type if
20743         available.
20744         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20745         the types and nonoverlapping_component_refs_p_1 to disambiguate.
20746
20747 2019-07-09  Martin Sebor  <msebor@redhat.com>
20748
20749         PR tree-optimization/90989
20750         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20751         optimization to just single character stores.
20752
20753 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
20754
20755         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20756         Swap operands only once.
20757
20758 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
20759
20760         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20761         for both call instructions.
20762
20763 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
20764
20765         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20766         rather than GET_MODE_BITSIZE to better handle partial integer modes.
20767
20768 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
20769
20770         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20771         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20772         function from rs6000-logue.c back to rs6000.c.
20773         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20774
20775 2019-07-09  Martin Sebor  <msebor@redhat.com>
20776
20777         PR c++/61339
20778         * auto-profile.c: Change class-key of PODs to struct and others
20779         to class.
20780         * basic-block.h: Same.
20781         * bitmap.c (bitmap_alloc): Same.
20782         * bitmap.h: Same.
20783         * builtins.c (expand_builtin_prefetch): Same.
20784         (expand_builtin_interclass_mathfn): Same.
20785         (expand_builtin_strlen): Same.
20786         (expand_builtin_mempcpy_args): Same.
20787         (expand_cmpstr): Same.
20788         (expand_builtin___clear_cache): Same.
20789         (expand_ifn_atomic_bit_test_and): Same.
20790         (expand_builtin_thread_pointer): Same.
20791         (expand_builtin_set_thread_pointer): Same.
20792         * caller-save.c (setup_save_areas): Same.
20793         (replace_reg_with_saved_mem): Same.
20794         (insert_restore): Same.
20795         (insert_save): Same.
20796         (add_used_regs): Same.
20797         * cfg.c (get_bb_copy): Same.
20798         (set_loop_copy): Same.
20799         * cfg.h: Same.
20800         * cfganal.h: Same.
20801         * cfgexpand.c (alloc_stack_frame_space): Same.
20802         (add_stack_var): Same.
20803         (add_stack_var_conflict): Same.
20804         (add_scope_conflicts_1): Same.
20805         (update_alias_info_with_stack_vars): Same.
20806         (expand_used_vars): Same.
20807         * cfghooks.c (redirect_edge_and_branch_force): Same.
20808         (delete_basic_block): Same.
20809         (split_edge): Same.
20810         (make_forwarder_block): Same.
20811         (force_nonfallthru): Same.
20812         (duplicate_block): Same.
20813         (lv_flush_pending_stmts): Same.
20814         * cfghooks.h: Same.
20815         * cfgloop.c (flow_loops_cfg_dump): Same.
20816         (flow_loop_nested_p): Same.
20817         (superloop_at_depth): Same.
20818         (get_loop_latch_edges): Same.
20819         (flow_loop_dump): Same.
20820         (flow_loops_dump): Same.
20821         (flow_loops_free): Same.
20822         (flow_loop_nodes_find): Same.
20823         (establish_preds): Same.
20824         (flow_loop_tree_node_add): Same.
20825         (flow_loop_tree_node_remove): Same.
20826         (flow_loops_find): Same.
20827         (find_subloop_latch_edge_by_profile): Same.
20828         (find_subloop_latch_edge_by_ivs): Same.
20829         (mfb_redirect_edges_in_set): Same.
20830         (form_subloop): Same.
20831         (merge_latch_edges): Same.
20832         (disambiguate_multiple_latches): Same.
20833         (disambiguate_loops_with_multiple_latches): Same.
20834         (flow_bb_inside_loop_p): Same.
20835         (glb_enum_p): Same.
20836         (get_loop_body_with_size): Same.
20837         (get_loop_body): Same.
20838         (fill_sons_in_loop): Same.
20839         (get_loop_body_in_dom_order): Same.
20840         (get_loop_body_in_custom_order): Same.
20841         (release_recorded_exits): Same.
20842         (get_loop_exit_edges): Same.
20843         (num_loop_branches): Same.
20844         (remove_bb_from_loops): Same.
20845         (find_common_loop): Same.
20846         (delete_loop): Same.
20847         (cancel_loop): Same.
20848         (verify_loop_structure): Same.
20849         (loop_preheader_edge): Same.
20850         (loop_exit_edge_p): Same.
20851         (single_exit): Same.
20852         (loop_exits_to_bb_p): Same.
20853         (loop_exits_from_bb_p): Same.
20854         (get_loop_location): Same.
20855         (record_niter_bound): Same.
20856         (get_estimated_loop_iterations_int): Same.
20857         (max_stmt_executions_int): Same.
20858         (likely_max_stmt_executions_int): Same.
20859         (get_estimated_loop_iterations): Same.
20860         (get_max_loop_iterations): Same.
20861         (get_max_loop_iterations_int): Same.
20862         (get_likely_max_loop_iterations): Same.
20863         * cfgloop.h (simple_loop_desc): Same.
20864         (get_loop): Same.
20865         (loop_depth): Same.
20866         (loop_outer): Same.
20867         (loop_iterator::next): Same.
20868         (loop_outermost): Same.
20869         * cfgloopanal.c (mark_irreducible_loops): Same.
20870         (num_loop_insns): Same.
20871         (average_num_loop_insns): Same.
20872         (expected_loop_iterations_unbounded): Same.
20873         (expected_loop_iterations): Same.
20874         (mark_loop_exit_edges): Same.
20875         (single_likely_exit): Same.
20876         * cfgloopmanip.c (fix_bb_placement): Same.
20877         (fix_bb_placements): Same.
20878         (remove_path): Same.
20879         (place_new_loop): Same.
20880         (add_loop): Same.
20881         (scale_loop_frequencies): Same.
20882         (scale_loop_profile): Same.
20883         (create_empty_if_region_on_edge): Same.
20884         (create_empty_loop_on_edge): Same.
20885         (loopify): Same.
20886         (unloop): Same.
20887         (fix_loop_placements): Same.
20888         (copy_loop_info): Same.
20889         (duplicate_loop): Same.
20890         (duplicate_subloops): Same.
20891         (loop_redirect_edge): Same.
20892         (can_duplicate_loop_p): Same.
20893         (duplicate_loop_to_header_edge): Same.
20894         (mfb_keep_just): Same.
20895         (has_preds_from_loop): Same.
20896         (create_preheader): Same.
20897         (create_preheaders): Same.
20898         (lv_adjust_loop_entry_edge): Same.
20899         (loop_version): Same.
20900         * cfgloopmanip.h: Same.
20901         * cgraph.h: Same.
20902         * cgraphbuild.c: Same.
20903         * combine.c (make_extraction): Same.
20904         * config/i386/i386-features.c: Same.
20905         * config/i386/i386-features.h: Same.
20906         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20907         (ix86_emit_outlined_ms2sysv_restore): Same.
20908         (ix86_noce_conversion_profitable_p): Same.
20909         (ix86_init_cost): Same.
20910         (ix86_simd_clone_usable): Same.
20911         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20912         Wstruct-not-pod.
20913         * coretypes.h: Same.
20914         * data-streamer-in.c (string_for_index): Change class-key of PODs
20915         to struct and others to class.
20916         (streamer_read_indexed_string): Same.
20917         (streamer_read_string): Same.
20918         (bp_unpack_indexed_string): Same.
20919         (bp_unpack_string): Same.
20920         (streamer_read_uhwi): Same.
20921         (streamer_read_hwi): Same.
20922         (streamer_read_gcov_count): Same.
20923         (streamer_read_wide_int): Same.
20924         * data-streamer.h (streamer_write_bitpack): Same.
20925         (bp_unpack_value): Same.
20926         (streamer_write_char_stream): Same.
20927         (streamer_write_hwi_in_range): Same.
20928         (streamer_write_record_start): Same.
20929         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20930         (add_cross_iteration_register_deps): Same.
20931         (build_intra_loop_deps): Same.
20932         * df-core.c (df_analyze): Same.
20933         (loop_post_order_compute): Same.
20934         (loop_inverted_post_order_compute): Same.
20935         * df-problems.c (df_rd_alloc): Same.
20936         (df_rd_simulate_one_insn): Same.
20937         (df_rd_local_compute): Same.
20938         (df_rd_init_solution): Same.
20939         (df_rd_confluence_n): Same.
20940         (df_rd_transfer_function): Same.
20941         (df_rd_free): Same.
20942         (df_rd_dump_defs_set): Same.
20943         (df_rd_top_dump): Same.
20944         (df_lr_alloc): Same.
20945         (df_lr_reset): Same.
20946         (df_lr_local_compute): Same.
20947         (df_lr_init): Same.
20948         (df_lr_confluence_n): Same.
20949         (df_lr_free): Same.
20950         (df_lr_top_dump): Same.
20951         (df_lr_verify_transfer_functions): Same.
20952         (df_live_alloc): Same.
20953         (df_live_reset): Same.
20954         (df_live_init): Same.
20955         (df_live_confluence_n): Same.
20956         (df_live_finalize): Same.
20957         (df_live_free): Same.
20958         (df_live_top_dump): Same.
20959         (df_live_verify_transfer_functions): Same.
20960         (df_mir_alloc): Same.
20961         (df_mir_reset): Same.
20962         (df_mir_init): Same.
20963         (df_mir_confluence_n): Same.
20964         (df_mir_free): Same.
20965         (df_mir_top_dump): Same.
20966         (df_word_lr_alloc): Same.
20967         (df_word_lr_reset): Same.
20968         (df_word_lr_init): Same.
20969         (df_word_lr_confluence_n): Same.
20970         (df_word_lr_free): Same.
20971         (df_word_lr_top_dump): Same.
20972         (df_md_alloc): Same.
20973         (df_md_simulate_one_insn): Same.
20974         (df_md_reset): Same.
20975         (df_md_init): Same.
20976         (df_md_free): Same.
20977         (df_md_top_dump): Same.
20978         * df-scan.c (df_insn_delete): Same.
20979         (df_insn_rescan): Same.
20980         (df_notes_rescan): Same.
20981         (df_sort_and_compress_mws): Same.
20982         (df_install_mws): Same.
20983         (df_refs_add_to_chains): Same.
20984         (df_ref_create_structure): Same.
20985         (df_ref_record): Same.
20986         (df_def_record_1): Same.
20987         (df_find_hard_reg_defs): Same.
20988         (df_uses_record): Same.
20989         (df_get_conditional_uses): Same.
20990         (df_get_call_refs): Same.
20991         (df_recompute_luids): Same.
20992         (df_get_entry_block_def_set): Same.
20993         (df_entry_block_defs_collect): Same.
20994         (df_get_exit_block_use_set): Same.
20995         (df_exit_block_uses_collect): Same.
20996         (df_mws_verify): Same.
20997         (df_bb_verify): Same.
20998         * df.h (df_scan_get_bb_info): Same.
20999         * doc/tm.texi: Same.
21000         * dse.c (record_store): Same.
21001         * dumpfile.h: Same.
21002         * emit-rtl.c (const_fixed_hasher::equal): Same.
21003         (set_mem_attributes_minus_bitpos): Same.
21004         (change_address): Same.
21005         (adjust_address_1): Same.
21006         (offset_address): Same.
21007         * emit-rtl.h: Same.
21008         * except.c (dw2_build_landing_pads): Same.
21009         (sjlj_emit_dispatch_table): Same.
21010         * explow.c (allocate_dynamic_stack_space): Same.
21011         (emit_stack_probe): Same.
21012         (probe_stack_range): Same.
21013         * expmed.c (store_bit_field_using_insv): Same.
21014         (store_bit_field_1): Same.
21015         (store_integral_bit_field): Same.
21016         (extract_bit_field_using_extv): Same.
21017         (extract_bit_field_1): Same.
21018         (emit_cstore): Same.
21019         * expr.c (emit_block_move_via_cpymem): Same.
21020         (expand_cmpstrn_or_cmpmem): Same.
21021         (set_storage_via_setmem): Same.
21022         (emit_single_push_insn_1): Same.
21023         (expand_assignment): Same.
21024         (store_constructor): Same.
21025         (expand_expr_real_2): Same.
21026         (expand_expr_real_1): Same.
21027         (try_casesi): Same.
21028         * flags.h: Same.
21029         * function.c (try_fit_stack_local): Same.
21030         (assign_stack_local_1): Same.
21031         (assign_stack_local): Same.
21032         (cut_slot_from_list): Same.
21033         (insert_slot_to_list): Same.
21034         (max_slot_level): Same.
21035         (move_slot_to_level): Same.
21036         (temp_address_hasher::equal): Same.
21037         (remove_unused_temp_slot_addresses): Same.
21038         (assign_temp): Same.
21039         (combine_temp_slots): Same.
21040         (update_temp_slot_address): Same.
21041         (preserve_temp_slots): Same.
21042         * function.h: Same.
21043         * fwprop.c: Same.
21044         * gcc-rich-location.h: Same.
21045         * gcov.c: Same.
21046         * genattrtab.c (check_attr_test): Same.
21047         (check_attr_value): Same.
21048         (convert_set_attr_alternative): Same.
21049         (convert_set_attr): Same.
21050         (check_defs): Same.
21051         (copy_boolean): Same.
21052         (get_attr_value): Same.
21053         (expand_delays): Same.
21054         (make_length_attrs): Same.
21055         (min_fn): Same.
21056         (make_alternative_compare): Same.
21057         (simplify_test_exp): Same.
21058         (tests_attr_p): Same.
21059         (get_attr_order): Same.
21060         (clear_struct_flag): Same.
21061         (gen_attr): Same.
21062         (compares_alternatives_p): Same.
21063         (gen_insn): Same.
21064         (gen_delay): Same.
21065         (find_attrs_to_cache): Same.
21066         (write_test_expr): Same.
21067         (walk_attr_value): Same.
21068         (write_attr_get): Same.
21069         (eliminate_known_true): Same.
21070         (write_insn_cases): Same.
21071         (write_attr_case): Same.
21072         (write_attr_valueq): Same.
21073         (write_attr_value): Same.
21074         (write_dummy_eligible_delay): Same.
21075         (next_comma_elt): Same.
21076         (find_attr): Same.
21077         (make_internal_attr): Same.
21078         (copy_rtx_unchanging): Same.
21079         (gen_insn_reserv): Same.
21080         (check_tune_attr): Same.
21081         (make_automaton_attrs): Same.
21082         (handle_arg): Same.
21083         * genextract.c (gen_insn): Same.
21084         (VEC_char_to_string): Same.
21085         * genmatch.c (print_operand): Same.
21086         (lower): Same.
21087         (parser::parse_operation): Same.
21088         (parser::parse_capture): Same.
21089         (parser::parse_c_expr): Same.
21090         (parser::parse_simplify): Same.
21091         (main): Same.
21092         * genoutput.c (output_operand_data): Same.
21093         (output_get_insn_name): Same.
21094         (compare_operands): Same.
21095         (place_operands): Same.
21096         (process_template): Same.
21097         (validate_insn_alternatives): Same.
21098         (validate_insn_operands): Same.
21099         (gen_expand): Same.
21100         (note_constraint): Same.
21101         * genpreds.c (write_one_predicate_function): Same.
21102         (add_constraint): Same.
21103         (process_define_register_constraint): Same.
21104         (write_lookup_constraint_1): Same.
21105         (write_lookup_constraint_array): Same.
21106         (write_insn_constraint_len): Same.
21107         (write_reg_class_for_constraint_1): Same.
21108         (write_constraint_satisfied_p_array): Same.
21109         * genrecog.c (optimize_subroutine_group): Same.
21110         * gensupport.c (process_define_predicate): Same.
21111         (queue_pattern): Same.
21112         (remove_from_queue): Same.
21113         (process_rtx): Same.
21114         (is_predicable): Same.
21115         (change_subst_attribute): Same.
21116         (subst_pattern_match): Same.
21117         (alter_constraints): Same.
21118         (alter_attrs_for_insn): Same.
21119         (shift_output_template): Same.
21120         (alter_output_for_subst_insn): Same.
21121         (process_one_cond_exec): Same.
21122         (subst_dup): Same.
21123         (process_define_cond_exec): Same.
21124         (mnemonic_htab_callback): Same.
21125         (gen_mnemonic_attr): Same.
21126         (read_md_rtx): Same.
21127         * ggc-page.c: Same.
21128         * gimple-loop-interchange.cc (dump_reduction): Same.
21129         (dump_induction): Same.
21130         (loop_cand::~loop_cand): Same.
21131         (free_data_refs_with_aux): Same.
21132         (tree_loop_interchange::interchange_loops): Same.
21133         (tree_loop_interchange::map_inductions_to_loop): Same.
21134         (tree_loop_interchange::move_code_to_inner_loop): Same.
21135         (compute_access_stride): Same.
21136         (compute_access_strides): Same.
21137         (proper_loop_form_for_interchange): Same.
21138         (tree_loop_interchange_compute_ddrs): Same.
21139         (prune_datarefs_not_in_loop): Same.
21140         (prepare_data_references): Same.
21141         (pass_linterchange::execute): Same.
21142         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
21143         (unroll_jam_possible_p): Same.
21144         (fuse_loops): Same.
21145         (adjust_unroll_factor): Same.
21146         (tree_loop_unroll_and_jam): Same.
21147         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
21148         (loop_versioning::expensive_stmt_p): Same.
21149         (loop_versioning::version_for_unity): Same.
21150         (loop_versioning::dump_inner_likelihood): Same.
21151         (loop_versioning::find_per_loop_multiplication): Same.
21152         (loop_versioning::analyze_term_using_scevs): Same.
21153         (loop_versioning::record_address_fragment): Same.
21154         (loop_versioning::analyze_expr): Same.
21155         (loop_versioning::analyze_blocks): Same.
21156         (loop_versioning::prune_conditions): Same.
21157         (loop_versioning::merge_loop_info): Same.
21158         (loop_versioning::add_loop_to_queue): Same.
21159         (loop_versioning::decide_whether_loop_is_versionable): Same.
21160         (loop_versioning::make_versioning_decisions): Same.
21161         (loop_versioning::implement_versioning_decisions): Same.
21162         * gimple-ssa-evrp-analyze.c
21163         (evrp_range_analyzer::record_ranges_from_phis): Same.
21164         * gimple-ssa-store-merging.c (split_store::split_store): Same.
21165         (count_multiple_uses): Same.
21166         (split_group): Same.
21167         (imm_store_chain_info::output_merged_store): Same.
21168         (pass_store_merging::process_store): Same.
21169         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
21170         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
21171         (is_max): Same.
21172         (alloca_call_type): Same.
21173         (pass_walloca::execute): Same.
21174         * gimple-streamer-in.c (input_phi): Same.
21175         (input_gimple_stmt): Same.
21176         * gimple-streamer.h: Same.
21177         * godump.c (go_force_record_alignment): Same.
21178         (go_format_type): Same.
21179         (go_output_type): Same.
21180         (go_output_fndecl): Same.
21181         (go_output_typedef): Same.
21182         (keyword_hash_init): Same.
21183         (find_dummy_types): Same.
21184         * graph.c (draw_cfg_nodes_no_loops): Same.
21185         (draw_cfg_nodes_for_loop): Same.
21186         * hard-reg-set.h (hard_reg_set_iter_next): Same.
21187         * hsa-brig.c: Same.
21188         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
21189         * hsa-dump.c (dump_hsa_cfun): Same.
21190         * hsa-gen.c (gen_function_def_parameters): Same.
21191         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
21192         * input.c (dump_line_table_statistics): Same.
21193         (test_lexer): Same.
21194         * input.h: Same.
21195         * internal-fn.c (get_multi_vector_move): Same.
21196         (expand_load_lanes_optab_fn): Same.
21197         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21198         (expand_GOMP_SIMT_EXIT): Same.
21199         (expand_GOMP_SIMT_LAST_LANE): Same.
21200         (expand_GOMP_SIMT_ORDERED_PRED): Same.
21201         (expand_GOMP_SIMT_VOTE_ANY): Same.
21202         (expand_GOMP_SIMT_XCHG_BFLY): Same.
21203         (expand_GOMP_SIMT_XCHG_IDX): Same.
21204         (expand_addsub_overflow): Same.
21205         (expand_neg_overflow): Same.
21206         (expand_mul_overflow): Same.
21207         (expand_call_mem_ref): Same.
21208         (expand_mask_load_optab_fn): Same.
21209         (expand_scatter_store_optab_fn): Same.
21210         (expand_gather_load_optab_fn): Same.
21211         * ipa-cp.c (ipa_get_parm_lattices): Same.
21212         (print_all_lattices): Same.
21213         (ignore_edge_p): Same.
21214         (build_toporder_info): Same.
21215         (free_toporder_info): Same.
21216         (push_node_to_stack): Same.
21217         (ipcp_lattice<valtype>::set_contains_variable): Same.
21218         (set_agg_lats_to_bottom): Same.
21219         (ipcp_bits_lattice::meet_with): Same.
21220         (set_single_call_flag): Same.
21221         (initialize_node_lattices): Same.
21222         (ipa_get_jf_ancestor_result): Same.
21223         (ipcp_verify_propagated_values): Same.
21224         (propagate_scalar_across_jump_function): Same.
21225         (propagate_context_across_jump_function): Same.
21226         (propagate_bits_across_jump_function): Same.
21227         (ipa_vr_operation_and_type_effects): Same.
21228         (propagate_vr_across_jump_function): Same.
21229         (set_check_aggs_by_ref): Same.
21230         (set_chain_of_aglats_contains_variable): Same.
21231         (merge_aggregate_lattices): Same.
21232         (agg_pass_through_permissible_p): Same.
21233         (propagate_aggs_across_jump_function): Same.
21234         (call_passes_through_thunk_p): Same.
21235         (propagate_constants_across_call): Same.
21236         (devirtualization_time_bonus): Same.
21237         (good_cloning_opportunity_p): Same.
21238         (context_independent_aggregate_values): Same.
21239         (gather_context_independent_values): Same.
21240         (perform_estimation_of_a_value): Same.
21241         (estimate_local_effects): Same.
21242         (value_topo_info<valtype>::add_val): Same.
21243         (add_all_node_vals_to_toposort): Same.
21244         (value_topo_info<valtype>::propagate_effects): Same.
21245         (ipcp_propagate_stage): Same.
21246         (ipcp_discover_new_direct_edges): Same.
21247         (same_node_or_its_all_contexts_clone_p): Same.
21248         (cgraph_edge_brings_value_p): Same.
21249         (gather_edges_for_value): Same.
21250         (create_specialized_node): Same.
21251         (find_more_scalar_values_for_callers_subset): Same.
21252         (find_more_contexts_for_caller_subset): Same.
21253         (copy_plats_to_inter): Same.
21254         (intersect_aggregates_with_edge): Same.
21255         (find_aggregate_values_for_callers_subset): Same.
21256         (cgraph_edge_brings_all_agg_vals_for_node): Same.
21257         (decide_about_value): Same.
21258         (decide_whether_version_node): Same.
21259         (spread_undeadness): Same.
21260         (identify_dead_nodes): Same.
21261         (ipcp_store_vr_results): Same.
21262         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21263         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21264         (redirect_to_unreachable): Same.
21265         (edge_set_predicate): Same.
21266         (evaluate_conditions_for_known_args): Same.
21267         (evaluate_properties_for_edge): Same.
21268         (ipa_fn_summary_t::duplicate): Same.
21269         (ipa_call_summary_t::duplicate): Same.
21270         (dump_ipa_call_summary): Same.
21271         (ipa_dump_fn_summary): Same.
21272         (eliminated_by_inlining_prob): Same.
21273         (set_cond_stmt_execution_predicate): Same.
21274         (set_switch_stmt_execution_predicate): Same.
21275         (compute_bb_predicates): Same.
21276         (will_be_nonconstant_expr_predicate): Same.
21277         (phi_result_unknown_predicate): Same.
21278         (analyze_function_body): Same.
21279         (compute_fn_summary): Same.
21280         (estimate_edge_devirt_benefit): Same.
21281         (estimate_edge_size_and_time): Same.
21282         (estimate_calls_size_and_time): Same.
21283         (estimate_node_size_and_time): Same.
21284         (remap_edge_change_prob): Same.
21285         (remap_edge_summaries): Same.
21286         (ipa_merge_fn_summary_after_inlining): Same.
21287         (ipa_fn_summary_generate): Same.
21288         (inline_read_section): Same.
21289         (ipa_fn_summary_read): Same.
21290         (ipa_fn_summary_write): Same.
21291         * ipa-fnsummary.h: Same.
21292         * ipa-hsa.c (ipa_hsa_read_section): Same.
21293         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21294         * ipa-icf.c (sem_function::param_used_p): Same.
21295         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21296         * ipa-inline.c (edge_badness): Same.
21297         (inline_small_functions): Same.
21298         * ipa-polymorphic-call.c
21299         (ipa_polymorphic_call_context::stream_out): Same.
21300         * ipa-predicate.c (predicate::remap_after_duplication): Same.
21301         (predicate::remap_after_inlining): Same.
21302         (predicate::stream_out): Same.
21303         * ipa-predicate.h: Same.
21304         * ipa-profile.c (ipa_profile_read_summary): Same.
21305         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21306         (count_formal_params): Same.
21307         (ipa_dump_param): Same.
21308         (ipa_alloc_node_params): Same.
21309         (ipa_print_node_jump_functions_for_edge): Same.
21310         (ipa_print_node_jump_functions): Same.
21311         (ipa_load_from_parm_agg): Same.
21312         (get_ancestor_addr_info): Same.
21313         (ipa_compute_jump_functions_for_edge): Same.
21314         (ipa_analyze_virtual_call_uses): Same.
21315         (ipa_analyze_stmt_uses): Same.
21316         (ipa_analyze_params_uses_in_bb): Same.
21317         (update_jump_functions_after_inlining): Same.
21318         (try_decrement_rdesc_refcount): Same.
21319         (ipa_impossible_devirt_target): Same.
21320         (update_indirect_edges_after_inlining): Same.
21321         (combine_controlled_uses_counters): Same.
21322         (ipa_edge_args_sum_t::duplicate): Same.
21323         (ipa_write_jump_function): Same.
21324         (ipa_write_indirect_edge_info): Same.
21325         (ipa_write_node_info): Same.
21326         (ipa_read_edge_info): Same.
21327         (ipa_prop_read_section): Same.
21328         (read_replacements_section): Same.
21329         * ipa-prop.h (ipa_get_param_count): Same.
21330         (ipa_get_param): Same.
21331         (ipa_get_type): Same.
21332         (ipa_get_param_move_cost): Same.
21333         (ipa_set_param_used): Same.
21334         (ipa_get_controlled_uses): Same.
21335         (ipa_set_controlled_uses): Same.
21336         (ipa_get_cs_argument_count): Same.
21337         * ipa-pure-const.c (analyze_function): Same.
21338         (pure_const_read_summary): Same.
21339         * ipa-ref.h: Same.
21340         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21341         * ipa-split.c (test_nonssa_use): Same.
21342         (dump_split_point): Same.
21343         (dominated_by_forbidden): Same.
21344         (split_part_set_ssa_name_p): Same.
21345         (find_split_points): Same.
21346         * ira-build.c (finish_loop_tree_nodes): Same.
21347         (low_pressure_loop_node_p): Same.
21348         * ira-color.c (ira_reuse_stack_slot): Same.
21349         * ira-int.h: Same.
21350         * ira.c (setup_reg_equiv): Same.
21351         (print_insn_chain): Same.
21352         (ira): Same.
21353         * loop-doloop.c (doloop_condition_get): Same.
21354         (add_test): Same.
21355         (record_reg_sets): Same.
21356         (doloop_optimize): Same.
21357         * loop-init.c (loop_optimizer_init): Same.
21358         (fix_loop_structure): Same.
21359         * loop-invariant.c (merge_identical_invariants): Same.
21360         (compute_always_reached): Same.
21361         (find_exits): Same.
21362         (may_assign_reg_p): Same.
21363         (find_invariants_bb): Same.
21364         (find_invariants_body): Same.
21365         (replace_uses): Same.
21366         (can_move_invariant_reg): Same.
21367         (free_inv_motion_data): Same.
21368         (move_single_loop_invariants): Same.
21369         (change_pressure): Same.
21370         (mark_ref_regs): Same.
21371         (calculate_loop_reg_pressure): Same.
21372         * loop-iv.c (biv_entry_hasher::equal): Same.
21373         (iv_extend_to_rtx_code): Same.
21374         (check_iv_ref_table_size): Same.
21375         (clear_iv_info): Same.
21376         (latch_dominating_def): Same.
21377         (iv_get_reaching_def): Same.
21378         (iv_constant): Same.
21379         (iv_subreg): Same.
21380         (iv_extend): Same.
21381         (iv_neg): Same.
21382         (iv_add): Same.
21383         (iv_mult): Same.
21384         (get_biv_step): Same.
21385         (record_iv): Same.
21386         (analyzed_for_bivness_p): Same.
21387         (record_biv): Same.
21388         (iv_analyze_biv): Same.
21389         (iv_analyze_expr): Same.
21390         (iv_analyze_def): Same.
21391         (iv_analyze_op): Same.
21392         (iv_analyze): Same.
21393         (iv_analyze_result): Same.
21394         (biv_p): Same.
21395         (eliminate_implied_conditions): Same.
21396         (simplify_using_initial_values): Same.
21397         (shorten_into_mode): Same.
21398         (canonicalize_iv_subregs): Same.
21399         (determine_max_iter): Same.
21400         (check_simple_exit): Same.
21401         (find_simple_exit): Same.
21402         (get_simple_loop_desc): Same.
21403         * loop-unroll.c (report_unroll): Same.
21404         (decide_unrolling): Same.
21405         (unroll_loops): Same.
21406         (loop_exit_at_end_p): Same.
21407         (decide_unroll_constant_iterations): Same.
21408         (unroll_loop_constant_iterations): Same.
21409         (compare_and_jump_seq): Same.
21410         (unroll_loop_runtime_iterations): Same.
21411         (decide_unroll_stupid): Same.
21412         (unroll_loop_stupid): Same.
21413         (referenced_in_one_insn_in_loop_p): Same.
21414         (reset_debug_uses_in_loop): Same.
21415         (analyze_iv_to_split_insn): Same.
21416         * lra-eliminations.c (lra_debug_elim_table): Same.
21417         (setup_can_eliminate): Same.
21418         (form_sum): Same.
21419         (lra_get_elimination_hard_regno): Same.
21420         (lra_eliminate_regs_1): Same.
21421         (eliminate_regs_in_insn): Same.
21422         (update_reg_eliminate): Same.
21423         (init_elimination): Same.
21424         (lra_eliminate): Same.
21425         * lra-int.h: Same.
21426         * lra-lives.c (initiate_live_solver): Same.
21427         * lra-remat.c (create_remat_bb_data): Same.
21428         * lra-spills.c (lra_spill): Same.
21429         * lra.c (lra_set_insn_recog_data): Same.
21430         (lra_set_used_insn_alternative_by_uid): Same.
21431         (init_reg_info): Same.
21432         (expand_reg_info): Same.
21433         * lto-cgraph.c (output_symtab): Same.
21434         (read_identifier): Same.
21435         (get_alias_symbol): Same.
21436         (input_node): Same.
21437         (input_varpool_node): Same.
21438         (input_ref): Same.
21439         (input_edge): Same.
21440         (input_cgraph_1): Same.
21441         (input_refs): Same.
21442         (input_symtab): Same.
21443         (input_offload_tables): Same.
21444         (output_cgraph_opt_summary): Same.
21445         (input_edge_opt_summary): Same.
21446         (input_cgraph_opt_section): Same.
21447         * lto-section-in.c (lto_free_raw_section_data): Same.
21448         (lto_create_simple_input_block): Same.
21449         (lto_free_function_in_decl_state_for_node): Same.
21450         * lto-streamer-in.c (lto_tag_check_set): Same.
21451         (lto_location_cache::revert_location_cache): Same.
21452         (lto_location_cache::input_location): Same.
21453         (lto_input_location): Same.
21454         (stream_input_location_now): Same.
21455         (lto_input_tree_ref): Same.
21456         (lto_input_eh_catch_list): Same.
21457         (input_eh_region): Same.
21458         (lto_init_eh): Same.
21459         (make_new_block): Same.
21460         (input_cfg): Same.
21461         (fixup_call_stmt_edges): Same.
21462         (input_struct_function_base): Same.
21463         (input_function): Same.
21464         (lto_read_body_or_constructor): Same.
21465         (lto_read_tree_1): Same.
21466         (lto_read_tree): Same.
21467         (lto_input_scc): Same.
21468         (lto_input_tree_1): Same.
21469         (lto_input_toplevel_asms): Same.
21470         (lto_input_mode_table): Same.
21471         (lto_reader_init): Same.
21472         (lto_data_in_create): Same.
21473         * lto-streamer-out.c (output_cfg): Same.
21474         * lto-streamer.h: Same.
21475         * modulo-sched.c (duplicate_insns_of_cycles): Same.
21476         (generate_prolog_epilog): Same.
21477         (mark_loop_unsched): Same.
21478         (dump_insn_location): Same.
21479         (loop_canon_p): Same.
21480         (sms_schedule): Same.
21481         * omp-expand.c (expand_omp_for_ordered_loops): Same.
21482         (expand_omp_for_generic): Same.
21483         (expand_omp_for_static_nochunk): Same.
21484         (expand_omp_for_static_chunk): Same.
21485         (expand_omp_simd): Same.
21486         (expand_omp_taskloop_for_inner): Same.
21487         (expand_oacc_for): Same.
21488         (expand_omp_atomic_pipeline): Same.
21489         (mark_loops_in_oacc_kernels_region): Same.
21490         * omp-offload.c (oacc_xform_loop): Same.
21491         * omp-simd-clone.c (simd_clone_adjust): Same.
21492         * optabs-query.c (get_traditional_extraction_insn): Same.
21493         * optabs.c (expand_vector_broadcast): Same.
21494         (expand_binop_directly): Same.
21495         (expand_twoval_unop): Same.
21496         (expand_twoval_binop): Same.
21497         (expand_unop_direct): Same.
21498         (emit_indirect_jump): Same.
21499         (emit_conditional_move): Same.
21500         (emit_conditional_neg_or_complement): Same.
21501         (emit_conditional_add): Same.
21502         (vector_compare_rtx): Same.
21503         (expand_vec_perm_1): Same.
21504         (expand_vec_perm_const): Same.
21505         (expand_vec_cond_expr): Same.
21506         (expand_vec_series_expr): Same.
21507         (maybe_emit_atomic_exchange): Same.
21508         (maybe_emit_sync_lock_test_and_set): Same.
21509         (expand_atomic_compare_and_swap): Same.
21510         (expand_atomic_load): Same.
21511         (expand_atomic_store): Same.
21512         (maybe_emit_op): Same.
21513         (valid_multiword_target_p): Same.
21514         (create_integer_operand): Same.
21515         (maybe_legitimize_operand_same_code): Same.
21516         (maybe_legitimize_operand): Same.
21517         (create_convert_operand_from_type): Same.
21518         (can_reuse_operands_p): Same.
21519         (maybe_legitimize_operands): Same.
21520         (maybe_gen_insn): Same.
21521         (maybe_expand_insn): Same.
21522         (maybe_expand_jump_insn): Same.
21523         (expand_insn): Same.
21524         * optabs.h (create_expand_operand): Same.
21525         (create_fixed_operand): Same.
21526         (create_output_operand): Same.
21527         (create_input_operand): Same.
21528         (create_convert_operand_to): Same.
21529         (create_convert_operand_from): Same.
21530         * optinfo.h: Same.
21531         * poly-int.h: Same.
21532         * predict.c (optimize_insn_for_speed_p): Same.
21533         (optimize_loop_for_size_p): Same.
21534         (optimize_loop_for_speed_p): Same.
21535         (optimize_loop_nest_for_speed_p): Same.
21536         (get_base_value): Same.
21537         (predicted_by_loop_heuristics_p): Same.
21538         (predict_extra_loop_exits): Same.
21539         (predict_loops): Same.
21540         (predict_paths_for_bb): Same.
21541         (predict_paths_leading_to): Same.
21542         (propagate_freq): Same.
21543         (pass_profile::execute): Same.
21544         * predict.h: Same.
21545         * profile-count.c (profile_count::differs_from_p): Same.
21546         (profile_probability::differs_lot_from_p): Same.
21547         * profile-count.h: Same.
21548         * profile.c (branch_prob): Same.
21549         * regrename.c (free_chain_data): Same.
21550         (mark_conflict): Same.
21551         (create_new_chain): Same.
21552         (merge_overlapping_regs): Same.
21553         (init_rename_info): Same.
21554         (merge_chains): Same.
21555         (regrename_analyze): Same.
21556         (regrename_do_replace): Same.
21557         (scan_rtx_reg): Same.
21558         (record_out_operands): Same.
21559         (build_def_use): Same.
21560         * regrename.h: Same.
21561         * reload.h: Same.
21562         * reload1.c (init_reload): Same.
21563         (maybe_fix_stack_asms): Same.
21564         (copy_reloads): Same.
21565         (count_pseudo): Same.
21566         (count_spilled_pseudo): Same.
21567         (find_reg): Same.
21568         (find_reload_regs): Same.
21569         (select_reload_regs): Same.
21570         (spill_hard_reg): Same.
21571         (fixup_eh_region_note): Same.
21572         (set_reload_reg): Same.
21573         (allocate_reload_reg): Same.
21574         (compute_reload_subreg_offset): Same.
21575         (reload_adjust_reg_for_icode): Same.
21576         (emit_input_reload_insns): Same.
21577         (emit_output_reload_insns): Same.
21578         (do_input_reload): Same.
21579         (inherit_piecemeal_p): Same.
21580         * rtl.h: Same.
21581         * sanopt.c (maybe_get_dominating_check): Same.
21582         (maybe_optimize_ubsan_ptr_ifn): Same.
21583         (can_remove_asan_check): Same.
21584         (maybe_optimize_asan_check_ifn): Same.
21585         (sanopt_optimize_walker): Same.
21586         * sched-deps.c (add_dependence_list): Same.
21587         (chain_to_prev_insn): Same.
21588         (add_insn_mem_dependence): Same.
21589         (create_insn_reg_set): Same.
21590         (maybe_extend_reg_info_p): Same.
21591         (sched_analyze_reg): Same.
21592         (sched_analyze_1): Same.
21593         (get_implicit_reg_pending_clobbers): Same.
21594         (chain_to_prev_insn_p): Same.
21595         (deps_analyze_insn): Same.
21596         (deps_start_bb): Same.
21597         (sched_free_deps): Same.
21598         (init_deps): Same.
21599         (init_deps_reg_last): Same.
21600         (free_deps): Same.
21601         * sched-ebb.c: Same.
21602         * sched-int.h: Same.
21603         * sched-rgn.c (add_branch_dependences): Same.
21604         (concat_insn_mem_list): Same.
21605         (deps_join): Same.
21606         (sched_rgn_compute_dependencies): Same.
21607         * sel-sched-ir.c (reset_target_context): Same.
21608         (copy_deps_context): Same.
21609         (init_id_from_df): Same.
21610         (has_dependence_p): Same.
21611         (change_loops_latches): Same.
21612         (bb_top_order_comparator): Same.
21613         (make_region_from_loop_preheader): Same.
21614         (sel_init_pipelining): Same.
21615         (get_loop_nest_for_rgn): Same.
21616         (make_regions_from_the_rest): Same.
21617         (sel_is_loop_preheader_p): Same.
21618         * sel-sched-ir.h (inner_loop_header_p): Same.
21619         (get_all_loop_exits): Same.
21620         * selftest.h: Same.
21621         * sese.c (sese_build_liveouts): Same.
21622         (sese_insert_phis_for_liveouts): Same.
21623         * sese.h (defined_in_sese_p): Same.
21624         * sreal.c (sreal::stream_out): Same.
21625         * sreal.h: Same.
21626         * streamer-hooks.h: Same.
21627         * target-globals.c (save_target_globals): Same.
21628         * target-globals.h: Same.
21629         * target.def: Same.
21630         * target.h: Same.
21631         * targhooks.c (default_has_ifunc_p): Same.
21632         (default_empty_mask_is_expensive): Same.
21633         (default_init_cost): Same.
21634         * targhooks.h: Same.
21635         * toplev.c: Same.
21636         * tree-affine.c (aff_combination_mult): Same.
21637         (aff_combination_expand): Same.
21638         (aff_combination_constant_multiple_p): Same.
21639         * tree-affine.h: Same.
21640         * tree-cfg.c (build_gimple_cfg): Same.
21641         (replace_loop_annotate_in_block): Same.
21642         (replace_uses_by): Same.
21643         (remove_bb): Same.
21644         (dump_cfg_stats): Same.
21645         (gimple_duplicate_sese_region): Same.
21646         (gimple_duplicate_sese_tail): Same.
21647         (move_block_to_fn): Same.
21648         (replace_block_vars_by_duplicates): Same.
21649         (move_sese_region_to_fn): Same.
21650         (print_loops_bb): Same.
21651         (print_loop): Same.
21652         (print_loops): Same.
21653         (debug): Same.
21654         (debug_loops): Same.
21655         * tree-cfg.h: Same.
21656         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21657         (chrec_fold_multiply_poly_poly): Same.
21658         (chrec_evaluate): Same.
21659         (chrec_component_in_loop_num): Same.
21660         (reset_evolution_in_loop): Same.
21661         (is_multivariate_chrec): Same.
21662         (chrec_contains_symbols): Same.
21663         (nb_vars_in_chrec): Same.
21664         (chrec_convert_1): Same.
21665         (chrec_convert_aggressive): Same.
21666         * tree-chrec.h: Same.
21667         * tree-core.h: Same.
21668         * tree-data-ref.c (dump_data_dependence_relation): Same.
21669         (canonicalize_base_object_address): Same.
21670         (data_ref_compare_tree): Same.
21671         (prune_runtime_alias_test_list): Same.
21672         (get_segment_min_max): Same.
21673         (create_intersect_range_checks): Same.
21674         (conflict_fn_no_dependence): Same.
21675         (object_address_invariant_in_loop_p): Same.
21676         (analyze_ziv_subscript): Same.
21677         (analyze_siv_subscript_cst_affine): Same.
21678         (analyze_miv_subscript): Same.
21679         (analyze_overlapping_iterations): Same.
21680         (build_classic_dist_vector_1): Same.
21681         (add_other_self_distances): Same.
21682         (same_access_functions): Same.
21683         (build_classic_dir_vector): Same.
21684         (subscript_dependence_tester_1): Same.
21685         (subscript_dependence_tester): Same.
21686         (access_functions_are_affine_or_constant_p): Same.
21687         (get_references_in_stmt): Same.
21688         (loop_nest_has_data_refs): Same.
21689         (graphite_find_data_references_in_stmt): Same.
21690         (find_data_references_in_bb): Same.
21691         (get_base_for_alignment): Same.
21692         (find_loop_nest_1): Same.
21693         (find_loop_nest): Same.
21694         * tree-data-ref.h (dr_alignment): Same.
21695         (ddr_dependence_level): Same.
21696         * tree-if-conv.c (fold_build_cond_expr): Same.
21697         (add_to_predicate_list): Same.
21698         (add_to_dst_predicate_list): Same.
21699         (phi_convertible_by_degenerating_args): Same.
21700         (idx_within_array_bound): Same.
21701         (all_preds_critical_p): Same.
21702         (pred_blocks_visited_p): Same.
21703         (predicate_bbs): Same.
21704         (build_region): Same.
21705         (if_convertible_loop_p_1): Same.
21706         (is_cond_scalar_reduction): Same.
21707         (predicate_scalar_phi): Same.
21708         (remove_conditions_and_labels): Same.
21709         (combine_blocks): Same.
21710         (version_loop_for_if_conversion): Same.
21711         (versionable_outer_loop_p): Same.
21712         (ifcvt_local_dce): Same.
21713         (tree_if_conversion): Same.
21714         (pass_if_conversion::gate): Same.
21715         * tree-if-conv.h: Same.
21716         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21717         * tree-loop-distribution.c (bb_top_order_cmp): Same.
21718         (free_rdg): Same.
21719         (stmt_has_scalar_dependences_outside_loop): Same.
21720         (copy_loop_before): Same.
21721         (create_bb_after_loop): Same.
21722         (const_with_all_bytes_same): Same.
21723         (generate_memset_builtin): Same.
21724         (generate_memcpy_builtin): Same.
21725         (destroy_loop): Same.
21726         (build_rdg_partition_for_vertex): Same.
21727         (compute_access_range): Same.
21728         (data_ref_segment_size): Same.
21729         (latch_dominated_by_data_ref): Same.
21730         (compute_alias_check_pairs): Same.
21731         (fuse_memset_builtins): Same.
21732         (finalize_partitions): Same.
21733         (find_seed_stmts_for_distribution): Same.
21734         (prepare_perfect_loop_nest): Same.
21735         * tree-parloops.c (lambda_transform_legal_p): Same.
21736         (loop_parallel_p): Same.
21737         (reduc_stmt_res): Same.
21738         (add_field_for_name): Same.
21739         (create_call_for_reduction_1): Same.
21740         (replace_uses_in_bb_by): Same.
21741         (transform_to_exit_first_loop_alt): Same.
21742         (try_transform_to_exit_first_loop_alt): Same.
21743         (transform_to_exit_first_loop): Same.
21744         (num_phis): Same.
21745         (gen_parallel_loop): Same.
21746         (gather_scalar_reductions): Same.
21747         (get_omp_data_i_param): Same.
21748         (try_create_reduction_list): Same.
21749         (oacc_entry_exit_single_gang): Same.
21750         (parallelize_loops): Same.
21751         * tree-pass.h: Same.
21752         * tree-predcom.c (determine_offset): Same.
21753         (last_always_executed_block): Same.
21754         (split_data_refs_to_components): Same.
21755         (suitable_component_p): Same.
21756         (valid_initializer_p): Same.
21757         (find_looparound_phi): Same.
21758         (insert_looparound_copy): Same.
21759         (add_looparound_copies): Same.
21760         (determine_roots_comp): Same.
21761         (predcom_tmp_var): Same.
21762         (initialize_root_vars): Same.
21763         (initialize_root_vars_store_elim_1): Same.
21764         (initialize_root_vars_store_elim_2): Same.
21765         (finalize_eliminated_stores): Same.
21766         (initialize_root_vars_lm): Same.
21767         (remove_stmt): Same.
21768         (determine_unroll_factor): Same.
21769         (execute_pred_commoning_cbck): Same.
21770         (base_names_in_chain_on): Same.
21771         (combine_chains): Same.
21772         (pcom_stmt_dominates_stmt_p): Same.
21773         (try_combine_chains): Same.
21774         (prepare_initializers_chain_store_elim): Same.
21775         (prepare_initializers_chain): Same.
21776         (prepare_initializers): Same.
21777         (prepare_finalizers_chain): Same.
21778         (prepare_finalizers): Same.
21779         (insert_init_seqs): Same.
21780         * tree-scalar-evolution.c (loop_phi_node_p): Same.
21781         (compute_overall_effect_of_inner_loop): Same.
21782         (add_to_evolution_1): Same.
21783         (add_to_evolution): Same.
21784         (follow_ssa_edge_binary): Same.
21785         (follow_ssa_edge_expr): Same.
21786         (backedge_phi_arg_p): Same.
21787         (follow_ssa_edge_in_condition_phi_branch): Same.
21788         (follow_ssa_edge_in_condition_phi): Same.
21789         (follow_ssa_edge_inner_loop_phi): Same.
21790         (follow_ssa_edge): Same.
21791         (analyze_evolution_in_loop): Same.
21792         (analyze_initial_condition): Same.
21793         (interpret_loop_phi): Same.
21794         (interpret_condition_phi): Same.
21795         (interpret_rhs_expr): Same.
21796         (interpret_expr): Same.
21797         (interpret_gimple_assign): Same.
21798         (analyze_scalar_evolution_1): Same.
21799         (analyze_scalar_evolution): Same.
21800         (analyze_scalar_evolution_for_address_of): Same.
21801         (get_instantiated_value_entry): Same.
21802         (loop_closed_phi_def): Same.
21803         (instantiate_scev_name): Same.
21804         (instantiate_scev_poly): Same.
21805         (instantiate_scev_binary): Same.
21806         (instantiate_scev_convert): Same.
21807         (instantiate_scev_not): Same.
21808         (instantiate_scev_r): Same.
21809         (instantiate_scev): Same.
21810         (resolve_mixers): Same.
21811         (initialize_scalar_evolutions_analyzer): Same.
21812         (scev_reset_htab): Same.
21813         (scev_reset): Same.
21814         (derive_simple_iv_with_niters): Same.
21815         (simple_iv_with_niters): Same.
21816         (expression_expensive_p): Same.
21817         (final_value_replacement_loop): Same.
21818         * tree-scalar-evolution.h (block_before_loop): Same.
21819         * tree-ssa-address.h: Same.
21820         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21821         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21822         (record_edge_info): Same.
21823         * tree-ssa-live.c (var_map_base_fini): Same.
21824         (remove_unused_locals): Same.
21825         * tree-ssa-live.h: Same.
21826         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21827         (pass_ch_vect::execute): Same.
21828         (pass_ch::process_loop_p): Same.
21829         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21830         (movement_possibility): Same.
21831         (outermost_invariant_loop): Same.
21832         (stmt_cost): Same.
21833         (determine_max_movement): Same.
21834         (invariantness_dom_walker::before_dom_children): Same.
21835         (move_computations): Same.
21836         (may_move_till): Same.
21837         (force_move_till_op): Same.
21838         (force_move_till): Same.
21839         (memref_free): Same.
21840         (record_mem_ref_loc): Same.
21841         (set_ref_stored_in_loop): Same.
21842         (mark_ref_stored): Same.
21843         (sort_bbs_in_loop_postorder_cmp): Same.
21844         (sort_locs_in_loop_postorder_cmp): Same.
21845         (analyze_memory_references): Same.
21846         (mem_refs_may_alias_p): Same.
21847         (find_ref_loc_in_loop_cmp): Same.
21848         (rewrite_mem_ref_loc::operator): Same.
21849         (first_mem_ref_loc_1::operator): Same.
21850         (sm_set_flag_if_changed::operator): Same.
21851         (execute_sm_if_changed_flag_set): Same.
21852         (execute_sm): Same.
21853         (hoist_memory_references): Same.
21854         (ref_always_accessed::operator): Same.
21855         (refs_independent_p): Same.
21856         (record_dep_loop): Same.
21857         (ref_indep_loop_p_1): Same.
21858         (ref_indep_loop_p): Same.
21859         (can_sm_ref_p): Same.
21860         (find_refs_for_sm): Same.
21861         (loop_suitable_for_sm): Same.
21862         (store_motion_loop): Same.
21863         (store_motion): Same.
21864         (fill_always_executed_in): Same.
21865         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21866         (estimated_unrolled_size): Same.
21867         (loop_edge_to_cancel): Same.
21868         (remove_exits_and_undefined_stmts): Same.
21869         (remove_redundant_iv_tests): Same.
21870         (unloop_loops): Same.
21871         (estimated_peeled_sequence_size): Same.
21872         (try_peel_loop): Same.
21873         (canonicalize_loop_induction_variables): Same.
21874         (canonicalize_induction_variables): Same.
21875         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21876         (name_info): Same.
21877         (stmt_after_inc_pos): Same.
21878         (contains_abnormal_ssa_name_p): Same.
21879         (niter_for_exit): Same.
21880         (find_bivs): Same.
21881         (mark_bivs): Same.
21882         (find_givs_in_bb): Same.
21883         (find_induction_variables): Same.
21884         (find_interesting_uses_cond): Same.
21885         (outermost_invariant_loop_for_expr): Same.
21886         (idx_find_step): Same.
21887         (add_candidate_1): Same.
21888         (add_iv_candidate_derived_from_uses): Same.
21889         (alloc_use_cost_map): Same.
21890         (prepare_decl_rtl): Same.
21891         (generic_predict_doloop_p): Same.
21892         (computation_cost): Same.
21893         (determine_common_wider_type): Same.
21894         (get_computation_aff_1): Same.
21895         (get_use_type): Same.
21896         (determine_group_iv_cost_address): Same.
21897         (iv_period): Same.
21898         (difference_cannot_overflow_p): Same.
21899         (may_eliminate_iv): Same.
21900         (determine_set_costs): Same.
21901         (cheaper_cost_pair): Same.
21902         (compare_cost_pair): Same.
21903         (iv_ca_cand_for_group): Same.
21904         (iv_ca_recount_cost): Same.
21905         (iv_ca_set_remove_invs): Same.
21906         (iv_ca_set_no_cp): Same.
21907         (iv_ca_set_add_invs): Same.
21908         (iv_ca_set_cp): Same.
21909         (iv_ca_add_group): Same.
21910         (iv_ca_cost): Same.
21911         (iv_ca_compare_deps): Same.
21912         (iv_ca_delta_reverse): Same.
21913         (iv_ca_delta_commit): Same.
21914         (iv_ca_cand_used_p): Same.
21915         (iv_ca_delta_free): Same.
21916         (iv_ca_new): Same.
21917         (iv_ca_free): Same.
21918         (iv_ca_dump): Same.
21919         (iv_ca_extend): Same.
21920         (iv_ca_narrow): Same.
21921         (iv_ca_prune): Same.
21922         (cheaper_cost_with_cand): Same.
21923         (iv_ca_replace): Same.
21924         (try_add_cand_for): Same.
21925         (get_initial_solution): Same.
21926         (try_improve_iv_set): Same.
21927         (find_optimal_iv_set_1): Same.
21928         (create_new_iv): Same.
21929         (rewrite_use_compare): Same.
21930         (remove_unused_ivs): Same.
21931         (determine_scaling_factor): Same.
21932         * tree-ssa-loop-ivopts.h: Same.
21933         * tree-ssa-loop-manip.c (create_iv): Same.
21934         (compute_live_loop_exits): Same.
21935         (add_exit_phi): Same.
21936         (add_exit_phis): Same.
21937         (find_uses_to_rename_use): Same.
21938         (find_uses_to_rename_def): Same.
21939         (find_uses_to_rename_in_loop): Same.
21940         (rewrite_into_loop_closed_ssa): Same.
21941         (check_loop_closed_ssa_bb): Same.
21942         (split_loop_exit_edge): Same.
21943         (ip_end_pos): Same.
21944         (ip_normal_pos): Same.
21945         (copy_phi_node_args): Same.
21946         (gimple_duplicate_loop_to_header_edge): Same.
21947         (can_unroll_loop_p): Same.
21948         (determine_exit_conditions): Same.
21949         (scale_dominated_blocks_in_loop): Same.
21950         (niter_for_unrolled_loop): Same.
21951         (tree_transform_and_unroll_loop): Same.
21952         (rewrite_all_phi_nodes_with_iv): Same.
21953         * tree-ssa-loop-manip.h: Same.
21954         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21955         (number_of_iterations_ne): Same.
21956         (assert_no_overflow_lt): Same.
21957         (assert_loop_rolls_lt): Same.
21958         (number_of_iterations_lt): Same.
21959         (adjust_cond_for_loop_until_wrap): Same.
21960         (tree_simplify_using_condition): Same.
21961         (simplify_using_initial_conditions): Same.
21962         (simplify_using_outer_evolutions): Same.
21963         (loop_only_exit_p): Same.
21964         (ssa_defined_by_minus_one_stmt_p): Same.
21965         (number_of_iterations_popcount): Same.
21966         (number_of_iterations_exit): Same.
21967         (find_loop_niter): Same.
21968         (finite_loop_p): Same.
21969         (chain_of_csts_start): Same.
21970         (get_val_for): Same.
21971         (loop_niter_by_eval): Same.
21972         (derive_constant_upper_bound_ops): Same.
21973         (do_warn_aggressive_loop_optimizations): Same.
21974         (record_estimate): Same.
21975         (get_cst_init_from_scev): Same.
21976         (record_nonwrapping_iv): Same.
21977         (idx_infer_loop_bounds): Same.
21978         (infer_loop_bounds_from_ref): Same.
21979         (infer_loop_bounds_from_array): Same.
21980         (infer_loop_bounds_from_pointer_arith): Same.
21981         (infer_loop_bounds_from_signedness): Same.
21982         (bound_index): Same.
21983         (discover_iteration_bound_by_body_walk): Same.
21984         (maybe_lower_iteration_bound): Same.
21985         (estimate_numbers_of_iterations): Same.
21986         (estimated_loop_iterations): Same.
21987         (estimated_loop_iterations_int): Same.
21988         (max_loop_iterations): Same.
21989         (max_loop_iterations_int): Same.
21990         (likely_max_loop_iterations): Same.
21991         (likely_max_loop_iterations_int): Same.
21992         (estimated_stmt_executions_int): Same.
21993         (max_stmt_executions): Same.
21994         (likely_max_stmt_executions): Same.
21995         (estimated_stmt_executions): Same.
21996         (stmt_dominates_stmt_p): Same.
21997         (nowrap_type_p): Same.
21998         (loop_exits_before_overflow): Same.
21999         (scev_var_range_cant_overflow): Same.
22000         (scev_probably_wraps_p): Same.
22001         (free_numbers_of_iterations_estimates): Same.
22002         * tree-ssa-loop-niter.h: Same.
22003         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
22004         (idx_analyze_ref): Same.
22005         (analyze_ref): Same.
22006         (gather_memory_references_ref): Same.
22007         (mark_nontemporal_store): Same.
22008         (emit_mfence_after_loop): Same.
22009         (may_use_storent_in_loop_p): Same.
22010         (mark_nontemporal_stores): Same.
22011         (should_unroll_loop_p): Same.
22012         (volume_of_dist_vector): Same.
22013         (add_subscript_strides): Same.
22014         (self_reuse_distance): Same.
22015         (insn_to_prefetch_ratio_too_small_p): Same.
22016         * tree-ssa-loop-split.c (split_at_bb_p): Same.
22017         (patch_loop_exit): Same.
22018         (find_or_create_guard_phi): Same.
22019         (easy_exit_values): Same.
22020         (connect_loop_phis): Same.
22021         (connect_loops): Same.
22022         (compute_new_first_bound): Same.
22023         (split_loop): Same.
22024         (tree_ssa_split_loops): Same.
22025         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
22026         (is_maybe_undefined): Same.
22027         (tree_may_unswitch_on): Same.
22028         (simplify_using_entry_checks): Same.
22029         (tree_unswitch_single_loop): Same.
22030         (tree_unswitch_loop): Same.
22031         (tree_unswitch_outer_loop): Same.
22032         (empty_bb_without_guard_p): Same.
22033         (used_outside_loop_p): Same.
22034         (get_vop_from_header): Same.
22035         (hoist_guard): Same.
22036         * tree-ssa-loop.c (gate_oacc_kernels): Same.
22037         (get_lsm_tmp_name): Same.
22038         * tree-ssa-loop.h: Same.
22039         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
22040         (build_and_add_sum): Same.
22041         (no_side_effect_bb): Same.
22042         (get_ops): Same.
22043         (linearize_expr): Same.
22044         (should_break_up_subtract): Same.
22045         (linearize_expr_tree): Same.
22046         * tree-ssa-scopedtables.c: Same.
22047         * tree-ssa-scopedtables.h: Same.
22048         * tree-ssa-structalias.c (condense_visit): Same.
22049         (label_visit): Same.
22050         (dump_pred_graph): Same.
22051         (perform_var_substitution): Same.
22052         (move_complex_constraints): Same.
22053         (remove_preds_and_fake_succs): Same.
22054         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
22055         (determine_bb_domination_status): Same.
22056         (duplicate_thread_path): Same.
22057         (thread_through_all_blocks): Same.
22058         * tree-ssa-threadupdate.h: Same.
22059         * tree-streamer-in.c (streamer_read_string_cst): Same.
22060         (input_identifier): Same.
22061         (unpack_ts_type_common_value_fields): Same.
22062         (unpack_ts_block_value_fields): Same.
22063         (unpack_ts_translation_unit_decl_value_fields): Same.
22064         (unpack_ts_omp_clause_value_fields): Same.
22065         (streamer_read_tree_bitfields): Same.
22066         (streamer_alloc_tree): Same.
22067         (lto_input_ts_common_tree_pointers): Same.
22068         (lto_input_ts_vector_tree_pointers): Same.
22069         (lto_input_ts_poly_tree_pointers): Same.
22070         (lto_input_ts_complex_tree_pointers): Same.
22071         (lto_input_ts_decl_minimal_tree_pointers): Same.
22072         (lto_input_ts_decl_common_tree_pointers): Same.
22073         (lto_input_ts_decl_non_common_tree_pointers): Same.
22074         (lto_input_ts_decl_with_vis_tree_pointers): Same.
22075         (lto_input_ts_field_decl_tree_pointers): Same.
22076         (lto_input_ts_function_decl_tree_pointers): Same.
22077         (lto_input_ts_type_common_tree_pointers): Same.
22078         (lto_input_ts_type_non_common_tree_pointers): Same.
22079         (lto_input_ts_list_tree_pointers): Same.
22080         (lto_input_ts_vec_tree_pointers): Same.
22081         (lto_input_ts_exp_tree_pointers): Same.
22082         (lto_input_ts_block_tree_pointers): Same.
22083         (lto_input_ts_binfo_tree_pointers): Same.
22084         (lto_input_ts_constructor_tree_pointers): Same.
22085         (lto_input_ts_omp_clause_tree_pointers): Same.
22086         (streamer_read_tree_body): Same.
22087         * tree-streamer.h: Same.
22088         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
22089         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
22090         (vect_analyze_possibly_independent_ddr): Same.
22091         (vect_analyze_data_ref_dependence): Same.
22092         (vect_compute_data_ref_alignment): Same.
22093         (vect_enhance_data_refs_alignment): Same.
22094         (vect_analyze_data_ref_access): Same.
22095         (vect_check_gather_scatter): Same.
22096         (vect_find_stmt_data_reference): Same.
22097         (vect_create_addr_base_for_vector_ref): Same.
22098         (vect_setup_realignment): Same.
22099         (vect_supportable_dr_alignment): Same.
22100         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
22101         (adjust_phi_and_debug_stmts): Same.
22102         (vect_set_loop_mask): Same.
22103         (add_preheader_seq): Same.
22104         (vect_maybe_permute_loop_masks): Same.
22105         (vect_set_loop_masks_directly): Same.
22106         (vect_set_loop_condition_masked): Same.
22107         (vect_set_loop_condition_unmasked): Same.
22108         (slpeel_duplicate_current_defs_from_edges): Same.
22109         (slpeel_add_loop_guard): Same.
22110         (slpeel_can_duplicate_loop_p): Same.
22111         (create_lcssa_for_virtual_phi): Same.
22112         (iv_phi_p): Same.
22113         (vect_update_ivs_after_vectorizer): Same.
22114         (vect_gen_vector_loop_niters_mult_vf): Same.
22115         (slpeel_update_phi_nodes_for_loops): Same.
22116         (slpeel_update_phi_nodes_for_guard1): Same.
22117         (find_guard_arg): Same.
22118         (slpeel_update_phi_nodes_for_guard2): Same.
22119         (slpeel_update_phi_nodes_for_lcssa): Same.
22120         (vect_do_peeling): Same.
22121         (vect_create_cond_for_alias_checks): Same.
22122         (vect_loop_versioning): Same.
22123         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
22124         (vect_inner_phi_in_double_reduction_p): Same.
22125         (vect_analyze_scalar_cycles_1): Same.
22126         (vect_fixup_scalar_cycles_with_patterns): Same.
22127         (vect_get_loop_niters): Same.
22128         (bb_in_loop_p): Same.
22129         (vect_get_max_nscalars_per_iter): Same.
22130         (vect_verify_full_masking): Same.
22131         (vect_compute_single_scalar_iteration_cost): Same.
22132         (vect_analyze_loop_form_1): Same.
22133         (vect_analyze_loop_form): Same.
22134         (vect_active_double_reduction_p): Same.
22135         (vect_analyze_loop_operations): Same.
22136         (neutral_op_for_slp_reduction): Same.
22137         (vect_is_simple_reduction): Same.
22138         (vect_model_reduction_cost): Same.
22139         (get_initial_def_for_reduction): Same.
22140         (get_initial_defs_for_reduction): Same.
22141         (vect_create_epilog_for_reduction): Same.
22142         (vectorize_fold_left_reduction): Same.
22143         (vectorizable_reduction): Same.
22144         (vectorizable_induction): Same.
22145         (vectorizable_live_operation): Same.
22146         (loop_niters_no_overflow): Same.
22147         (vect_get_loop_mask): Same.
22148         (vect_transform_loop_stmt): Same.
22149         (vect_transform_loop): Same.
22150         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
22151         (vect_determine_precisions): Same.
22152         (vect_pattern_recog_1): Same.
22153         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
22154         * tree-vect-stmts.c (stmt_vectype): Same.
22155         (process_use): Same.
22156         (vect_init_vector_1): Same.
22157         (vect_truncate_gather_scatter_offset): Same.
22158         (get_group_load_store_type): Same.
22159         (vect_build_gather_load_calls): Same.
22160         (vect_get_strided_load_store_ops): Same.
22161         (vectorizable_simd_clone_call): Same.
22162         (vectorizable_store): Same.
22163         (permute_vec_elements): Same.
22164         (vectorizable_load): Same.
22165         (vect_transform_stmt): Same.
22166         (supportable_widening_operation): Same.
22167         * tree-vectorizer.c (vec_info::replace_stmt): Same.
22168         (vec_info::free_stmt_vec_info): Same.
22169         (vect_free_loop_info_assumptions): Same.
22170         (vect_loop_vectorized_call): Same.
22171         (set_uid_loop_bbs): Same.
22172         (vectorize_loops): Same.
22173         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
22174         * tree.c (add_tree_to_fld_list): Same.
22175         (fld_type_variant_equal_p): Same.
22176         (fld_decl_context): Same.
22177         (fld_incomplete_type_of): Same.
22178         (free_lang_data_in_binfo): Same.
22179         (need_assembler_name_p): Same.
22180         (find_decls_types_r): Same.
22181         (get_eh_types_for_runtime): Same.
22182         (find_decls_types_in_eh_region): Same.
22183         (find_decls_types_in_node): Same.
22184         (assign_assembler_name_if_needed): Same.
22185         * value-prof.c (stream_out_histogram_value): Same.
22186         * value-prof.h: Same.
22187         * var-tracking.c (use_narrower_mode): Same.
22188         (prepare_call_arguments): Same.
22189         (vt_expand_loc_callback): Same.
22190         (resolve_expansions_pending_recursion): Same.
22191         (vt_expand_loc): Same.
22192         * varasm.c (const_hash_1): Same.
22193         (compare_constant): Same.
22194         (tree_output_constant_def): Same.
22195         (simplify_subtraction): Same.
22196         (get_pool_constant): Same.
22197         (output_constant_pool_2): Same.
22198         (output_constant_pool_1): Same.
22199         (mark_constants_in_pattern): Same.
22200         (mark_constant_pool): Same.
22201         (get_section_anchor): Same.
22202         * vr-values.c (compare_range_with_value): Same.
22203         (vr_values::extract_range_from_phi_node): Same.
22204         * vr-values.h: Same.
22205         * web.c (unionfind_union): Same.
22206         * wide-int.h: Same.
22207
22208 2019-07-09  Martin Sebor  <msebor@redhat.com>
22209
22210         PR c++/61339
22211         * align.h: Change class-key from class to struct and vice versa
22212         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22213         * alloc-pool.h: Same.
22214         * asan.c (shadow_mem_size): Same.
22215         * auto-profile.c: Same.
22216         * basic-block.h: Same.
22217         * bitmap.h: Same.
22218         * cfgexpand.c (set_rtl): Same.
22219         (expand_one_stack_var_at): Same.
22220         * cfghooks.h: Same.
22221         * cfgloop.h: Same.
22222         * cgraph.h: Same.
22223         * config/i386/i386.h: Same.
22224         * df-problems.c (df_print_bb_index): Same.
22225         * df-scan.c: Same.
22226         * df.h (df_single_use): Same.
22227         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22228         (layout::annotation_line_showed_range_p): Same.
22229         (get_printed_columns): Same.
22230         (correction::ensure_terminated): Same.
22231         (line_corrections::~line_corrections): Same.
22232         * dojump.h: Same.
22233         * dse.c: Same.
22234         * dump-context.h: Same.
22235         * dumpfile.h: Same.
22236         * dwarf2out.c: Same.
22237         * edit-context.c: Same.
22238         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22239         * flags.h: Same.
22240         * function.c (assign_stack_local): Same.
22241         * function.h: Same.
22242         * gcc.c: Same.
22243         * gcov.c (block_info::block_info): Same.
22244         * genattrtab.c: Same.
22245         * genextract.c: Same.
22246         * genmatch.c (comparison_code_p): Same.
22247         (id_base::id_base): Same.
22248         (decision_tree::print): Same.
22249         * genoutput.c: Same.
22250         * genpreds.c (write_one_predicate_function): Same.
22251         * genrecog.c (validate_pattern): Same.
22252         (find_operand_positions): Same.
22253         (optimize_subroutine_group): Same.
22254         (merge_pattern_transition::merge_pattern_transition): Same.
22255         (merge_pattern_info::merge_pattern_info): Same.
22256         (merge_state_result::merge_state_result): Same.
22257         (merge_into_state): Same.
22258         * gensupport.c: Same.
22259         * gensupport.h: Same.
22260         * ggc-common.c (init_ggc_heuristics): Same.
22261         * ggc-tests.c (test_union): Same.
22262         * gimple-loop-interchange.cc (dump_induction): Same.
22263         * gimple-loop-versioning.cc: Same.
22264         * gimple-match.h (gimple_match_cond::any_else): Same.
22265         * gimple-ssa-backprop.c: Same.
22266         * gimple-ssa-sprintf.c: Same.
22267         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22268         Same.
22269         (store_immediate_info::store_immediate_info): Same.
22270         (merged_store_group::apply_stores): Same.
22271         (get_location_for_stmts): Same.
22272         * gimple-ssa-strength-reduction.c: Same.
22273         * gimple-ssa-warn-alloca.c: Same.
22274         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22275         * godump.c (go_type_decl): Same.
22276         * hash-map-tests.c (test_map_of_strings_to_int): Same.
22277         * hash-map.h: Same.
22278         * hash-set-tests.c (test_set_of_strings): Same.
22279         * hsa-brig.c: Same.
22280         * hsa-common.h: Same.
22281         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22282         * input.c (assert_loceq): Same.
22283         * input.h: Same.
22284         * ipa-cp.c: Same.
22285         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22286         * ipa-fnsummary.h: Same.
22287         * ipa-inline.h: Same.
22288         * ipa-prop.h: Same.
22289         * ipa-split.c (visit_bb): Same.
22290         * ira-int.h (minmax_set_iter_next): Same.
22291         * loop-invariant.c: Same.
22292         * loop-iv.c: Same.
22293         * lra-eliminations.c: Same.
22294         * lra-int.h: Same.
22295         * lra-lives.c (mark_regno_dead): Same.
22296         * lra-remat.c: Same.
22297         * lra-spills.c: Same.
22298         * lto-streamer.h: Same.
22299         * mem-stats.h: Same.
22300         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22301         * omp-low.c (omp_clause_aligned_alignment): Same.
22302         * optabs-query.h (get_vcond_eq_icode): Same.
22303         * optabs.h: Same.
22304         * opts.c (wrap_help): Same.
22305         * poly-int.h: Same.
22306         * predict.c (predict_paths_leading_to_edge): Same.
22307         * pretty-print.h: Same.
22308         * profile-count.h: Same.
22309         * read-md.h: Same.
22310         * read-rtl-function.c: Same.
22311         * ree.c: Same.
22312         * reginfo.c: Same.
22313         * regrename.c: Same.
22314         * regrename.h: Same.
22315         * reload.h: Same.
22316         * rtl-iter.h: Same.
22317         * rtl.h (costs_add_n_insns): Same.
22318         * sanopt.c: Same.
22319         * sched-int.h: Same.
22320         * sel-sched-ir.h: Same.
22321         * selftest.h: Same.
22322         * sese.h (vec_find): Same.
22323         * stmt.c: Same.
22324         * target-globals.h: Same.
22325         * tree-affine.c (aff_combination_find_elt): Same.
22326         * tree-affine.h: Same.
22327         * tree-data-ref.h: Same.
22328         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22329         * tree-predcom.c: Same.
22330         * tree-scalar-evolution.c (find_var_scev_info): Same.
22331         * tree-ssa-alias.h: Same.
22332         * tree-ssa-ccp.c: Same.
22333         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22334         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22335         (rewrite_mem_refs): Same.
22336         (execute_sm_if_changed): Same.
22337         (hoist_memory_references): Same.
22338         * tree-ssa-loop-ivopts.c (operator<=): Same.
22339         * tree-ssa-loop.h: Same.
22340         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22341         * tree-ssa-structalias.c: Same.
22342         * tree-switch-conversion.h (cluster::cluster): Same.
22343         (simple_cluster::simple_cluster): Same.
22344         * tree-vect-patterns.c (type_conversion_p): Same.
22345         * tree-vectorizer.c (dump_stmt_cost): Same.
22346         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22347         * tree.c (protected_set_expr_location): Same.
22348         * tree.h (desired_pro_or_demotion_p): Same.
22349         (fndecl_built_in_p): Same.
22350         * unique-ptr-tests.cc: Same.
22351         * var-tracking.c (delete_variable_part): Same.
22352         * varasm.c (assemble_real): Same.
22353         (tree_output_constant_def): Same.
22354         * vec.c: Same.
22355         * wide-int-bitmask.h: Same.
22356         * wide-int.h (decompose): Same.
22357
22358 2019-07-09  Richard Biener  <rguenther@suse.de>
22359
22360         PR tree-optimization/91114
22361         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22362         find a vector type isn't fatal.
22363
22364 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
22365
22366         * config/aarch64/aarch64-simd.md
22367         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22368         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22369         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22370         (*aarch64_crypto_aese_fused,
22371         *aarch64_crypto_aesd_fused): Update to new definition.
22372         * config/aarch64/aarch64.c
22373         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22374
22375 2019-07-09  Richard Biener  <rguenther@suse.de>
22376
22377         * gimple-match.h (gimple_match_op::resimplify): New.
22378         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22379         gimple_resimplify4, gimple_resimplify5): Remove.
22380         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22381         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22382         Make static.
22383         (gimple_match_op::resimplify): New.
22384         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22385         according to availability.  Use gimple_match_op::resimplify.
22386
22387 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
22388
22389         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22390
22391 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
22392
22393         * config/arm/crypto.md:
22394         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22395         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22396         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22397         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22398         * config/arm/arm.c
22399         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22400         * config/arm/aarch-common-protos.h
22401         (aarch_crypto_can_dual_issue): Remove.
22402         * config/arm/aarch-common.c
22403         (aarch_crypto_can_dual_issue): Likewise.
22404         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22405         * config/arm/cortex-a53.md: Likewise.
22406         * config/arm/cortex-a57.md: Likewise.
22407         * config/arm/iterators.md:
22408         (CRYPTO_BINARY): Redefine.
22409         (CRYPTO_UNARY): Removed.
22410         (CRYPTO_AES, CRYPTO_AESMC): New.
22411
22412 2019-07-09  Richard Biener  <rguenther@suse.de>
22413
22414         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22415         (vn_reference_lookup_3): If the main ref has no access path recorded
22416         but orig_ref has use it to do access-path based disambiguation.
22417         (vn_reference_lookup_pieces): Adjust.
22418         (vn_reference_lookup): Pass down original ref if we valueized.
22419
22420 2019-07-09  Martin Liska  <mliska@suse.cz>
22421
22422         * doc/extend.texi: Document influence on loop
22423         optimizers.
22424
22425 2019-07-09  Martin Liska  <mliska@suse.cz>
22426
22427         * lto-compress.c (lto_normalized_zstd_level): Do not use
22428         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22429         of libzstd.  One can use 0 as a default compression level.
22430
22431 2019-07-09  Martin Liska  <mliska@suse.cz>
22432
22433         * doc/invoke.texi: Add link from -fprofile-dir option.
22434         Use better wording for 'gcno filename'.
22435
22436 2019-07-08  Martin Sebor  <msebor@redhat.com>
22437
22438         PR middle-end/71924
22439         PR middle-end/90549
22440         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
22441         comment.
22442         (args_loc_t): New type.
22443         (args_loc_t, locmap_t): same.
22444         (diag_returned_locals): New function.
22445         (is_addr_local): Same.
22446         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22447         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22448         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22449
22450 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
22451
22452         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22453         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
22454         and casts in offset when different, both through gimple stmts
22455         and through trees.  Rewritten using loops to minimize code duplication
22456         for each operand.
22457
22458 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22459
22460         * emit-rtl.c (set_insn_locations): New function moved from...
22461         * function.c (set_insn_locations): ...here.
22462         * ira-emit.c (emit_moves): Propagate location of the first instruction
22463         to the inserted move instructions.
22464         * reg-stack.c (compensate_edge): Set the location if the sequence is
22465         inserted on the edge.
22466         * rtl.h (set_insn_locations): Declare.
22467
22468 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
22469
22470         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22471         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22472         .machine string.
22473
22474 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
22475
22476         PR rtl-optimization/88233
22477         * common.opt (fsplit-wide-types-early): New option.
22478         * common/config/rs6000/rs6000-common.c
22479         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22480         OPT_LEVELS_ALL.
22481         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22482         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22483         flag_split_wide_types_early.
22484         (pass_data_lower_subreg3): New.
22485         (pass_lower_subreg3): New.
22486         (make_pass_lower_subreg3): New.
22487         * passes.def (pass_lower_subreg2): Move after the loop passes.
22488         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22489         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22490         the pass pipeline; its previous place is taken by ...
22491         (make_pass_lower_subreg3): ... this.
22492
22493 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
22494
22495         * config/s390/s390.c (s390_shift_truncation_mask): Define.
22496         (TARGET_SHIFT_TRUNCATION_MASK): Define.
22497
22498 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
22499
22500         * config/s390/constraints.md: Add new jsc constraint.
22501         * config/s390/predicates.md: New predicates.
22502         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22503         * config/s390/s390.c (s390_valid_shift_count): New function.
22504         (print_shift_count_operand): Use s390_valid_shift_count.
22505         (print_operand): Likewise.
22506         * config/s390/s390.md: Use new predicate.
22507         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22508         * config/s390/vector.md: Use new predicate.
22509
22510 2019-07-08  Andrew Waterman  <andrew@sifive.com>
22511             Jim Wilson  <jimw@sifive.com>
22512
22513         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22514         bitsize instead of BITS_PER_WORD.
22515
22516 2019-07-08  Martin Liska  <mliska@suse.cz>
22517
22518         * collect2.c (defined): Revert to before r254460.
22519         (scan_prog_file): Revert to before r254460.
22520
22521 2019-07-08  Richard Biener  <rguenther@suse.de>
22522
22523         PR tree-optimization/83518
22524         * tree-ssa-sccvn.c: Include splay-tree.h.
22525         (struct pd_range, struct pd_data): New.
22526         (struct vn_walk_cb_data): Add data to track partial definitions.
22527         (vn_walk_cb_data::~vn_walk_cb_data): New.
22528         (vn_walk_cb_data::push_partial_def): New.
22529         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22530         (vn_reference_lookup_2): When partial defs are registered give up.
22531         (vn_reference_lookup_3): Track partial defs for memset and
22532         constructor zeroing and for defs from constants.
22533
22534 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
22535
22536         * doc/install.texi (bootstrap-Og): Document.
22537
22538 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
22539
22540         * config/riscv/pic.md (*local_pic_load_s<mode>)
22541         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22542         referenced by <mode>, giving...
22543         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22544         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22545         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22546         use <X:MODE> for the mode attribute.
22547
22548 2019-07-07  Jeff Law  <law@redhat.com>
22549
22550         PR tree-optimization/91090
22551         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22552         in handling of ranges to simplify switch statements.
22553
22554 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
22555
22556         * config/darwin.c (darwin_override_options): Make a final check on PIC
22557         options.
22558
22559 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
22560
22561         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22562         on for kernel code.
22563
22564 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
22565
22566         PR target/91068
22567         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22568         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22569         instead of matching them to "l" output operands.
22570
22571 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
22572
22573         * config/mips/mips.c (mips_split_move): Zero-initialize addr
22574         and check whether addr.reg is nonnull before using it.
22575
22576 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
22577
22578         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22579         ctx->for_simd_scan_phase simd copy the outer var to the privatized
22580         variable(s).  For conditional lastprivate look through outer
22581         GIMPLE_OMP_SCAN context.
22582         (lower_omp_1): For conditional lastprivate look through outer
22583         GIMPLE_OMP_SCAN context.
22584
22585         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22586         member to combined_into_simd_safelen1.
22587         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22588         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
22589         clauses if ctx->combined_into_simd_safelen1 put statements after the
22590         predicate conditionalized block rather than into it.
22591
22592 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22593
22594         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22595         operand 1.
22596         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22597         Make the choice of <mode> explicit, giving...
22598         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22599
22600 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22601
22602         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22603         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22604         of .md attributes.
22605         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22606         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22607         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22608         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22609         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22610         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22611         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22612         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22613         (*avx512f_scatterdi<mode>): Likewise.
22614         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22615
22616 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22617
22618         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22619         specify the mode iterator referenced by <mode>, giving...
22620         (*push1_h8300hs_<QHI:mode>): ...this.
22621
22622 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22623
22624         * config/gcn/gcn-valu.md
22625         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22626         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22627         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
22628         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22629         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22630         but using the _exec comparison patterns.
22631         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22632         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22633         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
22634         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22635         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22636         but using the _exec comparison patterns.
22637
22638 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
22639
22640         * config/arm/sync.md
22641         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22642         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22643         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22644         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
22645         <SIDI:cas_cmp_str>.
22646
22647 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
22648
22649         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22650         (maybe_lookup_ctx): Add forward declaration.
22651         (omp_find_scan): Likewise.  Walk into body of simd if composited
22652         with worksharing loop.
22653         (scan_omp_simd_scan): New function.
22654         (scan_omp_1_stmt): Call it.
22655         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22656         ctx->for_simd_scan_phase.
22657         (lower_rec_input_clauses): Do much less work for inscan reductions
22658         in ctx->for_simd_scan_phase is_simd regions.
22659         (lower_omp_scan): Set is_simd also on simd constructs composited
22660         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
22661         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
22662         emit their body after in simd constructs composited with worksharing
22663         loop.
22664         (lower_omp_for_scan): Handle worksharing loop composited with simd.
22665
22666         * omp-low.c (omp_find_scan): Make static.
22667         (lower_omp_for_scan): Fix order of merge arguments in input phase of
22668         the second loop, var2 represents the first partial sum and so needs
22669         to go before rprivb[ivar].
22670
22671 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
22672
22673         * config/rs6000/rs6000-logue.c: Remove unused code.
22674
22675 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22676
22677         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22678
22679 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
22680
22681         PR target/90712
22682         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22683         check with a frame laid out check.
22684
22685 2019-07-05  Richard Biener  <rguenther@suse.de>
22686
22687         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22688         when comparing against a store with possibly the same value.
22689
22690 2019-07-05  Richard Biener  <rguenther@suse.de>
22691
22692         PR tree-optimization/91091
22693         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22694         (walk_non_aliased_vuses): Likewise.
22695         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22696         (get_continuation_for_phi): New tbaa_p parameter and pass
22697         it down.
22698         (walk_non_aliased_vuses): Likewise.
22699         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22700         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22701         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22702         Likewise.
22703         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22704         (adjust_offsets_for_equal_base_address): New function.
22705         (vn_reference_lookup_3): Use it to catch more base equivalences.
22706         Handle and pass down tbaa_p flag.
22707         (vn_reference_lookup_pieces): Adjust.
22708         (vn_reference_lookup): Remove alias-set altering, instead pass
22709         down false as tbaa_p.
22710
22711 2019-07-05  Richard Biener  <rguenther@suse.de>
22712
22713         PR tree-optimization/91091
22714         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22715         accesses can happen with -fno-strict-aliasing.
22716
22717 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
22718
22719         * tree-ssa-alias.c (alias_stats): Add
22720         nonoverlapping_component_refs_since_match_p_must_overlap.
22721         (dump_alias_stats): Print it.
22722         (nonoverlapping_component_refs_since_match_p): Add early exit.
22723         (nonoverlapping_component_refs_p): Do not account early exit.
22724
22725 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22726
22727         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22728         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22729         (emit_eh_dispatch): Delete.
22730         (lower_catch): Emit the eh_dispatch manually and set the location of
22731         the first catch statement onto it.
22732         (lower_eh_filter): Emit the eh_dispatch manually and set location.
22733         (lower_eh_dispatch): Propagate location.
22734         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22735         (eliminate_build): Likewise.
22736
22737 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
22738
22739         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22740         phi nodes if possible.
22741         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22742         location info on the newly created statement.
22743         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22744         newly created increment if needed.
22745
22746 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22747
22748         PR middle-end/78884
22749         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22750         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22751         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22752         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22753         ctx->add_safelen1 is set.
22754
22755         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22756         GOMP_loop_start at the start of second worksharing loop in a scan.
22757         For nowait, don't emit GOMP_loop_end_nowait at the end of first
22758         worksharing loop in a scan even if there are conditional lastprivates,
22759         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22760
22761 2019-07-04  Jan Hubicka  <jh@suse.cz>
22762
22763         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22764         Fix check for match in the ref walk.
22765
22766 2019-07-04  Martin Liska  <mliska@suse.cz>
22767
22768         * tree-ssa-loop-niter.c
22769         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22770         (estimate_numbers_of_iterations):
22771         Support __builtin_expect_with_probability for analysis
22772         of # of loop iterations.
22773
22774 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
22775
22776         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22777         * except.c: Likewise.
22778         * expr.c (expand_expr_real_1): Reject it.
22779         * gimplify.c (gimplify_expr): Gimplify it, within
22780         TRY_FINALLY_EXPR.
22781         * tree-dump.c (dequeue_and_dump): Dump it.
22782         * tree-pretty-print.c (dump_generic_node): Likewise.
22783         * tree.c (block_may_fallthru): Handle it.
22784         * tree.def (EH_ELSE_EXPR): Introduce it.
22785         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22786         with GIMPLE_EH_ELSE as try/finally/else.
22787
22788 2019-07-04  Richard Biener  <rguenther@suse.de>
22789
22790         PR ipa/91062
22791         * tree-pass.h (execute_all_ipa_transforms): Add a flag
22792         parameter whether to disable GC collection.
22793         * passes.c (execute_one_ipa_transform_pass): Likewise, and
22794         honor it.
22795         (execute_all_ipa_transforms): Likewise and pass it down.
22796         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22797         collection from applying IPA transforms.
22798         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22799         from applying IPA transforms.
22800
22801 2019-07-04  Richard Biener  <rguenther@suse.de>
22802
22803         PR tree-optimization/90911
22804         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22805         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22806         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22807         scalar_loop_scaling.
22808         (vect_transform_loop): Scale scalar loop profile if needed.
22809         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22810         the loop copy from if-conversion adjust edge probabilities
22811         and scale the vectorized loop body profile, queue the scalar
22812         profile for updating after peeling.
22813
22814 2019-07-04  Jan Hubicka  <jh@suse.cz>
22815
22816         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22817         parameters; return early for must-alias.
22818         (indirect_ref_may_alias_decl_p): Likewise; when establishing
22819         outer types match, try nonoverlapping_component_refs
22820         if must-alias is not obvious.
22821         (indirect_refs_may_alias_p): Likewise.
22822         (refs_may_alias_p_2): Likewise.
22823
22824 2019-07-04  Richard Biener  <rguenther@suse.de>
22825
22826         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22827         argument.
22828         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22829         globals into...
22830         (struct vn_walk_cb_data): New callback data struct.
22831         (vn_reference_lookup_2): Adjust.
22832         (vn_reference_lookup_3): Likewise.
22833         (vn_reference_lookup_pieces): Likewise.
22834         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22835         (visit_reference_op_load): Adjust.
22836
22837 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22838
22839         PR tree-optimization/91063
22840         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22841         stmt from stmts sequence before calling vect_init_vector_1.
22842         Formatting fix.
22843
22844 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22845
22846         PR target/88833
22847         * fwprop.c (reg_single_def_p): New function.
22848         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22849         (forward_propagate_into): New parameter reg_prop_only
22850         with default value false.
22851         Propagate def's src into loop only if SET_SRC and SET_DEST
22852         of def_set have single definitions.
22853         Likewise if reg_prop_only is set to true.
22854         (fwprop): New param fwprop_addr_p.
22855         Integrate fwprop_addr into fwprop.
22856         (fwprop_addr): Remove.
22857         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22858         to true.
22859         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22860         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22861         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22862
22863 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
22864
22865         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22866         in worksharing loop scans.
22867
22868         PR tree-optimization/91074
22869         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22870         temporary.
22871
22872         PR rtl-optimization/90756
22873         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22874         for VECTOR_TYPE_P.
22875
22876 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
22877
22878         * config/aarch64/aarch64.md: Remove redundant constraints from
22879         define_expand but keep some patterns untouched if they are
22880         specially selected by TARGET_SECONDARY_RELOAD hook.
22881         * config/aarch64/aarch64-sve.md: Likewise.
22882         * config/aarch64/atomics.md: Remove redundant constraints from
22883         define_expand.
22884         * config/aarch64/aarch64-simd.md: Likewise.
22885
22886 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22887
22888         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22889         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22890         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22891         clauses.
22892         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22893         DARWIN_NOPIE_SPEC.
22894
22895 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
22896
22897         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22898         (STARTFILE_SPEC): Split crt3 into a separate spec.
22899         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22900         (DARWIN_CRT2_SPEC): New.
22901         (DARWIN_CRT3_SPEC): New.
22902         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22903         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22904         (DARWIN_CRT3_SPEC): New.
22905
22906 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
22907
22908         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22909         Change the RTL attribute "length" from "4" to "*" to allow the
22910         length attribute to be adjusted automatically for prefixed load,
22911         store, and add immediate instructions.
22912         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22913         Likewise.
22914         (extendsi<mode>2, EXTSI iterator): Likewise.
22915         (movsi_internal1): Likewise.
22916         (movsi_from_sf): Likewise.
22917         (movdi_from_sf_zero_ext): Likewise.
22918         (mov<mode>_internal): Likewise.
22919         (movcc_internal1, QHI iterator): Likewise.
22920         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22921         (movsf_from_si): Likewise.
22922         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22923         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22924         (mov<mode>, FMOVE128 iterator): Likewise.
22925         (movdi_internal64): Likewise.
22926         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22927         Likewise.
22928         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22929         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22930         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22931         (vsx_splat_v4sf): Likewise.
22932
22933 2019-07-03  Mark Wielaard  <mark@klomp.org>
22934
22935         PR debug/90981
22936         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22937         DW_AT_addr_base if there is actually a .debug_addr section with
22938         addresses.
22939         (output_addr_table): Add DWARF5 table header generation here after
22940         checking there are actually any addresses from...
22941         (dwarf2out_finish): ...here.
22942
22943 2019-07-03  Richard Biener  <rguenther@suse.de>
22944
22945         PR middle-end/91069
22946         * match.pd (vec_perm -> bit_insert): Fix element read from
22947         first vector.
22948
22949 2019-07-03  Martin Liska  <mliska@suse.cz>
22950
22951         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22952         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22953         condition.
22954         * generic-match-head.c: Include dbgcnt.h.
22955         * gimple-match-head.c: Likewise.
22956
22957 2019-07-03  Martin Liska  <mliska@suse.cz>
22958
22959         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22960         (GCOV_COUNTER_V_TOPN): New.
22961         (GCOV_COUNTER_V_INDIR): Use _topn.
22962         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22963         (GCOV_TOPN_VALUES): New.
22964         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22965         (GCOV_TOPN_VALUES_COUNTERS): New.
22966         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22967         * tree-profile.c:
22968         (gimple_init_gcov_profiler): Rename variables from one_value
22969         to topn_values.
22970         (gimple_gen_one_value_profiler): Remove.
22971         (gimple_gen_topn_values_profiler): New function.
22972         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22973         names instead of SINGLE_VALUE.
22974         (stream_out_histogram_value): Likewise.
22975         (stream_in_histogram_value): Likewise.
22976         (get_most_common_single_value): Likewise.
22977         (gimple_divmod_fixed_value_transform): Likewise.
22978         (gimple_stringops_transform): Likewise.
22979         (gimple_divmod_values_to_profile): Likewise.
22980         (gimple_stringops_values_to_profile): Likewise.
22981         (gimple_find_values_to_profile): Likewise.
22982         * value-prof.h (enum hist_type): Rename to TOPN.
22983         (gimple_gen_one_value_profiler): Remove.
22984         (gimple_gen_topn_values_profiler): New.
22985
22986 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
22987
22988         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22989         if it has the DW_AT_data_member_location attribute.
22990
22991 2019-07-03  Richard Biener  <rguenther@suse.de>
22992
22993         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22994         dumping.
22995
22996 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
22997
22998         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22999         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
23000         (tlsdesc_small_sve_<mode>): Likewise.
23001
23002 2019-07-03  Martin Liska  <mliska@suse.cz>
23003
23004         * Makefile.in: Define ZSTD_LIB.
23005         * common.opt: Adjust compression level
23006         to support also zstd levels.
23007         * config.in: Regenerate.
23008         * configure: Likewise.
23009         * configure.ac: Add --with-zstd and --with-zstd-include options
23010         and detect ZSTD.
23011         * doc/install.texi: Mention zstd dependency.
23012         * gcc.c: Print supported LTO compression algorithms.
23013         * lto-compress.c (lto_normalized_zstd_level): Likewise.
23014         (lto_compression_zstd): Likewise.
23015         (lto_uncompression_zstd): Likewise.
23016         (lto_end_compression): Dispatch in between zlib and zstd.
23017         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
23018         (lto_uncompression_zlib): Make it static.
23019         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
23020         * lto-section-in.c (lto_get_section_data): Pass info
23021         about used compression.
23022         * lto-streamer-out.c: By default use zstd when possible.
23023         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
23024         (TV_IPA_LTO_COMPRESS): Likewise for compression.
23025
23026 2019-07-03  Martin Liska  <mliska@suse.cz>
23027
23028         * lto-section-in.c (lto_get_section_data): Add "lto" section.
23029         * lto-section-out.c (lto_destroy_simple_output_block): Never
23030         compress LTO_section_lto section.
23031         * lto-streamer-out.c (produce_asm): Do not set major_version
23032         and minor_version.
23033         (lto_output_toplevel_asms): Likewise.
23034         (produce_lto_section): New function.
23035         (lto_output): Call produce_lto_section.
23036         (lto_write_mode_table): Do not set major_version and
23037         minor_version.
23038         (produce_asm_for_decls): Likewise.
23039         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
23040         type.
23041         (struct lto_header): Remove.
23042         (struct lto_section): New struct.
23043         (struct lto_simple_header): Do not inherit from lto_header.
23044         (struct lto_file_decl_data): Add lto_section_header field.
23045
23046 2019-07-03  Martin Liska  <mliska@suse.cz>
23047
23048         * lra-eliminations.c (eliminate_regs_in_insn): Remove
23049         dead assignemts.
23050         * reg-stack.c (check_asm_stack_operands): Likewise.
23051         * tree-ssa-structalias.c (create_function_info_for): Likewise.
23052         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
23053         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
23054         force_expand_binop.
23055
23056 2019-07-03  Martin Liska  <mliska@suse.cz>
23057
23058         PR tree-optimization/90892
23059         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
23060         in string constants.
23061
23062 2019-07-03  Martin Liska  <mliska@suse.cz>
23063
23064         PR middle-end/90899
23065         * multiple_target.c (create_dispatcher_calls): Add to comdat
23066         group only if set for ifunc.
23067
23068 2019-07-03  Martin Liska  <mliska@suse.cz>
23069
23070         PR target/88056
23071         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23072         Define local_object_name in outer scope in order to handle
23073         use-after-scope issue.
23074
23075 2019-07-03  Martin Liska  <mliska@suse.cz>
23076
23077         * common.opt: Add fprofile-note.
23078         * coverage.c (coverage_init): Append the option
23079         to bbg_file_name.
23080         * doc/invoke.texi: Document -fprofile-note.
23081
23082 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
23083
23084         PR tree-optimization/91033
23085         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
23086         vect_analyze_data_refs): Add bool * arguments.
23087         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
23088         if failure is due to scatter/gather, set *fatal to false if non-NULL.
23089         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23090         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
23091         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
23092         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
23093         vect_analyze_data_refs caller.
23094
23095         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
23096         clause.
23097         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
23098         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
23099         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
23100         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23101         OMP_CLAUSE__SCANTEMP_ entry.
23102         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
23103         * tree-pretty-print.c (dump_omp_clause): Likewise.
23104         * tree-nested.c (convert_nonlocal_omp_clauses,
23105         convert_local_omp_clauses): Likewise.
23106         * omp-general.h (struct omp_for_data): Add have_scantemp and
23107         have_nonctrl_scantemp members.
23108         * omp-general.c (omp_extract_for_data): Initialize them.
23109         * omp-low.c (struct omp_context): Add scan_exclusive member.
23110         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
23111         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
23112         ctx->scan_exclusive.
23113         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
23114         of !ctx->scan_inclusive.
23115         (lower_rec_input_clauses): Simplify gimplification of dtors using
23116         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
23117         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
23118         loops.  Don't add barrier for reduction_omp_orig_ref if
23119         ctx->scan_??xclusive.
23120         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
23121         (lower_omp_scan): Use ctx->scan_exclusive instead
23122         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
23123         reductions.  Use new_vard != new_var instead of repeated
23124         omp_is_reference calls.
23125         (omp_find_scan, lower_omp_for_scan): New functions.
23126         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
23127         inscan reductions.
23128         * omp-expand.c (expand_omp_scantemp_alloc): New function.
23129         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
23130         and fd->have_scantemp.
23131
23132         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
23133         on worksharing loop propagate it as shared clause to containing
23134         combined parallel.
23135
23136         * omp-expand.c (expand_omp_for_static_nochunk,
23137         expand_omp_for_static_chunk): For nowait worksharing loop with
23138         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
23139         at the end.
23140
23141 2019-07-02  qing zhao  <qing.zhao@oracle.com>
23142
23143         PR preprocessor/90581
23144         * doc/cppopts.texi: Add document for -fmax-include-depth.
23145         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
23146
23147 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
23148
23149         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
23150         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
23151         (mmx_packssdw): Ditto.
23152         (mmx_punpckhbw): Ditto.
23153         (mmx_punpcklbw): Ditto.
23154         (mmx_punpckhwd): Ditto.
23155         (mmx_punpcklwd): Ditto.
23156         (mmx_punpckhdq): Ditto.
23157         (mmx_punpckldq): Ditto.
23158         (*vec_dupv4hi): Ditto.
23159         (*vec_dupv2si): Ditto.
23160         (mmx_pmovmskb): Ditto.
23161         * config/i386/sse.md (sse_cvtpi2ps): Use
23162         TARGET_SSE2 && SSE_REG_P in split condition.
23163         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
23164         TARGET_SSSE3 && SSE_REGNO_P in split condition.
23165         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
23166         (ssse3_pshufbv8qi3): Ditto.
23167         (ssse3_palignrdi): Ditto.
23168
23169 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
23170
23171         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
23172         with inlined save and restore.
23173
23174 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
23175
23176         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
23177         to be inserted on single successor edge of the entry block.  Then call
23178         commit_edge_insertions instead of inserting the instructions manually.
23179         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
23180         RTL expansion and rebuild jump labels chain.
23181
23182 2019-07-02  Richard Biener  <rguenther@suse.de>
23183
23184         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
23185         TI_CHREC_KNOWN.
23186         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23187         Define here.
23188         * tree.c (build_common_tree_nodes): Initialize them.
23189         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23190         Make declarations comments.
23191         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
23192         chrec_known): Remove definitions.
23193         (initialize_scalar_evolutions_analyzer): Remove.
23194         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
23195         * tree-streamer.c (preload_common_nodes): Do not preload
23196         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23197
23198 2019-07-02  Jan Hubicka  <jh@suse.cz>
23199
23200         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23201         sanity check.
23202
23203 2019-07-02  Jan Hubicka  <jh@suse.cz>
23204
23205         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23206         to ..
23207         (nonoverlapping_component_refs_since_match_p): ... this one;
23208         handle also non-decl bases; return -1 if search gave up.
23209         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23210         nonoverlapping_component_refs_of_decl_p_no_alias to
23211         nonoverlapping_component_refs_since_match_p_may_alias,
23212         nonoverlapping_component_refs_since_match_p_no_alias.
23213         (dump_alias_stats): Update dumping.
23214         (aliasing_matching_component_refs_p): Break out from ...;
23215         dispatch to nonoverlapping_component_refs_for_decl_p
23216         and nonoverlapping_component_refs_since_match_p.
23217         (aliasing_component_refs_p): ... here; call
23218         nonoverlapping_component_refs_p in scenarios where we can not
23219         precisely determine base match.
23220         (decl_refs_may_alias_p): Use
23221         nonoverlapping_component_refs_since_match_p.
23222         (indirect_ref_may_alias_decl_p): Do not call
23223         nonoverlapping_component_refs_p.
23224         (indirect_refs_may_alias_p): Likewise.
23225
23226 2019-07-02  Jan Hubicka  <jh@suse.cz>
23227
23228         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23229         to clobber of return value.
23230
23231 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23232
23233         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23234         for is_neon_type instructions that have not already been categorized.
23235
23236 2019-07-02  Richard Biener  <rguenther@suse.de>
23237
23238         PR tree-optimization/58483
23239         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23240         for MEM_REF base hashing.
23241         (equal_mem_array_ref_p): Likewise for base comparison.
23242
23243 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23244
23245         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23246         parameterized name.
23247         (signbit<mode>2): Use that name.  Simplify.
23248
23249 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
23250
23251         PR middle-end/66726
23252         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23253         Tune heuristic from PR71016 to allow MIN / MAX.
23254
23255 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23256
23257         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23258         parameterized name.
23259         (abs<mode>2): Use that name.  Simplify.
23260
23261 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23262
23263         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23264         parameterized name.
23265         (neg<mode>2): Use that name.  Simplify.
23266
23267 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23268
23269         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23270         name.
23271         (abs<mode>2): Use that name.  Simplify.
23272
23273 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23274
23275         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23276         name.
23277         (neg<mode>2): Use that name.  Simplify.
23278
23279 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
23280
23281         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23282         ("enabled" attribute): Handle sse_noavx isa attribute.
23283         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23284         Use TARGET_SSE && SSE_REGNO_P in split condition.
23285         (*vec_dupv2sf): Ditto.
23286
23287 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23288
23289         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23290         name.
23291         (floatsi<mode>2): Use that name.  Simplify.
23292
23293 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23294
23295         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23296         parameterized name.
23297         (extenddf<mode>2_vsx): Make this a parameterized name.
23298         (extenddf<mode>2): Use those names.  Simplify.
23299
23300 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23301
23302         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23303         name.
23304         (eh_return): Use that name.  Simplify.
23305
23306 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23307
23308         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23309         (doloop_end): Use that name.  Simplify.
23310
23311 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23312
23313         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23314         parameterized name.
23315         (indirect_jump): Use that name.  Simplify.
23316
23317 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23318
23319         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23320         parameterized name.
23321         (abs<mode>2): Use that name.  Simplify.
23322
23323 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23324
23325         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23326         parameterized name.
23327         (fix_trunc<mode>si2): Use that name.  Simplify.
23328
23329 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23330
23331         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23332         (allocate_stack): Use that name.  Simplify.
23333
23334 2019-07-01  Martin Sebor  <msebor@redhat.com>
23335
23336         PR middle-end/90923
23337         * hash-map.h (hash_map::put): On insertion invoke element ctor.
23338         (hash_map::get_or_insert): Same.  Reformat comment.
23339         * hash-set.h (hash_set::add): On insertion invoke element ctor.
23340         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23341         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23342         * hash-table.h (hash_table::operator=): Prevent copy assignment.
23343          (hash_table::hash_table (const hash_table&)): Use copy ctor
23344          instead of assignment to copy elements.
23345
23346 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
23347             John David Anglin  <danglin@gcc.gnu.org>
23348
23349         PR target/90963
23350         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23351         using saved frame pointer.
23352
23353 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23354
23355         PR middle-end/64242
23356         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23357         Add frame clobber and schedule blockage.
23358
23359 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
23360
23361         * doc/invoke.texi (Link Options): Further editorial changes to
23362         -flinker-output docs.
23363
23364 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23365
23366         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23367         Load both operands of a PLUS into registers separately.
23368
23369 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
23370
23371         * config/s390/vector.md: Fix shift count operand printing.
23372
23373 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23374
23375         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23376
23377 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23378
23379         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23380         Use recog_data to test for an output operand.
23381
23382 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23383
23384         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23385         exclude any others that are disparaged or that are bound to need
23386         a reload or spill.
23387         (ira_get_dup_out_num): Expand comment.
23388
23389 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23390
23391         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23392         constraint string for each operand/alternative combo.  Only handle
23393         '%' at the start of constraint strings, and look for it outside
23394         the main loop.
23395
23396 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23397
23398         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23399         alternative_mask instead of HARD_REG_SET to represent a
23400         bitmask of alternatives.
23401         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23402         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23403
23404 2019-07-01  Martin Liska  <mliska@suse.cz>
23405
23406         * edit-context.c (test_applying_fixits_unreadable_file): Do not
23407         use () for a constructor call.
23408         (test_applying_fixits_line_out_of_range): Likewise.
23409         * ggc-page.c (alloc_page): Use (void *) for %p printf format
23410         argument.
23411         (free_page): Likewise.
23412
23413 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
23414
23415         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23416         parameter names to match usage (no functional change).
23417         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23418
23419 2019-07-01  Richard Biener  <rguenther@suse.de>
23420
23421         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23422         pass parameter.
23423         (pass_fre::execute): Honor it.
23424         * passes.def: Adjust pass_fre invocations to allow iterating,
23425         add non-iterating pass_fre before late threading/dom.
23426
23427 2019-07-01  Richard Biener  <rguenther@suse.de>
23428
23429         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23430         TARGET_MEM_REF handling to also handle address-taken ones.
23431
23432 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
23433
23434         * doc/sourcebuild.texi (Effective-Target Keywords, Other
23435         hardware attributes): Document avx512vp2intersect.
23436
23437 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23438
23439         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23440         (abs<mode>2): New expander.
23441         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23442         Use CODE_FOR_ssse3_absv8qi2.
23443         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23444         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23445
23446 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23447
23448         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23449         to sse, sse_noavx and avx.  Update all uses.
23450
23451 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
23452
23453         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23454         (*mmx_<plusminus_insn><mode>3): Ditto.
23455         (*mmx_mulv4hi3"): Ditto.
23456         (*mmx_smulv4hi3_highpart): Ditto.
23457         (*mmx_umulv4hi3_highpart): Ditto.
23458         (*mmx_pmaddwd): Ditto.
23459         (*sse2_umulv1siv1di3): Ditto.
23460         (*mmx_<code>v4hi3): Ditto.
23461         (*mmx_<code>v8qi3): Ditto.
23462         (mmx_ashr<mode>3): Ditto.
23463         ("mmx_<shift_insn><mode>3): Ditto.
23464         (*mmx_eq<mode>3): Ditto.
23465         (mmx_gt<mode>3): Ditto.
23466         (mmx_andnot<mode>3): Ditto.
23467         (*mmx_<code><mode>3): Ditto.
23468         (*mmx_pinsrw): Ditto.
23469         (*mmx_pextrw): Ditto.
23470         (mmx_pshufw_1): Ditto.
23471         (*mmx_uavgv8qi3): Ditto.
23472         (*mmx_uavgv4hi3): Ditto.
23473         ("mmx_psadbw): Ditto.
23474         * config/i386/sse.md (sse_cvtps2pi): Ditto.
23475         (sse_cvttps2pi): Ditto.
23476         (ssse3_pmaddubsw): Ditto.
23477         (*ssse3_pmulhrswv4hi3): Ditto.
23478         (ssse3_psign<mode>3): Ditto.
23479
23480 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
23481
23482         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23483         adjustment for bit-fields to all aggregate types.
23484
23485 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
23486
23487         * config/rs6000/predicates.md (pcrel_address): Use
23488         SYMBOL_REF_LOCAL_P to determine if a label is local.
23489         (pcrel_external_address): New predicate.
23490         (non_prefixed_mem_operand): Delete, predicate not used.
23491         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23492         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23493         addressing.
23494         (SYMBOL_REF_PCREL_P): Likewise.
23495
23496         PR target/91009
23497         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23498         alternative.
23499         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23500         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23501         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23502
23503 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
23504
23505         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23506         override on extra_headers.
23507
23508 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
23509
23510         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23511         * config/darwin-driver.c (darwin_default_min_version): Remove newline
23512         from warning.
23513         (darwin_driver_init): Likewise.
23514
23515 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23516
23517         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23518         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23519         Eliminate redundant alternative.
23520
23521 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23522
23523         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23524         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23525         Use vector_operand.
23526
23527 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
23528
23529         * config/arc/arc.c (arc_rtx_costs): All short instructions are
23530         having a lower cost regardless of the speed option.
23531
23532 2019-06-28  Jan Beulich  <jbeulich@suse.com>
23533
23534         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23535         vector_operand plus, on both alternatives, "Bm" constraint.
23536
23537 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
23538
23539         * config/arm/arm.md: Remove redundant constraints from
23540         define_expand but leave reload_inm and reload_outm patterns
23541         untouched since they need special constraints to work.
23542         * config/arm/arm-fixed.md: Remove redundant constraints from
23543         define_expand.
23544         * config/arm/iwmmxt.md: Likewise.
23545         * config/arm/neon.md: Likewise.
23546         * config/arm/sync.md: Likewise.
23547         * config/arm/thumb1.md: Likewise.
23548         * config/arm/vec-common.md: Likewise.
23549
23550 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
23551
23552         * doc/install.texi: Document --disable-tm-clone-registry.
23553
23554 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
23555
23556         PR c++/91024
23557         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23558         statements.
23559
23560         PR tree-optimization/91010
23561         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23562         return true.  Otherwise, don't call operand_equal_p if offset1 or
23563         offset2 is NULL and just return false.
23564
23565 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23566
23567         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23568         user-specified float mode choice for kernel mode code.
23569
23570 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23571
23572         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23573         spec.
23574
23575 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
23576
23577         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23578         use longcall for 64b code.
23579
23580 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
23581
23582         * builtins.c (get_memory_rtx): Fix comment.
23583         * optabs.def (movmem_optab): Change to cpymem_optab.
23584         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23585         (emit_block_move_hints): Change movmem to cpymem.
23586         * defaults.h: Change movmem to cpymem.
23587         * targhooks.c (get_move_ratio): Change movmem to cpymem.
23588         (default_use_by_pieces_infrastructure_p): Ditto.
23589         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23590         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23591         to cpymem.
23592         * config/aarch64/aarch64.h: Change movmem to cpymem.
23593         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23594         * config/alpha/alpha.h: Change movmem to cpymem in comment.
23595         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23596         movmem to cpymem.
23597         * config/arc/arc-protos.h: Change movmem to cpymem.
23598         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23599         * config/arc/arc.h: Change movmem to cpymem in comment.
23600         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23601         * config/arm/arm-protos.h: Change movmem to cpymem in names.
23602         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23603         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23604         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23605         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23606         * config/avr/avr-protos.h: Change movmem to cpymem.
23607         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23608         avr_out_movmem): Change movmem to cpymem.
23609         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23610         Change movmem to cpymem.
23611         * config/bfin/bfin-protos.h: Change movmem to cpymem.
23612         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23613         Change movmem to cpymem.
23614         * config/bfin/bfin.h: Change movmem to cpymem in comment.
23615         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23616         * config/c6x/c6x-protos.h: Change movmem to cpymem.
23617         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23618         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23619         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23620         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23621         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23622         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23623         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23624         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23625         expand_small_cpymem_or_setmem,
23626         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23627         expand_set_or_cpymem_constant_prologue,
23628         ix86_expand_set_or_cpymem): Change movmem to cpymem.
23629         * config/i386/i386-protos.h: Change movmem to cpymem.
23630         * config/i386/i386.h: Change movmem to cpymem in comment.
23631         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23632         (setmem<mode>): Change expansion function name.
23633         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23634         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23635         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23636         * config/m32c/m32c-protos.h: Change movmem to cpymem.
23637         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23638         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23639         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23640         to cpymem.
23641         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23642         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23643         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23644         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23645         Change movmem to cpymem.
23646         * config/mips/mips.h: Change movmem to cpymem.
23647         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23648         * config/nds32/nds32-memory-manipulation.c
23649         (nds32_expand_movmemsi_loop_unknown_size,
23650         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23651         nds32_expand_movmemsi_unroll,
23652         nds32_expand_movmemsi): Change movmem to cpymem.
23653         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23654         * config/nds32/nds32-protos.h: Change movmem to cpymem.
23655         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23656         (pa_adjust_insn_length): Change call to compute_movmem_length.
23657         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23658         movmemdi, movmemdi_prereload,
23659         movmemdi_postreload): Change movmem to cpymem.
23660         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23661         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23662         * config/riscv/riscv.c: Change movmem to cpymem in comment.
23663         * config/riscv/riscv.h: Change movmem to cpymem.
23664         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23665         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23666         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23667         movmem to cpymem.
23668         * config/s390/s390-protos.h: Change movmem to cpymem.
23669         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23670         s390_expand_insv): Change movmem to cpymem.
23671         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23672         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23673         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23674         * config/sparc/sparc.h: Change movmem to cpymem in comment.
23675         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23676         for nonexistent function.
23677         * config/vax/vax.h: Change movmem to cpymem in comment.
23678         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23679         * config/visium/visium.h: Change movmem to cpymem in comment.
23680         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23681         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23682         * doc/md.texi: Change movmem to cpymem and update description to match.
23683         * doc/rtl.texi: Change movmem to cpymem.
23684         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23685         * doc/tm.texi: Regenerate.
23686
23687 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
23688
23689         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23690         -fvariable-expansion-in-unroller by default.
23691         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23692         default for Power.
23693
23694 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
23695
23696         Revert
23697         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23698         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23699
23700         * config.gcc(rs6000-*-*): Define target_gtfiles.
23701
23702 2019-06-27  Jan Hubicka  <jh@suse.cz>
23703
23704         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23705         (add_type_duplicate): When odr hash is not allocated, to nothing.
23706         (odr_based_tbaa_p): New function.
23707         (set_type_canonical_for_odr_type): New function.
23708         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23709         set_type_canonical_for_odr_type): New.
23710         * tree.c (gimple_canonical_types_compatible_p): ODR types with
23711         ODR based TBAA are not equivalent to non-ODR types.
23712
23713 2019-06-27  Martin Liska  <mliska@suse.cz>
23714
23715         PR tree-optimization/90974
23716         PR rtl-optimization/90975
23717         PR rtl-optimization/90976
23718         PR target/91016
23719         PR tree-optimization/91017
23720         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23721         unused tmp.
23722         * lra.c (lra_set_insn_recog_data): Remove a leftover from
23723         initial commit of IRA.
23724         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23725         of op0 and op1.
23726         * tree-vect-loop.c (vect_create_epilog_for_reduction):
23727         Remove unused mode1.
23728         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23729         to new_stmt_info.
23730
23731 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
23732
23733         PR target/90991
23734         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23735         instead of register_operand for operands[1], add m to its constraints
23736         if operands[2] uses "C" constraint.  Ensure in condition that if
23737         operands[2] is not 0, then operands[1] is not a MEM.  For last two
23738         alternatives, use unaligned loads instead of aligned if operands[1] is
23739         misaligned_operand.
23740
23741 2019-06-27  Martin Liska  <mliska@suse.cz>
23742
23743         * asan.c (asan_emit_allocas_unpoison): Remove obviously
23744         dead assignments.
23745         * bt-load.c (move_btr_def): Likewise.
23746         * builtins.c (expand_builtin_apply_args_1): Likewise.
23747         (expand_builtin_apply): Likewise.
23748         * cfgexpand.c (expand_asm_stmt): Likewise.
23749         (construct_init_block): Likewise.
23750         * cfghooks.c (verify_flow_info): Likewise.
23751         * cfgloopmanip.c (remove_path): Likewise.
23752         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23753         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23754         * combine.c (simplify_if_then_else): Likewise.
23755         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23756         (choose_basereg): Likewise.
23757         (ix86_expand_prologue): Likewise.
23758         (ix86_preferred_output_reload_class): Likewise.
23759         * cselib.c (cselib_record_sets): Likewise.
23760         * df-scan.c (df_scan_alloc): Likewise.
23761         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23762         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23763         * emit-rtl.c (try_split): Likewise.
23764         * graphite-scop-detection.c (assign_parameter_index_in_region):
23765         Likewise.
23766         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23767         * ira-color.c (setup_profitable_hard_regs): Likewise.
23768         * ira.c (rtx_moveable_p): Likewise.
23769         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23770         * read-rtl.c (read_subst_mapping): Likewise.
23771         * regrename.c (scan_rtx): Likewise.
23772         * reorg.c (fill_slots_from_thread): Likewise.
23773         * tree-inline.c (tree_function_versioning): Likewise.
23774         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23775         * tree-ssa-sink.c (statement_sink_location): Likewise.
23776         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23777         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23778         (vect_create_epilog_for_reduction): Likewise.
23779         * tree.c (build_nonstandard_integer_type): Likewise.
23780
23781 2019-06-27  Richard Biener  <rguenther@suse.de>
23782
23783         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23784
23785 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
23786
23787         PR tree-optimization/89772
23788         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23789         out-of-bound accesses checking.
23790
23791 2019-06-27  Martin Liska  <mliska@suse.cz>
23792
23793         PR tree-optimization/91014
23794         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23795         when LHS is NULL_TREE.
23796
23797 2019-06-27  Martin Liska  <mliska@suse.cz>
23798
23799         * symbol-summary.h (traverse): Pass
23800         argument a to the call of callback.
23801         (gt_ggc_mx): Mark arguments as unused.
23802         (gt_pch_nx): Likewise.
23803
23804 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
23805
23806         PR target/62147
23807         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23808         finiteness.
23809
23810 2019-06-26  Jeff Law  <law@redhat.com>
23811
23812         PR tree-optimization/90883
23813         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23814         (delete_dead_or_redundant_assignment): Likewise.
23815
23816         PR tree-optimization/90883
23817         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23818         * tree-ssa-dse.c: Update various comments to distinguish between
23819         dead and redundant stores.
23820         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23821         (dse_optimize_redundant_stores): New function.
23822         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23823         Distinguish between dead and redundant calls in dump output.  All
23824         callers updated.
23825         (delete_dead_or_redundant_assignment): Similarly for assignments.
23826         (dse_optimize_stmt): Handle _CHK variants.  For statements which
23827         store 0 into multiple memory locations, try to prove a subsequent
23828         store is redundant.
23829
23830 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
23831
23832         PR target/89021
23833         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23834         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23835
23836 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23837
23838         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23839         (branch_islands): New extern.
23840         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23841         * config/rs6000/rs6000.c: .. here.
23842
23843 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
23844
23845         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23846         (powerpc*-*-*) ... to here.
23847
23848 2019-06-26  Jeff Law  <law@redhat.com>
23849
23850         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23851         memcpy, memmove and memset builtins.
23852         (maybe_trim_memstar_call): Likewise.
23853
23854 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23855
23856         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23857
23858 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
23859
23860         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23861
23862 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23863
23864         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23865         declaration.
23866         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23867         "static".
23868         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23869         declaration.
23870
23871 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23872
23873         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23874
23875 2019-06-26  Richard Biener  <rguenther@suse.de>
23876
23877         PR ipa/90982
23878         * tree-inline.c (remap_ssa_name): Copy SSA range info.
23879
23880 2019-06-26  Richard Biener  <rguenther@suse.de>
23881
23882         * lto-streamer.h (lto_bitmap_alloc): Remove.
23883         (lto_bitmap_free): Likewise.
23884         * lto-streamer.c (lto_bitmap_alloc): Remove.
23885         (lto_bitmap_free): Likewise.
23886         (lto_obstack): Likewise.
23887         (lto_obstack_initialized): Likewise.
23888         * lto-streamer-out.c (lto_output): Use own obstack for local
23889         bitmap, free it consistently.
23890
23891 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
23892
23893         PR target/90991
23894         * config/i386/sse.md
23895         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23896         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23897         insns if operands[2] is misaligned_operand.
23898
23899 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
23900
23901         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23902         TARGET_POWERPC64.
23903         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23904         to GPR.
23905
23906 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
23907
23908         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23909
23910 2019-06-26  Martin Liska  <mliska@suse.cz>
23911
23912         PR tree-optimization/90973
23913         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23914         epilogue_cost_vec instead of prologue_cost_vec for
23915         a epilogue cost.
23916
23917 2019-06-26  Martin Liska  <mliska@suse.cz>
23918
23919         * bb-reorder.c (connect_better_edge_p): Add missing else
23920         statement in the middle of if-else statements.
23921
23922 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
23923             H.J. Lu  <hongjiu.lu@intel.com>
23924             Olga Makhotina  <olga.makhotina@intel.com>
23925
23926         * common/config/i386/i386-common.c
23927         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23928         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23929         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23930         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23931         (ix86_handle_option): Handle -mavx512vp2intersect.
23932         * config/i386/avx512vp2intersectintrin.h: New.
23933         * config/i386/avx512vp2intersectvlintrin.h: New.
23934         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23935         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23936         AVX512VP2INTERSECT.
23937         * config/i386/i386-builtin-types.def: Add new types.
23938         * config/i386/i386-builtin.def: Add new builtins.
23939         * config/i386/i386-builtins.c: (enum processor_features): Add
23940         F_AVX512VP2INTERSECT.
23941         (static const _isa_names_table isa_names_table): Ditto.
23942         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23943         __AVX512VP2INTERSECT__.
23944         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23945         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23946         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23947         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23948         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23949         * config/i386/i386-options.c (ix86_target_string): Add
23950         -mavx512vp2intersect.
23951         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23952         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23953         P2HImode and P2QImode.
23954         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23955         number for P2QImode and P2HImode.
23956         (ix86_regmode_natural_size): New function.
23957         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23958         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23959         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23960         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23961         * config/i386/i386.opt: Add -mavx512vp2intersect.
23962         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23963         avx512vp2intersectvlintrin.h.
23964         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23965         (define_mode_iterator VI48_AVX512VP2VL): New.
23966         (avx512vp2intersect_2intersect<mode>,
23967         avx512vp2intersect_2intersectv16si): New define_insn patterns.
23968         * config.gcc: Add avx512vp2intersectvlintrin.h and
23969         avx512vp2intersectintrin.h to extra_headers.
23970         * doc/invoke.texi: Document -mavx512vp2intersect.
23971
23972 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
23973
23974         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23975
23976 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
23977
23978         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23979         savres_routine_syms, savres_routine_name, morestack_ref,
23980         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23981         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23982         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23983         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23984         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23985         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23986         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23987         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23988         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23989         get_stack_clash_protection_probe_interval,
23990         get_stack_clash_protection_guard_size,
23991         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23992         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23993         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23994         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23995         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23996         gen_frame_mem_offset, rs6000_savres_routine_name,
23997         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23998         ptr_regno_for_savres, rs6000_emit_savres_rtx,
23999         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24000         rs6000_global_entry_point_prologue_needed_p,
24001         rs6000_get_separate_components, rs6000_components_for_bb,
24002         rs6000_disqualify_components, rs6000_emit_prologue_components,
24003         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24004         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24005         rs6000_output_savres_externs, rs6000_output_function_prologue,
24006         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24007         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24008         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24009         rs6000_output_function_epilogue, gen_add3_const,
24010         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24011         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24012         to rs6000-logue.c.
24013         (machine_function): Moved to rs6000.h.
24014         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
24015         rs6000-internal.h.
24016         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
24017         savres_routine_syms, savres_routine_name, morestack_ref,
24018         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24019         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24020         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24021         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24022         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24023         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24024         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24025         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24026         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24027         get_stack_clash_protection_probe_interval,
24028         get_stack_clash_protection_guard_size,
24029         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24030         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24031         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24032         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24033         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24034         gen_frame_mem_offset, rs6000_savres_routine_name,
24035         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24036         ptr_regno_for_savres, rs6000_emit_savres_rtx,
24037         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24038         rs6000_global_entry_point_prologue_needed_p,
24039         rs6000_get_separate_components, rs6000_components_for_bb,
24040         rs6000_disqualify_components, rs6000_emit_prologue_components,
24041         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24042         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24043         rs6000_output_savres_externs, rs6000_output_function_prologue,
24044         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24045         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24046         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24047         rs6000_output_function_epilogue, gen_add3_const,
24048         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24049         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24050         to here from rs6000.c.
24051         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
24052         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
24053         quad_address_offset_p) Moved to here from rs6000.c.
24054         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
24055         * config/config.gcc: Add new source file rs6000-logue.c to garbage
24056         collector.
24057
24058 2019-06-25  Martin Liska  <mliska@suse.cz>
24059
24060         * hash-table.c (hashtab_chk_error): Move here from ...
24061         * hash-table.h (hashtab_chk_error): ... here.
24062
24063 2019-06-25  Martin Liska  <mliska@suse.cz>
24064
24065         PR tree-optimization/90978
24066         * df-scan.c (df_update_entry_block_defs): Remove dead else
24067         branch.
24068         (df_update_exit_block_uses): Likewise.
24069
24070 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
24071             Andrew Stubbs  <ams@codesourcery.com>
24072
24073         * config.gcc (thread_file): Set to gcn for AMD GCN.
24074         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
24075         (TARGET_EMUTLS_VAR_INIT): New hook.
24076
24077 2019-06-25  Martin Jambor  <mjambor@suse.cz>
24078
24079         PR ipa/90939
24080         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
24081
24082 2019-06-25  Richard Biener  <rguenther@suse.de>
24083
24084         PR tree-optimization/90930
24085         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
24086         into parallel form in the last pass instance.
24087
24088 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
24089
24090         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
24091         (arc_legitimize_pic_address): Simplify and cleanup the function.
24092         (SYMBOLIC_CONST): Remove.
24093         (prepare_pic_move): Likewise.
24094         (prepare_move_operands): Handle complex mov cases here.
24095         (arc_legitimize_address_0): Remove call to
24096         arc_legitimize_pic_address.
24097         (arc_legitimize_address): Remove call to
24098         arc_legitimize_tls_address.
24099         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
24100         (movhi_insn): Likewise.
24101
24102 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24103
24104         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
24105         PTRDIFF_TYPE.
24106         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
24107         format of "__intN" types for UINTMAX_TYPE.
24108         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
24109         format of "__intN" types for SIZETYPE.
24110         * tree.c (build_common_tree_nodes): Accept "__intN__"
24111         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
24112         * doc/invoke.texi: Document that __intN__ disables pedantic
24113         warnings.
24114
24115 2019-06-25  Jan Hubicka  <jh@suse.cz>
24116
24117         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
24118         base2_alias_set is non-zero before doing TBAA based disambiguation.
24119
24120 2019-06-25  Martin Liska  <mliska@suse.cz>
24121
24122         PR tree-optimization/90973
24123         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
24124         of prologue and epilogue.
24125
24126 2019-06-24  Jan Hubicka  <jh@suse.cz>
24127
24128         * ipa-utils.h (type_with_linkage_p): Verify that type is
24129         CXX_ODR_P.
24130         (odr_type_p): Remove extra return.
24131         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
24132         hash STRING_FLAG only for arrays and integers.
24133         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
24134         Update analogously.
24135         * tree-streamer-out.c (pack_ts_type_common_value_fields):
24136         Likewise.
24137         * print-tree.c (print_node): Print cxx-odr-p
24138         and string-flag.
24139         * tree.c (need_assembler_name_p): Also check that type
24140         is CXX_ODR_TYPE_P
24141         (verify_type_variant): Update verification of SRING_FLAG;
24142         also check CXX_ODR_P.
24143         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
24144         (TYPE_STRING_FLAG): Use it.
24145         (TYPE_CXX_ODR_P): New macro.
24146         * dwarf2out.c (gen_array_type_die): First check that type
24147         is an array and then test string flag.
24148
24149 2019-06-24  Richard Biener  <rguenther@suse.de>
24150
24151         PR tree-optimization/90972
24152         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
24153         in common code, dealing with STRING_CST properly.
24154
24155 2019-06-24  Richard Biener  <rguenther@suse.de>
24156
24157         PR tree-optimization/90930
24158         PR tree-optimization/90316
24159         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
24160         decrement of limit.
24161
24162 2019-06-24  Martin Sebor  <msebor@redhat.com>
24163
24164         * tree-pretty-print.h: Remove unnecessary punctuation characters
24165         from a diagnostic.
24166         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
24167
24168 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
24169
24170         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
24171         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
24172         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
24173
24174 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24175
24176         * config/rs6000/darwin.h: Handle GCC target pragma.
24177
24178 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24179
24180         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
24181
24182 2019-06-22  Jeff Law  <law@redhat.com>
24183
24184         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24185
24186 2019-06-22  Jan Hubicka  <jh@suse.cz>
24187
24188         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
24189         give up on bitfields; continue searching for different refs
24190         appearing later.
24191
24192 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24193
24194         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24195         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
24196         containing the offset as possible simd lane access.  Look through
24197         widening conversion.  Move the
24198         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24199
24200 2019-06-21  Richard Biener  <rguenther@suse.de>
24201
24202         PR tree-optimization/90930
24203         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24204         flag on new stmts to avoid re-processing them.
24205
24206 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
24207
24208         PR c++/90875 - added -Wswitch-outside-range option
24209         * doc/invoke.texi (Wswitch-outside-range): Document.
24210
24211 2019-06-21  Jeff Law  <law@redhat.com>
24212
24213         PR tree-optimization/90949
24214         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24215         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24216
24217 2019-06-21  Richard Biener  <rguenther@suse.de>
24218
24219         PR debug/90914
24220         * dwarf2out.c (prune_unused_types_walk): Always consider
24221         function-local extern declarations as used.
24222
24223 2019-06-21  Richard Biener  <rguenther@suse.de>
24224
24225         PR tree-optimization/90913
24226         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24227         the scalar variant of if-conversion versioning.
24228
24229 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24230
24231         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24232         create another "omp scan inscan exclusive" array if
24233         !ctx->scan_inclusive.
24234         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24235         (lower_omp_scan): Likewise.
24236         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24237         2-bit bitfield for simd_lane_access_p member.
24238         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24239         aux == (void *)-4 as simd lane access.
24240         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
24241         comment with permutations to show the canonical permutation order.
24242         (vectorizable_scan_store): Handle exclusive scan.
24243         (vectorizable_store): Call vectorizable_scan_store even for
24244         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24245
24246         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24247         "omp simd array" arrays with one byte elements.
24248
24249 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
24250
24251         * config/alpha/alpha.md (@unaligned_store<mode>):
24252         Rename from unaligned_store<mode>.
24253         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24254         * config/alpha/sync.md (@load_locked_<mode>): Rename
24255         from load_locked_<mode>.
24256         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24257         (@atomic_compare_and_swap<mode>_1): Rename
24258         from atomic_compare_and_swap<mode>_1.
24259         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24260         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24261         Use gen_reload_in_aligned and gen_unaligned_store.
24262         (emit_load_locked): Remove.
24263         (emit_store_conditional): Ditto.
24264         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24265         (alpha_split_compare_and_swap): Ditto.
24266         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24267         (alpha_split_compare_and_swap_12): Use gen_load_locked
24268         and gen_store_conditional.
24269         (alpha_split_atomic_exchange): Ditto.
24270         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24271         (alpha_split_atomic_exchange_12): Use gen_load_locked
24272         and gen_store_conditional.
24273
24274 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
24275
24276         * config/aarch64/aarch64-errata.h: New file.
24277         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24278         (CA53_ERR_843419_SPEC): Delete.
24279         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24280         * config/aarch64/aarch64-linux.h: Likewise.
24281         * config/aarch64/aarch64-netbsd.h: Likewise.
24282         * config/aarch64/aarch64-freebsd.h: Likewise.
24283
24284 2019-06-20  Marek Polacek  <polacek@redhat.com>
24285
24286         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24287
24288 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
24289
24290         * config/rs6000/rs6000.md (isa attribute): Add support for
24291         for a future processor.
24292
24293 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
24294
24295         PR target/54855
24296         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24297         standard scalar operation pattern for V2DF.
24298         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24299         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24300         (*ieee_<ieee_maxmin><mode>3): Likewise.
24301         (vec_setv2df_0): Likewise.
24302
24303 2019-06-20  Jan Hubicka  <jh@suse.cz>
24304
24305         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24306         parameter; it has no use in gimple memory model.
24307         (indirect_ref_may_alias_decl_p): Update.
24308
24309 2019-06-20  Martin Liska  <mliska@suse.cz>
24310
24311         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24312         to 10.
24313
24314 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
24315
24316         * tree-vect-stmts.c (enum scan_store_kind): New type.
24317         (scan_store_can_perm_p): Change last argument from int * to
24318         vec<enum scan_store_kind> *, record precisely which permutations
24319         need whole vector left shift or that plus VEC_COND_EXPR.
24320         (vectorizable_scan_store): Adjust caller, use whole vector left shift
24321         and additional VEC_COND_EXPR only for those iterations that need it.
24322
24323 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
24324
24325         * config.gcc: Fix ARM --with-fpu checking and error message.
24326
24327 2019-06-19  Marek Polacek  <polacek@redhat.com>
24328
24329         PR c++/60364 - noreturn after first decl not diagnosed.
24330         * attribs.c (get_attribute_namespace): No longer static.
24331         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
24332         attributes.
24333         (attr_noreturn_exclusions): Make it extern.
24334         * attribs.h (get_attribute_namespace): Declare.
24335         * tree-inline.c (function_attribute_inlinable_p): Use
24336         get_attribute_name.
24337
24338 2019-06-19  Martin Sebor  <msebor@redhat.com>
24339
24340         PR tree-optimization/90626
24341         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24342
24343         PR tree-optimization/90626
24344         * tree-ssa-strlen.c (strxcmp_unequal): New function.
24345         (handle_builtin_string_cmp): Call it.
24346
24347 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24348
24349         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24350         and DARWIN_NOPIE_SPEC.
24351         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24352         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24353         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24354         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24355         (DARWIN_EXPORT_DYNAMIC): Delete.
24356         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24357         and pie options processing to  darwin.h.
24358         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24359
24360 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24361
24362         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24363         in computing the number of options to be moved.
24364
24365 2019-06-19  Maya Rashish  <coypu@sdf.org>
24366
24367         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24368         (CLEAR_INSN_CACHE) Use it.
24369
24370 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
24371
24372         * config/i386/i386.md (cmpstrnsi): Remove dead code.
24373
24374 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
24375
24376         PR middle-end/84521
24377         * builtins.c (expand_builtin_setjmp_setup): Save
24378         hard_frame_pointer_rtx.
24379         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24380         restore fp.
24381         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24382         non-local goto.
24383         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24384         elimination code.
24385         (remove_reg_equal_offset_note): Remove unused function.
24386         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24387         code.
24388         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24389         (arc_builtin_setjmp_frame_value): Remove function.
24390         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24391         (avr_builtin_setjmp_frame_value): Remove function.
24392         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24393         (ix86_builtin_setjmp_frame_value): Remove function.
24394         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24395         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24396         (sparc_builtin_setjmp_frame_value): Remove function.
24397         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24398         (vax_builtin_setjmp_frame_value): Remove function.
24399         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24400         pointer if has_nonlocal_label.
24401
24402 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
24403
24404         * doc/md.texi: Document vec_shl_<mode> pattern.
24405         * optabs.def (vec_shl_optab): New optab.
24406         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24407         argument, if == vec_shl_optab, check for left whole vector shift
24408         pattern rather than right shift.
24409         (expand_vec_perm_const): Add vec_shl_optab support.
24410         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24411         in the comment.
24412         * tree-vect-generic.c (lower_vec_perm): Support permutations which
24413         can be handled by vec_shl_optab.
24414         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24415         (check_scan_store): Use it.
24416         (vectorizable_scan_store): If target can't do normal permutations,
24417         try to use whole vector left shifts and if needed a VEC_COND_EXPR
24418         after it.
24419         * config/i386/sse.md (vec_shl_<mode>): New expander.
24420
24421         * omp-low.c (lower_rec_input_clauses): Handle references properly
24422         in inscan clauses.
24423         (lower_omp_scan): Likewise.
24424
24425 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24426
24427         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24428         mem_mode is BLKmode.
24429
24430 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
24431
24432         PR target/90922
24433         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24434         pointer adjustment for the case of no callee-saved registers and
24435         stack frame bigger than 128 bytes.
24436
24437 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
24438
24439         PR middle-end/90862
24440         * omp-low.c (check_omp_nesting_restrictions): Handle
24441         GF_OMP_TARGET_KIND_OACC_DECLARE.
24442
24443 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
24444
24445         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24446         (@add<mode>3_carry): Rename from add<mode>3_carry.
24447         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24448         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24449         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24450         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24451         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24452         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24453         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24454         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24455         (cmpstrnsi): Use gen_cmp_1.
24456         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24457         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24458         (@umonitor_<mode>): Rename from umonitor_<mode>.
24459         * config/i386/i386-expand.c (ix86_expand_copysign):
24460         Use gen_copysign3_const and gen_copysign3_var.
24461         (ix86_expand_xorsign): Use gen_xorsign3_1.
24462         (ix86_expand_branch): Use gen_sub3_carry_ccc,
24463         gen_sub3_carry_ccgz and gen_cmp1.
24464         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24465         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24466         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24467         (ix86_split_lshr): Ditto.
24468         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24469
24470 2019-06-18  Jason Merrill  <jason@redhat.com>
24471
24472         * tree.c (build_constructor): Add MEM_STAT_DECL.
24473
24474 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24475
24476         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24477         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24478         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24479         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24480         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24481         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24482         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24483         Use CC_NZC instead of CC.
24484         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24485         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24486         (aarch64_print_operand): Handle E_CC_NZCmode.
24487         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24488         of gen_set_clobber_cc.
24489
24490 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24491
24492         * config/aarch64/aarch64-sve.md: Tabify file.
24493
24494 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24495
24496         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24497         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24498         * config/aarch64/aarch64-sve.md: Use it.
24499
24500 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24501
24502         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24503         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24504         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24505         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24506         (aarch64_expand_sve_vec_cmp_int): Use it.
24507         (aarch64_expand_sve_vec_cmp_float): Likewise.
24508         * config/aarch64/aarch64-sve.md: Likewise throughout.
24509
24510 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24511             Kugan Vivekanandarajah  <kuganv@linaro.org>
24512
24513         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24514         (*cond_<optab><mode>_z): Fold into...
24515         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
24516         operand 4 can be tied to operand 0 (either inherently or via RA).
24517
24518 2019-06-18  Richard Biener  <rguenther@suse.de>
24519
24520         PR debug/90900
24521         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24522         as if optimized away.
24523
24524 2019-06-18  Tom de Vries  <tdevries@suse.de>
24525
24526         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24527         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24528         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24529         Rename to ...
24530         (define_insn "@set_softstack_<mode>"): ... this.
24531         (define_insn "omp_simt_enter_<mode>"): Rename to ...
24532         (define_insn "@omp_simt_enter_<mode>"): ... this.
24533         (define_insn "omp_simt_exit_<mode>"): Rename to ...
24534         (define_insn "@omp_simt_exit_<mode>"): ... this.
24535
24536 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
24537
24538         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24539         vf parameter.  Restore the previous iv step of nscalars_step,
24540         but give it iv_type rather than compare_type.  Tweak code order
24541         to match the comments.
24542         (vect_set_loop_condition_masked): Update accordingly.
24543         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24544         for iv_precision.  Tweak comment formatting.
24545
24546 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
24547
24548         * config/darwin.c: Strip trailing whitespace.
24549
24550 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
24551
24552         * config/darwin.c (darwin_emit_unwind_label): New default to false.
24553         (darwin_override_options): Set darwin_emit_unwind_label as needed.
24554
24555 2019-06-18  Martin Jambor  <mjambor@suse.cz>
24556
24557         PR ipa/90889
24558         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24559         caller does not have flag_ipa_cp set.
24560
24561 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
24562
24563         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24564         from "*fold_left_plus_<mode>", updated operands order.
24565         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24566         * internal-fn.c (mask_fold_left_direct): New define.
24567         (expand_mask_fold_left_optab_fn): Likewise.
24568         (direct_mask_fold_left_optab_supported_p): Likewise.
24569         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24570         * optabs.def (mask_fold_left_plus_optab): New optab.
24571         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24572         masked internal_fn for a reduction ifn.
24573         (vectorize_fold_left_reduction): Add support for masking reductions.
24574
24575 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
24576
24577         PR middle-end/80791
24578         * target.def (predict_doloop_p): New hook.
24579         * targhooks.h (default_predict_doloop_p): New declaration.
24580         * targhooks.c (default_predict_doloop_p): New function.
24581         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24582         * doc/tm.texi: Regenerate.
24583         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24584         (TARGET_PREDICT_DOLOOP_P): New macro.
24585         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24586
24587 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
24588
24589         * omp-low.c (struct omp_context): Add scan_inclusive field.
24590         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24591         if inclusive scan.
24592         (struct omplow_simd_context): Add lastlane member.
24593         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24594         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24595         1 or 2 argument.
24596         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24597         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24598         (lower_omp_scan): New function.
24599         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24600         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24601         check 3rd argument if present rather than 2nd.
24602         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24603         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24604         2-bit bitfield.
24605         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24606         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24607         than 2nd.
24608         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24609         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24610         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24611         init.
24612         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24613         IFN_GOMP_SIMD_LANE argument.
24614         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24615         encoded ->aux value.
24616         * tree-vect-stmts.c: Include attribs.h.
24617         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24618         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24619         functions.
24620         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24621         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24622
24623 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
24624
24625         PR target/62055
24626         * config/i386/i386.md (*nabstf2_1): New insn pattern.
24627         (*nabs<mode>2_1): Ditto.
24628         (nabs sse-reg splitter): New splitter.
24629         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24630
24631 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24632
24633         PR bootstrap/90873.
24634         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24635         TMR index check.
24636
24637 2019-06-17  Tom de Vries  <tdevries@suse.de>
24638
24639         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24640         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24641         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24642         ...
24643         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
24644         match_operand 0.
24645         (define_insn "omp_simt_enter_insn"): Rename to ...
24646         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
24647         match_operand 0, 1 and 2, as well as the unspec_volatile result.
24648         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24649         gen_omp_simt_enter_si.
24650         (define_expand "omp_simt_exit"): New.
24651         (define_insn "omp_simt_exit"): Rename to ...
24652         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
24653         match_operand 0.
24654
24655 2019-06-17  Matthew Green  <mrg@eterna.com.au>
24656             Maya Rashish  <coypu@sdf.org>
24657
24658         * config.gcc (aarch64*-*-netbsd*): New target.
24659         * config/aarch64/aarch64-netbsd.h: New file.
24660         * config/aarch64/t-aarch64-netbsd: Likewise.
24661
24662 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24663
24664         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24665         the access path from base to first VIEW_CONVERT_EXPR or
24666         BIT_FIELD_REF.
24667
24668 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
24669
24670         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24671         access path on BIT_FIELD_REFs.
24672
24673 2019-06-17  Martin Liska  <mliska@suse.cz>
24674
24675         PR ipa/90874
24676         * ipa-utils.h (odr_type_p): Remove dead code.
24677
24678 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24679
24680         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24681         alternative Solaris 11.4 format.
24682         * configure: Regenerate.
24683
24684 2019-06-17  Tom de Vries  <tdevries@suse.de>
24685
24686         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24687         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
24688         match_operand 0.
24689         (define_insn "call_value_insn"): Rename to ...
24690         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
24691         match_operand 0.
24692         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24693         DI.
24694
24695 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
24696
24697         PR middle-end/64242
24698         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
24699         frame clobbers and schedule block.
24700         (builtin_longjmp): Likewise.
24701
24702 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24703
24704         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24705         describe how to perform MSPABI compliant 64-bit shift.
24706         * config/msp430/msp430.md (ashldi3): New define_expand.
24707         (ashrdi3): New define_expand.
24708         (lshrdi3): New define_expand.
24709
24710 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24711
24712         * doc/sourcebuild.texi: Document new effective target keyword
24713         longlong64.
24714
24715 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
24716
24717         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24718         indirect_refs_may_alias_p): Revert accidental commits.
24719
24720         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24721         at the end of structures.
24722
24723 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
24724
24725         * config/darwin.c (machopic_indirect_call_target): Use renamed
24726         darwin_picsymbol_stubs to decide on output.
24727         (darwin_override_options): Handle darwin_picsymbol_stubs.
24728         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24729         (LD64_VERSION): Revise default.
24730         * config/darwin.opt: (mpic-symbol-stubs): New option.
24731         (darwin_picsymbol_stubs): New variable.
24732         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24733         rename to TARGET_MACHO_PICSYM_STUBS.
24734         * config/i386/i386.c (output_pic_addr_const): Likewise.
24735         * config/i386/i386.h Likewise.
24736         * config/rs6000/darwin.h: Likewise.
24737         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24738         darwin_picsymbol_stubs.
24739
24740 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
24741
24742         * config/darwin.opt (prebind, noprebind, seglinkedit,
24743         noseglinkedit): Add RejectNegative.
24744
24745 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
24746
24747         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24748         in my previous patch.
24749
24750 2019-06-16  Tom de Vries  <tdevries@suse.de>
24751
24752         PR tree-optimization/89376
24753         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24754
24755 2019-06-15  Maya Rashish  <coypu@sdf.org>
24756
24757         * doc/invoke.texi (Spec Files): Update location of the
24758         Fortran spec file.
24759
24760 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
24761
24762         * doc/extend.texi (Common Function Attributes): Clarify
24763         no_sanitize.  Fix grammar.
24764
24765 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
24766
24767         * tree-ssa-alias.c (alias_stats): Add
24768         nonoverlapping_component_refs_p_may_alias,
24769         nonoverlapping_component_refs_p_no_alias,
24770         nonoverlapping_component_refs_of_decl_p_may_alias,
24771         nonoverlapping_component_refs_of_decl_p_no_alias.
24772         (dump_alias_stats): Dump them.
24773         (nonoverlapping_component_refs_of_decl_p): Add stats.
24774         (nonoverlapping_component_refs_p): Add stats; do not stop on first
24775         ARRAY_REF.
24776
24777 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
24778
24779         * config/i386/i386.md (and<mode>3): Generate zero-extends for
24780         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24781         only.
24782         (*anddi3_doubleword): Split before reload. Merge with
24783         anddi->zext pre-reload splitter.
24784         (*andndi3_doubleword): Split before reload.
24785         (*<code>di3_doubleword): Ditto.
24786         (*one_cmpldi2_doubleword): Ditto.
24787
24788 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
24789
24790         PR middle-end/90779
24791         * gimplify.c: Include omp-offload.h and context.h.
24792         (gimplify_bind_expr): Add "omp declare target" attributes
24793         to static block scope variables inside of target region or target
24794         functions.
24795
24796 2019-06-15  Tom de Vries  <tdevries@suse.de>
24797
24798         PR tree-optimization/90009
24799         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24800         Return NULL if bb contains IFN_UNIQUE.
24801
24802 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
24803
24804         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24805         (un): New define_mode_attr.
24806         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24807         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
24808         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24809         merge into ...
24810         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
24811
24812 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
24813
24814         * config/darwin.opt: Add RejectNegative where needed, reorder
24815         and add minimal functional descriptions.
24816
24817 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24818
24819         PR rtl-optimization/90765
24820         * calls.c (update_stack_alignment_for_call): New function.
24821         (expand_call): Call update_stack_alignment_for_call when
24822         outgoing parameter is passed in the stack.
24823         (emit_library_call_value_1): Likewise.
24824         * function.c (locate_and_pad_parm): Don't update
24825         stack_alignment_needed and preferred_stack_boundary.
24826
24827 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
24828
24829         PR target/90877
24830         * config/i386/i386-features.c
24831         (dimode_scalar_chain::compute_convert_gain): Replace
24832         mmxsse_to_integer with sse_to_integer.
24833         * config/i386/i386.c (ix86_register_move_cost): Verify that
24834         moves between MMX and non-MMX units require secondary memory.
24835         Correct costs of moves between SSE and integer units.
24836         * config/i386/i386.h (processor_costs): Rename cost of moving
24837         SSE register to integer to sse_to_integer.  Rename cost of
24838
24839 2019-06-14  Matt Thomas  <matt@3am-software.com>
24840             Matthew Green  <mrg@eterna.com.au>
24841             Nick Hudson  <skrll@netbsd.org>
24842             Maya Rashish  <coypu@sdf.org>
24843             Richard Earnshaw  <rearnsha@arm.com>
24844
24845         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24846         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24847         * config/arm/netbsd-eabi.h: New file.
24848         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24849         redefining.
24850         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24851         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24852         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24853         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24854
24855 2019-06-14  Richard Biener  <rguenther@suse.de>
24856
24857         * tree-loop-distribution.c (classify_partition): Return
24858         whether a reduction appeared in all partitions and do not
24859         stop builtin detection because of this.
24860         (distribute_loop): Sort a non-builtin partition last if
24861         there's a reduction in all partitions and make sure the
24862         partition prevailing as last is not a builtin.
24863
24864 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
24865
24866         PR ipa/90401
24867         * ipa-prop.c (add_to_agg_contents_list): New function.
24868         (clobber_by_agg_contents_list_p): Likewise.
24869         (extract_mem_content): Likewise.
24870         (get_place_in_agg_contents_list): Delete.
24871         (determine_known_aggregate_parts): Renamed from
24872         determine_locally_known_aggregate_parts.  New parameter
24873         aa_walk_budget_p.
24874
24875 2019-06-13  Martin Sebor  <msebor@redhat.com>
24876
24877         PR tree-optimization/90662
24878         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24879         to the same type.
24880
24881 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
24882
24883         PR bootstrap/90873
24884         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24885         dbase is not TARGET_MEM_REF.
24886
24887 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
24888
24889         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24890         Update all uses.
24891         (and<mode>3): Use gen_extend_insn instead of indirect functions.
24892         Do not generate DImode extends for 32bit targets.
24893         (and->zext post-reload splitter): Use gen_extend_insn
24894         instead of indirect functions.
24895         (anddi->zext pre-reload splitter): New.
24896         (*zext<mode>_doubleword_and): Remove.
24897         (*zext<mode>_doubleword): Ditto.
24898         (*zextsi_doubleword): Dittto.
24899
24900 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
24901
24902         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24903         Use gen_sub3_insn instead of indirect function.
24904         (ix86_expand_ashl_const): Use gen_add2_insn instead of
24905         indirect function.
24906         (ix86_adjust_counter): Ditto.
24907
24908 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
24909             Lijia He  <helijia@linux.ibm.com>
24910
24911         PR tree-optimization/77820
24912         * tree-ssa-threadedge.c
24913         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24914         function.
24915         (thread_across_edge): Add call to
24916         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24917
24918 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
24919
24920         * config/darwin-driver.c (validate_macosx_version_min): New.
24921         (darwin_default_min_version): Cleanup and validate supplied version.
24922         (darwin_driver_init): Likewise and push cleaned version into opts.
24923
24924 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
24925
24926         PR tree-optimization/90869
24927         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24928         converts in MEM_REF referencing decl rather than view converts
24929         from decl type to MEM_REF type.
24930
24931 2019-06-13  Richard Biener  <rguenther@suse.de>
24932
24933         PR tree-optimization/90856
24934         * tree-sra.c (build_ref_for_model): Only use
24935         build_reconstructed_reference when address-spaces are the same.
24936
24937 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
24938
24939         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24940         wrap ei variable name in the declaration in ()s.
24941         (nvptx_single): Actually use mode_label variable.  Formatting fix.
24942
24943 2019-06-13  Richard Biener  <rguenther@suse.de>
24944
24945         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24946         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24947         also return the condition stmt.
24948         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24949         loop we can version and version that, reusing the loop version
24950         created by if-conversion instead of versioning again.
24951
24952 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
24953
24954         * gimple-loop-versioning.cc (prune_loop_conditions): Use
24955         may_contain_p.
24956         * tree-vrp (value_range_base::may_contain_p): Call into
24957         value_inside_range.
24958         (value_inside_range): Make private inside value_range_base class.
24959         Take min/max from *this.
24960         (range_includes_p): Remove.
24961         * tree-vrp.h (value_range_base): Add value_inside_range.
24962         (range_includes_p): Remove.
24963         (range_includes_zero_p): Call may_contain_p.
24964         * vr-values.c (compare_range_with_value): Same.
24965
24966 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
24967
24968         * doc/extend.texi (ARC Function Attributes): Update info.
24969
24970 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
24971
24972         PR tree-optimization/89713
24973         * doc/invoke.texi (-ffinite-loops): Document new option.
24974         * common.opt (-ffinite-loops): New option.
24975         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24976         IFN_GOACC_LOOP calls as necessary.
24977         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24978         is finite.
24979         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24980         IFN_GOACC_LOOP call is not used.
24981         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24982
24983 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24984
24985         PR target/88838
24986         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24987         compare_type is not with Pmode size, we will create an IV with
24988         Pmode size with truncated use (i.e. converted to the correct type).
24989         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24990         (vect_iv_limit_for_full_masking): New. Factored out of
24991         vect_set_loop_condition_masked.
24992         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24993         (vect_iv_limit_for_full_masking): Declare.
24994
24995 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
24996
24997         PR target/88834
24998         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24999         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
25000         (get_alias_ptr_type_for_ptr_address): Likewise.
25001         (add_iv_candidate_for_use): Add scaled index candidate if useful.
25002         * tree-ssa-address.c (preferred_mem_scale_factor): New.
25003         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
25004         allow_reg_index_p.
25005
25006 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25007
25008         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
25009
25010 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
25011
25012         * common/config/pru/pru-common.c: New file.
25013         * config.gcc: Add PRU target.
25014         * config/pru/alu-zext.md: New file.
25015         * config/pru/constraints.md: New file.
25016         * config/pru/predicates.md: New file.
25017         * config/pru/pru-opts.h: New file.
25018         * config/pru/pru-passes.c: New file.
25019         * config/pru/pru-pragma.c: New file.
25020         * config/pru/pru-protos.h: New file.
25021         * config/pru/pru.c: New file.
25022         * config/pru/pru.h: New file.
25023         * config/pru/pru.md: New file.
25024         * config/pru/pru.opt: New file.
25025         * config/pru/t-pru: New file.
25026         * doc/extend.texi: Document PRU pragmas.
25027         * doc/invoke.texi: Document PRU-specific options.
25028         * doc/md.texi: Document PRU asm constraints.
25029
25030 2019-06-12  Martin Sebor  <msebor@redhat.com>
25031
25032         PR middle-end/90676
25033         * tree-pretty-print.c (dump_mem_ref): New function.  Include
25034         MEM_REF type in output when different size than operand.
25035         (dump_generic_node): Move code to dump_mem_ref and call it.
25036
25037 2019-06-12  Martin Sebor  <msebor@redhat.com>
25038
25039         PR tree-optimization/90662
25040         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
25041         to arrays.
25042
25043 2019-06-12  Tom de Vries  <tdevries@suse.de>
25044
25045         PR tree-optimization/90009
25046         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
25047
25048 2019-06-12  Martin Liska  <mliska@suse.cz>
25049
25050         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
25051         the created map.
25052         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
25053         * mem-stats.h (mem_alloc_description::mem_alloc_description):
25054         Do not sanitize created maps.
25055
25056 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
25057
25058         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
25059         value_range::singleton_p.
25060         * tree-vrp.c (value_range_constant_singleton): Remove.
25061         * tree-vrp.h (value_range_constant_singleton): Remove.
25062         * vr-values.c (vr_values::singleton): Use
25063         value_range::singleton_p.
25064
25065 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25066
25067         PR target/90811
25068         * cfgexpand.c (align_local_variable): Add really_expand argument,
25069         don't SET_DECL_ALIGN if it is false.
25070         (add_stack_var): Add really_expand argument, pass it through to
25071         align_local_variable.
25072         (expand_one_stack_var_1): Pass true as really_expand to
25073         align_local_variable.
25074         (expand_one_ssa_partition): Pass true as really_expand to
25075         add_stack_var.
25076         (expand_one_var): Pass really_expand through to add_stack_var.
25077
25078 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
25079
25080         * config/arm/iterators.md (VABAL): New int iterator.
25081         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
25082         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
25083         UNSPEC_VABAL_U values.
25084
25085 2019-06-12  Martin Liska  <mliska@suse.cz>
25086
25087         * value-prof.c (stream_out_histogram_value): Only first value
25088         can't be negative.
25089
25090 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25091
25092         PR c/90760
25093         * symtab.c (symtab_node::set_section): Allow being called on aliases
25094         as long as they aren't analyzed yet.
25095
25096 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
25097
25098         * config/mips/mips.c (mips_final_postscan_insn): Modify call
25099         to `mips_set_text_contents_type' to indicate whether a
25100         non-debug insn follows.
25101
25102 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
25103
25104         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
25105         enabling -mpcrel by default.
25106         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
25107         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
25108         that the test against -mcpu=future is done first.  Then test if
25109         -mprefixed-addr is on for -mpcrel.
25110         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
25111
25112 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25113
25114         PR target/90811
25115         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
25116         instead of and.u%d.
25117
25118 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25119
25120         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
25121
25122 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
25123
25124         PR c++/90449 - add -Winaccessible-base option.
25125         * doc/invoke.texi (Winaccessible-base): Document.
25126
25127 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25128
25129         PR tree-optimization/62041
25130         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
25131
25132 2019-06-11  Jason Merrill  <jason@redhat.com>
25133
25134         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
25135         * tree.c (get_tree_code_name): Likewise.
25136         * print-tree.c (print_node): Only briefly print a node with an
25137         invalid code.
25138
25139 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25140
25141         PR bootstrap/90819
25142         * trans-mem.c (tm_memopt_compute_available): Add assertion
25143         that blocks is not empty.  Formatting fix.
25144
25145 2019-06-11  Martin Liska  <mliska@suse.cz>
25146
25147         PR c++/87847
25148         * hash-table.h: Extend create_gcc, add one parameter
25149         that is passed into hash_table::hash_table.
25150
25151 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
25152
25153         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
25154         New prototype.
25155         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
25156         Emit clobber also for non-sse operations.
25157         (ix86_split_fp_absneg_operator): New function.
25158         * config/i386/i386.md (SSEMODEF): New mode iterator.
25159         (ssevecmodef): New mode attribute.
25160         (<code>tf2): Use absneg code iterator.
25161         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
25162         Add three-operand AVX alternatives.
25163         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
25164         Use absneg code iterator and X87MODEF mode iterator.
25165         (absneg fp_reg non-sse splitter): Call absneg code iterator
25166         and X87MODEF mode iterator.
25167         (absneg general_reg non-sse splitter): Use absneg code iterator
25168         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
25169         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
25170         code iterator.  Add three-operand AVX alternative.
25171         (absneg sse_reg splitter): Use absneg code iterator
25172         and SSEMODEF mode iterator.  Handle AVX operands.
25173         (absneg fp_reg splitter): Use absneg code iterator
25174         and MODEF mode iterator.
25175         (absneg general_reg splitter): Merge splitters using MODEF mode
25176         iterator.  Use absneg code iterator.  Call
25177         ix86_split_fp_absneg_operator.
25178         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
25179         Do not enable for non-sse modes before reload.
25180         (CSGNMODE): Remove.
25181         (CSGNVMODE): Ditto.
25182         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
25183         ssevecmodef mode attribute instaed of CSGNVMODE.
25184         (copysign<mode>3_const): Ditto.
25185         (copysign<mode>3_var): Ditto.
25186         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
25187         Use absneg code iterator.  Simplify code using std::swap.
25188         * config/i386/predicates.md (absneg_operator): Remove.
25189
25190 2019-06-10  Martin Sebor  <msebor@redhat.com>
25191
25192         * gimple-fold.c (get_range_strlen): Update comment that didn't
25193         make it into r267503 or related commits.
25194
25195 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
25196
25197         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25198         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25199
25200 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
25201
25202         * tree.def (OMP_SCAN): New tree code.
25203         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25204         OMP_CLAUSE_EXCLUSIVE.
25205         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25206         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25207         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25208         OMP_CLAUSE_{IN,EX}CLUSIVE.
25209         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25210         * tree-nested.c (convert_nonlocal_reference_stmt,
25211         convert_local_reference_stmt, convert_gimple_call): Handle
25212         GIMPLE_OMP_SCAN.
25213         * tree-pretty-print.c (dump_omp_clause): Handle
25214         OMP_CLAUSE_{IN,EX}CLUSIVE.
25215         (dump_generic_node): Handle OMP_SCAN.
25216         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25217         * gimple.h (gomp_scan): New type.
25218         (is_a_helper <gomp_scan *>::test,
25219         is_a_helper <const gomp_scan *>::test): New templates.
25220         (gimple_build_omp_scan): Declare.
25221         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25222         gimple_omp_scan_set_clauses): New inline functions.
25223         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25224         * gimple.c (gimple_build_omp_scan): New function.
25225         (gimple_copy): Handle GIMPLE_OMP_SCAN.
25226         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25227         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25228         GIMPLE_OMP_TASKGROUP.
25229         (dump_gimple_omp_scan): New function.
25230         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25231         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25232         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25233         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25234         (is_gimple_stmt): Handle OMP_SCAN.
25235         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25236         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25237         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25238         mentioned in nested #pragma omp scan.  Handle
25239         OMP_CLAUSE_{IN,EX}CLUSIVE.
25240         (gimplify_expr): Handle OMP_SCAN.
25241         * omp-low.c (check_omp_nesting_restrictions): For parent context,
25242         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
25243         simd constructs.
25244         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25245         GIMPLE_OMP_SCAN.
25246
25247 2019-06-10  Martin Liska  <mliska@suse.cz>
25248
25249         * ipa-cp.c (ignore_edge_p): New function.
25250         (build_toporder_info): Use it.
25251         * ipa-inline.c (ignore_edge_p): New function.
25252         (inline_small_functions): Use it.
25253         * ipa-pure-const.c (ignore_edge_for_nothrow):
25254         Verify opt_for_fn for caller and callee.
25255         (ignore_edge_for_pure_const): Likewise.
25256         * ipa-reference.c (ignore_edge_p): Extend to check
25257         for opt_for_fn.
25258         * ipa-utils.c (searchc): Refactor.
25259         * ipa-utils.h: Fix coding style.
25260
25261 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25262
25263         * config/arc/arc.c (arc_rtx_costs): Update costs.
25264
25265 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25266
25267         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25268         (arc_split_ior): Likewise.
25269         (arc_check_mov_const): Likewise.
25270         (arc_split_mov_const): Likewise.
25271         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25272         (arc_rtx_costs): Replace check Crr with Cax constraint.
25273         (prepare_move_operands): Cleanup, remove unused code.
25274         (arc_split_ior): New function.
25275         (arc_check_ior_const): Likewise.
25276         (arc_split_mov_const): Likewise.
25277         (arc_check_mov_const): Likewise.
25278         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25279         in define_insn_and_split pattern.
25280         (iorsi3): Likewise.
25281         (mulsi3_v2): Add new matching variant.
25282         (andsi3_i): Cleanup pattern.
25283         (rotrsi3_cnt1): Update pattern.
25284         (rotrsi3_cnt8): New pattern.
25285         (ashlsi2_cnt8): Likewise.
25286         (ashlsi2_cnt16): Likewise.
25287         * config/arc/constraints.md (C0p): Update constraint.
25288         (Crr): Remove it.
25289         (C0x): New pattern.
25290         (Cax): New pattern.
25291
25292 2019-06-10  Martin Liska  <mliska@suse.cz>
25293
25294         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25295         Update coding style.
25296         (sem_item_optimizer::dump_cong_classes):
25297         Print how many items are in a non-singular class.  Improve
25298         coding style.
25299
25300 2019-06-10  Martin Liska  <mliska@suse.cz>
25301
25302         * value-prof.c (dump_histogram_value): Change dump format.
25303         (gimple_mod_subtract_transform): Remove legacy comment.
25304
25305 2019-06-10  Martin Liska  <mliska@suse.cz>
25306
25307         * value-prof.c (dump_histogram_value): Print histogram values
25308         only if present.
25309
25310 2019-06-10  Martin Liska  <mliska@suse.cz>
25311
25312         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25313         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25314         * ipa-profile.c (ipa_profile_generate_summary):
25315         Use get_most_common_single_value.
25316         * tree-profile.c (gimple_init_gcov_profiler):
25317         Instrument with __gcov_one_value_profiler_v2
25318         and __gcov_indirect_call_profiler_v4.
25319         * value-prof.c (dump_histogram_value):
25320         Print all values for HIST_TYPE_SINGLE_VALUE.
25321         (stream_out_histogram_value): Update assert for
25322         N values.
25323         (stream_in_histogram_value): Set number of
25324         counters for HIST_TYPE_SINGLE_VALUE.
25325         (get_most_common_single_value): New.
25326         (gimple_divmod_fixed_value_transform):
25327         Use get_most_common_single_value.
25328         (gimple_ic_transform): Likewise.
25329         (gimple_stringops_transform): Likewise.
25330         (gimple_find_values_to_profile): Set number
25331         of counters for HIST_TYPE_SINGLE_VALUE.
25332         * value-prof.h (get_most_common_single_value): New.
25333
25334 2019-06-10  Martin Liska  <mliska@suse.cz>
25335
25336         * hash-map.h: Pass default value to hash_table ctor.
25337         * hash-table.h: Add default value to call of a ctor.
25338
25339 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
25340
25341         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25342         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25343
25344 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
25345
25346         PR target/90751
25347         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25348         Call pa_output_function_label.
25349         (TARGET_ASM_FUNCTION_PROLOGUE): define.
25350         * config/pa/pa-protos.h (pa_output_function_label): Declare.
25351         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25352         to declaration.
25353         (pa_linux_output_function_prologue): Declare.
25354         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25355         (pa_output_function_label): New.
25356         (pa_output_function_prologue): Revise to use pa_output_function_label.
25357         (pa_linux_output_function_prologue): New.
25358         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25359
25360 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
25361
25362         * tree-vrp.h (value_range_base::intersect): New.
25363         (value_range::intersect_helper): Move from here...
25364         (value_range_base::intersect_helper): ...to here.
25365         * tree-vrp.c (value_range::intersect_helper): Rename to...
25366         (value_range_base::intersect_helper): ...this, and rewrite to
25367         return a value instead of modifying THIS in place.
25368         Also, move equivalence handling...
25369         (value_range::intersect): ...here, while calling intersect_helper.
25370         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25371         calling intersect.
25372         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25373         Same.
25374         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25375
25376 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
25377
25378         * Makefile.in (genprogerr): Add condmd.
25379         (genprog): Remove it here.
25380
25381 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
25382
25383         * doc/invoke.texi (AMD GCN Options): Add gfx906.
25384
25385 2019-06-07  Richard Biener  <rguenther@suse.de>
25386
25387         PR debug/90574
25388         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25389         that appear after user labels.
25390
25391 2019-06-07  Martin Liska  <mliska@suse.cz>
25392
25393         * cselib.c (cselib_init): Disable hash table
25394         sanitization.
25395         * hash-set.h: Pass new default argument to m_table.
25396         * hash-table.c: Add global variable with hash table
25397         sanitization limit.
25398         * hash-table.h (Allocator>::hash_table): Add new argument
25399         to ctor.
25400         (hashtab_chk_error): New.
25401         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25402         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25403         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25404
25405 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
25406
25407         * common.opt (flto-odr-type-merging): Ignore.
25408         * invoke.texi (-flto-odr-type-merging): Remove.
25409         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25410         (can_be_vtable_hashed_p): Remove.
25411         (hash_odr_vtable): Remove.
25412         (odr_vtable_hasher::hash): Remove.
25413         (types_same_for_odr): Remove.
25414         (types_odr_comparable): Remove.
25415         (odr_vtable_hasher::equal): Remove.
25416         (odr_vtable_hash_type, odr_vtable_hash): Remove.
25417         (add_type_duplicate): Do not synchronize vtable and name hashtables.
25418         (get_odr_type): Do not use vtable hash.
25419         (dump_odr_type): Remove commented out code.
25420         (build_type_inheritance_graph): Do not allocate vtable hash.
25421         (rebuild_type_inheritance_graph): Do not delete vtable hash.
25422         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25423         (odr_type_p): Likewise.
25424         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25425         test.
25426
25427 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
25428
25429         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25430         immediately after same_types_for_tbaa_p returns -1 and continue
25431         looking for possible exact match; if matching types are arrays
25432         watch for partial overlaps.
25433         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25434         (indirect_refs_may_alias_p): Do type based disambiguation first;
25435         update comment.
25436
25437 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
25438
25439         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25440
25441 2019-06-07  Martin Liska  <mliska@suse.cz>
25442
25443         * doc/invoke.texi: Remove param.
25444         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25445         Remove.
25446         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25447         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25448         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25449         * profile.c (instrument_values): Remove
25450         HIST_TYPE_INDIR_CALL_TOPN.
25451         * tree-profile.c (init_ic_make_global_vars):
25452         Always build __gcov_indirect_call only.
25453         (gimple_init_gcov_profiler): Remove usage
25454         of PARAM_INDIR_CALL_TOPN_PROFILE.
25455         (gimple_gen_ic_profiler): Likewise.
25456         * value-prof.c (dump_histogram_value): Likewise.
25457         (stream_in_histogram_value): Likewise.
25458         (gimple_indirect_call_to_profile): Likewise.
25459         (gimple_find_values_to_profile): Likewise.
25460         * value-prof.h (enum hist_type): Likewise.
25461
25462 2019-06-07  Martin Liska  <mliska@suse.cz>
25463
25464         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25465         function.
25466
25467 2019-06-07  Martin Liska  <mliska@suse.cz>
25468
25469         PR tree-optimization/78902
25470         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25471         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25472         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25473         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25474         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25475         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25476         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25477         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25478         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25479         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25480         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25481         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25482         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25483         New.
25484         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25485         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25486         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25487         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25488         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25489         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25490         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25491         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25492         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25493         warn_unused_result attribute.
25494         (BUILT_IN_STRDUP): Likewise.
25495         (BUILT_IN_STRNDUP): Likewise.
25496         (BUILT_IN_ALLOCA): Likewise.
25497         (BUILT_IN_CALLOC): Likewise.
25498         (BUILT_IN_MALLOC): Likewise.
25499         (BUILT_IN_REALLOC): Likewise.
25500
25501 2019-06-06  Jim Wilson  <jimw@sifive.com>
25502
25503         PR target/89955
25504         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25505         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25506         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25507
25508 2019-06-06  Martin Sebor  <msebor@redhat.com>
25509
25510         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25511         (handle_builtin_malloc): Remove trailing spaces.
25512         (handle_builtin_memset): Same.
25513         (handle_builtin_memcmp): Same.
25514         (compute_string_length): Same.
25515         (determine_min_objsize): Same.
25516         (handle_builtin_string_cmp): Same.
25517         (handle_char_store): Same.  Break up excessively long line.
25518
25519 2019-06-06  Martin Jambor  <mjambor@suse.cz>
25520
25521         * tree-sra.c (build_reconstructed_reference): Drop the alignment
25522         check.
25523
25524 2019-06-06  Martin Jambor  <mjambor@suse.cz>
25525
25526         * tree-sra.c (struct access): New field grp_same_access_path.
25527         (dump_access): Dump it.
25528         (build_reconstructed_reference): New function.
25529         (build_ref_for_model): Use it if possible.
25530         (path_comparable_for_same_access): New function.
25531         (same_access_path_p): Likewise.
25532         (sort_and_splice_var_accesses): Set the new flag.
25533         (analyze_access_subtree): Likewise.
25534         (propagate_subaccesses_across_link): Propagate zero value of the new
25535         flag down the access tree.
25536
25537 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
25538
25539         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25540         * config/gcn/gcn.opt (gpu_type): Add gfx906.
25541         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25542         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25543         Add gfx906.
25544
25545 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25546
25547         PR tree-optimization/90332
25548         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25549         Handle VALS containing two vectors.
25550         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25551         to...
25552         (@aarch64_combinez<mode>): ... This.
25553         (*aarch64_combinez_be<mode>): Rename to...
25554         (@aarch64_combinez_be<mode>): ... This.
25555         (vec_init<mode><Vhalf>): New define_expand.
25556         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25557
25558 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25559
25560         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25561         library functions only when not optimizing for size.
25562         (ashlsi3): Likewise.
25563         (ashrhi3): Likewise.
25564         (ashrsi3): Likewise.
25565         (lshrhi3): Likewise.
25566         (lshrsi3): Likewise.
25567
25568 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
25569
25570         PR rtl-optimization/88751
25571         * ira.c (ira): Use the number of the actually referenced registers
25572         when calculating the threshold.
25573
25574 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
25575
25576         * configure: Regenerate.
25577
25578 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25579
25580         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25581         register if it is in memory, so the shift can be emulated with a rotate
25582         instruction.
25583         (ashrhi3): Likewise.
25584         (lshrhi3): Likewise.
25585
25586 2019-06-06  Martin Liska  <mliska@suse.cz>
25587
25588         PR tree-optimization/87954
25589         * match.pd: Simplify mult where both arguments are 0 or 1.
25590
25591 2019-06-06  Richard Biener  <rguenther@suse.de>
25592
25593         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25594         put equivalences on UNDEFINED ranges.
25595         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25596         Make sure to drop defs of stmts added during simplification
25597         to VARYING.
25598
25599 2019-06-06  Richard Biener  <rguenther@suse.de>
25600
25601         * tree-ssa-structalias.c: Include tree-cfg.h.
25602         (make_heapvar): Do not make heap vars artificial.
25603         (find_func_aliases_for_builtin_call): Handle stack allocation
25604         functions.
25605         (find_func_aliases): Delay processing of simple enough returns
25606         in non-IPA mode.
25607         (set_uids_in_ptset): Adjust.
25608         (find_what_var_points_to): Likewise.
25609         (solve_constraints): Do not dump points-to sets here.
25610         (compute_points_to_sets): Post-process return statements,
25611         amending the escaped solution.  Dump points-to sets afterwards.
25612         (ipa_pta_execute): Dump points-to sets.
25613
25614 2019-06-06  Martin Liska  <mliska@suse.cz>
25615
25616         PR web/87933
25617         * doc/install.texi: Fix HTML headers and
25618         titles for 'Installing GCC' pages.
25619
25620 2019-06-06  Martin Liska  <mliska@suse.cz>
25621
25622         * ipa-icf-gimple.h (dump_message_1): Remove.
25623         (dump_message): Likewise.
25624         (return_false_with_message_1): Print also file.
25625         (return_false_with_msg): Likewise.
25626         (return_with_result): Likewise.
25627         (return_with_debug): Likewise.
25628         * ipa-icf.c (sem_function::equals_private): Remove call
25629         to dump_message.
25630
25631 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
25632
25633         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25634         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25635         memory operand for it.
25636         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25637
25638 2019-06-05  Martin Sebor  <msebor@redhat.com>
25639
25640         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25641         Adjust quoting and hyphenation.
25642         * convert.c (convert_to_real_1): Same.
25643         * gcc.c (driver_wrong_lang_callback): Same.
25644         (driver::handle_unrecognized_options): Same.
25645         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25646         * opts-common.c (cmdline_handle_error): Same.
25647         (read_cmdline_option): Same.
25648         * opts-global.c (complain_wrong_lang): Same.
25649         (print_ignored_options): Same.
25650         (handle_common_deferred_options): Same.
25651         * pretty-print.h: Same.
25652         * print-rtl.c (debug_bb_n_slim): Same.
25653         * sched-rgn.c (make_pass_sched_fusion): Same.
25654         * tree-cfg.c (verify_gimple_assign_unary): Same.
25655         (verify_gimple_label): Same.
25656         * tree-ssa-operands.c (verify_ssa_operands): Same.
25657         * varasm.c (do_assemble_alias): Same.
25658         (assemble_alias): Same.
25659
25660 2019-06-05  Richard Henderson  <rth@twiddle.net>
25661
25662         * config/alpha/alpha.c (direct_return): Move down after
25663         struct machine_function definition; use saved frame_size;
25664         return bool.
25665         (struct machine_function): Add sa_mask, sa_size, frame_size.
25666         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25667         (alpha_compute_frame_layout): ... new function.
25668         (TARGET_COMPUTE_FRAME_LAYOUT): New.
25669         (alpha_initial_elimination_offset): Use saved sa_size.
25670         (alpha_vms_initial_elimination_offset): Likewise.
25671         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25672         (alpha_expand_prologue): Use saved frame data.  Merge integer
25673         and fp register save loops.
25674         (alpha_expand_epilogue): Likewise.
25675         (alpha_start_function): Use saved frame data.
25676         * config/alpha/alpha-protos.h (direct_return): Update.
25677         (alpha_sa_size): Remove.
25678
25679 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
25680
25681         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25682         multiplication by a power-of-two value.
25683         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25684         and turn the modulo operation into a masking operation.
25685
25686 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
25687
25688         PR debug/90733
25689         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25690         with VOIDmode inner operands.
25691
25692 2019-06-05  Richard Biener  <rguenther@suse.de>
25693
25694         PR middle-end/90726
25695         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25696         turn an expression graph into a tree.
25697
25698 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
25699
25700         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25701         member.
25702         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25703         treat it like explicit monotonic schedule modifier.
25704         (expand_omp_for): Initialize has_lastprivate_conditional.
25705         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25706         schedule modifier.
25707
25708         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25709         references, lookup in in hash map MEM_REF operand instead of the
25710         MEM_REF itself.
25711         (lower_omp_1): When looking for lastprivate conditional assignments,
25712         handle MEM_REFs with REFERENCE_TYPE operands.
25713
25714         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25715         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25716         and references a VLA.  Handle references to non-VLAs if is_simd
25717         all privatization clauses like reductions.
25718         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25719         If omp_is_reference, use always omp simd arrays and set
25720         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25721         fails, emit reference initialization.
25722
25723 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
25724
25725         PR target/89803
25726         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25727         _mm_mask_fpclass_sd_mask): New intrinsics.
25728         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25729         * config/i386/i386-builtin.def
25730         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25731         New builtins.
25732         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25733         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25734         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25735         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25736         case QI_FTYPE_V2SF_INT): Ditto.
25737         * config/i386/sse.md
25738         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25739         Extended to insnstructions with mask operands.
25740
25741 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25742
25743         * config/rs6000/constraints.md (define_register_constraint "wp"):
25744         Delete.
25745         (define_register_constraint "wq"): Delete.
25746         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25747         (rs6000_init_hard_regno_mode_ok): Adjust.
25748         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25749         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25750         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25751         (define_mode_attr VSa): Delete.
25752         (define_mode_attr VSisa): New.
25753         (rest of file): Adjust.
25754         * doc/md.texi (Machine Constraints): Adjust.
25755
25756 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25757
25758         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25759         (define_attr "enabled"): Handle those new isa values.
25760
25761 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25762
25763         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25764         (define_mode_attr VSr5): Delete.
25765         (define_mode_attr VStype_sqrt): Delete.
25766         (define_mode_iterator VSX_SPDP): Delete.
25767         (define_mode_attr VS_spdp_res): Delete.
25768         (define_mode_attr VS_spdp_insn): Delete.
25769         (define_mode_attr VS_spdp_type): Delete.
25770         (*vsx_sqrt<mode>2): Adjust.
25771         (vsx_<VS_spdp_insn>): Delete, split to...
25772         (vsx_xscvdpsp): ... this.  New.  And...
25773         (vsx_xvcvspdp): ... this.  New.  And...
25774         (vsx_xvcvdpsp): ... this.  New.
25775
25776 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25777
25778         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25779         and V2DF.
25780         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25781         (rest of file): Adjust.
25782
25783 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25784
25785         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25786         (vsx_extract_<mode>_var): Ditto.
25787
25788 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25789
25790         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25791         with just "wa".
25792
25793 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25794
25795         * config/rs6000/constraints.md (define_register_constraint "ww"):
25796         Delete.
25797         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25798         (rs6000_init_hard_regno_mode_ok): Adjust.
25799         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25800         RS6000_CONSTRAINT_ww.
25801         * config/rs6000/rs6000.md: Adjust.
25802         * config/rs6000/vsx.md: Adjust.
25803         * doc/md.texi (Machine Constraints): Adjust.
25804
25805 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25806
25807         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25808         (define_mode_attr sd): New.
25809         (define_mode_attr s): New.
25810         (define_mode_attr Ftrad): Delete.
25811         (define_mode_attr Fvsx): Delete.
25812         (define_mode_attr Fs): Delete.
25813         (rest of file): Use the new mode attributes.
25814         * config.rs6000/vsx.md: Use the new mode attributes.
25815
25816 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25817
25818         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25819         with just "wa".
25820
25821 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25822
25823         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25824         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25825         used with VSX_B, VSX_D, or VSX_F, with just "wa".
25826
25827 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
25828
25829         PR target/78263
25830         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25831         C++ with strict ANSI requirements.
25832
25833 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
25834
25835         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25836         computations when step is 1.
25837
25838 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25839
25840         * config/rs6000/constraints.md (define_register_constraint "wf"):
25841         Delete.
25842         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25843         (rs6000_init_hard_regno_mode_ok): Adjust.
25844         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25845         RS6000_CONSTRAINT_wf.
25846         * config/rs6000/rs6000.md: Adjust.
25847         * config/rs6000/vsx.md: Adjust.
25848         * doc/md.texi (Machine Constraints): Adjust.
25849
25850 2019-06-04  Andrew Pinski  <apinski@marvell.com>
25851
25852         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25853         Fix ILP32 value.
25854
25855 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25856
25857         * config/rs6000/constraints.md (define_register_constraint "wd"):
25858         Delete.
25859         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25860         (rs6000_init_hard_regno_mode_ok): Adjust.
25861         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25862         RS6000_CONSTRAINT_wd.
25863         * config/rs6000/rs6000.md: Adjust.
25864         * config/rs6000/vsx.md: Adjust.
25865         * doc/md.texi (Machine Constraints): Adjust.
25866
25867 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25868
25869         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25870         (rest of file): Adjust.
25871
25872 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25873
25874         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25875         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25876         (vsx_splat_<mode>_reg): Adjust.
25877
25878 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25879
25880         * config/rs6000/constraints.md (define_register_constraint "ws"):
25881         Delete.
25882         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25883         (rs6000_init_hard_regno_mode_ok): Adjust.
25884         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25885         RS6000_CONSTRAINT_ws.
25886         * config/rs6000/rs6000.md: Adjust.
25887         * config/rs6000/vsx.md: Adjust.
25888         * doc/md.texi (Machine Constraints): Adjust.
25889
25890 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25891
25892         * config/rs6000/constraints.md (define_register_constraint "wv"):
25893         Delete.
25894         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25895         (rs6000_init_hard_regno_mode_ok): Adjust.
25896         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25897         RS6000_CONSTRAINT_wv.
25898         * config/rs6000/rs6000.md: Adjust.
25899         * config/rs6000/vsx.md: Adjust.
25900         * doc/md.texi (Machine Constraints): Adjust.
25901
25902 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
25903
25904         * config/rs6000/constraints.md (define_register_constraint "wi"):
25905         Delete.
25906         (define_register_constraint "wt"): Delete.
25907         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25908         (rs6000_init_hard_regno_mode_ok): Adjust.
25909         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25910         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25911         * config/rs6000/rs6000.md: Adjust.
25912         * config/rs6000/vsx.md: Adjust.
25913         * doc/md.texi (Machine Constraints): Adjust.
25914
25915 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25916
25917         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25918         const.
25919         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25920         default_elf_asm_output_external.
25921
25922 2019-06-04  Martin Liska  <mliska@suse.cz>
25923
25924         * ipa-icf.c (INCLUDE_LIST): Remove.
25925         (sem_item_optimizer::execute): Remove call to init_wpa.
25926         * ipa-icf.h (init_wpa): Remove.
25927
25928 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
25929
25930         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25931         conditional on combined for simd.
25932         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25933         member.
25934         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25935         constructs, don't remove lastprivate_conditional_map, but instead set
25936         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25937         to parent construct temporaries.
25938         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25939         like !ctx->lastprivate_conditional_map.
25940         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25941         use up->outer context instead of up.
25942         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25943         gimple_omp_for_combined_p.
25944         (expand_omp_for_static_nochunk): Likewise.
25945         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25946         probably moved over into expand_omp_for_generic rather than being copied
25947         there.
25948
25949 2019-06-04  Martin Liska  <mliska@suse.cz>
25950
25951         * value-prof.c (dump_histogram_value): Fix typo.
25952         (gimple_mod_subtract_transform): Likewise.
25953
25954 2019-06-04  Richard Biener  <rguenther@suse.de>
25955
25956         PR middle-end/90726
25957         * tree-chrec.c (chrec_contains_symbols): Add to visited.
25958         (tree_contains_chrecs): Likewise.
25959         (chrec_contains_symbols_defined_in_loop): Move here and avoid
25960         exponential behaivor from ...
25961         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25962         ... here.
25963         (expression_expensive_p): Avoid exponential behavior and compute
25964         expanded size, rejecting any expansion.
25965         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25966         (idx_contains_abnormal_ssa_name_p): Likewise.
25967         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25968         (contains_abnormal_ssa_name_p): Simplify and use
25969         walk_tree_without_duplicates.
25970
25971 2019-06-04  Richard Biener  <rguenther@suse.de>
25972
25973         PR tree-optimization/90738
25974         Revert
25975         2019-06-03  Richard Biener  <rguenther@suse.de>
25976
25977         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25978         full reference tree and record in ref->ref.
25979         (vn_reference_lookup_3): Pass in original ref to
25980         ao_ref_init_from_vn_reference.
25981         (vn_reference_lookup): Likewise.
25982         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25983         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25984         Handle non-decl bases in the original reference.
25985
25986 2019-06-04  Martin Liska  <mliska@suse.cz>
25987
25988         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25989         number of references.
25990         (sem_item_optimizer::do_congruence_step):
25991         (sem_item_optimizer::worklist_push): Dump how references
25992         a class has.
25993         (sem_item_optimizer::worklist_pop): Use heap.
25994         (sem_item_optimizer::process_cong_reduction): Likewise.
25995         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25996
25997 2019-06-04  Martin Liska  <mliska@suse.cz>
25998
25999         * ipa-icf.h (struct sem_usage_pair_hash): New.
26000         (sem_usage_pair_hash::hash): Likewise.
26001         (sem_usage_pair_hash::equal): Likewise.
26002         (struct sem_usage_hash): Likewise.
26003         * ipa-icf.c (sem_item::sem_item): Initialize
26004         referenced_by_count.
26005         (sem_item::add_reference): Register a reference
26006         in ref_map and not in target->usages.
26007         (sem_item::setup): Remove initialization of
26008         dead vectors.
26009         (sem_item::~sem_item): Remove usage of dead vectors.
26010         (sem_item::dump): Remove dump of references.
26011         (sem_item_optimizer::sem_item_optimizer): Initialize
26012         m_references.
26013         (sem_item_optimizer::read_section): Remove useless
26014         dump.
26015         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
26016         (sem_item_optimizer::build_graph): Pass m_references
26017         to ::add_reference.
26018         (sem_item_optimizer::verify_classes): Remove usage of dead
26019         vectors.
26020         (sem_item_optimizer::traverse_congruence_split): Return true
26021         when a class is split.
26022         (sem_item_optimizer::do_congruence_step_for_index): Use
26023         hash_map for look up of (sem_item *, index). That brings
26024         significant speed up.
26025         (sem_item_optimizer::do_congruence_step): Return true
26026         when a split is done.
26027         (congruence_class::is_class_used): Use referenced_by_count.
26028
26029 2019-06-04  Alan Modra  <amodra@gmail.com>
26030
26031         PR target/90689
26032         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
26033         error.
26034
26035 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26036
26037         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
26038         * config/rs6000/rs6000.c (direct_move_p): Adjust.
26039         (rs6000_secondary_reload_simple_move): Adjust.
26040         (rs6000_opt_masks): Neuter the "mfpgpr" option.
26041         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
26042         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
26043         comment.
26044         (power6x): Adjust.
26045         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
26046         (floatunssi<mode>2_lfiwzx): Adjust.
26047         (fix_trunc<mode>si2_stfiwx): Adjust.
26048         (fixuns_trunc<mode>si2_stfiwx): Adjust.
26049         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
26050         (mfpgpr): Mark as deprecated.
26051         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
26052         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
26053         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
26054
26055 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26056
26057         * config/rs6000/constraints.md (define_register_constraint "wg"):
26058         Delete.
26059         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26060         RS6000_CONSTRAINT_wg.
26061         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26062         (rs6000_init_hard_regno_mode_ok): Adjust.
26063         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
26064         Delete "wg" alternatives.
26065         * doc/md.texi (Machine Constraints): Adjust.
26066
26067 2019-06-03  Alan Modra  <amodra@gmail.com>
26068
26069         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
26070         (get_uncond_jump_length): Assert length less than INT_MAX and
26071         non-negative.
26072
26073 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26074
26075         PR middle-end/64242
26076         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
26077         block.
26078         (expand_builtin_nonlocal_goto): Likewise.
26079
26080 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26081
26082         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
26083         (aarch64_asm_output_external): Declare.
26084         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
26085         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
26086         (aarch64_asm_output_alias): New.
26087         (aarch64_asm_output_external): New.
26088         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
26089         (ASM_OUTPUT_EXTERNAL): Define.
26090
26091 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
26092         * tree-vrp.h (value_range_base::nonzero_p): New.
26093         (value_range_base::set_nonnull): Rename to...
26094         (value_range_base::set_nonzero): ...this.
26095         (value_range_base::set_null): Rename to...
26096         (value_range_base::set_zero): ...this.
26097         (value_range::set_nonnull): Remove.
26098         (value_range::set_null): Remove.
26099         * tree-vrp.c (range_is_null): Remove.
26100         (range_is_nonnull): Remove.
26101         (extract_range_from_binary_expr): Use value_range_base::*zero_p
26102         instead of range_is_*null.
26103         (extract_range_from_unary_expr): Same.
26104         (value_range_base::set_nonnull): Rename to...
26105         (value_range_base::set_nonzero): ...this.
26106         (value_range::set_nonnull): Remove.
26107         (value_range_base::set_null): Rename to...
26108         (value_range_base::set_zero): ...this.
26109         (value_range::set_null): Remove.
26110         (extract_range_from_binary_expr): Rename set_*null uses to
26111         set_*zero.
26112         (extract_range_from_unary_expr): Same.
26113         (union_helper): Same.
26114         * vr-values.c (get_value_range): Use set_*zero instead of
26115         set_*null.
26116         (vr_values::extract_range_from_binary_expr): Same.
26117         (vr_values::extract_range_basic): Same.
26118
26119 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26120
26121         PR driver/90684
26122         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
26123
26124 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26125
26126         * config/aarch64/iterators.md (MAX_OPP): New code attr.
26127         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
26128         Rename to...
26129         (aarch64_<su>abd<mode>_3): ... This.
26130         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
26131
26132 2019-06-03  Richard Biener  <rguenther@suse.de>
26133
26134         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26135         full reference tree and record in ref->ref.
26136         (vn_reference_lookup_3): Pass in original ref to
26137         ao_ref_init_from_vn_reference.
26138         (vn_reference_lookup): Likewise.
26139         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26140         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26141         Handle non-decl bases in the original reference.
26142
26143 2019-06-03  Martin Liska  <mliska@suse.cz>
26144
26145         * doc/generic.texi: Remove Java Trees.
26146
26147 2019-06-03  Martin Liska  <mliska@suse.cz>
26148
26149         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
26150         returns 0 when operands are equal.
26151
26152 2019-06-03  Richard Biener  <rguenther@suse.de>
26153
26154         PR tree-optimization/90716
26155         * tree-loop-distribution.c (destroy_loop): Process blocks in
26156         correct order.
26157
26158 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26159
26160         PR target/88837
26161         * vector-builder.h (vector_builder::count_dups): New method.
26162         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
26163         Declare prototype.
26164         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
26165         (vec_init<mode><Vel>): New pattern.
26166         * config/aarch64/aarch64.c (emit_insr): New function.
26167         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
26168         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
26169         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
26170         (aarch64_sve_expand_vector_init): Define two overloaded functions.
26171
26172 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26173
26174         PR tree-optimization/90681
26175         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
26176         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
26177         special case for SLP, but fail on non-groupped loads.
26178
26179 2019-06-03  Martin Liska  <mliska@suse.cz>
26180
26181         * cfg.c (debug): Use TDF_DETAILS for debug and
26182         print edge info only once.
26183
26184 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
26185
26186         PR fortran/90539
26187         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
26188
26189 2019-06-01  Martin Sebor  <msebor@redhat.com>
26190
26191         PR middle-end/90694
26192         * tree-pretty-print.c (dump_generic_node): Add parentheses.
26193
26194 2019-05-31  Jan Hubicka  <jh@suse.cz>
26195
26196         * alias.c: Include ipa-utils.h.
26197         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26198         * ipa-devirt.c (prevailing_odr_type): New.
26199         * ipa-utils.h (previaling_odr_type): Declare.
26200
26201 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26202             Hongtao Liu  <hongtao.liu@intel.com>
26203
26204         PR target/89355
26205         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26206         NOTE_INSN_DELETED_LABEL check.
26207
26208 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
26209             Robert Suchanek  <robert.suchanek@mips.com>
26210
26211         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26212         and 3rd operands of the fmadd/fmsub/maddv builtin.
26213
26214 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26215
26216         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26217         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26218         on OMP_SIMD if not nested inside of worksharing loop that also has
26219         lastprivate conditional clause for the same decl.
26220         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26221         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26222         on simd.
26223         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
26224         on simd construct.
26225         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26226         on simd construct.
26227         (lower_lastprivate_clauses): Likewise.
26228         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26229         calling lower_rec_input_clauses.
26230         (lower_omp_for): Likewise.
26231         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26232         clause on simd construct.
26233         * omp-expand.c (expand_omp_simd): Initialize cond_var if
26234         OMP_CLAUSE__CONDTEMP_ clause is present.
26235
26236         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26237         ivar and lvar.
26238
26239 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
26240
26241         PR c/43673
26242         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26243         TEX_D32, TEX_D64 or TEX_D128.
26244
26245 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26246
26247         * match.pd (~(vec?cst1:cst2)): New transformation.
26248
26249 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26250
26251         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26252         ((size_t)(A /[ex] B) CMP C): New transformation.
26253
26254 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
26255
26256         * doc/md.texi: Document define_insn_and_rewrite.
26257         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26258         * gensupport.c (queue_elem): Update comment.
26259         (replace_operands_with_dups): New function.
26260         (gen_rewrite_sequence): Likewise.
26261         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26262         * read-rtl.c (apply_subst_iterator): Likewise.
26263         (add_condition_to_rtx, named_rtx_p): Likewise.
26264         (rtx_reader::read_rtx_operand): Likewise.
26265         * config/aarch64/aarch64-sve.md
26266         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26267         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26268         define_insn_and_rewrite.
26269         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26270         Remove separate define_split.
26271
26272 2019-05-31  Jan Hubicka  <jh@suse.cz>
26273
26274         * tree-ssa-alias.c (type_has_components_p): New function.
26275         (aliasing_component_refs_p): Use it.
26276
26277 2019-05-31  Martin Liska  <mliska@suse.cz>
26278
26279         * gdbhooks.py: Add const_tree to TreePrinter.
26280
26281 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
26282
26283         PR debug/86964
26284         * common.opt (feliminate-unused-debug-symbols): Enable by default.
26285         * doc/invoke.texi (Debugging Options): Document new default of
26286         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26287
26288 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26289
26290         PR tree-optimization/90671
26291         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26292         template_block used to be empty on the first call, don't use
26293         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26294         seq with bb_seq and set it with set_bb_seq.
26295
26296 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
26297
26298         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26299
26300 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26301             Michael Meissner  <meissner@linux.ibm.com>
26302
26303         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26304         (prefixed_mem_operand): Likewise.
26305         (non_prefixed_mem_operand): Likewise.
26306         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26307         prototype.
26308         * config/rs6000/rs6000.c (print_operand_address): Handle
26309         PC-relative addresses.
26310         (mode_supports_prefixed_address_p): New function.
26311         (rs6000_prefixed_address): New function.
26312         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26313         (SYMBOL_REF_PCREL_P): Likewise.
26314
26315 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26316
26317         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26318         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26319         (gimplify_omp_for): If worksharing loop with lastprivate conditional
26320         is nested inside of parallel region, add _condtemp_ clause to both.
26321         * tree-nested.c (convert_nonlocal_omp_clauses,
26322         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26323         assertion failure.
26324         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26325         member.
26326         * omp-general.c (omp_extract_for_data): Compute it.
26327         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26328         (lower_rec_input_clauses): Likewise.
26329         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26330         clause is already present, just add one further one after it.
26331         (lower_lastprivate_clauses): Handle cond_ptr with array type.
26332         (lower_send_shared_vars): Clear _condtemp_ vars.
26333         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26334         or section or taskgroup.
26335         * omp-expand.c (determine_parallel_type): Disallow combining only if
26336         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
26337         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26338         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26339         expand_omp_for_static_chunk, expand_omp_for): Use
26340         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26341         determine if a special set of API routines are needed and if condtemp
26342         needs to be initialized, while always initialize cond_var if
26343         fd->lastprivate_conditional is non-zero.
26344
26345 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26346             Michael Meissner  <meissner@linux.ibm.com>
26347
26348         * config/rs6000/constraints.md (eI): New constraint.
26349         * config/rs6000/predicates.md (cint34_operand): New predicate.
26350         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26351         (SIGNED_34BIT_OFFSET_P): Likewise.
26352         * doc/md.texi (eI): Document constraint.
26353
26354 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
26355
26356         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26357
26358 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26359             Michael Meissner  <meissner@linux.ibm.com>
26360
26361         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26362         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26363         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26364         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26365         (OTHER_FUTURE_MASKS): Likewise.
26366         (POWERPC_MASKS): Likewise.
26367         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26368         specified without -mprefixed-addr or -mcpu=future.  Error if
26369         -mprefixed-addr is specified without -mcpu=future.
26370         (rs6000_opt_masks): Add entry for prefixed-addr.
26371         * rs6000.opt (mprefixed-addr): New option.
26372
26373 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
26374
26375         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26376         cfun->is_thunk check.
26377
26378 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26379
26380         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26381         to length.
26382
26383 2019-05-30  Martin Liska  <mliska@suse.cz>
26384
26385         * gdbinit.in: Fix 'ptc' command.  Add trt
26386         that prints TREE_TYPE($).
26387
26388 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
26389             Alan Modra  <amodra@gmail.com>
26390
26391         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26392         calls here...
26393         (rs6000_indirect_call_template_1): ...and here.
26394         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
26395         plt16_ha, plt16_lo, mtctr indirect calls.  Use
26396         rs6000_pltseq_enum.
26397         (rs6000_decl_ok_for_sibcall): New function.
26398         (rs6000_function_ok_for_sibcall): Refactor.
26399         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26400         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26401         when pcrel.  Reorganize.
26402         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26403         * rs6000.h (rs6000_pltseq_enum): New enum.
26404         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26405         (*pltseq_tocsave): Use rs6000_pltseq_enum.
26406         (*pltseq_plt16_ha): Likewise.
26407         (*pltseq_plt16_lo): Likewise.
26408         (*pltseq_mtctr): Likewise.
26409         (*pltseq_plt_pcrel): New insn.
26410         (*call_local_aix): Handle @notoc calls.
26411         (*call_value_local_aix): Likewise.
26412         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26413         (*call_value_nonlocal_aix): Likewise.
26414         (*call_indirect_pcrel): New insn.
26415         (*call_value_indirect_pcrel): Likewise.
26416
26417 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
26418
26419         * config/i386/sse.md (*save_multiple<mode>): Rename from
26420         save_multiple<mode>.
26421         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26422         (*restore_multiple_and_return<mode>): Rename from
26423         restore_multiple_and_return<mode>.
26424         (*restore_multiple_leave_return<mode>): Rename from
26425         restore_multiple_leave_return<mode>.
26426
26427 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
26428
26429         * config.gcc (rx-*-linux*): New target.
26430         * config/rx/elf.opt: New file.
26431         * config/rx/linux.h: Likewise.
26432         * config/rx/t-linux: Likewise.
26433         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26434         make it zero.
26435         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26436         (ASM_APP_OFF): Likewise.
26437         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26438         moved elsewhere.
26439
26440 2019-05-29  Jan Hubicka  <jh@suse.cz>
26441
26442         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26443         variants are pointer equivalent.
26444
26445 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26446
26447         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26448         * config/aarch64/aarch64-sve2.md: New file.
26449         (<u>avg<mode>3_floor): New pattern.
26450         (<u>avg<mode>3_ceil): Likewise.
26451         (*<sur>h<addsub><mode>): Likewise.
26452         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26453         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26454
26455 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
26456
26457         PR bootstrap/90543
26458         * optc-save-gen.awk: In cl_optimization_print, use correct condition
26459         for var_opt_string printing.  In cl_optimization_print_diff, print
26460         (null) instead of invoking undefined behavior if one of the
26461         var_opt_string pointers is NULL and use && instead of first || in the
26462         guarding condition.  For var_target_other options, handle const char *
26463         target variables similarly to const char * optimize node variables.
26464
26465 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
26466
26467         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26468         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26469         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26470         Add autib1716 and pacib1716 initialisation.
26471         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26472         for autib1716 and pacib1716.
26473         * config/aarch64/aarch64-protos.h (aarch64_key_type,
26474         aarch64_post_cfi_startproc): Define.
26475         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26476         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26477         aarch64_handle_pac_ret_protection): Set default sign key to A.
26478         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26479         aarch64_expand_prologue): Add check for b-key.
26480         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26481         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26482         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26483         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26484         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26485         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26486         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26487         * config/aarch64/aarch64.md (do_return): Add check for b-key.
26488         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26489         pauth_hint_num_a with pauth_hint_num.
26490         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26491         pauth_hint_num_a with pauth_hint_num.
26492         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26493         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26494         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26495         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26496         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26497         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26498         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26499         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26500         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26501         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26502         UNSPEC_AUTIA1716 respectively.
26503         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26504         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26505         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26506         * doc/invoke.texi (-mbranch-protection): Add b-key type.
26507         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26508         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26509
26510 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
26511
26512         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26513         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26514         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26515         explicit clause on combined parallel into implicit shared clause.
26516         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26517         and firstprivate if the decl has one too from combined parallel to
26518         the worksharing construct.
26519
26520 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
26521             Michael Meissner  <meissner@linux.ibm.com>
26522
26523         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26524
26525 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
26526
26527         * rtl.h (LABEL_REF_P): New #define.
26528
26529 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
26530
26531         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26532
26533 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26534
26535         * internal-fn.c: Marked mask_load_direct as vectorizable.
26536         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26537         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26538         combined even if masks different with allow_slp_p param.
26539         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26540         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26541         dissolve SLP-only vectorizable groups when SLP has been discarded.
26542         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26543         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26544         masks.
26545         (vect_build_slp_tree_1): Fixed comment typo.
26546         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26547         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26548         loads for SLP only.
26549         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26550         vectorizable.
26551         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26552
26553 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26554
26555         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26556         Remove obsolete use_thunk reference.
26557         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26558         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26559         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26560         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26561         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26562         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26563         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26564         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26565         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26566
26567 2019-05-28  Nathan Sidwell  <nathan@acm.org>
26568
26569         * tree.h (IDENTIFIER_ANON_P): New.
26570         (anon_aggrname_format, anon_aggname_p): Don't declare.
26571         (make_anon_name): Declare.
26572         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26573         (hash_tree): Likewise.
26574         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26575         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26576         (anon_cnt, make_anon_name): New.
26577
26578 2019-05-28  Martin Liska  <mliska@suse.cz>
26579
26580         PR other/90315
26581         * opts-global.c (decode_options): Print help for all
26582         help_option_arguments.
26583         * opts.c (print_help): Add new argument.
26584         (common_handle_option): Remember all values into
26585         help_option_arguments.
26586         * opts.h (print_help): Add new argument.
26587
26588 2019-05-28  Martin Liska  <mliska@suse.cz>
26589
26590         PR ipa/90555
26591         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26592         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26593         (func_checker::compare_bb): Call compare_loops.
26594
26595 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
26596
26597         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26598         on sections construct.
26599         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26600         construct.
26601         (lower_omp_sections): Handle lastprivate conditional.
26602         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26603         lastprivate_conditional_map.
26604         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26605
26606         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26607         critical, taskgroup and section regions when looking for a region
26608         with non-NULL lastprivate_conditional_map.
26609
26610 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
26611
26612         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26613         (*ix86_gen_sub3): Ditto.
26614         (*ix86_gen_sub3_carry): Ditto.
26615         (*ix86_gen_one_cmpl2): Ditto.
26616         (*ix86_gen_andsp): Ditto.
26617         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26618         (gen_and2_insn): New static function.
26619         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26620         Use gen_add3_insn instead of ix86_gen_add3.
26621         (ix86_expand_split_stack_prologue): Use gen_add2_insn
26622         instead of ix86_gen_add3.
26623         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26624         Use gen_sub3_insn instead of ix86_gen_sub3.
26625         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26626         instead of ix86_gen_add3.
26627         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26628         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
26629         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26630         * config/i386/i386-options.c (ix86_option_override_internal):
26631         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26632         ix86_gen_one_cmpl2 and ix86_gen_andsp.
26633
26634 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26635
26636         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26637         and DW_OP_GNU_const_index opcodes.
26638
26639 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
26640
26641         * config/i386/i386.h (STACK_SIZE_MODE): Define.
26642
26643 2019-05-27  Richard Biener  <rguenther@suse.de>
26644
26645         PR tree-optimization/90637
26646         * tree-ssa-sink.c (statement_sink_location): Honor the
26647         computed sink location for single-uses.
26648
26649 2019-05-27  Richard Biener  <rguenther@suse.de>
26650
26651         PR middle-end/90610
26652         * match.pd (vec_perm): Avoid clobbering op0 when not generating
26653         a bit-insert.
26654
26655 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26656
26657         * config/i386/i386.md (@sub<mode>3_carry): Rename
26658         from sub<mode>3_carry.
26659         (@leave_<mode>): New expander.
26660         (*leave): Rename from leave.
26661         (*leave_rex64): Rename from leave_rex64.
26662         (@monitorx_<mode>): Rename from monitorx_<mode>.
26663         (@clzero_<mode>): Rename from clzero_<mode>.
26664         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26665         from sse3_monitor_<mode>.
26666         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26667         (*ix86_gen_leave): Ditto.
26668         (*ix86_gen_monitor): Ditto.
26669         (*ix86_gen_monitorx): Ditto.
26670         (*ix86_gen_clzero): Ditto.
26671         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26672         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26673         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26674         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26675         Use gen_sse3_monitor instead of ix86_gen_monitor.
26676         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26677         instead of ix86_gen_monitorx.
26678         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26679         instead of ix86_gen_clzero.
26680         * config/i386/i386-options.c (ix86_option_override_internal):
26681         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26682         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26683
26684 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26685
26686         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26687         Rename from tls_global_dynamic_64_<mode>.
26688         (@tls_local_dynamic_base_64_<mode>): Rename from
26689         tls_local_dynamic_base_64_<mode>.
26690         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26691         Remove indirect function.
26692         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26693         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26694         instead of ix86_gen_tls_global_dynamic_64.
26695         Use gen_tls_local_dynamic_base_64 instead of
26696         ix86_gen_tls_local_dynamic_base_64.
26697         * config/i386/i386-options.c (ix86_option_override_internal):
26698         Do not initialize ix86_gen_tls_global_dynamic_64 and
26699         ix86_gen_tls_local_dynamic_base_64.
26700
26701 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
26702
26703         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26704         Rename from pro_epilogue_adjust_stack_<mode>_add.
26705         (@pro_epilogue_adjust_stack_sub_<mode>)
26706         Rename from pro_epilogue_adjust_stack_<mode>_sub.
26707         (@allocate_stack_worker_probe_<mode>):
26708         Rename from allocate_stack_worker_probe_<mode>.
26709         (allocate_stack): Use gen_allocate_stack_worker_probe.
26710         (probe_stack): Use gen_probe_stack_1.
26711         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26712         (@adjust_stack_and_probe_<mode>): Rename from
26713         adjust_stack_and_probe<mode>.
26714         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26715         (stack_protect_set): Use gen_stack_protect_set_1.
26716         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26717         (stack_protect_test): Use gen_stack_protect_test_1.
26718         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26719         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26720         Remove indirect function.
26721         (*ix86_gen_adjust_stack_and_probe): Ditto.
26722         (*ix86_gen_probe_stack_range): Ditto.
26723         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26724         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26725         (ix86_adjust_stack_and_probe_stack_clash): Use
26726         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26727         (ix86_adjust_stack_and_probe): Ditto.
26728         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26729         of ix86_gen_probe_stack_range.
26730         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26731         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26732         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26733         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
26734         CODE_FOR_stack_protect_test_{si,di}.
26735         * config/i386/i386-options.c (ix86_option_override_internal):
26736         Do not initialize ix86_gen_allocate_stack_worker,
26737         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26738
26739 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
26740
26741         * doc/invoke.texi (Link Options): Many editorial changes around
26742         -flinker-output.
26743
26744 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26745
26746         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26747         pre-Solaris 11 referene and most Studio compiler details.
26748
26749 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
26750
26751         PR target/90530
26752         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26753         DImode to SImode in floating-point registers on 64-bit target.
26754         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26755         register_operand in xmpyu patterns.
26756
26757 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26758
26759         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26760         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26761         OMP_CLAUSE__REDUCTEMP_.
26762         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26763         OMP_CLAUSE__CONDTEMP_.
26764         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26765         * tree-pretty-print.c (dump_omp_clause): Likewise.
26766         * tree-nested.c (convert_nonlocal_omp_clauses,
26767         convert_local_omp_clauses): Likewise.
26768         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26769         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
26770         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26771         on OMP_FOR.
26772         (gimplify_omp_for): Warn and disable conditional modifier from
26773         lastprivate on loop iterators.
26774         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26775         member.
26776         * omp-general.c (omp_extract_for_data): Initialize it.
26777         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26778         member.
26779         (delete_omp_context): Delete it.
26780         (lower_lastprivate_conditional_clauses): New function.
26781         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26782         handle lastprivate conditional clauses.
26783         (lower_reduction_clauses): Add CLIST argument, emit it into
26784         the critical section if any.
26785         (lower_omp_sections): Adjust lower_lastprivate_clauses and
26786         lower_reduction_clauses callers.
26787         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26788         to lower_lastprivate_clauses.
26789         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26790         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26791         clist into a critical section if not emitted there already by
26792         lower_reduction_clauses.
26793         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26794         callers.
26795         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26796         conditional variables.
26797         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26798         clause is present.
26799         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26800         expand_omp_for_static_chunk): Handle lastprivate conditional.
26801         (expand_omp_for): Handle fd.lastprivate_conditional like
26802         fd.have_reductemp.
26803
26804 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26805
26806         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26807         kernel does not exit cleanly.
26808         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26809
26810 2019-05-24  Jason Merrill  <jason@redhat.com>
26811
26812         Revert:
26813         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26814
26815 2019-05-24  Richard Biener  <rguenther@suse.de>
26816
26817         PR testsuite/90607
26818         * tree-loop-distribution.c (struct partition): Add location
26819         member.
26820         (partition_alloc): Initialize all fields.
26821         (generate_memset_builtin): Use the location recorded in the
26822         partition for the generated call.
26823         (generate_memcpy_builtin): Likewise.
26824         (classify_partition): Record the location of a single store
26825         as location for the partition.
26826
26827 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
26828
26829         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26830         for lo-part.
26831
26832 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
26833
26834         PR target/90588
26835         * common/config/aarch64/aarch64-common.c
26836         (aarch64_rewrite_selected_cpu): Change local temporary variable
26837         type from unsigned long to uint64_t.
26838         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26839         aarch64_get_extension_string_for_isa_flags): Change declaration to
26840         match new definition by replacing unsigned long with uint64_t.
26841
26842 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
26843
26844         PR target/90568
26845         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26846         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
26847         Handle stack_protect_test_<mode> codegen similarly to corresponding
26848         sub instruction.
26849
26850 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
26851
26852         * config/i386/darwin.h: Reject -mfentry*.
26853         * doc/sourcebuild.texi: Document mfentry target support.
26854
26855 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26856
26857         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26858         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
26859         false for PC-relative functions.
26860         (rs6000_output_function_prologue): Change called function name to
26861         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
26862         name,1" for PC-relative functions.
26863         (rs6000_elf_declare_function_name): Change called function name to
26864         rs6000_global_entry_point_prologue_needed_p.
26865
26866 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
26867
26868         PR target/90552
26869         * config/i386/i386.c (gen_rtx_cost):
26870         Use ix86_tune_cost instead of ix86_cost.
26871
26872 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26873             Michael Meissner  <meissner@linux.ibm.com>
26874             Segher Boessenkool  <segher@kernel.crashing.org>
26875
26876         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26877         OPTION_MASK_PCREL.
26878         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26879         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26880         (rs6000_fndecl_pcrel_p): Likewise.
26881         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26882         error if -mpcrel is requested without -mcpu=future.
26883         (rs6000_opt_masks): Add entry for pcrel.
26884         (rs6000_fndecl_pcrel_p): New function.
26885         (rs6000_pcrel_p): Likewise.
26886         * config/rs6000/rs6000.opt (mpcrel): New option.
26887         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26888
26889 2019-05-23  Jan Hubicka  <jh@suse.cz>
26890             Martin Liska  <mliska@suse.cz>
26891
26892         PR tree-optimization/90576
26893         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26894         poly_int_tree_p.
26895         (aliasing_component_refs_p): Fix three way size compare conditional;
26896         give up earlier in case we can not decide on equivalence.
26897
26898 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
26899             Michael Meissner  <meissner@linux.ibm.com>
26900             Segher Boessenkool  <segher@kernel.crashing.org>
26901
26902         * config.gcc: Add future cpu.
26903         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26904         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26905         #define.
26906         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26907         (RS6000_CPU): New instantiation for future cpu.
26908         * config/rs6000/rs6000-opts.h (enum processor_type): Add
26909         PROCESSOR_FUTURE.
26910         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26911         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26912         * config/rs6000/rs6000-tables.opt: Regenerate.
26913         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26914         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26915         (rs6000_machine_from_flags): Handle future cpu.
26916         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26917         PROCESSOR_POWER9 for now.
26918         (rs6000_adjust_cost): Likewise.
26919         (rs6000_issue_rate): Likewise.
26920         (rs6000_register_move_cost): Likewise.
26921         (rs6000_opt_masks): Add entry for future.
26922         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26923         (MASK_FUTURE): New #define.
26924         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26925         * config/rs6000/rs6000.opt (mfuture): New target option.
26926         * doc/invoke.texi (mcpu): Add future cpu.
26927
26928 2019-05-23  Martin Liska  <mliska@suse.cz>
26929
26930         PR c++/90587
26931         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26932         operation points to a temporary (pointed via tree_to_wide_ref)
26933         that is out of scope after the &.
26934
26935 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
26936
26937         PR c++/90592
26938         * doc/extend.texi (Function Names): Add missing word.
26939
26940 2019-05-23  Richard Biener  <rguenther@suse.de>
26941
26942         PR tree-optimization/88440
26943         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26944         at -O[2s]+.
26945         * tree-loop-distribution.c (generate_memset_builtin): Fold the
26946         generated call.
26947         (generate_memcpy_builtin): Likewise.
26948         (distribute_loop): Pass in whether to only distribute patterns.
26949         (prepare_perfect_loop_nest): Also allow size optimization.
26950         (pass_loop_distribution::execute): When optimizing a loop
26951         nest for size allow pattern replacement.
26952
26953 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
26954
26955         PR target/90568
26956         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26957         of xor.
26958
26959 2019-05-23  Martin Liska  <mliska@suse.cz>
26960
26961         PR sanitizer/90570
26962         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26963         expression similarly to gimplify_decl_expr.
26964
26965 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26966
26967         * cse.c (cse_dump_path): s/dump_file/f.
26968
26969 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
26970
26971         PR c++/90462
26972         * diagnostic-format-json.cc: Include "selftest.h".
26973         (json_from_expanded_location): Only add "file" key for non-NULL
26974         file strings.
26975         (json_from_location_range): Don't add "start" and "finish"
26976         children if they are UNKNOWN_LOCATION.
26977         (selftest::test_unknown_location): New selftest.
26978         (selftest::test_bad_endpoints): New selftest.
26979         (selftest::diagnostic_format_json_cc_tests): New function.
26980         * json.cc (json::object::get): New function.
26981         (selftest::test_object_get): New selftest.
26982         (selftest::json_cc_tests): Call it.
26983         * json.h (json::object::get): New decl.
26984         * selftest-run-tests.c (selftest::run_tests): Call
26985         selftest::diagnostic_format_json_cc_tests.
26986         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26987         decl.
26988
26989 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
26990             Andrew Stubbs  <amd@codesourcery.com>
26991
26992         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26993         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26994         (kernel): Rename to...
26995         (main_kernel): ... this.
26996         (load_image): Load _init_array and _fini_array kernels.
26997         (run): Add argument for kernel to run.
26998         (main): Run init_array_kernel before main_kernel, and
26999         fini_array_kernel after.
27000         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
27001         amdgpu_hsa_kernel attribute on functions.
27002         (gcn_disable_constructors): Delete.
27003         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
27004         * config/gcn/crt0.c (size_t): Define.
27005         (_init_array, _fini_array): New.
27006         (__preinit_array_start, __preinit_array_end,
27007         __init_array_start, __init_array_end,
27008         __fini_array_start, __fini_array_end): Declare weak references.
27009
27010 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
27011
27012         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
27013
27014 2019-05-22  Jason Merrill  <jason@redhat.com>
27015
27016         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27017
27018 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
27019
27020         PR target/88483
27021         * config/i386/i386-options.c (ix86_init_machine_status): Set
27022         stack_frame_required to true.
27023         * config/i386/i386.c (ix86_get_frame_size): New function.
27024         (ix86_frame_pointer_required): Replace get_frame_size with
27025         ix86_get_frame_size.
27026         (ix86_compute_frame_layout): Likewise.
27027         (ix86_find_max_used_stack_alignment): Changed to void.  Set
27028         stack_frame_required.
27029         (ix86_finalize_stack_frame_flags): Always call
27030         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
27031         ix86_get_frame_size.
27032         * config/i386/i386.h (machine_function): Add stack_frame_required.
27033
27034 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
27035
27036         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
27037
27038 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
27039
27040         * common/config/aarch64/aarch64-common.c
27041         (struct aarch64_option_extension, struct processor_name_to_arch,
27042         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
27043         aarch64_contains_opt,
27044         aarch64_get_extension_string_for_isa_flags): Change type of
27045         variables storing flags to uint64_t.
27046         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
27047         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
27048         * config/aarch64/aarch64.c (struct processor,
27049         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
27050         aarch64_validate_march, aarch64_override_options,
27051         aarch64_option_print, aarch64_handle_attr_isa_flags,
27052         aarch64_declare_function_name, aarch64_start_file): Make flag
27053         variables uint64_t.
27054         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
27055         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
27056         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
27057         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
27058         * config/aarch64/driver-aarch64.c
27059         (struct aarch64_arch_extension, struct aarch64_core_data,
27060         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
27061         flag variables uint64_t.
27062         * doc/invoke.texi: Add documentation for new arguments.
27063
27064 2019-05-22  Richard Biener  <rguenther@suse.de>
27065
27066         * alias.c (ao_ref_from_mem): Move stack-slot sharing
27067         rewrite ...
27068         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
27069
27070 2019-05-22  Martin Liska  <mliska@suse.cz>
27071
27072         PR lto/90500
27073         * doc/extend.texi: Document the change.
27074
27075 2019-05-22  Richard Biener  <rguenther@suse.de>
27076
27077         PR tree-optimization/90450
27078         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
27079         (mem_ref_hasher::equal): Check it.
27080         (mem_ref_alloc): Initialize it.
27081         (gather_mem_refs_stmt): Set it.
27082
27083 2019-05-22  Richard Biener  <rguenther@suse.de>
27084
27085         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
27086         Add ABS_EXPR.
27087         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
27088         as ABSU_EXPR.
27089
27090 2019-05-22  Alan Modra  <amodra@gmail.com>
27091
27092         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
27093         (ASM_CPU_SPEC): Conditionally add -many.
27094         * config/rs6000/rs6000.c (rs6000_machine): New static var.
27095         (rs6000_machine_from_flags, emit_asm_machine): New functions..
27096         (rs6000_file_start): ..extracted from here, and modified to
27097         test all ISA bits.
27098         (rs6000_output_function_prologue): Emit .machine as necessary.
27099
27100 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
27101
27102         PR middle-end/90553
27103         * ira-lives.c (process_bb_node_lives): Consider defs
27104         for a call insn to be die before the call, not after.
27105
27106         * function.c (assign_parm_setup_block): Raise alignment of
27107         stacked parameter only for STRICT_ALIGNMENT targets.
27108
27109 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27110
27111         * config/rs6000/constraints.md (define_register_constraint "wz"):
27112         Delete.
27113         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27114         RS6000_CONSTRAINT_wz.
27115         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27116         (rs6000_init_hard_regno_mode_ok): Adjust.
27117         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
27118         * doc/md.texi (Machine Constraints): Adjust.
27119
27120 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27121
27122         * config/rs6000/constraints.md (define_register_constraint "wl"):
27123         Delete.
27124         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27125         RS6000_CONSTRAINT_wl.
27126         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27127         (rs6000_init_hard_regno_mode_ok): Adjust.
27128         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
27129         * doc/md.texi (Machine Constraints): Adjust.
27130
27131 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27132
27133         * config/rs6000/constraints.md (define_register_constraint "wm"):
27134         Delete.
27135         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27136         RS6000_CONSTRAINT_wm.
27137         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27138         (rs6000_init_hard_regno_mode_ok): Adjust.
27139         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
27140         * doc/md.texi (Machine Constraints): Adjust.
27141
27142 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27143
27144         * config/rs6000/constraints.md (define_register_constraint "wk"):
27145         Delete.
27146         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27147         RS6000_CONSTRAINT_wk.
27148         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27149         (rs6000_init_hard_regno_mode_ok): Adjust.
27150         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
27151         * doc/md.texi (Machine Constraints): Adjust.
27152
27153 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27154
27155         * config/rs6000/constraints.md (define_register_constraint "wj"):
27156         Delete.
27157         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27158         RS6000_CONSTRAINT_wj.
27159         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27160         (rs6000_init_hard_regno_mode_ok): Adjust.
27161         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
27162         (VS_64dm): Delete.
27163         * config/rs6000/vsx.md: Ditto.
27164         * doc/md.texi (Machine Constraints): Adjust.
27165
27166 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27167
27168         * config/rs6000/constraints.md (define_register_constraint "wh"):
27169         Delete.
27170         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27171         RS6000_CONSTRAINT_wh.
27172         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27173         (rs6000_init_hard_regno_mode_ok): Adjust.
27174         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
27175         * doc/md.texi (Machine Constraints): Adjust.
27176
27177 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27178
27179         PR target/90547
27180         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27181         Avoid calling gen_lowpart with CONST operand.
27182
27183 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
27184
27185         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
27186         field template_last_to_copy.
27187         (ssa_create_duplicates): Set it, and use it.  Attempt to
27188         preserve more debug stmts.
27189
27190 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27191
27192         * config/i386/sse.md (VF1_AVX2): New mode iterator.
27193         (signbit<mode>2): New expander
27194
27195 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
27196
27197         PR bootstrap/87338
27198         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27199         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27200
27201 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
27202
27203         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27204         %ebx and %ecx bafore calling cpuid with leaf 1 or
27205         non-constant leaf argument.
27206
27207 2019-05-21  Alan Modra  <amodra@gmail.com>
27208
27209         PR target/90545
27210         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27211         power9 direct move cost.
27212
27213 2019-05-21  Richard Biener  <rguenther@suse.de>
27214
27215         PR middle-end/90510
27216         * fold-const.c (fold_read_from_vector): New function.
27217         * fold-const.h (fold_read_from_vector): Declare.
27218         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27219         single-element insert permutations.  Canonicalize selector
27220         further and fix issue with last commit.
27221
27222 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27223
27224         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27225         parameter with default value false to declaration.
27226         (split_edges_for_insertion): New inline function.  Wrapper for
27227         split_critical_edges with for_edge_insertion_p = true.
27228         * tree-cfg.c (split_critical_edges): Don't split non-critical
27229         edges if for_edge_insertion_p is false.  Fix whitespace.
27230         * tree-ssa-pre.c (pass_pre::execute): Call
27231         split_edges_for_insertion instead of split_critical_edges.
27232         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27233         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27234         (pass_data_sink_code): Update function name in the comment.
27235
27236 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27237
27238         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27239         around is_value_included_in that knows how to handle BIT_AND_EXPR.
27240         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
27241         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27242         positives.
27243
27244 2019-05-21  Martin Liska  <mliska@suse.cz>
27245
27246         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27247         an extra newline.
27248         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27249         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27250         vec_lvsr.
27251         * config/rs6000/rs6000.c (rs6000_option_override_internal):
27252         Quote a C type.
27253         (rs6000_function_arg): Likewise.
27254         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27255         (rs6000_expand_ternop_builtin): Use interval syntax.
27256         (get_element_number): Likewise.
27257         (altivec_expand_builtin): Likewise.
27258         (rs6000_get_function_versions_dispatcher): Quote target_clones.
27259
27260 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27261
27262         PR c++/59813
27263         PR target/90418
27264         * function.h (struct function): Add calls_eh_return member.
27265         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27266         gimplifying __builtin_eh_return call.
27267         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27268         to cfun.
27269         (expand_call_inline): Or in src_cfun->calls_eh_return into
27270         dst_cfun->calls_eh_return.
27271         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27272         cfun->calls_eh_return.
27273         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27274         * lto-streamer-out.c (output_struct_function_base): Write
27275         calls_eh_return.
27276
27277 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
27278
27279         PR rtl-optimization/43147
27280         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27281         IX86_BUILTIN_SHUFPD.
27282
27283 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27284
27285         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27286         (refs_may_alias_p_1): ... here; update stats.
27287         (refs_may_alias_p): Do not update stats here.
27288
27289 2019-05-20  Richard Biener  <rguenther@suse.de>
27290
27291         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27292         doesn't produce pointers.
27293         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27294         the first operand points to.
27295
27296 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27297
27298         * tree-ssa-alias.c (compare_sizes): New function.
27299         (sompare_type_sizes): New function
27300         (aliasing_component_refs_p): Use it.
27301         (indirect_ref_may_alias_decl_p): Likewise.
27302
27303 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27304
27305         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27306
27307 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27308
27309         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27310         (LIBLSAN_EARLY_SPEC): Likewise.
27311         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27312
27313 2019-05-20  Martin Liska  <mliska@suse.cz>
27314
27315         * config/i386/i386.c (ix86_libc_has_fast_function):
27316         Add ATTRIBUTE_UNUSED for the argument.
27317
27318 2019-05-20  Richard Biener  <rguenther@suse.de>
27319
27320         * gimple-match-head.c: Include vec-perm-indices.h.
27321         * generic-match-head.c: Likewise.
27322         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27323         is included.
27324         * fold-const.c (fold_vec_perm): Export.
27325         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27326         (match.pd): ...here.
27327
27328 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27329
27330         * cfgloop.h (struct loop): Add simdlen member.
27331         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27332         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27333         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27334         as new argument to autovectorize_vector_sizes target hook.  If
27335         loop->simdlen, pick up vector size where the vectorization factor
27336         is equal to loop->simd, and if there is none, fall back to the first
27337         successful one.
27338         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27339         caller.
27340         * omp-low.c (omp_clause_aligned_alignment): Likewise.
27341         * omp-general.c (omp_max_vf): Likewise.
27342         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27343         * tree-vect-slp.c (vect_slp_bb): Likewise.
27344         * target.def (autovectorize_vector_sizes): Add ALL argument and
27345         document it.
27346         * doc/tm.texi: Adjust documentation.
27347         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27348         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27349         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27350         bool argument.
27351         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27352         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27353         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27354         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
27355         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27356         preferred vector size is not 512-bit or 256-bit, just put those
27357         unpreferred ones last.
27358
27359 2019-05-20  Martin Liska  <mliska@suse.cz>
27360
27361         * targhooks.c (default_libc_has_fast_function): New function.
27362         * targhooks.h (default_libc_has_fast_function): Likewise.
27363
27364 2019-05-20  Martin Liska  <mliska@suse.cz>
27365
27366         PR middle-end/90263
27367         * builtins.c (expand_builtin_memory_copy_args): When having a
27368         target with fast mempcpy implementation do now use memcpy.
27369         * config/i386/i386.c (ix86_libc_has_fast_function): New.
27370         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27371         * doc/tm.texi: Likewise.
27372         * doc/tm.texi.in: Likewise.
27373         * target.def:
27374         * expr.c (emit_block_move_hints): Add 2 new arguments.
27375         * expr.h (emit_block_move_hints): Bail out when libcall
27376         to memcpy would be used.
27377
27378 2019-05-20  Martin Liska  <mliska@suse.cz>
27379
27380         * profile-count.c: Add vertical spacing in order
27381         to separate functions.
27382         * profile-count.h: Likewise.
27383
27384 2019-05-20  Martin Liska  <mliska@suse.cz>
27385
27386         * profile-count.h: Do not use full qualified
27387         names if possible.
27388         * profile-count.c (profile_count::to_frequency): Likewise.
27389
27390 2019-05-20  Martin Liska  <mliska@suse.cz>
27391
27392         * profile-count.h (enum profile_quality): Use capital letters
27393         for enum value names.  Use the adjusted names.
27394         * profile-count.c: Use the adjusted names.
27395
27396 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27397
27398         * config/rs6000/constraints.md (define_register_constraint "wH"):
27399         Delete.
27400         (define_register_constraint "wI"): Delete.
27401         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27402         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27403         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27404         (rs6000_init_hard_regno_mode_ok): Adjust.
27405         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27406         resp. "d", or with "wa" as appropriate, all with "p8v".
27407         * config/rs6000/vsx.md: Ditto.
27408         * doc/md.texi (Machine Constraints): Adjust.
27409
27410 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27411
27412         * config/rs6000/constraints.md (define_register_constraint "wy"):
27413         Delete.
27414         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27415         RS6000_CONSTRAINT_wy.
27416         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27417         (rs6000_init_hard_regno_mode_ok): Adjust.
27418         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27419         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27420         (define_mode_attr Fisa): New.
27421         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27422         * doc/md.texi (Machine Constraints): Adjust.
27423
27424 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27425
27426         * config/rs6000/constraints.md (define_register_constraint "wu"):
27427         Delete.
27428         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27429         RS6000_CONSTRAINT_wu.
27430         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27431         (rs6000_init_hard_regno_mode_ok): Adjust.
27432         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27433         both with "p8v".
27434         (define_mode_attr Fa): Delete.
27435         * config/rs6000/vsx.md: Ditto.
27436         * doc/md.texi (Machine Constraints): Adjust.
27437
27438 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27439
27440         * config/rs6000/constraints.md (define_register_constraint "wJ"):
27441         Delete.
27442         (define_register_constraint "wK"): Delete.
27443         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27444         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27445         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27446         (rs6000_init_hard_regno_mode_ok): Adjust.
27447         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27448         Replace "wK" constraint by "wH" with "p9v".
27449         * config/rs6000/vsx.md: Ditto.
27450         * doc/md.texi (Machine Constraints): Adjust.
27451
27452 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27453
27454         * config/rs6000/constraints.md (define_register_constraint "wb"):
27455         Delete.
27456         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27457         RS6000_CONSTRAINT_wb.
27458         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27459         (rs6000_init_hard_regno_mode_ok): Adjust.
27460         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27461         * config/rs6000/vsx.md: Ditto.
27462         * doc/md.texi (Machine Constraints): Adjust.
27463
27464 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
27465
27466         * config/rs6000/constraints.md (define_register_constraint "wo"):
27467         Delete.
27468         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27469         RS6000_CONSTRAINT_wo.
27470         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27471         (rs6000_init_hard_regno_mode_ok): Adjust.
27472         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27473         * config/rs6000/altivec.md: Ditto.
27474         * doc/md.texi (Machine Constraints): Adjust.
27475
27476 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
27477
27478         * config/darwin-c.c (darwin_register_objc_includes): Do not
27479         prepend the sysroot when building gnu-runtime header search
27480         paths.
27481
27482 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
27483
27484         * config/darwin.c (darwin_file_end): Use switch_to_section ()
27485         instead of direct output of the asm.
27486
27487 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
27488
27489         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27490         argument to be type bool (was int before).
27491         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
27492         at first use.  Use type bool for some variables.  Fix a theoretical
27493         eh_return bug for svr4.
27494
27495 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
27496
27497         * config/rs6000/rs6000.md (isa): New attribute.
27498         (enabled): New attribute.
27499
27500 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
27501
27502         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27503         assemble_start_function and assemble_end_function.
27504
27505 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
27506
27507         PR middle-end/89433
27508         * omp-general.c (oacc_verify_routine_clauses): Change formal
27509         parameters.  Add checking if already marked with an OpenACC
27510         'routine' directive.  Adjust all users.
27511
27512         PR middle-end/89433
27513         * omp-general.c (oacc_build_routine_dims): Move some of its
27514         processing into...
27515         (oacc_verify_routine_clauses): ... this new function.
27516         * omp-general.h (oacc_verify_routine_clauses): New prototype.
27517
27518 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
27519
27520         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27521         formating of picbase labels to match other ports.
27522
27523 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
27524
27525         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27526         in the generated code.
27527
27528 2019-05-16  Martin Sebor  <msebor@redhat.com>
27529
27530         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27531         identifiers, keywords, operators, and types in diagnostics.  Correct
27532         quoting, spelling, and sentence capitalization issues.
27533         (expand_builtin_atomic_is_lock_free): Same.
27534         (fold_builtin_next_arg): Same.
27535         * cfgexpand.c (expand_one_var): Same.
27536         (tree_conflicts_with_clobbers_p): Same.
27537         (expand_asm_stmt): Same.
27538         (verify_loop_structure): Same.
27539         * cgraphunit.c (process_function_and_variable_attributes): Same.
27540         * collect-utils.c (collect_execute): Same.
27541         * collect2.c (maybe_run_lto_and_relink): Same.
27542         (is_lto_object_file): Same.
27543         (scan_prog_file): Same.
27544         * convert.c (convert_to_real_1): Same.
27545         * dwarf2out.c (dwarf2out_begin_prologue): Same.
27546         * except.c (verify_eh_tree): Same.
27547         * gcc.c (execute): Same.
27548         (eval_spec_function): Same.
27549         (run_attempt): Same.
27550         (driver::set_up_specs): Same.
27551         (compare_debug_auxbase_opt_spec_function): Same.
27552         * gcov-tool.c (unlink_gcda_file): Same.
27553         (do_merge): Same.
27554         (do_rewrite): Same.
27555         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27556         * gimplify.c (gimplify_asm_expr): Same.
27557         (gimplify_adjust_omp_clauses): Same.
27558         * hsa-gen.c (gen_hsa_addr_insns): Same.
27559         (gen_hsa_insns_for_load): Same.
27560         (gen_hsa_cmp_insn_from_gimple): Same.
27561         (gen_hsa_insns_for_operation_assignment): Same.
27562         (gen_get_level): Same.
27563         (gen_hsa_alloca): Same.
27564         (omp_simple_builtin::generate): Same.
27565         (gen_hsa_atomic_for_builtin): Same.
27566         (gen_hsa_insns_for_call): Same.
27567         * input.c (dump_location_info): Same.
27568         * ipa-devirt.c (compare_virtual_tables): Same.
27569         * ira.c (ira_setup_eliminable_regset): Same.
27570         * lra-assigns.c (lra_assign): Same.
27571         * lra-constraints.c (lra_constraints): Same.
27572         * lto-streamer-in.c (lto_input_mode_table): Same.
27573         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27574         (merge_and_complain): Same.
27575         (compile_offload_image): Same.
27576         (compile_images_for_offload_targets): Same.
27577         (debug_objcopy): Same.
27578         (run_gcc): Same.
27579         (main): Same.
27580         * opts.c (print_specific_help): Same.
27581         (parse_no_sanitize_attribute): Same.
27582         (print_help): Same.
27583         (handle_param): Same.
27584         * plugin.c (add_new_plugin): Same.
27585         (parse_plugin_arg_opt): Same.
27586         (try_init_one_plugin): Same.
27587         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27588         operators, and types in diagnostics.  Correct quoting and spelling
27589         issues.
27590         * read-rtl-function.c (parse_edge_flag_token): Same.
27591         (function_reader::parse_enum_value): Same.
27592         * reg-stack.c (check_asm_stack_operands): Same.
27593         * regcprop.c (validate_value_data): Same.
27594         * sched-rgn.c (make_pass_sched_fusion): Same.
27595         * stmt.c (check_unique_operand_names): Same.
27596         * targhooks.c (default_target_option_pragma_parse): Same.
27597         * tlink.c (recompile_files): Same.
27598         * toplev.c (process_options): Same.
27599         (do_compile): Same.
27600         * trans-mem.c (diagnose_tm_1): Same.
27601         (ipa_tm_scan_irr_block): Same.
27602         (ipa_tm_diagnose_transaction): Same.
27603         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
27604         format a tree code name in a diagnostic.
27605         (verify_types_in_gimple_min_lval): Same.
27606         (verify_types_in_gimple_reference): Same.
27607         (verify_gimple_call): Same.
27608         (verify_gimple_assign_unary): Same.
27609         (verify_gimple_assign_binary): Same.
27610         (verify_gimple_assign_ternary): Same.
27611         (verify_gimple_assign_single): Same.
27612         (verify_gimple_switch): Same.
27613         (verify_gimple_label): Same.
27614         (verify_gimple_phi): Same.
27615         (verify_gimple_in_seq): Same.
27616         (verify_eh_throw_stmt_node): Same.
27617         (collect_subblocks): Same.
27618         (gimple_verify_flow_info): Same.
27619         (do_warn_unused_result): Same.
27620         * tree-inline.c (expand_call_inline): Same.
27621         * tree-into-ssa.c (update_ssa): Same.
27622         * tree.c (tree_int_cst_elt_check_failed): Same.
27623         (tree_vec_elt_check_failed): Same.
27624         (omp_clause_operand_check_failed): Same.
27625         (verify_type_variant): Same.
27626         (verify_type): Same.
27627         * value-prof.c (verify_histograms): Same.
27628         * varasm.c (assemble_start_function): Same.
27629
27630 2019-05-16  Martin Sebor  <msebor@redhat.com>
27631
27632         * config/i386/i386-expand.c (get_element_number): Quote keywords
27633         and other internal names in diagnostics.  Adjust other diagnostic
27634         formatting issues noted by -Wformat-diag.
27635         * config/i386/i386-features.c
27636         (ix86_mangle_function_version_assembler_name): Same.
27637         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27638         * config/i386/i386.c (ix86_function_type_abi): Same.
27639         (ix86_function_ms_hook_prologue): Same.
27640         (classify_argument): Same.
27641         (ix86_expand_prologue): Same.
27642         (ix86_md_asm_adjust): Same.
27643         (ix86_memmodel_check): Same.
27644
27645 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
27646
27647         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27648         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27649         and fpxx modes.
27650
27651 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27652
27653         PR target/90497
27654         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27655         intrinsics without SSE/SSE2/SSSE3.
27656         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27657         check.
27658         (*mmx_uavgv8qi3): Likewise.
27659
27660 2019-05-17  Richard Biener  <rguenther@suse.de>
27661
27662         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27663         VEC_PERM_EXPR as __VEC_PERM with -gimple.
27664
27665 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
27666
27667         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27668         vec_sldw insn pattern.
27669
27670 2019-05-17  Richard Biener  <rguenther@suse.de>
27671
27672         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27673
27674 2019-05-17  Martin Liska  <mliska@suse.cz>
27675
27676         PR driver/90496
27677         * toplev.c (output_stack_usage): With LTO and sanitizer it
27678         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27679         has no file location.
27680
27681 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
27682
27683         PR c++/90484
27684         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27685         sz0 is equal to sz1, instead return false in that case.
27686
27687         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27688         has non-constant expression, force sctx.lane and use two
27689         argument IFN_GOMP_SIMD_LANE instead of single argument.
27690         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27691         two argument IFN_GOMP_SIMD_LANE without lhs.
27692         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27693         member.
27694         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27695         Define.
27696         (LOOP_REQUIRES_VERSIONING): Or in
27697         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27698         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27699         simd_if_cond.
27700         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27701         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27702         from simd if clause if needed.
27703
27704 2019-05-16  Richard Biener  <rguenther@suse.de>
27705
27706         * tree-affine.c (expr_to_aff_combination): New function split
27707         out from...
27708         (tree_to_aff_combination): ... here.
27709         (aff_combination_expand): Avoid building a GENERIC tree.
27710
27711 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
27712
27713         * cgraphunit.c (cgraph_node::expand_thunk): Remove
27714         assemble_start_function and assemble_end_function calls.
27715         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27716         assemble_start_function and assemble_end_function.
27717         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27718         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27719         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27720         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27721         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27722         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27723         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27724         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27725         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27726         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27727         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27728         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27729         Likewise.
27730         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27731         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27732         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27733         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27734         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27735         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27736         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27737         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27738         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27739         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27740         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27741         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27742         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27743         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27744         Likewise.
27745         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27746         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27747         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27748
27749 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
27750
27751         * tree-ssa-alias.c (alias_stats): Add
27752         aliasing_component_refs_p_may_alias and
27753         aliasing_component_refs_p_no_alias.
27754         (dump_alias_stats): Print aliasing_component_refs_p stats.
27755         (aliasing_component_refs_p): Update stats.
27756
27757 2019-05-16  Martin Liska  <mliska@suse.cz>
27758
27759         PR lto/90500
27760         * multiple_target.c (expand_target_clones): Do not allow
27761         target_clones being used with a symbol that is an alias.
27762
27763 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
27764
27765         PR tree-optimization/90394
27766         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27767         positives rather than ICE for cases where (code2 == NE_EXPR
27768         && code1 == BIT_AND_EXPR).
27769
27770 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
27771
27772         PR fortran/90329
27773         * tree-core.h (struct tree_decl_common): Document
27774         decl_nonshareable_flag for PARM_DECLs.
27775         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27776         * calls.c (expand_call): Don't try tail call if caller
27777         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27778         passed on the stack and callee needs to pass any arguments on the
27779         stack.
27780         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27781         else if instead of series of mutually exclusive ifs.  Handle
27782         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27783         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27784
27785         * lto-streamer.h (LTO_major_version): Bump to 9.
27786
27787 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
27788
27789         PR tree-optimization/90106
27790         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27791         new parameter as new internal function call, also move it to new
27792         basic block.
27793         (use_internal_fn): Pass internal function call to
27794         shrink_wrap_one_built_in_call_with_conds.
27795
27796 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
27797
27798         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27799         max_vf to 1.
27800         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27801         safelen_int and set loop->dont_vectorize.
27802
27803 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27804
27805         PR target/89021
27806         * config/i386/i386-builtin.def: Enable MMX intrinsics with
27807         SSE/SSE2/SSSE3.
27808         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27809         Likewise.
27810         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27811         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27812         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27813         is defined.
27814
27815 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27816
27817         PR target/89021
27818         * config/i386/mmx.md (*vec_dupv2sf): Changed to
27819         define_insn_and_split to support SSE emulation.
27820         (*vec_extractv2sf_0): Likewise.
27821         (*vec_extractv2sf_1): Likewise.
27822         (*vec_extractv2si_0): Likewise.
27823         (*vec_extractv2si_1): Likewise.
27824         (*vec_extractv2si_zext_mem): Likewise.
27825         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27826         (vec_extractv2sf_1 splitter): Likewise.
27827         (vec_extractv2sfsf): Likewise.
27828         (vec_setv2si): Likewise.
27829         (vec_extractv2si_1 splitter): Likewise.
27830         (vec_extractv2sisi): Likewise.
27831         (vec_setv4hi): Likewise.
27832         (vec_extractv4hihi): Likewise.
27833         (vec_setv8qi): Likewise.
27834         (vec_extractv8qiqi): Likewise.
27835         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27836         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27837         (vec_extractv2sisi): Likewise.
27838         (vec_extractv4hihi): Likewise.
27839         (vec_extractv8qiqi): Likewise.
27840         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
27841         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27842         (vec_initv2sisi): Likewise.
27843         (vec_initv4hihi): Likewise.
27844         (vec_initv8qiqi): Likewise.
27845         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
27846         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27847         (vec_setv4hi): Likewise.
27848         (vec_setv8qi): Likewise.
27849
27850 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27851
27852         PR target/89021
27853         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27854         TARGET_MMX_WITH_SSE.
27855         (MMXMODE:*mov<mode>_internal): Likewise.
27856         (MMXMODE:movmisalign<mode>): Likewise.
27857
27858 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
27859
27860         PR target/89021
27861         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27862         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27863         (sse2_cvtpd2pi): Ditto.
27864         (sse2_cvttpd2pi): Ditto.
27865         (*vec_concatv2sf_sse4_1): Ditto.
27866         (*vec_concatv2sf_sse): Ditto.
27867         (*vec_concatv2si_sse4_1): Ditto.
27868         (*vec_concatv2si): Ditto.
27869         (*vec_concatv4si_0): Ditto.
27870         (*vec_concatv2di_0): Ditto.
27871
27872 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27873
27874         PR target/89021
27875         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27876
27877 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27878
27879         PR target/89021
27880         * config/i386/sse.md (ssse3_palignrdi): Changed to
27881         define_insn_and_split to support SSE emulation.
27882
27883 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27884
27885         PR target/89021
27886         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27887
27888 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27889
27890         PR target/89021
27891         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27892         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
27893         SSE emulation.
27894
27895 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27896
27897         PR target/89021
27898         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27899         or TARGET_MMX_WITH_SSE.
27900         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27901
27902 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27903
27904         PR target/89021
27905         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27906
27907 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27908
27909         PR target/89021
27910         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27911         Changed to define_insn_and_split to support SSE emulation.
27912
27913 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27914
27915         PR target/89021
27916         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27917         Changed to define_insn_and_split to support SSE emulation.
27918
27919 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27920
27921         PR target/89021
27922         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27923         (*mmx_<emms>): This.
27924         (mmx_<emms>): New expander.
27925
27926 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27927
27928         PR target/89021
27929         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27930         support.
27931         (*sse2_umulv1siv1di3): Add SSE2 emulation.
27932
27933 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27934
27935         PR target/89021
27936         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27937
27938 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27939
27940         PR target/89021
27941         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27942
27943 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27944
27945         PR target/89021
27946         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27947         TARGET_MMX_WITH_SSE.
27948         (*mmx_uavgv4hi3): Add SSE emulation.
27949
27950 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27951
27952         PR target/89021
27953         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27954         and TARGET_MMX_WITH_SSE.
27955         (*mmx_uavgv8qi3): Add SSE emulation.
27956
27957 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27958
27959         PR target/89021
27960         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27961         maskmovdqu for __MMX_WITH_SSE__.
27962
27963 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27964
27965         PR target/89021
27966         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27967         TARGET_MMX and TARGET_MMX_WITH_SSE.
27968         (*mmx_umulv4hi3_highpart): Add SSE emulation.
27969
27970 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27971
27972         PR target/89021
27973         * config/i386/mmx.md (mmx_pmovmskb): Changed to
27974         define_insn_and_split to support SSE emulation.
27975
27976 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27977
27978         PR target/89021
27979         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27980         and TARGET_MMX_WITH_SSE.
27981         (mmx_<code>v8qi3): Likewise.
27982         (smaxmin:<code>v4hi3): New.
27983         (umaxmin:<code>v8qi3): Likewise.
27984         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27985         (umaxmin:*mmx_<code>v8qi3): Likewise.
27986
27987 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27988
27989         PR target/89021
27990         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27991         TARGET_MMX_WITH_SSE.
27992         (*mmx_pinsrw): Add SSE emulation.
27993
27994 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
27995
27996         PR target/89021
27997         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27998
27999 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28000
28001         PR target/89021
28002         * config/i386/sse.md (sse_cvtpi2ps): Changed to
28003         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
28004         SSE emulation.
28005
28006 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28007
28008         PR target/89021
28009         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
28010         (sse_cvttps2pi): Likewise.
28011
28012 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28013
28014         PR target/89021
28015         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
28016         TARGET_MMX_WITH_SSE.
28017         (mmx_pshufw_1): Add SSE emulation.
28018         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
28019         TARGET_MMX_WITH_SSE to support SSE emulation.
28020
28021 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28022
28023         PR target/89021
28024         * config/i386/constraints.md (Yw): New constraint.
28025         * config/i386/mmx.md (*vec_dupv2si): Changed to
28026         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
28027         support SSE emulation.
28028
28029 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28030
28031         PR target/89021
28032         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
28033         TARGET_MMX_WITH_SSE.
28034         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28035         support.
28036         (mmx_gt<mode>3): Likewise.
28037
28038 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28039
28040         PR target/89021
28041         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
28042         TARGET_MMX_WITH_SSE.  Add SSE support.
28043
28044 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28045
28046         PR target/89021
28047         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
28048         TARGET_MMX_WITH_SSE.
28049         (any_logic:<code><mode>3): New.
28050         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
28051         Add SSE support.
28052
28053 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28054
28055         PR target/89021
28056         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
28057         TARGET_MMX_WITH_SSE.  Add SSE emulation.
28058         (mmx_<shift_insn><mode>3): Likewise.
28059         (ashr<mode>3): New.
28060         (<shift_insn><mode>3): Likewise.
28061
28062 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28063
28064         PR target/89021
28065         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
28066         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
28067
28068 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28069
28070         PR target/89021
28071         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
28072         TARGET_MMX_WITH_SSE.
28073         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
28074         SSE support.
28075
28076 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28077
28078         PR target/89021
28079         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
28080         TARGET_MMX_WITH_SSE.
28081         (mulv4hi3): New.
28082         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28083         support.
28084
28085 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28086
28087         PR target/89021
28088         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
28089         (plusminus:mmx_<plusminus_insn><mode>3): Check
28090         TARGET_MMX_WITH_SSE.
28091         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
28092         (<plusminus_insn><mode>3): New.
28093         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
28094         (*mmx_<plusminus_insn><mode>3): Likewise.
28095
28096 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28097
28098         PR target/89021
28099         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
28100         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
28101         prototype.
28102         * config/i386/mmx.m (mmx_punpckhbw): Changed to
28103         define_insn_and_split to support SSE emulation.
28104         (mmx_punpcklbw): Likewise.
28105         (mmx_punpckhwd): Likewise.
28106         (mmx_punpcklwd): Likewise.
28107         (mmx_punpckhdq): Likewise.
28108         (mmx_punpckldq): Likewise.
28109
28110 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28111             Uros Bizjak  <ubizjak@gmail.com>
28112
28113         PR target/89021
28114         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
28115         New function.
28116         (ix86_split_mmx_pack): Likewise.
28117         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
28118         New prototype.
28119         (ix86_split_mmx_pack): Likewise.
28120         * config/i386/i386.md (mmx_isa): New.
28121         (enabled): Also check mmx_isa.
28122         * config/i386/mmx.md (any_s_truncate): New code iterator.
28123         (s_trunsuffix): New code attr.
28124         (mmx_packsswb): Removed.
28125         (mmx_packssdw): Likewise.
28126         (mmx_packuswb): Likewise.
28127         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
28128         MMX packsswb/packuswb with SSE2.
28129         (mmx_packssdw): Likewise.
28130         * config/i386/predicates.md (register_mmxmem_operand): New.
28131
28132 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28133
28134         PR target/89021
28135         * config/i386/i386-c.c (ix86_target_macros_internal): Define
28136         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
28137         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
28138         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
28139         (ix86_vector_mode_supported_p): Likewise.
28140         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
28141
28142 2019-05-15  Martin Liska  <mliska@suse.cz>
28143
28144         PR middle-end/90478
28145         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28146         Check for overflow.
28147
28148 2019-05-15  Richard Biener  <rguenther@suse.de>
28149
28150         * tree-into-ssa.c (pass_build_ssa::execute): Run
28151         update_address_taken before going into SSA.
28152
28153 2019-05-15  Richard Biener  <rguenther@suse.de>
28154
28155         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
28156         as __BIT_FIELD_REF with type with -gimple.
28157
28158 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
28159
28160         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
28161         semantically equivalent branches (left over after prior refactorings).
28162
28163 2019-05-15  Richard Biener  <rguenther@suse.de>
28164
28165         PR tree-optimization/88828
28166         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
28167         bogus check.
28168
28169 2019-05-14  Richard Biener  <rguenther@suse.de>
28170
28171         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
28172         as __VIEW_CONVERT with -gimple.
28173
28174 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28175
28176         PR target/82920
28177         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
28178         Darwin.
28179
28180 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28181
28182         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
28183         define_split to become a define_insn_and_split.
28184
28185 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28186
28187         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
28188         arguments.
28189         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
28190         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
28191         (sibcall_epilogue): Adjust.
28192         (epilogue): Adjust.
28193
28194 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28195
28196         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28197         to unsupported ones.
28198         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28199         * config.host: Likewise.
28200         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28201         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28202         __svr4__]: Remove "brand" fallback.
28203         [!KSTAT_DATA_STRING]: Remove.
28204         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28205         to *-*-solaris2*.
28206         (comdat_group): Likewise.
28207         (set_have_as_tls): Likewise.
28208         (gcc_cv_target_dl_iterate_phdr): Likewise.
28209         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28210         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28211         * configure: Regenerate.
28212         * doc/install.texi: Simplify Solaris target triplets.
28213         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28214         (Specific, *-*-solaris2*): Document Solaris 10 removal.
28215         Remove Solaris 10 references.
28216         Remove obsolete Solaris bug reference.
28217         (Specific, sparc-sun-solaris2.10): Remove.
28218
28219 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
28220
28221         * config/i386/i386.md (any_div): New code iterator.
28222         (paired_mod): New code attribute.
28223         (sgnprefix): Handle DIV and UDIV RTXes.
28224         (u): Ditto.
28225         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28226         and udivmod<mode>4 patterns using any_div code iterator.
28227         (divmod splitters): Macroize splitters using any_div code iterator.
28228         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28229         (*udivmodsi4_pow2_zext_2): Ditto.
28230         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28231         and *udivmod<mode>4_noext patterns using any_div code iterator.
28232         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28233         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28234         patterns using any_div code iterator.
28235         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28236         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28237         patterns using any_div code iterator.
28238         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28239         udivmodhiqi3 patterns using any_extend code iterator.
28240
28241 2019-05-14  Richard Biener  <rguenther@suse.de>
28242             H.J. Lu  <hongjiu.lu@intel.com>
28243
28244         PR tree-optimization/88828
28245         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28246         permuting in a single non-constant element not extracted
28247         from a vector.
28248
28249 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
28250
28251         * internal-fn.def (SIGNBIT): New.
28252         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28253         defined.
28254         (signbitv4sf2): Likewise.
28255
28256 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
28257
28258         PR target/90357
28259         * config/mips/mips.c (mips_split_move): Skip forward SRC into
28260         next insn when the SRC reg is dead.
28261
28262 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
28263
28264         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28265         (alloc_cand_and_find_basis): Ditto.
28266         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28267         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28268         (create_add_imm_cand, slsr_process_cast): Ditto.
28269         (slsr_process_copy, replace_mult_candidate): Ditto.
28270         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28271         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28272         (pass_strength_reduction::execute): Init the first NULL element.
28273
28274 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28275
28276         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
28277         (run_attempt): Reformat line break.
28278
28279 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
28280
28281         PR target/90418
28282         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28283         data registers in sibcall epilogues.
28284         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28285
28286 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
28287
28288         PR target/89221
28289         * configure.ac (--enable-frame-pointer):
28290         Disable by default for cygwin and mingw.
28291         * configure: Regenerate.
28292
28293 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28294
28295         * dwarf2out.c (breakout_comdat_types): Move comment to correct
28296         piece of code.
28297         (const_ok_for_output_1): Balance parens around #if/#else/#endif
28298         (gen_member_die): Move abstract origin check earlier.  Only VARs
28299         can be static_inline_p.  Simplify splicing control flow.
28300
28301 2019-05-13  Richard Biener  <rguenther@suse.de>
28302
28303         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28304         VIEW_CONVERT_EXPR.
28305         (vect_build_slp_tree_1): Likewise.
28306
28307 2019-05-13  Richard Biener  <rguenther@suse.de>
28308
28309         PR tree-optimization/90402
28310         * tree-if-conv.c (tree_if_conversion): Value number only
28311         the loop body by making the latch an exit of the region
28312         as well.
28313         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28314         processing PHIs.
28315         (do_rpo_vn): Deal with multiple edges into the entry block
28316         that are not backedges inside the region by skipping PHIs
28317         of the entry block.
28318
28319 2019-05-13  Richard Biener  <rguenther@suse.de>
28320
28321         PR tree-optimization/90316
28322         * tree-ssa-pre.c (insert_aux): Fold into ...
28323         (insert): ... this function.  Use a RPO walk to reduce the
28324         number of required iterations.
28325
28326 2019-05-13  Martin Liska  <mliska@suse.cz>
28327
28328         PR tree-optimization/90416
28329         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28330         string instead of passing the second part as va_arg argument.
28331
28332 2019-05-13  Martin Liska  <mliska@suse.cz>
28333
28334         PR gcov-profile/90380
28335         * gcov.c (handle_cycle): Do not support zero cycle count,
28336         it should not be possible.
28337         (path_contains_zero_cycle_arc): New function.
28338         (circuit): Ignore zero cycle arc counts.
28339
28340 2019-05-13  Martin Liska  <mliska@suse.cz>
28341
28342         PR gcov-profile/90380
28343         * gcov.c (enum loop_type): Remove the enum and
28344         the operator.
28345         (handle_cycle): Assert that we should not reach
28346         a negative count.
28347         (circuit): Use loop_found instead of a tri-state loop_type.
28348         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28349         happen.
28350
28351 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28352
28353         PR target/82920
28354         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28355         (ix86_output_indirect_branch_via_reg): Use output mechanism
28356         accounting for __USER_LABEL_PREFIX__.
28357         (ix86_output_indirect_branch_via_push): Likewise.
28358         (ix86_output_function_return): Likewise.
28359         (ix86_output_indirect_function_return): Likewise.
28360
28361 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
28362
28363         * doc/md.texi: Document use of code attributes in rtx patterns.
28364         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28365         * read-rtl.c (find_code): Split out search loops into...
28366         (maybe_find_code): ...this new function.
28367         (check_code_iterator): Make the error message more informative.
28368         (check_code_attribute): New function.
28369         (rtx_reader::rtx_alloc_for_name): Likewise.
28370         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28371         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28372         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28373         <max_opp> directly as an rtx code instead of via a match_operator.
28374         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28375         (<su>abd<mode>_3): Update accordingly.
28376
28377 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28378
28379         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28380         is given, print the state of the EH "save world" computation for
28381         Darwin.
28382
28383 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
28384
28385         PR c++/59813
28386         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28387         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28388
28389 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
28390
28391         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28392         Use pinsrd for TARGET_SSE4_1.
28393         * config/i386/sse.md (movdi_to_sse): Ditto.
28394
28395 2019-05-10  Richard Biener  <rguenther@suse.de>
28396
28397         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28398         (do_rpo_vn): Initialize next_value_id.
28399
28400 2019-05-10  Martin Liska  <mliska@suse.cz>
28401
28402         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28403         Fix plural form.
28404
28405 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
28406
28407         PR tree-optimization/90385
28408         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28409         arguments of the exit phis.
28410
28411         PR c++/90383
28412         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28413         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28414         id->do_not_fold.
28415         (copy_tree_body_r): Likewise.
28416         (copy_fn): Set id.do_not_fold to true.
28417
28418 2019-05-10  Martin Liska  <mliska@suse.cz>
28419
28420         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28421         Reapply changes from r269790.
28422
28423 2019-05-10  Martin Liska  <mliska@suse.cz>
28424
28425         PR middle-end/90340
28426         * doc/invoke.texi: New params.
28427         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28428         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28429         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28430         Use it.
28431         * tree-switch-conversion.h (struct jump_table_cluster):
28432         Likewise.
28433
28434 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
28435
28436         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28437
28438 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
28439
28440         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28441
28442 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
28443
28444         PR rtl-optimization/88879
28445         * sel-sched.c (sel_target_adjust_priority): Remove assert.
28446
28447 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
28448
28449         PR target/90405
28450         * config/arm/arm.c (callee_saved_reg_p): Move before
28451         thumb_find_work_register.
28452         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28453         thumb_find_work_register.  Only call df_get_live_out once.
28454         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28455         (thumb_find_work_register): Use
28456         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28457         algorithms to locate a spare call clobbered reg.
28458
28459 2019-05-09  Martin Liska  <mliska@suse.cz>
28460
28461         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28462         and MAX_EXPR in GIMPLE FE format.
28463
28464 2019-05-09  Martin Liska  <mliska@suse.cz>
28465
28466         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28467         * gimple-pretty-print.c (dump_gimple_bb_header):
28468         Dump BB count.
28469         (pp_cfg_jump): Dump edge probability.
28470         * profile-count.c (profile_quality_as_string): Simplify
28471         with a static array.
28472         (parse_profile_quality): New function.
28473         (profile_count::dump): Simplify with a static array.
28474         (profile_count::from_gcov_type): Add new argument.
28475         * profile-count.h (parse_profile_quality): Likewise.
28476         * predict.h (set_hot_bb_threshold): New.
28477         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28478         New param.
28479         * predict.c (get_hot_bb_threshold): Set from the new param.
28480         (set_hot_bb_threshold): New.
28481
28482 2019-05-09  Richard Biener  <rguenther@suse.de>
28483
28484         PR tree-optimization/90395
28485         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28486         rewrite vector stores that throw internally.
28487
28488 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
28489
28490         * cif-code.def (CHKP): Remove.
28491
28492         PR target/89221
28493         * configure.ac (--enable-frame-pointer): Disable by default for
28494         GNU systems.
28495         * configure: Regenerate.
28496
28497 2019-05-09  Alan Modra  <amodra@gmail.com>
28498
28499         PR target/89271
28500         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28501         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28502         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28503         cost for general <-> vsx when direct moves are available.
28504         Cost union classes at minimal cost for any reg in the class.
28505         Correct calculation for moves between vsx, float, and altivec.
28506         Don't return a low cost for moves between special regs.  Don't
28507         use hard coded register numbers.
28508         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28509         (rs6000_ira_change_pseudo_allocno_class): New function.
28510         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28511         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28512         alternatives.
28513         (movsi_internal1): Don't disparage vector alternatives.
28514         (mov<mode>_internal): Likewise, excepting alternative that
28515         will be split.
28516         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28517         we <- b alternative.
28518
28519 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
28520
28521         PR c++/59813
28522         PR tree-optimization/89060
28523         * tree-ssa-live.h (live_vars_map): New typedef.
28524         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28525         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28526         (struct compute_live_vars_data): New type.
28527         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28528         live_vars_at_stmt, destroy_live_vars): New functions.
28529         * tree-tailcall.c: Include tree-ssa-live.h.
28530         (live_vars, live_vars_vec): New global variables.
28531         (find_tail_calls): Perform variable life analysis before punting.
28532         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28533         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28534         member.
28535         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28536         Perform variable life analysis to select variables that really need
28537         clobbers added.
28538         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28539         instead set id->eh_landing_pad_dest and assert it is the same.
28540         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28541
28542 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
28543             Richard Earnshaw  <rearnsha@arm.com>
28544
28545         PR target/88167
28546         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28547         function.
28548         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28549         (thumb1_compute_save_core_reg_mask): Don't force a spare work
28550         register if both the epilogue and prologue can use call-clobbered
28551         regs.
28552         (thumb1_unexpanded_epilogue): Use
28553         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
28554         picking temporaries for restoring high regs to match that of the
28555         prologue where possible.
28556         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28557         the list of work registers.  Detect if the return address is still live
28558         at the end of the prologue and avoid using it for a work register if so.
28559         If the return address is not live, add LR to the list of pushable regs
28560         after the first pass.
28561
28562 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
28563
28564         PR tree-optimization/90078
28565         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28566         (INFTY): Increase the value for infinite cost.
28567         (struct comp_cost): Promote type of members to int64_t.
28568         (infinite_cost): Don't set complexity in initialization.
28569         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28570         overflows to infinite_cost.
28571         (adjust_setup_cost): Promote type of parameter and cost computation
28572         to int64_t.
28573         (struct ainc_cost_data, struct iv_ca): Promote type of member to
28574         int64_t.
28575         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28576         cost computation to int64_t.
28577         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28578         int64_t's format specifier in dump.
28579
28580 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
28581
28582         PR tree-optimization/90240
28583         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28584         with respect to scaling factor pre-computed for each basic block.
28585         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28586         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28587         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28588         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
28589         live range for array of loop's basic blocks.  Cleanup aux field of
28590         loop's basic blocks.
28591
28592 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
28593
28594         PR tree-optimization/90356
28595         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28596
28597 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
28598
28599         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28600         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28601         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28602         (ix86_handle_option): Handle -mavx512bf16.
28603         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28604         to extra_headers.
28605         * config/i386/avx512bf16vlintrin.h: New.
28606         * config/i386/avx512bf16intrin.h: New.
28607         * config/i386/cpuid.h (bit_AVX512BF16): New.
28608         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28609         * config/i386/i386-builtin-types.def: Add new types.
28610         * config/i386/i386-builtin.def: Add new builtins.
28611         * config/i386/i386-c.c (ix86_target_macros_internal): Define
28612         __AVX512BF16__.
28613         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28614         (ix86_option_override_internal): Handle BF16.
28615         (ix86_valid_target_attribute_inner_p): Ditto.
28616         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28617         * config/i386/i386-builtin.c (enum processor_features): Add
28618         F_AVX512BF16.
28619         (static const _isa_names_table isa_names_table): Ditto.
28620         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28621         (PTA_AVX512BF16): Ditto.
28622         * config/i386/i386.opt: Add -mavx512bf16.
28623         * config/i386/immintrin.h: Include avx512bf16intrin.h
28624         and avx512bf16vlintrin.h.
28625         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28626         avx512f_cvtneps2bf16_<mode><mask_name>,
28627         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28628         * config/i386/subst.md (mask_half): Add new subst.
28629         * doc/invoke.texi: Document -mavx512bf16.
28630
28631 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
28632
28633         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28634         Delete declaration.
28635         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28636         (rs6000_debug_legitimize_reload_address): Delete.
28637         (rs6000_legitimize_reload_address_ptr): Delete.
28638         (rs6000_option_override_internal): Adjust.
28639         (mem_operand_gpr): Adjust comment.
28640         (legitimate_lo_sum_address_p): Ditto.
28641         (rs6000_legitimize_reload_address): Delete.
28642         (rs6000_debug_legitimize_reload_address): Delete.
28643         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28644
28645 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28646
28647         PR target/89765
28648         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28649         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28650         to compute vector element selector for both constant and variable
28651         operands.
28652
28653 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
28654
28655         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28656         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28657         ashrdi3_cvt using SWI48 mode iterator.
28658
28659 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
28660
28661         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28662         (aarch64_<su>abd<mode>_3): Likewise.
28663         (*aarch64_<su>abd<mode>_3): New define_insn.
28664         (<sur>sad<vsi2qi>): New define_expand.
28665         * config/aarch64/iterators.md: Added MAX_OPP attribute.
28666         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28667         (build_vect_cond_expr): Likewise.
28668
28669 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
28670
28671         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28672         clobbers outside of accessible_reg_set.
28673         * config/i386/i386.c (ix86_conditional_register_usage):
28674         Disable register sets by clearing corresponding bits in
28675         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
28676         call_used_regs and don't clear corresponding reg_names array members.
28677
28678 2019-05-07  Richard Biener  <rguenther@suse.de>
28679
28680         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28681         not specified still compute a comp_vectype for invariant
28682         compares.
28683
28684 2019-05-07  Richard Biener  <rguenther@suse.de>
28685
28686         PR tree-optimization/90316
28687         * tree-ssa-pre.c (translate_vuse_through_block): When
28688         same_valid is NULL do not bother to search for a virtual
28689         PHI continuation.
28690         (phi_translate_1): When operands changed we cannot keep
28691         the same value-number so do not bother to ask whether
28692         that's possible from translate_vuse_through_block.
28693
28694 2019-05-07  Martin Liska  <mliska@suse.cz>
28695
28696         * bitmap.c (bitmap_register): Come up with
28697         alloc_descriptor_max_uid and assign it for
28698         a new bitmap.
28699         (register_overhead): Use get_descriptor as
28700         a descriptor.
28701         (release_overhead): New.
28702         (bitmap_elem_to_freelist): Call it.
28703         (bitmap_elt_clear_from): Likewise.
28704         (bitmap_obstack_free): Likewise.
28705         (bitmap_move): Sensitively release memory.
28706         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28707         (bitmap_initialize): Initialize alloc_descriptor to zero.
28708         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28709
28710 2019-05-07  Richard Biener  <rguenther@suse.de>
28711
28712         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28713         we build a SLP node.  Remove max_size and limiting.
28714         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28715
28716 2019-05-07  Richard Biener  <rguenther@suse.de>
28717
28718         PR tree-optimization/90316
28719         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28720         limit by reference.
28721         (walk_non_aliased_vuses): Take walking limit argument.
28722         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28723         walking if it is reached instead of just counting.
28724         (get_continuation_for_phi): Likewise.
28725         (walk_non_aliased_vuses): Likewise, instead of leaving counter
28726         limiting to the callback.
28727         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28728         (vn_reference_lookup_3): Likewise.
28729         (vn_reference_lookup_pieces): Likewise.
28730         (vn_reference_lookup): Likewise.
28731         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28732         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28733         (avail_exprs_stack::lookup_avail_expr): Likewise.
28734
28735 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
28736
28737         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28738         for comparaible types in the second direction even if first one
28739         hits incomparable type.
28740
28741 2019-05-07  Richard Biener  <rguenther@suse.de>
28742
28743         PR lto/90369
28744         * lto-wrapper.c (debug_objcopy): Use the original filename
28745         including archive offset for the filename used for -save-temps.
28746
28747 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
28748
28749         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28750         detection.
28751
28752 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
28753             Hongtao Liu  <hongtao.liu@intel.com>
28754
28755         PR target/89750
28756         PR target/86444
28757         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28758         Modified, original implementation isn't correct.
28759
28760 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28761
28762         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28763         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28764         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28765         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28766         (FRAME_POINTER_REGNUM): Change numbering.
28767         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28768         (alt_reg_names): Adjust.
28769         (rs6000_conditional_register_usage): Don't mark hard register 64 as
28770         fixed.
28771         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28772         (DWARF_FRAME_REGISTERS): Delete.
28773         (DWARF2_FRAME_REG_OUT): Fix whitespace.
28774         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28775         Adjust.
28776         (REG_ALLOC_ORDER): Adjust.
28777         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28778         (REG_CLASS_CONTENTS): Adjust.
28779         (RETURN_ADDR_RTX): Change comment.
28780         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28781         instead of 67.
28782         (REGISTER_NAMES): Adjust.
28783         (ADDITIONAL_REGISTER_NAMES): Adjust.
28784         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28785
28786 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28787
28788         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28789         Delete.
28790         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28791         (DWARF_FRAME_REGISTERS): Adjust.
28792         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28793         Adjust.
28794         (REG_ALLOC_ORDER): Adjust.
28795         (enum reg_class): Delete SPR_REGS.
28796         (REG_CLASS_NAMES): Delete SPR_REGS.
28797         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
28798         (REGISTER_NAMES): Adjust.
28799         (ADDITIONAL_REGISTER_NAMES): Adjust.
28800         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28801         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28802         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28803         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28804         (htm_spr_regno): Delete.
28805         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28806         argument.
28807         (rs6000_dbx_register_number): Adjust.
28808
28809 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28810
28811         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28812
28813 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28814
28815         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28816         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28817
28818 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
28819
28820         PR tree-optimization/88709
28821         PR tree-optimization/90271
28822         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28823         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28824         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
28825         variable.
28826         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28827         of the store merging group is larger than
28828         PARAM_STORE_MERGING_MAX_SIZE parameter.
28829         (split_group): Add bzero_first argument.  If set, always emit first
28830         the first store which must be = {} of the whole area and then for the
28831         rest of the stores consider all zero bytes as paddings.
28832         (imm_store_chain_info::output_merged_store): Check if first store
28833         is = {} of the whole area and if yes, determine which setting of
28834         bzero_first for split_group gives smaller number of stores.  Adjust
28835         split_group callers.
28836         (lhs_valid_for_store_merging_p): Allow decls.
28837         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28838         no elts.
28839         (pass_store_merging::process_store): Likewise.
28840
28841 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28842
28843         PR target/89424
28844         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28845         handling of V1TImode.
28846
28847 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
28848
28849         PR target/89221
28850         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28851         and enable_frame_pointer ...
28852         * configure.ac: ... here.  Update help strings for
28853         --enable-frame-pointer.
28854         * configure: Regenerate.
28855         * config/i386/i386-options.c (ix86_option_override_internal): Remove
28856         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28857         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28858         (USE_X86_64_FRAME_POINTER): Ditto.
28859
28860 2019-05-06  Martin Liska  <mliska@suse.cz>
28861
28862         * config.gcc: Append to target_gtfiles and fix indentation.
28863
28864 2019-05-06  Richard Biener  <rguenther@suse.de>
28865
28866         PR tree-optimization/90358
28867         * tree-vect-stmts.c (get_group_load_store_type): Properly
28868         detect unused upper half of load.
28869         (vectorizable_load): Likewise.
28870
28871 2019-05-06  Richard Biener  <rguenther@suse.de>
28872
28873         PR tree-optimization/88828
28874         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28875         (simplify_vector_constructor): ...here.  Handle constants in
28876         the constructor.
28877
28878 2019-05-06  Richard Biener  <rguenther@suse.de>
28879
28880         PR tree-optimization/90328
28881         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28882         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28883         is valid in the loop nest before using it.
28884         (initialize_data_dependence_relation): Adjust.
28885         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28886         loop as loop-nest to dr_may_alias_p.
28887
28888 2019-05-06  Richard Biener  <rguenther@suse.de>
28889
28890         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28891
28892 2019-05-06  Richard Biener  <rguenther@suse.de>
28893
28894         PR tree-optimization/90316
28895         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28896         compute target on demand.
28897         (get_continuation_for_phi): Remove code walking stmts to
28898         get to a target virtual operand which could end up being
28899         quadratic.
28900
28901 2019-05-06  Martin Liska  <mliska@suse.cz>
28902
28903         PR sanitizer/90312
28904         * config/i386/i386-options.c (ix86_option_override_internal): Error only
28905         when -mabi is selected to a non-default version.
28906
28907 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
28908             Martin Liska  <mliska@suse.cz>
28909
28910         * Makefile.in: Add lto-dump.texi.
28911         * cgraph.h: Add new functions get_visibility_string and
28912         get_symtab_type_string.
28913         * doc/gcc.texi: Include lto-dump section.
28914         * doc/lto-dump.texi: New file.
28915         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28916         (parse_dump_option): Factor out this function.
28917         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28918         (parse_dump_option): Export the function.
28919         * symtab.c (symtab_node::get_visibility_string): New function.
28920         (symtab_node::get_symtab_type_string): Likewise.
28921
28922 2019-05-06  Martin Liska  <mliska@suse.cz>
28923
28924         * config/i386/i386-builtins.c: New file.
28925         * config/i386/i386-builtins.h: New file.
28926         * config/i386/i386-expand.c: New file.
28927         * config/i386/i386-expand.h: New file.
28928         * config/i386/i386-features.c: New file.
28929         * config/i386/i386-features.h: New file.
28930         * config/i386/i386-options.c: New file.
28931         * config/i386/i386-options.h: New file.
28932         * config.gcc: Add new files into extra_objs and
28933         target_gtfiles.
28934         * config/i386/i386.c: Split content of the file
28935         into newly introduced files.
28936         * config/i386/i386.h: Declare common variables
28937         and macros.
28938         * config/i386/t-i386: Define dependencies for new files.
28939
28940 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
28941
28942         PR target/89400
28943         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28944         Restrict 'all' variant to 32-bit configurations.
28945         (unaligned_loadhiu): Likewise.
28946         (unaligned_storehi): Likewise.
28947         (unaligned_storesi): Likewise.
28948         (unaligned_loadhis): Disable when compiling for thumb1.
28949
28950 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
28951
28952         PR tree-optimization/90269
28953         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28954         Ignore clobbers.
28955
28956 2019-05-03  Martin Liska  <mliska@suse.cz>
28957
28958         * hash-map.h: Add is_empty function.
28959         * hash-set.h: Likewise.
28960         * hash-table.h: Likewise.
28961         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28962         elements () == 0 (and similar usages).
28963         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28964         * gimplify.c (gimplify_bind_expr): Likewise.
28965         (gimplify_switch_expr): Likewise.
28966         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28967         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28968         * postreload-gcse.c (dump_hash_table): Likewise.
28969         (gcse_after_reload_main): Likewise.
28970         * predict.c (combine_predictions_for_bb): Likewise.
28971         * tree-parloops.c (reduction_phi): Likewise.
28972         (separate_decls_in_region): Likewise.
28973         (transform_to_exit_first_loop): Likewise.
28974         (gen_parallel_loop): Likewise.
28975         (gather_scalar_reductions): Likewise.
28976         (try_create_reduction_list): Likewise.
28977         * var-tracking.c (dump_vars): Likewise.
28978         (emit_notes_for_changes): Likewise.
28979         (vt_emit_notes): Likewise.
28980
28981 2019-05-03  Richard Biener  <rguenther@suse.de>
28982
28983         PR tree-optimization/90316
28984         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28985         before running VN.
28986
28987 2019-05-03  Richard Biener  <rguenther@suse.de>
28988
28989         * tree-vect-stmts.c (get_group_load_store_type): Avoid
28990         peeling for gaps by loading only lower halves of vectors
28991         if possible.
28992         (vectorizable_load): Likewise.
28993
28994 2019-05-03  Richard Biener  <rguenther@suse.de>
28995
28996         PR middle-end/89518
28997         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28998
28999 2019-05-03  Richard Biener  <rguenther@suse.de>
29000
29001         PR middle-end/87314
29002         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
29003         Handle STRING_CST vs DECL or STRING_CST.
29004
29005 2019-05-03  Richard Biener  <rguenther@suse.de>
29006
29007         PR tree-optimization/88963
29008         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
29009         vector loads feeding only BIT_FIELD_REFs to component
29010         loads.  Rewrite stores fed by CONSTRUCTORs to component
29011         stores.
29012
29013 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
29014
29015         * opts.h (finish_options): Remove lang_mask argument.
29016         (print_help, help_option_argument): Declare.
29017         * opts.c (print_help): Remove forward declaration, no longer static.
29018         (finish_options): Remove lang_mask argument, don't call print_help
29019         here.
29020         * opts-global.c (decode_options): Adjust finish_option caller, call
29021         print_help here.
29022
29023         PR tree-optimization/90303
29024         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
29025         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
29026
29027 2019-05-03  Richard Biener  <rguenther@suse.de>
29028
29029         PR tree-optimization/89698
29030         * gimple-fold.c (canonicalize_constructor_val): Early out
29031         for constants, handle unfolded INTEGER_CSTs as they appear in
29032         C++ virtual table ctors.
29033
29034 2019-05-03  Richard Biener  <rguenther@suse.de>
29035
29036         * passes.c (execute_function_todo): Remove dead code.
29037
29038 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29039
29040         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
29041         the internal register number, for any "real" register.
29042
29043 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29044
29045         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
29046         correct numbers for TFHAR, TFIAR, TEXASR.
29047
29048 2019-05-02  Richard Biener  <rguenther@suse.de>
29049
29050         PR tree-optimization/89653
29051         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
29052         update-address-taken before the pass.
29053         * passes.def (pass_tree_loop_init): Put comment before it.
29054
29055 2019-05-02  Richard Biener  <rguenther@suse.de>
29056
29057         PR tree-optimization/89509
29058         * tree-ssa-structalias.c (compute_dependence_clique): Look
29059         at the first subvar when determining whether it is restrict.
29060
29061 2019-05-02  Richard Biener  <rguenther@suse.de>
29062
29063         PR tree-optimization/90273
29064         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
29065         useless debug stmts.
29066
29067 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
29068
29069         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
29070         ACLE branch.
29071         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
29072         SVE ACLE branch.
29073         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
29074         VEC_COND_EXPR be inserted to emulate a conditional internal function.
29075         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
29076         (vectorizable_reduction): Use the functions above to vectorize in a
29077         fully masked loop codes that don't have a conditional internal
29078         function.
29079
29080 2019-05-02  Martin Liska  <mliska@suse.cz>
29081
29082         * cgraphclones.c: Call valid_attribute_p with 1 for
29083         target_clone.
29084         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
29085         it's for target attribute.
29086         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
29087         Add new boolean argument.
29088         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
29089         Likewise.
29090         (ix86_valid_target_attribute_tree): Pass target_clone_attr
29091         to ix86_valid_target_attribute_inner_p.
29092         (ix86_valid_target_attribute_p): Pass flags argument to
29093         ix86_valid_target_attribute_inner_p.
29094         (get_builtin_code_for_version): Use 0 as it's target attribute.
29095
29096 2019-05-02  Martin Liska  <mliska@suse.cz>
29097
29098         * gcc.c (process_command): Add dummy file only
29099         if n_infiles == 0.
29100         * opts-global.c (decode_options): Pass lang_mask.
29101         * opts.c (print_help): New function.
29102         (finish_options): Print --help if help_option_argument
29103         is set.
29104         (common_handle_option): Factor out content of OPT__help_
29105         into print_help.
29106         * opts.h (finish_options): Add new argument.
29107
29108 2019-05-02  Martin Liska  <mliska@suse.cz>
29109
29110         PR target/88809
29111         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
29112         With -minline-all-stringops use inline expansion using 4B loop.
29113         * doc/invoke.texi: Document the change of
29114         -minline-all-stringops.
29115
29116 2019-05-01  Jeff Law  <law@redhat.com>
29117
29118         PR tree-optimization/88797
29119         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
29120         PHI feeds a conditional on the RHS of an assignment.
29121
29122 2019-04-30  Andrew Waterman  <andrew@sifive.com>
29123             Jim Wilson  <jimw@sifive.com>
29124
29125         * config/riscv/constraints.md (L): New.
29126         * config/riscv/predicates.md (lui_operand): New.
29127         (sfb_alu_operand): New.
29128         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
29129         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
29130         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
29131         * config/riscv/risc.md (type): Add sfb_alu.
29132         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
29133         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
29134         (branch_zero<mode>): Delete.
29135         (mov<mode>cc): New.
29136         (mov<GPR:mode><X:mode>cc): Likewise.
29137         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
29138
29139 2019-04-30  Nathan Sidwell  <nathan@acm.org>
29140
29141         * tree.h (MARK_TS_EXP): New.
29142
29143 2019-04-30  Martin Liska  <mliska@suse.cz>
29144
29145         * opts.c (enable_warning_as_error): Provide hints
29146         for unknown options.
29147
29148 2019-04-30  Martin Liska  <mliska@suse.cz>
29149
29150         PR debug/90288
29151         * doc/invoke.texi: Add missing dash for gas-locview-support
29152         and gno-as-locview-support.
29153
29154 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29155
29156         PR target/89093
29157         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
29158         whitespace at the start of target attribute string.
29159
29160 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29161
29162         PR target/86538
29163         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
29164         Define __ARM_FEATURE_ATOMICS.
29165
29166 2019-04-30  Martin Liska  <mliska@suse.cz>
29167
29168         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
29169         into built_in_function enum. Remove code for endp == 2 and
29170         use BUILT_IN_* constants.
29171         (gimple_fold_builtin): Call the function with fcode.
29172
29173 2019-04-30  Martin Liska  <mliska@suse.cz>
29174
29175         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
29176         DECL_FUNCTION_CODE into ix86_builtins enum before
29177         the switch statement.
29178
29179 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29180
29181         PR tree-optimization/89475
29182         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
29183         calls.
29184
29185 2019-04-30  Martin Liska  <mliska@suse.cz>
29186
29187         PR translation/90274
29188         * opts.c (print_filtered_help): Wrap string in _(...).
29189
29190 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
29191
29192         PR tree-optimization/90240
29193         Revert:
29194         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29195
29196         PR tree-optimization/90078
29197         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29198         checks for infinite_cost overflow.
29199
29200 2019-04-29  Jeff Law  <law@redhat.com>
29201
29202         * passes.def: Move -Wrestrict pass after copy propagation.
29203
29204 2019-04-29  Maya Rashish  <coypu@sdf.org>
29205
29206         * config.gcc (default_gnu_indirect_function): Default to yes
29207         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29208         sparc*-*-netbsd*, x86_64-*-netbsd*.
29209
29210 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
29211
29212         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29213         where cond2 is NE_EXPR.
29214         (is_value_included_in): Update comment.
29215
29216 2019-04-29  Richard Biener  <rguenther@suse.de>
29217
29218         PR tree-optimization/90278
29219         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29220         EH on comparison simplification.
29221
29222 2019-04-29  Jason Merrill  <jason@redhat.com>
29223
29224         PR c++/82081 - tail call optimization breaks noexcept
29225         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29226         nothrow function to a might-throw function into a tail call.
29227
29228 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29229
29230         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29231         (DDR_INNER_LOOP): Likewise.
29232         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29233         (initialize_data_dependence_relation): Likewise.
29234         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29235
29236 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
29237
29238         PR rtl-optimization/90257
29239         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29240         return value.
29241
29242         Revert the revert:
29243         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
29244
29245         PR target/90178
29246         Revert:
29247         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
29248
29249         Revert the revert:
29250         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
29251
29252         Revert:
29253         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
29254
29255         * lra-spills.c (lra_final_code_change): Remove useless move insns.
29256
29257 2019-04-29  Richard Biener  <rguenther@suse.de>
29258
29259         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29260         rhs issue a reset.
29261
29262 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
29263
29264         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
29265         varasm.h, and netbsd-protos.h.
29266
29267 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
29268
29269         PR target/89261
29270         * config/i386/i386-protos.h (ix86_data_alignment): Change
29271         the second argument type to unsigned int.
29272         * config/i386/i386.c (ix86_data_alignment): Change "align"
29273         argument type to unsigned int.
29274
29275 2019-04-27  Martin Liska  <mliska@suse.cz>
29276
29277         PR middle-end/90258
29278         * opt-suggestions.c (option_proposer::build_option_suggestions):
29279         When get_valid_option_values returns empty values, add the
29280         misspelling candidate.
29281
29282 2019-04-26  Jim Wilson  <jimw@sifive.com>
29283
29284         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29285         parameter.
29286         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29287         Pass orig_mode to riscv_build_integer.
29288         (riscv_split_integer): Pass mode to riscv_move_integer.
29289         (riscv_legitimize_const_move): Likewise.
29290         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29291         promoted_mode.  Replace force_reg call with code to load constant into
29292         promoted reg and then subreg it for the store.
29293         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29294         riscv_move_integer.
29295
29296 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
29297
29298         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29299         corrupt codes.
29300
29301 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
29302
29303         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29304         commentary about the encoding of precision.
29305
29306 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
29307
29308         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29309         * config/i386/t-freebsd64: New file.
29310         * config.gcc: Add the t-freebsd64 for multilib support.
29311
29312 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
29313
29314         * doc/extend.texi (vector_size): Add missing comma after @xref.
29315
29316 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
29317
29318         * BASE-VER: Set to 10.0.0.
29319
29320 2019-04-25  Richard Biener  <rguenther@suse.de>
29321
29322         PR middle-end/89765
29323         * gimplify.c (gimplify_expr): Avoid turning a lvalue
29324         VIEW_CONVERT_EXPR into one operating on an rvalue.
29325
29326 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
29327
29328         PR target/89929
29329         * config/i386/i386.c (feature_priority): Moved to file scope.
29330         (processor_features): Likewise.
29331         (processor_model): Likewise.
29332         (_arch_names_table): Likewise.
29333         (arch_names_table): Likewise.
29334         (_feature_list): Removed.
29335         (feature_list): Likewise.
29336         (_isa_names_table): Moved to file scope.  Add priority.
29337         (isa_names_table): Likewise.
29338         (get_builtin_code_for_version): Replace feature_list with
29339         isa_names_table.  Update error message for P_ZERO priority.
29340
29341 2019-04-25  Richard Biener  <rguenther@suse.de>
29342
29343         * tree-pass.h (make_pass_phi_only_cprop): Remove.
29344         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29345
29346 2019-04-24  Jeff Law  <law@redhat.com>
29347
29348         PR tree-optimization/90037
29349         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29350         * passes.def: Replace all instance of phi-only cprop with the
29351         lattice propagator.  Move propagation pass from after erroneous
29352         path isolation to before erroneous path isolation.
29353         * tree-ssa-phionlycprop.c: Remove.
29354
29355 2019-04-24  Richard Biener  <rguenther@suse.de>
29356
29357         PR middle-end/90213
29358         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29359         by size and BITS_PER_UNIT on poly-wide-ints.
29360
29361 2019-04-25  Richard Biener  <rguenther@suse.de>
29362
29363         PR middle-end/90194
29364         * match.pd: Add pattern to simplify view-conversion of an
29365         empty constructor.
29366
29367 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
29368
29369         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29370         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29371         for Go on 32 bit AIX.
29372         * config/rs6000/aix72.h: Likewise.
29373
29374 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
29375
29376         PR target/90193
29377         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29378         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29379
29380 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
29381
29382         PR target/89952
29383         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29384         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
29385         for restored hard frame pointer.
29386         (s390_sched_dependencies_evaluation): Implement new target hook.
29387         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29388
29389 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
29390
29391         * config/arc/arc-options.def: Fix typos and spelling mistakes.
29392         * config/arc/arc.c (arc_init): Cleanup warning message.
29393         (arc_override_options): Likewise.
29394
29395 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
29396
29397         PR target/90187
29398         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29399         a register if both if_true and if_false are MEMs.
29400
29401         PR tree-optimization/90208
29402         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29403         after labels of new_bb, not before them.
29404
29405         PR tree-optimization/90211
29406         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29407         which are not SSA_NAMEs.
29408
29409 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
29410
29411         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29412         AArch64.
29413         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29414
29415 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
29416
29417         PR rtl-optimization/87979
29418         * modulo-sched.c (sms_schedule): Start ii value "mii" should
29419         not equal zero.
29420
29421 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
29422
29423         PR rtl-optimization/84032
29424         * modulo-sched.c (ps_insn_find_column): Change condition so that
29425         branch will always be the last insn in a row inside partial
29426         schedule.
29427
29428 2019-04-23  Richard Biener  <rguenther@suse.de>
29429
29430         PR debug/90131
29431         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29432         dest_single_pred_p argument.
29433         (remove_forwarder_block): Adjust.
29434         (remove_forwarder_block_with_phi): Likewise.
29435
29436 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29437             Bernd Edlinger  <bernd.edlinger@hotmail.de>
29438             Jakub Jelinek  <jakub@redhat.com>
29439
29440         PR target/89093
29441         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29442         if used with general-regs-only.
29443         (arm_conditional_register_usage): Don't add non-general regs if
29444         general-regs-only.
29445         (arm_valid_target_attribute_rec): Handle general-regs-only.
29446         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29447         general-regs-only.
29448         (TARGET_HARD_FLOAT_SUB): Define.
29449         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29450         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29451         (TARGET_REALLY_IWMMXT2): Likewise.
29452         * config/arm/arm.opt: Add -mgeneral-regs-only.
29453         * doc/extend.texi: Document ARM general-regs-only target.
29454         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29455
29456 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29457
29458         PR tree-optimization/90078
29459         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29460         checks for infinite_cost overflow.
29461
29462 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29463
29464         PR tree-optimization/90021
29465         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29466         and check univariate against it.
29467         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29468         * tree-data-ref.c (add_other_self_distances): Pass new argument.
29469
29470 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
29471
29472         PR target/90178
29473         Revert:
29474         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
29475
29476         Revert the revert:
29477         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
29478
29479         Revert:
29480         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
29481
29482         * lra-spills.c (lra_final_code_change): Remove useless move insns.
29483
29484 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
29485
29486         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29487         names using operand format, rather than hard-wired.
29488         (speculation_barrier): Likewise.
29489
29490 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
29491
29492         PR tree-optimization/88055
29493         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29494         (gen_one_condition): Use it if !HONOR_NANS.
29495
29496 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
29497
29498         PR middle-end/90139
29499         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29500         assign_temp instead of gen_reg_rtx.
29501
29502 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
29503
29504         PR translation/90118
29505         * config/aarch64/aarch64.c (aarch64_override_options_internal):
29506         Add missing space before %<.
29507
29508 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
29509
29510         PR rtl-optimization/87871
29511         * ira-lives.c (make_object_dead): Don't add conflicts to
29512         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29513
29514 2019-04-18  Martin Sebor  <msebor@redhat.com>
29515
29516         PR middle-end/89797
29517         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29518         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29519         assuming type size fits in SHWI.
29520
29521 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
29522
29523         PR ipa/85051
29524         * ipa-inline.c (flatten_function): New parameter UPDATE.
29525         (ipa_inline, early_inliner): Use it.
29526
29527 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
29528
29529         * fold-const.c (int_const_binop): Return early on failure.
29530
29531 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
29532
29533         PR middle-end/85164
29534         * combine.c (force_int_to_mode): Cast the argument rather than
29535         the result of known_alignment.
29536         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29537
29538 2019-04-18  Richard Biener  <rguenther@suse.de>
29539
29540         PR debug/90131
29541         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29542         out from ...
29543         (remove_forwarder_block): ... here.
29544         (remove_forwarder_block_with_phi): Also move debug stmts here.
29545
29546 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
29547
29548         PR translation/79183
29549         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29550         inform where appropriate.
29551
29552 2019-04-18  Richard Biener  <rguenther@suse.de>
29553
29554         * tree.c (get_qualified_type): Put found type variants at the
29555         head of the variant list.
29556
29557 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29558
29559         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29560
29561 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
29562
29563         PR target/90125
29564         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29565         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29566         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29567         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29568         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29569
29570 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
29571
29572         * ira-conflicts.c (print_allocno_conflicts): Always print something,
29573         even for allocno's with no conflicts.
29574         (print_conflicts): Print an extra newline.
29575
29576 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29577
29578         * auto-inc-dec.c (attempt_change): Set the alignment of the
29579         temporary memory to that of the original.
29580
29581 2019-04-17  Joao Moreira  <jmoreira@suse.de>
29582
29583         * targhooks.c (default_print_patchable_function_entry): Emit
29584         __patchable_function_entries section with writable flags to allow
29585         relocation resolution.
29586
29587 2019-04-17  Jonny Grant  <jg@jguk.org>
29588
29589         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29590
29591 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
29592
29593         PR middle-end/90095
29594         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29595         on lowpart SUBREGs.
29596
29597 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
29598
29599         * config/arc/arc.c (arc_init): Format diagnostic string.
29600         (arc_override_options): Likewise.
29601         (check_if_valid_regno_const): Likewise.
29602         (arc_reorg): Likewise.
29603
29604 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
29605
29606         PR target/17108
29607         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29608         name.
29609         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
29610         name.
29611         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29612         (*movdi_update1): Use Pmode.
29613         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29614         (movdi_<mode>_update_stack): Rename to ...
29615         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
29616         use Pmode.
29617         (*movsi_update1): Use Pmode.
29618         (*movsi_update2): Use Pmode.
29619         (movsi_update): Rename to ...
29620         (movsi_<mode>_update): ... this.  Use Pmode.
29621         (movsi_update_stack): Fix condition.
29622         (*movhi_update1): Use Pmode.  Fix argument to
29623         avoiding_indexed_address_p.
29624         (*movhi_update2): Ditto.
29625         (*movhi_update3): Ditto.
29626         (*movhi_update4): Ditto.
29627         (*movqi_update1): Ditto.
29628         (*movqi_update2): Ditto.
29629         (*movqi_update3): Ditto.
29630         (*movsf_update1, *movdf_update1): Merge, rename to...
29631         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
29632         avoiding_indexed_address_p.  Add "size" attribute.
29633         (*movsf_update2, *movdf_update2): Merge, rename to...
29634         (*mov<mode>_update2): This.  Ditto.
29635         (*movsf_update3): Use Pmode.  Fix argument to
29636         avoiding_indexed_address_p.
29637         (*movsf_update4): Ditto.
29638         (allocate_stack): Simplify condition.  Adjust pattern names.
29639
29640 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
29641
29642         PR target/89093
29643         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29644         whitespace at the start of target attribute string.
29645
29646 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
29647
29648         PR target/84369
29649         * config/rs6000/power9.md: Add store forwarding bypass.
29650
29651 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
29652
29653         PR debug/89528
29654         * valtrack.c (dead_debug_insert_temp): Reset debug references
29655         to the return value of a call being removed.
29656
29657 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29658
29659         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29660         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29661         implement target hook.
29662         (arc_memory_move_cost): New function.
29663         (TARGET_REGISTER_MOVE_COST): Define.
29664         (TARGET_MEMORY_MOVE_COST): Likewise.
29665         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29666         (MEMORY_MOVE_COST): Likewise.
29667
29668 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29669
29670         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29671         (sibcall_value_insn): Likewise.
29672         * config/arc/constraints.md (Rs5): Remove.
29673
29674 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29675
29676         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29677         for last two fake registers.
29678         (arc_conditional_register_usage): Make sure fake frame and arg
29679         pointer regs are in general regs class.
29680         (FRAME_POINTER_MASK): Remove.
29681         (RETURN_ADDR_MASK): Remove.
29682         (arc_must_save_register): Use hard frame regnum.
29683         (frame_restore_reg): Use hard_frame_pointer_rtx.
29684         (arc_save_callee_saves): Likewise.
29685         (arc_restore_callee_saves): Likewise.
29686         (arc_save_callee_enter): Likewise.
29687         (arc_restore_callee_leave): Likewise.
29688         (arc_save_callee_milli): Likewise.
29689         (arc_eh_return_address_location): Likewise.
29690         (arc_check_multi): Use hard frame regnum.
29691         (arc_can_eliminate): Likewise.
29692         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29693         for register allocator.
29694         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29695         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29696         (FRAME_POINTER_REGNUM): Change it to a fake register.
29697         (HARD_FRAME_POINTER_REGNUM): Defined.
29698         (ARG_POINTER_REGNUM): Change it to a new fake register.
29699         (ELIMINABLE_REGS): Update.
29700         (REGISTER_NAMES): Update names.
29701         * config/arc/arc.md (LP_START): Remove.
29702         (LP_END): Likewise.
29703         (shift_si3_loop): Update pattern.
29704
29705 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
29706
29707         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29708         to avoid delay slot scheduling.
29709         (arc_must_save_register): Don't save SP.
29710         * config/arc/arc.md (stack_tie): Remove.
29711         (UNSPEC_ARC_STKTIE): Likewise.
29712
29713 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
29714             Shiva Chen  <shiva0217@gmail.com>
29715
29716         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29717         code gen with large shift amount.
29718
29719 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29720
29721         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29722         subreg.
29723
29724 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
29725
29726         PR target/90096
29727         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29728         print -m64/-mx32/-m32 if it is true.
29729         (ix86_debug_options, ix86_function_specific_print): Pass true as
29730         ADD_ABI_P to ix86_target_string.
29731         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29732         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29733         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29734
29735         PR rtl-optimization/90082
29736         * dce.c (can_delete_call): New function.
29737         (deletable_insn_p, mark_insn): Use it.
29738
29739         PR tree-optimization/90090
29740         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29741         throw internally.
29742         (is_division_by_square): Likewise.  Formatting fix.
29743
29744 2019-04-16  Richard Biener  <rguenther@suse.de>
29745
29746         PR tree-optimization/56049
29747         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29748         equality check if alias-set zero will prevail.
29749
29750 2019-04-15  Jeff Law  <law@redhat.com>
29751
29752         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29753         size and alignment as unsigned.
29754
29755 2019-04-15  Richard Biener  <rguenther@suse.de>
29756
29757         PR debug/90074
29758         * tree-loop-distribution.c (destroy_loop): Preserve correct
29759         debug info.
29760
29761 2019-04-15  Richard Biener  <rguenther@suse.de>
29762
29763         PR tree-optimization/90071
29764         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29765         abnormal operands from def stmts.
29766
29767 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
29768
29769         PR rtl-optimization/89794
29770         * combine.c (count_auto_inc): New function.
29771         (try_combine): Count how many auto_inc expressions there were in the
29772         original instructions.  Ensure we have the same number in the new
29773         instructions.  Remove the code that tried to ensure auto_inc side
29774         effects on i1 and i0 are not lost.
29775
29776 2019-04-15  Richard Biener  <rguenther@suse.de>
29777
29778         PR ipa/88936
29779         * tree.h (auto_var_p): Declare.
29780         * tree.c (auto_var_p): New function, split out from ...
29781         (auto_var_in_fn_p): ... here.
29782         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29783         member.
29784         (new_var_info): Initialize it.
29785         (set_uids_in_ptset): Also set the shadow variable uid if required.
29786         (ipa_pta_execute): Postprocess points-to solutions assigning
29787         shadow variable uids for locals that may reach their containing
29788         function recursively.
29789         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29790         assert but instead check whether the points-to solution is
29791         a singleton.
29792
29793 2019-04-15  Martin Jambor  <mjambor@suse.cz>
29794
29795         PR ipa/pr89693
29796         * cgraph.c (clone_of_p): Loop over clone chain for each step in
29797         the thunk chain.
29798
29799 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29800
29801         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29802
29803 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
29804             Kito Cheng  <kito.cheng@gmail.com>
29805             Shiva Chen  <shiva0217@gmail.com>
29806
29807         * config/nds32/nds32-md-auxiliary.c
29808         (nds32_legitimize_pic_address): Use new PIC pattern.
29809         (nds32_legitimize_tls_address): Use new TLS pattern.
29810         (nds32_output_symrel): New.
29811         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29812         (nds32_alloc_relax_group_id): Ditto.
29813         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29814         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29815         relax_group_id.
29816         (nds32_group_tls_insn): Ditto.
29817         (nds32_group_float_insns): Ditto.
29818         * config/nds32/nds32.md (tls_le): New.
29819         (sym_got): Ditto.
29820
29821 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
29822
29823         * configure: Add nds32 target for dwarf2 debug_line checking.
29824         * configure.ac: Regenerated.
29825
29826 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
29827
29828         PR lto/89358
29829         * ipa-devirt.c (skip_in_fields_list_p): New.
29830         (odr_types_equivalent_p): Use it.
29831
29832 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
29833
29834         PR target/89093
29835         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29836         instead of strncmp when checking for thumb and arm.  Formatting fixes.
29837
29838 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
29839
29840         * doc/install.texi: Document --with-target-system-zlib.
29841
29842 2019-04-12  Martin Sebor  <msebor@redhat.com>
29843
29844         PR c/88383
29845         PR c/89288
29846         PR c/89798
29847         PR c/89797
29848         * targhooks.c (default_vector_alignment): Avoid assuming
29849         argument fits in SHWI.
29850         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29851         a shift expression.
29852         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29853
29854 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29855
29856         PR rtl-optimization/89965
29857         * dce.c: Include rtl-iter.h.
29858         (struct check_argument_load_data): New type.
29859         (check_argument_load): New function.
29860         (find_call_stack_args): Check for loads from stack slots still tracked
29861         in sp_bytes and punt if any is found.
29862
29863         * config/mips/loongson-mmiintrin.h: Fix up #error message.
29864
29865 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
29866
29867         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29868         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29869
29870 2019-04-12  Martin Liska  <mliska@suse.cz>
29871
29872         PR middle-end/89970
29873         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29874         in error message.
29875         (separate_attrs): Handle multiple 'default's.
29876         (expand_target_clones): Rework error handling code.
29877
29878 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29879
29880         PR target/87532
29881         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29882         mode of vector rather than mode of destination for move instruction.
29883         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29884         Use QI inner mode with V16QI vector mode.
29885
29886 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29887
29888         PR target/52726
29889         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29890         "invalid %%t operand" in output_operand_lossage message.
29891
29892 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
29893
29894         * config/s390/predicates.md (permute_pattern_operand): New
29895         predicate.
29896         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29897         operand for the permute pattern.
29898         ("*vec_perm<mode>"): New insn definition.
29899         ("bswap<mode>"): Generate the permute pattern operand in the
29900         expander and perform the operand reloads for pre arch13 level
29901         already.
29902         ("*bswap<mode>_emu"): Rename to ...
29903         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29904         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29905         Add the USE operand for the permute pattern.
29906         ("*vec_set_bswap_vec<mode>"): Likewise.
29907
29908 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
29909
29910         PR c/89946
29911         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29912         and gcc_unreachable if it fails, just call tree_to_uhwi which
29913         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
29914         Start warning message with a lower-case letter.  Formatting fixes.
29915
29916         PR rtl-optimization/90026
29917         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29918         successors, look for BARRIERs inside of the whole BB_FOOTER chain
29919         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
29920         in cfglayout mode, use emit_barrier_after_bb.
29921
29922 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
29923
29924         PR rtl-optimization/87763
29925         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29926         New Instruction.
29927
29928 2019-04-11  Tom de Vries  <tdevries@suse.de>
29929
29930         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29931         max macro using statement expression.
29932
29933 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
29934
29935         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29936         * xcoffout.c (xcoff_private_rodata_section_name): Define.
29937         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29938         read_only_private_data_section using xcoff_private_rodata_section_name.
29939         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29940
29941 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
29942
29943         PR target/90016
29944         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29945
29946 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
29947
29948         PR rtl-optimization/89965
29949         * dce.c (sp_based_mem_offset): New function.
29950         (find_call_stack_args): Use sp_based_mem_offset.
29951
29952 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
29953
29954         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29955
29956 2019-04-11  Richard Biener  <rguenther@suse.de>
29957
29958         PR tree-optimization/90020
29959         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29960         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29961         * tree-ssa-pre.c (compute_avail): Use it to not put
29962         possibly trapping references after a call that might not
29963         return into EXP_GEN.
29964         * gcse.c (compute_hash_table_work): Do not elide
29965         marking a block containing a call if the call might not
29966         return.
29967
29968 2019-04-11  Richard Biener  <rguenther@suse.de>
29969
29970         PR tree-optimization/90018
29971         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29972         Test both SLP and interleaving variants.
29973
29974 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
29975
29976         * config/s390/8561.md: New file.
29977         * config/s390/driver-native.c (s390_host_detect_local_cpu):
29978         Add arch13 cpu model.
29979         * config/s390/s390-opts.h (enum processor_type): Likewise.
29980         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29981         (s390_get_unit_mask): Likewise.
29982         (s390_is_fpd): Likewise.
29983         (s390_is_fxd): Likewise.
29984         * config/s390/s390.h (s390_tune_attr): Likewise.
29985         * config/s390/s390.md: Include arch13 pipeline description.
29986         * config/s390/s390.opt: Add arch13.
29987
29988 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
29989
29990         PR rtl-optimization/87763
29991         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29992         New prototype.
29993         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29994         New function.
29995         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29996         New instruction.
29997         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29998         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29999         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
30000         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
30001
30002 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
30003
30004         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
30005         "Although" in -fipa-icf documentation.
30006
30007         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
30008         of using multiple -g options.
30009
30010 2019-04-10  Martin Liska  <mliska@suse.cz>
30011
30012         PR gcov-profile/89959
30013         * doc/gcov.texi: Make documentation of -x option
30014         more precise.
30015
30016 2019-04-10  Richard Biener  <rguenther@suse.de>
30017
30018         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
30019         member.
30020         (DR_GROUP_SAME_DR_STMT): Remove.
30021         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
30022         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
30023         replace with assert.
30024         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
30025         (vect_record_grouped_load_vectors): Remove unreachable code.
30026
30027 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
30028
30029         PR target/90016
30030         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
30031         obsolete reference to N.
30032
30033 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
30034
30035         PR middle-end/90025
30036         * expr.c (store_expr): Set properly size on the MEM passed to
30037         clear_storage.
30038
30039         PR c++/90010
30040         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
30041         with strlen in between hostsz-3 and hostsz-1 inclusive when no
30042         translation is needed, and when translation is needed, only append
30043         ... if the string length is hostsz or more bytes long.  Avoid using
30044         strncpy or strcat.
30045
30046 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
30047
30048         PR target/90024
30049         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
30050         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
30051         into three.
30052         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
30053         differences directly.
30054         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
30055
30056 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30057
30058         PR translation/90011
30059         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30060         from diagnostics.
30061         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
30062         diagnostics.
30063         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30064         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
30065         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
30066         trailing space from -gsplit-dwarf diagnostics.
30067
30068         PR tree-optimization/89998
30069         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
30070         instead of integer_type_node if possible, don't add ranges if return
30071         type is not compatible with int.
30072         * gimple-fold.c (gimple_fold_builtin_sprintf,
30073         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
30074         integer_type_node.
30075
30076 2019-04-09  Martin Liska  <mliska@suse.cz>
30077
30078         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
30079         * doc/install.texi: Document the new config.
30080
30081 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
30082
30083         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
30084         use gimple_expr_type for load and store calls.  Skip over the
30085         condition argument in a conditional internal function.
30086         Protect use of TREE_INT_CST_LOW.
30087
30088 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30089
30090         PR target/90015
30091         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
30092         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
30093         trailing period from it too.
30094
30095 2019-04-08  wu yuan  <wuyuan5@huawei.com>
30096
30097         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
30098         * config/aarch64/aarch64.md: Add "tsv110.md".
30099         * config/aarch64/tsv110.md: New file.
30100
30101 2019-04-08  Richard Biener  <rguenther@suse.de>
30102
30103         PR tree-optimization/90006
30104         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
30105         calls like lrint.
30106
30107 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
30108
30109         PR target/83033
30110         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
30111         construction.
30112         (fma_root_node): Likewise.
30113         (func_fma_steering): Likewise.
30114
30115 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
30116
30117         PR rtl-optimization/89865
30118         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
30119
30120         PR rtl-optimization/89865
30121         * config/i386/i386.md
30122         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
30123         numbers not to clash with the additional operands[4].
30124         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
30125         with extra register copy in the middle.
30126
30127 2019-04-08  Martin Liska  <mliska@suse.cz>
30128
30129         PR gcov-profile/89961
30130         * doc/gcov.texi: Document data_file.
30131         * gcov.c (generate_results): Add data_info into JSON output.
30132
30133 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
30134
30135         PR tree-optimization/89725
30136         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
30137         loop's chrec as invariant symbol.
30138         * tree-chrec.h (chrec_contains_symbols): New parameter.
30139         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
30140         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
30141         function of loops not in DDR's loop_nest.
30142         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30143
30144 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
30145
30146         PR target/89623
30147         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
30148         Mask.
30149
30150 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
30151
30152         PR target/89945
30153         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
30154         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
30155
30156 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
30157
30158         * sched-deps.c (sched_macro_fuse_insns): Check return value of
30159         targetm.fixed_condition_code_regs.
30160
30161 2019-04-05  Richard Biener  <rguenther@suse.de>
30162
30163         PR debug/89892
30164         PR debug/89905
30165         * tree-cfgcleanup.c (remove_forwarder_block): Always move
30166         debug bind stmts but reset them if they are not valid at the
30167         destination.
30168
30169 2019-04-05  Martin Liska  <mliska@suse.cz>
30170
30171         PR translation/89936
30172         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
30173         order to wrap keywords or arguments.
30174         * collect2.c (main): Likewise.
30175         (scan_prog_file): Likewise.
30176         (scan_libraries): Likewise.
30177         * common/config/riscv/riscv-common.c
30178         (riscv_subset_list::parsing_subset_version): Likewise.
30179         (riscv_subset_list::parse_std_ext): Likewise.
30180         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30181         Likewise.
30182         * config/arm/arm.c (arm_option_override): Likewise.
30183         * config/cris/cris.c (cris_print_operand): Likewise.
30184         * config/darwin-c.c (darwin_pragma_options): Likewise.
30185         (darwin_pragma_unused): Likewise.
30186         (darwin_pragma_ms_struct): Likewise.
30187         * config/ft32/ft32.c (ft32_print_operand): Likewise.
30188         * config/i386/i386.c (print_reg): Likewise.
30189         (ix86_print_operand): Likewise.
30190         * config/i386/xm-djgpp.h: Likewise.
30191         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
30192         * config/m32c/m32c.c (m32c_option_override): Likewise.
30193         * config/msp430/msp430.c (msp430_option_override): Likewise.
30194         * config/nds32/nds32.c (nds32_option_override): Likewise.
30195         * config/nvptx/mkoffload.c (main): Likewise.
30196         * config/rx/rx.c (rx_print_operand): Likewise.
30197         (valid_psw_flag): Likewise.
30198         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30199         (vms_pragma_nomember_alignment): Likewise.
30200         (vms_pragma_extern_model): Likewise.
30201         * lto-wrapper.c (compile_offload_image): Likewise.
30202         * omp-offload.c (oacc_parse_default_dims): Likewise.
30203         * symtab.c (symtab_node::verify_base): Likewise.
30204         * tlink.c (recompile_files): Likewise.
30205         (start_tweaking): Likewise.
30206         * tree-profile.c (parse_profile_filter): Likewise.
30207
30208 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
30209
30210         PR tree-optimization/89956
30211         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30212         multiple negates of the same value.
30213
30214 2019-04-04  Martin Sebor  <msebor@redhat.com>
30215
30216         PR middle-end/89957
30217         PR middle-end/89911
30218         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30219         have the same precision since the function crashes otherwise.
30220         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30221         has non-zero arguments.
30222
30223 2019-04-04  Martin Sebor  <msebor@redhat.com>
30224
30225         PR middle-end/89934
30226         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30227         out if the number of arguments is less than expected.
30228
30229 2019-04-04  Jeff Law  <law@redhat.com>
30230
30231         PR rtl-optimization/89399
30232         * ree.c (combine_set_extension): Use single_set rather than
30233         digging into PATTERN for items on the candidate list.
30234         (combine_reaching_defs): Likewise.
30235
30236 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
30237
30238         PR rtl-optimization/46590
30239         * loop-invariant.c (find_defs): Move df_remove_problem and
30240         df_process_deferred_rescans to move_invariants.
30241         Move df_live_add_problem and df_live_set_all_dirty calls
30242         to move_invariants.
30243         (move_invariants): Likewise.
30244         (move_loop_invariants): Likewise, making the df_live calls
30245         conditional on -O.  Remove the problem again if we added it
30246         locally.
30247
30248 2019-04-03  qing zhao  <qing.zhao@oracle.com>
30249
30250         PR tree-optimization/89730
30251         * ipa-inline.c (can_inline_edge_p): Delete the checking for
30252         -flive-patching=inline-only-static.
30253         (can_inline_edge_by_limits_p): Add the checking for
30254         -flive-patching=inline-only-static and grant always_inline
30255         even when -flive-patching=inline-only-static is specified.
30256
30257 2019-04-03  Jeff Law  <law@redhat.com>
30258
30259         PR rtl-optimization/81025
30260         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30261
30262 2019-04-03  Richard Biener  <rguenther@suse.de>
30263
30264         PR tree-optimization/84101
30265         * tree-vect-stmts.c: Include explow.h for hard_function_value,
30266         regs.h for hard_regno_nregs.
30267         (cfun_returns): New helper.
30268         (vect_model_store_cost): When vectorizing a store to a decl
30269         we return and the function ABI returns in a multi-reg location
30270         account for the possible spilling that will happen.
30271
30272 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
30273
30274         * config/s390/s390.c (s390_legitimate_address_p): Reject long
30275         displacement addresses for vector mode operands.
30276
30277 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
30278
30279         * config/arc/arc.c (GMASK_LEN): Define.
30280         (arc_restore_callee_saves): Restore first blink when
30281         !optimize_size.
30282
30283 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
30284
30285         * doc/extend.texi: Add deprecated comment on sign-return-address
30286         function attribute and add mbranch-protection.
30287         * doc/invoke.texi: Add bti to the options for mbranch-protection.
30288
30289 2019-04-03  Richard Biener  <rguenther@suse.de>
30290
30291         PR lto/89896
30292         * lto-wrapper.c (run_gcc): Avoid implicit rules making
30293         the all target phony.
30294
30295 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
30296
30297         PR target/89902
30298         PR target/89903
30299         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30300         Return false for variable DImode shifts.
30301         (dimode_scalar_chain::compute_convert_gain): Do not handle
30302         register count operand in variable DImode shifts.
30303         (dimode_scalar_chain::make_vector_copies): Remove support to copy
30304         count argument of a variable shift instruction to a vector register.
30305         (dimode_scalar_chain::convert_reg): Remove support to convert
30306         count argument of a variable shift instruction.
30307
30308 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30309
30310         PR rtl-optimization/84206
30311         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30312         iterating over loop headers.
30313
30314 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30315
30316         PR rtl-optimization/85876
30317         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30318         beyond the original fence.
30319
30320 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
30321
30322         * config.gcc: Mark spu* targets as deprecated/obsolete.
30323
30324 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30325
30326         * config/s390/s390-builtin-types.def: New builtin function type
30327         definitions. Remove unused types.
30328         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30329         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30330         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30331         overloaded builtins.
30332         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30333         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30334         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30335         (vec_double, vec_signed, vec_unsigned): Define to use the new
30336         overloaded builtins.
30337         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30338         Remove expanders.
30339
30340 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30341
30342         * config/s390/s390-builtin-types.def: New builtin function type
30343         definitions.
30344         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30345         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30346         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30347         (s390_vstrszh, s390_vstrszf): New low-level builtins.
30348         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30349         constant definitions.
30350         * config/s390/vecintrin.h (vec_search_string_cc)
30351         (vec_search_string_until_zero_cc): New builtin name definitions.
30352         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30353         expanders.
30354         ("vec_vstrs<mode>"): New insn definition.
30355
30356 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30357
30358         * config/s390/s390-builtin-types.def: Add new builtin function
30359         types.
30360         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30361         New overloaded builtins.
30362         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
30363         s390_vsrd.
30364         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30365         (UNSPEC_VEC_SLDBYTE): ... this.
30366         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30367         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30368         definitions.
30369         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30370         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30371         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30372
30373 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30374
30375         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30376         New insn definition.
30377         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30378         * config/s390/vector.md (V_HW_HSD): ... here.
30379
30380 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30381
30382         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30383         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30384         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30385         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30386         New insn definitions.
30387
30388 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30389
30390         * config/s390/s390-builtin-types.def: Add new builtin function type.
30391         * config/s390/s390-builtins.def: Add overloaded builtin
30392         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30393         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30394         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30395         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30396         ("eltswap<mode>"): New expander.
30397         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30398         insn definitions.
30399
30400 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30401
30402         * config/s390/s390-builtin-types.def: Add new builtin function types.
30403         * config/s390/s390-builtins.def: Add overloaded builtin
30404         s390_vec_revb. Add low-level builtins for vlbr and vstbr
30405         instructions.
30406         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30407         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30408         ("bswap<mode>"): New expander.
30409         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30410
30411 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30412
30413         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30414         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30415         vector builtin version number in __VEC__.
30416
30417 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30418
30419         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30420         iterators.
30421         (SFSI): New mode attribute.
30422         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30423         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30424         rename to ...
30425         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30426         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30427         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30428         ("floatsi<mode>2"): Add wcefb instruction.
30429
30430 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30431
30432         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30433         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30434         mode iterators.
30435         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30436         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30437         support 32 bit fp-int conversions. Rename to ...
30438         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30439         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30440         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30441         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30442         ... to these.
30443
30444 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30445
30446         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30447         if-then-else constructs if we can use the select instruction.
30448         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30449
30450 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30451
30452         * config/s390/s390.md ("*popcountdi_arch13_cc")
30453         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30454         definition.
30455         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30456         Append _z196 to make it ...
30457         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30458         ("popcounthi2_z196"): ... this.
30459         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30460         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30461
30462 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30463
30464         * config/s390/s390.c (s390_canonicalize_comparison): Convert
30465         certain compares for arch13 in order to make use of the condition
30466         code result produced by the new instructions.
30467         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30468         nxrk, and nxgrk instruction patterns.
30469         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30470         (inv_no): Add new code iterator together with some attributes.
30471         ("*andc_split_<mode>"): Disable splitter for arch13.
30472         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30473         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30474         ("*<ANDOR:bitops_name>c<GPR:mode>")
30475         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30476         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30477         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30478         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30479
30480 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30481
30482         * common/config/s390/s390-common.c (processor_flags_table): New
30483         entry for arch13.
30484         * config.gcc: Support arch13 with the --with-arch= configure flag.
30485         * config/s390/driver-native.c (s390_host_detect_local_cpu):
30486         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30487         * config/s390/s390.c (s390_get_sched_attrmask)
30488         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30489         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30490         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30491         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30492         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30493         definitions.
30494         * config/s390/s390.opt: Support arch13 as processor type in
30495         command line options.
30496
30497 2019-04-02  Martin Liska  <mliska@suse.cz>
30498
30499         PR translation/89912
30500         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30501         Fix param description of graphite-max-arrays-per-scop.
30502
30503 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30504
30505         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30506         (ASAN_CC1_SPEC): Use it in 64-bit mode.
30507         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30508
30509 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30510
30511         PR rtl-optimization/85412
30512         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30513         sel_sched_region_1, not after.
30514
30515 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30516
30517         PR rtl-optimization/86928
30518         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30519         compute_live if necessary.
30520         (sel_redirect_edge_and_branch): Likewise.
30521
30522 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
30523
30524         PR rtl-optimization/89865
30525         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30526         register if it is a part of small class.
30527
30528 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
30529
30530         PR rtl-optimization/87273
30531         * sel-sched-ir.c (merge_fences): Remove assert.
30532
30533 2019-04-01  Richard Biener  <rguenther@suse.de>
30534
30535         PR tree-optimization/46590
30536         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30537         (dom_walker::m_reachability): Add in place of...
30538         (dom_walker::m_skip_unreachable_blocks): ...this.
30539         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30540         Move complex initialization ...
30541         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
30542         lazily and initialize edge flags on each invocation.
30543         (dom_walker::bb_reachable): Use m_reachability.
30544
30545 2019-04-01  Martin Liska  <mliska@suse.cz>
30546
30547         PR driver/89861
30548         * opt-suggestions.c (option_proposer::build_option_suggestions):
30549         Add variant without any argument in order to provide better
30550         hints.
30551
30552 2019-04-01  Richard Biener  <rguenther@suse.de>
30553
30554         PR c/71598
30555         * gimple.c: Include langhooks.h.
30556         (gimple_get_alias_set): Treat enumeral types as the underlying
30557         integer type.
30558
30559 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
30560             Eric Botcazou  <ebotcazou@adacore.com>
30561
30562         PR rtl-optimization/89862
30563         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30564         that operates on the full registers for WORD_REGISTER_OPERATIONS
30565         architectures.
30566
30567 2019-03-29  Jim Wilson  <jimw@sifive.com>
30568
30569         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30570         Clear MASK_RVC and then set if C subset supported.
30571
30572 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
30573
30574         PR c/89872
30575         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30576         non-addressable complit into its initializer if it is volatile.
30577
30578 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
30579
30580         * opts-common.c (integral_argument): Set errno properly in one case.
30581
30582 2019-03-29  Martin Liska  <mliska@suse.cz>
30583
30584         * doc/invoke.texi: Remove -Wchkp from documentation.
30585
30586 2019-03-29  Martin Liska  <mliska@suse.cz>
30587
30588         * dbgcnt.c (print_limit_reach): New function.
30589         (dbg_cnt): Use it.
30590
30591 2019-03-29  Martin Liska  <mliska@suse.cz>
30592
30593         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30594         (dbg_cnt_process_opt): Parse first tokens aas
30595         dbg_cnt_process_single_pair is also using strtok.
30596
30597 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
30598
30599         PR rtl-optimization/87485
30600         * function.c (expand_function_end): Move stack_protect_epilogue
30601         before loading of return value into hard register(s).
30602
30603 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
30604
30605         PR middle-end/89621
30606         * tree-inline.h (struct copy_body_data): Add
30607         dont_remap_vla_if_no_change flag.
30608         * tree-inline.c (remap_type_3, remap_type_2): New functions.
30609         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30610         and remap_type_2 returns false.
30611         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30612         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30613         only from where it is copied to nested contexts.
30614
30615 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
30616
30617         PR target/89865
30618         * config/i386/i386.md (RMW operation with LEA peephole):
30619         Use LEAMODE mode attribute instead of SWI mode iterator for
30620         LEA pattern.
30621
30622 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
30623
30624         PR target/89848
30625         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30626         Also process XEXP (src, 0) of a shift insn.
30627
30628 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
30629
30630         PR middle-end/89725
30631         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30632         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30633
30634 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
30635
30636         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30637         test.
30638         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30639         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
30640         immediately after first one with df_analyze in between, but rather
30641         process all bbs, queueing ones that need second pass in a worklist,
30642         df_analyze, process queued debug insn changes and if second pass is
30643         needed, process bbs from worklist, df_analyze, process queued debug
30644         insns again.
30645
30646         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30647         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30648         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30649
30650 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
30651
30652         PR c/79022
30653         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30654         definition.
30655
30656 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
30657
30658         PR target/85667
30659         * config/i386/i386.c (ix86_function_value_1): Call the newly added
30660         function for 32-bit MS_ABI.
30661         (function_value_ms_32): New function.
30662
30663 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
30664
30665         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30666         (movdi): Call gen_movdi_symbol_save_scc.
30667         (gen_movdi_symbol_save_scc): New insn and split.
30668
30669 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
30670
30671         PR rtl-optimization/89313
30672         * function.c (matching_constraint_num): New static function.
30673         (match_asm_constraints_1): Use it.  Fixup white space and comment.
30674         Don't replace inputs with non-matching constraints which conflict
30675         with early clobber outputs.
30676
30677 2019-03-27  Jeff Law  <law@redhat.com>
30678
30679         PR rtl-optimization/87761
30680         PR rtl-optimization/89826
30681         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30682         slightly later.
30683         (pass_cprop_hardreg::execute): Call df_analyze after adding the
30684         note problem to get REG_DEAD/REG_UNUSED notes updated.
30685
30686 2019-03-27  Richard Biener  <rguenther@suse.de>
30687
30688         PR tree-optimization/89463
30689         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30690         queue edges to remove.
30691         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30692         dead stmts.  Delay edge removal until PHIs are removed to
30693         make debug-stmt creation not confused by seemingly degenerate
30694         PHIs.
30695
30696 2019-03-27  Alan Modra  <amodra@gmail.com>
30697
30698         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30699         throughout file.
30700         * config/rs6000/darwin.h: Likewise.
30701         * config/rs6000/rs6000.c: Likewise.
30702
30703 2019-03-27  Alan Modra  <amodra@gmail.com>
30704
30705         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30706         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
30707
30708 2019-03-26  Andrew Waterman  <andrew@sifive.com>
30709             Jim Wilson  <jimw@sifive.com>
30710
30711         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30712         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30713         (generic_idivdi, generic_fmul_single, generic_fmul_double)
30714         (generic_fdiv, generic_fsqrt): Add check for generic tune.
30715         (generic_alu): Add auipc to type list.
30716         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30717         (riscv_microarchitecture): Declare.
30718         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30719         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30720         field.
30721         (riscv_microarchitecture): New.
30722         (sifive_7_tune_info): New.
30723         (riscv_cpu_info_table): Add microarchitecture value for rocket and
30724         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
30725         entries.
30726         (riscv_store_data_bypass_p): New.
30727         (riscv_option_override): Set riscv_microarchitecture from
30728         cpu->microarchitecture.
30729         * config/riscv/riscv.md: Include sifive-7.md.
30730         (type): Add auipc.
30731         (tune): New.
30732         (auipc<mode>): Change type to auipc.
30733         (restore_stack_nonlocal): New.
30734         * config/riscv/sifive-7.md: New.
30735         * doc/invoke.texi (RISC-V Options): Update mtune docs.
30736
30737 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
30738
30739         PR target/89827
30740         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30741         Also process XEXP (src, 0) of a shift insn.
30742
30743 2019-03-26  Richard Biener  <rguenther@suse.de>
30744
30745         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30746         (copy_debug_stmt): Likewise.
30747         (expand_call_inline): Likewise.
30748         (copy_bb): Avoid redundant lookup & set of gimple_block.
30749         * gimple-low.c (lower_gimple_return): Likewise.
30750         (lower_builtin_setjmp): Likewise.
30751
30752 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
30753
30754         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30755         is constant 0, turn into static const data member initialized to false.
30756         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30757         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30758
30759 2019-03-26  Jason Merrill  <jason@redhat.com>
30760             Jakub Jelinek  <jakub@redhat.com>
30761
30762         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30763         method.
30764         (mem_alloc_description::release_object_overhead): Fix comment typos.
30765         * hash-table.h (hash_table::~hash_table): Call
30766         release_instance_overhead only if m_entries is non-NULL, otherwise
30767         call unregister_descriptor.
30768
30769 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
30770
30771         PR tree-optimization/81740
30772         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30773         In case of outer loop vectorization, check for backward dependence
30774         at the inner loop if outer loop dependence is reversed.
30775
30776 2019-03-26  Alan Modra  <amodra@gmail.com>
30777
30778         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30779         rs6000_vector_mem init.  Correct wI and wJ comment.
30780
30781 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
30782
30783         PR rtl-optimization/88347
30784         PR rtl-optimization/88423
30785         * sched-deps.c (sched_analyze_insn): Take into account that for
30786         tablejumps the barrier appears after a label and a jump_table_data.
30787
30788 2019-03-25  Martin Sebor  <msebor@redhat.com>
30789
30790         PR c/89812
30791         * c-common.c (check_user_alignment): Rename local.  Correct maximum
30792         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
30793         convert it to UHWI when it fits.
30794
30795 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
30796
30797         PR debug/86964
30798         * dwarf2out.c (premark_used_variables): New function.
30799         (prune_unused_types_walk): Do not mark not premarked external
30800         variables.
30801         (prune_unused_types): Call premark_used_variables.
30802
30803 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
30804
30805         PR rtl-optimization/89676
30806         * lra-constraints.c (curr_insn_transform): Do match reload for
30807         early clobbers when the match was successful only for different
30808         registers.
30809
30810 2019-03-25  Martin Sebor  <msebor@redhat.com>
30811
30812         * doc/extend.texi (Common Type Attributes): Document vector_size.
30813         (Common Variable Attributes): Mention size constraint.  Correct
30814         quoting and typos.
30815         (Vector Extensions): Use @dfn when defining bas type.  Clarify
30816         base type and size constraints.
30817
30818 2019-03-25  Richard Biener  <rguenther@suse.de>
30819
30820         PR tree-optimization/89789
30821         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30822         changes from non-undefined back to undefined.
30823
30824 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
30825
30826         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30827         heap string and a gc string, but since this variable is unknown to
30828         ggc the gc string might get reused and corrupted. Fixed by always
30829         using a heap string.
30830
30831 2019-03-25  Richard Biener  <rguenther@suse.de>
30832
30833         PR tree-optimization/89779
30834         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30835         to remove IV defs, delay actual removal.
30836         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
30837         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30838         very end, properly also reset loop control IV information.
30839
30840 2019-03-25  Richard Biener  <rguenther@suse.de>
30841
30842         PR tree-optimization/89802
30843         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30844         move EH data to folded stmt.
30845
30846 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30847
30848         * config/s390/s390-builtin-types.def: Remove few unused types and
30849         fix sort order for others.
30850
30851 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
30852
30853         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30854         expected and found types with -mdebug during builtin matching.
30855
30856 2019-03-25  Richard Biener  <rguenther@suse.de>
30857
30858         PR middle-end/89790
30859         * fold-const.c (operand_equal_p): Revert last change with
30860         updated comment.
30861
30862 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
30863
30864         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30865         notes for the result of the __tls_get_addr calls.
30866         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30867
30868 2019-03-24  Jeff Law  <law@redhat.com>
30869
30870         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30871
30872         PR rtl-optimization/87761
30873         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30874         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
30875         as needed.
30876         (pass_cprop_hardreg::execute): Add df note problem and defer insn
30877         rescans.  Reprocess blocks as needed, calling df_analyze before
30878         reprocessing.  Always call df_analyze before fixing up debug bind
30879         insns.
30880
30881 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
30882
30883         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30884         big endian.
30885
30886 2019-03-22  Andrew Pinski  <apinski@marvell.com>
30887
30888         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30889         attrribute for uxtw.
30890
30891 2019-03-26  Jeff Law  <law@redhat.com>
30892
30893         PR rtl-optimization/87761
30894         * config/mips/mips-protos.h (mips_split_move): Add new argument.
30895         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30896         (mips_split_move): Accept new INSN argument.  Try to forward SRC
30897         into the next instruction.
30898         (mips_split_move_insn): Pass INSN through to mips_split_move.
30899
30900 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
30901
30902         PR rtl-optimization/89676
30903         * lra-constraints.c (curr_insn_transform): Do match reload for
30904         early clobbers even if the match was successful.
30905
30906 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
30907
30908         PR c++/87481
30909         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30910
30911 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
30912
30913         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30914
30915 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
30916
30917         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30918         <avx512>_fmsub_<mode>_mask3<round_name>,
30919         <avx512>_fnmadd_<mode>_mask3<round_name>,
30920         <avx512>_fnmsub_<mode>_mask3<round_name>,
30921         avx512f_vmfmadd_<mode>_mask3<round_name>,
30922         avx512f_vmfmsub_<mode>_mask3<round_name>,
30923         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30924         instead of register_operand and %v instead of v for match_operand 1.
30925         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30926         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
30927         <round_nimm_predicate> instead of register_operand and %v instead of v
30928         for match_operand 1.
30929
30930         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30931         <avx512>_fmadd_<mode>_mask3<round_name>,
30932         <avx512>_fmsub_<mode>_mask<round_name>,
30933         <avx512>_fmsub_<mode>_mask3<round_name>,
30934         <avx512>_fnmadd_<mode>_mask<round_name>,
30935         <avx512>_fnmadd_<mode>_mask3<round_name>,
30936         <avx512>_fnmsub_<mode>_mask<round_name>,
30937         <avx512>_fnmsub_<mode>_mask3<round_name>,
30938         <avx512>_fmaddsub_<mode>_mask<round_name>,
30939         <avx512>_fmaddsub_<mode>_mask3<round_name>,
30940         <avx512>_fmsubadd_<mode>_mask<round_name>,
30941         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30942         <round_nimm_predicate> instead of nonimmediate_operand.
30943         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30944         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30945         Use register_operand instead of <round_nimm_predicate> for the
30946         operand that needs to match output.
30947         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30948         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30949         Likewise.  Formatting fixes.
30950
30951         PR target/89784
30952         * config/i386/i386.c (enum ix86_builtins): Remove
30953         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30954         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30955         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30956         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30957         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30958         __builtin_ia32_vfmsubss3_mask3): New builtins.
30959         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30960         avx512f_vmfmadd_<mode>_mask3<round_name>,
30961         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30962         *avx512f_vmfmsub_<mode>_mask<round_name>,
30963         avx512f_vmfmsub_<mode>_mask3<round_name>,
30964         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30965         *avx512f_vmfnmadd_<mode>_mask<round_name>,
30966         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30967         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30968         *avx512f_vmfnmsub_<mode>_mask<round_name>,
30969         avx512f_vmfnmsub_<mode>_mask3<round_name>,
30970         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30971         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30972         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30973         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30974         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30975         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30976         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30977         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30978         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30979         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30980         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30981         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30982         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30983         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30984         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30985         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30986         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30987         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30988         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30989         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30990         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30991         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30992
30993 2019-03-21  Martin Sebor  <msebor@redhat.com>
30994
30995         PR tree-optimization/89350
30996         * builtins.c (compute_objsize): Also ignore offsets whose upper
30997         bound is negative.
30998         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30999         (builtin_memref::builtin_memref): Initialize new member.
31000         Allow EXPR to be null.
31001         (builtin_memref::extend_offset_range): Replace local with a member.
31002         Avoid assuming pointer offsets are unsigned.
31003         (builtin_memref::set_base_and_offset): Determine base object
31004         before computing offset range.
31005         (builtin_access::builtin_access): Handle memset.
31006         (builtin_access::generic_overlap): Replace local with a member.
31007         (builtin_access::strcat_overlap): Same.
31008         (builtin_access::overlap): Same.
31009         (maybe_diag_overlap): Same.
31010         (maybe_diag_access_bounds): Same.
31011         (wrestrict_dom_walker::check_call): Handle memset.
31012         (check_bounds_or_overlap): Same.
31013
31014 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
31015             Jakub Jelinek  <jakub@redhat.com>
31016
31017         PR lto/89692
31018         * tree.c (fld_type_variant, fld_incomplete_type_of,
31019         fld_process_array_type): Call fld->pset.add and don't call
31020         add_tree_to_fld_list if it returns true.
31021         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
31022         non-marked types from TYPE_NEXT_VARIANT list.
31023         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
31024
31025 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
31026
31027         * hash-table.h (hash_table): Add Lazy template parameter defaulted
31028         to false, if true, don't alloc_entries during construction, but defer
31029         it to the first method that needs m_entries allocated.
31030         (hash_table::hash_table, hash_table::~hash_table,
31031         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
31032         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
31033         hash_table::clear_slot, hash_table::traverse_noresize,
31034         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
31035         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
31036         false.
31037         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
31038         NO_INSERT instead of find_with_hash.
31039         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
31040         hash_set::m_table): Add Lazy to template params of hash_table.
31041         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
31042         * attribs.c (test_attribute_exclusions): Likewise.
31043         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
31044         hash_set.  Add tests for hash_set with Lazy = true.
31045
31046 2019-03-21  Richard Biener  <rguenther@suse.de>
31047
31048         PR tree-optimization/89779
31049         * tree.c (tree_nop_conversion): Consolidate and fix defensive
31050         checks with respect to released SSA names now having error_mark_node
31051         type.
31052         * fold-const.c (operand_equal_p): Likewise.
31053
31054 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
31055
31056         PR target/89775
31057         * config/s390/s390.c (global_not_special_regno_p): Move to make it
31058         available to ...
31059         (s390_optimize_register_info): Use global_not_special_regno_p to
31060         check for global regs.
31061
31062 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
31063
31064         PR target/89752
31065         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
31066         update this_alternative nor this_alternative_set.
31067
31068 2019-03-19  Jim Wilson  <jimw@sifive.com>
31069
31070         PR target/89411
31071         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
31072         align, size, offset.  Use them to handle a BLKmode reference.  Update
31073         comment.
31074         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
31075
31076 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31077
31078         PR rtl-optimization/89768
31079         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
31080         instead of GEN_INT.
31081         (unroll_loop_runtime_iterations): Likewise.
31082
31083 2019-03-19  Martin Sebor  <msebor@redhat.com>
31084
31085         PR tree-optimization/89644
31086         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
31087         rather than endptr as an indicator of nul-termination.
31088
31089         PR tree-optimization/89644
31090         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
31091         arrays in determining sequence sizes in strncpy and stpncpy.
31092
31093 2019-03-19  Martin Liska  <mliska@suse.cz>
31094
31095         PR middle-end/89737
31096         * predict.c (combine_predictions_for_bb): Empty likely_edges and
31097         unlikely_edges if there's an edge that belongs to both these sets.
31098
31099 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
31100
31101         PR target/89746
31102         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
31103         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
31104         go via a stack temporary.
31105
31106 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31107
31108         PR target/89378
31109         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
31110         instead of gen_rtx_SUBREG.
31111         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
31112
31113 2019-03-19  Richard Biener  <rguenther@suse.de>
31114
31115         PR debug/88389
31116         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
31117
31118 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
31119
31120         PR lto/87809
31121         PR lto/89335
31122         * tree.c (free_lang_data_in_decl): Do not free context of C++
31123         destrutors.
31124
31125 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31126
31127         PR target/89506
31128         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
31129         subs for the first alternative except when operands[3] is 1.
31130
31131         PR target/89752
31132         * gimplify.c (gimplify_asm_expr): For output argument with
31133         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
31134         diagnose error.
31135
31136 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
31137
31138         PR rtl-optimization/89753
31139         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31140         explicit unrolling factor even more robust.
31141
31142 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31143
31144         PR target/89726
31145         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
31146         compensation use x2 += 1 instead of x2 -= -1 and when honoring
31147         signed zeros, do another copysign after the compensation.
31148
31149 2019-03-18  Martin Sebor  <msebor@redhat.com>
31150
31151         PR tree-optimization/89720
31152         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
31153         more conservatively, the same as anti-range.
31154
31155 2019-03-18  Richard Biener  <rguenther@suse.de>
31156
31157         PR middle-end/88945
31158         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
31159         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
31160         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
31161         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
31162
31163 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
31164
31165         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
31166         Extend queue to 1024 entries.
31167         Add "consumed" field.
31168         (gomp_print_output): Remove print_index parameter.
31169         Add final parameter.
31170         Change limit to unsigned.
31171         Use consumed field to implement circular buffer.
31172         Detect interrupted print in final pass.
31173         Flush output at the end.
31174         (run): Update gomp_print_output usage.
31175         (main): Initialize kernargs->output_data.consumed.
31176
31177 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
31178
31179         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
31180         calculation of the minimum number of scalar iterations for
31181         fully-predicated loops.
31182
31183 2019-03-18  Martin Jambor  <mjambor@suse.cz>
31184
31185         PR tree-optimization/89546
31186         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
31187         any propagation to its children took place.
31188
31189 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
31190
31191         PR target/89627
31192         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
31193         parameter, and make use of it.
31194         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
31195
31196 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31197
31198         * config/arc/arc.opt (mcode-density-frame): Get the inital value
31199         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31200         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31201         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31202         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31203         match what the ops is doing.
31204         (push_multi_fp_blink): Likewise.
31205         * config/arc/arc.c (arc_override_options): Enable enter/leave when
31206         compiling for size and elf target.
31207         (arc_save_callee_enter): Adjust note to match what enter/leave
31208         operation does.
31209
31210 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31211
31212         * config/arc/arc.md (tst_movb): Fix constraint.
31213
31214 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31215
31216         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31217
31218 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31219
31220         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31221         * config/arc/arc.c (arc_conditional_register_usage): Remove all
31222         reg_alloc_order references.
31223         (size_alloc_order): Define.
31224         (arc_adjust_reg_alloc_order): New function.
31225         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31226         order.
31227         (ADJUST_REG_ALLOC_ORDER): Define.
31228         (HONOR_REG_ALLOC_ORDER): Likewise.
31229
31230 2019-03-18  Richard Biener  <rguenther@suse.de>
31231
31232         PR target/87561
31233         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31234         loads and stores a bit more.
31235
31236 2019-03-18  Richard Biener  <rguenther@suse.de>
31237
31238         PR target/87561
31239         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31240         load pessimization to stores as well.
31241
31242 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
31243
31244         PR middle-end/86979
31245         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31246         successor, use NULL as its av set.
31247
31248 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
31249
31250         PR rtl-optimization/89721
31251         * lra-constraints (invariant_p): Return false if side_effects_p holds.
31252
31253 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
31254
31255         PR target/87532
31256         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31257         When handling vec_extract, use modular arithmetic to allow
31258         constant selectors greater than vector length.
31259         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31260         V1TImode vectors to have constant selector values greater than 0.
31261         Use modular arithmetic to compute vector index.
31262         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31263         index for in-memory vectors.  Correct code generation for
31264         in-register vectors.
31265         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31266         compute index.
31267
31268 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
31269
31270         PR c++/88534
31271         PR c++/88537
31272         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31273         VAR_DECL args.
31274
31275 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
31276
31277         PR c++/89709
31278         * tree.c (inchash::add_expr): Strip any location wrappers.
31279         * fold-const.c (operand_equal_p): Move stripping of location wrapper
31280         after hash verification.
31281
31282         PR debug/89704
31283         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31284         SIGN_EXTEND and ZERO_EXTEND.
31285
31286 2019-03-14  Jason Merrill  <jason@redhat.com>
31287             Jakub Jelinek  <jakub@redhat.com>
31288
31289         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31290         than if is_empty (*slot).
31291         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31292         existing elt and for elt removal.
31293         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31294         of already removed elt.
31295
31296 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
31297
31298         PR target/89650
31299         * config/i386/i386.c (remove_partial_avx_dependency): Handle
31300         REG_EH_REGION note.
31301
31302 2019-03-14  Martin Liska  <mliska@suse.cz>
31303
31304         PR other/89712
31305         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31306
31307 2019-03-14  Richard Biener  <rguenther@suse.de>
31308
31309         PR target/89711
31310         * config/i386/i386.c (make_resolver_func): Properly set
31311         DECL_CONTEXT on the RESULT_DECL.
31312         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31313
31314 2019-03-14  Richard Biener  <rguenther@suse.de>
31315
31316         * gimple-pretty-print.c: Include cfgloop.h.
31317         (dump_gimple_phi): Adjust.
31318         (dump_gimple_bb_header): Dump loop header for GIMPLE.
31319         (pp_cfg_jump): Adjust.
31320         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31321         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31322         (lower_phi_internal_fn): Remove.
31323         (verify_gimple_call): Remove IFN_PHI special-casing.
31324         (dump_function_to_file): Dump IL state.
31325         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31326         done to deal with PHI nodes being present in non-SSA state.
31327
31328 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31329
31330         PR ipa/89684
31331         * multiple_target.c (create_dispatcher_calls): Change
31332         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31333         In the node->iterate_referring loop, push *ref rather than ref, call
31334         ref->remove_reference () and always pass 0 to iterate_referring.
31335
31336         PR rtl-optimization/89679
31337         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31338         would contain a paradoxical SUBREG.
31339
31340 2019-03-14  Richard Biener  <rguenther@suse.de>
31341
31342         PR tree-optimization/89710
31343         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31344         safe_dyn_cast.
31345
31346 2019-03-14  Martin Liska  <mliska@suse.cz>
31347
31348         * coverage.c (coverage_begin_function): Stream also
31349         end_column.
31350         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
31351         documentation about function declaration location.
31352         * gcov-dump.c (tag_function): Print whole range
31353         of function declaration.
31354         * gcov.c (struct function_info): Add end_column field.
31355         (function_info::function_info): Initialize it.
31356         (output_json_intermediate_file): Output {start,end}_column
31357         fields.
31358         (read_graph_file): Read end_column.
31359
31360 2019-03-14  Richard Biener  <rguenther@suse.de>
31361
31362         PR middle-end/89698
31363         * fold-const.c (operand_equal_p): For INDIRECT_REF check
31364         that the access types are similar.
31365
31366 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31367
31368         PR tree-optimization/89703
31369         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31370         aren't compatible also with builtin_decl_explicit.  Check pure
31371         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31372         and BUILT_IN_STPNCPY{,_CHK}.
31373
31374 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
31375
31376         PR target/89523
31377         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31378         addr32 prefix to VSIB address for X32.
31379         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31380         "%M2" to opcode.
31381         (*avx512pf_gatherpf<mode>df_mask): Likewise.
31382         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31383         (*avx512pf_scatterpf<mode>df_mask): Likewise.
31384         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31385         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31386         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31387         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31388         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31389         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31390         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31391         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31392         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31393         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31394         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31395         (*avx512f_scatterdi<mode>): Likewise.
31396
31397 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31398
31399         PR target/85860
31400         * lra-constraints.c (inherit_in_ebb): Update
31401         potential_reload_hard_regs along with live_hard_regs.
31402
31403 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
31404
31405         PR debug/89498
31406         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31407         DWARF_OFFSET_SIZE.
31408         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31409
31410 2019-03-13  Martin Sebor  <msebor@redhat.com>
31411
31412         PR tree-optimization/89662
31413         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31414         has a size.
31415
31416 2019-03-13  Richard Biener  <rguenther@suse.de>
31417
31418         PR middle-end/89677
31419         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31420         throw FP expressions at tree-affine.
31421
31422 2019-03-14  Richard Biener  <rguenther@suse.de>
31423
31424         * tree-pretty-print.c (dump_generic_node): For -gimple properly
31425         dump negative integer constants using _Literal (type) -num.
31426
31427 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
31428
31429         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31430         nonlocal_value member.
31431
31432         PR middle-end/88588
31433         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31434         (ipa_simd_modify_function_body): Handle PHIs.
31435
31436 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31437
31438         * config/s390/s390.c (s390_option_override_internal): Use more
31439         aggressive inlining parameters.
31440
31441 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31442
31443         * config/s390/3906.md: New file.
31444         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31445         (LONGRUNNING_THRESHOLD): Remove.
31446         (MAX_SCHED_MIX_SCORE): Decrease.
31447         (MAX_SCHED_MIX_DISTANCE): Decrease.
31448         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31449         (struct s390_sched_state): New struct to hold scheduling state.
31450         (S390_SCHED_STATE_NORMAL): Remove.
31451         (S390_SCHED_STATE_CRACKED): Remove.
31452         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31453         (s390_get_sched_attrmask): Use new attribute.
31454         (s390_get_unit_mask): Use new units.
31455         (s390_is_fpd): New function.
31456         (s390_is_fxd): New function.
31457         (s390_is_longrunning): New function.
31458         (s390_sched_score): Use new functions.
31459         (s390_sched_reorder): Likewise.
31460         (s390_sched_variable_issue): Rework and use new functions.
31461         (s390_sched_init): Use new functions.
31462         * config/s390/s390.h (s390_tune_attr): Add z14.
31463         * config/s390/s390.md: Add z14.
31464
31465 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
31466
31467         * config/s390/2964.md: Update pipeline description.
31468         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31469         (LONGRUNNING_THRESHOLD): Remove.
31470         (LATENCY_FACTOR): Remove.
31471         (s390_get_unit_mask): Add unit.
31472         (s390_sched_score): Use fxd/fpd.
31473         (s390_sched_variable_issue): Use fxd/fpd.
31474
31475 2019-03-12  Martin Liska  <mliska@suse.cz>
31476
31477         * config/i386/i386.c: Reword an error message.
31478
31479 2019-03-12  Martin Jambor  <mjambor@suse.cz>
31480
31481         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31482         terminate with newline.
31483
31484 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
31485
31486         PR target/52726
31487         * config/s390/s390.md (tabort): Use %wd instead of
31488         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31489         letters and periods.
31490         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31491         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31492         's with %< and %>.
31493
31494         PR middle-end/89663
31495         * builtins.c (expand_builtin_int_roundingfn,
31496         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31497         gcc_unreachable if validate_arglist fails.
31498
31499 2019-03-12  Richard Biener  <rguenther@suse.de>
31500
31501         PR tree-optimization/89664
31502         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31503         free the occurance tree after the early out.
31504
31505 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
31506
31507         PR middle-end/89655
31508         PR bootstrap/89656
31509         * vr-values.c (vr_values::update_value_range): If
31510         old_vr->varying_p (), don't update it, make new_vr also VARYING
31511         and return false.
31512
31513 2019-03-11  Martin Liska  <mliska@suse.cz>
31514
31515         * config/aarch64/aarch64.c (aarch64_override_options_internal):
31516         Fix double string quoting.
31517
31518 2019-03-11  Martin Liska  <mliska@suse.cz>
31519
31520         * collect-utils.c (collect_wait): Wrap apostrophes
31521         in gcc internal format with %'.
31522         * collect2.c (main): Likewise.
31523         (scan_prog_file): Likewise.
31524         (scan_libraries): Likewise.
31525         * config/i386/i386.c (ix86_expand_call): Likewise.
31526         (ix86_handle_interrupt_attribute): Likewise.
31527         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31528         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31529         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31530         * lto-wrapper.c (find_crtoffloadtable): Likewise.
31531         * symtab.c (symtab_node::verify_base): Likewise.
31532         * tree-cfg.c (verify_gimple_label): Likewise.
31533         * tree.c (verify_type_variant): Likewise.
31534
31535 2019-03-11  Martin Liska  <mliska@suse.cz>
31536
31537         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31538         in a string format message and fix GNU coding style.
31539         (expand_builtin_set_thread_pointer): Likewise.
31540         * common/config/aarch64/aarch64-common.c
31541         (aarch64_rewrite_selected_cpu): Likewise.
31542         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31543         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31544         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31545         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31546         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31547         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31548         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31549         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31550         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31551         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31552         Likewise.
31553         * common/config/riscv/riscv-common.c
31554         (riscv_subset_list::parsing_subset_version): Likewise.
31555         (riscv_subset_list::parse_std_ext): Likewise.
31556         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31557         (riscv_subset_list::parse): Likewise.
31558         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31559         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31560         (aarch64_override_options_internal): Likewise.
31561         (aarch64_validate_mcpu): Likewise.
31562         (aarch64_validate_march): Likewise.
31563         (aarch64_validate_mtune): Likewise.
31564         (aarch64_override_options): Likewise.
31565         * config/alpha/alpha.c (alpha_option_override): Likewise.
31566         * config/arc/arc.c (arc_init): Likewise.
31567         (parse_mrgf_banked_regs_option): Likewise.
31568         (arc_override_options): Likewise.
31569         (arc_expand_builtin_aligned): Likewise.
31570         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31571         (arm_expand_builtin): Likewise.
31572         * config/arm/arm.c (arm_option_check_internal): Likewise.
31573         (arm_configure_build_target): Likewise.
31574         (arm_option_override): Likewise.
31575         (arm_options_perform_arch_sanity_checks): Likewise.
31576         (arm_handle_cmse_nonsecure_entry): Likewise.
31577         (arm_handle_cmse_nonsecure_call): Likewise.
31578         (arm_tls_referenced_p): Likewise.
31579         (thumb1_expand_prologue): Likewise.
31580         * config/avr/avr.c (avr_option_override): Likewise.
31581         * config/bfin/bfin.c (bfin_option_override): Likewise.
31582         * config/c6x/c6x.c (c6x_option_override): Likewise.
31583         * config/cr16/cr16.c (cr16_override_options): Likewise.
31584         * config/cris/cris.c (cris_option_override): Likewise.
31585         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31586         * config/darwin-c.c (macosx_version_as_macro): Likewise.
31587         * config/darwin.c (darwin_override_options): Likewise.
31588         * config/frv/frv.c (frv_expand_builtin): Likewise.
31589         * config/h8300/h8300.c (h8300_option_override): Likewise.
31590         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31591         (ix86_option_override_internal): Likewise.
31592         (warn_once_call_ms2sysv_xlogues): Likewise.
31593         (ix86_expand_prologue): Likewise.
31594         (split_stack_prologue_scratch_regno): Likewise.
31595         (ix86_warn_parameter_passing_abi): Likewise.
31596         * config/ia64/ia64.c (fix_range): Likewise.
31597         * config/m68k/m68k.c (m68k_option_override): Likewise.
31598         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31599         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31600         (mips_set_compression_mode): Likewise.
31601         * config/mmix/mmix.c (mmix_option_override): Likewise.
31602         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31603         * config/msp430/msp430.c (msp430_option_override): Likewise.
31604         * config/nds32/nds32.c (nds32_option_override): Likewise.
31605         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31606         (nios2_option_override): Likewise.
31607         (nios2_expand_custom_builtin): Likewise.
31608         * config/nvptx/mkoffload.c (main): Likewise.
31609         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31610         * config/pa/pa.c (fix_range): Likewise.
31611         (pa_option_override): Likewise.
31612         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31613         (riscv_option_override): Likewise.
31614         * config/rl78/rl78.c (rl78_option_override): Likewise.
31615         * config/rs6000/aix61.h: Likewise.
31616         * config/rs6000/aix71.h: Likewise.
31617         * config/rs6000/aix72.h: Likewise.
31618         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31619         * config/rs6000/freebsd64.h: Likewise.
31620         * config/rs6000/linux64.h: Likewise.
31621         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31622         (rs6000_expand_zeroop_builtin): Likewise.
31623         (rs6000_expand_mtfsb_builtin): Likewise.
31624         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31625         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31626         (rs6000_invalid_builtin): Likewise.
31627         (rs6000_expand_split_stack_prologue): Likewise.
31628         * config/rs6000/rtems.h: Likewise.
31629         * config/rx/rx.c (valid_psw_flag): Likewise.
31630         (rx_expand_builtin): Likewise.
31631         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31632         * config/s390/s390.c (s390_expand_builtin): Likewise.
31633         (s390_function_profiler): Likewise.
31634         (s390_option_override_internal): Likewise.
31635         (s390_option_override): Likewise.
31636         * config/sh/sh.c (sh_option_override): Likewise.
31637         (sh_builtin_saveregs): Likewise.
31638         (sh_fix_range): Likewise.
31639         * config/sh/vxworks.h: Likewise.
31640         * config/sparc/sparc.c (sparc_option_override): Likewise.
31641         * config/spu/spu.c (spu_option_override): Likewise.
31642         (fix_range): Likewise.
31643         * config/visium/visium.c (visium_option_override): Likewise.
31644         (visium_handle_interrupt_attr): Likewise.
31645         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31646         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31647         (dbg_cnt_process_opt): Likewise.
31648         * dwarf2out.c (output_dwarf_version): Likewise.
31649         * except.c (expand_eh_return): Likewise.
31650         * gcc.c (defined): Likewise.
31651         (driver_handle_option): Likewise.
31652         (process_command): Likewise.
31653         (compare_files): Likewise.
31654         (driver::prepare_infiles): Likewise.
31655         (driver::do_spec_on_infiles): Likewise.
31656         (driver::maybe_run_linker): Likewise.
31657         * omp-offload.c (oacc_parse_default_dims): Likewise.
31658         * opts-global.c (handle_common_deferred_options): Likewise.
31659         * opts.c (parse_sanitizer_options): Likewise.
31660         (common_handle_option): Likewise.
31661         (enable_warning_as_error): Likewise.
31662         * passes.c (enable_disable_pass): Likewise.
31663         * plugin.c (parse_plugin_arg_opt): Likewise.
31664         (default_plugin_dir_name): Likewise.
31665         * targhooks.c (default_expand_builtin_saveregs): Likewise.
31666         (default_pch_valid_p): Likewise.
31667         * toplev.c (init_asm_output): Likewise.
31668         (process_options): Likewise.
31669         (toplev::run_self_tests): Likewise.
31670         * tree-cfg.c (verify_gimple_call): Likewise.
31671         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31672         (tree_inlinable_function_p): Likewise.
31673         * var-tracking.c (vt_find_locations): Likewise.
31674
31675 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
31676
31677         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31678         only on the else branch.
31679
31680 2019-03-11  Martin Liska  <mliska@suse.cz>
31681
31682         * gcov.c (output_intermediate_json_line): Print function
31683         name of each line.
31684         (output_json_intermediate_file): Add new argument.
31685         * doc/gcov.texi: Document the change.
31686
31687 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
31688
31689         PR rtl-optimization/89588
31690         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31691         explicit unrolling factor more robust.
31692
31693 2019-03-11  Richard Biener  <rguenther@suse.de>
31694
31695         PR tree-optimization/89649
31696         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31697         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31698         on the prolog and epilog loops.
31699         (vect_loop_versioning): Return copy of loop.
31700         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31701         on the non-vectorized version of the loop.
31702
31703 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
31704
31705         PR target/68924
31706         * config/i386/sse.md (*vec_extractv2di_0_sse):
31707         Add (=r,x) alternative and corresponding splitter.
31708
31709 2019-03-10  Martin Jambor  <mjambor@suse.cz>
31710
31711         PR tree-optimization/85762
31712         PR tree-optimization/87008
31713         PR tree-optimization/85459
31714         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31715         it points to if there is a type changing MEM_REF.  Adjust all callers.
31716         (build_accesses_from_assign): Disable total scalarization if
31717         contains_vce_or_bfcref_p returns true through the new parameter, for
31718         both rhs and lhs.
31719
31720 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
31721
31722         PR c/88568
31723         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31724         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31725
31726         PR target/79645
31727         * common.opt (fdiagnostics-show-labels,
31728         fdiagnostics-show-line-numbers, fdiagnostics-format=,
31729         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31730         gas-locview-support, ginline-points, ginternal-reset-location-views):
31731         Terminate description text with a dot.
31732         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31733         * config/mcore/mcore.opt (m210, m340): Likewise.
31734         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31735         mnops=): Start description text with a capital letter.
31736         * config/arc/arc.opt (msize-level=): Likewise.
31737         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31738         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31739         mnewlib): Likewise.
31740         * config/ft32/ft32.opt (msim): Likewise.
31741         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
31742         (mnodiv, mnopm): Terminate description text with a dot.
31743         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31744         a colon.
31745         * config/i386/i386.opt (prefer_vector_width, instrument_return):
31746         Likewise.
31747         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31748         text.
31749
31750         PR rtl-optimization/89634
31751         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31752         are modified in BB_END (e->src) instruction.
31753
31754 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
31755
31756         PR target/79926
31757         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31758         messages more amenable to translation, and improve wording.
31759
31760 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
31761
31762         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31763         ud- and du-chains between phases.
31764
31765 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
31766
31767         PR debug/89631
31768         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31769         instead of POLY_INT_CST.
31770
31771 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31772
31773         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31774         requirement.
31775
31776 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
31777
31778         PR target/68924
31779         PR target/78782
31780         PR target/87558
31781         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31782         (_mm_storeu_si64): Ditto.
31783
31784 2019-03-08  Martin Liska  <mliska@suse.cz>
31785
31786         PR target/86952
31787         * config/i386/i386.c (ix86_option_override_internal): Disable
31788         jump tables when retpolines are used.
31789
31790 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
31791
31792         PR go/63560
31793         * ipa-split.c (execute_split_functions): Do not split
31794         'noinline' or 'section' function.
31795
31796 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31797
31798         PR target/79846
31799         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31800         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31801         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
31802
31803         PR ipa/80000
31804         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31805         from diagnostics.  Formatting fixes.
31806
31807         PR target/85665
31808         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31809         warn_odr diagnostics.
31810
31811         PR other/80058
31812         * lra-constraints.c (process_alt_operands): Avoid one space before
31813         " at the end of line and another after " on another line in a string
31814         literal.
31815         * attribs.c (handle_dll_attribute): Likewise.
31816         * config/avr/avr-devices.c (avr_texinfo): Likewise.
31817
31818         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31819         warning_at or inform messages in G_() if there is no ?:.
31820
31821         PR tree-optimization/89550
31822         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31823         returned true.  Formatting fixes.
31824         (expand_builtin_strnlen): Formatting fixes.
31825         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31826         if warning_at returned true.
31827         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31828
31829 2019-03-08  Richard Biener  <rguenther@suse.de>
31830
31831         PR middle-end/89578
31832         * cfgloop.h (struct loop): Add owned_clique field.
31833         * cfgloopmanip.c (copy_loop_info): Copy it.
31834         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31835         cliques.
31836         * tree-inline.c (copy_loops): Remap owned_clique.
31837         * lto-streamer-in.c (input_cfg): Stream owned_clique.
31838         * lto-streamer-out.c (output_cfg): Likewise.
31839
31840 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
31841
31842         PR target/80190
31843         * config/darwin.c: Include intl.h.
31844         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31845         composing the message out of two separate parts.
31846
31847 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
31848
31849         PR target/80003
31850         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31851         doesn't start with a capital letter and doesn't end with a dot.
31852         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31853         with a capital letter.
31854         (ix86_mangle_function_version_assembler_name): Likewise.
31855         (ix86_generate_version_dispatcher_body): Likewise.
31856         (fold_builtin_cpu): Likewise.
31857         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
31858         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31859         translators, wrap full type name in %qs.
31860
31861         PR translation/79999
31862         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31863         depend clause with source (or sink) modifier.
31864         * omp-expand.c (expand_omp_ordered_sink): Likewise.
31865
31866         PR target/89602
31867         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31868         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31869         (avx512f_load<mode>_mask): New define_expand.
31870         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31871         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31872         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31873         __builtin_ia32_movess_mask): New builtins.
31874         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31875         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31876         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31877         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31878
31879 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31880
31881         PR lto/87525
31882         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31883         for extern inline functions.
31884
31885 2019-03-07  Martin Jambor  <mjambor@suse.cz>
31886
31887         PR ipa/88235
31888         * cgraph.h (cgraph_node): New inline method former_thunk_p.
31889         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31890         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31891         have multiple callees.  At the end check if declarations match as
31892         opposed to cgraph_nodes.
31893
31894 2019-03-07  Martin Liska  <mliska@suse.cz>
31895
31896         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31897         which is equivalent to searching for this in clones chain.
31898         * symtab.c (symtab_node::verify_base): Similarly compare ASM
31899         names with a neighbour and special case first node in a chain.
31900
31901 2019-01-25  Jason Merrill  <jason@redhat.com>
31902
31903         PR c++/80916 - spurious "static but not defined" warning.
31904         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31905         for an internal symbol with DECL_EXTERNAL.
31906
31907 2019-04-07  Richard Biener  <rguenther@suse.de>
31908
31909         PR middle-end/89618
31910         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31911         * tree-inline.c (copy_loops): Simplify.
31912
31913 2019-03-07  Martin Liska  <mliska@suse.cz>
31914
31915         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31916
31917 2019-03-07  Richard Biener  <rguenther@suse.de>
31918
31919         PR tree-optimization/89595
31920         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31921         stmt iterator as reference, take boolean output parameter to
31922         indicate whether the stmt was removed and thus the iterator
31923         already advanced.
31924         (dom_opt_dom_walker::before_dom_children): Re-iterate over
31925         stmts created by folding.
31926
31927 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
31928
31929         PR c++/89585
31930         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31931         at toplevel.
31932
31933 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
31934
31935         PR rtl-optimization/88845
31936         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31937         LRA.
31938         * lra.c (remove_scratches_1): New function.
31939         (remove_scratches): Use it.
31940         (lra_emit_move): Likewise.
31941
31942 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
31943
31944         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31945         unaligned_access variable.
31946         * config/arc/arc.c (arc_override_options): Set unaligned access
31947         default on for HS CPUs.
31948         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31949
31950 2019-03-06  Martin Liska  <mliska@suse.cz>
31951
31952         PR gcov-profile/89577
31953         * doc/gcov.texi: Prefer to use --coverage.
31954         * doc/sourcebuild.texi: Likewise.
31955
31956 2019-03-02  Jason Merrill  <jason@redhat.com>
31957
31958         PR c++/86485 - -Wmaybe-unused with empty class ?:
31959         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31960
31961 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31962
31963         PR target/89587
31964         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31965         if_multiarch.
31966
31967         PR middle-end/89590
31968         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31969         exactly one argument.
31970
31971 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31972             Richard Sandiford  <richard.sandiford@arm.com>
31973
31974         PR tree-optimization/89570
31975         * match.pd (vec_cond into cond_op simplification): Don't use
31976         get_conditional_internal_fn, use as_internal_fn (cond_op).
31977
31978 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
31979
31980         PR target/89222
31981         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31982         to decide when to split off a non-zero offset from a symbol.
31983         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31984         in function symbols.
31985
31986 2019-03-05  Richard Biener  <rguenther@suse.de>
31987
31988         PR tree-optimization/89594
31989         * tree-if-conv.c (pass_if_conversion::execute): Handle
31990         case where .LOOP_VECTORIZED_FUNCTION was removed.
31991
31992 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
31993
31994         PR bootstrap/89560
31995         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31996         instead alloca it only when needed with the needed size.
31997
31998         PR tree-optimization/89570
31999         * match.pd (vec_cond into cond_op simplification): Guard with
32000         vectorized_internal_fn_supported_p test and #if GIMPLE.
32001
32002         PR tree-optimization/89566
32003         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
32004         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
32005         Punt if get_user_idx_format succeeds, but idx_format argument is
32006         not provided or doesn't have pointer type, or if idx_args is above
32007         number of provided arguments.
32008
32009 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
32010
32011         PR tree-optimization/89437
32012         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
32013
32014 2019-03-04  Richard Biener  <rguenther@suse.de>
32015
32016         PR middle-end/89572
32017         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
32018         safe_dyn_cast.
32019
32020 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
32021
32022         PR tree-optimization/89487
32023         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
32024         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
32025         (distribute_loop): Don't do runtime alias check if there is non-
32026         addressable data reference.
32027         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
32028         is a register variable.
32029
32030 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
32031
32032         PR target/89506
32033         * config/arm/arm.md (cmpsi2_addneg): Use
32034         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
32035         If operands[2] is 0 or INT_MIN, force use of subs.
32036         (*compare_scc splitter): Use gen_int_mode.
32037         (*negscc): Likewise.
32038         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
32039
32040 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
32041             Monk Chiang  <sh.chiang04@gmail.com>
32042
32043         * common/config/riscv/riscv-common.c: Include sstream.
32044         (riscv_subset_list::to_string): New.
32045         (riscv_arch_str): Likewise.
32046         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
32047         * config.in: Regen.
32048         * config/riscv/riscv-protos.h (riscv_arch_str): New.
32049         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
32050         (riscv_emit_attribute): New.
32051         (riscv_file_start): Emit attribute if needed.
32052         (riscv_option_override): Init riscv_emit_attribute_p.
32053         * config/riscv/riscv.opt (mriscv-attribute): New option.
32054         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
32055         * configure: Regen.
32056         * doc/install.texi: Document --with-riscv-attribute.
32057         * doc/invoke.texi: Document -mriscv-attribute.
32058
32059         * common/config/riscv/riscv-common.c:
32060         Include config/riscv/riscv-protos.h.
32061         (INCLUDE_STRING): Defined.
32062         (RISCV_DONT_CARE_VERSION): Defined.
32063         (riscv_subset_t): Declare.
32064         (riscv_subset_t::riscv_subset_t): New.
32065         (riscv_subset_list): Declare.
32066         (riscv_subset_list::riscv_subset_list): New.
32067         (riscv_subset_list::~riscv_subset_list): Likewise.
32068         (riscv_subset_list::parsing_subset_version): Likewise.
32069         (riscv_subset_list::parse_std_ext): Likewise.
32070         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32071         (riscv_subset_list::add): Likewise.
32072         (riscv_subset_list::lookup): Likewise.
32073         (riscv_subset_list::xlen): Likewise.
32074         (riscv_subset_list::parse): Likewise.
32075         (riscv_supported_std_ext): Likewise.
32076         (current_subset_list): Likewise.
32077         (riscv_parse_arch_string): Using riscv_subset_list::parse to
32078         parse.
32079
32080 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
32081
32082         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32083         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
32084         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
32085
32086 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
32087
32088         PR rtl-optimization/85899
32089         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
32090         fallthru edges leading to the exit block.
32091
32092 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
32093
32094         PR target/89517
32095         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
32096         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
32097
32098 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
32099
32100         PR tree-optimization/89535
32101         * tree-vect-stmts.c (vectorizable_call): Record the vector types
32102         for each operand.  Calculate the fallback choice for mask operands
32103         and pass it to vect_get_vec_def_for_operand.
32104
32105 2019-03-01  Richard Biener  <rguenther@suse.de>
32106
32107         PR middle-end/89541
32108         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
32109         get virtual operands.
32110         (get_expr_operands): Handle CONST_DECL like other decls.
32111
32112 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32113
32114         PR middle-end/89503
32115         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
32116         on DECL_P and EXPR_P.
32117
32118 2019-03-01  Richard Biener  <rguenther@suse.de>
32119
32120         PR middle-end/89497
32121         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
32122         argument, defaulted to zero.
32123         * passes.c (execute_function_todo): Pass down SSA update flags
32124         to cleanup_tree_cfg.
32125         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
32126         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
32127         form if requested.
32128         (cleanup_tree_cfg): Get and pass down SSA update flags.
32129
32130 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32131
32132         PR bootstrap/89539
32133         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
32134         early_lto_debug argument.
32135
32136 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
32137
32138         PR tree-optimization/89536
32139         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
32140         only whether bit #0 of the value is 0 instead of the entire value.
32141
32142 2019-02-28  Marek Polacek  <polacek@redhat.com>
32143
32144         PR c++/87068 - missing diagnostic with fallthrough statement.
32145         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
32146         at the end of a seq, save its location to walk_stmt_info.
32147         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
32148         a switch.
32149
32150 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
32151
32152         PR lto/88585
32153         * tree.c (find_atomic_core_type): Move ahead in file.
32154         (check_base_type): Correctly compare alignments of atomic types.
32155
32156 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         PR target/89455
32159         * config/i386/i386.c (get_builtin_code_for_version): Identify
32160         Westmere from PCLMUL, instead of AES.
32161
32162 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32163
32164         PR target/89434
32165         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
32166         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
32167         -UINTVAL (...).
32168
32169 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
32170
32171         PR target/88530
32172         * config/aarch64/aarch64-option-extensions.def: Document it.
32173         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
32174         if empty hwcaps.
32175
32176 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32177
32178         PR c/89520
32179         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
32180         builtins if they don't have a single scalar floating point argument.
32181         Formatting fixes.
32182
32183 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32184
32185         PR rtl-optimization/89490
32186         * varasm.c (get_block_for_section): Bail out for mergeable sections.
32187         (default_use_anchors_for_symbol_p, output_object_block): Assert the
32188         block section is not mergeable.
32189
32190 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32191
32192         PR target/70341
32193         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
32194         old define_insn to ...
32195         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
32196         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32197         Rename old define_insn to ...
32198         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
32199         (thumb2_casesi_internal_pic): New define_expand.  Rename old
32200         define_insn to ...
32201         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
32202         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32203         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32204
32205 2019-02-27  Richard Biener  <rguenther@suse.de>
32206
32207         PR debug/88878
32208         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32209
32210 2019-02-27  Richard Biener  <rguenther@suse.de>
32211
32212         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32213         building.
32214
32215 2019-02-27  Richard Biener  <rguenther@suse.de>
32216
32217         PR debug/88878
32218         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32219         parameter, prefix section name with .gnu.debuglto_ if true.
32220         (dwarf2out_finish): Pass false to output_comdat_type_unit.
32221         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32222
32223 2019-02-27  Richard Biener  <rguenther@suse.de>
32224
32225         PR debug/89514
32226         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32227         rather than on use_debug_types, doing what output_die does.
32228         (value_format): Likewise.
32229
32230 2019-02-27  Martin Jambor  <mjambor@suse.cz>
32231             Martin Sebor  <msebor@redhat.com>
32232
32233         * doc/invoke.texi (Warning Options): Reword description of
32234         -Wno-absolute-value.
32235
32236 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32237
32238         PR tree-optimization/89280
32239         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32240         builtin_setjmp_setup_bb): New functions.
32241         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32242         When visiting __builtin_setjmp_setup block, queue in special
32243         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32244         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
32245         from visited after the loop if they don't have any visited successor
32246         blocks.
32247
32248 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
32249
32250         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32251         New function.
32252         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32253
32254 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32255
32256         PR c++/89507
32257         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32258         with types other than sizetype/ssizetype.
32259
32260 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32261
32262         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32263         (enum sparc_processor_type): ...this.
32264         (enum sparc_code_model_type): New enumeration type.
32265         (enum sparc_memory_model_type): Tweak comments.
32266         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32267         (mtune): Likewise.
32268         (mcmodel): Use sparc_code_model enumeration and variable.
32269         (sparc_code_model): New enumeration.
32270         (mdebug): Add Undocumented marker.
32271         * config/sparc/sparc.h (enum cmodel): Delete.
32272         (sparc_cmodel): Likewise.
32273         (TARGET_CM_MEDLOW): Adjust to above renaming.
32274         (TARGET_CM_MEDMID): Likewise.
32275         (TARGET_CM_MEDANY): Likewise.
32276         (TARGET_CM_EMBMEDANY): Likewise.
32277         * config/sparc/sparc.c (sparc_cmodel): Delete.
32278         (sparc_option_override): Remove string/value mapping support for the
32279         code model.  Move code and memory model support to after the handling
32280         of target flags.  Do private machine setup last.
32281         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32282         (sparc_legitimize_reload_address): Likewise.
32283         (sparc_output_mi_thunk): Likewise.
32284         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32285
32286 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32287
32288         PR tree-optimization/89500
32289         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32290         (handle_builtin_strlen): Remove noncst_bound variable.  Always
32291         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
32292         cst if the first cst bytes starting at x are known to be non-zero,
32293         even if the string is not zero terminated.  Don't try to modify
32294         *si for strnlen.  Update strlen_to_stridx only for strlen or if
32295         we can prove strnlen returns the same value as strlen would.
32296
32297 2019-02-26  Martin Liska  <mliska@suse.cz>
32298
32299         * alloc-pool.h (struct pool_usage): Remove extra
32300         print_dash_line.
32301         * bitmap.h (struct bitmap_usage): Likewise.
32302         * ggc-common.c (struct ggc_usage): Likewise.
32303         * mem-stats.h (struct mem_usage): Likewise.
32304         (mem_alloc_description::dump): Print dash lines
32305         here and repeat header at the end of a table report.
32306         It's then more readable.
32307         * tree-phinodes.c (phinodes_print_statistics): Make
32308         horizontal alignment.
32309         * tree-ssanames.c (ssanames_print_statistics): Likewise.
32310         * vec.c (struct vec_usage): Remove extra print_dash_line.
32311         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32312
32313 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
32314
32315         * doc/extend.texi (__builtin_object_size):
32316         Use @pxref instead of @xref inside parenthesis.
32317         (__builtin_has_attribute): Add missing comma after @xref.
32318         (__builtin_object_size): Ditto.
32319         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32320
32321 2019-02-26  Jeff Law  <law@redhat.com>
32322
32323         PR rtl-optimization/87761
32324         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32325         detect obviously dead insns and delete them.
32326
32327 2019-02-26  Richard Biener  <rguenther@suse.de>
32328
32329         PR tree-optimization/89505
32330         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32331         to handle restrict pointed-to vars with multiple subvars
32332         correctly.
32333
32334 2019-02-26  Richard Biener  <rguenther@suse.de>
32335
32336         PR tree-optimization/89489
32337         * tree-parloops.c (create_loop_fn): Copy over last_clique.
32338
32339 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32340
32341         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32342         and move around comment.
32343         <BIT_AND_EXPR>: Likewise.
32344         <BIT_NOT_EXPR>: Add specific handling for boolean types.
32345
32346 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32347
32348         PR target/89474
32349         * config/i386/i386.c (remove_partial_avx_dependency): Call
32350         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32351         after changing possibly many instructions to use that pseudo.  Fix up
32352         insertion of v4sf_const0 setter at the start of bb.
32353
32354 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32355
32356         PR c/80409
32357         * doc/extend.texi (Variadic Pointer Args): New section.
32358
32359 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32360             Martin Sebor  <msebor@gmail.com>
32361
32362         * common.opt (Wattribute-alias): Likewise.
32363         * doc/invoke.texi (Option Summary): List general form of
32364         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
32365         (-Wmissing-attributes): Invert entry, rewrite and correct default.
32366         Add cross-references.
32367         (-Wattribute-alias): Rewrite and correct default.  Mention
32368         considered attributes (same as for -Wmissing-attributes).
32369
32370 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
32371
32372         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32373         (_mm_cvtpd_ps): Likewise.
32374         (_mm_cvttpd_epi32): Likewise.
32375
32376         PR target/89338
32377         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32378         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32379
32380         PR target/89339
32381         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32382
32383 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32384
32385         PR target/88530
32386         * common/config/aarch64/aarch64-common.c
32387         (struct aarch64_option_extension): Add is_synthetic.
32388         (all_extensions): Use it.
32389         (TARGET_OPTION_INIT_STRUCT): Define hook.
32390         (struct gcc_targetm_common): Moved to end.
32391         (all_extensions_by_on): New.
32392         (opt_ext_cmp, typedef opt_ext): New.
32393         (aarch64_option_init_struct): New.
32394         (aarch64_contains_opt): New.
32395         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32396         * config/aarch64/aarch64-option-extensions.def
32397         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32398         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32399         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32400         Set is_synthetic to false.
32401         (crypto): Set is_synthetic to true.
32402         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32403         SYNTHETIC.
32404
32405 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32406
32407         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32408         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32409         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32410         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32411         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32412         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32413         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32414         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32415         Rename ...
32416         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32417         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32418         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32419         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32420         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32421         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32422         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32423         vfmlsl_laneq_high_f16): ... To this.
32424         * config/arm/neon.md: Update comments.
32425
32426 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32427
32428         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32429         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32430         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32431         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32432         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32433         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32434         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32435         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32436         Rename ...
32437         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32438         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32439         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32440         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32441         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32442         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32443         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32444         vfmlslq_laneq_high_f16): ... To this.
32445
32446 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
32447
32448         PR rtl-optimization/86096
32449         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32450         comparing mw_order values.
32451
32452 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
32453
32454         PR target/89434
32455         * config/arm/arm.md (*subsi3_carryin_const): Use
32456         arm_neg_immediate_operand predicate instead of
32457         arm_not_immediate_operand, "L" constraint instead of "K" and
32458         print it using %n2 instead of %B2.
32459         (*subsi3_carryin_const0): New define_insn.
32460         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32461         instead of arm_not_operand and "I" constraint instead of "K" and
32462         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
32463         another match_operand and in the condition check that it is negation
32464         of operands[2].
32465         (*subsi3_carryin_compare_const0): New define_ins.
32466         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32467         *subsi3_carryin_const.
32468         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32469         split into *subsi3_carryin_compare_const0 if the highpart is zero.
32470
32471         PR target/89438
32472         * config/arm.vfp.md (*negdf2_vfp): Use
32473         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32474         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32475
32476 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
32477
32478         PR rtl-optimization/89445
32479         * simplify-rtx.c (simplify_ternary_operation): Don't use
32480         simplify_merge_mask on operands that may trap.
32481         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32482         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
32483         second operand is CONST_VECTOR, check if any element could be zero.
32484         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32485         their operands can trap.
32486
32487 2019-02-23  Martin Sebor  <msebor@redhat.com>
32488
32489         * gimple-ssa-sprintf.c (target_strtol): Rename...
32490         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
32491         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
32492         check for range error.
32493
32494 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
32495
32496         PR driver/69471
32497         * opts-common.c (prune_options): Also prune joined switches
32498         with Negative and RejectNegative.
32499         * config/i386/i386.opt (march=): Add Negative(march=).
32500         (mtune=): Add Negative(mtune=).
32501         * doc/options.texi: Document Negative used together with Joined
32502         and RejectNegative.
32503
32504 2019-02-22  Martin Sebor  <msebor@redhat.com>
32505
32506         * doc/extend.texi (Other Builtins): Add
32507         __builtin_is_constant_evaluated.
32508
32509 2019-02-22  Richard Biener  <rguenther@suse.de>
32510
32511         PR tree-optimization/87609
32512         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32513
32514 2019-02-22  Jeff Law  <law@redhat.com>
32515
32516         PR rtl-optimization/87761
32517         * config/mips/mips.md: Add new combiner pattern to recognize
32518         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32519
32520 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
32521
32522         PR target/89324
32523         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32524         destination register in peepholes generating patterns for ADDS/SUBS.
32525         (add<mode>3_compare0,
32526         *addsi3_compare0_uxtw, add<mode>3_compareC,
32527         add<mode>3_compareV_imm, add<mode>3_compareV,
32528         *adds_<optab><ALLX:mode>_<GPI:mode>,
32529         *subs_<optab><ALLX:mode>_<GPI:mode>,
32530         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32531         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32532         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32533         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32534         sub<mode>3_compare1): Allow stack pointer for source register.
32535         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32536
32537 2019-02-22  Martin Sebor  <msebor@redhat.com>
32538
32539         PR tree-optimization/88993
32540         PR tree-optimization/88853
32541         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32542         New helper.
32543         (sprintf_dom_walker::call_info::is_string_func): New helper.
32544         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32545         for formatted string functions.
32546         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32547
32548 2019-02-22  Martin Sebor  <msebor@redhat.com>
32549
32550         PR c/89425
32551         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32552         unreachable subexpressions.
32553
32554 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
32555             Hongtao Liu  <hongtao.liu@intel.com>
32556             Sunil K Pandey  <sunil.k.pandey@intel.com>
32557
32558         PR target/87007
32559         * config/i386/i386-passes.def: Add
32560         pass_remove_partial_avx_dependency.
32561         * config/i386/i386-protos.h
32562         (make_pass_remove_partial_avx_dependency): New.
32563         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32564         New function.
32565         (pass_data_remove_partial_avx_dependency): New.
32566         (pass_remove_partial_avx_dependency): Likewise.
32567         (make_pass_remove_partial_avx_dependency): Likewise.
32568         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32569         (*extendsfdf2): Add avx_partial_xmm_update.
32570         (truncdfsf2): Likewise.
32571         (*float<SWI48:mode><MODEF:mode>2): Likewise.
32572         (SF/DF conversion splitters): Disabled for TARGET_AVX.
32573
32574 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
32575
32576         PR middle-end/85598
32577         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32578         analysis for pass.
32579
32580 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
32581
32582         PR target/89444
32583         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32584         (PTA_SKYLAKE): Add PTA_AES.
32585         (PTA_GOLDMONT): Likewise.
32586
32587 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
32588
32589         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32590         instruction if enabled.
32591         (aarch64_override_options): Remove reference to return address key.
32592
32593 2019-02-22  Richard Biener  <rguenther@suse.de>
32594
32595         PR tree-optimization/89440
32596         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32597         not necessary assert.
32598
32599 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
32600
32601         PR fortran/72741
32602         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32603         (oacc_replace_fn_attrib_attr): ... this new function.
32604         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32605         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32606
32607 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32608
32609         * config/arm/arm-cpus.in (ares): Rename to...
32610         (neoverse-n1): ... This.  Add ares as alias.
32611         * config/arm/arm-tables.opt: Regenerate.
32612         * config/arm/arm-tune.md: Likewise.
32613         * doc/invoke.txt (ARM Options): Document neoverse-n1.
32614
32615 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32616
32617         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32618         * config/aarch64/aarch64-tune.md: Regenerate.
32619         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32620
32621 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32622
32623         * config/aarch64/aarch64.c (ares_tunings): Rename to...
32624         (neoversen1_tunings): ... This.
32625         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32626         (neoverse-n1): New CPU.
32627         * config/aarch64/aarch64-tune.md: Regenerate.
32628         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32629
32630 2019-02-22  Richard Biener  <rguenther@suse.de>
32631
32632         PR middle-end/87609
32633         * cfghooks.h (dependence_hash): New typedef.
32634         (struct copy_bb_data): New type.
32635         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32636         (duplicate_block): Likewise.
32637         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32638         (copy_bbs): Create and pass down copy_bb_data.
32639         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32640         (rtl_duplicate_bb): Likewise.
32641         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32642         remap dependence info.
32643
32644 2019-02-22  Richard Biener  <rguenther@suse.de>
32645
32646         PR tree-optimization/87609
32647         * tree-core.h (tree_base): Document special clique values.
32648         * tree-inline.c (remap_dependence_clique): Do not use the
32649         special clique value of one.
32650         (maybe_set_dependence_info): Use clique one.
32651         (clear_dependence_clique): New callback.
32652         (compute_dependence_clique): Clear clique one from all refs
32653         before assigning it (again).
32654
32655 2019-02-21  Martin Sebor  <msebor@redhat.com>
32656
32657         * doc/extend.texi (__clear_cache): Correct signature.
32658
32659 2019-02-21  Ian Lance Taylor  <iant@golang.org>
32660
32661         PR go/89170
32662         * varasm.c (decode_addr_const): Call lookup_constant_def rather
32663         than output_constant_def.
32664         (add_constant_to_table): New static function.
32665         (output_constant_def): Call add_constant_to_table.
32666         (tree_output_constant_def): Likewise.
32667
32668 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
32669
32670         PR c++/89285
32671         * builtins.c (fold_builtin_arith_overflow): If first two args are
32672         INTEGER_CSTs, set intres and ovfres to constants rather than calls
32673         to ifn.
32674
32675 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
32676
32677         PR target/87412
32678         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32679         error for -mindirect-branch/-mfunction-return with incompatible
32680         -fcf-protection.
32681
32682 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
32683
32684         PR bootstrap/88714
32685         * constraints.md (q): Remove.
32686         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32687         instead of q.
32688
32689 2019-02-21  Martin Jambor  <mjambor@suse.cz>
32690
32691         PR hsa/89302
32692         * omp-general.c (omp_extract_for_data): Removed a duplicate call
32693         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32694         (omp_adjust_for_condition): ...here.  Added necessary parameters.
32695         * omp-general.h (omp_adjust_for_condition): Updated declaration.
32696         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32697         proper values to new parameters of omp_adjust_for_condition.
32698
32699 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32700
32701         PR middle-end/89412
32702         * expr.c (expand_assignment): If result is a MEM, use change_address
32703         instead of simplify_gen_subreg.
32704
32705 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32706             David Malcolm  <dmalcolm@redhat.com>
32707
32708         PR middle-end/89091
32709         * fold-const.c (decode_field_reference): Return NULL_TREE if
32710         lang_hooks.types.type_for_size returns NULL.  Check it before
32711         overwriting *exp_.  Use return NULL_TREE instead of return 0.
32712
32713 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
32714
32715         PR middle-end/88074
32716         PR middle-end/89415
32717         * toplev.c (do_compile): Double the emin/emax exponents to workaround
32718         buggy mpc_norm.
32719
32720 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
32721
32722         PR target/89397
32723         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32724         TARGET_SSE in addition to TARGET_SSE_MATH.
32725
32726         (ix86_excess_precision): Ditto.
32727         (ix86_float_exceptions_rounding_supported_p): Ditto.
32728         (use_rsqrt_p): Ditto.
32729         * config/i386/sse.md (rsqrt<mode>2): Ditto.
32730
32731 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
32732
32733         PR c/89410
32734         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32735         linenum_arith_t when determining if two adjacent line spans are
32736         close enough to merge.
32737         (diagnostic_show_locus): Use linenum_arith_t when iterating over
32738         lines within each line_span.
32739
32740 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
32741
32742         PR target/86487
32743         * lra-constraints.c(uses_hard_regs_p): Fix handling of
32744         paradoxical SUBREGS.
32745
32746 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
32747
32748         PR target/88100
32749         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32750         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32751         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32752         range checking it.
32753
32754 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
32755
32756         * config/gcn/gcn.c (print_operand): Fix typo.
32757
32758 2019-02-19  Richard Biener  <rguenther@suse.de>
32759
32760         PR middle-end/88074
32761         * toplev.c (do_compile): Initialize mpfr's exponent range
32762         based on available float modes.
32763
32764 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32765
32766         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32767         as long as the epilogue isn't completed.
32768
32769 2019-02-18  Martin Sebor  <msebor@redhat.com>
32770
32771         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32772         __has_cpp_attribute, and __has_include.
32773
32774 2019-02-18  Martin Sebor  <msebor@redhat.com>
32775
32776         * doc/invoke.texi (-Wreturn-type): Correct and expand.
32777
32778 2019-02-18  Martin Sebor  <msebor@redhat.com>
32779
32780         PR middle-end/89294
32781         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32782         expression.
32783         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32784
32785 2019-02-18  Richard Biener  <rguenther@suse.de>
32786
32787         PR tree-optimization/89296
32788         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32789         of no-warning flag to cases that might emit the bogus warning.
32790
32791 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
32792
32793         PR bootstrap/88714
32794         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32795         "q" constraint.
32796         * config/arm/vfp.md (*movdi_vfp): Likewise.
32797         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32798         "q" constraint for operands[0].
32799
32800         PR target/89369
32801         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32802         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32803         pattern in a temporary buffer.
32804         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
32805         than 64-operands[2].
32806
32807         PR target/89361
32808         * config/s390/s390.c (s390_indirect_branch_attrvalue,
32809         s390_indirect_branch_settings): Define unconditionally.
32810         (s390_set_current_function): Likewise, but guard the whole body except
32811         the s390_indirect_branch_settings call with
32812         #if S390_USE_TARGET_ATTRIBUTE.
32813         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32814
32815         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32816         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32817         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32818         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32819         HOST_WIDE_INT_1U instead of 1ULL.
32820         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32821         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32822         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32823         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32824         instead of 1UL.
32825         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32826         instead of 1ul.
32827
32828 2019-02-18  Martin Jambor  <mjambor@suse.cz>
32829
32830         PR tree-optimization/89209
32831         * tree-sra.c (create_access_replacement): New optional parameter
32832         reg_tree.  Use it as a type if non-NULL and access type is not of
32833         a register type.
32834         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32835         to create_access_replacement.
32836         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32837         Check lacc is non-NULL before attempting to re-create it on the RHS.
32838
32839 2019-02-18  Martin Liska  <mliska@suse.cz>
32840
32841         PR ipa/89306
32842         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32843         by default.
32844         (symbol_table::free_edge): Recycle m_summary_id.
32845         * cgraph.h (get_summary_id): New.
32846         (symbol_table::release_symbol): Set m_summary_id to -1
32847         by default.
32848         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32849         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32850         function_summary to fast_function_summary.
32851         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32852         * ipa-pure-const.c (class funct_state_summary_t):
32853         Switch from function_summary to fast_function_summary.
32854         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32855         (class ipa_ref_opt_summary_t): Switch from function_summary
32856         to fast_function_summary.
32857         * symbol-summary.h (class function_summary_base): New class
32858         that is created from base of former function_summary.
32859         (function_summary_base::unregister_hooks): New.
32860         (class function_summary): Inherit from function_summary_base.
32861         (class call_summary_base): New class
32862         that is created from base of former call_summary.
32863         (class call_summary): Inherit from call_summary_base.
32864         (struct is_same): New.
32865         (class fast_function_summary): New summary class.
32866         (class fast_call_summary): New summary class.
32867         * vec.h (vec_safe_grow_cleared): New function.
32868
32869 2019-02-18  Martin Liska  <mliska@suse.cz>
32870
32871         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32872         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32873         * doc/tm.texi: Document new target hook.
32874         * doc/tm.texi.in: Likewise.
32875         * target.def: Add new target macro.
32876         * gcc.c (find_fortran_preinclude_file): Do not search multilib
32877         suffixes.
32878
32879 2019-02-17  Alan Modra  <amodra@gmail.com>
32880
32881         PR target/89271
32882         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32883         output reg on add insn.
32884         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
32885
32886 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32887
32888         PR target/89372
32889         * config/i386/sse.md (ssedoublemode): Remove V4HI.
32890         (PMULHRSW): Likewise.
32891         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32892         TARGET_AVX2.
32893         (ssse3_pmulhrswv4hi3): New expander.
32894
32895 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
32896
32897         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32898         MMX.  Add isa attribute.
32899
32900 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
32901
32902         PR rtl-optimization/66152
32903         * builtins.h (c_readstr): Declare.
32904         * builtins.c (c_readstr): Remove forward declaration.  Add
32905         null_terminated_p argument, if false, read all bytes from the
32906         string instead of stopping after '\0'.
32907         * expr.c (string_cst_read_str): New function.
32908         (store_expr): Use string_cst_read_str instead of
32909         builtin_strncpy_read_str.  Try to store by pieces the whole
32910         exp_len first, and only if that fails, split it up into
32911         store by pieces followed by clear_storage.  Formatting fix.
32912
32913         * config/i386/i386.md (*movqi_internal): Remove static from
32914         buf variable.  Use output_asm_insn (buf, operands); return "";
32915         instead of return buf;.
32916         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32917         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32918         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32919
32920 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32921
32922         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32923         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32924         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32925         (CC1_SPEC): Likewise.
32926         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32927
32928 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32929
32930         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32931         the base address on 64-bit strict-alignment platforms.
32932
32933 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
32934
32935         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32936
32937 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
32938
32939         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32940
32941 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
32942
32943         PR rtl-optimization/88308
32944         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32945         on copied instruction.
32946
32947 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
32948
32949         * final.c (insn_current_reference_address): Replace test on JUMP_P
32950         with test on jump_to_label_p.
32951         * config/visium/visium-passes.def: New file.
32952         * config/visium/t-visium (PASSES_EXTRA): Define.
32953         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32954         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32955         (TRAMPOLINE_ALIGNMENT): Define.
32956         * config/visium/visium.c (visium_option_override): Do not register
32957         the machine-specific reorg pass here.
32958         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32959         for the GR6.
32960         (output_branch): Adjust threshold for long branch instruction.
32961         * config/visium/visium.md (cpu): Move around.
32962         (length): Adjust for the GR6.
32963
32964 2019-02-15  Richard Biener  <rguenther@suse.de>
32965             Jakub Jelinek  <jakub@redhat.com>
32966
32967         PR tree-optimization/89278
32968         * tree-loop-distribution.c: Include tree-eh.h.
32969         (generate_memset_builtin, generate_memcpy_builtin): Call
32970         rewrite_to_non_trapping_overflow on builtin->size before passing it
32971         to force_gimple_operand_gsi.
32972
32973 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
32974
32975         PR other/89342
32976         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32977         optimize_debug.
32978         * opth-gen.awk: Likewise.
32979
32980 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
32981
32982         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32983         Enable MMX, SSE and SSE2 by default.
32984         * config/i386/i386.c (ix86_option_override_internal): Do not
32985         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32986
32987 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
32988
32989         PR rtl-optimization/89354
32990         * combine.c (make_extraction): Punt if extraction_mode is narrower
32991         than len bits.
32992
32993 2019-02-14  Maya Rashish  <coypu@sdf.org>
32994
32995         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32996         * config/netbsd-d.c: New file.
32997         * config/t-netbsd: Add netbsd-d.o
32998
32999 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
33000
33001         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
33002         affects_type_identity to true for aarch64_vector_pcs.
33003         (aarch64_comp_type_attributes): New function.
33004         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
33005
33006 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
33007
33008         PR target/88850
33009         * config/arm/iterators.md (ANY64): Add V4HF.
33010
33011 2019-02-14  Martin Liska  <mliska@suse.cz>
33012
33013         PR rtl-optimization/89242
33014         * dce.c (delete_unmarked_insns): Call free_dominance_info we
33015         process a transformation.
33016
33017 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
33018
33019         PR tree-optimization/89314
33020         * fold-const.c (fold_binary_loc): Cast strlen argument to
33021         const char * before dereferencing it.  Formatting fixes.
33022
33023         PR middle-end/89284
33024         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
33025
33026 2019-02-13  Ian Lance Taylor  <iant@golang.org>
33027
33028         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
33029         and set current index for other optimizations.
33030
33031 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
33032
33033         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
33034         nonimmediate_operand as operand 2 predicate.
33035         (vec_set<VF2_512_256:mode>_0): Ditto.
33036         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
33037         (*vec_concatv2si): Remove alternative 2.
33038         (*vec_concatv4si_0): Use vm constraint for alternative 0.
33039         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
33040         (vec_concatv2di): Split alternatives 4,5,6 to ...
33041         (*vec_concatv2di_0) ... new pattern.
33042
33043 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
33044
33045         PR target/89190
33046         * config/arm/arm.c (ldm_stm_operation_p) Set
33047         addr_reg_in_reglist correctly for first register.
33048         (load_multiple_sequence): Remove dead base check.
33049         (gen_ldm_seq): Correctly set write_back for Thumb-1.
33050
33051 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
33052
33053         PR target/88847
33054         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
33055         Expose as @aarch64_pred_mov.
33056         * config/aarch64/aarch64.c (aarch64_classify_address):
33057         Use expand_insn which legitimizes operands.
33058
33059 2019-02-13  Martin Liska  <mliska@suse.cz>
33060
33061         * builtins.h (expand_builtin_with_bounds): Remove declaration.
33062         * calls.c (struct arg_data): Remove special_slot, pointer_arg
33063         and pointer_offset fields.
33064         (initialize_argument_information): Remove usage of dead
33065         fields.
33066         * cgraph.h (struct cgraph_thunk_info): Remove
33067         add_pointer_bounds_args.
33068         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
33069         fields.
33070         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
33071         fields.
33072         * config/i386/i386.c (ix86_function_arg_advance): Remove
33073         unrelated comment.
33074         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
33075         (def_builtin): Remove usage of dead fields.
33076         (ix86_add_new_builtins): Likewise.
33077         * ipa-fnsummary.c (compute_fn_summary): Likewise.
33078         * ipa-icf.c (sem_function::equals_wpa): Likewise.
33079         (sem_function::init): Likewise.
33080         (sem_variable::merge): Likewise.
33081         * ipa-visibility.c (function_and_variable_visibility): Likewise.
33082         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33083         * lto-cgraph.c (lto_output_node): Likewise.
33084         (lto_output_varpool_node): Likewise.
33085         (input_node): Likewise.
33086         (input_varpool_node): Likewise.
33087         * lto-streamer-out.c (lto_output): Likewise.
33088         * tree-inline.c (expand_call_inline): Remove usage of
33089         assign_stmts.
33090         * tree-inline.h (struct copy_body_data): Likewise.
33091         * varpool.c (varpool_node::dump): Likewise.
33092
33093 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
33094
33095         PR middle-end/89303
33096         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
33097         into pt->vars_contains_escaped_heap instead of setting
33098         pt->vars_contains_escaped_heap to it.
33099
33100         PR middle-end/89281
33101         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
33102         INTVAL (size), compare it to GET_MODE_MASK instead of
33103         1 << GET_MODE_BITSIZE.
33104
33105         PR target/89290
33106         * config/i386/predicates.md (x86_64_immediate_operand): Allow
33107         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
33108         -mcmodel=large.
33109
33110 2019-02-13  Martin Liska  <mliska@suse.cz>
33111
33112         PR lto/88858
33113         * cfgrtl.c (remove_barriers_from_footer): New function.
33114         (try_redirect_by_replacing_jump): Use it.
33115         (cfg_layout_redirect_edge_and_branch): Likewise.
33116
33117 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
33118
33119         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
33120         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
33121         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
33122         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
33123         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
33124         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
33125         New BU_CRYPTO_2.
33126         * config/rs6000/rs6000.c (builtin_function_type)
33127         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
33128         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
33129         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
33130         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
33131         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
33132
33133 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
33134
33135         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
33136         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
33137
33138 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33139
33140         PR target/89229
33141         * config/i386/i386.md (*movoi_internal_avx): Revert revision
33142         268678 and revision 268657.
33143         (*movti_internal): Likewise.
33144
33145 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
33146
33147         PR target/89233
33148         * config/s390/s390.c (s390_decompose_address): Update comment.
33149         (s390_check_qrst_address): Reject invalid address forms after
33150         LRA.
33151
33152 2019-02-12  Martin Liska  <mliska@suse.cz>
33153
33154         PR lto/88876
33155         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
33156         we need default values of funct_state for a function that
33157         is not optimized.
33158
33159 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33160
33161         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
33162         the object to pick the size of stores on strict-alignment platforms.
33163
33164         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
33165         (*movdi_insn_sp32): Likewise.
33166         (*movdi_insn_sp64): Likewise.
33167
33168 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
33169
33170         PR lto/88677
33171         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
33172         types that needs constructiong.
33173         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
33174
33175 2019-02-12  Richard Biener  <rguenther@suse.de>
33176
33177         PR tree-optimization/89253
33178         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
33179         duplicate the loop.
33180
33181 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
33182
33183         PR lto/88147
33184         * input.c (selftest::test_line_offset_overflow): New selftest.
33185         (selftest::input_c_tests): Call it.
33186
33187 2019-02-11  Martin Sebor  <msebor@redhat.com>
33188
33189         PR tree-optimization/88771
33190         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
33191         when -Wstringop-overflow is set.
33192         (builtin_memref::builtin_memref): Adjust excessive upper bound
33193         only when lower bound is not excessive.
33194         (maybe_diag_overlap): Detect and diagnose excessive bounds via
33195         -Wstringop-ovefflow.
33196         (maybe_diag_offset_bounds): Rename...
33197         (maybe_diag_access_bounds): ...to this.
33198         (check_bounds_or_overlap): Adjust for name change above.
33199
33200 2019-02-11  Martin Sebor  <msebor@redhat.com>
33201
33202         PR c++/87996
33203         * builtins.c (max_object_size): Move from here...
33204         * builtins.h (max_object_size): ...and here...
33205         * tree.c (max_object_size): ...to here...
33206         * tree.h (max_object_size): ...and here.
33207
33208 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
33209
33210         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33211         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33212         for correct semantics.
33213
33214 2019-02-11  Alan Modra  <amodra@gmail.com>
33215
33216         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33217         -mlongcall and -mpltseq.
33218         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33219         (RS/6000 and PowerPC Options <-mpltseq>): Document.
33220         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33221         * config/rs6000/sysv4.opt (mpltseq): New option.
33222         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33223         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33224         support is lacking.  Don't allow -mpltseq with -mbss-plt.
33225         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33226         -mpltseq given for ELFv1.
33227         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33228         Only use UNSPEC_PLTSEQ for inline PLT calls.
33229         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
33230         use UNSPEC_PLTSEQ for inline PLT calls.
33231         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33232         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33233         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33234         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33235         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33236         (pltseq_mtctr_<mode>): Likewise.
33237
33238 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33239
33240         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33241         Solaris ld.
33242         * configure: Regenerate.
33243
33244 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
33245
33246         PR bootstrap/88714
33247         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33248         instead of r.
33249
33250 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33251
33252         * function.c (assign_parm_setup_block): Use the stored
33253         size, not the passed size, when allocating stack-space,
33254         also for a parameter with alignment larger than
33255         MAX_SUPPORTED_STACK_ALIGNMENT.
33256
33257 2019-02-11  Martin Liska  <mliska@suse.cz>
33258
33259         PR ipa/89009
33260         * ipa-cp.c (build_toporder_info): Remove usage of a param.
33261         * ipa-inline.c (inline_small_functions): Likewise.
33262         * ipa-pure-const.c (propagate_pure_const): Likewise.
33263         (propagate_nothrow): Likewise.
33264         * ipa-reference.c (propagate): Likewise.
33265         * ipa-utils.c (struct searchc_env): Remove unused field.
33266         (searchc): Always search across AVAIL_INTERPOSABLE.
33267         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33268         the only called IPA pure const can properly not propagate
33269         across interposable boundary.
33270         * ipa-utils.h (ipa_reduced_postorder): Remove param.
33271
33272 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
33273
33274         * config/nds32/nds32.md (call_internal, call_value_internal,
33275         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33276
33277 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33278
33279         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33280         typo.
33281
33282 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
33283
33284         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33285         in comments
33286
33287 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33288
33289         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33290
33291 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
33292
33293         PR tree-optimization/89268
33294         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33295         if preds is non-NULL.
33296
33297 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33298
33299         PR lto/89272
33300         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33301         polymorphic types.
33302
33303 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33304
33305         * config/nds32/nds32.md (trap): New pattern.
33306
33307 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33308
33309         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33310         dwarf span.
33311
33312 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33313
33314         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33315         to split POST_INC.
33316
33317 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33318
33319         * ipa-visibility.c (localize_node): Also do not localize
33320         LDPR_PREVAILING_DEF_IRONLY_EXP.
33321
33322 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33323
33324         PR lto/87957
33325         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33326         instead of type_with_linkage.
33327
33328 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33329
33330         PR ipa/88755
33331         * params.def (uninlined-function-insns, uninlined-function-time,
33332         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33333         bound so we don't get overflows.
33334
33335 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
33336
33337         * config/rs6000/rs6000-string.c (expand_compare_loop,
33338         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33339         memcmp/strncmp.
33340
33341 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
33342
33343         PR middle-end/89246
33344         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33345         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33346         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33347
33348 2019-02-09  Alan Modra  <amodra@gmail.com>
33349
33350         PR target/88343
33351         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33352         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
33353         setup.
33354
33355 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33356
33357         PR middle-end/88560
33358         * lra-constraints.c (process_alt_operands): Don't increase reject
33359         for memory when offset memory is required.
33360
33361 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
33362
33363         * config/s390/vector.md: Implement vector copysign.
33364
33365 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33366
33367         * expr.c (expand_constructor): Correct indentations.
33368
33369 2019-02-08  Richard Biener  <rguenther@suse.de>
33370
33371         PR tree-optimization/89247
33372         * tree-if-conv.c: Include tree-cfgcleanup.h.
33373         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33374         (tree_if_conversion): Pass through predicate vector.
33375         (pass_if_conversion::execute): Do CFG cleanup and SSA update
33376         inline, see if any if-converted loops we refrece in
33377         LOOP_VECTORIZED calls vanished and fixup.
33378         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33379
33380 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
33381
33382         * config/s390/constraints.md (jdd): New constraint.
33383
33384 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33385
33386         PR target/89229
33387         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33388         upper 16 vector registers without TARGET_AVX512VL.
33389         (*movti_internal): Likewise.
33390
33391 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
33392
33393         PR rtl-optimization/89234
33394         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33395         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33396         (copy_reg_eh_region_note_backward): Likewise.
33397
33398 2019-02-08  Richard Biener  <rguenther@suse.de>
33399
33400         PR middle-end/89223
33401         * tree-data-ref.c (initialize_matrix_A): Fail if constant
33402         doesn't fit in HWI.
33403         (analyze_subscript_affine_affine): Handle failure from
33404         initialize_matrix_A.
33405
33406 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
33407
33408         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33409         cfun everywhere.
33410
33411 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
33412
33413         PR tree-optimization/86637
33414         PR tree-optimization/89235
33415         * tree-vect-loop.c (optimize_mask_stores): Add an
33416         auto_purge_vect_location sentinel to ensure that vect_location is
33417         purged on exit.
33418         * tree-vectorizer.c
33419         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33420         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33421         to ensure that vect_location is purged on exit.
33422         (pass_slp_vectorize::execute): Likewise, replacing the manual
33423         reset.
33424         * tree-vectorizer.h (class auto_purge_vect_location): New class.
33425
33426 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33427
33428         * config/aarch64/iterators.md (max_opp): New code_attr.
33429         (USMAX): New code iterator.
33430         * config/aarch64/predicates.md (aarch64_smin): New predicate.
33431         (aarch64_smax): Likewise.
33432         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33433         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33434         MINUS (MAX MIN).
33435
33436 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
33437
33438         PR target/89229
33439         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33440         for TARGET_AVX512VL.
33441         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33442
33443 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
33444
33445         * config/s390/s390-builtin-types.def: Add new types.
33446         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33447         (s390_vec_xlw4): Make the memory operand into a const pointer.
33448         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33449         float.
33450         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33451         a new vector type with the alignment of the scalar memory operand.
33452
33453 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
33454             Jakub Jelinek  <jakub@redhat.com>
33455
33456         PR bootstrap/88714
33457         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33458         arm_count_ldrdstrd_insns): New declarations.
33459         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33460         MINUS.
33461         (valid_operands_ldrd_strd): New function.
33462         (arm_count_ldrdstrd_insns): New function.
33463         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33464         sets instead of single DImode set and define new insns to match this.
33465
33466 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
33467
33468         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33469         Make it a C initializer.
33470
33471 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
33472
33473         PR/target 88850
33474         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33475
33476 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33477
33478         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33479         Use neon_dot<q> for type.
33480         (neon_<sup>dot_lane<vsi2qi>): Likewise.
33481
33482 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33483
33484         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33485         Use neon_dot<q> for type.
33486         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33487         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33488
33489 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
33490
33491         PR rtl-optimization/89225
33492         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33493         sizes check.
33494
33495 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
33496
33497         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33498         after restoring registers saved to allocate the frame on Windows.
33499
33500 2019-02-06  Richard Biener  <rguenther@suse.de>
33501
33502         PR tree-optimization/89182
33503         * graphite.h (cached_scalar_evolution_in_region): Declare.
33504         * graphite.c (struct seir_cache_key): New.
33505         (struct sese_scev_hash): Likewise.
33506         (seir_cache): New global.
33507         (cached_scalar_evolution_in_region): New function.
33508         (graphite_transform_loops): Allocate and release seir_cache.
33509         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33510         cached_scalar_evolution_in_region.
33511         * graphite-scop-detection.c (scop_detection::can_represent_loop):
33512         Simplify.
33513         (scop_detection::graphite_can_represent_expr: Use
33514         cached_scalar_evolution_in_region.
33515         (scop_detection::stmt_simple_for_scop_p): Likewise.
33516         (find_params_in_bb): Likewise.
33517         (gather_bbs::before_dom_children): Likewise.
33518         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33519         (add_loop_constraints): Likewise.
33520
33521 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
33522
33523         PR middle-end/89210
33524         * fold-const-call.c (fold_const_vec_convert): Pass true as last
33525         operand to new_unary_operation only if both element types are integral
33526         and it isn't a widening conversion.  Return NULL_TREE if
33527         new_unary_operation failed.
33528
33529 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
33530
33531         PR target/88856
33532         * config/s390/s390.md: Remove load and test FP splitter.
33533
33534 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
33535
33536         PR target/89112
33537         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33538         expand_compare_loop, expand_block_compare_gpr,
33539         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33540         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33541         #include "profile-count.h" and "predict.h" for types and functions
33542         needed to work with REG_BR_PROB notes.
33543
33544 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
33545
33546         PR target/89112
33547         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33548         for the long branch case.
33549
33550 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
33551
33552         PR target/89188
33553         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33554         can throw, non-call exceptions are enabled and we can't delete
33555         dead exceptions or alter cfg.  Set must_clean if
33556         delete_insn_and_edges returns true, don't set it blindly for calls.
33557         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33558
33559         PR rtl-optimization/89195
33560         * combine.c (make_extraction): For MEMs, don't extract bytes outside
33561         of the original MEM.
33562
33563 2019-02-05  Martin Liska  <mliska@suse.cz>
33564
33565         PR gcov-profile/89000
33566         * gcov.c (function_summary): Remove argument.
33567         (file_summary): New function.
33568         (print_usage): Replace tabs with spaces.
33569         (generate_results): Use new function file_summary.
33570
33571 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
33572
33573         PR target/89186
33574         * optabs.c (prepare_cmp_insn): Pass x and y to
33575         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33576
33577 2019-02-05  Richard Biener  <rguenther@suse.de>
33578
33579         PR middle-end/89150
33580         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33581         (struct bitmap_element): Drop chain_prev so we properly recurse on
33582         the prev member, supporting tree views.
33583         (struct bitmap_head): GTY skip the obstack member.
33584
33585 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
33586
33587         PR c/88698
33588         * doc/extend.texi (Vector Extensions): Add an example of using vector
33589         types together with x86 intrinsics.
33590
33591 2019-02-04  Alan Modra  <amodra@gmail.com>
33592
33593         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33594         str[] size to 160, and comment.
33595
33596 2019-02-04  Alan Modra  <amodra@gmail.com>
33597
33598         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33599         (rs6000_pltseq_template): Guard output of TLS markers with
33600         TARGET_TLS_MARKERS.
33601         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33602         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33603         to use inline PLT sequences.
33604         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33605         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33606         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33607
33608 2019-02-04  Martin Liska  <mliska@suse.cz>
33609
33610         PR ipa/88985
33611         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33612         out when ipa_fn_summaries does not contain entry for callee.
33613
33614 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33615
33616         * config/sparc/sparc.h: Remove superfluous blank lines.
33617         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33618         (got_register_rtx): ...this.
33619         (sparc_got): Adjust to above renaming.
33620         (sparc_tls_got): Likewise.
33621         (sparc_delegitimize_address): Likewise.
33622         (sparc_output_mi_thunk): Likewise.
33623         (sparc_init_pic_reg): Likewise.
33624         (save_local_or_in_reg_p): Fix test on the GOT register.
33625         (USE_HIDDEN_LINKONCE): Move around.
33626         (get_pc_thunk_name): Likewise.
33627         (gen_load_pcrel_sym): Likewise.
33628         (load_got_register): Likewise.
33629
33630 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
33631
33632         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33633         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33634
33635 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
33636
33637         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33638         into consideration.
33639
33640 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
33641
33642         * config.gcc (with_nds32_lib, glibc):
33643         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33644         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33645         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33646
33647 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
33648
33649         PR target/89071
33650         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33651         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33652         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33653         (*rcpsf2_sse): Ditto.
33654         (*rsqrtsf2_sse): Ditto.
33655         (sse4_1_round<mode<2): Ditto.
33656
33657 2019-02-03  Richard Biener  <rguenther@suse.de>
33658
33659         PR debug/87295
33660         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33661         orig.
33662
33663 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
33664
33665         PR middle-end/87887
33666         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33667         Punt with warning on aggregate return or argument types.  Ignore
33668         type/mode checking for uniform arguments.
33669
33670 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
33671
33672         * combine.c (try_combine): Do not print "Can't combine" messages unless
33673         printing failed combination attempts.
33674
33675 2019-02-01  Martin Jambor  <mjambor@suse.cz>
33676
33677         PR hsa/87863
33678         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33679         segment and global segment variables before making them static.
33680
33681 2019-02-01  Martin Jambor  <mjambor@suse.cz>
33682
33683         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33684         missed optimization dump with dump_enabled_p.
33685
33686 2019-02-01  Richard Biener  <rguenther@suse.de>
33687
33688         PR middle-end/88597
33689         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33690         the instantiate cache.
33691         (instantiate_scev_binary): Elide second operand procesing
33692         if equal to the first.
33693         * tree-chrec.c (chrec_contains_symbols): Add visited set.
33694         (chrec_contains_undetermined): Likewise.
33695         (tree_contains_chrecs): Likewise.
33696
33697 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
33698
33699         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33700
33701 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
33702
33703         PR tree-optimization/89143
33704         * wide-int-range.h (wide_int_range_absu): Declare.
33705         * wide-int-range.cc (wide_int_range_absu): New function.
33706         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33707
33708         PR tree-optimization/88107
33709         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33710         instead of assertion that eh_region_outermost is non-NULL, if it
33711         is NULL, set *ALL to true and return NULL.
33712         (move_sese_region_to_fn): Adjust caller, if all is set, call
33713         duplicate_eh_regions with NULL region.
33714
33715 2019-02-01  Richard Biener  <rguenth@suse.de>
33716
33717         PR rtl-optimization/88593
33718         * mode-switching.c (optimize_mode_switching): Free dominators before
33719         calling cleanup_cfg.
33720
33721 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
33722
33723         PR tree-optimization/88932
33724         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33725
33726 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
33727
33728         PR middle-end/89137
33729         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33730         bogus clang warning.
33731
33732 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
33733
33734         PR target/89071
33735         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33736         alternative to avoid partial SSE register stall for TARGET_AVX.
33737         (truncdfsf2): Ditto.
33738         (sse4_1_round<mode>2): Ditto.
33739
33740 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
33741
33742         PR tree-optimization/89008
33743         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33744         process anything of the form X * 0.
33745
33746 2019-01-31  Richard Biener  <rguenther@suse.de>
33747
33748         PR tree-optimization/89135
33749         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33750         with abnormal preds.
33751
33752 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
33753
33754         PR sanitizer/89124
33755         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33756         always_inline callees into no_sanitize_address callers.
33757
33758 2019-01-31  Richard Biener  <rguenther@suse.de>
33759
33760         PR rtl-optimization/89115
33761         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33762
33763 2019-01-30  Martin Sebor  <msebor@redhat.com>
33764
33765         PR other/89106
33766         * doc/extend.texi (cast to a union): Correct and expand.
33767
33768 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33769
33770         PR rtl-optimization/87246
33771         * lra-constraints.c (simplify_operand_subreg): Reload memory
33772         in subreg if the address became invalid.
33773
33774 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
33775
33776         PR target/87064
33777         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33778         Disable for little-endian.
33779
33780 2019-01-30  Richard Biener  <rguenther@suse.de>
33781
33782         PR rtl-optimization/89115
33783         * opts.c (default_options_optimization): Reduce
33784         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33785         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33786         to the default.
33787
33788 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
33789
33790         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33791         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
33792         type of vector element when vec_extract is implemented by direct
33793         move.
33794
33795 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
33796
33797         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33798
33799 2019-01-30  Richard Biener  <rguenther@suse.de>
33800
33801         PR tree-optimization/89111
33802         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33803         canonicalization to appropriately sized access types.
33804
33805 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
33806
33807         PR c++/89105
33808         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33809         for arguments to functions that are TU-local and shouldn't be
33810         referenced by assembly.
33811
33812 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
33813
33814         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33815         after '='.
33816
33817 2019-01-29  Martin Sebor  <msebor@redhat.com>
33818
33819         PR c/88956
33820         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33821
33822 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
33823
33824         PR c++/66676
33825         PR ipa/89104
33826         * omp-simd-clone.c (simd_clone_clauses_extract)
33827         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33828         OMP_CLAUSE_ALIGNED_ALIGNMENT.
33829
33830 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
33831
33832         * config.gcc: Force .init_array for ARC.
33833
33834 2019-01-29  Richard Biener  <rguenther@suse.de>
33835
33836         PR debug/87295
33837         * dwarf2out.c (collect_skeleton_dies): New helper.
33838         (copy_decls_for_unworthy_types): Call it.
33839         (build_abbrev_table): Assert we do not try to replace
33840         DW_AT_signature refs with local refs.
33841
33842 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33843
33844         PR middle-end/89002
33845         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33846         for lastprivate/linear IV, push gimplify context around gimplify_assign
33847         and, if it needed any temporaries, pop it into a gimple bind around the
33848         sequence.
33849
33850 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33851
33852         * common.opt (-Wattribute-alias): Remove "no-" from name.
33853         Make -Wattribute-alias command line option and
33854         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33855
33856 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
33857
33858         PR target/89073
33859         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33860         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33861         x86 ISA options.
33862         (bmi2): Add missing @opindex.
33863         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33864         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
33865         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33866         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33867         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33868         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33869         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33870         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33871         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33872         xsavec, xsaveopt and xsaves options.
33873
33874 2019-01-28  Richard Biener  <rguenther@suse.de>
33875
33876         PR debug/89076
33877         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33878         support removal.
33879
33880 2019-01-28  Richard Biener  <rguenther@suse.de>
33881
33882         PR tree-optimization/88739
33883         * tree-cfg.c (verify_types_in_gimple_reference): Verify
33884         BIT_FIELD_REFs only are applied to mode-precision operands
33885         when they are integral.
33886         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33887         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33888         BIT_FIELD_REFs of non-mode-precision integral operands.
33889
33890 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
33891
33892         PR target/87214
33893         * config/i386/sse.md
33894         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33895         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33896         first constants in pairs are multiples of 2.  Formatting fixes.
33897         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33898         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33899         first constants in each quadruple are multiples of 4.  Formatting fixes.
33900
33901 2019-01-26  Martin Jambor  <mjambor@suse.cz>
33902
33903         PR ipa/88933
33904         * tree-inline.c: Include tree-cfgcleanup.h.
33905         (delete_unreachable_blocks_update_callgraph): Move...
33906         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33907         ...here, make externally visible, make second argument bool, adjust
33908         all callers.
33909         * tree-cfgcleanup.c: Include cgraph.h.
33910         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33911         Declare.
33912         * ipa-prop.c: Include tree-cfgcleanup.h.
33913         (ipcp_transform_function): Call
33914         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33915
33916 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
33917
33918         PR rtl-optimization/88846
33919         * ira.c (process_set_for_memref_referenced_p): New.
33920         (memref_referenced_p): Add new param.  Use
33921         process_set_for_memref_referenced_p.  Add new switch cases.
33922         (memref_used_between_p): Pass new arg to memref_referenced_p.
33923
33924 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
33925
33926         PR target/88469
33927         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33928         argument ABI_BREAK.  Set to true if the calculated alignment has
33929         changed in gcc-9.  Check bit-fields for their base type alignment.
33930         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33931         (aarch64_function_arg_boundary): Likewise.
33932         (aarch64_gimplify_va_arg_expr): Likewise.
33933
33934 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
33935
33936         PR middle-end/89037
33937         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33938         instead of accessing TREE_INT_CST_ELT directly.
33939
33940 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
33941
33942         * doc/sourcebuild.texi (Environment attributes): Add fenv and
33943         fenv_exceptions description.
33944
33945 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
33946
33947         PR rtl-optimization/87763
33948         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33949         Allow SUBREG when matching CC_NZmode compare.
33950
33951 2019-01-25  Richard Biener  <rguenther@suse.de>
33952
33953         PR tree-optimization/89049
33954         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33955         Look at the pattern stmt to determine if the stmt is vectorized.
33956
33957 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
33958
33959         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33960         (pred_mov<mode>): Handle all-register forms using both a new
33961         alternative and a split.
33962
33963 2019-01-25  Richard Biener  <rguenther@suse.de>
33964
33965         PR tree-optimization/86865
33966         * graphite-scop-detection.c (scop_detection::can_represent_loop):
33967         Reject non-do-while loops.
33968
33969 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
33970
33971         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33972         * config/rs6000/constraints.md (Q constraint): Use REG_P.
33973         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33974         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33975         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33976         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33977         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33978         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33979         vlogical_operand, gpc_reg_operand, int_reg_operand,
33980         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33981         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33982         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33983         (save_world_operation, restore_world_operation, lmw_operation,
33984         stmw_operation): Use MEM_P and REG_P.
33985         (tie_operand): Use MEM_P.
33986         (vrsave_operation, crsave_operation): Use REG_P.
33987         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33988         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33989         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33990         (call_operand): Use HARD_REGISTER_P.
33991         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33992         Use CONST_INT_P.
33993         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33994         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33995         quad_aligned_load_p, replace_swapped_aligned_store,
33996         recombine_lvx_pattern, replace_swapped_aligned_load,
33997         recombine_stvx_pattern): Use MEM_P.
33998         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33999         Use MEM_P and SYMBOL_REF_P.
34000         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
34001         (insn_is_swappable_p): Use REG_P and MEM_P.
34002         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
34003         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
34004         Use CONST_INT_P.
34005         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
34006         Use CONST_DOUBLE_P.
34007         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
34008         CONST_WIDE_INT_P.
34009         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
34010         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
34011         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
34012         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
34013         reg_or_subregno:
34014         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34015         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
34016         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
34017         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
34018         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
34019         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
34020         rs6000_split_logical_di): Use CONST_INT_P.
34021         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
34022         REG_P and SYMBOL_REF_P.
34023         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
34024         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
34025         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
34026         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
34027         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
34028         (small_data_operand, print_operand_address): Use CONST_INT_P and
34029         SYMBOL_REF_P.
34030         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
34031         (rs6000_init_hard_regno_mode_ok, direct_move_p):
34032         Use HARD_REGISTER_NUM_P.
34033         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
34034         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
34035         SUBREG_P and SYMBOL_REF_P.
34036         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
34037         and HARD_REGISTER_NUM_P.
34038         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
34039         reg_or_subregno.
34040         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
34041         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
34042         MEM_P and REG_P.
34043         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
34044         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
34045         find_addr_reg): Use REG_P.
34046         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
34047         (rs6000_emit_le_vsx_move): Use SUBREG_P.
34048         (offsettable_ok_by_alignment, constant_pool_expr_p,
34049         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
34050         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
34051         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
34052         rs6000_assemble_integer, create_TOC_reference,
34053         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
34054         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
34055         (rs6000_split_vec_extract_var): Use reg_or_subregno.
34056         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34057         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34058         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34059         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34060         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
34061         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
34062         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
34063         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
34064         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
34065         and cbranch<mode>4): Use CONST_INT_P.
34066         (multiple define_splits): Use REG_P and SUBREG_P.
34067         (define_expands call, call_value): Use MEM_P.
34068         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
34069         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
34070         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
34071         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
34072         and HARD_REGISTER_NUM_P.
34073         (multiple define_splits): Use HARD_REGISTER_NUM_P.
34074
34075 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
34076
34077         PR rtl-optimization/88948
34078         * rtl.h (prepare_copy_insn): New prototype.
34079         * gcse.c (prepare_copy_insn): New function, split out from
34080         process_insert_insn.
34081         (process_insert_insn): Use prepare_copy_insn.
34082         * store-motion.c (replace_store_insn): Use prepare_copy_insn
34083         instead of gen_move_insn.
34084
34085 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
34086
34087         PR debug/89006
34088         * config/i386/i386.c (ix86_pic_register_p): Return true for
34089         UNSPEC_SET_GOT too.
34090
34091         PR tree-optimization/88964
34092         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
34093         punt if HONOR_SNANS (chrec).
34094
34095         PR middle-end/89015
34096         * tree-nested.c (convert_nonlocal_reference_stmt,
34097         convert_local_reference_stmt, convert_tramp_reference_stmt,
34098         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
34099         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
34100         or GIMPLE_OMP_TASK.
34101
34102         PR tree-optimization/89027
34103         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
34104         for "omp simd array" variables.
34105
34106 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
34107
34108         PR target/88469
34109         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
34110         force the alignment of m_val.
34111
34112 2019-01-24  Richard Biener  <rguenther@suse.de>
34113
34114         PR lto/87187
34115         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
34116         When in "legacy" debug mode make sure to reset self-origins.
34117
34118 2019-01-24  Martin Liska  <mliska@suse.cz>
34119
34120         PR gcov-profile/88994
34121         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
34122         result will be always smaller or equal to the original.
34123         * gcov.c (mangle_name): Fix else branch where we should
34124         also copy to PTR and shift the pointer.
34125
34126 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
34127
34128         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
34129         * vr-values.c (find_case_label_ranges): Fix a comment typo.
34130
34131 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
34132
34133         * common/config/i386/i386-common.c
34134         (OPTION_MASK_ISA_ENQCMD_SET,
34135         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
34136         (ix86_handle_option): Handle -menqcmd.
34137         * config.gcc (enqcmdintrin.h): New header file.
34138         * config/i386/cpuid.h (bit_ENQCMD): New bit.
34139         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
34140         -menqcmd.
34141         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
34142         function type.
34143         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
34144         __builtin_ia32_enqcmds): New builtins.
34145         * config/i386/i386-c.c (__ENQCMD__): New macro.
34146         * config/i386/i386-option.c (ix86_target_string): Add
34147         -menqcmd.
34148         (ix86_valid_target_attribute_inner_p): Likewise.
34149         * config/i386/i386-expand.c
34150         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
34151         IX86_BUILTIN_ENQCMDS.
34152         * config/i386/i386.h (TARGET_ENQCMD): New.
34153         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
34154         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
34155         (movdir64b_<mode>): Parameterize to enable share expansion code
34156         with ENQCMD in function ix86_expand_builtin.
34157         * config/i386/i386.opt: Add -menqcmd.
34158         * config/i386/immintrin.h: Include enqcmdintrin.h.
34159         * config/i386/enqcmdintrin.h: New intrinsic file.
34160         * doc/invoke.texi: Add -menqcmd.
34161
34162 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
34163             Steve Ellcey  <sellcey@marvell.com>
34164
34165         PR target/85711
34166         * recog.c (address_operand): Return false on wrong mode for address.
34167         (constrain_operands): Check for mode with 'p' constraint.
34168
34169 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
34170
34171         PR target/88998
34172         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
34173         Disparage MMX alternative.
34174         (sse2_cvtpd2pi): Ditto.
34175         (sse2_cvttpd2pi): Ditto.
34176
34177 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
34178
34179         PR driver/89014
34180         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
34181         use-after-free of the result of
34182         aarch64_get_extension_string_for_isa_flags.
34183
34184 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34185
34186         PR c/44715
34187         * doc/extend.texi: Document break and continue behavior in
34188         statement expressions.
34189
34190 2019-01-23  Richard Biener  <rguenther@suse.de>
34191
34192         PR tree-optimization/89008
34193         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
34194         not leave another stray operand.
34195
34196 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34197
34198         * BASE-VER: Bump to 9.0.1.
34199
34200 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
34201
34202         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34203         thunk that returns by reference, use the type of the return object
34204         of the thunk instead of that of the alias to build the dereference.
34205
34206 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
34207
34208         * config/arc/atomic.md: Add operand to DMB instruction.
34209
34210 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34211
34212         PR tree-optimization/88964
34213         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34214         build_zero_cst instead of build_int_cst.  Return false for loop
34215         invariants which honor signed zeros.
34216
34217 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
34218
34219         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34220
34221 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34222
34223         PR target/88965
34224         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34225         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34226         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34227
34228         PR middle-end/88968
34229         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34230         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34231
34232         PR target/87064
34233         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34234         Disable for little endian.
34235
34236 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34237
34238         PR target/88469
34239         * config/arm/arm.c (arm_needs_double_word_align): Check
34240         DECL_BIT_FIELD_TYPE.
34241
34242 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
34243             H.J. Lu  <hongjiu.lu@intel.com>
34244
34245         PR target/88909
34246         * config/i386/i386-builtin.def: Add mask2 to all builtin
34247         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34248         SPECIAL_ARGS.
34249         * config/i386/i386.c (BDESC): Add mask2 to the definition.
34250         (BDESC_FIRST): Likewise.
34251         (define_builtin): Add an argument for mask2.  Updated to handle
34252         both ix86_isa_flags and ix86_isa_flags2.
34253         (define_builtin_const): Likewise.
34254         (define_builtin_pure): Likewise.
34255         (define_builtin2): Deleted.
34256         (define_builtin_const2): Likewise.
34257         (builtin_description): Add a member, mask2.
34258         (bdesc_*): Add mask2 to builtin initializations.
34259         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34260         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
34261         support.
34262         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34263
34264 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
34265
34266         PR target/88954
34267         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34268         noplt attribute.
34269
34270 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34271
34272         PR target/88469
34273         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34274         alignment is dominated by a bitfield with 64-bit aligned base type.
34275         (arm_function_arg): Emit a warning if the alignment has changed since
34276         earlier GCC releases.
34277         (arm_function_arg_boundary): Likewise.
34278         (arm_setup_incoming_varargs): Likewise.
34279
34280 2019-01-22  Richard Biener  <rguenther@suse.de>
34281
34282         PR tree-optimization/88862
34283         * graphite-scop-detection.c
34284         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34285
34286 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
34287
34288         * doc/extend.tex (AMD GCN Function Attributes): New section.
34289         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34290         * doc/invoke.texi (AMD GCN Options): New section.
34291         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34292
34293 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34294
34295         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34296         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34297
34298 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34299
34300         PR tree-optimization/88044
34301         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34302         is false in the first iteration, but !every_iteration, return false
34303         instead of true with niter->niter zero.
34304
34305         PR rtl-optimization/88904
34306         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34307         any nonequal registers before processing BB_END (b).
34308
34309         PR target/88905
34310         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34311         GET_MODE (op0).
34312         (expand_binop_directly, expand_doubleword_clz,
34313         expand_doubleword_popcount, expand_ctz, expand_ffs,
34314         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34315
34316         PR rtl-optimization/49429
34317         PR target/49454
34318         PR rtl-optimization/86334
34319         PR target/88906
34320         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34321         addressable from here...
34322         (emit_block_op_via_libcall): ... to here.
34323
34324 2019-01-22  Richard Biener  <rguenther@suse.de>
34325
34326         * tree-vect-loop.c (vect_analyze_loop_operations): Use
34327         auto_vec for cost vector to fix memleak.
34328         (vectorize_fold_left_reduction): Properly gather SLP defs.
34329         (vectorizable_comparison): Do not swap operands to properly
34330         gather SLP defs.
34331
34332 2019-01-22  Alan Modra  <amodra@gmail.com>
34333
34334         PR target/88614
34335         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34336         stays a reg.  Allow a const_int.
34337         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34338         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34339         (IS_NOMARK_TLSGETADDR): Define.
34340         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34341         (rs6000_output_tlsargs): New function.
34342         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34343         __tls_get_addr call takes an arg.
34344         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34345         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34346         delete split..
34347         (call_value_nonlocal_sysv): ..or here, delete split.
34348         (tls_gdld_nomark): Delete.
34349         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34350         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
34351         (call_value_nonlocal_sysv): Likewise.
34352         (call_value_nonlocal_sysv_secure): Likewise.
34353         (call_value_nonlocal_aix): Likewise.
34354         (call_value_indirect_aix): Likewise.
34355         (call_value_indirect_elfv2): Likewise.
34356         (call_value_local32, call_value_local64): Disable for no-mark tls.
34357         (call_value_local_aix): Likewise.
34358
34359 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
34360
34361         PR target/88938
34362         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34363         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34364
34365 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
34366
34367         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34368         string contents as hash_map keys.
34369
34370 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34371
34372         PR c/88928
34373         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34374         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
34375         instead of TYPE_ALIGN.
34376         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34377         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
34378         pointer from TYPE_STUB_DECL.
34379
34380 2019-01-21  Richard Biener  <rguenther@suse.de>
34381
34382         PR tree-optimization/88934
34383         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34384         at the possibly non-constant operand.
34385         (vect_get_constant_vectors): Adjust.
34386
34387 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
34388
34389         PR target/71659
34390         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34391         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34392         instead of _X86INTRIN_H_INCLUDED.
34393         * onfig/i386/clwbintrin.h: Likewise.
34394         * config/i386/pkuintrin.h: Likewise.
34395         * config/i386/prfchwintrin.h: Likewise.
34396         * config/i386/rdseedintrin.h: Likewise.
34397         * config/i386/wbnoinvdintrin.h: Likewise.
34398         * config/i386/xsavecintrin.h: Likewise.
34399         * config/i386/xsavesintrin.h: Likewise.
34400         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34401         * config/i386/xsaveintrin.h: Likewise.
34402         * config/i386/xsaveoptintrin.h: Likewise.
34403         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34404         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34405         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34406         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34407         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34408         * config/i386/immintrin.h: Here.
34409
34410 2019-01-20  Martin Jambor  <mjambor@suse.cz>
34411
34412         PR ipa/87615
34413         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34414         with aa_walk_budget.
34415         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34416         aa_walk_budget_p parameter.
34417         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
34418         walk.  Updated all callers.
34419         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34420         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34421         unmodified_parm.
34422         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34423         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
34424         and to unmodified_parm.
34425         (phi_result_unknown_predicate): New parameter fbi, removed parameter
34426         info, updated call to will_be_nonconstant_expr_predicate.
34427         (param_change_prob): New parameter fbi, limit AA walking.
34428         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
34429         calls to various above functions.
34430         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34431         parameter.  Use it to limit AA walking.
34432         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34433         fbi, limit AA walk.
34434         (detect_type_change): New parameter fbi, pass it on to
34435         detect_type_change_from_memory_writes.
34436         (detect_type_change_ssa): Likewise.
34437         (aa_overwalked): Removed.
34438         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34439         accordingly, adjust to the neew AA limiting scheme.
34440         (parm_ref_data_preserved_p): Likewise.
34441         (ipa_compute_jump_functions_for_edge): Adjust call to
34442         get_dynamic_type.
34443         (ipa_analyze_call_uses): Likewise.
34444         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34445         (ipa_analyze_node): Initialize aa_walk_budget.
34446         (ipcp_transform_function): Likewise.
34447         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34448         to get_dynamic_type.
34449
34450 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
34451
34452         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34453         outside of #if CHECKING_P code.
34454
34455 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
34456
34457         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34458         New function, split out from...
34459         (loop_versioning::analyze_stride): ...here.
34460         (loop_versioning::find_per_loop_multiplication): Use gassign.
34461         (loop_versioning::analyze_term_using_scevs): Return a success code.
34462         (loop_versioning::analyze_arbitrary_term): New function.
34463         (loop_versioning::analyze_address_fragment): Use
34464         analyze_arbitrary_term if all else fails.
34465
34466 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
34467
34468         PR target/88892
34469         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34470         operands.
34471
34472 2019-01-18  Richard Biener  <rguenther@suse.de>
34473
34474         PR tree-optimization/88903
34475         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34476         scalar stmts a SLP shift amount is composed of when detecting
34477         shifts by scalars.
34478
34479 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
34480
34481         PR target/88799
34482         * config/arm/arm-cpus.in (mp): New feature.
34483         (sec): New feature.
34484         (fgroup ARMv7ve): Add mp and sec features.
34485         (arch armv7-a): Add options to allow mp and sec extensions.
34486         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34487         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34488         extenstions to the base architecture.
34489         (cpu cortex-a8): Add sec extension to the base architecture.
34490         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34491         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34492         variants down to the base v7-a varaint.
34493         * config/arm/t-multilib (v7_a_arch_variants): New variable.
34494         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34495         of permitted extensions for -march=armv7-a and for
34496         -mcpu=generic-armv7-a.
34497
34498 2019-01-18  Martin Liska  <mliska@suse.cz>
34499
34500         * params.def: Fix comment.
34501         * tree-profile.c (gimple_init_gcov_profiler): Bump function
34502         name.
34503         (gimple_gen_ic_func_profiler): Likewise.
34504
34505 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34506
34507         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34508         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34509         and put in error checks for stack protector guard options.
34510         (aarch64_stack_protect_guard): New.
34511         (TARGET_STACK_PROTECT_GUARD): Define.
34512         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34513         (reg_stack_protect_address<mode>): New.
34514         (stack_protect_set): Adjust for SSP_GLOBAL.
34515         (stack_protect_test): Likewise.
34516         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34517         (-mstack-protector-guard): Likewise.
34518         (-mstack-protector-guard-offset): Likewise.
34519
34520 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
34521
34522         PR tree-optimization/86214
34523         * tree-inline.h (struct copy_body_data): Add
34524         add_clobbers_to_eh_landing_pads member.
34525         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34526         (copy_edges_for_bb): Call it if EH edge destination is <
34527         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
34528         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34529         if flag_stack_reuse != SR_NONE and clear it afterwards.
34530
34531 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
34532
34533         PR target/85596
34534         * doc/install.texi (with-multilib-list): Document for aarch64.
34535
34536 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
34537
34538         PR target/88734
34539         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34540         (("..."))) with ("...").
34541
34542 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34543
34544         * doc/extend.texi (Built-in Functions for Memory Model Aware
34545         Atomic Operations): Document atomic fetch and nand.
34546
34547 2019-01-18  Martin Liska  <mliska@suse.cz>
34548             Richard Biener  <rguenther@suse.de>
34549
34550         PR middle-end/88587
34551         * cgraph.h (create_version_clone_with_body): Add new argument
34552         with attributes.
34553         * cgraphclones.c (cgraph_node::create_version_clone): Add
34554         DECL_ATTRIBUTES to a newly created decl.  And call
34555         valid_attribute_p so that proper cl_target_optimization_node
34556         is set for the newly created declaration.
34557         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34558         for declaration.
34559         (expand_target_clones): Do not call valid_attribute_p, it must
34560         be already done.
34561         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34562         vector types.
34563
34564 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
34565
34566         PR target/88734
34567         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34568         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
34569         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34570
34571 2019-01-17  Martin Sebor  <msebor@redhat.com>
34572
34573         PR middle-end/88273
34574         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34575         Handle anti-ranges the same as no range at all.
34576
34577 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
34578
34579         * config/aarch64/aarch64.c (cgraph.h): New include.
34580         (intl.h): New include.
34581         (supported_simd_type): New function.
34582         (currently_supported_simd_type): Ditto.
34583         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34584         (aarch64_simd_clone_adjust): Ditto.
34585         (aarch64_simd_clone_usable): Ditto.
34586         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34587         (TARGET_SIMD_CLONE_ADJUST): Ditto.
34588         (TARGET_SIMD_CLONE_USABLE): Ditto.
34589         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34590         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34591         call.
34592
34593 2019-01-17  Martin Sebor  <msebor@redhat.com>
34594
34595         PR tree-optimization/88800
34596         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34597         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
34598         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34599         redundant argument.  Add new argument and issue diagnostics under
34600         its control.  Detect out-of-bounds access even with warnings
34601         disabled.
34602         (check_bounds_or_overlap): Change return type.  Add argument.
34603         (wrestrict_dom_walker::check_call): Adjust.
34604         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34605         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34606         check_bounds_or_overlap's return value.
34607         (handle_builtin_stxncpy): Same.
34608         (handle_builtin_strcat): Same.
34609
34610 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34611             Kwok Cheung Yeung  <kcy@codesourcery.com>
34612             Julian Brown  <julian@codesourcery.com>
34613             Tom de Vries  <tom@codesourcery.com>
34614
34615         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34616
34617 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34618
34619         * doc/sourcebuild.texi: Document dg-require-effective-target
34620         llvm_binutils and offload_gcn.
34621
34622 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34623             Kwok Cheung Yeung  <kcy@codesourcery.com>
34624             Julian Brown  <julian@codesourcery.com>
34625             Tom de Vries  <tom@codesourcery.com>
34626
34627         * doc/sourcebuild.texi: Document dg-required-effective-target
34628         exceptions.
34629
34630 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34631             Kwok Cheung Yeung  <kcy@codesourcery.com>
34632             Julian Brown  <julian@codesourcery.com>
34633             Tom de Vries  <tom@codesourcery.com>
34634             Jan Hubicka  <hubicka@ucw.cz>
34635             Martin Jambor  <mjambor@suse.cz>
34636
34637         * config.gcc: Add amdgcn*-*-amdhsa configuration.
34638         * configure.ac: Check for dlopen.
34639         * configure: Regenerate.
34640
34641 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34642             Kwok Cheung Yeung  <kcy@codesourcery.com>
34643             Julian Brown  <julian@codesourcery.com>
34644             Tom de Vries  <tom@codesourcery.com>
34645             Jan Hubicka  <hubicka@ucw.cz>
34646             Martin Jambor  <mjambor@suse.cz>
34647
34648         * common/config/gcn/gcn-common.c: New file.
34649         * config/gcn/driver-gcn.c: New file.
34650         * config/gcn/gcn-builtins.def: New file.
34651         * config/gcn/gcn-hsa.h: New file.
34652         * config/gcn/gcn-modes.def: New file.
34653         * config/gcn/gcn-opts.h: New file.
34654         * config/gcn/gcn-passes.def: New file.
34655         * config/gcn/gcn-protos.h: New file.
34656         * config/gcn/gcn-run.c: New file.
34657         * config/gcn/gcn-tree.c: New file.
34658         * config/gcn/gcn.c: New file.
34659         * config/gcn/gcn.h: New file.
34660         * config/gcn/gcn.opt: New file.
34661         * config/gcn/t-gcn-hsa: New file.
34662
34663 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
34664             Kwok Cheung Yeung  <kcy@codesourcery.com>
34665             Julian Brown  <julian@codesourcery.com>
34666             Tom de Vries  <tom@codesourcery.com>
34667             Jan Hubicka  <hubicka@ucw.cz>
34668             Martin Jambor  <mjambor@suse.cz>
34669
34670         * config/gcn/constraints.md: New file.
34671         * config/gcn/gcn-valu.md: New file.
34672         * config/gcn/gcn.md: New file.
34673         * config/gcn/predicates.md: New file.
34674
34675 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
34676
34677         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34678         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34679         (stmt_uses_0_or_null_in_undefined_way): Likewise.
34680         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34681
34682 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
34683
34684         PR target/88851
34685         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34686         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34687         it and document registers.
34688
34689 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34690
34691         * config/aarch64/aarch64.c (ares_tunings): Define.
34692         * config/aarch64/aarch64-cores.def (ares): Use the above.
34693
34694 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34695
34696         PR target/88794
34697         Revert:
34698         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
34699
34700         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34701         (_mm512_fixupimm_round_pd): Update parameters and builtin.
34702         (_mm512_maskz_fixupimm_round_pd): Ditto.
34703         (_mm512_fixupimm_round_ps): Ditto.
34704         (_mm512_maskz_fixupimm_round_ps): Ditto.
34705         (_mm_fixupimm_round_sd): Ditto.
34706         (_mm_maskz_fixupimm_round_sd): Ditto.
34707         (_mm_fixupimm_round_ss): Ditto.
34708         (_mm_maskz_fixupimm_round_ss): Ditto.
34709         (_mm512_fixupimm_pd): Ditto.
34710         (_mm512_maskz_fixupimm_pd): Ditto.
34711         (_mm512_fixupimm_ps): Ditto.
34712         (_mm512_maskz_fixupimm_ps): Ditto.
34713         (_mm_fixupimm_sd): Ditto.
34714         (_mm_maskz_fixupimm_sd): Ditto.
34715         (_mm_fixupimm_ss): Ditto.
34716         (_mm_maskz_fixupimm_ss): Ditto.
34717         (_mm512_mask_fixupimm_round_pd): Update builtin.
34718         (_mm512_mask_fixupimm_round_ps): Ditto.
34719         (_mm_mask_fixupimm_round_sd): Ditto.
34720         (_mm_mask_fixupimm_round_ss): Ditto.
34721         (_mm512_mask_fixupimm_pd): Ditto.
34722         (_mm512_mask_fixupimm_ps): Ditto.
34723         (_mm_mask_fixupimm_sd): Ditto.
34724         (_mm_mask_fixupimm_ss): Ditto.
34725         * config/i386/avx512vlintrin.h:
34726         (_mm256_fixupimm_pd): Update parameters and builtin.
34727         (_mm256_maskz_fixupimm_pd): Ditto.
34728         (_mm256_fixupimm_ps): Ditto.
34729         (_mm256_maskz_fixupimm_ps): Ditto.
34730         (_mm_fixupimm_pd): Ditto.
34731         (_mm_maskz_fixupimm_pd): Ditto.
34732         (_mm_fixupimm_ps): Ditto.
34733         (_mm_maskz_fixupimm_ps): Ditto.
34734         (_mm256_mask_fixupimm_pd): Update builtin.
34735         (_mm256_mask_fixupimm_ps): Ditto.
34736         (_mm_mask_fixupimm_pd): Ditto.
34737         (_mm_mask_fixupimm_ps): Ditto.
34738         * config/i386/i386-builtin-types.def: Add new types and remove
34739         useless ones.
34740         * config/i386/i386-builtin.def: Update builtin definitions.
34741         * config/i386/i386.c: Handle new builtin types and remove useless ones.
34742         * config/i386/sse.md: Update VFIXUPIMM* patterns.
34743         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34744         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34745         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34746         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34747         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34748         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34749         * config/i386/subst.md:
34750         (round_saeonly_sd_mask_operand4): Add new subst_attr.
34751         (round_saeonly_sd_mask_op4): Ditto.
34752         (round_saeonly_expand_operand5): Ditto.
34753         (round_saeonly_expand): Update.
34754
34755 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34756
34757         PR target/88794
34758         Revert:
34759         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
34760
34761         * config/i386/sse.md: Combine VFIXUPIMM* patterns
34762         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34763         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34764         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34765         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34766         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34767         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34768
34769 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
34770
34771         PR target/88794
34772         Revert:
34773         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
34774
34775         PR target/88489
34776         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34777         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34778         instead of UNSPEC_FIXUPIMM.
34779
34780 2019-01-17  Richard Biener  <rguenther@suse.de>
34781
34782         PR lto/86736
34783         * dwarf2out.c (want_pubnames): Never generate pubnames sections
34784         and friends for the LTO part of debug info.
34785
34786 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
34787
34788         PR tree-optimization/86214
34789         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34790         if x == y.
34791
34792         PR rtl-optimization/88870
34793         * dce.c (deletable_insn_p): Never delete const/pure calls that can
34794         throw if we can't alter the cfg or delete dead exceptions.
34795         (mark_insn): Don't call find_call_stack_args for such calls.
34796
34797 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
34798
34799         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34800         prototypes for vec_st.
34801         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34802         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34803         mainly on signed/unsigned long long and double.
34804
34805 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
34806
34807         PR target/88861
34808         * combine.c (delete_noop_moves): Convert to "bool" return,
34809         returning true if any edges are eliminated.
34810         (combine_instructions): Also return true if delete_noop_moves
34811         returns true.
34812
34813 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34814
34815         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34816         correct max nunits for endian swap.
34817         (aarch64_expand_fcmla_builtin): Correct subreg code.
34818         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34819         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34820         lane endianness.
34821
34822 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
34823
34824         * config/alpha/alpha.c (alpha_gimplify_va_arg):
34825         Handle split indirect COMPLEX_TYPE arguments.
34826
34827 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
34828
34829         PR target/86891
34830         * config/aarch64/aarch64-modes.def: Add comment about how the carry
34831         bit is set by add and compare.
34832         (CC_ADC): New CC_MODE.
34833         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34834         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
34835         comparison.  Add detection for CC_ADCmode.
34836         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
34837         CC_ADCmode.
34838         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34839         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34840         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
34841         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
34842         to eliminate the need for zero-extending the operands.
34843         (add<mode>3_compareC_imm): Delete.  Merge into ...
34844         (add<mode>3_compareC): ... this.  Restructure the comparison to
34845         eliminate the need for zero-extending the operands.
34846         (add<mode>3_carryin): Use LTU for the overflow detection.
34847         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34848         Reexpress comparison for overflow.
34849         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34850         (add<mode>3_carryinC): Likewise.
34851         (add<mode>3_carryinV): Use LTU for carry between partials.
34852         * config/aarch64/predicates.md (aarch64_carry_operation): Update
34853         handling of CC_Cmode and add CC_ADCmode.
34854         (aarch64_borrow_operation): Likewise.
34855
34856 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
34857
34858         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34859         Remove patternmode.
34860         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34861         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34862         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34863         Remove endianness conversion.
34864
34865 2019-01-16  Martin Liska  <mliska@suse.cz>
34866
34867         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34868         for GCC driver.
34869         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34870         a new argument.
34871         * gcc.c (add_sysrooted_hdrs_prefix): New function.
34872         (path_prefix_reset): Move up in the source file.
34873         (find_fortran_preinclude_file): Make complex search for the
34874         fortran header files.
34875
34876 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
34877
34878         * godump.c (go_output_typedef): When outputting a typedef, refer
34879         to the underlying type by its name and not its structure.
34880
34881 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
34882
34883         PR c++/88795
34884         * tree.c (build_function_type): Assert that arg_types is not
34885         error_mark_node.
34886
34887 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
34888
34889         PR inline-asm/52813
34890         * doc/extend.texi: Document that listing the stack pointer in the
34891         clobber list of an asm is a deprecated feature.
34892         * common.opt (Wdeprecated): Moved from c-family/c.opt.
34893         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34894         warning instead of an error for clobbers of the stack pointer.
34895         Add a note explaining why.
34896
34897 2019-01-15  Richard Biener  <rguenther@suse.de>
34898
34899         PR debug/88046
34900         * dwarf2out.c (gen_member_die): Do not generate inheritance
34901         DIEs late.
34902
34903 2019-01-15  Richard Biener  <rguenther@suse.de>
34904
34905         PR tree-optimization/88855
34906         * tree-if-conv.c (combine_blocks): Collect
34907         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34908
34909 2019-01-15  Tom de Vries  <tdevries@suse.de>
34910
34911         PR target/80547
34912         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34913         lhs == NULL_TREE for gang-level reduction.
34914
34915 2019-01-15  Richard Biener  <rguenther@suse.de>
34916             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34917
34918         PR ipa/88788
34919         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34920         return true if SSA_NAME is already marked in visited bitmap.
34921         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34922
34923 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
34924
34925         PR tree-optimization/88775
34926         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34927         equal == 0 equality pointer comparisons some more if compared in
34928         integral types and either one points to an automatic var and the
34929         other to a global, or we can prove at least one points to the middle
34930         or both point to start or both point to end.
34931
34932 2019-01-14  Andi Kleen  <ak@linux.intel.com>
34933
34934         * Makefile.in: Lower autofdo sampling rate by 10x.
34935         * Makefile.tpl: Dito.
34936
34937 2019-01-14  Tom Honermann  <tom@honermann.net>
34938
34939         * defaults.h: Define CHAR8_TYPE.
34940
34941 2019-01-14  Martin Sebor  <msebor@redhat.com>
34942
34943         PR target/88638
34944         * doc/extend.texi (Darwin Format Checks): Clarify.
34945
34946 2019-01-14  Richard Biener  <rguenther@suse.de>
34947
34948         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34949         whether we are in (simplify ...) or (match ...) context.
34950
34951 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
34952
34953         PR rtl-optimization/88796
34954         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34955         * cfgexpand.c (stack_protect_prologue): Initialize
34956         crtl->stack_protect_guard_decl.
34957         * function.c (stack_protect_epilogue): Use it instead of calling
34958         targetm.stack_protect_guard again.
34959         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34960         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34961         crtl->stack_protect_guard_decl.
34962         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34963         on the returned MEM_EXPR.
34964
34965 2019-01-12  Tom de Vries  <tdevries@suse.de>
34966
34967         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34968         vector length using -fopenacc-dim.
34969
34970 2019-01-12  Tom de Vries  <tdevries@suse.de>
34971
34972         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34973         lengths into account.
34974
34975 2019-01-12  Svante Signell  <svante.signell@gmail.com>
34976
34977         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34978         (TARGET_CAN_SPLIT_STACK): Define.
34979         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34980
34981 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
34982
34983         * params.def (inline-unit-growth): Set to 40.
34984
34985 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
34986
34987         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34988
34989 2019-01-12  Tom de Vries  <tdevries@suse.de>
34990
34991         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34992         region calling vector-partitionable routine, set default_vector_length
34993         to WARP_SIZE.
34994
34995 2019-01-12  Tom de Vries  <tdevries@suse.de>
34996
34997         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34998         variable default_vector_length.
34999
35000 2019-01-12  Tom de Vries  <tdevries@suse.de>
35001
35002         PR middle-end/88703
35003         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
35004         from oacc_default_dims, as oacc_validate_dims would do it, and apply
35005         dimensions limits.
35006
35007 2019-01-12  Tom de Vries  <tdevries@suse.de>
35008
35009         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
35010         (nvptx_goacc_validate_dims): Add used parameter.
35011         * doc/tm.texi: Regenerate.
35012         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
35013         argument to call to targetm.goacc.validate_dims.
35014         (default_goacc_validate_dims): Add used
35015         parameter.
35016         * target.def (validate_dims): Add used parameter in DEFHOOK.
35017         * targhooks.h (default_goacc_validate_dims): Add used parameter.
35018
35019 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35020
35021         PR middle-end/85956
35022         PR lto/88733
35023         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
35024         field.
35025         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
35026         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
35027         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
35028         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
35029
35030 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
35031
35032         PR rtl-optimization/87305
35033         * lra-assigns.c
35034         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
35035         for little endian pseudos used as paradoxical subreg.
35036
35037 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35038
35039         PR tree-optimization/88693
35040         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
35041         for STRING_CSTs that don't contain any NUL characters in the first
35042         TREE_STRING_LENGTH bytes.
35043
35044 2019-01-11  Alan Modra  <amodra@gmail.com>
35045
35046         PR 88777
35047         PR 88614
35048         * genattrtab.c (min_fn): Don't translate values.
35049         (min_attr_value): Return INT_MAX when the value can't be calculated.
35050         Return minimum among any values that can be calculated.
35051         (max_attr_value): Adjust.
35052
35053 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35054
35055         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
35056
35057 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35058
35059         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35060         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
35061         (aarch64_return_call_with_max_clobbers): New function.
35062         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
35063         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
35064         argument.
35065         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
35066         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
35067         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
35068         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
35069         * cselib.c (cselib_process_insn): Add argument to
35070         targetm.hard_regno_call_part_clobbered call.
35071         * ira-conflicts.c (ira_build_conflicts): Ditto.
35072         * ira-costs.c (ira_tune_allocno_costs): Ditto.
35073         * lra-constraints.c (inherit_reload_reg): Ditto.
35074         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
35075         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
35076         argument.  Call targetm.return_call_with_max_clobbers.
35077         Add argument to targetm.hard_regno_call_part_clobbered call.
35078         (calls_have_same_clobbers_p): New function.
35079         (process_bb_lives): Add call_insn and last_call_insn variables.
35080         Pass call_insn to check_pseudos_live_through_calls.
35081         Modify if stmt to check targetm.return_call_with_max_clobbers.
35082         Update setting of flush variable.
35083         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
35084         to false.
35085         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
35086         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
35087         targetm.hard_regno_call_part_clobbered call.
35088         * reginfo.c (choose_hard_reg_mode): Ditto.
35089         * regrename.c (check_new_reg_p): Ditto.
35090         * reload.c (find_equiv_reg): Ditto.
35091         * reload1.c (emit_reload_insns): Ditto.
35092         * sched-deps.c (deps_analyze_insn): Ditto.
35093         * sel-sched.c (init_regs_for_mode): Ditto.
35094         (mark_unavailable_hard_regs): Ditto.
35095         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
35096         * target.def (hard_regno_call_part_clobbered): Add insn argument.
35097         (return_call_with_max_clobbers): New target function.
35098         * doc/tm.texi: Regenerate.
35099         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
35100         * hooks.c (hook_bool_uint_mode_false): Change to
35101         hook_bool_insn_uint_mode_false.
35102         * hooks.h (hook_bool_uint_mode_false): Ditto.
35103
35104 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35105
35106         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35107         (aarch64_remove_extra_call_preserved_regs): New function.
35108         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
35109         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
35110         * doc/tm.texi: Regenerate.
35111         * final.c (get_call_reg_set_usage): Call new hook.
35112         * target.def (remove_extra_call_preserved_regs): New hook.
35113         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
35114         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
35115
35116 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35117
35118         PR bootstrap/88714
35119         * passes.c (finish_optimization_passes): Call print_combine_total_stats
35120         inside of pass_combine_1 dump rather than pass_profile_1.
35121
35122 2019-01-11  Tom de Vries  <tdevries@suse.de>
35123
35124         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
35125         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
35126         (PTX_NUM_PER_WORKER_BARRIERS): Define.
35127         (nvptx_apply_dim_limits): Prevent vector_length 64 and
35128         num_workers 16.
35129
35130 2019-01-11  Tom de Vries  <tdevries@suse.de>
35131
35132         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
35133
35134 2019-01-11  Jan Beulich  <jbeulich@suse.com>
35135
35136         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
35137         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
35138         sse2_cvtsi2sd): Add {l}.
35139         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
35140         syntax.
35141
35142 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35143
35144         PR target/88785
35145         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
35146         define_expand.
35147         (*float<floatunssuffix>v2div2sf2): New define_insn.
35148         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
35149         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
35150         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
35151         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
35152         match_operands with "const0_operand" "C".
35153
35154 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35155
35156         * config/aarch64/aarch64-builtins.c
35157         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
35158         (aarch64_init_simd_builtins): ...Here
35159
35160 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35161
35162         PR rtl-optimization/87305
35163         * lra-assigns.c
35164         (setup_live_pseudos_and_spill_after_risky_transforms): Check
35165         allocation for big endian pseudos used as paradoxical subregs and
35166         spill them if it is wrong.
35167         * lra-constraints.c (lra_constraints): Add a comment.
35168
35169 2019-01-10  Richard Biener  <rguenther@suse.de>
35170
35171         PR tree-optimization/88792
35172         * tree-ssa-pre.c (get_representative_for): Do not return a
35173         value-number here.
35174
35175 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35176
35177         PR middle-end/84877
35178         PR bootstrap/88450
35179         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
35180         (assign_parm_setup_block): Do the argument slot realignment here
35181         instead.
35182
35183 2019-01-10  Stefan Agner  <stefan@agner.ch>
35184
35185         PR target/88648
35186         * config/arm/arm.c (arm_option_override_internal): Force
35187         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
35188
35189 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35190
35191         PR c/88568
35192         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
35193         DECL_EXTERNAL.
35194
35195 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35196
35197         * config/arm/arm-builtins.c
35198         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35199         (MAC_LANE_PAIR_QUALIFIERS): New.
35200         (arm_expand_builtin_args): Use it.
35201         (arm_expand_builtin_1): Likewise.
35202         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35203         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35204         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35205         * config/arm/arm_neon.h:
35206         (vcadd_rot90_f16): New.
35207         (vcaddq_rot90_f16): New.
35208         (vcadd_rot270_f16): New.
35209         (vcaddq_rot270_f16): New.
35210         (vcmla_f16): New.
35211         (vcmlaq_f16): New.
35212         (vcmla_lane_f16): New.
35213         (vcmla_laneq_f16): New.
35214         (vcmlaq_lane_f16): New.
35215         (vcmlaq_laneq_f16): New.
35216         (vcmla_rot90_f16): New.
35217         (vcmlaq_rot90_f16): New.
35218         (vcmla_rot90_lane_f16): New.
35219         (vcmla_rot90_laneq_f16): New.
35220         (vcmlaq_rot90_lane_f16): New.
35221         (vcmlaq_rot90_laneq_f16): New.
35222         (vcmla_rot180_f16): New.
35223         (vcmlaq_rot180_f16): New.
35224         (vcmla_rot180_lane_f16): New.
35225         (vcmla_rot180_laneq_f16): New.
35226         (vcmlaq_rot180_lane_f16): New.
35227         (vcmlaq_rot180_laneq_f16): New.
35228         (vcmla_rot270_f16): New.
35229         (vcmlaq_rot270_f16): New.
35230         (vcmla_rot270_lane_f16): New.
35231         (vcmla_rot270_laneq_f16): New.
35232         (vcmlaq_rot270_lane_f16): New.
35233         (vcmlaq_rot270_laneq_f16): New.
35234         (vcadd_rot90_f32): New.
35235         (vcaddq_rot90_f32): New.
35236         (vcadd_rot270_f32): New.
35237         (vcaddq_rot270_f32): New.
35238         (vcmla_f32): New.
35239         (vcmlaq_f32): New.
35240         (vcmla_lane_f32): New.
35241         (vcmla_laneq_f32): New.
35242         (vcmlaq_lane_f32): New.
35243         (vcmlaq_laneq_f32): New.
35244         (vcmla_rot90_f32): New.
35245         (vcmlaq_rot90_f32): New.
35246         (vcmla_rot90_lane_f32): New.
35247         (vcmla_rot90_laneq_f32): New.
35248         (vcmlaq_rot90_lane_f32): New.
35249         (vcmlaq_rot90_laneq_f32): New.
35250         (vcmla_rot180_f32): New.
35251         (vcmlaq_rot180_f32): New.
35252         (vcmla_rot180_lane_f32): New.
35253         (vcmla_rot180_laneq_f32): New.
35254         (vcmlaq_rot180_lane_f32): New.
35255         (vcmlaq_rot180_laneq_f32): New.
35256         (vcmla_rot270_f32): New.
35257         (vcmlaq_rot270_f32): New.
35258         (vcmla_rot270_lane_f32): New.
35259         (vcmla_rot270_laneq_f32): New.
35260         (vcmlaq_rot270_lane_f32): New.
35261         (vcmlaq_rot270_laneq_f32): New.
35262         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35263         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35264         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35265         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35266         vcmlaq_lane270): New.
35267         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35268         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35269         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35270         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35271         (arm_option_reconfigure_globals): Use them.
35272         * config/arm/iterators.md (VDF, VQ_HSF): New.
35273         (VCADD, VCMLA): New.
35274         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35275         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35276         New.
35277         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35278         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35279
35280 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35281
35282         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35283         Add qualifier_lane_pair_index.
35284         (emit-rtl.h): Include.
35285         (TYPES_QUADOP_LANE_PAIR): New.
35286         (aarch64_simd_expand_args): Use it.
35287         (aarch64_simd_expand_builtin): Likewise.
35288         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35289         New.
35290         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35291         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35292         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35293         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35294         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35295         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35296         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35297         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35298         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35299         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35300         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35301         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35302         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35303         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35304         Add __ARM_FEATURE_COMPLEX.
35305         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35306         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35307         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35308         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35309         fcmlaq_lane270): New.
35310         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35311         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35312         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35313         * config/aarch64/arm_neon.h:
35314         (vcadd_rot90_f16): New.
35315         (vcaddq_rot90_f16): New.
35316         (vcadd_rot270_f16): New.
35317         (vcaddq_rot270_f16): New.
35318         (vcmla_f16): New.
35319         (vcmlaq_f16): New.
35320         (vcmla_lane_f16): New.
35321         (vcmla_laneq_f16): New.
35322         (vcmlaq_lane_f16): New.
35323         (vcmlaq_rot90_lane_f16): New.
35324         (vcmla_rot90_laneq_f16): New.
35325         (vcmla_rot90_lane_f16): New.
35326         (vcmlaq_rot90_f16): New.
35327         (vcmla_rot90_f16): New.
35328         (vcmlaq_laneq_f16): New.
35329         (vcmla_rot180_laneq_f16): New.
35330         (vcmla_rot180_lane_f16): New.
35331         (vcmlaq_rot180_f16): New.
35332         (vcmla_rot180_f16): New.
35333         (vcmlaq_rot90_laneq_f16): New.
35334         (vcmlaq_rot270_laneq_f16): New.
35335         (vcmlaq_rot270_lane_f16): New.
35336         (vcmla_rot270_laneq_f16): New.
35337         (vcmlaq_rot270_f16): New.
35338         (vcmla_rot270_f16): New.
35339         (vcmlaq_rot180_laneq_f16): New.
35340         (vcmlaq_rot180_lane_f16): New.
35341         (vcmla_rot270_lane_f16): New.
35342         (vcadd_rot90_f32): New.
35343         (vcaddq_rot90_f32): New.
35344         (vcaddq_rot90_f64): New.
35345         (vcadd_rot270_f32): New.
35346         (vcaddq_rot270_f32): New.
35347         (vcaddq_rot270_f64): New.
35348         (vcmla_f32): New.
35349         (vcmlaq_f32): New.
35350         (vcmlaq_f64): New.
35351         (vcmla_lane_f32): New.
35352         (vcmla_laneq_f32): New.
35353         (vcmlaq_lane_f32): New.
35354         (vcmlaq_laneq_f32): New.
35355         (vcmla_rot90_f32): New.
35356         (vcmlaq_rot90_f32): New.
35357         (vcmlaq_rot90_f64): New.
35358         (vcmla_rot90_lane_f32): New.
35359         (vcmla_rot90_laneq_f32): New.
35360         (vcmlaq_rot90_lane_f32): New.
35361         (vcmlaq_rot90_laneq_f32): New.
35362         (vcmla_rot180_f32): New.
35363         (vcmlaq_rot180_f32): New.
35364         (vcmlaq_rot180_f64): New.
35365         (vcmla_rot180_lane_f32): New.
35366         (vcmla_rot180_laneq_f32): New.
35367         (vcmlaq_rot180_lane_f32): New.
35368         (vcmlaq_rot180_laneq_f32): New.
35369         (vcmla_rot270_f32): New.
35370         (vcmlaq_rot270_f32): New.
35371         (vcmlaq_rot270_f64): New.
35372         (vcmla_rot270_lane_f32): New.
35373         (vcmla_rot270_laneq_f32): New.
35374         (vcmlaq_rot270_lane_f32): New.
35375         (vcmlaq_rot270_laneq_f32): New.
35376         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35377         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35378         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35379         (FCADD, FCMLA): New.
35380         (rot): New.
35381         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35382
35383 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35384
35385         PR other/16615
35386
35387         * config/pa/pa.c: Change "can not" to "cannot".
35388         * gimple-ssa-evrp-analyze.c: Likewise.
35389         * ipa-icf.c: Likewise.
35390         * ipa-polymorphic-call.c: Likewise.
35391         * ipa-pure-const.c: Likewise.
35392         * lra-constraints.c: Likewise.
35393         * lra-remat.c: Likewise.
35394         * reload1.c: Likewise.
35395         * reorg.c: Likewise.
35396         * tree-ssa-uninit.c: Likewise.
35397
35398 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35399
35400         PR other/16615
35401
35402         * Makefile.in: Mechanically replace "can not" with "cannot".
35403         * alias.c: Likewise.
35404         * builtins.c: Likewise.
35405         * calls.c: Likewise.
35406         * cgraph.c: Likewise.
35407         * cgraph.h: Likewise.
35408         * cgraphclones.c: Likewise.
35409         * cgraphunit.c: Likewise.
35410         * combine-stack-adj.c: Likewise.
35411         * combine.c: Likewise.
35412         * common/config/i386/i386-common.c: Likewise.
35413         * config/aarch64/aarch64.c: Likewise.
35414         * config/alpha/sync.md: Likewise.
35415         * config/arc/arc.c: Likewise.
35416         * config/arc/predicates.md: Likewise.
35417         * config/arm/arm-c.c: Likewise.
35418         * config/arm/arm.c: Likewise.
35419         * config/arm/arm.h: Likewise.
35420         * config/arm/arm.md: Likewise.
35421         * config/arm/cortex-r4f.md: Likewise.
35422         * config/csky/csky.c: Likewise.
35423         * config/csky/csky.h: Likewise.
35424         * config/darwin-f.c: Likewise.
35425         * config/epiphany/epiphany.md: Likewise.
35426         * config/i386/i386.c: Likewise.
35427         * config/i386/sol2.h: Likewise.
35428         * config/m68k/m68k.c: Likewise.
35429         * config/mcore/mcore.h: Likewise.
35430         * config/microblaze/microblaze.md: Likewise.
35431         * config/mips/20kc.md: Likewise.
35432         * config/mips/sb1.md: Likewise.
35433         * config/nds32/nds32.c: Likewise.
35434         * config/nds32/predicates.md: Likewise.
35435         * config/pa/pa.c: Likewise.
35436         * config/rs6000/e300c2c3.md: Likewise.
35437         * config/rs6000/rs6000.c: Likewise.
35438         * config/s390/s390.h: Likewise.
35439         * config/sh/sh.c: Likewise.
35440         * config/sh/sh.md: Likewise.
35441         * config/spu/vmx2spu.h: Likewise.
35442         * cprop.c: Likewise.
35443         * dbxout.c: Likewise.
35444         * df-scan.c: Likewise.
35445         * doc/cfg.texi: Likewise.
35446         * doc/extend.texi: Likewise.
35447         * doc/fragments.texi: Likewise.
35448         * doc/gty.texi: Likewise.
35449         * doc/invoke.texi: Likewise.
35450         * doc/lto.texi: Likewise.
35451         * doc/md.texi: Likewise.
35452         * doc/objc.texi: Likewise.
35453         * doc/rtl.texi: Likewise.
35454         * doc/tm.texi: Likewise.
35455         * dse.c: Likewise.
35456         * emit-rtl.c: Likewise.
35457         * emit-rtl.h: Likewise.
35458         * except.c: Likewise.
35459         * expmed.c: Likewise.
35460         * expr.c: Likewise.
35461         * fold-const.c: Likewise.
35462         * genautomata.c: Likewise.
35463         * gimple-fold.c: Likewise.
35464         * hard-reg-set.h: Likewise.
35465         * ifcvt.c: Likewise.
35466         * ipa-comdats.c: Likewise.
35467         * ipa-cp.c: Likewise.
35468         * ipa-devirt.c: Likewise.
35469         * ipa-fnsummary.c: Likewise.
35470         * ipa-icf.c: Likewise.
35471         * ipa-inline-transform.c: Likewise.
35472         * ipa-inline.c: Likewise.
35473         * ipa-polymorphic-call.c: Likewise.
35474         * ipa-profile.c: Likewise.
35475         * ipa-prop.c: Likewise.
35476         * ipa-pure-const.c: Likewise.
35477         * ipa-reference.c: Likewise.
35478         * ipa-split.c: Likewise.
35479         * ipa-visibility.c: Likewise.
35480         * ipa.c: Likewise.
35481         * ira-build.c: Likewise.
35482         * ira-color.c: Likewise.
35483         * ira-conflicts.c: Likewise.
35484         * ira-costs.c: Likewise.
35485         * ira-int.h: Likewise.
35486         * ira-lives.c: Likewise.
35487         * ira.c: Likewise.
35488         * ira.h: Likewise.
35489         * loop-invariant.c: Likewise.
35490         * loop-unroll.c: Likewise.
35491         * lower-subreg.c: Likewise.
35492         * lra-assigns.c: Likewise.
35493         * lra-constraints.c: Likewise.
35494         * lra-eliminations.c: Likewise.
35495         * lra-lives.c: Likewise.
35496         * lra-remat.c: Likewise.
35497         * lra-spills.c: Likewise.
35498         * lra.c: Likewise.
35499         * lto-cgraph.c: Likewise.
35500         * lto-streamer-out.c: Likewise.
35501         * postreload-gcse.c: Likewise.
35502         * predict.c: Likewise.
35503         * profile-count.h: Likewise.
35504         * profile.c: Likewise.
35505         * recog.c: Likewise.
35506         * ree.c: Likewise.
35507         * reload.c: Likewise.
35508         * reload1.c: Likewise.
35509         * reorg.c: Likewise.
35510         * resource.c: Likewise.
35511         * rtl.def: Likewise.
35512         * rtl.h: Likewise.
35513         * rtlanal.c: Likewise.
35514         * sched-deps.c: Likewise.
35515         * sched-ebb.c: Likewise.
35516         * sched-rgn.c: Likewise.
35517         * sel-sched-ir.c: Likewise.
35518         * sel-sched.c: Likewise.
35519         * shrink-wrap.c: Likewise.
35520         * simplify-rtx.c: Likewise.
35521         * symtab.c: Likewise.
35522         * target.def: Likewise.
35523         * toplev.c: Likewise.
35524         * tree-call-cdce.c: Likewise.
35525         * tree-cfg.c: Likewise.
35526         * tree-complex.c: Likewise.
35527         * tree-core.h: Likewise.
35528         * tree-eh.c: Likewise.
35529         * tree-inline.c: Likewise.
35530         * tree-loop-distribution.c: Likewise.
35531         * tree-nrv.c: Likewise.
35532         * tree-profile.c: Likewise.
35533         * tree-sra.c: Likewise.
35534         * tree-ssa-alias.c: Likewise.
35535         * tree-ssa-dce.c: Likewise.
35536         * tree-ssa-dom.c: Likewise.
35537         * tree-ssa-forwprop.c: Likewise.
35538         * tree-ssa-loop-im.c: Likewise.
35539         * tree-ssa-loop-ivcanon.c: Likewise.
35540         * tree-ssa-loop-ivopts.c: Likewise.
35541         * tree-ssa-loop-niter.c: Likewise.
35542         * tree-ssa-phionlycprop.c: Likewise.
35543         * tree-ssa-phiopt.c: Likewise.
35544         * tree-ssa-propagate.c: Likewise.
35545         * tree-ssa-threadedge.c: Likewise.
35546         * tree-ssa-threadupdate.c: Likewise.
35547         * tree-ssa-uninit.c: Likewise.
35548         * tree-ssanames.c: Likewise.
35549         * tree-streamer-out.c: Likewise.
35550         * tree.c: Likewise.
35551         * tree.h: Likewise.
35552         * vr-values.c: Likewise.
35553
35554 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
35555
35556         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35557         (ix86_split_xorsign): Ditto.
35558         * config/i386/i386.c (ix86_expand_xorsign): New function.
35559         (ix86_split_xorsign): Ditto.
35560         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35561         (xorsign<mode>3): New expander.
35562         (xorsign<mode>3_1): New insn_and_split pattern.
35563         * config/i386/sse.md (xorsign<mode>3): New expander.
35564
35565 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35566
35567         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35568         (*tablejump_sp64): Likewise.
35569         (*tablejump<P:mode>): ...this.
35570         (*call_address_sp32): Merge into...
35571         (*call_address_sp64): Likewise.
35572         (*call_address<P:mode>): ...this.
35573         (*call_symbolic_sp32): Merge into...
35574         (*call_symbolic_sp64): Likewise.
35575         (*call_symbolic<P:mode>): ...this.
35576         (call_value): Remove constraint and add predicate.
35577         (*call_value_address_sp32): Merge into...
35578         (*call_value_address_sp64): Likewise.
35579         (*call_value_address<P:mode>): ...this.
35580         (*call_value_symbolic_sp32): Merge into...
35581         (*call_value_symbolic_sp64): Likewise.
35582         (*call_value_symbolic<P:mode>): ...this.
35583         (*sibcall_symbolic_sp32): Merge into...
35584         (*sibcall_symbolic_sp64): Likewise.
35585         (*sibcall_symbolic<P:mode>): ...this.
35586         (sibcall_value): Remove constraint and add predicate.
35587         (*sibcall_value_symbolic_sp32): Merge into...
35588         (*sibcall_value_symbolic_sp64): Likewise.
35589         (*sibcall_value_symbolic<P:mode>): ...this.
35590         (window_save): Minor tweak.
35591         (*branch_sp32): Merge into...
35592         (*branch_sp64): Likewise.
35593         (*branch<P:mode>): ...this.
35594
35595 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35596             James Clarke  <jrtc27@jrtc27.com>
35597
35598         PR target/84010
35599         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35600         consistently in TLS address generation and adjust code to the renaming
35601         of patterns.  Mark calls to __tls_get_addr as const.
35602         * config/sparc/sparc.md (tgd_hi22): Turn into...
35603         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35604         (tgd_lo10): Turn into...
35605         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35606         (tgd_add32): Merge into...
35607         (tgd_add64): Likewise.
35608         (tgd_add<P:mode>): ...this and use Pmode throughout.
35609         (tldm_hi22): Turn into...
35610         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35611         (tldm_lo10): Turn into...
35612         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35613         (tldm_add32): Merge into...
35614         (tldm_add64): Likewise.
35615         (tldm_add<P:mode>): ...this and use Pmode throughout.
35616         (tldm_call32): Merge into...
35617         (tldm_call64): Likewise.
35618         (tldm_call<P:mode>): ...this and use Pmode throughout.
35619         (tldo_hix22): Turn into...
35620         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35621         (tldo_lox10): Turn into...
35622         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35623         (tldo_add32): Merge into...
35624         (tldo_add64): Likewise.
35625         (tldo_add<P:mode>): ...this and use Pmode throughout.
35626         (tie_hi22): Turn into...
35627         (tie_hi22<P:mode>): ...this and use Pmode throughout.
35628         (tie_lo10): Turn into...
35629         (tie_lo10<P:mode>): ...this and use Pmode throughout.
35630         (tie_ld64): Use DImode throughout.
35631         (tie_add32): Merge into...
35632         (tie_add64): Likewise.
35633         (tie_add<P:mode>): ...this and use Pmode throughout.
35634         (tle_hix22_sp32): Merge into...
35635         (tle_hix22_sp64): Likewise.
35636         (tle_hix22<P:mode>): ...this and use Pmode throughout.
35637         (tle_lox22_sp32): Merge into...
35638         (tle_lox22_sp64): Likewise.
35639         (tle_lox22<P:mode>): ...this and use Pmode throughout.
35640         (*tldo_ldub_sp32): Merge into...
35641         (*tldo_ldub_sp64): Likewise.
35642         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35643         (*tldo_ldub1_sp32): Merge into...
35644         (*tldo_ldub1_sp64): Likewise.
35645         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35646         (*tldo_ldub2_sp32): Merge into...
35647         (*tldo_ldub2_sp64): Likewise.
35648         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35649         (*tldo_ldsb1_sp32): Merge into...
35650         (*tldo_ldsb1_sp64): Likewise.
35651         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35652         (*tldo_ldsb2_sp32): Merge into...
35653         (*tldo_ldsb2_sp64): Likewise.
35654         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35655         (*tldo_ldub3_sp64): Use DImode throughout.
35656         (*tldo_ldsb3_sp64): Likewise.
35657         (*tldo_lduh_sp32): Merge into...
35658         (*tldo_lduh_sp64): Likewise.
35659         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35660         (*tldo_lduh1_sp32): Merge into...
35661         (*tldo_lduh1_sp64): Likewise.
35662         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35663         (*tldo_ldsh1_sp32): Merge into...
35664         (*tldo_ldsh1_sp64): Likewise.
35665         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35666         (*tldo_lduh2_sp64): Use DImode throughout.
35667         (*tldo_ldsh2_sp64): Likewise.
35668         (*tldo_lduw_sp32): Merge into...
35669         (*tldo_lduw_sp64): Likewise.
35670         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35671         (*tldo_lduw1_sp64): Use DImode throughout.
35672         (*tldo_ldsw1_sp64): Likewise.
35673         (*tldo_ldx_sp64): Likewise.
35674         (*tldo_stb_sp32): Merge into...
35675         (*tldo_stb_sp64): Likewise.
35676         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35677         (*tldo_sth_sp32): Merge into...
35678         (*tldo_sth_sp64): Likewise.
35679         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35680         (*tldo_stw_sp32): Merge into...
35681         (*tldo_stw_sp64): Likewise.
35682         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35683         (*tldo_stx_sp64): Use DImode throughout.
35684
35685 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35686
35687         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35688         check configure option to set BTI and Return Address Signing.
35689         * configure.ac: Add --enable-standard-branch-protection and
35690         --disable-standard-branch-protection.
35691         * configure: Regenerated.
35692         * doc/install.texi: Document the same.
35693
35694 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35695             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35696
35697         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35698         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35699         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35700         if bti is enabled.
35701         * config/aarch64/aarch64-bti-insert.c: New file.
35702         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35703         pass.
35704         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35705         new bti pass.
35706         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35707         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35708         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35709         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35710
35711 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35712
35713         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35714         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35715         Disable bti for -mbranch-protection=none.
35716         (aarch64_handle_standard_branch_protection): Enable bti for
35717         -mbranch-protection=standard.
35718         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35719         -mbranch-protection.
35720         (aarch64_bti_enabled): Check if bti is enabled.
35721         * config/aarch64/aarch64.opt: Declare target variable.
35722         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35723
35724 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35725
35726         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35727         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35728         (aarch64_expand_epilogue): Likewise.
35729         (aarch64_output_mi_thunk): Likewise.
35730         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35731         TAILCALL_ADDR_REGS to x16 and x17.
35732         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35733
35734 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35735
35736         * config/aarch64/aarch64-option-extensions.def: Define
35737         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35738         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35739         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35740         (AARCH64_FL_PREDRES): New.
35741         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35742         AARCH64_FL_PREDRES by default.
35743         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35744
35745 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
35746
35747         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35748         ARMv8.5-A.
35749         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35750         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35751         * doc/invoke.texi: Document ARMv8.5-A.
35752
35753 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
35754
35755         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35756         (xorsign<mode>3): Likewise.
35757
35758 2019-01-09  Jelinek  <jakub@redhat.com>
35759
35760         PR middle-end/88758
35761         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35762         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35763
35764         PR rtl-optimization/88331
35765         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35766         not currently_expanding_to_rtl.
35767
35768 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
35769
35770         * doc/invoke.texi (-Os): Remove trailing spaces.
35771         (-finline-functions): Remove reference to -O2.
35772
35773 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
35774
35775         PR rtl-optimization/79593
35776         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35777
35778         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35779         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
35780
35781 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35782
35783         PR bootstrap/88721
35784         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35785         to -1 on entry.
35786
35787         PR debug/88723
35788         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35789         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35790
35791 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
35792
35793         PR target/88717
35794         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35795         ix86_avx_u128_mode_entry.
35796
35797 2019-01-08  Martin Liska  <mliska@suse.cz>
35798
35799         PR tree-optimization/88753
35800         * tree-switch-conversion.c (switch_conversion::build_one_array):
35801         Come up with local variable constructor.  Convert first to
35802         type of constructor values.
35803
35804 2019-01-08  Richard Biener  <rguenther@suse.de>
35805
35806         PR tree-optimization/86554
35807         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35808         rpo_avail): Move earlier.
35809         (visit_nary_op): When value-numbering to expressions
35810         with different overflow behavior make sure there's an
35811         available expression on the path.
35812
35813 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
35814
35815         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35816         aarch64_parse_branch_protection,
35817         struct aarch64_branch_protect_type,
35818         aarch64_handle_no_branch_protection,
35819         aarch64_handle_standard_branch_protection,
35820         aarch64_validate_mbranch_protection,
35821         aarch64_handle_pac_ret_protection,
35822         aarch64_handle_attr_branch_protection,
35823         accepted_branch_protection_string,
35824         aarch64_pac_ret_subtypes,
35825         aarch64_branch_protect_types,
35826         aarch64_handle_pac_ret_leaf): Define.
35827         (aarch64_override_options_after_change_1, aarch64_override_options):
35828         Add check for accepted_branch_protection_string.
35829         (aarch64_option_save): Save accepted_branch_protection_string.
35830         (aarch64_option_restore): Save accepted_branch_protection_string.
35831         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35832         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35833         msign-return-address.
35834         * doc/invoke.texi: Add mbranch-protection.
35835
35836 2019-01-08  Alan Modra  <amodra@gmail.com>
35837
35838         PR target/88614
35839         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35840         Delete "unknownp" parameter.  Adjust callers.  Handle
35841         CONST_INT, PLUS, MINUS, and MULT.
35842         (attr_value_aligned): Renamed from or_attr_value.
35843         (min_attr_value): Return INT_MIN for unhandled rtl case..
35844         (min_fn): ..and translate to INT_MAX here.
35845         (write_length_unit_log): Modify to cope without "unknown".
35846         (write_attr_value): Handle IF_THEN_ELSE.
35847
35848 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35849
35850         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35851         optimization for masked stores.
35852
35853 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35854
35855         PR middle-end/88567
35856         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35857         output vector directly to duplicate_and_interleave instead of
35858         going through a temporary.  Postpone insertion of ctor_seq to
35859         the end of the loop.
35860
35861 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
35862
35863         PR target/86891
35864         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35865         unsigned_p.  Handle signed and unsigned overflow correction as
35866         required.
35867         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35868         prototype.
35869         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35870         for operand 2.
35871         (add<mode>3_compareV_imm): Make this callable for expanding.
35872         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
35873         aarch64_plus_operand for operand 2.
35874         (subv<GPI:mode>_insn): New insn pattern.
35875         (subv<GPI:mode>_imm): Likewise.
35876         (negv<GPI:mode>3): New expand pattern.
35877         (negv<GPI:mode>_insn): New insn pattern.
35878         (negv<GPI:mode>_cmp_only): Likewise.
35879         (cmpv<GPI:mode>_insn): Likewise.
35880         (subvti4): Use register_operand for operand 1.  Update call to
35881         aarch64_expand_subvti.
35882         (usubvti4): Likewise.
35883         (negvti3): New expand pattern.
35884         (negdi_carryout): New insn pattern.
35885         (negvdi_carryinV): New insn pattern.
35886         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35887         version the named version.
35888         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35889         operands.
35890         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35891         patterns.
35892         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35893         patterns.
35894         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35895         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35896         (sub<mode>3_carryinCV): Delete.
35897         (sub<GPI:mode>3_carryinV): New expand pattern.
35898         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35899
35900 2019-01-07  Richard Biener  <rguenther@suse.de>
35901
35902         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35903         of tree_operand_hash.
35904
35905 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35906
35907         PR tree-optimization/88598
35908         * tree.h (single_nonzero_element): Declare.
35909         * tree.c (single_nonzero_element): New function.
35910         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35911         if I is the only nonzero element of CST.
35912
35913 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
35914
35915         PR tree-optimization/88598
35916         * tree.h (initializer_each_zero_or_onep): Declare.
35917         * tree.c (initializer_each_zero_or_onep): New function.
35918         (signed_or_unsigned_type_for): Handle float types too.
35919         (unsigned_type_for, signed_type_for): Update comments accordingly.
35920         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35921         x & { 0 or -1, 0 or -1, ... }.
35922
35923 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
35924
35925         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35926         with x86_64-pc-linux-gnu.
35927
35928 2019-01-07  Tom de Vries  <tdevries@suse.de>
35929
35930         PR target/85486
35931         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35932         function.
35933         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35934         routines.
35935
35936 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
35937
35938         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35939         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35940         TARGET_AVX512F as condition.
35941
35942         PR debug/88723
35943         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35944         const_not_ok_for_debug_p target hook.
35945         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35946         on UNSPEC and subexpressions thereof if all subexpressions of the
35947         UNSPEC are CONSTANT_P.
35948
35949         PR tree-optimization/88676
35950         * tree-ssa-phiopt.c (two_value_replacement): New function.
35951         (tree_ssa_phiopt_worker): Call it.
35952
35953         PR sanitizer/88619
35954         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35955         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35956
35957         PR c++/85052
35958         * tree-vect-generic.c: Include insn-config.h and recog.h.
35959         (expand_vector_piecewise): Add defaulted ret_type argument,
35960         if non-NULL, use that in preference to type for the result type.
35961         (expand_vector_parallel): Formatting fix.
35962         (do_vec_conversion, do_vec_narrowing_conversion,
35963         expand_vector_conversion): New functions.
35964         (expand_vector_operations_1): Call expand_vector_conversion
35965         for VEC_CONVERT ifn calls.
35966         * internal-fn.def (VEC_CONVERT): New internal function.
35967         * internal-fn.c (expand_VEC_CONVERT): New function.
35968         * fold-const-call.c (fold_const_vec_convert): New function.
35969         (fold_const_call): Use it for CFN_VEC_CONVERT.
35970         * doc/extend.texi (__builtin_convertvector): Document.
35971
35972 2019-01-07  Tom de Vries  <tdevries@suse.de>
35973
35974         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35975         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35976         vector_red_partition, vector_red_sym): New global variables.
35977         (nvptx_option_override): Initialize vector_red_sym.
35978         (nvptx_declare_function_name): Restore red_partition register.
35979         (nvptx_file_end): Emit code to declare the vector reduction variables.
35980         (nvptx_output_red_partition): New function.
35981         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35982         large vector reductions.
35983         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35984         (nvptx_init_builtins): Add VECTOR_ADDR.
35985         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35986         Handle nvptx_expand_shared_addr.
35987         (nvptx_get_shared_red_addr): Add vector argument and handle large
35988         vectors.
35989         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35990         large vectors.
35991         (nvptx_goacc_reduction_init): Likewise.
35992         (nvptx_goacc_reduction_fini): Likewise.
35993         (nvptx_goacc_reduction_teardown): Likewise.
35994         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35995         init,fini,teardown}.
35996         (nvptx_init_axis_predicate): Initialize vector_red_partition.
35997         (nvptx_set_current_function): Init vector_red_partition.
35998         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35999         (nvptx_red_partition): New insn.
36000         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
36001
36002 2019-01-07  Tom de Vries  <tdevries@suse.de>
36003
36004         PR target/85381
36005         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
36006         empty loops.
36007
36008 2019-01-07  Tom de Vries  <tdevries@suse.de>
36009
36010         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
36011         (nvptx_option_override): Init oacc_bcast_partition.
36012         (nvptx_init_oacc_workers): New function.
36013         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
36014         (nvptx_needs_shared_bcast): New function.
36015         (nvptx_find_par): Generalize to enable vectors to use shared-memory
36016         to propagate state.
36017         (nvptx_shared_propagate): Initialize vector bcast partition and
36018         synchronization state.
36019         (nvptx_single): Generalize to enable vectors to use shared-memory
36020         to propagate state.
36021         (nvptx_process_pars): Likewise.
36022         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
36023         * config/nvptx/nvptx.h (struct machine_function): Add
36024         bcast_partition and sync_bar members.
36025
36026 2019-01-07  Tom de Vries  <tdevries@suse.de>
36027
36028         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
36029         (nvptx_apply_dim_limits): New function.
36030         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
36031         PTX_WARP_SIZE.
36032
36033 2019-01-07  Tom de Vries  <tdevries@suse.de>
36034
36035         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
36036         as late as possible.
36037
36038 2019-01-07  Tom de Vries  <tdevries@suse.de>
36039
36040         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
36041         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
36042         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
36043         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
36044         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
36045
36046 2019-01-07  Tom de Vries  <tdevries@suse.de>
36047
36048         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
36049
36050 2019-01-07  Tom de Vries  <tdevries@suse.de>
36051
36052         * omp-offload.c (oacc_get_min_dim): New function.
36053         * omp-offload.h (oacc_get_min_dim): Declare.
36054
36055 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
36056
36057         PR target/88521
36058         * config/i386/i386.c (function_value_ms_64): Return small sturct in
36059         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
36060
36061 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36062
36063         PR tree-opt/86020
36064         Revert:
36065         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
36066
36067         * ipa-inline.c (edge_badness): Use inlined_time instead of
36068         inline_summaries->get.
36069
36070 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36071
36072         * opts.c (enable_fdo_optimizations): Enable
36073         version-loops-for-strides, loop-interchange, unrol-and-jam
36074         and tree-loop-distribution.
36075         * invoke.texi: Document newly enabled options.
36076
36077 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36078
36079         * doc/invoke.texi (max-inline-insns-small): New parameters.
36080         * ipa-inline.c (want_early_inline_function_p): simplify.
36081         (want_inline_small_function_p): Fix pasto from previous patch;
36082         use max-inline-insns-small bound.
36083         * params.def (max-inline-insns-small): New param.
36084         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
36085         variables correctly.
36086
36087 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36088
36089         * doc/invoke.texi: Document max-inline-insns-size,
36090         uninlined-function-insns, uninlined-function-time,
36091         uninlined-thunk-insns and uninlined-thunk-time.
36092         * params.def: Add max-inline-insns-size,
36093         uninlined-function-insns, uninlined-function-time,
36094         uninlined-thunk-insns and uninlined-thunk-time.
36095         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
36096         new parameters.
36097         * ipa-inline.c (can_inline_edge_by_limits_p,
36098         want_inline_small_function_p): Use new parameters.
36099
36100 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36101
36102         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
36103
36104 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
36105
36106         PR middle-end/82564
36107         PR target/88620
36108         * expr.c (expand_assignment): For calls returning VLA structures
36109         if to_rtx is not a MEM, force it into a stack temporary.
36110
36111         PR debug/88635
36112         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
36113         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
36114         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
36115         subexpressions of both operands.
36116         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
36117         subrtxes are CONSTANT_P.
36118         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
36119         2018-11-09 changes.
36120
36121 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
36122
36123         * params.def (hot-bb-count-ws-permille): Set to 990.
36124
36125 2019-01-04  Martin Sebor  <msebor@redhat.com>
36126
36127         PR c/88546
36128         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
36129         leaf.
36130
36131 2019-01-04  Martin Sebor  <msebor@redhat.com>
36132
36133         PR c/88363
36134         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
36135
36136 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36137
36138         * gdbinit.in: Turn off pagination for the skip commands, restore
36139         it to previous state afterwards.
36140
36141 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36142
36143         PR target/88594
36144         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
36145         of GET_MODE (opN) as modes of the libcall arguments.
36146
36147 2019-01-04  Jan Beulich  <jbeulich@suse.com>
36148
36149         * config/i386/sse.md
36150         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
36151         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
36152         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36153         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36154         avx512f_vmcmp<mode>3<round_saeonly_name>,
36155         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
36156         avx512f_maskcmp<mode>3,
36157         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36158         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36159         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36160         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36161         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36162         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36163         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36164         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36165         <avx512>_testm<mode>3<mask_scalar_merge_name>,
36166         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
36167         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
36168         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
36169         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
36170         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
36171         avx512cd_maskb_vec_dup<mode>,
36172         avx512cd_maskw_vec_dup<mode>,
36173         avx512dq_fpclass<mode><mask_scalar_merge_name>,
36174         avx512dq_vmfpclass<mode>,
36175         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
36176         instead of =Yk.
36177
36178 2019-01-03  Martin Sebor  <msebor@redhat.com>
36179
36180         PR tree-optimization/88659
36181         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
36182
36183 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
36184
36185         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
36186         unaligned vsx and avoid lxvd2x/stxvd2x.
36187         (gen_lvx_v4si_move): New function.
36188
36189 2019-01-03  Tom de Vries  <tdevries@suse.de>
36190
36191         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
36192         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
36193         function.
36194         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
36195
36196 2019-01-03  Tom de Vries  <tdevries@suse.de>
36197
36198         * config/nvptx/nvptx.c (struct offload_attrs): New.
36199         (populate_offload_attrs): New function.  Factor mask extraction out of
36200         nvptx_reorg.  Add extraction of dimensions.
36201         (nvptx_reorg): Use populate_offload_attrs.
36202
36203 2019-01-03  Tom de Vries  <tdevries@suse.de>
36204
36205         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36206         cases for oacc_min_dims_p and routine_p.  Add asserts for
36207         oacc_default_dims_p and offload_region_p.
36208
36209 2019-01-03  Tom de Vries  <tdevries@suse.de>
36210
36211         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36212         factored out of ...
36213         (nvptx_goacc_validate_dims): ... here.
36214
36215 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36216
36217         PR tree-optimization/85574
36218         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36219         structure.
36220         (struct ssa_equip_hash_traits): Declare.
36221         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36222
36223 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
36224
36225         PR debug/88644
36226         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36227         change it to qualified_type.
36228
36229 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36230
36231         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36232         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36233
36234 2019-01-02  Martin Sebor  <msebor@redhat.com>
36235             Jeff Law  <law@redhat.com>
36236
36237         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36238         (get_range_strlen_tree): Update appropriately.
36239         (get_range_strlen)
36240         * gimple-fold.h (get_range_strlen): Drop unused last argument.
36241
36242         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36243         rather than set_range_info.
36244         * tree-ssa-strlen.c (set_strlen_range): Extracted from
36245         maybe_set_strlen_range.  Handle potentially boundary crossing
36246         cases more conservatively.
36247         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36248         Call set_strlen_range.
36249         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36250
36251         PR middle-end/88663
36252         * gimple-fold.c (get_range_strlen): Update prototype to no longer
36253         need the flexp argument.
36254         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
36255         from calls to get_range_strlen.  Update comments.  Just update
36256         VAL for an unterminated const char array and let the reset of the
36257         code handle it normally.  No longer try to set *flexp.  Adjust
36258         return value.
36259         (get_range_strlen): Update for the new get_range_strlen API.
36260         (get_maxval_strlen): Similarly.
36261         (gimple_fold_builtin_strlen): Handle update meaning of return value
36262         from get_range_strlen.
36263         * gimple-ssa-sprintf.c (get_string_length): Update for the new
36264         get_range_strlen API.
36265
36266 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
36267
36268         PR lto/88130
36269         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36270         false at WPA time when body was removed.
36271
36272 2019-01-02  Martin Liska  <mliska@suse.cz>
36273
36274         PR tree-optimization/88650
36275         * predict.c (set_even_probabilities): Calculate probability
36276         remainer only when really used.
36277
36278 2019-01-02  Richard Biener  <rguenther@suse.de>
36279
36280         PR middle-end/88651
36281         * tree-data-ref.c (analyze_subscript_affine_affine): Use
36282         widest_ints when mangling max_stmt_execution results.
36283
36284 2019-01-02  Richard Biener  <rguenther@suse.de>
36285
36286         PR tree-optimization/88621
36287         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36288         bitfields when canoncalizing.
36289
36290 2019-01-02  Richard Biener  <rguenther@suse.de>
36291
36292         PR target/87545
36293         * config/i386/x86-tune-costs.h (intel_cost): Adjust
36294         cost of cheap SSE instruction.
36295
36296 2019-01-02  Richard Biener  <rguenther@suse.de>
36297
36298         PR ipa/85574
36299         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36300         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36301         function.
36302         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36303         set after UIDs before splitting them.
36304
36305 2019-01-01  Martin Sebor  <msebor@redhat.com>
36306             Jeff Law  <law@redhat.com>
36307
36308         * gimple-fold.c (get_range_strlen_tree): Record if the computed
36309         length is optimistic.  If it is, then arrange to compute the
36310         conservative length as well.
36311
36312         * gimple-fold.h (get_range_strlen): Update prototype.
36313         * builtins.c (check_access): Update call to get_range_strlen to use
36314         c_strlen_data pointer.   Change various variable accesses to instead
36315         pull data from the c_strlen_data structure.
36316         (check_strncat_sizes, expand_builtin_strncat): Likewise.
36317         * calls.c (maybe_warn_nonstring_arg): Likewise.
36318         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
36319         minimum length if maximum lengh is unknown.
36320         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
36321         that used c_strlen, it's no longer needed.  Restructure slightly.
36322         (format_string): Set unlikely range appropriately.
36323         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
36324         formatting issues.
36325         (get_range_strlen): Accept c_strlen_data pointer for external
36326         call sites as well.  Pass through to call to internal get_range_strlen.
36327         Adjust minlen, maxlen and maxbound as needed.
36328         (get_maxval_strlen): Update comments.
36329         (gimple_fold_builtin_strlen): Update call to get_range_strlen
36330         to use c_strlen_data pointer.  Change variable accesses to instead
36331         use c_strlen_data data members.
36332
36333         * gimple-fold.c (get_range_strlen): Update prototype.
36334         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
36335         local variables.  Use pdata to return information to caller.
36336         Update calls to get_range_strlen.  Update pdata->maxbound.
36337         (get_range_strlen -- static version): Similarly.
36338         (get_range_strlen -- extern version): Update for internal
36339         get_range_strlen API change.  Convert to external data format.
36340         (get_maxval_strlen): Similarly.
36341
36342 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
36343
36344         * coverage.c (get_coverage_counts): Use current_function_decl.
36345         * profile.c (read_thunk_profile): New function.
36346         (branch_prob): Add THUNK parameter.
36347         * tree-profile.c (tree_profiling): Handle thunks.
36348         * value-prof.c (init_node_map): Handle thunks.
36349         * value-prof.h (branch_prob): Upate prototype.
36350         (read_thunk_profile): Declare.
36351
36352 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
36353
36354         Update copyright years.
36355
36356         * gcc.c (process_command): Update copyright notice dates.
36357         * gcov-dump.c (print_version): Ditto.
36358         * gcov.c (print_version): Ditto.
36359         * gcov-tool.c (print_version): Ditto.
36360         * gengtype.c (create_file): Ditto.
36361         * doc/cpp.texi: Bump @copying's copyright year.
36362         * doc/cppinternals.texi: Ditto.
36363         * doc/gcc.texi: Ditto.
36364         * doc/gccint.texi: Ditto.
36365         * doc/gcov.texi: Ditto.
36366         * doc/install.texi: Ditto.
36367         * doc/invoke.texi: Ditto.
36368 \f
36369 Copyright (C) 2019 Free Software Foundation, Inc.
36370
36371 Copying and distribution of this file, with or without modification,
36372 are permitted in any medium without royalty provided the copyright
36373 notice and this notice are preserved.