Define STARTFILE_PREFIX_SPEC for powerpc VxWorks < 7
[official-gcc.git] / gcc / ChangeLog
blobe69810374f7757d8daa2477d901d55021b549b4f
1 2019-12-30  Doug Rupp  <rupp@adacore.com>
3         * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define.
5 2019-12-30  Olivier Hainque  <hainque@adacore.com>
6             Jerome Lambourg  <labourg@adacore.com>
8         * config/t-vxworks: Arrange to alter/restore glimits.h
9         before/after stmp-int-hdrs, so it uses a different macro
10         name to protect itself against recursive inclusions.
12 2019-12-30  Peter Bergner <bergner@linux.ibm.com>
14         PR target/92923
15         * config/rs6000/rs6000-builtin.def (VAND, VANDC, VNOR, VOR, VXOR):
16         Delete.
17         (EQV_V16QI_UNS, EQV_V8HI_UNS, EQV_V4SI_UNS, EQV_V2DI_UNS, EQV_V1TI_UNS,
18         NAND_V16QI_UNS, NAND_V8HI_UNS, NAND_V4SI_UNS, NAND_V2DI_UNS,
19         NAND_V1TI_UNS, ORC_V16QI_UNS, ORC_V8HI_UNS, ORC_V4SI_UNS, ORC_V2DI_UNS,
20         ORC_V1TI_UNS, VAND_V16QI_UNS, VAND_V16QI, VAND_V8HI_UNS, VAND_V8HI,
21         VAND_V4SI_UNS, VAND_V4SI, VAND_V2DI_UNS, VAND_V2DI, VAND_V4SF,
22         VAND_V2DF, VANDC_V16QI_UNS, VANDC_V16QI, VANDC_V8HI_UNS, VANDC_V8HI,
23         VANDC_V4SI_UNS, VANDC_V4SI, VANDC_V2DI_UNS, VANDC_V2DI, VANDC_V4SF,
24         VANDC_V2DF, VNOR_V16QI_UNS, VNOR_V16QI, VNOR_V8HI_UNS, VNOR_V8HI,
25         VNOR_V4SI_UNS, VNOR_V4SI, VNOR_V2DI_UNS, VNOR_V2DI, VNOR_V4SF,
26         VNOR_V2DF, VOR_V16QI_UNS, VOR_V16QI, VOR_V8HI_UNS, VOR_V8HI,
27         VOR_V4SI_UNS, VOR_V4SI, VOR_V2DI_UNS, VOR_V2DI, VOR_V4SF, VOR_V2DF,
28         VXOR_V16QI_UNS, VXOR_V16QI, VXOR_V8HI_UNS, VXOR_V8HI,
29         VXOR_V4SI_UNS, VXOR_V4SI, VXOR_V2DI_UNS, VXOR_V2DI, VXOR_V4SF,
30         VXOR_V2DF): Add definitions.
31         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins)
32         <ALTIVEC_BUILTIN_VAND, ALTIVEC_BUILTIN_VANDC, ALTIVEC_BUILTIN_VNOR,
33         ALTIVEC_BUILTIN_VOR, ALTIVEC_BUILTIN_VXOR>: Remove.
34         <ALTIVEC_BUILTIN_VAND_V4SF, ALTIVEC_BUILTIN_VAND_V2DF,
35         ALTIVEC_BUILTIN_VAND_V2DI, ALTIVEC_BUILTIN_VAND_V2DI_UNS,
36         ALTIVEC_BUILTIN_VAND_V4SI_UNS, ALTIVEC_BUILTIN_VAND_V4SI,
37         ALTIVEC_BUILTIN_VAND_V8HI_UNS, ALTIVEC_BUILTIN_VAND_V8HI,
38         ALTIVEC_BUILTIN_VAND_V16QI, ALTIVEC_BUILTIN_VAND_V16QI_UNS,
39         ALTIVEC_BUILTIN_VANDC_V4SF, ALTIVEC_BUILTIN_VANDC_V2DF,
40         ALTIVEC_BUILTIN_VANDC_V2DI, ALTIVEC_BUILTIN_VANDC_V2DI_UNS,
41         ALTIVEC_BUILTIN_VANDC_V4SI_UNS, ALTIVEC_BUILTIN_VANDC_V4SI,
42         ALTIVEC_BUILTIN_VANDC_V8HI_UNS, ALTIVEC_BUILTIN_VANDC_V8HI,
43         ALTIVEC_BUILTIN_VANDC_V16QI, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
44         ALTIVEC_BUILTIN_VNOR_V4SF, ALTIVEC_BUILTIN_VNOR_V2DF,
45         ALTIVEC_BUILTIN_VNOR_V2DI, ALTIVEC_BUILTIN_VNOR_V2DI_UNS,
46         ALTIVEC_BUILTIN_VNOR_V4SI, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
47         ALTIVEC_BUILTIN_VNOR_V8HI, ALTIVEC_BUILTIN_VNOR_V8HI_UNS,
48         ALTIVEC_BUILTIN_VNOR_V16QI, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
49         ALTIVEC_BUILTIN_VOR_V4SF, ALTIVEC_BUILTIN_VOR_V2DF,
50         ALTIVEC_BUILTIN_VOR_V2DI, ALTIVEC_BUILTIN_VOR_V2DI_UNS,
51         ALTIVEC_BUILTIN_VOR_V4SI_UNS, ALTIVEC_BUILTIN_VOR_V4SI,
52         ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V8HI,
53         ALTIVEC_BUILTIN_VOR_V16QI, ALTIVEC_BUILTIN_VOR_V16QI_UNS,
54         ALTIVEC_BUILTIN_VXOR_V4SF, ALTIVEC_BUILTIN_VXOR_V2DF,
55         ALTIVEC_BUILTIN_VXOR_V2DI, ALTIVEC_BUILTIN_VXOR_V2DI_UNS,
56         ALTIVEC_BUILTIN_VXOR_V4SI_UNS, ALTIVEC_BUILTIN_VXOR_V4SI,
57         ALTIVEC_BUILTIN_VXOR_V8HI, ALTIVEC_BUILTIN_VXOR_V8HI_UNS,
58         ALTIVEC_BUILTIN_VXOR_V16QI, ALTIVEC_BUILTIN_VXOR_V16QI_UNS>: Add
59         definitions.
60         <P8V_BUILTIN_EQV_V16QI, P8V_BUILTIN_EQV_V8HI, P8V_BUILTIN_EQV_V4SI,
61         P8V_BUILTIN_EQV_V2DI, P8V_BUILTIN_NAND_V16QI, P8V_BUILTIN_NAND_V8HI,
62         P8V_BUILTIN_NAND_V4SI, P8V_BUILTIN_NAND_V2DI, P8V_BUILTIN_ORC_V16QI,
63         P8V_BUILTIN_ORC_V8HI, P8V_BUILTIN_ORC_V4SI,
64         P8V_BUILTIN_ORC_V2DI>: Change unsigned usages to use the new *_UNS
65         definition names.
66         (rs6000_gimple_fold_builtin) <ALTIVEC_BUILTIN_VAND_V16QI_UNS,
67         ALTIVEC_BUILTIN_VAND_V16QI, ALTIVEC_BUILTIN_VAND_V8HI_UNS,
68         ALTIVEC_BUILTIN_VAND_V8HI, ALTIVEC_BUILTIN_VAND_V4SI_UNS,
69         ALTIVEC_BUILTIN_VAND_V4SI, ALTIVEC_BUILTIN_VAND_V2DI_UNS,
70         ALTIVEC_BUILTIN_VAND_V2DI, ALTIVEC_BUILTIN_VAND_V4SF,
71         ALTIVEC_BUILTIN_VAND_V2DF, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
72         ALTIVEC_BUILTIN_VANDC_V16QI, ALTIVEC_BUILTIN_VANDC_V8HI_UNS,
73         ALTIVEC_BUILTIN_VANDC_V8HI, ALTIVEC_BUILTIN_VANDC_V4SI_UNS,
74         ALTIVEC_BUILTIN_VANDC_V4SI, ALTIVEC_BUILTIN_VANDC_V2DI_UNS,
75         ALTIVEC_BUILTIN_VANDC_V2DI, ALTIVEC_BUILTIN_VANDC_V4SF,
76         ALTIVEC_BUILTIN_VANDC_V2DF, P8V_BUILTIN_NAND_V16QI_UNS,
77         P8V_BUILTIN_NAND_V8HI_UNS, P8V_BUILTIN_NAND_V4SI_UNS,
78         P8V_BUILTIN_NAND_V2DI_UNS, P8V_BUILTIN_NAND_V2DI,
79         ALTIVEC_BUILTIN_VOR_V16QI_UNS, ALTIVEC_BUILTIN_VOR_V16QI,
80         ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V8HI,
81         ALTIVEC_BUILTIN_VOR_V4SI_UNS, ALTIVEC_BUILTIN_VOR_V4SI,
82         ALTIVEC_BUILTIN_VOR_V2DI_UNS, ALTIVEC_BUILTIN_VOR_V2DI,
83         ALTIVEC_BUILTIN_VOR_V4SF, ALTIVEC_BUILTIN_VOR_V2DF,
84         P8V_BUILTIN_ORC_V16QI_UNS, P8V_BUILTIN_ORC_V8HI_UNS,
85         P8V_BUILTIN_ORC_V4SI_UNS, P8V_BUILTIN_ORC_V2DI_UNS,
86         P8V_BUILTIN_ORC_V2DI, ALTIVEC_BUILTIN_VXOR_V16QI_UNS,
87         ALTIVEC_BUILTIN_VXOR_V16QI, ALTIVEC_BUILTIN_VXOR_V8HI_UNS,
88         ALTIVEC_BUILTIN_VXOR_V8HI, ALTIVEC_BUILTIN_VXOR_V4SI_UNS,
89         ALTIVEC_BUILTIN_VXOR_V4SI, ALTIVEC_BUILTIN_VXOR_V2DI_UNS,
90         ALTIVEC_BUILTIN_VXOR_V2DI, ALTIVEC_BUILTIN_VXOR_V4SF,
91         ALTIVEC_BUILTIN_VXOR_V2DF, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
92         ALTIVEC_BUILTIN_VNOR_V16QI, ALTIVEC_BUILTIN_VNOR_V8HI_UNS,
93         ALTIVEC_BUILTIN_VNOR_V8HI, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
94         ALTIVEC_BUILTIN_VNOR_V4SI, ALTIVEC_BUILTIN_VNOR_V2DI_UNS,
95         ALTIVEC_BUILTIN_VNOR_V2DI, ALTIVEC_BUILTIN_VNOR_V4SF,
96         ALTIVEC_BUILTIN_VNOR_V2DF>: Use new definition names.
97         (builtin_function_type) <ALTIVEC_BUILTIN_VAND_V16QI_UNS,
98         ALTIVEC_BUILTIN_VAND_V8HI_UNS, ALTIVEC_BUILTIN_VAND_V4SI_UNS,
99         ALTIVEC_BUILTIN_VAND_V2DI_UNS, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
100         ALTIVEC_BUILTIN_VANDC_V8HI_UNS, ALTIVEC_BUILTIN_VANDC_V4SI_UNS,
101         ALTIVEC_BUILTIN_VANDC_V2DI_UNS, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
102         ALTIVEC_BUILTIN_VNOR_V8HI_UNS, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
103         ALTIVEC_BUILTIN_VNOR_V2DI_UNS, ALTIVEC_BUILTIN_VOR_V16QI_UNS,
104         ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V4SI_UNS,
105         ALTIVEC_BUILTIN_VOR_V2DI_UNS, ALTIVEC_BUILTIN_VXOR_V16QI_UNS,
106         ALTIVEC_BUILTIN_VXOR_V8HI_UNS, ALTIVEC_BUILTIN_VXOR_V4SI_UNS,
107         ALTIVEC_BUILTIN_VXOR_V2DI_UNS, P8V_BUILTIN_EQV_V16QI_UNS,
108         P8V_BUILTIN_EQV_V8HI_UNS, P8V_BUILTIN_EQV_V4SI_UNS,
109         P8V_BUILTIN_EQV_V2DI_UNS, P8V_BUILTIN_EQV_V1TI_UNS,
110         P8V_BUILTIN_NAND_V16QI_UNS, P8V_BUILTIN_NAND_V8HI_UNS,
111         P8V_BUILTIN_NAND_V4SI_UNS, P8V_BUILTIN_NAND_V2DI_UNS,
112         P8V_BUILTIN_NAND_V1TI_UNS, P8V_BUILTIN_ORC_V16QI_UNS,
113         P8V_BUILTIN_ORC_V8HI_UNS, P8V_BUILTIN_ORC_V4SI_UNS,
114         P8V_BUILTIN_ORC_V2DI_UNS, P8V_BUILTIN_ORC_V1TI_UNS>: Handle unsigned
115         builtins.
117 2019-12-29  Jakub Jelinek  <jakub@redhat.com>
119         PR target/93078
120         * config/i386/i386-builtins.c (ix86_builtin_vectorized_function):
121         Remove CASE_CFN_RINT handling.
122         * config/i386/i386-builtin.def (IX86_BUILTIN_RINTPD,
123         IX86_BUILTIN_RINTPS, IX86_BUILTIN_RINTPD256, IX86_BUILTIN_RINTPS256):
124         Remove.
125         * config/i386/sse.md (nearbyint<mode>2, rint<mode>2): New expanders
126         with VF iterator.
128 2019-12-29  Richard Sandiford  <richard.sandiford@arm.com>
130         * tree-vect-stmts.c (vect_get_strided_load_store_ops): Copy
131         DR_STEP before gimplifying it.
133 2019-12-29  Richard Sandiford  <richard.sandiford@arm.com>
135         * tree-vect-stmts.c (vectorizable_condition): For extract-last
136         reductions, check that the target supports the required comparison
137         operation.
139 2019-12-27  Richard Sandiford  <richard.sandiford@arm.com>
141         * config/aarch64/iterators.md (V_INT_CONTAINER): Fix VNx2SF entry.
143 2019-12-27  Richard Sandiford  <richard.sandiford@arm.com>
145         * tree-vect-loop.c (vectorizable_reduction): Check whether the
146         target supports the required VEC_COND_EXPR operation before
147         allowing the fallback handling of masked fold-left reductions.
149 2019-12-24  Jiufu Guo  <guojiufu@linux.ibm.com>
151         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
152         -fweb and -frename-registers with -funroll-loops
154 2019-12-22  Gerald Pfeifer  <gerald@pfeifer.com>
156         * doc/invoke.texi (-flto): Use "compile time" as a noun.
158 2019-12-21  Martin Jambor  <mjambor@suse.cz>
160         PR ipa/93015
161         * ipa-cp.c (ipcp_store_vr_results): Check that info exists
163 2019-12-20   Michael Meissner  <meissner@linux.ibm.com>
165         * config/rs6000/predicates.md (cint34_operand): Use
166         SIGNED_INTEGER_34BIT_P macro.
167         * config/rs6000/rs6000.c (num_insns_constant_gpr): Use the
168         SIGNED_INTEGER_16BIT_P and SIGNED_INTEGER_34BIT_P macros.
169         (address_to_insn_form): Use the SIGNED_INTEGER_16BIT_P and
170         SIGNED_INTEGER_34BIT_P macros.
171         * config/rs6000/rs6000.h (SIGNED_INTEGER_NBIT_P): New macro.
172         (SIGNED_INTEGER_16BIT_P): Rename SIGNED_16BIT_OFFSET_P to be
173         SIGNED_INTEGER_34BIT_P.
174         (SIGNED_INTEGER_34BIT_P): Rename SIGNED_34BIT_OFFSET_P to be
175         SIGNED_INTEGER_34BIT_P.
177 2019-12-20  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
179         * doc/sourcebuild.texi
180         (arm_v8_2a_bf16_neon_ok): Document new target supports option.
181         (arm_v8_2a_i8mm_ok): Likewise.
183 2019-12-20  Jakub Jelinek  <jakub@redhat.com>
185         PR target/92841
186         * config/i386/i386.md (*stack_protect_set_3): For pic_32bit_operand
187         always use lea{q}, no matter what value which_alternative has.
189         PR target/93002
190         * config/i386/i386.md (dec reg; cmp $-1, reg; jne lab): New
191         define_peephole2.
193 2019-12-19  Julian Brown  <julian@codesourcery.com>
195         * gimplify.c (gimplify_omp_var_data): Add GOVD_MAP_HAS_ATTACHMENTS.
196         (insert_struct_comp_map): Support derived-type member mappings
197         for arrays with descriptors which use GOMP_MAP_TO_PSET.  Support
198         GOMP_MAP_ATTACH_DETACH.
199         (gimplify_scan_omp_clauses): Tidy up OACC_ENTER_DATA/OACC_EXIT_DATA
200         mappings.  Handle attach/detach clauses and component references.
201         (gimplify_adjust_omp_clauses_1): Skip adjustments for explicit
202         attach/detach clauses.
203         (gimplify_omp_target_update): Handle struct mappings and finalize for
204         detach operations.
205         * omp-low.c (lower_omp_target): Support GOMP_MAP_ATTACH,
206         GOMP_MAP_DETACH, GOMP_MAP_FORCE_DETACH.
207         * tree-pretty-print.c (dump_omp_clause): Likewise, plus
208         GOMP_MAP_ATTACH_DETACH.
210 2019-12-19  Julian Brown  <julian@codesourcery.com>
212         * gimplify.c (insert_struct_comp_map, extract_base_bit_offset): New.
213         (gimplify_scan_omp_clauses): Outline duplicated code into calls to
214         above two functions.
216 2019-12-19  Vladimir Makarov  <vmakarov@redhat.com>
218         PR target/92905
219         * lra-constraints.c (process_alt_operands): Check offmemok when
220         processing preferred_reload_class.
222 2019-12-19  Andrew Stubbs  <ams@codesourcery.com>
224         * config/gcn/gcn-valu.md
225         (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>):
226         Change input predcate to gcn_alu_operand.
227         (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>):
228         Likewise.
229         (truncv64di<mode>2): Likewise.
230         (truncv64di<mode>2_exec): Likewise.
231         (<convop><mode>v64di2): Likewise.
232         (<convop><mode>v64di2_exec): Likewise.
234 2019-12-19  Andrew Stubbs  <ams@codesourcery.com>
236         * config/gcn/gcn-valu.md (*plus_carry_dpp_shr_<mode>): Rename to ...
237         (*plus_carry_dpp_shr_v64si): ... this, and replace all
238         VEC_1REG_INT_MODE with V64SI.
240 2019-12-19  David Malcolm  <dmalcolm@redhat.com>
242         * hash-map-tests.c (selftest::test_map_of_int_to_strings): New
243         selftest.
244         (selftest::hash_map_tests_c_tests): Call it.
246 2019-12-19  David Malcolm  <dmalcolm@redhat.com>
248         * gimple-predict.h (gimple_predict_predictor): Make "gs" param
249         const.
250         (gimple_predict_outcome): Likewise.
251         * gimple-pretty-print.c (do_niy): Likewise.
252         (dump_unary_rhs): Likewise.
253         (dump_binary_rhs): Likewise.
254         (dump_ternary_rhs): Likewise.
255         (dump_gimple_assign): Likewise.
256         (dump_gimple_return): Likewise.
257         (dump_gimple_call_args): Likewise.
258         (pp_points_to_solution): Make "pt" param const.
259         (dump_gimple_call): Make "gs" param const.
260         (dump_gimple_switch): Likewise.
261         (dump_gimple_cond): Likewise.
262         (dump_gimple_label): Likewise.
263         (dump_gimple_goto): Likewise.
264         (dump_gimple_bind): Likewise.
265         (dump_gimple_try): Likewise.
266         (dump_gimple_catch): Likewise.
267         (dump_gimple_eh_filter): Likewise.
268         (dump_gimple_eh_must_not_throw): Likewise.
269         (dump_gimple_eh_else): Likewise.
270         (dump_gimple_resx): Likewise.
271         (dump_gimple_eh_dispatch): Likewise.
272         (dump_gimple_debug): Likewise.
273         (dump_gimple_omp_for): Likewise.
274         (dump_gimple_omp_continue): Likewise.
275         (dump_gimple_omp_single): Likewise.
276         (dump_gimple_omp_taskgroup): Likewise.
277         (dump_gimple_omp_target): Likewise.
278         (dump_gimple_omp_teams): Likewise.
279         (dump_gimple_omp_sections): Likewise.
280         (dump_gimple_omp_block): Likewise.
281         (dump_gimple_omp_critical): Likewise.
282         (dump_gimple_omp_ordered): Likewise.
283         (dump_gimple_omp_scan): Likewise.
284         (dump_gimple_omp_return): Likewise.
285         (dump_gimple_transaction): Likewise.
286         (dump_gimple_asm): Likewise.
287         (dump_gimple_phi): Make "phi" param const.
288         (dump_gimple_omp_parallel): Make "gs" param const.
289         (dump_gimple_omp_task): Likewise.
290         (dump_gimple_omp_atomic_load): Likewise.
291         (dump_gimple_omp_atomic_store): Likewise.
292         (dump_gimple_mem_ops): Likewise.
293         (pp_gimple_stmt_1): Likewise.  Add "const" to the various as_a <>
294         casts throughout.
295         * gimple-pretty-print.h (gimple_stmt_1): Make gimple * param const.
296         * gimple.h (is_a_helper <const gdebug *>::test): New.
297         (is_a_helper <const ggoto *>::test): New.
298         (is_a_helper <const glabel *>::test): New.
299         (is_a_helper <const geh_else *>::test): New.
300         (is_a_helper <const geh_mnt *>::test): New.
301         (is_a_helper <const gswitch *>::test): New.
302         (is_a_helper <const gtry *>::test): New.
303         (is_a_helper <const greturn *>::test): New.
304         (gimple_call_tail_p): Make param const.
305         (gimple_call_return_slot_opt_p): Likewise.
306         (gimple_call_va_arg_pack_p): Likewise.
307         (gimple_call_use_set): Add const overload.
308         (gimple_call_clobber_set): Likewise.
309         (gimple_has_lhs): Make param const.
310         (gimple_bind_body): Likewise.
311         (gimple_catch_handler): Likewise.
312         (gimple_eh_filter_failure): Likewise.
313         (gimple_eh_must_not_throw_fndecl): Likewise.
314         (gimple_eh_else_n_body): Likewise.
315         (gimple_eh_else_e_body): Likewise.
316         (gimple_try_eval): Likewise.
317         (gimple_try_cleanup): Likewise.
318         (gimple_phi_arg): Add const overload.
319         (gimple_phi_arg_def): Make param const.
320         (gimple_phi_arg_edge): Likewise.
321         (gimple_phi_arg_location): Likewise.
322         (gimple_phi_arg_has_location): Likewise.
323         (gimple_debug_bind_get_var): Likewise.
324         (gimple_debug_bind_get_value): Likewise.
325         (gimple_debug_source_bind_get_var): Likewise.
326         (gimple_debug_source_bind_get_value): Likewise.
327         (gimple_omp_body): Likewise.
328         (gimple_omp_for_collapse): Likewise.
329         (gimple_omp_for_pre_body): Likewise.
330         (gimple_transaction_body): Likewise.
331         * tree-eh.c (lookup_stmt_eh_lp_fn): Make param "t" const.
332         (lookup_stmt_eh_lp): Likewise.
333         * tree-eh.h (lookup_stmt_eh_lp_fn): Make param const.
334         (lookup_stmt_eh_lp): Likewise.
335         * tree-ssa-alias.h (pt_solution_empty_p): Make param const.
336         * tree-ssa-structalias.c (pt_solution_empty_p): Likewise.
338 2019-12-19  Richard Sandiford  <richard.sandiford@arm.com>
340         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): When
341         handling partial SVE vectors, use the container mode rather than
342         the element mode if the constant isn't a single-element duplicate.
343         * config/aarch64/aarch64-sve.md (@aarch64_sve_reinterpret<mode>):
344         Check targetm.can_change_mode_class instead of BYTES_BIG_ENDIAN.
346 2019-12-19  Andrew Stubbs  <ams@codesourcery.com>
348         * config/gcn/gcn-valu.md (addv64si3<exec_clobber>): Rename to ...
349         (add<mode>3<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
350         (addv64si3_dup<exec_clobber>): Rename to ...
351         (add<mode>3_dup<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
352         (subv64si3<exec_clobber>): Rename to ...
353         (sub<mode>3<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
355 2019-12-19  Richard Sandiford  <richard.sandiford@arm.com>
357         * config/aarch64/aarch64.c (aarch64_can_change_mode_class):
358         Don't allow changes between partial SVE modes and other kinds
359         of mode.  Don't allow changes between two partial SVE modes
360         if they have different container or element sizes.
362 2019-12-19  Richard Sandiford  <richard.sandiford@arm.com>
364         * config/aarch64/aarch64.c (aarch64_function_value_1): New function,
365         split out from...
366         (aarch64_function_value): ...here.  Handle partial SVE modes by
367         pretending that they have the associated/traditional integer mode,
368         then wrap the result in the real mode.
369         (aarch64_layout_arg): Take an orig_mode argument and pass it to
370         aarch64_function_arg_alignment.  Handle partial SVE modes analogously
371         to aarch64_function_value.
372         (aarch64_function_arg): Update call accordingly.
373         (aarch64_function_arg_advance): Likewise.
375 2019-12-19  Jan Hubicka  <hubicka@ucw.cz>
376             Xi Ruoyao  <xry111@mengyan1223.wang>
378         * cgraph.c (cgraph_node_cannot_be_local_p_1): Prevent targets of
379         symver attributes to be localized.
380         * ipa-visibility.c (cgraph_externally_visible_p,
381         varpool_node::externally_visible_p): Likewise.
382         * symtab.c (symtab_node::verify_base): Check visibility of symbol
383         versions.
385 2019-12-19  Jan Hubicka  <hubicka@ucw.cz>
386             Luo Xiong Hu  <luoxhu@linux.ibm.com
388         * ipa-fnsummary.h (ipa_size_summary): Remove copy consturctor.
389         (ipa_size_summary_t): Add duplicate method; move to heap.
390         * ipa-fnsumary.c (ipa_fn_summary_alloc): Fix allocation.
392 2019-12-19  Feng Xue  <fxue@os.amperecomputing.com>
394         PR ipa/92794
395         * ipa-cp.c (self_recursive_agg_pass_through_p): New function.
396         (intersect_with_plats): Use error_mark_node as place holder
397         when aggregate jump function is simple pass-through for
398         self-recursive call.
399         (intersect_with_agg_replacements): Likewise.
400         (intersect_aggregates_with_edge): Likewise.
401         (find_aggregate_values_for_callers_subset): Likewise.
403 2019-12-18  David Malcolm  <dmalcolm@redhat.com>
405         * common.opt (fdiagnostics-show-cwe): Add.
406         * diagnostic-core.h (class diagnostic_metadata): New forward decl.
407         (warning_at): Add overload taking a const diagnostic_metadata &.
408         (emit_diagnostic_valist): Add overload taking a
409         const diagnostic_metadata *.
410         * diagnostic-format-json.cc: Include "diagnostic-metadata.h".
411         (json_from_metadata): New function.
412         (json_end_diagnostic): Call it to add "metadata" child for
413         diagnostics with metadata.
414         (diagnostic_output_format_init): Clear context->show_cwe.
415         * diagnostic-metadata.h: New file.
416         * diagnostic.c: Include "diagnostic-metadata.h".
417         (diagnostic_impl): Add const diagnostic_metadata * param.
418         (diagnostic_n_impl): Likewise.
419         (diagnostic_initialize): Initialize context->show_cwe.
420         (diagnostic_set_info_translated): Initialize diagnostic->metadata.
421         (get_cwe_url): New function.
422         (print_any_cwe): New function.
423         (diagnostic_report_diagnostic): Call print_any_cwe if the
424         diagnostic has non-NULL metadata.
425         (emit_diagnostic): Pass NULL as the metadata in the call to
426         diagnostic_impl.
427         (emit_diagnostic_valist): Likewise.
428         (emit_diagnostic_valist): New overload taking a
429         const diagnostic_metadata *.
430         (inform): Pass NULL as the metadata in the call to
431         diagnostic_impl.
432         (inform_n): Likewise for diagnostic_n_impl.
433         (warning): Likewise.
434         (warning_at): Likewise.  Add overload that takes a
435         const diagnostic_metadata &.
436         (warning_n): Pass NULL as the metadata in the call to
437         diagnostic_n_impl.
438         (pedwarn): Likewise for diagnostic_impl.
439         (permerror): Likewise.
440         (error): Likewise.
441         (error_n): Likewise.
442         (error_at): Likewise.
443         (sorry): Likewise.
444         (sorry_at): Likewise.
445         (fatal_error): Likewise.
446         (internal_error): Likewise.
447         (internal_error_no_backtrace): Likewise.
448         * diagnostic.h (diagnostic_info::metadata): New field.
449         (diagnostic_context::show_cwe): New field.
450         * doc/invoke.texi (-fno-diagnostics-show-cwe): New option.
451         * opts.c (common_handle_option): Handle OPT_fdiagnostics_show_cwe.
452         * toplev.c (general_init): Initialize global_dc->show_cwe.
454 2019-12-19  Julian Brown  <julian@codesourcery.com>
455             Maciej W. Rozycki  <macro@codesourcery.com>
456             Tobias Burnus  <tobias@codesourcery.com>
457             Thomas Schwinge  <thomas@codesourcery.com>
459         * omp-low.c (lower_omp_target): Support GOMP_MAP_NO_ALLOC.
460         * tree-pretty-print.c (dump_omp_clause): Likewise.
462 2019-12-18  Eric Botcazou  <ebotcazou@adacore.com>
464         * ira.c (ira): Use simple LRA algorithm when not optimizing.
466 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
468         * gimplify.c (gimplify_omp_target_update): Elaborate 'exit data'
469         'finalize' handling.
471 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
473         PR middle-end/86416
474         *  Makefile.in (CFLAGS-lto-streamer-in.o): Pass target_noncanonical on.
475         * lto-streamer-in.c (lto_input_mode_table): Improve unsupported-mode
476         diagnostic.
478 2019-12-18  Wilco Dijkstra  <wdijkstr@arm.com>
480         * config/aarch64/aarch64-cores.def: 
481         ("cortex-a76ae"): Use neoversen1 tuning.
482         ("cortex-a77"): Likewise.
483         ("cortex-a65"): Use cortexa53 scheduler.
484         ("cortex-a65ae"): Likewise.
485         ("neoverse-e1"): Use cortexa73 tuning.
487 2019-12-18  Martin Jambor  <mjambor@suse.cz>
489         PR ipa/92971
490         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Fix
491         definition of values, release memory on exit.
493 2019-12-17  Jan Hubicka  <hubicka@ucw.cz>
494             Martin Jambor  <mjambor@suse.cz>
496         * ipa-param-manipulation.h (get_original_index): Declare.
497         * ipa-param-manipulation.c (ipa_param_adjustments::get_original_index):
498         New member function.
499         * ipa-prop.c (ipcp_get_parm_bits): New function.
500         * ipa-prop.h (ipcp_get_parm_bits): Declare.
501         * tree-ssa-ccp.c: Include cgraph.h, alloc-pool.h, symbol-summary.h,
502         ipa-utils.h and ipa-prop.h
503         (get_default_value): Use ipcp_get_parm_bits.
505 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
507         PR lto/92972
508         * lto-wrapper.c (merge_and_complain): Use just "-fno-pie" instead of
509         big ? "-fno-pie" : "-fno-pie".  Formatting fixes.  Fix comment typo.
511 2019-12-17  Martin Sebor  <msebor@redhat.com>
513         PR c++/61339
514         * doc/invoke.texi (-Wmismatched-tags, -Wredundant-tags): Document
515         new C++ options.
517 2019-12-17  Michael Meissner  <meissner@linux.ibm.com>
519         * config/rs6000/rs6000.c (num_insns_constant_gpr): Return 1 if the
520         constant can be loaded with PLI if -mcpu=future.
521         * config/rs6000/rs6000.md (add<mode>3): Add alternative to
522         generate PADDI for 34-bit constants if -mcpu=future.
523         (movdi_internal64): Add alternative to use PLI to load up 34-bit
524         constants if -mcpu=future.
525         (movsi_internal1): Add alternative to use PLI to load up 32-bit
526         constants if -mcpu=future.
527         * config/rs6000/predicates.md (add_operand): Allow eI constants.
529 2019-12-17  Jakub Jelinek  <jakub@redhat.com>
531         PR target/92841
532         * config/i386/i386.md (@stack_protect_set_1_<mode>,
533         @stack_protect_test_1_<mode>): Use output_asm_insn.
534         (*stack_protect_set_2_<mode>, *stack_protect_set_3): New define_insns
535         and corresponding define_peephole2s.
537 2019-12-17  Jan Hubicka  <hubicka@ucw.cz>
539         * symtab.c (symtab_node::get_partitioning_class): Aliases of external
540         symbols are external.
542 2019-12-17  Christophe Lyon  <christophe.lyon@linaro.org>
544         * config/arm/arm-protos.h (thumb1_gen_const_int): Add new prototype.
545         * config/arm/arm.c (arm_option_check_internal): Remove restriction
546         on MOVT for -mpure-code.
547         (thumb1_gen_const_int): New function.
548         (thumb1_legitimate_address_p): Support -mpure-code.
549         (thumb1_rtx_costs): Likewise.
550         (thumb1_size_rtx_costs): Likewise.
551         (arm_thumb1_mi_thunk): Likewise.
552         * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Likewise.
553         * config/arm/thumb1.md (thumb1_movsi_symbol_ref): New.
554         (*thumb1_movhf): Support -mpure-code.
555         * doc/invoke.texi (-mpure-code): Remove restriction on MOVT.
557 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
559         * tree-vect-loop.c (vect_create_epilog_for_reduction): Mention pr92772
560         in the comments.
562 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
564         * config/gcn/gcn-valu.md (extract_last_<mode>): New expander.
565         (fold_extract_last_<mode>): New expander.
567 2019-12-17  Andrew Stubbs  <ams@codesourcery.com>
569         * config/gcn/gcn.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
570         (CTZ_DEFINED_VALUE_AT_ZERO): Define.
571         * config/gcn/gcn.md (s_mnemonic): Add clz and ctz.
572         (expander): Likewise.
573         (countzeros): New code iterator.
574         (<expander>si2): New insn pattern.
575         (<expander>di2): New insn pattern.
577 2019-12-17  Jakub Jelinek  <jakub@redhat.com>
579         PR target/92962
580         * common/config/i386/i386-common.c (processor_alias_table): Formatting
581         fixes.
582         * doc/invoke.texi (bdver3, bdver4, znver1): Add missing closing paren.
583         (znver2): Likewise.  Add RDPID and WBNOINVD, remove spurious comma
584         before CLWB.
586 2019-12-17  Hongyu Wang  <hongyu.wang@intel.com>
588         PR target/92651
589         * config/i386/i386.h (TARGET_EXPAND_ABS): New macro.
590         * config/i386/x86-tune.def (X86_TUNE_EXPAND_ABS): New.
591         * config/i386/i386.md (abs<SWI48x>2): New define_expand.
593 2019-12-17  H.J. Lu  <hjl.tools@gmail.com>
595         PR target/92807
596         * config/i386/i386.c (ix86_lea_outperforms): Check !TARGET_BONNELL.
597         (ix86_avoid_lea_for_addr): When not optimizing for Bonnell, use add
598         for a = a + b and a = b + a.
600 2019-12-16  Martin Sebor  <msebor@redhat.com>
602         PR middle-end/92952
603         * builtins.c (compute_objsize): Adjust offset by the array low bound.
605 2019-12-16  David Malcolm  <dmalcolm@redhat.com>
607         * pretty-print.c (pp_write_text_as_html_like_dot_to_stream): New
608         function.
609         * pretty-print.h (pp_write_text_as_html_like_dot_to_stream): New decl.
611 2019-12-16  Segher Boessenkool  <segher@kernel.crashing.org>
613         * config/rs6000/rs6000.md (movsi_to_cr_one): Use CR0_REGNO instead of
614         hardcoding the (old, expired) register number.
615         (*mtcrfsi): Ditto.
617 2019-12-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
619         * config.gcc: s/msp430*-*-*/msp430-*-*.
620         Handle msp430-*-elfbare.
621         * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define.
622         (_MSPMKSTR): Define.
623         (__MSPMKSTR): Define.
624         (rest_of_devices_path): Use TARGET_SUBDIR value in string.
625         * config/msp430/msp430.c (msp430_option_override): Error if
626         -fuse-cxa-atexit is used when it has been disabled at configure time.
627         * config/msp430/t-msp430: Define TARGET_SUBDIR when building
628         msp430-devices.o.
629         * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare.
630         * doc/invoke.texi: Update documentation about which path devices.csv is
631         searched for.
633 2019-12-16  Andreas Krebbel  <krebbel@linux.ibm.com>
635         PR target/92950
636         * config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
637         and lhrl with llc.
639 2019-12-14  Martin Sebor  <msebor@redhat.com>
641         * doc/extend.texi (attribute access): Correct typos.
643 2019-12-14  Jakub Jelinek  <jakub@redhat.com>
645         PR ipa/92357
646         * ipa-fnsummary.c (ipa_fn_summary_write): Use
647         lto_symtab_encoder_iterator with lsei_start_function_in_partition and
648         lsei_next_function_in_partition instead of walking all cgraph nodes
649         in encoder.
651         PR tree-optimization/92930
652         * ipa-pure-const.c (special_builtin_state): Don't handle
653         BUILT_IN_APPLY.  Formatting fixes.
654         (check_call): Formatting fixes.
656 2019-12-14  Iain Sandoe  <iain@sandoe.co.uk>
658         * config/darwin.h (DARWIN_EXTRA_SPECS): Add new
659         bundle spec. (DARWIN_BUNDLE1_SPEC): New.
660         (STARTFILE_SPEC): Use darwin bundle spec.
661         * config/rs6000/darwin.h (DARWIN_BUNDLE1_SPEC): New.
662         (DARWIN_DYLIB1_SPEC): Delete duplicate.
664 2019-12-13  Martin Sebor  <msebor@redhat.com>
666         PR middle-end/91582
667         PR middle-end/92868
668         * builtins.c (addr_decl_size): New function.
669         (gimple_call_alloc_size): Add arguments.
670         (compute_objsize): Add an argument.  Set *PDECL even for allocated
671         objects.
672         Correct checking for negative wide_int.
673         Correct handling of negative outer offsets into unknown regions
674         or with unknown inner offsets.
675         Extend offsets to at most sizetype precision.
676         Only handle constant subobject sizes.
677         * builtins.h (gimple_call_alloc_size): Add arguments.
678         * tree.c (component_ref_size): Always return sizetype.
679         * tree-ssa-strlen.c (strinfo::alloc): New member.
680         (get_addr_stridx): Add argument.
681         (get_stridx): Use ptrdiff_t.  Add argument.
682         (new_strinfo): Set new member.
683         (get_string_length): Handle alloca and VLA.
684         (dump_strlen_info): Dump more state.
685         (maybe_invalidate): Print more info.  Decrease indentation.
686         (unshare_strinfo): Set new member.
687         (valid_builtin_call): Handle alloca and VLA.
688         (maybe_warn_overflow): Check and set no-warning bit.  Improve
689         handling of offsets.  Print allocated objects.
690         (handle_builtin_strlen): Handle strinfo records with null lengths.
691         (handle_builtin_strcpy): Add argument.  Call maybe_warn_overflow.
692         (is_strlen_related_p): Handle dynamically allocated objects.
693         (get_range): Add argument.
694         (handle_builtin_malloc): Rename...
695         (handle_alloc): ...to this and handle all allocation functions.
696         (handle_builtin_memset): Call maybe_warn_overflow.
697         (count_nonzero_bytes): Handle more MEM_REF forms.
698         (strlen_check_and_optimize_call): Call handle_alloc_call.  Pass
699         arguments to more callees.
700         (handle_integral_assign): Add argument.  Create strinfo entries
701         for MEM_REF assignments.
702         (check_and_optimize_stmt): Handle more MEM_REF forms.
704 2019-12-13  Iain Sandoe  <iain@sandoe.co.uk>
706         * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
708 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
710         * lto-streamer-in.c (input_function): Add node parameter.
711         (lto_read_body_or_constructor): Use it.
713 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
715         PR rtl-optimization/92591
716         * modulo-sched.c (ps_add_node_check_conflicts): Improve checking
717         for history > 0 case.
719 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
721         * modulo-sched.c (sms_schedule): Use param_sms_max_ii_factor
722         value instead of macro.  Adjust comment.
723         (sms_schedule_by_order): Use parameter value without macro.
724         * params.opt: Add ranges for modulo scheduler parameters,
725         set param_sms_max_ii_factor = 2 by default.
727 2019-12-13  Roman Zhuykov  <zhroma@ispras.ru>
729         PR rtl-optimization/90001
730         * ddg.c (create_ddg): Init max_dist array for each node.
731         (free_ddg): Free max_dist array.
732         (create_ddg_edge): Use bool field instead of aux union.
733         (set_recurrence_length): Use prepared max_dist information instead
734         of calling longest_simple_path.
735         (create_scc): Remove graph argument, fill node's aux.count with
736         SCC id, and move set_recurrence_length call to...
737         (create_ddg_all_sccs): ...here, after filling all max_dist arrays
738         using Floyd–Warshall-like algorithm.
739         (update_dist_to_successors): Remove the whole function.
740         (longest_simple_path): Likewise.
741         * ddg.h (struct ddg_node): Add max_dist pointer.
742         (struct ddg_edge): Use bool field instead of unused aux union.
744 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
746         * config/gcn/gcn-valu.md (mulv64si3<exec>): Rename to ...
747         (mul<mode>3<exec>): ... this, and implement sub-dword patterns.
748         (mulv64si3_dup<exec>): Rename to ...
749         (mul<mode>3_dup<exec>): ... this, and implement sub-dword patterns.
751 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
753         * ipa-utils.c (ipa_merge_profiles): Improve dumping; merge common
754         targets.
756 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
758         * config/gcn/gcn-valu.md (sdwa): New mode attribute.
759         (VCVT_FROM_MODE): Rename to ...
760         (VCVT_MODE): ... this.
761         (VCVT_TO_MODE): Delete mode iterator.
762         (VCVT_FMODE): New mode iterator.
763         (VCVT_IMODE): Likewise.
764         (<cvt_name><VCVT_FROM_MODE:mode><VCVT_TO_MODE:mode>2<exec>): Change ...
765         (<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): ... to this.
766         (<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): New.
767         (zero_convert): New code iterator.
768         (convop): New code attribute.
769         (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
770         : New.
771         (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
772         : New.
773         (vec_truncatev64div64si): Rename to ...
774         (truncv64di<mode>2): ... this and implement sub-dword patterns.
775         (vec_truncatev64div64si_exec): Rename to ...
776         (truncv64di<mode>2_exec): ... this and implement sub-dword patterns.
777         (<convop><mode>v64di2): New insn_and_split.
778         (<convop><mode>v64di2_exec): Likewise.
779         (mask_gather_load<mode>): Update truncate names.
780         (mask_scatter_store<mode>): Likewise.
781         * config/gcn/gcn.c (gcn_expand_scaled_offsets): Update truncate names.
783 2019-12-13  Dennis Zhang  <dennis.zhang@arm.com>
785         * config/aarch64/aarch64-arches.def (armv8.6-a): New.
786         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
787         __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC and
788         __ARM_FEATURE_BF16_SCALAR_ARITHMETIC when enabled.
789         * config/aarch64/aarch64-option-extensions.def (i8mm, bf16): New.
790         (fp): Disabling fp also disables i8mm and bf16.
791         (simd): Disabling simd also disables i8mm.
792         * config/aarch64/aarch64.h (AARCH64_FL_V8_6): New macro.
793         (AARCH64_FL_I8MM, AARCH64_FL_BF16, AARCH64_FL_FOR_ARCH8_6): Likewise.
794         (AARCH64_ISA_V8_6, AARCH64_ISA_I8MM, AARCH64_ISA_BF16): Likewise.
795         (TARGET_I8MM, TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
796         * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options
797         and add a new table to list permissible values for ARCH.
799 2019-12-13  Jakub Jelinek  <jakub@redhat.com>
801         PR target/92908
802         * simplify-rtx.c (simplify_relational_operation): Punt for vector
803         cmp_mode and scalar mode, if simplify_relational_operation returned
804         const_true_rtx.
805         (simplify_const_relational_operation): Change VOID_mode in function
806         comment to VOIDmode.
808 2019-12-13  Kewen Lin  <linkw@gcc.gnu.org>
810         * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
811         (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
812         stmt_cost.
814 2019-12-12  Jakub Jelinek  <jakub@redhat.com>
816         PR target/92904
817         * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
818         not need_temp, decrease alignment of the read because the GPR save
819         area only guarantees 8-byte alignment.
821 2019-12-12  Georg-Johann Lay  <avr@gjlay.de>
823         Add support for some more AVR devices from avrxmega3 family.
825         * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
826         (attiny402, attiny404, attiny406)
827         (attiny804, attiny806, attiny807)
828         (attiny202, attiny204): Add AVR_MCU lines to support them.
829         * doc/avr-mmcu.texi: Regenerate.
831 2019-12-12  Jan Hubicka  <hubicka@ucw.cz>
833         * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
834         of execution of function call parameters.
836 2019-12-12  Vineet Gupta  <vgupta@synopsys.com>
838         * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
839         helps codegen generate exceptions even for quiet NaN.
840         * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
841         (get_arc_condition_code): Likewise.
842         (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
843         * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
844         * config/arc/predicates.md (proper_comparison_operator): Likewise.
845         * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
846         (cmpdf_fpu_trap): Likewise.
848 2019-12-12  Claudiu Zissulescu  <claziss@synopsys.com>
850         * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
851         (cstoredi4): Use TARGET_HARD_FLOAT.
853 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
855         * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
856         entry from -O3 or later section to -O2 or later section.
857         * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
858         option is enabled by default at -O2+ rather than just at -O3.
860         PR target/92723
861         * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
862         vect_internal_def, use oprnd1 as is, without trying to cast it.
863         Formatting fix.
865 2019-12-11  Martin Sebor  <msebor@redhat.com>
867         * builtins.c (compute_objsize): Add an argument and set it to offset
868         into destination.
869         * builtins.h (compute_objsize): Add an argument.
870         * tree-object-size.c (addr_object_size): Add an argument and set it
871         to offset into destination.
872         (compute_builtin_object_size): Same.
873         * tree-object-size.h (compute_builtin_object_size): Add an argument.
874         * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
875         to offset into destination.
876         (maybe_warn_overflow): New function.
877         (handle_store): Call maybe_warn_overflow to issue warnings.
879 2019-12-11  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
881         * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
882         crtbegin_no_eh.o if building for the C language.
883         [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
884         except C.
885         (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for 
886         the C language.
887         [fno-exceptions]: Use crtend_no_eh.o if building for any language
888         except C.
889         * config/msp430/t-msp430: Add -fno-exceptions multilib.
890         * doc/install.texi: Document --disable-no-exceptions multilib configure
891         option.
892         * doc/sourcebuild.texi: Document exceptions_enabled effective target.
894 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
896         * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
897         (pretty_printer::clone): New vfunc implementation.
898         * pretty-print.h (format_postprocessor::clone): New pure vfunc
899         decl.
900         (pretty_printer::pretty_printer): New copy-ctor decl.
901         (pretty_printer::clone): New vfunc decl.
903 2019-12-11  David Malcolm  <dmalcolm@redhat.com>
905         * function-tests.c (selftest::make_fndecl): Make non-static.
906         * selftest.h (selftest::make_fndecl): New decl.
908 2019-12-11  Lewis Hyatt  <lhyatt@gmail.com>
910         PR 91853
911         * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
912         multibyte input.  Fix off-by-one-bug printing the last byte before a
913         hex-escaped output.
914         (pp_character): Don't apply line wrapping in the middle of multibyte
915         characters.
916         (test_utf8): New test.
917         (pretty_print_c_tests): Call the new test.
919 2019-12-11  Richard Earnshaw  <rearnsha@arm.com>
921         * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
922         (ALL_SIMD): Use it.
923         (ALL_FPU_EXTERNAL): New fgroup.
924         (ALL_FP): Use it.
925         (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
926         +simd from architecture specification.
927         (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
928         * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
929         (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
930         (isa_all_fpbits): New bitmap.
931         (arm_option_override): Initialize it.
932         (arm_configure_build_target): If the target isa does not have any
933         FP enabled, do not warn about mismatches in FP-related feature bits.
935 2019-12-11  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
937         * real.c (struct arm_bfloat_half_format,
938         encode_arm_bfloat_half, decode_arm_bfloat_half): New.
939         * real.h (arm_bfloat_half_format): New.
941 2019-12-11  Hongtao Liu  <hongtao.liu@intel.com>
943         PR target/92865
944         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
945         integer mask cmov when available even with TARGET_XOP.
947 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
949         PR tree-optimization/92891
950         * builtins.c (gimple_call_alloc_size): Convert size to sizetype
951         before returning it.
953 2019-12-10  Vladimir Makarov  <vmakarov@redhat.com>
955         PR rtl-optimization/92796
956         * lra-int.h (lra_risky_transformations_p): Rename to
957         check_and_force_assignment_correctness_p.
958         * lra-assigns.c: Ditto.
959         (lra_assign): Reset check_and_force_assignment_correctness_p.
960         * lra-constraints.c (lra_risky_transformations_p): Rename to
961         check_and_force_assignment_correctness_p.
962         (lra_constraints): Set up check_and_force_assignment_correctness_p
963         only for the 1st sub-pass.
964         * lra-eliminations.c (process_insn_for_elimination): Set up
965         check_and_force_assignment_correctness_p if the insn chnaged its
966         code.
968 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
970         PR rtl-optimization/92882
971         * regstat.c (regstat_bb_compute_calls_crossed): Don't check
972         INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
973         NONDEBUG_INSN_P.
975         PR ipa/92883
976         * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
977         than *jfunc->m_vr to intersect.  Formatting fix.
979         PR middle-end/92825
980         * cfgexpand.c (add_stack_protection_conflicts): Change return type
981         from void to bool, return true if at least one stack_vars[i].decl
982         is addressable.
983         (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
984         (expand_used_vars): Don't call stack_protect_decl_p, instead for
985         -fstack-protector-strong set gen_stack_protect_signal to true
986         if add_stack_protection_conflicts returned true.  Formatting fixes.
987         * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
988         out variables or variables not living on the stack don't count.
989         (-fstack-protector): Likewise.  Clarify it affects >= 8 byte arrays
990         rather than > 8 byte.
992         * ipa-param-manipulation.c
993         (ipa_param_body_adjustments::register_replacement): Fix comment typo
994         - accross -> across.
995         * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
996         Likewise.
997         (param_splitting_across_edge): Fix typo in dump message - accross
998         -> across.
1000 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
1002         * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
1003         * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
1004         * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
1005         (expand_all_functions): First expand ordered section and then
1006         unordered.
1007         * profile.c (compute_value_histograms): Error on out of range
1008         tp_first_runs.
1010 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
1012         * predict.c (compute_function_frequency): Check for presence of IPA
1013         profile.
1015 2019-12-10  Jan Hubicka  <hubicka@ucw.cz>
1017         * varasm.c (default_function_section): Fix confused tests for
1018         tp_first_run reordering.
1020 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1022         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
1023         allow SVE modes in GPRs.
1025 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1027         * config/aarch64/iterators.md (vccore): New iterator.
1028         * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
1029         of vwcore.
1030         (*vec_series<mode>_plus): Likewise.
1032 2019-12-10  Frederik Harwath  <frederik@codesourcery.com>
1034         * omp-low.c (scan_omp_for): Use clause location in warning.
1036 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1038         * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
1039         (add_const_value_attribute): Likewise.
1041 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1043         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1044         handling direct_slp_reduc, allow the PHI arguments to have
1045         a different type from the vector elements.
1047 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1049         * tree-vect-stmts.c (vectorizable_condition): Record the loop
1050         masks required for extract-last reductions.
1052 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1054         * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
1055         original scalar statement rather than a pattern statement.
1056         (vectorizable_condition): Likewise, in the handling of extract-last
1057         reductions.
1059 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1061         * tree-vect-loop.c (vectorizable_reduction): Don't use
1062         EXTRACT_LAST_REDUCTION for chained reductions.
1064 2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>
1066         * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
1067         * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
1068         second demangled name.
1070 2019-12-10  Jakub Jelinek  <jakub@redhat.com>
1072         * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
1074 2019-12-10  Martin Liska  <mliska@suse.cz>
1076         PR tree-optimization/92862
1077         * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
1078         * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
1079         instead of true;
1081 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1083         * gcc-rich-location.c
1084         (maybe_range_label_for_tree_type_mismatch::get_text): Replace
1085         label_text ctor call with label_text::borrow.
1086         * gcc-rich-location.h (text_range_label::get_text): Replace
1087         label_text ctor called with false with label_text::borrow.
1089 2019-12-09  David Malcolm  <dmalcolm@redhat.com>
1091         * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
1092         newline.
1093         (selftest::test_diagnostic_show_locus_unknown_location): Remove
1094         initial newline from expected outputs.
1095         (selftest::test_one_liner_simple_caret): Likewise.
1096         (selftest::test_one_liner_caret_and_range): Likewise.
1097         (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
1098         (selftest::test_one_liner_fixit_insert_before): Likewise.
1099         (selftest::test_one_liner_fixit_insert_after): Likewise.
1100         (selftest::test_one_liner_fixit_remove): Likewise.
1101         (selftest::test_one_liner_fixit_replace): Likewise.
1102         (selftest::test_one_liner_fixit_replace_non_equal_range):
1103         Likewise.
1104         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
1105         Likewise.
1106         (selftest::test_one_liner_fixit_validation_adhoc_locations):
1107         Likewise.
1108         (selftest::test_one_liner_many_fixits_1): Likewise.
1109         (selftest::test_one_liner_many_fixits_2): Likewise.
1110         (selftest::test_one_liner_labels): Likewise.
1111         (selftest::test_one_liner_simple_caret_utf8): Likewise.
1112         (selftest::test_one_liner_caret_and_range_utf8): Likewise.
1113         (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
1114         Likewise.
1115         (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
1116         (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
1117         (selftest::test_one_liner_fixit_remove_utf8): Likewise.
1118         (selftest::test_one_liner_fixit_replace_utf8): Likewise.
1119         (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
1120         Likewise.
1121         (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
1122         Likewise.
1123         (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
1124         Likewise.
1125         (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
1126         (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
1127         (selftest::test_one_liner_labels_utf8): Likewise.
1128         (selftest::test_add_location_if_nearby): Likewise.
1129         (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
1130         (selftest::test_overlapped_fixit_printing): Likewise.
1131         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
1132         (selftest::test_overlapped_fixit_printing_2): Likewise.
1133         (selftest::test_fixit_insert_containing_newline): Likewise.
1134         (selftest::test_fixit_insert_containing_newline_2): Likewise.
1135         (selftest::test_fixit_replace_containing_newline): Likewise.
1136         (selftest::test_fixit_deletion_affecting_newline): Likewise.
1137         (selftest::test_line_numbers_multiline_range): Likewise.
1138         * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
1139         before call to diagnostic_show_locus.
1140         (diagnostic_append_note): Likewise.
1142 2019-12-09  Martin Sebor  <msebor@redhat.com>
1144         PR middle-end/92761
1145         PR middle-end/92762
1146         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
1147         up tests.
1148         * hash-table.h (hash_table::expand): Use placement new to copy
1149         construct objects in uninitialized storage.
1150         (hash_table::empty_slow): Avoid invoking copy assignment on
1151         uninitialized objects.
1153 2019-12-09  Lewis Hyatt  <lhyatt@gmail.com>
1155         PR preprocessor/49973
1156         * input.c (location_compute_display_column): New function to help with
1157         multibyte awareness in diagnostics.
1158         (test_cpp_utf8): New self-test.
1159         (input_c_tests): Call the new test.
1160         * input.h (location_compute_display_column): Declare.
1161         * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
1162         to all classes and functions.
1163         (enum column_unit): New enum.
1164         (class exploc_with_display_col): New class.
1165         (class layout_point): Convert m_column member to array m_columns[2].
1166         (layout_range::contains_point): Add col_unit argument.
1167         (test_layout_range_for_single_point): Pass new argument.
1168         (test_layout_range_for_single_line): Likewise.
1169         (test_layout_range_for_multiple_lines): Likewise.
1170         (line_bounds::convert_to_display_cols): New function.
1171         (layout::get_state_at_point): Add col_unit argument.
1172         (make_range): Use empty filename rather than dummy filename.
1173         (get_line_width_without_trailing_whitespace): Rename to...
1174         (get_line_bytes_without_trailing_whitespace): ...this.
1175         (test_get_line_width_without_trailing_whitespace): Rename to...
1176         (test_get_line_bytes_without_trailing_whitespace): ...this.
1177         (class layout): m_exploc changed to exploc_with_display_col from
1178         plain expanded_location.
1179         (layout::get_linenum_width): New accessor member function.
1180         (layout::get_x_offset_display): Likewise.
1181         (layout::calculate_linenum_width): New subroutine for the constuctor.
1182         (layout::calculate_x_offset_display): Likewise.
1183         (layout::layout): Use the new subroutines. Add multibyte awareness.
1184         (layout::print_source_line): Add multibyte awareness.
1185         (layout::print_line): Likewise.
1186         (layout::print_annotation_line): Likewise.
1187         (line_label::line_label): Likewise.
1188         (layout::print_any_labels): Likewise.
1189         (layout::annotation_line_showed_range_p): Likewise.
1190         (get_printed_columns): Likewise.
1191         (class line_label): Rename m_length to m_display_width.
1192         (get_affected_columns): Rename to...
1193         (get_affected_range): ...this; add col_unit argument and multibyte
1194         awareness.
1195         (class correction): Add m_affected_bytes and m_display_cols
1196         members.  Rename m_len to m_byte_length for clarity.  Add multibyte
1197         awareness throughout.
1198         (correction::insertion_p): Add multibyte awareness.
1199         (correction::compute_display_cols): New function.
1200         (correction::ensure_terminated): Use new member name m_byte_length.
1201         (line_corrections::add_hint): Add multibyte awareness.
1202         (layout::print_trailing_fixits): Likewise.
1203         (layout::get_x_bound_for_row): Likewise.
1204         (test_one_liner_simple_caret_utf8): New self-test analogous to the one
1205         with _utf8 suffix removed, testing multibyte awareness.
1206         (test_one_liner_caret_and_range_utf8): Likewise.
1207         (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
1208         (test_one_liner_fixit_insert_before_utf8): Likewise.
1209         (test_one_liner_fixit_insert_after_utf8): Likewise.
1210         (test_one_liner_fixit_remove_utf8): Likewise.
1211         (test_one_liner_fixit_replace_utf8): Likewise.
1212         (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
1213         (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
1214         (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
1215         (test_one_liner_many_fixits_1_utf8): Likewise.
1216         (test_one_liner_many_fixits_2_utf8): Likewise.
1217         (test_one_liner_labels_utf8): Likewise.
1218         (test_diagnostic_show_locus_one_liner_utf8): Likewise.
1219         (test_overlapped_fixit_printing_utf8): Likewise.
1220         (test_overlapped_fixit_printing): Adapt for changes to
1221         get_affected_columns, get_printed_columns and class corrections.
1222         (test_overlapped_fixit_printing_2): Likewise.
1223         (test_linenum_sep): New constant.
1224         (test_left_margin): Likewise.
1225         (test_offset_impl): Helper function for new test.
1226         (test_layout_x_offset_display_utf8): New test.
1227         (diagnostic_show_locus_c_tests): Call new tests.
1229 2019-12-09  Eric Botcazou  <ebotcazou@adacore.com>
1231         * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
1232         TYPE_CANONICAL from the element type only if it is true.  Remove a few
1233         obsolete lines and adjust recursive call.
1234         (fld_process_array_type): Adjust call to build_array_type_1.
1235         (build_array_type): Likewise.
1236         (build_nonshared_array_type): Likewise.
1238 2019-12-09  Andrew Stubbs  <ams@codesourcery.com>
1240         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
1241         %s to %o in asm output.
1242         (gather<mode>_insn_2offsets<exec>): Likewise.
1244 2019-12-09  Richard Earnshaw  <rearnsha@arm.com>
1246         * config/arm/t-multilib: Use arm->thumb multilib reuse rules
1247         on a-profile.
1249 2019-12-09  Segher Boessenkool  <segher@kernel.crashing.org>
1251         * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
1252         set<mode>_cc.
1253         (unnamed define_insn_and_split): Delete.
1254         (unnamed define_insn): Delete.
1255         (unnamed define_insn): Delete.
1256         (unnamed define_split): Delete.
1258 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
1260         * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
1261         avoid a warning.
1263 2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>
1265         PR middle-end/92410
1266         * bb-reorder.c (pass_reorder_blocks::execute): Recompute
1267         dataflow luids once basic blocks have been reordered.
1268         * haifa-sched.c (reemit_notes): Create df insn record for each
1269         new note.
1270         * regstat.c (regstat_bb_compute_calls_crossed): Assert every
1271         insn has an insn record before trying to use it.
1273 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
1275         * common/config/i386/i386-common.c
1276         (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
1277         OPTION_MASK_ISA2_AVX5124FMAPS_SET.
1278         (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
1279         OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
1280         OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
1281         OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
1282         OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
1283         OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
1284         OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
1285         OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
1286         OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
1287         OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
1288         OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
1289         OPTION_MASK_ISA_AVX512BF16_UNSET,
1290         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
1291         OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
1292         OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
1293         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
1294         OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
1295         OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
1296         OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
1297         OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
1298         OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1299         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1300         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
1301         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
1302         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
1303         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
1304         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
1305         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
1306         OPTION_MASK_ISA_ENQCMD): Ditto.
1307         * config/i386/i386-builtin.def
1308         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1309         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1310         OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
1311         OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
1312         OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
1313         * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
1314         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
1315         OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
1316         * config/i386/i386-c.c
1317         (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1318         OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1319         OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
1320         OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
1321         OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
1322         OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
1323         OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
1324         OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
1325         OPTION_MASK_ISA_ENQCMD): Ditto.
1326         * config/i386/i386-option.c: Ditto
1327         * config/i386/i386.opt: Ditto..
1328         * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
1329         TARGET_ISA_AVX5124VNNIW,  TARGET_ISA_AVX512BF16,
1330         TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
1331         TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
1332         TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
1333         TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
1334         TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
1335         TARGET_ISA_ENQCMD): Ditto.
1337 2019-12-09  Sudakshina Das  <sudi.das@arm.com>
1338             Richard Sandiford  <richard.sandiford@arm.com>
1340         * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
1341         vect_model_simple_cost call on scalar_shift_arg.
1343 2019-12-09  Jakub Jelinek  <jakub@redhat.com>
1345         PR tree-optimization/92834
1346         * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
1347         A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
1349 2019-12-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1351         PR tree-optimization/89007
1352         * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
1353         target support available, generate code to distribute rshift over plus
1354         and add a carry.
1356 2019-12-09  Martin Liska  <mliska@suse.cz>
1358         PR ipa/92737
1359         * cgraph.c (symbol_table_test::symbol_table_test): Fix
1360         coding style.
1361         * cgraph.h (symtab_node::symtab_node): New constructor.
1362         (cgraph_node::cgraph_node): Likewise.
1363         (varpool_node::varpool_node): Likewise.
1364         (symbol_table::allocate_cgraph_symbol): Use newly
1365         created constructor.
1366         (symbol_table::allocate_cgraph_symbol): Remove.
1367         * cgraphunit.c (symtab_terminator): Likewise.
1368         * varpool.c (varpool_node::create_empty): Use newly
1369         created constructor.
1371 2019-12-09  Hongtao Liu  <hongtao.liu@intel.com>
1373         PR target/92686
1374         * config/i386/sse.md
1375         (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
1376         *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
1377         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
1378         *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
1379         * config/i386/i386.c (ix86_print_operand): New operand substitution.
1380         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
1381         New function.
1382         (ix86_expand_sse_cmp): Relax condition for integer mask from
1383         512-bit vector to all 128/256/512-bit vector. Delete code gen
1384         for avx512f compare patterns since we have generic pattern now.
1385         (ix86_expand_sse_movcc): Adjust condition and codegen for
1386         maskcmp.
1387         (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
1388         when corresponding vector compare is available.
1390 2019-12-08  Sandra Loosemore  <sandra@codesourcery.com>
1392         Revert:
1393         2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
1395         * config/nios2/linux.h (LINK_EH_SPEC): Define.
1397 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
1399         * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
1400         * cgraph.h (cgrpah_node): Likewise.
1401         (tp_first_run_node_cmp): Deeclare.
1402         * cgraphunit.c (node_cmp): Rename to ...
1403         (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
1404         clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
1405         (expand_all_functions): Collect tp_first_run and normal functions to
1406         two vectors so the other functions remain sorted. Do not check for
1407         flag_profile_reorder_functions it is function local flag.
1408         * profile.c (compute_value_histograms): Update tp_first_run printing.
1410 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
1412         * opts.c (common_handle_option): Do not clear ipa_reference for
1413         -fprofile-use.
1415 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
1417         * ipa-split.c (split_function): Preserve 0 tp_first_run.
1419 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
1421         * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
1422         sanity check.
1424 2019-12-07  Jan Hubicka  <hubicka@ucw.cz>
1426         PR tree-optimization/92860
1427         * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
1428         Optimization flag.
1430 2019-12-07  Marek Polacek  <polacek@redhat.com>
1432         PR c++/91678 - wrong error with decltype and location wrapper.
1433         * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
1435 2019-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1437         PR middle-end/90840
1438         * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
1439         sure to pass a valid inner mode in calls to simplify_gen_subreg.
1441 2019-12-07  Tobias Burnus  <tobias@codesourcery.com>
1442             David Malcolm  <dmalcolm@redhat.com>
1443             Jakub Jelinek  <jakub@redhat.com>
1445         PR c/87488
1446         * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
1447         instead of ST sequence to terminate OSC 8 strings.
1449 2019-12-06  Andreas Krebbel  <krebbel@linux.ibm.com>
1450             Vladimir Makarov  <vmakarov@redhat.com>
1452         PR rtl-optimization/92176
1453         * lra.c (simplify_subreg_regno): Don't permit unconditional
1454         changing mode for LRA too.
1456 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
1458         * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
1459         (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
1460         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1461         Handle them.
1463 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
1465         * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
1466         in the asm output.
1468 2019-12-06  Andrew Stubbs  <ams@codesourcery.com>
1470         * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
1471         (VEC_1REG_ALT): Likewise.
1472         (VEC_ALL1REG_MODE): New mode iterator.
1473         (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
1474         (VEC_1REG_INT_ALT): Likewise.
1475         (VEC_ALL1REG_INT_MODE): New mode interator.
1476         (VEC_ALL1REG_INT_ALT): Likewise.
1477         (VEC_REG_MODE): Remove V64QI and V64HI.
1478         (VEC_ALLREG_MODE): New mode interator.
1479         (vec_merge): Change to VEC_ALLREG_MODE.
1480         (vec_merge_with_clobber): Likewise.
1481         (vec_merge_with_vcc): Likewise.
1482         (mov<mode>): Likewise.
1483         (mov<mode>_unspec): Likewise.
1484         (*mov<mode>): Change to VEC_ALL1REG_MODE.
1485         (mov<mode>_exec): Likewise.
1486         (*mov<mode>_exec_match): Likewise.
1487         (mov<mode>_sgprbase): Likewise.
1488         (reload_in<mode>): Change to VEC_ALLREG_MODE.
1489         (reload_out<mode>): Likewise.
1490         (scalar address splits): Likewise.
1491         (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
1492         (vec_set<mode>): Change to VEC_ALLREG_MODE.
1493         (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
1494         (vec_duplicate<mode><exec>): Likewise.
1495         (vec_extract<mode><scalar_mode>): Likewise.
1496         (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
1497         (gather_load<mode>): Likewise.
1498         (gather<mode>_exec): Likewise.
1499         (gather<mode>_expr<exec>): Likewise.
1500         (gather<mode>_insn_1offset<exec>): Likewise.
1501         (gather<mode>_insn_1offset_ds<exec>): Likewise.
1502         (gather<mode>_insn_2offsets<exec>): Likewise.
1503         (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
1504         (VEC_INT_MODE): Remove V64QI and V64HI.
1505         (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
1506         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
1507         VEC_ALL1REG_MODE.
1508         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
1509         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
1510         (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
1511         (maskload<mode>di): Change to VEC_ALL1REG_MODE.
1512         (maskstore<mode>di): Likewise.
1513         (mask_gather_load<mode>): Likewise.
1514         (mov_from_lane63_<mode>): Likewise.
1515         * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
1516         and V64HImode vectorization.
1517         (gcn_related_vector_mode): New function.
1518         (TARGET_VECTORIZE_RELATED_MODE): New define.
1520 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
1521             Kwok Cheung Yeung  <kcy@codesourcery.com>
1523         * omp-low.c (lower_omp_target): For optional arguments, deref once
1524         more to obtain the type.
1526 2019-12-06  Richard Biener  <rguenther@suse.de>
1528         * match.pd (nop_convert): Remove empty match.  Use nop_convert?
1529         everywhere.
1531 2019-12-06  Richard Sandiford  <richard.sandiford@arm.com>
1533         * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
1534         for empty vectors.  Avoid using ordered_remove and instead
1535         shuffle the vector as we go.
1537 2019-12-06  Richard Biener  <rguenther@suse.de>
1539         * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
1540         VIEW_CONVERT{0,1,2}.
1541         (expr::opt_grp): Add and initialize.
1542         (lower_opt_convert): Rename to ...
1543         (lower_opt): ... and work on opt_grp, simply switching operations
1544         from being optional to being present or not.
1545         (has_opt_convert): Rename to ...
1546         (has_opt): ... and adjust.
1547         (parser::parse_operation): Return the optional opt_grp,
1548         remove special-casing of conditional operations and more generally
1549         parse [digit]'?'.
1550         (parser::parse_expr): Stick on the parsed opt_grp and perform
1551         rough verification.
1552         (parser::parse_for): Remove now unnecessary code.
1553         (main): Likewise.
1554         * doc/match-and-simplify.texi: Mention ? now works on all
1555         unary operations and also match predicates.
1557 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
1559         * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
1560         functions, not inline clones.
1562 2019-12-06  Jan Hubicka  <hubicka@ucw.cz>
1564         * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
1566 2019-12-06  Richard Biener  <rguenther@suse.de>
1568         * genmatch.c (c_expr::gen_transform): Emit newlines from line
1569         number changes rather than after every semicolon.
1571 2019-12-06  Richard Biener  <rguenther@suse.de>
1573         PR tree-optimization/92819
1574         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
1575         into the last lane.  For two-element vectors try inserting
1576         into the last lane when inserting into the first fails.
1578 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
1580         * common.opt (fprofile-partial-training): Terminate description with
1581         full stop.
1583 2019-12-05  Martin Sebor  <msebor@redhat.com>
1585         PR middle-end/92622
1586         * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
1587         left uninitialized by get_addr_base_and_unit_offset on failure.
1589 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1591         * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
1592         (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
1593         (detect_type_change): Likewise.
1594         (detect_type_change_ssa): Likewise.
1595         (ipa_analyze_virtual_call_uses): Update.
1597 2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>
1599         * config/nios2/linux.h (LINK_EH_SPEC): Define.
1601 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1603         * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
1605 2019-12-05  Jan Hubicka  <hubicka@ucw.cz>
1607         * cgraphclones.c (localize_profile): New function.
1608         (cgraph_node::create_clone): Use it for partial profiles.
1609         * common.opt (fprofile-partial-training): New flag.
1610         * doc/invoke.texi (-fprofile-partial-training): Document.
1611         * ipa-cp.c (update_profiling_info): For partial profiles do not
1612         set function profile to zero.
1613         * profile.c (compute_branch_probabilities): With partial profile
1614         watch if edge count is zero and turn all probabilities to guessed.
1615         (compute_branch_probabilities): For partial profiles do not apply
1616         profile when entry count is zero.
1617         * tree-profile.c (tree_profiling): Only do value_profile_transformations
1618         when profile is read.
1620 2019-12-05  Sudakshina Das  <sudi.das@arm.com>
1622         * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
1623         check from if condition.
1625 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
1627         * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
1628         and Fortran's optional arguments, unconditionally add the is-present
1629         condition before the libgomp call.
1631 2019-12-05  Richard Sandiford  <richard.sandiford@arm.com>
1633         PR middle-end/92768
1634         * tree-core.h (OEP_BITWISE): New flag.
1635         * fold-const.c (operand_compare::operand_equal_p): Handle it.
1636         * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
1638 2019-12-05  Richard Biener  <rguenther@suse.de>
1640         PR middle-end/92818
1641         * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
1642         heuristics on what don't care element to choose.
1643         * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
1645 2019-12-05  Martin Liska  <mliska@suse.cz>
1647         PR gcov-profile/92817
1648         * coverage.c (build_gcov_exit_decl): Remove superfluous
1649         void_type_node.
1651 2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1653         * config/msp430/msp430.md (cbranch<mode>4): Use
1654         msp430_general_dst_nonv_operand instead of nonimmediate_operand for
1655         dest operand of CMP instruction.
1656         (cbranchpsi4_real): Likewise.
1657         (cbranchqi4_real): Likewise.
1658         (cbranchhi4_real): Likewise.
1659         (cbranchpsi4_reversed): Likewise.
1660         (cbranchqi4_reversed): Likewise.
1661         (cbranchhi4_reversed): Likewise.
1663 2019-12-05  Richard Biener  <rguenther@suse.de>
1665         PR tree-optimization/92803
1666         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1667         invariant vector construction.
1669 2019-12-05  Martin Liska  <mliska@suse.cz>
1671         PR gcov-profile/91971
1672         * coverage.c (coverage_init): Mangle full path
1673         only when -fprofile-dir is used.
1675 2019-12-05  Jakub Jelinek  <jakub@redhat.com>
1677         PR target/92791
1678         * config/i386/i386.md (movstrict<mode>): Move test for
1679         TARGET_PARTIAL_REG_STALL and not optimizing for size from
1680         expander's condition to the body - FAIL; in that case.
1682 2019-12-03  Martin Sebor  <msebor@redhat.com>
1684         PR middle-end/91582
1685         * builtins.c (gimple_call_alloc_size): New function.
1686         (compute_objsize): Add argument.  Call gimple_call_alloc_size.
1687         Handle variable offsets and indices.
1688         * builtins.h (gimple_call_alloc_size): Declare.
1689         (compute_objsize): Add argument.
1690         * gimple-ssa-warn-restrict.c: Remove assertions.
1691         * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
1693 2019-12-04  Julian Brown  <julian@codesourcery.com>
1695         * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
1697 2019-12-04  Peter Bergner <bergner@linux.ibm.com>
1699         PR bootstrap/92661
1700         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
1701         rs6000.h.
1702         (altivec_overloaded_builtins): Move to rs6000-call.c.
1703         * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
1704         rs6000-c.c.
1705         * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
1706         (altivec_overloaded_builtins): Moved from rs6000-c.c.
1707         (rs6000_common_init_builtins): Do no define builtins that overload
1708         builtins that have been disabled.
1710 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1712         * config/arm/arm.c (arm_option_override_internal):
1713         Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
1715 2019-12-04  Wilco Dijkstra  <wdijkstr@arm.com>
1717         * config/aarch64/aarch64.c
1718         (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
1719         (thunderx_tunings): Likewise.
1720         (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
1721         (thunderx2t99_tunings): Likewise.
1722         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
1723         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
1725 2019-12-04  Richard Biener  <rguenther@suse.de>
1727         * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
1728         empty CTOR and memset partial-def registering.  Take advantage
1729         of fancy offset analysis in memset handling.
1731 2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
1733         * fold-const.c (native_encode_vector_part): Handle
1734         VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
1735         (native_decode_vector_tree): Delete, moving the bulk of the code to...
1736         (native_interpret_vector_part): ...this new function.  Use a pointer
1737         and length instead of a vec<> and start index.
1738         (native_interpret_vector): Use native_interpret_vector_part.
1739         (fold_view_convert_vector_encoding): Likewise.
1741 2019-12-04  Richard Biener  <rguenther@suse.de>
1743         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
1744         non-constant defs in the most trivial way.
1745         (vn_reference_lookup_3): Also push down SSA partial defs.
1747 2019-12-04  Martin Liska  <mliska@suse.cz>
1749         * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
1750         Initialize count of newly created BB.
1752 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
1754         PR tree-optimization/92734
1755         * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
1756         A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
1758 2019-12-04  Kewen Lin  <linkw@gcc.gnu.org>
1760         PR target/92760
1761         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
1762         VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
1764 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1766         * ipa-fnsummary.c: Include tree-into-ssa.h.
1767         (compute_fn_summary): Call update_ssa.
1769 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1771         * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
1772         is set only for symbol in comdat group.
1773         * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
1775 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
1777         * cgraph.c: Include tree-into-ssa.h
1778         (cgraph_node::get_body): Call update_ssa.
1779         * cgraphunit.c (cgraph_node::expand): Likewise.
1780         * lto-streamer-in.c (input_function): Do not call update_ssa.
1782 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1784         * gimplify.c (gimplify_compound_lval): Don't gimplify and install
1785         an array element size if array_element_size is already an invariant.
1786         Similarly don't gimplify and install a field offset if
1787         component_ref_field_offset is already an invariant.
1789 2019-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1791         * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
1792         with POLY_INT_CST size is made to a fixed-size object, force the
1793         object to live in memory.
1795 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
1797         * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
1798         for the data mode.
1800 2019-12-03  Richard Biener  <rguenther@suse.de>
1802         PR tree-optimization/92758
1803         * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
1804         operation on uniform vectors.
1806 2019-12-03  Richard Biener  <rguenther@suse.de>
1808         PR tree-optimization/92645
1809         * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1810         from or to a properly aligned register variable.
1812 2019-12-03  Matthias Klose  <doko@ubuntu.com>
1814         * Makefile.in (SOURCES): Add doc/lto-dump.1.
1815         (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1816         ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1818 2019-12-03  Richard Biener  <rguenther@suse.de>
1820         PR tree-optimization/92751
1821         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1822         when a clobber ends up in the partial-def vector.
1823         (vn_reference_lookup_3): Let clobbers be handled by the
1824         assignment from CTOR handling.
1826 2019-12-03  Jakub Jelinek  <jakub@redhat.com>
1828         PR tree-optimization/92734
1829         * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1830         CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1831         inner subtraction.
1833 2019-12-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1834             Jakub Jelinek  <jakub@redhat.com>
1836         PR target/92744
1837         * config/i386/i386.md (peephole2 for *swap<mode>): Use
1838         general_reg_operand predicates instead of register_operand.
1840 2019-12-03  Richard Biener  <rguenther@suse.de>
1842         PR tree-optimization/92645
1843         * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1844         a full def of a vector via a BIT_INSERT_EXPR.
1846 2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
1848         * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1849         static.
1850         * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1851         decl.
1853 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1855         PR middle-end/92741
1856         * fold-const.c (fold_convertible_p): Check vector types more
1857         thoroughly.
1859 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1861         * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1862         (aarch64_expand_mov_immediate): Use it when attempting to measure
1863         the length of an SVE vector.
1864         (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1865         SVE is enabled.
1867 2019-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1869         * config/aarch64/aarch64-sve-builtins.h
1870         (gimple_folder::force_vector): Declare.
1871         * config/aarch64/aarch64-sve-builtins.cc
1872         (gimple_folder::force_vector): New function.
1873         * config/aarch64/aarch64-sve-builtins-base.cc
1874         (svcmp_impl::fold): Likewise.
1875         (svdup_impl::fold): Handle svdup_z too.
1877 2019-12-02  Martin Liska  <mliska@suse.cz>
1879         * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1880         function.
1881         (debug_tree_odr_name): New.
1882         * ipa-utils.h (get_odr_name_for_type): New.
1884 2019-12-02  Richard Biener  <rguenther@suse.de>
1886         PR tree-optimization/92742
1887         * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1888         touch the def-type but verify it is consistent with the
1889         original stmts.
1891 2019-12-02  Jakub Jelinek  <jakub@redhat.com>
1893         PR tree-optimization/92712
1894         * match.pd ((A * B) +- A -> (B +- 1) * A,
1895         A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1896         even when we don't know anything about range of A, but do know
1897         something about range of B and the simplification won't introduce
1898         new UB.
1900 2019-12-02  Feng Xue  <fxue@os.amperecomputing.com>
1902         PR ipa/92133
1903         * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1904         (ipa-cp-min-recursive-probability): Likewise.
1905         * params.opt (ipa-cp-max-recursive-depth): New.
1906         (ipa-cp-min-recursive-probability): Likewise.
1907         * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1908         val_p and unlimited.
1909         (self_recursively_generated_p): New function.
1910         (get_val_across_arith_op): Likewise.
1911         (propagate_vals_across_arith_jfunc): Add constant propagation for
1912         self-recursive function.
1913         (incorporate_penalties): Do not penalize pure self-recursive function.
1914         (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1915         (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1916         (get_info_about_necessary_edges): Relax hotness check for edge to
1917         self-recursive function.
1918         * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1920 2019-12-01  Sandra Loosemore  <sandra@codesourcery.com>
1922         PR target/92499
1924         * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1925         objects of flexible types to be small if they have internal linkage
1926         or are declared extern.
1927         * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1928         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
1929         instead of the size of the object initializer.
1930         * tree.c (flexible_array_type_p): Move from C front end, and
1931         generalize to handle fields in non-C structures.
1932         * tree.h (flexible_array_type_p): Declare.
1934 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1936         * profile-count.h (profile_count::operator<): Use IPA value for
1937         comparsion.
1938         (profile_count::operator>): Likewise.
1939         (profile_count::operator<=): Likewise.
1940         (profile_count::operator>=): Likewise.
1941         * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1943 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1945         * ipa-inline.c (compute_max_insns): Return int64_t.
1946         (inline_small_functions): Simplify.
1948 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1950         * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1951         scaling happen.
1953 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1955         * cgraph.h (symtab_node): Add symver flag.
1956         * cgraphunit.c (process_symver_attribute): New.
1957         (process_common_attributes): Use process_symver_attribute.
1958         * lto-cgraph.c (lto_output_node): Stream symver.
1959         (lto_output_varpool_node): Stream symver.
1960         (input_overwrite_node): Stream symver.
1961         (input_varpool_node): Stream symver.
1962         * output.h (do_assemble_symver): Decalre.
1963         * symtab.c (symtab_node::dump_base): Dump symver.
1964         (symtab_node::verify_base): Verify symver.
1965         (symtab_node::resolve_alias): Handle symver.
1966         * varasm.c (do_assemble_symver): New function.
1967         * varpool.c (varpool_node::assemble_aliases): Use it.
1968         * doc/extend.texi: (symver attribute): Document.
1969         * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1971 2019-11-30  Richard Sandiford  <richard.sandiford@arm.com>
1973         * target.h (type_context_kind): New enum.
1974         (verify_type_context): Declare.
1975         * target.def (verify_type_context): New target hook.
1976         * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1977         * doc/tm.texi: Regenerate.
1978         * tree.c (verify_type_context): New function.
1979         * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1980         Declare.
1981         * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1982         New function.
1983         * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1984         (TARGET_VERIFY_TYPE_CONTEXT): Define.
1986 2019-11-30  Jan Hubicka  <hubicka@ucw.cz>
1988         * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1989         * cgraph.h (cgraph_node): Add unit_id and
1990         merged_extern_inline.
1991         (symbol_table): Add max_unit.
1992         (symbol_table::symbol_table): Initialize it.
1993         * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1994         merged_comdat, merged_extern_inline.
1995         (cgraph_node::create_clone): Likewise.
1996         (cgraph_node::create_version_clone): Likewise.
1997         * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1998         calls.
1999         * ipa-fnsummary.h (cross_module_call_p): New inline function.
2000         * ipa-inline-analyssi.c (simple_edge_hints): Use it.
2001         * ipa-inline.c (inline_small_functions): Likewise.
2002         * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
2003         copy merged_comdat and merged_extern_inline.
2004         * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
2005         merged_extern_inline and unit_id.
2006         (input_overwrite_node): Stream in these.
2007         (input_cgraph_1): Set unit_base.
2008         * lto-streamer.h (lto_file_decl_data): Add unit_base.
2009         * symtab.c (symtab_node::make_decl_local): Record former_comdat.
2011 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
2013         * gcc.c (process_command): Only warn about an ineffective `-x'
2014         option if any input files have actually been supplied.
2016 2019-11-30  Maciej W. Rozycki  <macro@wdc.com>
2018         * doc/install.texi (Options specification): Remove the list of
2019         target library subdirectories supporting
2020         `--enable-version-specific-runtime-libs'.  Document defaults for
2021         the option.
2023 2019-11-29  Vladimir Makarov  <vmakarov@redhat.com>
2025         PR rtl-optimization/92283
2026         * lra.c (lra): Update reg notes after inheritance sub-pass and
2027         before constraint sub-pass.
2029 2019-11-29  Richard Biener  <rguenther@suse.de>
2031         PR tree-optimization/91003
2032         * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
2033         operand number, avoid handling the non-condition operands of
2034         COND_EXPRs as comparisons.
2035         (vect_get_constant_vectors): Pass down the operand number.
2036         (vect_get_slp_defs): Likewise.
2038 2019-11-29  Frederik Harwath  <frederik@codesourcery.com>
2040         * gimple-match-head.c (maybe_resimplify_conditional_op): Use
2041         generic_expr_could_trap_p to check if the condition of COND_EXPR or
2042         VEC_COND_EXPR can trap.
2044 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2046         PR tree-optimization/92677
2047         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
2048         to zero when dissolving a group of strided accesses.
2050 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2052         PR tree-optimization/92596
2053         * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
2054         operations.
2055         (vectorizable_operation): Likewise, instead of relying on
2056         vect_get_mask_type_for_stmt to do this.
2057         (vect_get_vector_types_for_stmt): Always return a vector type
2058         immediately, rather than deferring the choice for boolean results.
2059         Use a vector mask type instead of a normal vector if
2060         vect_use_mask_type_p.
2061         (vect_get_mask_type_for_stmt): Delete.
2062         * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
2063         mask_producers argument and special boolean_type_node handling.
2064         (vect_determine_vf_for_stmt): Remove mask_producers argument and
2065         update calls to vect_determine_vf_for_stmt_1.  Remove doubled call.
2066         (vect_determine_vectorization_factor): Update call accordingly.
2067         * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
2068         boolean_type_node handling.
2069         (vect_slp_analyze_node_operations_1): Likewise.
2071 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2073         * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
2074         (vect_use_mask_type_p): New function.
2075         * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
2076         mask precision to the pattern statement.
2077         (append_pattern_def_seq): Add a scalar_type_for_mask parameter
2078         and use it to initialize the new stmt's mask precision.
2079         (search_type_for_mask_1): Delete.
2080         (search_type_for_mask): Replace with...
2081         (integer_type_for_mask): ...this new function.  Use the information
2082         cached in the stmt_vec_info.
2083         (vect_recog_bool_pattern): Update accordingly.
2084         (build_mask_conversion): Pass the scalar type associated with the
2085         mask type to append_pattern_def_seq.
2086         (vect_recog_mask_conversion_pattern): Likewise.  Call
2087         integer_type_for_mask instead of search_type_for_mask.
2088         (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
2089         of search_type_for_mask.
2090         (possible_vector_mask_operation_p): New function.
2091         (vect_determine_mask_precision): Likewise.
2092         (vect_determine_stmt_precisions): Call it.
2094 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2096         * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
2097         the slp_tree parameter with a group size parameter.
2098         (vect_get_mask_type_for_stmt): Likewise.
2099         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
2100         (vect_get_mask_type_for_stmt): Likewise.
2101         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
2102         call accordingly.
2104 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2106         * tree-vect-stmts.c (vectorizable_operation): Punt early
2107         on codes that are handled elsewhere.
2109 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2111         * doc/sourcebuild.texi (vect_bool_cmp): Document.
2112         * tree-vect-patterns.c (search_type_for_mask_1): If neither
2113         operand to a boolean comparison is a natural vector mask,
2114         handle both operands like normal integers instead.
2116 2019-11-29  Richard Biener  <rguenther@suse.de>
2118         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
2119         out early for too large objects.
2121 2019-11-29  Martin Jambor  <mjambor@suse.cz>
2123         PR ipa/92476
2124         * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
2125         the summary only if the summary exists.
2126         (find_more_scalar_values_for_callers_subset): Check node_dead in
2127         the summary only if the summary exists.
2128         (ipcp_store_bits_results): Ignore nodes without lattices.
2129         (ipcp_store_vr_results): Likewise.
2130         * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
2131         header files required by them.
2132         (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
2134 2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>
2136         PR tree-optimization/92710
2137         * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
2138         vector mask arguments.
2140 2019-11-29  Jan Hubicka  <hubicka@ucw.cz>
2142         * profile-count.c (profile_count::to_cgraph_frequency,
2143         profile_count::to_sreal_scale): Check for compaibility of counts.
2144         * profile-count.h (compatible_p): Make public; add checking for
2145         global0 versus global types.
2146         * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
2148 2019-11-29  Richard Biener  <rguenther@suse.de>
2150         PR tree-optimization/92715
2151         * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
2152         out for uniform vectors and source vectors with less elements
2153         than the destination.
2155 2019-11-29  Martin Liska  <mliska@suse.cz>
2157         PR lto/91574
2158         * ipa-devirt.c (types_same_for_odr): Check for existence
2159         of TYPE_NAMEs first.
2161 2019-11-29  Richard Biener  <rguenther@suse.de>
2163         PR tree-optimization/92704
2164         * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
2165         in loops performing only loads.
2167 2019-11-29  Julian Brown  <julian@codesourcery.com>
2169         * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
2170         BT_DFLOAT128_PTR) Remove.
2171         * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
2172         TI_DFLOAT128_PTR_TYPE): Remove.
2173         * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
2174         dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
2175         * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
2176         dfloat128_ptr_type_node): Remove macros.
2178 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
2180         * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting.  Improve
2181         formatting.
2182         (*movdi_internal64): Ditto.
2184 2019-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
2186         PR target/92602
2187         * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
2188         indexed_or_indirect_operand to be memory_operand.
2189         (bswap<mode>2_store for HSI): Ditto.
2190         (bswapdi2_load): Ditto.
2191         (bswapdi2_store): Ditto.
2193 2019-11-28  Martin Liska  <mliska@suse.cz>
2195         PR debug/46558
2196         * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
2197         headers for translation.
2199 2019-11-28  Martin Liska  <mliska@suse.cz>
2201         PR lto/92609
2202         * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
2203         consistently.
2205 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2207         * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
2208         checks.
2210 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2212         * profile-count.c (profile_count::combine_with_ipa_count): Return
2213         uninitialized count if called on ininitialized count.
2215 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2217         * ipa-inline-transform.c (inline_transform): Scale profile before
2218         redirecting.
2220 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2222         * profile-count.h (profile_count::max): Work on profiles of different
2223         type.
2224         (profile_count::apply_scale): Be sure that ret is not local or global0
2225         type if num is global.
2227 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2229         * profile-count.h (profile_count::max): Work on profiles of different
2230         type.
2231         (profile_count::apply_scale): Be sure that ret is not local or global0
2232         type if num is global.
2234 2019-11-28  Martin Jambor  <mjambor@suse.cz>
2236         PR ipa/92697
2237         * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
2238         ifunc_resolvers.
2239         * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
2240         Removed trailig whitespace.
2242 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2244         * profile-count.h (profile_count::combine_with_ipa_count_within):
2245         Declare.
2246         * profile-count.c (profile_count::combine_with_ipa_count_within):
2247         New.
2248         * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
2249         it.
2251 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2253         * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
2254         of counters are done same way.
2256 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2258         * ipa-cp.c (update_profiling_info): Fix scaling.
2260 2019-11-28  Richard Biener  <rguenther@suse.de>
2262         PR tree-optimization/92645
2263         * tree-inline.c (remap_gimple_stmt): When the return value
2264         is not wanted, elide GIMPLE_RETURN.
2266 2019-11-28  Richard Biener  <rguenther@suse.de>
2268         PR tree-optimization/92645
2269         * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
2270         conversions inside a mode class.  Remove restriction on
2271         preserving the element size.
2272         (simplify_vector_constructor): Deal with the above and for
2273         identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
2274         and VEC_PACK_TRUNC_EXPR.
2276 2019-11-28  Georg-Johann Lay  <avr@gjlay.de>
2278         Must use push insn to pass varargs arguments of DFmode because
2279         otherwise the middle-end generates wrong code.
2281         PR target/92055
2282         * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
2284 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
2286         PR tree-optimization/92691
2287         * tree-ssa-strlen.c (handle_store): Clarify return value meaning
2288         in function comment.
2289         (strlen_check_and_optimize_call): Likewise.  For handle_printf_call
2290         calls, return !handle_printf_call rather than always returning true.
2291         (check_and_optimize_stmt): Describe return value meaning in function
2292         comment.  Formatting fix.
2294 2019-11-28  Jan Hubicka  <hubicka@ucw.cz>
2296         * profile-count.c (profile_count::to_sreal_scale): Handle correctly
2297         combination of globa0 and global counters..
2299 2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>
2301         PR target/92566
2302         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
2303         by VECTOR_UNIT_NONE_P instead.
2305 2019-11-28  Hongtao Liu  <hongtao.liu@inte.com>
2307         * config/i386/sse.md (avx512f_maskcmp<mode>3):
2308         Refine VF to VF_AVX512VL.
2310 2019-11-27  Michael Meissner  <meissner@linux.ibm.com>
2312         * config/rs6000/rs6000.md (movsi_internal): Reformat.
2313         (movdi_internal64): Reformat.
2315 2019-11-27  Peter Bergner <bergner@linux.ibm.com>
2317         PR bootstrap/92661
2318         * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
2319         builtin if we don't have an actual type.
2320         (builtin_function_type): If the builtin function uses a DFP type
2321         and decimal float has been disabled, then return NULL_TREE.
2323 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
2325         PR rtl-optimization/92510
2326         * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
2327         of comparison into a comparison with different mode if both imode and
2328         omode are scalar integral modes.
2330 2019-11-27  Vladimir Makarov  <vmakarov@redhat.com>
2332         PR rtl-optimization/90007
2333         * recog.c (constrain_operands): Permit hard registers too for
2334         memory when LRA is used.
2336 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
2338         * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
2339         between Coldfire and regular m68k.
2340         * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
2342 2019-11-27  Richard Biener  <rguenther@suse.de>
2344         * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2345         * targhooks.c (default_builtin_vectorized_conversion): Likewise.
2346         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2347         * optabs-tree.c (supportable_convert_operation): Do not call
2348         targetm.vectorize.builtin_conversion.  Remove unused decl parameter.
2349         * optabs-tree.h (supportable_convert_operation): Adjust.
2350         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2351         * doc/tm.texi: Regenerate.
2352         * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
2353         * tree-vect-generic.c (expand_vector_conversion): Likewise.
2354         * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
2355         unused decl parameter and adjust.
2356         (vect_create_vectorized_promotion_stmts): Likewise.
2357         (vectorizable_conversion): Adjust.
2359 2019-11-27  Richard Biener  <rguenther@suse.de>
2361         PR tree-optimization/92690
2362         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
2363         converting elements not originally converted.
2365 2019-11-27  Tobias Burnus  <tobias@codesourcery.com>
2367         PR middle-end/92463
2368         * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
2369         do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
2370         mpfr_rnd_t instead of mp_rnd_t.
2371         * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
2372         do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
2373         * gimple-ssa-sprintf.c (format_floating_max, format_floating):
2374         Use mpfr_exp_t instead of mp_exp_t.
2375         * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
2376         MPFR_RNDx instead of GMP_RNDx.
2377         * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
2378         mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
2379         * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
2380         of mp_rnd_t and remove MPFR_RNDx poisoning.
2381         * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
2383 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
2385         PR tree-optimization/91790
2386         * tree-vect-stmts.c (vectorizable_load): Use the adjusted
2387         DR for vect_setup_realignment when first_stmt_info is different
2388         from first_stmt_info_for_drptr.
2390 2019-11-27  Richard Biener  <rguenther@suse.de>
2392         PR tree-optimization/92645
2393         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2394         CTORs with just a subset of the original vectors.
2396 2019-11-27  Richard Biener  <rguenther@suse.de>
2398         PR middle-end/92674
2399         * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
2400         edges and instead record blocks in bitmap.
2401         (gimple_expand_calls_inline): Adjust.
2402         (fold_marked_statements): Delay EH cleanup until all folding is
2403         done.
2404         (optimize_inline_calls): Do EH/abnormal cleanup for calls after
2405         inlining finished.
2407 2019-11-27  Bernd Schmidt  <bernds_cb1@t-online.de>
2409         * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
2410         LRA is enabled.
2411         * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
2412         disabled.
2414 2019-11-27  Jakub Jelinek  <jakub@redhat.com>
2416         PR debug/92664
2417         * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
2419 2019-11-26  Martin Sebor  <msebor@redhat.com>
2421         PR tree-optimization/92683
2422         * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
2423         inadvertently removed in a previous change.  Rename local variable
2424         for clarity.
2426 2019-11-26  Richard Biener  <rguenther@suse.de>
2428         PR middle-end/92669
2429         * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
2430         NULL pre_order.
2432 2019-11-26  Robin Dapp  <rdapp@linux.ibm.com>
2434         * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
2436 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
2438         PR tree-optimization/92644
2439         * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
2440         next to INTEGER_CST checks.
2442 2019-11-26  Richard Biener  <rguenther@suse.de>
2444         PR tree-optimization/92645
2445         * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
2446         do not build the operation from scalars if the operand is.
2448 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
2450         * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
2451         func_ids, funcs_tail, var_ids, vars_tail) Remove unused
2452         definitions.
2454 2019-11-25  Martin Liska  <mliska@suse.cz>
2456         * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
2457         up used dump message.
2459 2019-11-25  Martin Liska  <mliska@suse.cz>
2461         PR bootstrap/92653
2462         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
2463         too strict checking assert.
2465 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
2467         PR c/91985
2468         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
2469         (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
2470         error_mark_node if corresponding global tree node is NULL.
2471         * tree.c (build_common_tree_nodes): Do not initialize
2472         dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
2473         decimal floating-point not supported.
2475 2019-11-25  Joseph Myers  <joseph@codesourcery.com>
2477         * attribs.c (decl_attributes): Do not ignore C++11 attributes on
2478         types.
2480 2019-11-25  Bernd Schmidt  <bernds_cb1@t-online.de>
2482         * config/m68k/m68k.c (output_move_himode, output_move_qimode):
2483         Replace code for non-CONST_INT constants with gcc_unreachable.
2484         * config/m68k/m68k.md (cbranchdi): Don't generate individual
2485         compare and test.
2486         (CMPMODE): New mode_iterator.
2487         (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
2488         cbranch<mode>4.
2489         (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
2490         cstore<mode>4.
2491         (cmp<mode>_68881): Remove 'F' constraint from first comparison
2492         operand.
2493         (bit test insns patterns): Use nonimmediate_operand, not
2494         register_operand, for source operands that allow memory in
2495         their constraints.
2496         (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
2497         Use register_operand, not nonimmediate_operand, for the
2498         destinations.
2499         (DBCC): New mode_iterator.
2500         (dbcc peepholes): Use it to reduce duplication.
2501         (trap): Use const_true_rtx, not const1_rtx.
2502         * config/m68k/predicates.md (m68k_comparison_operand): Renamed
2503         from m68k_subword_comparison_operand and changed to handle
2504         SImode.
2506         PR target/91851
2507         * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
2508         declaration.
2509         (m68k_init_cc): New declaration.
2510         (m68k_output_compare_di, m68k_output_compare_si)
2511         (m68k_output_compare_hi, m68k_output_compare_qi)
2512         (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
2513         (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
2514         (m68k_output_branch_integer, m68k_output_branch_integer_rev.
2515         m68k_output_branch_float, m68k_output_branch_float_rev):
2516         Likewise.
2517         (valid_dbcc_comparison_p_2, flags_in_68881)
2518         (output_btst): Remove declaration.
2519         * config/m68k/m68k.c (INCLDUE_STRING): Define.
2520         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
2521         (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
2522         (flags_compare_op0, flags_compare_op1, flags_operand1,
2523         flags_operand2, flags_valid): New static variables.
2524         (m68k_find_flags_value, m68k_init_cc): New functions.
2525         (handle_flags_for_move, m68k_asm_final_postscan_insn,
2526         remember_compare_flags): New static functions.
2527         (output_dbcc_and_branch): New argument CODE.  Use it, and add
2528         PLUS and MINUS to the possible codes.  All callers changed.
2529         (m68k_output_btst): Renamed from output_btst.  Remove OPERANDS
2530         and INSN arguments, add CODE arg.  Return the comparison code
2531         to use.  All callers changed.  Use CODE instead of
2532         next_insn_tests_no_inequality, and replace cc_status management
2533         with changing the return code.
2534         (m68k_rtx_costs): Instead of testing for COMPARE, test for
2535         RTX_COMPARE or RTX_COMM_COMPARE.
2536         (output_move_simode, output_move_qimode): Call
2537         handle_flags_for_move.
2538         (notice_update_cc): Delete function.
2539         (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
2540         m68k_output_compare_hi, m68k_output_compare_qi,
2541         m68k_output_compare_fp, m68k_output_branch_integer,
2542         m68k_output_branch_integer_rev, m68k_output_scc,
2543         m68k_output_branch_float, m68k_output_branch_float_rev,
2544         m68k_output_scc_float): New functions.
2545         (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
2546         once at the start, and set flags_valid and flags_operand1 if the
2547         flags are usable.
2548         * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
2549         CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
2550         definitions.
2551         (CC_STATUS_INIT): Define.
2552         * config/m68k/m68k.md (flags_valid): New define_attr.
2553         (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
2554         tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
2555         cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
2556         cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
2557         tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
2558         sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
2559         sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
2560         bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
2561         ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
2562         bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
2563         blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
2564         bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
2565         bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
2566         ctrapqi4, conditional_trap): Delete patterns.
2567         (cbranchdi4_insn): New pattern.
2568         (cbranchdi4): Don't generate cc0 patterns.  When testing LT or GE,
2569         test high part only.  When testing EQ or NE, generate beq0_di
2570         and bne0_di patterns directly.
2571         (cstoredi4): When testing LT or GE, test high part only.
2572         (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
2573         patterns.
2574         (scc0_constraints, cmp1_constraints, cmp2_constraints,
2575         scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
2576         cmp2_cf_predicate): New define_mode_attrs.
2577         (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
2578         cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
2579         cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
2580         New patterns.
2581         (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
2582         (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
2583         cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
2584         New patterns.
2585         (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
2586         cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
2587         Likewise.
2588         (BTST): New define_mode_iterator.
2589         (btst_predicate, btst_constraint, btst_range): New
2590         define_mode_attrs.
2591         (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
2592         patterns.
2593         (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
2594         unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
2595         patterns): Set attr "flags_valid".
2596         (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
2597         management.  Set attr "flags_valid".
2598         (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
2599         extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
2600         addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
2601         addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
2602         manual CC_STATUS management.
2603         (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
2604         unnamed strict_lowpart subhi and subqi patterns): Set attr
2605         "flags_valid".
2606         (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
2607         Remove code to operate on address regs and assert the case
2608         does not occur.
2609         (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
2610         manual CC_STATUS_INIT.
2611         (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
2612         xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
2613         negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
2614         one_cmplqi2, unnamed strict_lowpart patterns
2615         for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
2616         one_cmplhi and one_cmplqi): Set attr "flags_valid".
2617         (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
2618         (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
2619         CC_STATUS_INIT.
2620         (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
2621         lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
2622         rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
2623         unnamed strict_low_part patterns for HI and
2624         QI versions): Set attr "flags_valid".
2625         (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
2626         bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
2627         insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
2628         insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
2629         dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
2630         (various unnamed peepholes): Adjust compare/branch sequences
2631         for new cbranch patterns.
2632         (dbcc peepholes): Likewise, and output the comparison here
2633         as well.
2634         * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
2635         (fp_src_operand): Allow constant zero.
2636         (address_reg_operand): New predicate.
2638         * rtl.h (inequality_comparisons_p): Remove declaration.
2639         * recog.h (next_insn_tests_no_inequality): Likewise.
2640         * rtlanal.c (inequality_comparisons_p): Delete function.
2641         * recog.c (next_insn_tests_no_inequality): Likewise.
2643 2019-11-25  Richard Biener  <rguenther@suse.de>
2645         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
2646         (vect_detect_hybrid_slp): Swap lane and instance iteration,
2647         properly re-building the visited hash-map for each lane.
2649 2019-11-25  Tobias Burnus  <tobias@codesourcery.com>
2651         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
2652         gcn_md_reorg): Remove unused variables.
2653         (gcn_emutls_var_init): Add missing (but unreachable) return
2654         to silence warning.
2655         (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
2656         target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
2657         an uninitialized variable.
2659 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2661         PR ipa/92109
2662         * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
2663         * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
2664         (cgraph_materialize_clone): Move removel from clone tree to the
2665         the new method and use it instead.
2666         * ipa.c (symbol_table::remove_unreachable_nodes): When removing
2667         bodies of clones, also remove it from the clone tree.
2669 2019-11-25  Martin Jambor  <mjambor@suse.cz>
2671         PR ipa/91956
2672         * ipa-sra.c (process_isra_node_results): Put the new node to the
2673         same comdat group as the original node.
2675 2019-11-25  Georg-Johann Lay  <avr@gjlay.de>
2677         Build double32 / long-double32 multilibs if needed.
2679         PR target/92055
2680         * config/avr/t-avr:
2681         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
2682         (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
2683         (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
2684         tm_defines and pass to genmultilib.awk.
2685         * config/avr/genmultilib.awk: Use these variables to add double32
2686         and / or long-double32 multilib(s) as needed.
2687         * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
2689 2019-11-25  Richard Biener  <rguenther@suse.de>
2691         * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
2692         loop body, defaulted to NULL.
2693         (single_likely_exit): Add exit vector argument
2694         * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
2695         (number_of_iterations_exit): Likewise.
2696         (number_of_iterations_exit_assumptions): Likewise.
2697         * cfgloop.c (get_loop_exit_edges): Use passed in loop body
2698         if not NULL.
2699         * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
2700         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
2701         Compute exit vector around call to single_likely_exit.
2702         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
2703         loop body to loop_only_exit_p.
2704         * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
2705         caller.
2706         (number_of_iterations_exit_assumptions): Get loop body from caller
2707         if not NULL.
2708         (number_of_iterations_exit): Pass through new loop body arg.
2709         (infer_loop_bounds_from_undefined): Get loop body from caller.
2710         (estimate_numbers_of_iterations): Compute loop body once.
2712 2019-11-25  Richard Biener  <rguenther@suse.de>
2714         * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
2715         auto_bb_flag instead of an sbitmap for visited handling.
2717 2019-11-25 Kewen Lin  <linkw@gcc.gnu.org>
2719         * config/rs6000/vector.md (vector_fp_comparison_simple): New code
2720         iterator.
2721         (vector_fp_comparison_complex): Likewise.
2722         (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
2723         define_and_split.
2724         (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
2725         Likewise.
2726         (vector_lt<mode> for VEC_F): Refactor with
2727         vector_fp_comparison_simple.
2728         (vector_le<mode> for VEC_F): Likewise.
2729         (vector_unge<mode> for VEC_F): Likewise.
2730         (vector_unle<mode> for VEC_F): Likewise.
2731         (vector_ne<mode> for VEC_F): Likewise.
2732         (vector_ungt<mode> for VEC_F): Likewise.
2733         (vector_unlt<mode> for VEC_F): Likewise.
2734         (vector_ltgt<mode> for VEC_F): Refactor with
2735         vector_fp_comparison_complex.
2736         (vector_ordered<mode> for VEC_F): Likewise.
2737         (vector_uneq<mode> for VEC_F): Likewise.
2738         (vector_unordered<mode> for VEC_F): Likewise.
2740 2019-11-24  Bernd Schmidt  <bernds_cb1@t-online.de>
2742         * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
2743         COMPARE, representing an overflow detection.
2745         * combine.c (combine_instructions): Record costs for jumps.
2747         * combine.c (can_combine_p): Allow autoinc in jumps.
2749 2019-11-23  Jan Hubicka  <hubicka@ucw.cz>
2751         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
2752         * doc/invoke.texi (max-inline-insns-single-O2,
2753         inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
2754         early-inlining-insns-O2): Remove documentation.
2755         * ipa-fnsummary.c (analyze_function_body,
2756         compute_fn_summary): Use opt_for_fn when accessing parameters.
2757         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2758         inline_insns_auto, can_inline_edge_by_limits_p,
2759         want_early_inline_function_p, big_speedup_p,
2760         want_inline_small_function_p, want_inline_self_recursive_call_p,
2761         recursive_inlining, compute_max_insns, inline_small_functions):
2762         Likewise.
2763         * opts.c (default_options): Add -O3 defaults for
2764         OPT__param_early_inlining_insns_,
2765         OPT__param_inline_heuristics_hint_percent_,
2766         OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
2767         * params.opt (-param=early-inlining-insns-O2=,
2768         -param=inline-heuristics-hint-percent-O2=,
2769         -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
2770         -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
2771         -param=inline-min-speedup=, -param=inline-unit-growth=,
2772         -param=large-function-growth=, -param=large-stack-frame=,
2773         -param=large-stack-frame-growth=, -param=large-unit-insns=,
2774         -param=max-inline-insns-recursive=,
2775         -param=max-inline-insns-recursive-auto=,
2776         -param=max-inline-insns-single=,
2777         -param=max-inline-insns-size=, -param=max-inline-insns-small=,
2778         -param=max-inline-recursive-depth=,
2779         -param=max-inline-recursive-depth-auto=,
2780         -param=min-inline-recursive-probability=,
2781         -param=partial-inlining-entry-probability=,
2782         -param=uninlined-function-insns=, -param=uninlined-function-time=,
2783         -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
2784         Optimization.
2786 2019-11-23  Jakub Jelinek  <jakub@redhat.com>
2788         * ipa-fnsummary.c: Fix comment typos.
2789         * ipa-ref.h: Likewise.
2790         * ipa-predicate.h: Likewise.
2791         * ipa-split.c: Likewise.
2792         * ipa-inline-analysis.c: Likewise.
2793         * ipa-predicate.c: Likewise.
2794         * ipa-devirt.c: Likewise.
2795         * ipa-icf.h: Likewise.
2796         * profile-count.c: Likewise.
2797         * ipa-icf.c: Likewise.
2798         (sem_function::equals_wpa): Fix typos in dump messages.
2799         * ipa-icf-gimple.h: Fix comment typos.
2800         * ipa-inline-transform.c: Likewise.
2801         * ipa-polymorphic-call.c: Likewise.
2802         * ipa-fnsummary.h: Likewise.
2803         * ipa-inline.c: Likewise.
2804         (dump_inline_stats): Fix typo in debug dump message.
2805         * profile-count.h: Fix comment typos.
2807         PR target/92615
2808         * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2809         GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2810         register_operand, force x into register before storing it into dest.
2811         Formatting fix.
2813         PR middle-end/83859
2814         * doc/extend.texi (attribute access): Fix a typo.
2816         PR rtl-optimization/92610
2817         * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2818         cse_cfg_altered is set, even when tem is 0.
2819         (rest_of_handle_cse_after_global_opts): Likewise.
2821 2019-11-22  Jakub Jelinek  <jakub@redhat.com>
2823         PR c++/92458
2824         * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2825         tree_hash): Move to ...
2826         * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2827         (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2828         types.
2829         (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2831         PR tree-optimization/92618
2832         * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2833         containing the auto_vec and a tree.
2834         (undistribute_bitref_for_vector): Handle the case when element type
2835         of vec is not the same as type of the BIT_FIELD_REF.  Formatting
2836         fixes.
2838 2019-11-22  Martin Sebor  <msebor@redhat.com>
2840         PR middle-end/83859
2841         * attribs.h (struct attr_access): New.
2842         * attribs.c (decl_attributes): Add an informational note.
2843         * builtins.c (check_access): Make extern.  Consistently set no-warning
2844         after issuing a warning.  Handle calls through function pointers.  Set
2845         no-warning.
2846         * builtins.h (check_access): Declare.
2847         * calls.c (rdwr_access_hash): New type.
2848         (rdwr_map): Same.
2849         (init_attr_rdwr_indices): New function.
2850         (maybe_warn_rdwr_sizes): Same.
2851         (initialize_argument_information): Call init_attr_rdwr_indices.
2852         Call maybe_warn_rdwr_sizes.
2853         (get_size_range): Avoid null argument.
2854         * doc/extend.texi (attribute access): Document new attribute.
2856 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2858         * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2859         (ACC_LDS_SIZE): Define.
2860         (OTHER_LDS_SIZE): Define.
2861         (LDS_SIZE): Redefine using above.
2862         (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2864 2019-11-22  Martin Sebor  <msebor@redhat.com>
2866         PR middle-end/88226
2867         * builtins.c (check_nul_terminated_array): New function.
2868         (fold_builtin_0): Remove declaration.
2869         (fold_builtin_1): Same.
2870         (fold_builtin_2): Same.
2871         (fold_builtin_3): Same.
2872         (fold_builtin_strpbrk): Add argument.
2873         (fold_builtin_strspn): Same.
2874         (fold_builtin_strcspn): Same.
2875         (expand_builtin_strcat): Call it.  Remove unused argument.
2876         (expand_builtin_stpncpy): Same.
2877         (expand_builtin_strncat): Same.
2878         (expand_builtin_strncpy): Same.  Adjust indentation.
2879         (expand_builtin_strcmp): Same.
2880         (expand_builtin_strncmp): Same.
2881         (expand_builtin_fork_or_exec): Same.
2882         (expand_builtin): Handle more built-ins.
2883         (fold_builtin_2): Add argument.
2884         (fold_builtin_n): Make static.  Add argument.
2885         (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2886         (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2887         (fold_builtin_strpbrk): Add argument.  Call check_nul_terminated_array.
2888         (fold_call_stmt): Pass new argument to fold_builtin_n.
2889         * builtins.h: Correct a comment.
2890         * gimple-fold.c (gimple_fold_builtin_strchr): Call
2891         check_nul_terminated_array.
2892         * tree-ssa-strlen.c (handle_builtin_strlen): Call
2893         check_nul_terminated_array.
2894         (handle_builtin_strchr): Same.
2895         (handle_builtin_string_cmp): Same.
2897 2019-11-22  Martin Sebor  <msebor@redhat.com>
2899         PR tree-optimization/92501
2900         * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2901         handle unterminated arrays.  Rename local variables for clarity.
2903 2019-11-22  Andrew Stubbs  <ams@codesourcery.com>
2905         * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2906         granulated_sgprs according to architecture.
2908 2019-11-22  Jan Hubicka  <jh@suse.cz>
2910         * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2911         * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2912         (memory_block_pool::reduce_free_list): ... this one.
2913         (memory_block_pool::trim): New static function.
2914         * memory-block.h (memory_block_pool::freelist_size): New constant
2915         (memory_block_pool::clear_free_list): Rename to ...
2916         (memory_block_pool::reduce_free_list): ... this one.
2917         (memory_block_pool::trim): Declare.
2919 2019-11-22  Richard Sandiford  <richard.sandiford@arm.com>
2921         * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2922         vect_cost_for_stmt.
2923         (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2924         here rather than...
2925         * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2927 2019-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
2929         * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2930         (bic_cmp0_noout): New pattern.
2931         (bic_cmp0): Likewise.
2932         (neg_scc_insn): Remove pattern.
2933         (not_scc_insn): Likewise.
2935 2019-11-21  Harald van Dijk  <harald@gigawatt.nl>
2937         * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2939 2019-11-21  Joseph Myers  <joseph@codesourcery.com>
2941         * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2942         pedwarn instead of warning_at for fallthrough not preceding a case
2943         or default label.
2945 2019-11-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2947         PR tree-optimization/92608
2948         * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2949         of dyn_cast.
2951 2019-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
2953         * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2954         New predicate.
2955         * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2956         * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2957         special for FP comparisons that need a cror instruction eventually.
2958         (rs6000_emit_fp_cror): New function.
2959         (rs6000_emit_sCOND): Expand all floating point comparisons to one
2960         instruction, for normal FP modes, with HONOR_NANS.
2961         (rs6000_emit_cbranch): Reformat.
2962         * config/rs6000/rs6000.md (fp_rev): New iterator.
2963         (fp_two): New iterator.
2964         *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2965         *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2966         *cbranch_2insn: New define_insn_and_split.
2968 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2970         PR tree-optimization/92526
2971         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2972         versioning for alignment if the accesses do not have a consistent
2973         mask, rather than asserting that the masks are consistent.
2975 2019-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2977         PR tree-optimization/92595
2978         * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2979         check.
2980         (vectorizable_store, vectorizable_load): Likewise.
2982 2019-11-21  Jan Hubicka  <jh@suse.cz>
2984         * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2985         (resolve_noninline_speculation, inline_small_functions): Avoid
2986         redundant updates.
2988 2019-11-21  Richard Biener  <rguenther@suse.de>
2990         * lra.c (lra_insn_recog_data_pool): New.
2991         (free_insn_recog_data): Adjust.
2992         (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2993         (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2995 2019-11-21  Richard Biener  <rguenther@suse.de>
2997         PR tree-optimization/92596
2998         * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
3000 2019-11-21  Jan Hubicka  <jh@suse.cz>
3002         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
3003         ready for some vectors to not be allocated.
3004         (evaluate_properties_for_edge): Document better; make
3005         known_vals and known_aggs caller allocated; avoid determining
3006         values of parameters which are not used.
3007         (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
3008         known_aggs.
3009         * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
3010         (do_estimate_edge_size): Likewise.
3011         (do_estimate_edge_hints): Likewise.
3012         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
3013         values are not known.
3014         (ipa_release_agg_values): Add option to not release vector itself.
3015         * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
3017 2019-11-21  Richard Biener  <rguenther@suse.de>
3019         * cfgloop.h (loop_iterator::~loop_iterator): Remove.
3020         (loop_iterator::to_visit): Use an auto_vec with internal storage.
3021         (loop_iterator::loop_iterator): Adjust.
3022         * cfganal.c (compute_dominance_frontiers_1): Fold into...
3023         (compute_dominance_frontiers): ... this.  Hoist invariant
3024         get_immediate_dominator call.
3025         (compute_idf): Use a work-set instead of a work-list for more
3026         optimal iteration order and duplicate avoidance.
3027         * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
3028         the vector all the time, instead pre-allocate the vector only
3029         once.
3030         (delete_update_ssa): Simplify.
3031         * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
3033 2019-11-21  Jakub Jelinek  <jakub@redhat.com>
3035         PR tree-optimization/91355
3036         * tree-ssa-sink.c (select_best_block): Use >= rather than >
3037         for early_bb scaled count with best_bb count comparison.
3039         * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
3040         preffer -> prefer.
3041         * ipa-inline.c (edge_badness): Likewise.
3042         * lto-streamer.h (class lto_location_cache): Likewise.
3043         * tree-ssa-sink.c (select_best_block): Likewise.  Fix comment typos,
3044         gratutious -> gratuitous.
3046 2019-11-21  Richard Biener  <rguenther@suse.de>
3048         Revert
3049         2019-09-17  Richard Biener  <rguenther@suse.de>
3051         PR tree-optimization/91790
3052         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3053         use the correct DR for setting up realignment.
3055 2019-11-21  Richard Biener  <rguenther@suse.de>
3057         * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
3058         (equiv_class_obstack): New.
3059         (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
3060         (perform_var_substitution): Initialize equiv_class_obstack.
3061         (free_var_substitution_info): Free equiv_class_obstack.
3063 2019-11-20  Jan Hubicka  <jh@suse.cz>
3065         * ipa-inline.c (want_early_inline_function_p): Do not estimate
3066         edge growth when callee function is very large.
3067         * ipa-inline.h (estimate_min_edge_growth): New.
3069 2019-11-20  Jan Hubicka  <jh@suse.cz>
3071         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
3072         negative time in calls summary; correct roundoff errors
3073         leading to negative times.
3074         (ipa_merge_fn_summary_after_inlining): Update calls size time table
3075         if present.
3076         (ipa_update_overall_fn_summary): Add RESET parameter.
3077         * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
3078         * ipa-inline-transform.c (inline_call): Enable incremental updates.
3080 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
3082         * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
3083         def types for two-operation SLP.
3085 2019-11-20  Richard Sandiford  <richard.sandiford@arm.com>
3087         PR testsuite/92366
3088         * doc/sourcebuild.texi (vect_char_add): Document.
3090 2019-11-20  Alexandre Oliva <oliva@adacore.com>
3092         * function.h (CALLEE_FROM_CGRAPH_P): Remove.
3093         * function.c (record_final_call): Record even calls that might
3094         have been in the cgraph.
3095         * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
3096         callees.
3098 2019-11-20  Janne Blomqvist  <jb@gcc.gnu.org>
3100         * configure.ac: Use https for gcc.gnu.org
3101         * configure: Regenerated.
3102         * doc/install.texi: Use https for gcc.gnu.org.
3103         * doc/sourcebuild.texi: Likewise.
3105 2019-11-20  Julian Brown  <julian@codesourcery.com>
3107         * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
3109 2019-11-20  Jan Hubicka  <jh@suse.cz>
3111         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
3112         parameter and update call_size_time_table.
3113         (ipa_fn_summary::max_size_time_table_size): New constant.
3114         (estimate_calls_size_and_time_1): Break out from ...
3115         (estimate_calls_size_and_time): ... here; implement summary production.
3116         (summarize_calls_size_and_time): New function.
3117         (ipa_call_context::estimate_size_and_time): Bypass
3118         estimate_calls_size_and_time for leaf functions.
3119         (ipa_update_overall_fn_summary): Likewise.
3120         * ipa-fnsummary.h (call_size_time_table): New.
3121         (ipa_fn_summary::account_size_time): Update prototype.
3123 2019-11-20  Joseph Myers  <joseph@codesourcery.com>
3125         * doc/invoke.texi (-Wc11-c2x-compat): Document.
3127 2019-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
3129         PR85678
3130         * common.opt (fcommon): Change init to 1.
3131         * doc/invoke.texi (-fcommon): Update documentation.
3133 2019-11-20  Jan Hubicka  <jh@suse.cz>
3135         * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
3136         to ordinary array.
3138 2019-11-20  Jan Hubicka  <jh@suse.cz>
3140         * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
3141         Add allocator parameter.
3142         (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
3143         (fibonacci_heap<K,V>::m_allocator): New.
3144         (fibonacci_heap<K,V>::m_own_allocator): New.
3145         (fibonacci_heap<K,V>::insert): Use allocator.
3146         (fibonacci_heap<K,V>::extract_min): Likewise.
3147         (fibonacci_heap<K,V>::union_with): Assert that both heaps share
3148         allocator.
3149         (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
3150         on stack.
3151         * fibonacci_heap.c: Include alloc-pool
3152         (test_empty_heap): Initialize allocator.
3153         (test_union): Likewise.
3154         * bb-reorder.c: Include alloc-pool.h.
3155         * tracer.c: Inlclude alloc-pool.h.
3157 2019-11-20  Jan Hubicka  <jh@suse.cz>
3159         * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
3160         Preallocate for 32 entries.
3161         (DFS::worklist): Likewise.
3162         (DFS::DFS): Do not initialize sccstack and worklist.
3163         (DFS::~DFS): Do not release sccstack.
3165 2019-11-20  Segher Boessenkool  <segher@kernel.crashing.org>
3167         PR target/92573
3168         * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
3169         Handle UNORDERED if !HONOR_NANS.
3171 2019-11-20  Jan Hubicka  <jh@suse.cz>
3173         * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
3174         (edge_badness): ... here.
3175         (inline_small_functions): Use monotonicity of badness calculation
3176         to avoid redundant updates.
3178 2019-11-20  Richard Biener  <rguenther@suse.de>
3180         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
3181         constructors we are actually analyzing.
3182         (vect_slp_check_for_constructors): Do not vectorize uniform
3183         constuctors, do not dump here.
3185 2019-11-20  Richard Biener  <rguenther@suse.de>
3187         PR tree-optimization/92537
3188         * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
3189         vectorization validity check...
3190         (vect_slp_analyze_operations): ... here.
3192 2019-11-20  Claudiu Zissulescu  <claziss@synopsys.com>
3194         * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
3195         (make_pass_arc_predicate_delay_insns): Likewise.
3196         * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
3197         method, remove clone.
3198         (class pass_arc_predicate_delay_insns): Likewise.
3199         (arc_init): Remove registering of ARC specific passes.
3200         * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
3201         * config/arc/arc-passes.def: New file.
3203 2019-11-20  Jakub Jelinek  <jakub@redhat.com>
3205         PR middle-end/90840
3206         * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
3207         and has a mode that doesn't have corresponding integral type.
3209         PR target/90867
3210         * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
3211         clear opts->x_ix86_isa_flags{,2} here...
3212         (ix86_valid_target_attribute_inner_p): ... but here when seeing
3213         arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.
3215         PR c/90898
3216         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
3217         assertion.
3218         (insert_clobbers_for_var): Fix a typo in function comment.
3220 2019-11-20  Jiangning Liu  <jiangning.liu@amperecomputing.com>
3221             Jakub Jelinek  <jakub@redhat.com>
3223         PR middle-end/91195
3224         * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
3225         earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
3226         load.
3228 2019-11-20  Georg-Johann Lay  <avr@gjlay.de>
3230         Make 0-series device specs work with older versions of avr-gcc.
3232         PR target/92545
3233         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
3234         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3235         <*link_pm_base_address>: Don't write spec.
3236         <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
3238 2019-11-20  Richard Biener  <rguenther@suse.de>
3240         PR c/92088
3241         * builtins.c (compute_objsize): Deal with VLAs.
3243 2019-11-19  Pat Haugen  <pthaugen@us.ibm.com>
3245         * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
3246         from common code.
3247         (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
3248         call new function.
3249         (power9_sched_reorder2): Call new function.
3250         (rs6000_sched_reorder2): Likewise.
3252 2019-11-18  Jan Hubicka  <jh@suse.cz>
3254         * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
3255         (estimate_calls_size_and_time): Update.
3257 2019-11-18  Jan Hubicka  <jh@suse.cz>
3259         * ipa-inline.c (inlining_speedup): New function.
3260         (edge_badness): Use it.
3262 2019-11-19  Zoran Jovanovic <zoran.jovanovic@mips.com>
3263                         Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
3265         * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
3266         Mark as not having "likely" version.
3267         * config/mips/mips.md (insn_count): The simd_div instruction with
3268         TARGET_CHECK_ZERO_DIV consists of 3 instructions.
3269         (can_delay): Exclude simd_branch.
3270         (defile_delay *): Add simd_branch instructions.
3271         They have one regular delay slot.
3273 2019-11-19  Richard Sandiford  <richard.sandiford@arm.com>
3275         Revert:
3276         2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3278         * cse.c (cse_insn): Delete no-op register moves too.
3279         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
3280         Take a second comparison to control the value for NE.
3281         (mask_to_comparison): Handle unsigned comparisons.
3282         (simplify_logical_relational_operation): Likewise.  Update call
3283         to comparison_to_mask.  Handle AND if !HONOR_NANs.
3284         (simplify_binary_operation_1): Call the above for AND too.
3286 2019-11-19  Martin Liska  <mliska@suse.cz>
3288         * toplev.c (general_init): Move the call...
3289         (toplev::main): ... here as we need init_options_struct
3290         being called.
3292 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
3294         PR target/79262
3295         * config/aarch64/aarch64.c (generic_vector_cost): Adjust
3296         vec_to_scalar_cost.
3298 2019-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
3300         * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
3301         (armv7-a): Likewise.
3302         (armv7ve): Likewise.
3304 2019-11-19  Richard Biener  <rguenther@suse.de>
3306         PR tree-optimization/92581
3307         * tree-vect-loop.c (vect_create_epilog_for_reduction): For
3308         condition reduction chains gather all conditions involved
3309         for computing the index reduction vector.
3311 2019-11-19  Dennis Zhang  <dennis.zhang@arm.com>
3313         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3314         AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
3315         AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
3316         AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
3317         AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
3318         (aarch64_init_memtag_builtins): New.
3319         (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
3320         (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
3321         (aarch64_expand_builtin_memtag): New.
3322         (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
3323         (AARCH64_BUILTIN_SUBCODE): New macro.
3324         (aarch64_resolve_overloaded_memtag): New.
3325         (aarch64_resolve_overloaded_builtin_general): New. Call
3326         aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
3327         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3328         __ARM_FEATURE_MEMORY_TAGGING when enabled.
3329         (aarch64_resolve_overloaded_builtin): Call
3330         aarch64_resolve_overloaded_builtin_general.
3331         * config/aarch64/aarch64-protos.h
3332         (aarch64_resolve_overloaded_builtin_general): New declaration.
3333         * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
3334         (TARGET_MEMTAG): Likewise.
3335         * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
3336         (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
3337         (irg, gmi, subp, addg, ldg, stg): New instructions.
3338         * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
3339         (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
3340         (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
3341         (__arm_mte_get_tag): Likewise.
3342         * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
3343         (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
3344         * config/arm/types.md (memtag): New.
3345         * doc/invoke.texi (-memtag): Update description.
3347 2019-11-19  Richard Henderson  <richard.henderson@linaro.org>
3349         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
3350         to define __GCC_ASM_FLAG_OUTPUTS__.
3351         * config/arm/arm.c (thumb1_md_asm_adjust): New function.
3352         (arm_option_params_internal): Swap out targetm.md_asm_adjust
3353         depending on TARGET_THUMB1.
3354         * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
3356 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
3358         PR target/92549
3359         * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
3361         PR middle-end/91450
3362         * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
3363         operand is negative and one non-negative, compare the non-negative
3364         one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
3365         don't compare (s1 & s2) == 0, but compare separately both s1 == 0
3366         and s2 == 0, unless one of them is known to be negative.  Remove
3367         tem2 variable, use tem where tem2 has been used before.
3369 2019-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3371         * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
3373 2019-11-19  Jakub Jelinek  <jakub@redhat.com>
3375         PR tree-optimization/92557
3376         * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
3377         vmode rather than asserting it always is.
3379 2019-11-19  Richard Biener  <rguenther@suse.de>
3381         PR tree-optimization/92554
3382         * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
3383         for the actual condition stmt and deal with sign-changes.
3385 2019-11-19  Richard Biener  <rguenther@suse.de>
3387         PR tree-optimization/92555
3388         * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
3389         for non-SLP stmts.
3391 2019-11-19  Martin Liska  <mliska@suse.cz>
3393         PR bootstrap/92540
3394         * config/riscv/riscv.c (riscv_address_insns): Initialize
3395         addr in order to remove boostrap -Wmaybe-uninitialized
3396         error.
3398 2019-11-18  Martin Sebor  <msebor@redhat.com>
3400         PR tree-optimization/92493
3401         * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
3402         assignment.
3404 2019-11-18  Giuliano Belinassi  <giuliano.belinassi@usp.br>
3406         * cfgloop.c (get_loop_body_in_custom_order): New.
3407         * cfgloop.h (get_loop_body_in_custom_order): New prototype.
3408         * tree-loop-distribution.c (class loop_distribution): New.
3409         (bb_top_order_cmp): Remove.
3410         (bb_top_order_cmp_r): New.
3411         (create_rdg_vertices): Move into class loop_distribution.
3412         (stmts_from_loop): Same as above.
3413         (update_for_merge): Same as above.
3414         (partition_merge_into): Same as above.
3415         (get_data_dependence): Same as above.
3416         (data_dep_in_cycle_p): Same as above.
3417         (update_type_for_merge): Same as above.
3418         (build_rdg_partition_for-vertex): Same as above.
3419         (classify_builtin_ldst): Same as above.
3420         (classify_partition): Same as above.
3421         (share_memory_accesses): Same as above.
3422         (rdg_build_partitions): Same as above.
3423         (pg_add_dependence_edges): Same as above.
3424         (build_partition_graph): Same as above.
3425         (merge_dep_scc_partitions): Same as above.
3426         (break_alias_scc_partitions): Same as above.
3427         (finalize_partitions): Same as above.
3428         (distribute_loop): Same as above.
3429         (bb_top_order_init): New method
3430         (bb_top_order_destroy): New method.
3431         (get_bb_top_order_index_size): New method.
3432         (get_bb_top_order_index_index): New method.
3433         (get_bb_top_order_index_index): New method.
3434         (loop_distribution::execute): New method.
3435         (pass_loop_distribution::execute): Instantiate loop_distribution.
3437 2019-11-18  Jan Hubicka  <jh@suse.cz>
3439         PR ipa/92508
3440         * ipa-inline.c (inline_small_functions): Add new edges after reseting
3441         caches.
3442         * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
3444 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3446         * doc/sourcebuild.texi (vect_check_ptrs): Document.
3447         * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
3448         * doc/md.texi: Document them.
3449         * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
3450         internal functions.
3451         * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
3452         * internal-fn.c (check_ptrs_direct): New macro.
3453         (expand_check_ptrs_optab_fn): Likewise.
3454         (direct_check_ptrs_optab_supported_p): Likewise.
3455         (internal_check_ptrs_fn_supported_p): New fuction.
3456         * tree-data-ref.c: Include internal-fn.h.
3457         (create_ifn_alias_checks): New function.
3458         (create_intersect_range_checks): Use it.
3459         * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
3460         (optab, cmp_op): Handle it.
3461         (raw_war, unspec): New int attributes.
3462         * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
3463         constants.
3464         * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
3465         New predicate.
3466         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
3467         expander.
3468         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
3469         pattern.
3471 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3473         * tree.c (build_vector_from_ctor): Directly return a zero vector for
3474         empty constructors.
3476 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3478         * cse.c (cse_insn): Delete no-op register moves too.
3479         * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
3480         Take a second comparison to control the value for NE.
3481         (mask_to_comparison): Handle unsigned comparisons.
3482         (simplify_logical_relational_operation): Likewise.  Update call
3483         to comparison_to_mask.  Handle AND if !HONOR_NANs.
3484         (simplify_binary_operation_1): Call the above for AND too.
3486 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3488         * fold-const.c (native_encode_vector): Turn into a wrapper function,
3489         splitting the main code out into...
3490         (native_encode_vector_part): ...this new function.
3491         (native_decode_vector_tree): New function.
3492         (fold_view_convert_vector_encoding): Likewise.
3493         (fold_view_convert_expr): Use it for converting VECTOR_CSTs
3494         to VECTOR_TYPEs.
3496 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3498         * tree-data-ref.c (create_intersect_range_checks_index): If the
3499         alias pair describes simple WAW and WAR dependencies, just check
3500         whether the first B access overlaps later A accesses.
3501         (create_waw_or_war_checks): New function that performs the same
3502         optimization on addresses.
3503         (create_intersect_range_checks): Call it.
3505 2019-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3507         * lra-constraints.c (valid_address_p): Take the operand and a
3508         constraint as argument.  If the operand is a MEM and the constraint
3509         is a memory constraint, check whether the eliminated form of the
3510         MEM already satisfies the constraint.
3511         (process_address_1): Update calls accordingly.
3513 2019-11-18  Tom Tromey  <tromey@adacore.com>
3515         * doc/tm.texi: Rebuild.
3516         * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
3517         * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
3519 2019-11-18  Richard Biener  <rguenther@suse.de>
3521         PR tree-optimization/92516
3522         * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
3523         argument, hoist bst_map creation/destruction to ...
3524         (vect_analyze_slp): ... here, forming a true graph with
3525         SLP instances being the entries.
3526         (vect_detect_hybrid_slp_stmts): Remove wrapper.
3527         (vect_detect_hybrid_slp): Use one visited set for all
3528         graph entries.
3529         (vect_slp_analyze_node_operations): Simplify visited/lvisited
3530         to hash-sets of slp_tree.
3531         (vect_slp_analyze_operations): Likewise.
3532         (vect_bb_slp_scalar_cost): Remove wrapper.
3533         (vect_bb_vectorization_profitable_p): Use one visited set for
3534         all graph entries.
3535         (vect_schedule_slp_instance): Elide bst_map use.
3536         (vect_schedule_slp): Likewise.
3538 2019-11-18  Richard Biener  <rguenther@suse.de>
3540         * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
3541         was vectorized with just external refs fail.
3543 2019-11-18  Martin Liska  <mliska@suse.cz>
3545         PR ipa/92525
3546         * ipa-icf.c (sem_function::init): Unset m_checker
3547         at the end of the function.
3549 2019-11-18  Richard Biener  <rguenther@suse.de>
3551         PR tree-optimization/92558
3552         * tree-vect-loop.c (vect_create_epilog_for_reduction): When
3553         reducting the width of a reduction vector def update new_phis.
3555 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3557         * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
3558         and s390*-*-linux-musl* targets.
3559         * configure: Regenerate.
3561 2019-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3563         * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
3564         (MUSL_DYNAMIC_LINKER64): Define.
3566 2019-11-18  Martin Liska  <mliska@suse.cz>
3568         * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
3569         message for an unknown counter.
3570         (dbg_cnt_process_single_pair): Support 0 as minimum value.
3571         (dbg_cnt_process_opt): Remove unreachable code.
3573 2019-11-18  Martin Liska  <mliska@suse.cz>
3575         PR ipa/92529
3576         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
3577         Compare LHS types of NOP_EXPR.
3579 2019-11-18  Matthew Malcomson  <matthew.malcomson@arm.com>
3581         * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
3582         "initial_pass_name" argument -- by running "*clean_state" pass.
3583         Also free the "initial_pass_name" when done.
3585 2019-11-18  Richard Biener  <rguenther@suse.de>
3587         PR rtl-optimization/92462
3588         * alias.c (find_base_term): Restrict the look through ANDs.
3589         (find_base_value): Likewise.
3591 2019-11-18  Georg-Johann Lay  <avr@gjlay.de>
3593         Add support for AVR devices from the 0-series.
3595         PR target/92545
3596         * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
3597         * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
3598         * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
3599         * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
3600         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3601         <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
3602         for spec definitions.
3603         * doc/avr-mmcu.texi: Regenerate.
3605 2019-11-18  Hongtao Liu  <hongtao.liu@intel.com>
3607         PR target/92448
3608         * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
3609         Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
3610         * config/i386/i386-option.c (ix86_vec_cost): Ditto.
3611         (ix86_reassociation_width): Ditto.
3612         * config/i386/i386-options.c (ix86_option_override_internal):
3613         Replace TARGET_AVX128_OPTIAML with
3614         ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
3615         * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
3616         (TARGET_AVX128_OPTIMAL): Deleted.
3617         * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
3618         DEF_TUNE.
3620 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3622         * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
3623         (@cceq_ior_compare_<mode> for GPR): ... this.  Allow GPR instead of
3624         just SI.
3625         (cceq_rev_compare): Rename to...
3626         (@cceq_rev_compare_<mode> for GPR): ... this.  Allow GPR instead of
3627         just SI.
3628         (define_split for <bd>tf_<mode>): Add SImode first argument to
3629         gen_cceq_ior_compare.
3631 2019-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3633         * common/config/powerpcspe: Delete.
3635 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3637         * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
3638         output in UNSPEC_WRFFR.
3640 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3642         * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
3643         the index tests to have the form (unsigned T) (B - A + bias) <= limit.
3645 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3647         * tree-data-ref.c (create_intersect_range_checks_index)
3648         (create_intersect_range_checks): Print dump messages.
3650 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3652         * tree-data-ref.c (dump_alias_pair): New function.
3653         (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
3655 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3657         * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
3658         * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
3659         merging data references with different steps.
3660         (create_intersect_range_checks_index): Take a
3661         dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
3662         Bail out if DR_ALIAS_MIXED_STEPS is set.
3663         (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
3664         instead of two dr_with_seg_lens.  Update call to
3665         create_intersect_range_checks_index.
3666         (create_runtime_alias_checks): Update call accordingly.
3668 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3670         * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
3671         (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
3672         (dr_with_seg_len_pair_t::sequencing): New enum.
3673         (dr_with_seg_len_pair_t::flags): New member variable.
3674         (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
3675         parameter and initialize the flags member variable.
3676         * tree-loop-distribution.c (compute_alias_check_pairs): Update
3677         call accordingly.
3678         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3679         Ensure the two data references in an alias pair are in statement
3680         order, if there is a defined order.
3681         * tree-data-ref.c (prune_runtime_alias_test_list): Use
3682         DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
3683         swapped the references in a dr_with_seg_len_pair_t.  OR together
3684         the flags when merging two dr_with_seg_len_pair_ts.  After merging,
3685         try to restore the original dr_with_seg_len order, updating the
3686         flags if that fails.
3688 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3690         * tree-data-ref.c (prune_runtime_alias_test_list): Delay
3691         swapping the dr_as based on init values until we've decided
3692         whether to merge them.
3694 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3696         * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
3697         two accesses in each dr_with_seg_len_pair_t before trying to
3698         combine separate dr_with_seg_len_pair_ts.
3699         * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
3700         that here.
3701         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3703 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3705         * config/aarch64/aarch64-sve.md
3706         (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3707         (scatter_store<SVE_24:mode><v_int_container>): ...this.
3708         (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3709         (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
3710         (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3711         (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
3712         (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
3713         pattern.
3714         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3715         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3716         (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3717         (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3719 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3721         * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
3722         (SVE_4HSI): New mode iterators.
3723         (ANY_EXTEND2): New code iterator.
3724         * config/aarch64/aarch64-sve.md
3725         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
3726         Extend to...
3727         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
3728         ...this, handling extension to partial modes as well as full modes.
3729         Describe the extension as a predicated rather than unpredicated
3730         extension.
3731         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3732         Likewise extend to...
3733         (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
3734         ...this, making the same adjustments.
3735         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3736         Likewise extend to...
3737         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
3738         ...this, making the same adjustments.
3739         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3740         Likewise extend to...
3741         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
3742         ...this, making the same adjustments.
3743         (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
3744         New pattern.
3745         (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
3746         extension predicate.
3747         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3748         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3749         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3750         Describe the extension as a predicated rather than unpredicated
3751         extension.
3752         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3753         Likewise.  Canonicalize to a constant extension predicate.
3754         * config/aarch64/aarch64-sve-builtins-base.cc
3755         (svld1_gather_extend_impl::expand): Add an extra predicate for
3756         the extension.
3757         (svldff1_gather_extend_impl::expand): Likewise.
3759 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3761         * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
3762         iterators.
3763         * config/aarch64/aarch64-sve.md
3764         (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3765         (gather_load<SVE_24:mode><v_int_container>): ...this.
3766         (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3767         (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
3768         (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3769         (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
3770         (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
3771         New pattern.
3772         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3773         (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3774         Allow the nominal extension predicate to be different from the
3775         load predicate.
3776         (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3777         (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3779 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3781         * config/aarch64/aarch64-sve.md
3782         (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
3783         * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
3784         function.
3785         (aarch64_sve_adjust_stmt_cost): Call it.
3787 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3789         * config/aarch64/aarch64-sve.md
3790         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
3791         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3792         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3793         Combine into...
3794         (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3795         ...this new pattern, handling extension to partial modes as well
3796         as full modes.  Describe the extension as a predicated rather than
3797         unpredicated extension.
3798         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3799         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3800         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3801         Combine into...
3802         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3803         ...this new pattern, handling extension to partial modes as well
3804         as full modes.  Describe the extension as a predicated rather than
3805         unpredicated extension.
3806         * config/aarch64/aarch64-sve-builtins.cc
3807         (function_expander::use_contiguous_load_insn): Add an extra
3808         predicate for extending loads.
3809         * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3810         (aarch64_sve_adjust_stmt_cost): Likewise.
3811         (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3812         the cost of SVE vector stmts.
3814 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3816         * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3817         (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3818         * config/aarch64/aarch64-sve.md
3819         (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3820         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3821         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3822         comment.  Avoid new narrower_mask ambiguity.
3823         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3824         (*cond_uxt<mode>_2): Update comment.
3825         (*cond_uxt<mode>_any): Likewise.
3827 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3829         * config/aarch64/aarch64-modes.def: Define partial SVE vector
3830         float modes.
3831         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3832         function.
3833         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3834         new vector float modes.
3835         (aarch64_sve_container_bits): New function.
3836         (aarch64_sve_pred_mode): Likewise.
3837         (aarch64_get_mask_mode): Use it.
3838         (aarch64_sve_element_int_mode): Handle structure modes and partial
3839         modes.
3840         (aarch64_sve_container_int_mode): New function.
3841         (aarch64_vectorize_related_mode): Return SVE modes when given
3842         SVE modes.  Handle partial modes, taking the preferred number
3843         of units from the size of the given mode.
3844         (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3845         in registers.
3846         (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3847         (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3848         (aarch64_split_sve_subreg_move): Use the mode form of
3849         aarch64_sve_pred_mode.
3850         (aarch64_secondary_reload): Handle partial modes in the same way
3851         as full big-endian vectors.
3852         (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3853         (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3854         merging with the Advanced SIMD modes.  If two modes have the
3855         same size, try the Advanced SIMD mode first.
3856         (aarch64_simd_valid_immediate): Use the container rather than
3857         the element mode for INDEX constants.
3858         (aarch64_simd_vector_alignment): Make the alignment of partial
3859         SVE vector modes the same as their minimum size.
3860         (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3861         * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3862         (mov<SVE_ALL:mode>): ...this.
3863         (movmisalign<SVE_FULL:mode>): Extend to...
3864         (movmisalign<SVE_ALL:mode>): ...this.
3865         (*aarch64_sve_mov<mode>_le): Rename to...
3866         (*aarch64_sve_mov<mode>_ldr_str): ...this.
3867         (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3868         (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this.  Handle
3869         partial modes regardless of endianness.
3870         (aarch64_sve_reload_be): Rename to...
3871         (aarch64_sve_reload_mem): ...this and enable for little-endian.
3872         Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3873         (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3874         (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3875         (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3876         (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3877         (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3878         (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3879         (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3880         (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3881         (maskload<SVE_FULL:mode><vpred>): Extend to...
3882         (maskload<SVE_ALL:mode><vpred>): ...this.
3883         (maskstore<SVE_FULL:mode><vpred>): Extend to...
3884         (maskstore<SVE_ALL:mode><vpred>): ...this.
3885         (vec_duplicate<SVE_FULL:mode>): Extend to...
3886         (vec_duplicate<SVE_ALL:mode>): ...this.
3887         (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3888         (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3889         (sve_ld1r<SVE_FULL:mode>): Extend to...
3890         (sve_ld1r<SVE_ALL:mode>): ...this.
3891         (vec_series<SVE_FULL_I:mode>): Extend to...
3892         (vec_series<SVE_I:mode>): ...this.
3893         (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3894         (*vec_series<SVE_I:mode>_plus): ...this.
3895         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3896         new VPRED ambiguity.
3897         (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3898         (add<SVE_FULL_I:mode>3): Extend to...
3899         (add<SVE_I:mode>3): ...this.
3900         * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3901         (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3902         (VPRED, vpred): Likewise.
3903         (Vctype): New iterator.
3904         (vw): Remove SVE modes.
3906 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3908         * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3909         (SVE_PARTIAL_I): ...this.
3910         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3912 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3914         * config/aarch64/iterators.md (SVE_ALL): Rename to...
3915         (SVE_FULL): ...this.
3916         (SVE_I): Rename to...
3917         (SVE_FULL_I): ...this.
3918         (SVE_F): Rename to...
3919         (SVE_FULL_F): ...this.
3920         (SVE_BHSI): Rename to...
3921         (SVE_FULL_BHSI): ...this.
3922         (SVE_HSD): Rename to...
3923         (SVE_FULL_HSD): ...this.
3924         (SVE_HSDI): Rename to...
3925         (SVE_FULL_HSDI): ...this.
3926         (SVE_HSF): Rename to...
3927         (SVE_FULL_HSF): ...this.
3928         (SVE_SD): Rename to...
3929         (SVE_FULL_SD): ...this.
3930         (SVE_SDI): Rename to...
3931         (SVE_FULL_SDI): ...this.
3932         (SVE_SDF): Rename to...
3933         (SVE_FULL_SDF): ...this.
3934         (SVE_S): Rename to...
3935         (SVE_FULL_S): ...this.
3936         (SVE_D): Rename to...
3937         (SVE_FULL_D): ...this.
3938         * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3939         * config/aarch64/aarch64-sve2.md: Likewise.
3941 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3943         * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3944         New option.
3945         * doc/invoke.texi: Document it.
3946         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3947         By default, return VECT_COMPARE_COSTS for SVE.
3949 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3951         * target.h (VECT_COMPARE_COSTS): New constant.
3952         * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3953         * doc/tm.texi: Regenerate.
3954         * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3955         * targhooks.c (default_autovectorize_vector_modes): Likewise.
3956         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3957         Likewise.
3958         * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3959         * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3960         * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3961         * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3962         * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3963         (_loop_vec_info::vec_inside_cost): New member variables.
3964         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3965         (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3966         (vect_analyze_loop): When autovectorize_vector_modes returns
3967         VECT_COMPARE_COSTS, try vectorizing the loop with each available
3968         vector mode and picking the one with the lowest cost.
3969         (vect_estimate_min_profitable_iters): Record the computed costs
3970         in the loop_vec_info.
3972 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3974         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3975         element type rather than an element mode.
3976         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3977         Use get_vectype_for_scalar_type to query the natural types
3978         for a given element type rather than basing everything on
3979         GET_MODE_SIZE (vinfo->vector_mode).  Limit int_mode_for_size
3980         query to MAX_FIXED_MODE_SIZE.
3981         (duplicate_and_interleave): Update call accordingly.
3982         * tree-vect-loop.c (vectorizable_reduction): Likewise.
3984 2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3986         * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3987         optional maximum nunits.
3988         (get_vectype_for_scalar_type): Likewise.  Also declare a form that
3989         takes an slp_tree.
3990         (get_mask_type_for_scalar_type): Take an optional slp_tree.
3991         (vect_get_mask_type_for_stmt): Likewise.
3992         * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3993         the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3994         * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3995         vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3996         to get an assumed vector type for data references.
3997         * tree-vect-slp.c (vect_update_shared_vectype): New function.
3998         (vect_update_all_shared_vectypes): Likewise.
3999         (vect_build_slp_tree_1): Pass the group size to
4000         vect_get_vector_types_for_stmt.  Use vect_update_shared_vectype
4001         for BB vectorization.
4002         (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
4003         before building the vectof from scalars.
4004         (vect_analyze_slp_instance): Pass the group size to
4005         get_vectype_for_scalar_type.
4006         (vect_slp_analyze_node_operations_1): Don't recompute the vector
4007         types for BB vectorization here; just handle the case in which
4008         we deferred the choice for booleans.
4009         (vect_get_constant_vectors): Pass the slp_tree to
4010         get_vectype_for_scalar_type.
4011         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
4012         (vectorizable_call): Likewise.
4013         (vectorizable_simd_clone_call): Likewise.
4014         (vectorizable_conversion): Likewise.
4015         (vectorizable_shift): Likewise.
4016         (vectorizable_operation): Likewise.
4017         (vectorizable_comparison): Likewise.
4018         (vect_is_simple_cond): Take the slp_tree as argument and
4019         pass it to get_vectype_for_scalar_type.
4020         (vectorizable_condition): Update call accordingly.
4021         (get_vectype_for_scalar_type): Take a group_size argument.
4022         For BB vectorization, limit the the vector to that number
4023         of elements.  Also define an overload that takes an slp_tree.
4024         (get_mask_type_for_scalar_type): Add an slp_tree argument and
4025         pass it to get_vectype_for_scalar_type.
4026         (vect_get_vector_types_for_stmt): Add a group_size argument
4027         and pass it to get_vectype_for_scalar_type.  Don't use the
4028         cached vector type for BB vectorization if a group size is given.
4029         Handle data references in that case.
4030         (vect_get_mask_type_for_stmt): Take an slp_tree argument and
4031         pass it to get_mask_type_for_scalar_type.
4033 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
4035         * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
4036         parameter.
4037         (estimate_edge_time): Use it.
4038         * ipa-inline-analysis.c (do_estimate_edge_time): Add
4039         ret_nonspec_time parameter.
4041 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4043         * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
4045 2019-11-15  Nick Clifton  <nickc@redhat.com>
4046             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4048         PR target/65649
4049         * config/microblaze/microblaze.c (print_operand): Print value as long.
4051 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
4053         * ipa-inline.c (edge_badness, inline_small_functions): Revert
4054         accidental commit.
4056 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4058         * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
4059         (CALL_USED_REGISTERS): Make frame pointer callee-saved.
4061 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4063         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
4064         (gcn_conditional_register_usage): Use constants in place of hard-coded
4065         values.
4066         (gcn_hsa_declare_function_name): Set lower bound for number of
4067         SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
4068         MAX_NORMAL_VGPR_COUNT.
4070 2019-11-15  Martin Jambor  <mjambor@suse.cz>
4072         * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
4073         declaration.
4075 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4077         * config/gcn/gcn.c (default_requested_args): New.
4078         (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
4079         set with default_requested_args.
4080         (gcn_conditional_register_usage): Limit register usage of non-kernel
4081         functions.  Reassign fixed registers if a non-standard set of args is
4082         requested.
4083         * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
4085 2019-11-15  Feng Xue  <fxue@os.amperecomputing.com>
4087         PR ipa/92528
4088         * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
4089         aggregate jump function when inlined-to caller has no edge summary.
4091 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4093         * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
4095 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4097         * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
4098         prologue use of v0.
4099         (print_operand_address): Use v1 for zero vector offset.
4101 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
4103         PR tree-optimization/92515
4104         * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
4105         types when converting a vector/scalar shift into a vector/vector one,
4106         using tree_nop_conversion_p instead of useless_type_conversion_p.
4107         Move the conversion code to the transform block.
4109 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
4111         * read-rtl-function.c
4112         (function_reader::add_fixup_source_location): Take additional
4113         parameter of a column.
4114         (function_reader::maybe_read_location): Optionally parse column
4115         information and pass to add_fixup_source_location.
4117 2019-11-15  Richard Biener  <rguenther@suse.de>
4119         PR tree-optimization/92512
4120         * tree-vect-loop.c (check_reduction_path): Fix operand index
4121         computability check.  Add check for second use in COND_EXPRs.
4123 2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>
4125         PR target/92515
4126         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
4127         VIEW_CONVERT_EXPR to reinterpret vectors as different types.
4129 2019-11-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
4131         * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
4132         register class for VCC_LO and VCC_HI.
4133         (gcn_spill_class): Use SGPR_REGS to spill registers in
4134         VCC_CONDITIONAL_REG.
4136 2019-11-15  Richard Biener  <rguenther@suse.de>
4138         PR tree-optimization/92324
4139         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4140         singedness of SLP reduction epilouge operations.  Also reduce
4141         the vector width for SLP reductions before doing elementwise
4142         operations if possible.
4144 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
4146         * passes.c (skip_pass): Set epilogue_completed if skipping the
4147         pro_and_epilogue pass.
4149 2019-11-15  Matthew Malcomson  <matthew.malcomson@arm.com>
4151         * passes.c (should_skip_pass_p): Always run "dfinish".
4153 2019-11-15  Richard Biener  <rguenther@suse.de>
4155         * ipa-inline.c (inline_small_functions): Move assignment
4156         to next before call destroying edge.
4158 2019-11-15  Richard Biener  <rguenther@suse.de>
4160         PR tree-optimization/92039
4161         PR tree-optimization/91975
4162         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
4163         previous change, treat invariants consistently as non-constant.
4164         (tree_estimate_loop_size): Ternary ops with just the first op
4165         constant are not optimized away.
4167 2019-11-15  Jakub Jelinek  <jakub@redhat.com>
4169         * gimplify.c (gimplify_call_expr): Don't call
4170         omp_resolve_declare_variant after gimplification.
4171         * omp-general.c (omp_context_selector_matches): For isa that might
4172         match in some other function, defer if in declare simd function.
4173         (omp_context_compute_score): Don't look for " score" in construct
4174         trait set.  Set *score to -1 if it can't ever match.
4175         (omp_resolve_declare_variant): If any variants need to be deferred,
4176         don't punt immediately, but compute scores of all variants and if
4177         ther eis a score winner that doesn't need to be deferred, return that.
4179 2019-11-15  Luo Xiong Hu  <luoxhu@linux.ibm.com>
4181         * ipa-comdats.c: Fix comments typo.
4182         * ipa-profile.c: Fix comments typo.
4183         * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
4184         __gcov_indirect_call.counters and __gcov_indirect_call.callee.
4185         (gimple_gen_ic_func_profiler): Likewise.
4186         (pass_ipa_tree_profile::gate): Fix comments typo.
4188 2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>
4190         * ipa-inline.c (inline_small_functions): Update iterator of next.
4192 2019-11-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4194         * lra-spills.c (assign_spill_hard_regs): Check that the spill
4195         register is suitable for the mode.
4197 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
4199         * range-op.h (range_operator::fold_range): Return a bool.
4200         * range-op.cc (range_operator::wi_fold): Assert supported type.
4201         (range_operator::fold_range): Assert supported type and return true.
4202         (operator_equal::fold_range): Return true.
4203         (operator_not_equal::fold_range): Same.
4204         (operator_lt::fold_range): Same.
4205         (operator_le::fold_range): Same.
4206         (operator_gt::fold_range): Same.
4207         (operator_ge::fold_range): Same.
4208         (operator_plus::op1_range): Adjust call to fold_range.
4209         (operator_plus::op2_range): Same.
4210         (operator_minus::op1_range): Same.
4211         (operator_minus::op2_range): Same.
4212         (operator_exact_divide::op1_range): Same.
4213         (operator_lshift::fold_range): Return true and adjust fold_range call.
4214         (operator_rshift::fold_range): Same.
4215         (operator_cast::fold_range): Return true.
4216         (operator_logical_and::fold_range): Same.
4217         (operator_logical_or::fold_range): Same.
4218         (operator_logical_not::fold_range): Same.
4219         (operator_bitwise_not::fold_range): Adjust call to fold_range.
4220         (operator_bitwise_not::op1_range): Same.
4221         (operator_cst::fold_range): Return true.
4222         (operator_identity::fold_range): Return true.
4223         (operator_negate::fold_range): Return true and adjust fold_range call.
4224         (operator_addr_expr::fold_range): Return true.
4225         (operator_addr_expr::op1_range): Adjust call to fold_range.
4226         (range_cast): Same.
4227         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
4228         (range_fold_unary_symbolics_p): Same.
4230 2019-11-14  Andrew MacLeod  <amacleod@redhat.com>
4232         PR tree-optimization/92506
4233         * range-op.cc (range_operator::fold_range): Start with range undefined.
4234         (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
4235         overflow is varying.
4237 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4239         * range-op.cc (*operator*::*range): Remove calls to
4240         range_intersect, range_invert, and range_union in favor of calling
4241         the in-place API methods.
4242         (range_tests): Same.
4243         * range.cc (range_intersect): Remove.
4244         (range_union): Remove.
4245         (range_invert): Remove.
4246         * range.h (range_intersect): Remove.
4247         (range_union): Remove.
4248         (range_intersect): Remove.
4250 2019-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
4252         PR rtl-optimization/92430
4253         * cfgcleanup.c (pass_jump_after_combine::gate): New function.
4254         (pass_jump_after_combine::execute): Perform jump threading
4255         unconditionally.
4257 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
4258             Doug Rupp <rupp@adacore.com>
4259             Olivier Hainque  <hainque@adacore.com>
4261         * config.gcc: Collapse the arm-vxworks entries into
4262         a single arm-wrs-vxworks7* one, bpabi based.  Update
4263         the default cpu from arm8 to armv7-a
4264         * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
4265         we always use ARM_UNWIND_INFO.
4266         (DWARF2_UNWIND_INFO): Remove redefinition.
4267         (ARM_TARGET2_DWARF_FORMAT): Likewise.
4268         (VXWORKS_PERSONALITY): Define, to "llvm".
4269         (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
4271 2019-11-14  Jerome Lambourg  <lambourg@adacore.com>
4273         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
4274         _VX_CPU instead of CPU and handle arm_arch8.
4276 2019-11-14  Doug Rupp  <rupp@adacore.com>
4277             Olivier Hainque  <hainque@adacore.com>
4278             Jerome Lambourg  <lambourg@adacore.com>
4280         * config.gcc: Handle aarch64*-wrs-vxworks7*.
4281         * config/aarch64/aarch64-vxworks.h: New file.
4282         * config/aarch64/t-aarch64-vxworks: New file.
4284 2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
4285             Olivier Hainque  <hainque@adacore.com>
4287         * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
4288         definition, pointless with a VxWorks specific version
4289         of crtstuff.
4290         (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
4291         * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
4292         New local macros, controlling the addition of vxworks specific
4293         crtstuff objects depending on the EH mechanism and kind of
4294         module being linked.
4295         (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
4297 2019-11-06  Pat Bernardi  <bernardi@adacore.com>
4298             Jerome Lambourg  <lambourg@adacore.com>
4299             Olivier Hainque  <hainque@adacore.com>
4301         * config.gcc: Add comment to introduce the TARGET_VXWORKS
4302         common macro definitions, conveying VXWORKS7 or 64bit general
4303         variations.  Add a block to set gcc_cv_initfini_array
4304         unconditionally to "yes" for VxWorks7.
4305         config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
4306         by default.  Update some comments.
4307         config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
4308         default, to be added the end of VXWORKS_LIBS_RTP.
4309         (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
4310         and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
4311         redefine.
4312         (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
4313         (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
4314         to account for the now available TLS abilities.
4315         (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
4316         (VXWORKS_HAVE_TLS): Likewise.
4318 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4320         * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
4321         (vect_slp_convert_to_external): Likewise.
4322         (vect_slp_analyze_node_operations): If analysis fails, try building
4323         the node from scalars instead.
4325 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4327         * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
4328         between vector types.
4329         * tree-vect-stmts.c (vectorizable_conversion): Extend the
4330         non-widening and non-narrowing path to handle standard
4331         conversion codes, if the target supports them.
4332         * expr.c (convert_move): Try using the extend and truncate optabs
4333         for vectors.
4334         * optabs-tree.c (supportable_convert_operation): Likewise.
4335         * config/aarch64/iterators.md (Vnarroqw): New iterator.
4336         * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
4337         (trunc<mode><Vnarrowq>2): New patterns.
4339 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4341         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
4342         require vectype and nunits_vectype to have the same size;
4343         instead assert that nunits_vectype has at least as many
4344         elements as vectype.  Don't compute a separate nunits_vectype
4345         if the scalar type is obviously the same as vectype's.
4346         Tweak dump messages.
4348 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4350         * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
4351         function.
4352         (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
4353         (TARGET_VECTORIZE_RELATED_MODE): Define.
4355 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4357         * tree-vectorizer.h (vec_info::mode_set): New typedef.
4358         (vec_info::used_vector_mode): New member variable.
4359         (vect_chooses_same_modes_p): Declare.
4360         * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
4361         chosen vector mode in vec_info::used_vector_mode.
4362         (vect_chooses_same_modes_p): New function.
4363         * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
4364         the same vector statements multiple times.
4365         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
4367 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4369         * machmode.h (opt_machine_mode::operator==): New function.
4370         (opt_machine_mode::operator!=): Likewise.
4371         * tree-vectorizer.h (vec_info::vector_mode): Update comment.
4372         (get_related_vectype_for_scalar_type): Delete.
4373         (get_vectype_for_scalar_type_and_size): Declare.
4374         * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
4375         whether analysis passed or failed, and with what vector modes.
4376         Use related_vector_mode to check whether trying a particular
4377         vector mode would be redundant with the autodetected mode,
4378         and print a dump message if we decide to skip it.
4379         * tree-vect-loop.c (vect_analyze_loop): Likewise.
4380         (vect_create_epilog_for_reduction): Use
4381         get_related_vectype_for_scalar_type instead of
4382         get_vectype_for_scalar_type_and_size.
4383         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
4384         with...
4385         (get_related_vectype_for_scalar_type): ...this new function.
4386         Take a starting/"prevailing" vector mode rather than a vector size.
4387         Take an optional nunits argument, with the same meaning as for
4388         related_vector_mode.  Use related_vector_mode when not
4389         auto-detecting a mode, falling back to mode_for_vector if no
4390         target mode exists.
4391         (get_vectype_for_scalar_type): Update accordingly.
4392         (get_same_sized_vectype): Likewise.
4393         * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
4395 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4397         * tree-vect-stmts.c (vectorizable_call): Require the types
4398         to have the same size.
4400 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4402         * tree-vect-stmts.c (vectorizable_call): If an operand is
4403         constant or external, use get_vectype_for_scalar_type
4404         rather than get_same_sized_vectype to get its vector type.
4405         (vectorizable_conversion, vectorizable_shift): Likewise.
4406         (vectorizable_operation): Likewise.
4408 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4410         * tree-vectorizer.h (vec_info::vector_size): Replace with...
4411         (vec_info::vector_mode): ...this new field.
4412         * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
4413         (vect_analyze_loop, vect_transform_loop): Likewise.
4414         * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
4415         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4416         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4417         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4418         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4420 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4422         * target.h (vector_sizes, auto_vector_sizes): Delete.
4423         (vector_modes, auto_vector_modes): New typedefs.
4424         * target.def (autovectorize_vector_sizes): Replace with...
4425         (autovectorize_vector_modes): ...this new hook.
4426         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4427         Replace with...
4428         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
4429         * doc/tm.texi: Regenerate.
4430         * targhooks.h (default_autovectorize_vector_sizes): Delete.
4431         (default_autovectorize_vector_modes): New function.
4432         * targhooks.c (default_autovectorize_vector_sizes): Delete.
4433         (default_autovectorize_vector_modes): New function.
4434         * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
4435         of autovectorize_vector_sizes.  Use the number of units in the mode
4436         to calculate the maximum VF.
4437         * omp-low.c (omp_clause_aligned_alignment): Use
4438         autovectorize_vector_modes instead of autovectorize_vector_sizes.
4439         Use a loop based on related_mode to iterate through all supported
4440         vector modes for a given scalar mode.
4441         * optabs-query.c (can_vec_mask_load_store_p): Use
4442         autovectorize_vector_modes instead of autovectorize_vector_sizes.
4443         * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
4444         * tree-vect-slp.c (vect_slp_bb_region): Likewise.
4445         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
4446         Replace with...
4447         (aarch64_autovectorize_vector_modes): ...this new function.
4448         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4449         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4450         * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
4451         (arc_autovectorize_vector_modes): ...this new function.
4452         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4453         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4454         * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
4455         (arm_autovectorize_vector_modes): ...this new function.
4456         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4457         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4458         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
4459         (ix86_autovectorize_vector_modes): ...this new function.
4460         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4461         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4462         * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
4463         (mips_autovectorize_vector_modes): ...this new function.
4464         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4465         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4467 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4469         * tree-vect-stmts.c (vectorizable_shift): Check the number
4470         of vector elements as well as the type mode when deciding
4471         whether an op1_vectype is compatible.  Reuse the result of
4472         this check when generating vector statements.
4474 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4476         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
4477         targetm.vectorize.preferred_simd_mode returns an integer mode,
4478         use mode_for_vector to decide what the vector type's mode
4479         should actually be.  Use build_vector_type_for_mode instead
4480         of build_vector_type.
4482 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4484         * target.def (get_mask_mode): Take a vector mode itself as argument,
4485         instead of properties about the vector mode.
4486         * doc/tm.texi: Regenerate.
4487         * targhooks.h (default_get_mask_mode): Update to reflect new
4488         get_mode_mask interface.
4489         * targhooks.c (default_get_mask_mode): Likewise.  Use
4490         related_int_vector_mode.
4491         * optabs-query.c (can_vec_mask_load_store_p): Update call
4492         to get_mask_mode.
4493         * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
4494         first that the original mode really is a vector.
4495         * tree.c (build_truth_vector_type_for): Likewise.
4496         * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
4497         get_mode_mask interface.
4498         (aarch64_expand_sve_vcond): Update call accordingly.
4499         * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
4500         get_mode_mask interface.
4501         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
4503 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4505         * tree.h (build_truth_vector_type): Delete.
4506         (build_same_sized_truth_vector_type): Likewise.
4507         * tree.c (build_truth_vector_type): Rename to...
4508         (build_truth_vector_type_for): ...this.  Make static and take
4509         a vector type as argument.
4510         (truth_type_for): Update accordingly.
4511         (build_same_sized_truth_vector_type): Delete.
4512         * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
4513         instead of build_same_sized_truth_vector_type.
4514         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
4515         (vect_record_loop_mask, vect_get_loop_mask): Likewise.
4516         * tree-vect-patterns.c (build_mask_conversion): Likeise.
4517         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4518         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
4519         (vect_build_gather_load_calls, vectorizable_call): Likewise.
4520         (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
4521         (vectorizable_store, vectorizable_condition): Likewise.
4522         (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
4523         (vect_get_mask_type_for_stmt): Use truth_type_for instead of
4524         build_truth_vector_type.
4525         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
4526         Use truth_type_for instead of build_same_sized_truth_vector_type.
4527         * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
4529 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4531         * tree.h (build_truth_vector_type_for_mode): Declare.
4532         * tree.c (build_truth_vector_type_for_mode): New function,
4533         split out from...
4534         (build_truth_vector_type): ...here.
4535         (build_opaque_vector_type): Fix head comment.
4536         * tree-vectorizer.h (supportable_narrowing_operation): Remove
4537         vec_info parameter.
4538         (vect_halve_mask_nunits): Replace vec_info parameter with the
4539         mode of the new vector.
4540         (vect_double_mask_nunits): Likewise.
4541         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4542         (vect_double_mask_nunits): Likewise.
4543         * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
4544         (vect_maybe_permute_loop_masks): Remove vinfo parameter.  Update call
4545         to vect_halve_mask_nunits, getting the required mode from the unpack
4546         patterns.
4547         (vect_set_loop_condition_masked): Update call accordingly.
4548         * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
4549         parameter and update call to vect_double_mask_nunits.
4550         (vectorizable_conversion): Update call accordingly.
4551         (simple_integer_narrowing): Likewise.  Remove vec_info parameter.
4552         (vectorizable_call): Update call accordingly.
4553         (supportable_widening_operation): Update call to
4554         vect_halve_mask_nunits.
4555         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4556         Use build_truth_vector_type_mode instead of build_truth_vector_type.
4558 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4560         * machmode.h (mode_for_int_vector): Delete.
4561         (related_int_vector_mode): Declare.
4562         * stor-layout.c (mode_for_int_vector): Delete.
4563         (related_int_vector_mode): New function.
4564         * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
4565         instead of mode_for_int_vector.
4566         (expand_vec_perm_const): Likewise.
4567         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
4568         (aarch64_evpc_sve_tbl): Likewise.
4569         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
4570         (s390_expand_vcond): Likewise.
4572 2019-11-14  Richard Sandiford  <richard.sandiford@arm.com>
4574         * target.def (related_mode): New hook.
4575         * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
4576         * doc/tm.texi: Regenerate.
4577         * targhooks.h (default_vectorize_related_mode): Declare.
4578         * targhooks.c (default_vectorize_related_mode): New function.
4579         * machmode.h (related_vector_mode): Declare.
4580         * stor-layout.c (related_vector_mode): New function.
4581         * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
4582         * optabs-query.c (qimode_for_vec_perm): Likewise.
4583         * tree-vect-stmts.c (get_group_load_store_type): Likewise.
4584         (vectorizable_store, vectorizable_load): Likewise
4586 2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
4588         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
4589         * config/arm/aarch-common.c (arm_md_asm_adjust): New.
4590         * config/arm/arm-c.c (arm_cpu_builtins): Define
4591         __GCC_ASM_FLAG_OUTPUTS__.
4592         * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
4593         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
4594         Define __GCC_ASM_FLAG_OUTPUTS__.
4595         * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
4596         * doc/extend.texi (FlagOutputOperands): Add documentation
4597         for ARM and AArch64.
4599         * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
4600         * config/arm/predicates.md (nz_comparison_operator): Rename
4601         from noov_comparison_operator.
4602         * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
4603         (arm_gen_dicompare_reg): Likewise.
4604         (maybe_get_arm_condition_code): Likewise.
4605         (thumb1_final_prescan_insn): Likewise.
4606         (arm_emit_coreregs_64bit_shift): Likewise.
4607         * config/arm/arm.md (addsi3_compare0): Likewise.
4608         (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
4609         (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
4610         (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
4611         (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
4612         (*mulsi3addsi_compare0_scratch): Likewise.
4613         (*mulsi3addsi_compare0_scratch_v6): Likewise.
4614         (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
4615         (*zeroextractsi_compare0_scratch): Likewise.
4616         (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
4617         (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
4618         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4619         (andsi_not_shiftsi_si_scc): Likewise.
4620         (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
4621         (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
4622         (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
4623         (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
4624         (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
4625         (*notsi_compare0, *notsi_compare0_scratch): Likewise.
4626         (return_addr_mask, *check_arch2): Likewise.
4627         (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
4628         (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
4629         (compare_scc splitters): Likewise.
4630         (movcond_addsi): Likewise.
4631         * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
4632         (*thumb2_addsi3_compare0_scratch): Likewise.
4633         (*thumb2_mulsi_short_compare0): Likewise.
4634         (*thumb2_mulsi_short_compare0_scratch): Likewise.
4635         (compare peephole2s): Likewise.
4636         * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
4637         nz_comparison_operator names.
4638         (cbranchsi4_insn): Likewise.
4640         * config/arm/constraints.md (c): Use cc_register predicate.
4642         * config/aarch64/constraints.md (c): New constraint.
4644 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4646         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
4647         ipa_merge_fn_summary_after_inlining): Micro optimize.
4649 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4651         * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
4653 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
4655         * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4656         (ipa_value_range_from_jfunc): New function.
4657         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
4658         known_value_ranges parameter; use it to evalulate conditions.
4659         (evaluate_properties_for_edge): Compute known value ranges.
4660         (ipa_fn_summary_t::duplicate): Update use of
4661         evaluate_conditions_for_known_args.
4662         (estimate_ipcp_clone_size_and_time): Likewise.
4663         (ipa_merge_fn_summary_after_inlining): Likewise.
4664         * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
4666 2019-11-14  Martin Liska  <mliska@suse.cz>
4668         * ipa-inline.c (want_inline_small_function_p): Use
4669         CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
4670         of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
4672 2019-11-14  Martin Liska  <mliska@suse.cz>
4674         * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
4675         of a callee to get value of the param.
4676         * ipa-inline.c (inline_insns_auto): Use proper
4677         opt_for_fn.
4678         * opts.c (maybe_default_option): Do not overwrite param
4679         value if optimization level does not match.  Note that
4680         params usually have default value set via Init() keyword.
4681         * params.opt: Remove -param=max-inline-insns-auto-O2.
4682         * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
4683         * doc/invoke.texi: Remove documentation of
4684         max-inline-insns-auto-O2.
4686 2019-11-14  Martin Liska  <mliska@suse.cz>
4688         * tree-switch-conversion.c (switch_conversion::switch_conversion):
4689         Do not initialize m_other_count.
4690         (switch_conversion::collect): Do not count m_default_count and
4691         m_other_count as we use frequencies for edges.
4692         * tree-switch-conversion.h: Remove m_default_count and m_other_count.
4694 2019-11-14  Martin Liska  <mliska@suse.cz>
4696         PR other/92329
4697         * doc/invoke.texi: Document -fallocation-dce.
4699 2019-11-14  Martin Liska  <mliska@suse.cz>
4701         PR target/92389
4702         * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
4703         PTA_ICELAKE_CLIENT which is later interited by
4704         PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
4706 2019-11-14  Martin Liska  <mliska@suse.cz>
4708         * ipa-icf.c (sem_item_optimizer::execute): Save
4709         loaded_symbols.
4710         (sem_item_optimizer::parse_nonsingleton_classes):
4711         Return number of loaded symbols.
4712         (sem_item_optimizer::merge_classes): Print
4713         statistics about totally needed symbols.
4714         * ipa-icf.h (parse_nonsingleton_classes): Change return
4715         type.
4716         (merge_classes): Add one argument.
4718 2019-11-14  Martin Liska  <mliska@suse.cz>
4720         * ipa-icf-gimple.c (func_checker::hash_operand): Improve
4721         func_checker::hash_operand by handling of FIELD_DECLs.
4723 2019-11-14  Martin Liska  <mliska@suse.cz>
4725         * ipa-icf-gimple.h (func_checker::func_checker): Add
4726         default constructor.
4727         * ipa-icf.c (sem_function::init): Make operand_equal_p
4728         and hash_operand public.
4729         (sem_item::add_expr): Remove.
4730         (sem_item::add_type): Remove.
4731         (sem_function::hash_stmt): Use m_checker for hashing
4732         of GIMPLE statements.
4733         (sem_function::parse): Init with checker.
4734         (sem_variable::parse): Pass NULL as checker.
4735         (sem_item_optimizer::parse_funcs_and_vars):
4736         Pass checker to ::parse function.
4737         (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
4738         (sem_variable::parse): New function.
4739         (sem_variable::get_hash): Only return computed hash value.
4740         (sem_variable::init): Initialize hash of a variable.
4741         * ipa-icf.h: Remove add_expr, add_type and add func_checker
4742         to couple of functions as a new argument.
4744 2019-11-14  Martin Liska  <mliska@suse.cz>
4746         * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
4747         bail out reason.
4748         (func_checker::compare_gimple_assign): Likewise.
4750 2019-11-14  Jakub Jelinek  <jakub@redhat.com>
4752         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
4753         change sse4.2 to sse4_2 and sse4.1 to sse4.1.
4754         * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
4756         * omp-general.c (omp_context_name_list_prop): New function.
4757         (omp_context_selector_matches): Use it.  Return 0 if it returns
4758         NULL.
4759         (omp_context_selector_props_compare): Allow equivalency of an
4760         identifier and a string literal containing no embedded zeros.
4762 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4764         * range-op.cc (RANGE3): Remove.
4765         (range_tests): Remove all selftest that check for multi-ranges.
4766         Put tests in namespace selftest.
4767         * selftest.h: Move range_tests into namespace selftest.
4768         * value-range.h (class value_range): Unfriend range_tests.
4770 2019-11-14  Aldy Hernandez  <aldyh@redhat.com>
4772         * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4773         normalize_symbolics and normalize_addresses working in place.
4774         (range_fold_unary_symbolics_p): Same.
4775         (range_fold_unary_symbolics_p): Same.
4776         * value-range.cc (num_pairs): Same.
4777         (lower_bound): Same.
4778         (upper_bound): Same.
4779         (contains_p): Same.
4780         (normalize_addresses): Same.
4781         (normalize_symbolics): Same.
4782         * value-range.h (normalize_symbolics): Same.
4783         (normalize_addresses): Same.
4785 2019-11-14  Feng Xue  <fxue@os.amperecomputing.com>
4787         PR ipa/91682
4788         * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
4789         (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
4790         (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
4791         (ipa_agg_jump_function): Remove member function equal_to.
4792         (ipa_agg_jump_function_p): Remove typedef.
4793         (ipa_copy_agg_values, ipa_release_agg_values): New functions.
4794         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
4795         information for aggregate jump function.
4796         (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
4797         record last definition statement.
4798         (load_from_unmodified_param_or_agg): New function.
4799         (ipa_known_agg_contents_list): Add new field type and value, remove
4800         field constant.
4801         (build_agg_jump_func_from_list): Rename parameter const_count to
4802         value_count, build aggregate jump function from ipa_load_agg_data.
4803         (analyze_agg_content_value): New function.
4804         (extract_mem_content): Analyze memory store assignment to prepare
4805         information for aggregate jump function generation.
4806         (determine_known_aggregate_parts): Add new parameter fbi, remove
4807         parameter aa_walk_budeget_p.
4808         (update_jump_functions_after_inlining): Update aggregate jump function.
4809         (ipa_find_agg_cst_for_param): Change type of parameter agg.
4810         (try_make_edge_direct_simple_call): Add new parameter new_root.
4811         (try_make_edge_direct_virtual_call): Add new parameter new_root and
4812         new_root_info.
4813         (update_indirect_edges_after_inlining): Pass new argument to
4814         try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4815         (ipa_write_jump_function): Write aggregate jump function to file.
4816         (ipa_read_jump_function): Read aggregate jump function from file.
4817         (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4818         * ipa-cp.c (ipa_get_jf_arith_result): New function.
4819         (ipa_agg_value_from_node): Likewise.
4820         (ipa_agg_value_set_from_jfunc): Likewise.
4821         (propagate_vals_across_arith_jfunc): Likewise.
4822         (propagate_aggregate_lattice): Likewise.
4823         (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4824         (propagate_vals_across_pass_through): Call
4825         propagate_vals_across_arith_jfunc.
4826         (get_clone_agg_value): Move forward.
4827         (propagate_aggs_across_jump_function): Handle value propagation for
4828         aggregate jump function.
4829         (agg_jmp_p_vec_for_t_vec): Remove.
4830         (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4831         with vec<ipa_agg_value>.
4832         (copy_plats_to_inter, intersect_with_plats): Likewise.
4833         (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4834         (intersect_aggregate_with_edge): Likewise.
4835         (find_aggregate_values_for_callers_subset): Likewise.
4836         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4837         (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4838         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4839         (gather_context_independent_values): Likewise.
4840         (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4841         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4842         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4843         (evaluate_properties_for_edge): Likewise.
4844         (estimate_edge_devirt_benefit): Likewise.
4845         (estimate_edge_size_and_time):  Likewise.
4846         (estimate_calls_size_and_time): Likewise.
4847         (ipa_call_context::ipa_call_context): Likewise.
4848         (estimate_ipcp_clone_size_and_time):  Likewise.
4849         * ipa-fnsummary.h (ipa_call_context): Replace
4850         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4851         * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4852         vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4853         (do_estimate_edge_size): Likewise.
4854         (do_estimate_edge_hints): Likewise.
4856 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4858         * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4859         binary operations.
4861 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4863         * ipa-profile.c (check_argument_count): Check properly that e_info
4864         is non-NULL; do not check descriptors.
4866 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4868         * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4869         check for ipa profiles.
4871 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4873         PR c++/92421
4874         * ipa-prop.c (update_indirect_edges_after_inlining):
4875         Mark parameter as used.
4876         * ipa-inline.c (recursive_inlining): Reset node cache
4877         after inlining.
4878         (inline_small_functions): Remove checking ifdef.
4879         * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4880         cache consistency.
4882 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4884         PR ipa/92498
4885         * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4886         is NULL.
4887         (ipa_profile): Fix reversed test.
4889 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4891         * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4892         (propagate_constants_topo): Fix typo.
4894 2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4896         * Makefile.in (OBJS): Add value-range.o.
4897         (GTFILES): Add value-range.h.
4898         * gengtype.c (open_base_files): Add value-range.h to list of
4899         header files.
4900         * tree-vrp.c: Move the following value_range related functions:
4901         ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4902         constant_p, set_undefined, set_varying, may_contain_p,
4903         singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4904         vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4905         set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4906         value_inside_range, ranges_from_anti_range, union_ranges,
4907         intersect_ranges, intersect_helper, union_helper, union_,
4908         normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4909         upper_bound, contains_p, invert, intersect...
4910         * value-range.cc: ...to here.
4911         * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4912         associated inline methods from here...
4913         * value-range.h: ...to here.
4915 2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
4917         * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4918         instead of asserting its value.
4920 (2019-11-13  Aldy Hernandez  <aldyh@redhat.com>
4922         * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4923         constructors and set methods so value_range_kind is the last
4924         argument and defaults to VR_RANGE.
4925         * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4926         * ipa-cp.c (propagate_vr_across_jump_function): Same.
4927         * ipa-prop.c (ipa_get_value_range): Same.
4928         (ipa_compute_jump_functions_for_edge): Same.
4929         * range-op.cc (value_range_from_overflowed_bounds): Same.
4930         (operator_cast::op1_range): Same.
4931         (range_tests): Same.
4932         * range.cc (range_nonzero): Same.
4933         * tree-ssanames.c (get_range_info): Same.
4934         * tree-vrp.c (value_range_equiv::set): Same.
4935         (value_range::value_range): Same.
4936         (value_range_equiv::value_range_equiv): Same.
4937         (value_range_equiv::update): Same.
4938         (value_range_equiv::deep_copy): Same.
4939         (value_range_equiv::move): Same.
4940         (value_range_equiv::set_undefined): Same.
4941         (value_range::set): Same.
4942         (value_range::set_nonzero): Same.
4943         (ranges_from_anti_range): Same.
4944         (extract_range_from_plus_minus_expr): Same.
4945         (value_range::intersect_helper): Same.
4946         (value_range_equiv::intersect): Same.
4947         (value_range::union_helper): Same.
4948         (value_range_equiv::union_): Same.
4949         (value_range::normalize_symbolics): Same.
4950         (value_range::invert): Same.
4951         (determine_value_range_1): Same.
4952         * tree-vrp.h (class value_range): Same.
4953         (class value_range_equiv): Same.
4954         * vr-values.c (set_value_range_to_nonnegative): Same.
4955         (set_value_range_to_truthvalue): Same.
4956         (vr_values::update_value_range): Same.
4957         (vr_values::extract_range_for_var_from_comparison_expr): Same.
4958         (vr_values::extract_range_from_binary_expr): Same.
4959         (vr_values::extract_range_from_comparison): Same.
4960         (vr_values::extract_range_basic): Same.
4961         (vr_values::adjust_range_with_scev): Same.
4962         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4963         (vr_values::extract_range_from_phi_node): Same.
4965 2019-11-13  Ulrich Drepper  <drepper@redhat.com>
4967         * tree-dump.c (dequeue_and_dump): Print first tree operand
4968         for VIEW_CONVERT_EXPR.
4970 2019-11-13  Joseph Myers  <joseph@codesourcery.com>
4972         * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4973         DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4974         * real.c (get_max_float): Add norm_max argument.
4975         * real.h (get_max_float): Update prototype.
4976         * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4977         get_max_float.
4979 2019-11-13  Martin Liska  <mliska@suse.cz>
4981         * dbgcnt.c (test_sorted_dbg_counters): New.
4982         (dbgcnt_c_tests): Likewise.
4983         * selftest-run-tests.c (selftest::run_tests): Likewise.
4984         * selftest.h (dbgcnt_c_tests): Likewise.
4986 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
4987             Martin Jambor  <mjambor@suse.cz>
4989         PR ipa/92454
4990         * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4991         (identify_dead_nodes): Likewise.
4993 2019-11-13  Martin Liska  <mliska@suse.cz>
4995         * ipa-icf.c (sem_function::equals_private): Do not overuse
4996         push/pop_cfun functions.
4998 2019-11-13  Martin Liska  <mliska@suse.cz>
5000         * common.opt: Document change of -fdbg-cnt option.
5001         * dbgcnt.c (DEBUG_COUNTER): Remove.
5002         (dbg_cnt_is_enabled): Remove.
5003         (dbg_cnt): Work with new intervals.
5004         (dbg_cnt_set_limit_by_index): Set to new
5005         list of intervals.
5006         (dbg_cnt_set_limit_by_name): Likewise.
5007         (dbg_cnt_process_single_pair): Process new format.
5008         (dbg_cnt_process_opt): Likewise.
5009         (dbg_cnt_list_all_counters): Likewise.
5010         * doc/invoke.texi: Document change of -fdbg-cnt option.
5011         (cmp_tuples): New.
5013 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
5015         * ipa-inline.c (ipa_inline): Check that function is defined before
5016         flattening.
5018 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5019             Julian Brown  <julian@codesourcery.com>
5021         * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
5022         flag_worker_partitioning is not set.
5023         (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
5024         * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
5026 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5028         * config/gcn/gcn-run.c (heap_region): New global variable.
5029         (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
5030         (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
5031         (get_kernarg_region): Move contents to ....
5032         (get_memory_region): .... here.
5033         (get_heap_region): New function.
5034         (init_device): Initialize the heap_region.
5035         (device_malloc): Add region parameter.
5036         (struct kernargs): Move heap ....
5037         (heap): ... to global scope.
5038         (main): Allocate heap separate to kernargs.
5040 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
5042         * ipa-prop.c (ipa_print_node_jump_functions,
5043         ipa_print_node_params): Print info about missing summaries.
5045 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5047         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
5048         the cost of generating loop masks.
5050 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5052         * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
5053         New function.
5054         * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
5055         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5056         (vect_transform_loop): Likewise.
5057         (vect_analyze_loop_costing): Don't take the cost of versioning
5058         into account for the static profitability threshold if it turns
5059         out that no versioning is needed.
5061 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
5063         * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
5064         and target_option_default_node to get -fprofile-generate ctors working
5065         right with LTO.
5067 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5069         * tree-vectorizer.h (vect_nop_conversion_p): Declare.
5070         * tree-vect-stmts.c (vect_nop_conversion_p): New function.
5071         (vectorizable_assignment): Don't add a cost for nop conversions.
5072         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5073         Likewise.
5074         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
5076 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5078         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
5079         number of ncopies as an additional argument.
5080         (vectorizable_conversion): Update call accordingly.  Use "modifier"
5081         to check whether a conversion is between vectors with the same
5082         numbers of units.
5084 2019-11-13  Richard Sandiford  <richard.sandiford@arm.com>
5086         * config/aarch64/aarch64-sve-builtins-functions.h
5087         (unary_count::expand): Use aarch64_sve_int_mode instead of
5088         mode_for_int_vector.
5090 2019-11-13  Martin Liska  <mliska@suse.cz>
5092         * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
5094 2019-11-13  Martin Liska  <mliska@suse.cz>
5096         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
5097         Remove call to finalize_options_struct.
5099 2019-11-13  Georg-Johann Lay  <avr@gjlay.de>
5101         PR target/92055
5102         * config/avr/t-avr (avr-mcus): Do not depend on
5103         $(srcdir)/config/avr/t-multilib.
5105 2019-11-13  Richard Biener  <rguenther@suse.de>
5107         PR tree-optimization/92473
5108         * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
5109         direct optab reduction in the correct type.
5111 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
5113         * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
5114         hexadecimal literal.
5116 2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
5118         * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
5119         UNORDERED if !HONOR_NANS (DFmode).
5120         (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
5121         if !HONOR_NANS (<MODE>mode).
5123 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
5125         * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
5126         (ipcp_verify_propagated_values): Likewise.
5127         (propagate_constants_across_call): Likewise.
5128         (propagate_constants_topo): Likewise.
5129         (ipcp_propagate_stage): Likewise.
5131 2019-11-12  Jan Hubicka  <hubicka@ucw.cz>
5133         PR ipa/92471
5134         * ipa-profile.c (check_argument_count): Break out from ...;
5135         watch for missing summaries.
5136         (ipa_profile): Here.
5138 2019-11-12  Martin Sebor  <msebor@redhat.com>
5140         PR tree-optimization/92412
5141         * targhooks.c (default_ref_may_alias_errno): Errono can only alias
5142         extern variables.
5144 2019-11-12  Martin Sebor  <msebor@redhat.com>
5146         PR middle-end/83688
5147         * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
5148         (directive::argno): New member.
5149         (format_result::aliases, format_result::alias_count): New data members.
5150         (format_result::append_alias): New member function.
5151         (fmtresult::dst_offset): New data member.
5152         (pass_sprintf_length::call_info::dst_origin): New data member.
5153         (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
5154         (char_type_p, array_elt_at_offset, field_at_offset): New functions.
5155         (get_origin_and_offset): Same.
5156         (format_string): Call it.
5157         (format_directive): Call append_alias and set directive argument
5158         number.
5159         (maybe_warn_overlap): New function.
5160         (pass_sprintf_length::compute_format_length): Call it.
5161         (pass_sprintf_length::handle_gimple_call): Initialize new members.
5162         * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
5164 2019-11-12  Ilya Leoshkevich  <iii@linux.ibm.com>
5166         PR rtl-optimization/92430
5167         * cfgcleanup.c (pass_jump_after_combine::execute): Free
5168         dominance info at the beginning.
5170 2019-11-12  Richard Biener  <rguenther@suse.de>
5172         PR tree-optimization/92460
5173         * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
5174         expression before gimplifying.
5176 2019-11-12  Richard Biener  <rguenther@suse.de>
5178         PR tree-optimization/92461
5179         * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
5180         stmt after propagation.
5182 2019-11-12  Martin Liska  <mliska@suse.cz>
5184         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
5185         Use SET_OPTION_IF_UNSET.
5186         (ix86_option_override_internal): Likewise.
5187         * opts.c (default_options_optimization): Likewise.
5188         (finish_options): Likewise.
5189         (enable_fdo_optimizations): Likewise.
5190         (common_handle_option): Likewise.
5192 2019-11-12  Martin Liska  <mliska@suse.cz>
5194         * common/common-target.def: Remove option_validate_param and
5195         option_default_params.
5196         * common/common-targhooks.c (default_option_validate_param):
5197         Remove.
5198         * common/common-targhooks.h (default_option_validate_param):
5199         Remove.
5200         * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
5201         Remove usage of this.
5202         (TARGET_OPTION_VALIDATE_PARAM): Likewise.
5203         (aarch64_option_validate_param): Likewise.
5204         (aarch64_option_default_params): Likewise
5205         * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
5206         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5207         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
5208         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5209         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
5210         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5211         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
5212         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5213         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
5214         (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5215         * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
5216         guard_size here.
5217         * doc/tm.texi: Remove option_default_params and option_validate_param.
5218         * doc/tm.texi.in: Likewise.
5220 2019-11-12  Martin Liska  <mliska@suse.cz>
5222         * common/common-target.def:
5223         Do not mention set_default_param_value
5224         and set_param_value.
5225         * doc/tm.texi: Likewise.
5227 2019-11-12  Martin Liska  <mliska@suse.cz>
5229         * common.opt: Remove param_values.
5230         * config/i386/i386-options.c (ix86_valid_target_attribute_p):
5231         Remove finalize_options_struct.
5232         * gcc.c (driver::decode_argv): Do not call global_init_params
5233         and finish_params.
5234         (driver::finalize): Do not call params_c_finalize
5235         and finalize_options_struct.
5236         * opt-suggestions.c (option_proposer::get_completions): Remove
5237         special casing of params.
5238         (option_proposer::find_param_completions): Remove.
5239         (test_completion_partial_match): Update expected output.
5240         * opt-suggestions.h: Remove find_param_completions.
5241         * opts-common.c (add_misspelling_candidates): Add
5242         --param with a space.
5243         * opts.c (handle_param): Remove.
5244         (init_options_struct):. Remove init_options_struct and
5245         similar calls.
5246         (finalize_options_struct): Remove.
5247         (common_handle_option): Use SET_OPTION_IF_UNSET.
5248         * opts.h (finalize_options_struct): Remove.
5249         * toplev.c (general_init): Do not call global_init_params.
5250         (toplev::finalize): Do not call params_c_finalize and
5251         finalize_options_struct.
5253 2019-11-12  Martin Liska  <mliska@suse.cz>
5255         * Makefile.in: Remove PARAMS_H and params.list
5256         and params.options.
5257         * params-enum.h: Remove.
5258         * params-list.h: Remove.
5259         * params-options.h: Remove.
5260         * params.c: Remove.
5261         * params.def: Remove.
5262         * params.h: Remove.
5263         * asan.c: Do not include params.h.
5264         * auto-profile.c: Likewise.
5265         * bb-reorder.c: Likewise.
5266         * builtins.c: Likewise.
5267         * cfgcleanup.c: Likewise.
5268         * cfgexpand.c: Likewise.
5269         * cfgloopanal.c: Likewise.
5270         * cgraph.c: Likewise.
5271         * combine.c: Likewise.
5272         * common/config/aarch64/aarch64-common.c: Likewise.
5273         * common/config/gcn/gcn-common.c: Likewise.
5274         * common/config/ia64/ia64-common.c: Likewise.
5275         * common/config/powerpcspe/powerpcspe-common.c: Likewise.
5276         * common/config/rs6000/rs6000-common.c: Likewise.
5277         * common/config/sh/sh-common.c: Likewise.
5278         * config/aarch64/aarch64.c: Likewise.
5279         * config/alpha/alpha.c: Likewise.
5280         * config/arm/arm.c: Likewise.
5281         * config/avr/avr.c: Likewise.
5282         * config/csky/csky.c: Likewise.
5283         * config/i386/i386-builtins.c: Likewise.
5284         * config/i386/i386-expand.c: Likewise.
5285         * config/i386/i386-features.c: Likewise.
5286         * config/i386/i386-options.c: Likewise.
5287         * config/i386/i386.c: Likewise.
5288         * config/ia64/ia64.c: Likewise.
5289         * config/rs6000/rs6000-logue.c: Likewise.
5290         * config/rs6000/rs6000.c: Likewise.
5291         * config/s390/s390.c: Likewise.
5292         * config/sparc/sparc.c: Likewise.
5293         * config/visium/visium.c: Likewise.
5294         * coverage.c: Likewise.
5295         * cprop.c: Likewise.
5296         * cse.c: Likewise.
5297         * cselib.c: Likewise.
5298         * dse.c: Likewise.
5299         * emit-rtl.c: Likewise.
5300         * explow.c: Likewise.
5301         * final.c: Likewise.
5302         * fold-const.c: Likewise.
5303         * gcc.c: Likewise.
5304         * gcse.c: Likewise.
5305         * ggc-common.c: Likewise.
5306         * ggc-page.c: Likewise.
5307         * gimple-loop-interchange.cc: Likewise.
5308         * gimple-loop-jam.c: Likewise.
5309         * gimple-loop-versioning.cc: Likewise.
5310         * gimple-ssa-split-paths.c: Likewise.
5311         * gimple-ssa-sprintf.c: Likewise.
5312         * gimple-ssa-store-merging.c: Likewise.
5313         * gimple-ssa-strength-reduction.c: Likewise.
5314         * gimple-ssa-warn-alloca.c: Likewise.
5315         * gimple-ssa-warn-restrict.c: Likewise.
5316         * graphite-isl-ast-to-gimple.c: Likewise.
5317         * graphite-optimize-isl.c: Likewise.
5318         * graphite-scop-detection.c: Likewise.
5319         * graphite-sese-to-poly.c: Likewise.
5320         * graphite.c: Likewise.
5321         * haifa-sched.c: Likewise.
5322         * hsa-gen.c: Likewise.
5323         * ifcvt.c: Likewise.
5324         * ipa-cp.c: Likewise.
5325         * ipa-fnsummary.c: Likewise.
5326         * ipa-inline-analysis.c: Likewise.
5327         * ipa-inline.c: Likewise.
5328         * ipa-polymorphic-call.c: Likewise.
5329         * ipa-profile.c: Likewise.
5330         * ipa-prop.c: Likewise.
5331         * ipa-split.c: Likewise.
5332         * ipa-sra.c: Likewise.
5333         * ira-build.c: Likewise.
5334         * ira-conflicts.c: Likewise.
5335         * loop-doloop.c: Likewise.
5336         * loop-invariant.c: Likewise.
5337         * loop-unroll.c: Likewise.
5338         * lra-assigns.c: Likewise.
5339         * lra-constraints.c: Likewise.
5340         * modulo-sched.c: Likewise.
5341         * opt-suggestions.c: Likewise.
5342         * opts.c: Likewise.
5343         * postreload-gcse.c: Likewise.
5344         * predict.c: Likewise.
5345         * reload.c: Likewise.
5346         * reorg.c: Likewise.
5347         * resource.c: Likewise.
5348         * sanopt.c: Likewise.
5349         * sched-deps.c: Likewise.
5350         * sched-ebb.c: Likewise.
5351         * sched-rgn.c: Likewise.
5352         * sel-sched-ir.c: Likewise.
5353         * sel-sched.c: Likewise.
5354         * shrink-wrap.c: Likewise.
5355         * stmt.c: Likewise.
5356         * targhooks.c: Likewise.
5357         * toplev.c: Likewise.
5358         * tracer.c: Likewise.
5359         * trans-mem.c: Likewise.
5360         * tree-chrec.c: Likewise.
5361         * tree-data-ref.c: Likewise.
5362         * tree-if-conv.c: Likewise.
5363         * tree-inline.c: Likewise.
5364         * tree-loop-distribution.c: Likewise.
5365         * tree-parloops.c: Likewise.
5366         * tree-predcom.c: Likewise.
5367         * tree-profile.c: Likewise.
5368         * tree-scalar-evolution.c: Likewise.
5369         * tree-sra.c: Likewise.
5370         * tree-ssa-ccp.c: Likewise.
5371         * tree-ssa-dom.c: Likewise.
5372         * tree-ssa-dse.c: Likewise.
5373         * tree-ssa-ifcombine.c: Likewise.
5374         * tree-ssa-loop-ch.c: Likewise.
5375         * tree-ssa-loop-im.c: Likewise.
5376         * tree-ssa-loop-ivcanon.c: Likewise.
5377         * tree-ssa-loop-ivopts.c: Likewise.
5378         * tree-ssa-loop-manip.c: Likewise.
5379         * tree-ssa-loop-niter.c: Likewise.
5380         * tree-ssa-loop-prefetch.c: Likewise.
5381         * tree-ssa-loop-unswitch.c: Likewise.
5382         * tree-ssa-math-opts.c: Likewise.
5383         * tree-ssa-phiopt.c: Likewise.
5384         * tree-ssa-pre.c: Likewise.
5385         * tree-ssa-reassoc.c: Likewise.
5386         * tree-ssa-sccvn.c: Likewise.
5387         * tree-ssa-scopedtables.c: Likewise.
5388         * tree-ssa-sink.c: Likewise.
5389         * tree-ssa-strlen.c: Likewise.
5390         * tree-ssa-structalias.c: Likewise.
5391         * tree-ssa-tail-merge.c: Likewise.
5392         * tree-ssa-threadbackward.c: Likewise.
5393         * tree-ssa-threadedge.c: Likewise.
5394         * tree-ssa-uninit.c: Likewise.
5395         * tree-switch-conversion.c: Likewise.
5396         * tree-vect-data-refs.c: Likewise.
5397         * tree-vect-loop.c: Likewise.
5398         * tree-vect-slp.c: Likewise.
5399         * tree-vrp.c: Likewise.
5400         * tree.c: Likewise.
5401         * value-prof.c: Likewise.
5402         * var-tracking.c: Likewise.
5404 2019-11-12  Martin Liska  <mliska@suse.cz>
5406         * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
5407         with the new one, include opts.h if needed.  Use SET_OPTION_IF_UNSET
5408         macro.
5409         (asan_sanitize_allocas_p): Likewise.
5410         (asan_emit_stack_protection): Likewise.
5411         (asan_protect_global): Likewise.
5412         (instrument_derefs): Likewise.
5413         (instrument_builtin_call): Likewise.
5414         (asan_expand_mark_ifn): Likewise.
5415         * auto-profile.c (auto_profile): Likewise.
5416         * bb-reorder.c (copy_bb_p): Likewise.
5417         (duplicate_computed_gotos): Likewise.
5418         * builtins.c (inline_expand_builtin_string_cmp): Likewise.
5419         * cfgcleanup.c (try_crossjump_to_edge): Likewise.
5420         (try_crossjump_bb): Likewise.
5421         * cfgexpand.c (defer_stack_allocation): Likewise.
5422         (stack_protect_classify_type): Likewise.
5423         (pass_expand::execute): Likewise.
5424         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
5425         (estimate_reg_pressure_cost): Likewise.
5426         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
5427         * combine.c (combine_instructions): Likewise.
5428         (record_value_for_reg): Likewise.
5429         * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
5430         (aarch64_option_default_params): Likewise.
5431         * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
5432         * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
5433         * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
5434         * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
5435         * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
5436         (aarch64_allocate_and_probe_stack_space): Likewise.
5437         (aarch64_expand_epilogue): Likewise.
5438         (aarch64_override_options_internal): Likewise.
5439         * config/alpha/alpha.c (alpha_option_override): Likewise.
5440         * config/arm/arm.c (arm_option_override): Likewise.
5441         (arm_valid_target_attribute_p): Likewise.
5442         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
5443         * config/i386/i386.c (get_probe_interval): Likewise.
5444         (ix86_adjust_stack_and_probe_stack_clash): Likewise.
5445         (ix86_max_noce_ifcvt_seq_cost): Likewise.
5446         * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
5447         * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
5448         (get_stack_clash_protection_guard_size): Likewise.
5449         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5450         * config/s390/s390.c (allocate_stack_space): Likewise.
5451         (s390_emit_prologue): Likewise.
5452         (s390_option_override_internal): Likewise.
5453         * config/sparc/sparc.c (sparc_option_override): Likewise.
5454         * config/visium/visium.c (visium_option_override): Likewise.
5455         * coverage.c (get_coverage_counts): Likewise.
5456         (coverage_compute_profile_id): Likewise.
5457         (coverage_begin_function): Likewise.
5458         (coverage_end_function): Likewise.
5459         * cse.c (cse_find_path): Likewise.
5460         (cse_extended_basic_block): Likewise.
5461         (cse_main): Likewise.
5462         * cselib.c (cselib_invalidate_mem): Likewise.
5463         * dse.c (dse_step1): Likewise.
5464         * emit-rtl.c (set_new_first_and_last_insn): Likewise.
5465         (get_max_insn_count): Likewise.
5466         (make_debug_insn_raw): Likewise.
5467         (init_emit): Likewise.
5468         * explow.c (compute_stack_clash_protection_loop_data): Likewise.
5469         * final.c (compute_alignments): Likewise.
5470         * fold-const.c (fold_range_test): Likewise.
5471         (fold_truth_andor): Likewise.
5472         (tree_single_nonnegative_warnv_p): Likewise.
5473         (integer_valued_real_single_p): Likewise.
5474         * gcse.c (want_to_gcse_p): Likewise.
5475         (prune_insertions_deletions): Likewise.
5476         (hoist_code): Likewise.
5477         (gcse_or_cprop_is_too_expensive): Likewise.
5478         * ggc-common.c: Likewise.
5479         * ggc-page.c (ggc_collect): Likewise.
5480         * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
5481         (MAX_DATAREFS): Likewise.
5482         (OUTER_STRIDE_RATIO): Likewise.
5483         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
5484         * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
5485         * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
5486         * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
5487         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5488         (imm_store_chain_info::output_merged_store): Likewise.
5489         (pass_store_merging::process_store): Likewise.
5490         * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
5491         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
5492         (scop_to_isl_ast): Likewise.
5493         * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
5494         (optimize_isl): Likewise.
5495         * graphite-scop-detection.c (build_scops): Likewise.
5496         * haifa-sched.c (set_modulo_params): Likewise.
5497         (rank_for_schedule): Likewise.
5498         (model_add_to_worklist): Likewise.
5499         (model_promote_insn): Likewise.
5500         (model_choose_insn): Likewise.
5501         (queue_to_ready): Likewise.
5502         (autopref_multipass_dfa_lookahead_guard): Likewise.
5503         (schedule_block): Likewise.
5504         (sched_init): Likewise.
5505         * hsa-gen.c (init_prologue): Likewise.
5506         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
5507         (cond_move_process_if_block): Likewise.
5508         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
5509         (merge_agg_lats_step): Likewise.
5510         (devirtualization_time_bonus): Likewise.
5511         (hint_time_bonus): Likewise.
5512         (incorporate_penalties): Likewise.
5513         (good_cloning_opportunity_p): Likewise.
5514         (ipcp_propagate_stage): Likewise.
5515         * ipa-fnsummary.c (decompose_param_expr): Likewise.
5516         (set_switch_stmt_execution_predicate): Likewise.
5517         (analyze_function_body): Likewise.
5518         (compute_fn_summary): Likewise.
5519         * ipa-inline-analysis.c (estimate_growth): Likewise.
5520         * ipa-inline.c (caller_growth_limits): Likewise.
5521         (inline_insns_single): Likewise.
5522         (inline_insns_auto): Likewise.
5523         (can_inline_edge_by_limits_p): Likewise.
5524         (want_early_inline_function_p): Likewise.
5525         (big_speedup_p): Likewise.
5526         (want_inline_small_function_p): Likewise.
5527         (want_inline_self_recursive_call_p): Likewise.
5528         (edge_badness): Likewise.
5529         (recursive_inlining): Likewise.
5530         (compute_max_insns): Likewise.
5531         (early_inliner): Likewise.
5532         * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
5533         * ipa-profile.c (ipa_profile): Likewise.
5534         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
5535         (ipa_analyze_node): Likewise.
5536         (ipcp_transform_function): Likewise.
5537         * ipa-split.c (consider_split): Likewise.
5538         * ipa-sra.c (allocate_access): Likewise.
5539         (process_scan_results): Likewise.
5540         (ipa_sra_summarize_function): Likewise.
5541         (pull_accesses_from_callee): Likewise.
5542         * ira-build.c (loop_compare_func): Likewise.
5543         (mark_loops_for_removal): Likewise.
5544         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5545         * loop-doloop.c (doloop_optimize): Likewise.
5546         * loop-invariant.c (gain_for_invariant): Likewise.
5547         (move_loop_invariants): Likewise.
5548         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
5549         (decide_unroll_runtime_iterations): Likewise.
5550         (decide_unroll_stupid): Likewise.
5551         (expand_var_during_unrolling): Likewise.
5552         * lra-assigns.c (spill_for): Likewise.
5553         * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
5554         * modulo-sched.c (sms_schedule): Likewise.
5555         (DFA_HISTORY): Likewise.
5556         * opts.c (default_options_optimization): Likewise.
5557         (finish_options): Likewise.
5558         (common_handle_option): Likewise.
5559         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5560         (if): Likewise.
5561         * predict.c (get_hot_bb_threshold): Likewise.
5562         (maybe_hot_count_p): Likewise.
5563         (probably_never_executed): Likewise.
5564         (predictable_edge_p): Likewise.
5565         (predict_loops): Likewise.
5566         (expr_expected_value_1): Likewise.
5567         (tree_predict_by_opcode): Likewise.
5568         (handle_missing_profiles): Likewise.
5569         * reload.c (find_equiv_reg): Likewise.
5570         * reorg.c (redundant_insn): Likewise.
5571         * resource.c (mark_target_live_regs): Likewise.
5572         (incr_ticks_for_insn): Likewise.
5573         * sanopt.c (pass_sanopt::execute): Likewise.
5574         * sched-deps.c (sched_analyze_1): Likewise.
5575         (sched_analyze_2): Likewise.
5576         (sched_analyze_insn): Likewise.
5577         (deps_analyze_insn): Likewise.
5578         * sched-ebb.c (schedule_ebbs): Likewise.
5579         * sched-rgn.c (find_single_block_region): Likewise.
5580         (too_large): Likewise.
5581         (haifa_find_rgns): Likewise.
5582         (extend_rgns): Likewise.
5583         (new_ready): Likewise.
5584         (schedule_region): Likewise.
5585         (sched_rgn_init): Likewise.
5586         * sel-sched-ir.c (make_region_from_loop): Likewise.
5587         * sel-sched-ir.h (MAX_WS): Likewise.
5588         * sel-sched.c (process_pipelined_exprs): Likewise.
5589         (sel_setup_region_sched_flags): Likewise.
5590         * shrink-wrap.c (try_shrink_wrapping): Likewise.
5591         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
5592         * toplev.c (print_version): Likewise.
5593         (process_options): Likewise.
5594         * tracer.c (tail_duplicate): Likewise.
5595         * trans-mem.c (tm_log_add): Likewise.
5596         * tree-chrec.c (chrec_fold_plus_1): Likewise.
5597         * tree-data-ref.c (split_constant_offset): Likewise.
5598         (compute_all_dependences): Likewise.
5599         * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
5600         * tree-inline.c (remap_gimple_stmt): Likewise.
5601         * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
5602         * tree-parloops.c (MIN_PER_THREAD): Likewise.
5603         (create_parallel_loop): Likewise.
5604         * tree-predcom.c (determine_unroll_factor): Likewise.
5605         * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
5606         * tree-sra.c (analyze_all_variable_accesses): Likewise.
5607         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5608         * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
5609         (dse_optimize_redundant_stores): Likewise.
5610         (dse_classify_store): Likewise.
5611         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5612         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
5613         * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
5614         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5615         (try_peel_loop): Likewise.
5616         (tree_unroll_loops_completely): Likewise.
5617         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5618         (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
5619         (MAX_CONSIDERED_GROUPS): Likewise.
5620         (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
5621         * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
5622         * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
5623         * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
5624         (L1_CACHE_SIZE_BYTES): Likewise.
5625         (L2_CACHE_SIZE_BYTES): Likewise.
5626         (should_issue_prefetch_p): Likewise.
5627         (schedule_prefetches): Likewise.
5628         (determine_unroll_factor): Likewise.
5629         (volume_of_references): Likewise.
5630         (add_subscript_strides): Likewise.
5631         (self_reuse_distance): Likewise.
5632         (mem_ref_count_reasonable_p): Likewise.
5633         (insn_to_prefetch_ratio_too_small_p): Likewise.
5634         (loop_prefetch_arrays): Likewise.
5635         (tree_ssa_prefetch_arrays): Likewise.
5636         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
5637         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5638         (convert_mult_to_fma): Likewise.
5639         (math_opts_dom_walker::after_dom_children): Likewise.
5640         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5641         (hoist_adjacent_loads): Likewise.
5642         (gate_hoist_loads): Likewise.
5643         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5644         (compute_partial_antic_aux): Likewise.
5645         * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
5646         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
5647         (vn_reference_lookup): Likewise.
5648         (do_rpo_vn): Likewise.
5649         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
5650         * tree-ssa-sink.c (select_best_block): Likewise.
5651         * tree-ssa-strlen.c (new_stridx): Likewise.
5652         (new_addr_stridx): Likewise.
5653         (get_range_strlen_dynamic): Likewise.
5654         (class ssa_name_limit_t): Likewise.
5655         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
5656         (create_variable_info_for_1): Likewise.
5657         (init_alias_vars): Likewise.
5658         * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
5659         (tail_merge_optimize): Likewise.
5660         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
5661         (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
5662         (thread_jumps::find_jump_threads_backwards): Likewise.
5663         * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5664         * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
5665         * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
5666         (jump_table_cluster::can_be_handled): Likewise.
5667         * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
5668         (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
5669         (param_switch_conversion_branch_ratio): Likewise.
5670         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
5671         (vect_enhance_data_refs_alignment): Likewise.
5672         (vect_prune_runtime_alias_test_list): Likewise.
5673         * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
5674         (vect_get_datarefs_in_loop): Likewise.
5675         (vect_analyze_loop): Likewise.
5676         * tree-vect-slp.c (vect_slp_bb): Likewise.
5677         * tree-vectorizer.h: Likewise.
5678         * tree-vrp.c (find_switch_asserts): Likewise.
5679         (vrp_prop::check_mem_ref): Likewise.
5680         * tree.c (wide_int_to_tree_1): Likewise.
5681         (cache_integer_cst): Likewise.
5682         * var-tracking.c (EXPR_USE_DEPTH): Likewise.
5683         (reverse_op): Likewise.
5684         (vt_find_locations): Likewise.
5686 2019-11-12  Martin Liska  <mliska@suse.cz>
5688         * Makefile.in: Include params.opt.
5689         * flag-types.h (enum parloops_schedule_type): Add
5690         parloops_schedule_type used in params.opt.
5691         * params.opt: New file.
5693 2019-11-12  Martin Liska  <mliska@suse.cz>
5695         * common.opt: Remove --param and --param= options.
5696         * opt-functions.awk: Mark CL_PARAMS for options
5697         that have Param keyword.
5698         * opts-common.c (decode_cmdline_options_to_array):
5699         Replace --param key=value with --param=key=value.
5700         * opts.c (print_filtered_help): Remove special
5701         printing of params.
5702         (print_specific_help): Update title for params.
5703         (common_handle_option): Do not handle OPT__param.
5704         opts.h (SET_OPTION_IF_UNSET): New macro.
5705         * doc/options.texi: Document Param keyword.
5707 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
5708             Frederik Harwath  <frederik@codesourcery.com>
5709             Thomas Schwinge  <thomas@codesourcery.com>
5711         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
5712         enumeration constant.
5713         (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5714         (is_gimple_omp_offloaded): Likewise.
5715         * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
5716         constant.  Adjust the value of ORT_NONE accordingly.
5717         (is_gimple_stmt): Handle OACC_SERIAL.
5718         (oacc_default_clause): Handle ORT_ACC_SERIAL.
5719         (gomp_needs_data_present): Likewise.
5720         (gimplify_adjust_omp_clauses): Likewise.
5721         (gimplify_omp_workshare): Handle OACC_SERIAL.
5722         (gimplify_expr): Likewise.
5723         * omp-expand.c (expand_omp_target):
5724         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5725         (build_omp_regions_1, omp_make_gimple_edges): Likewise.
5726         * omp-low.c (is_oacc_parallel): Rename function to...
5727         (is_oacc_parallel_or_serial): ... this.
5728         Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5729         (scan_sharing_clauses): Adjust accordingly.
5730         (scan_omp_for): Likewise.
5731         (lower_oacc_head_mark): Likewise.
5732         (convert_from_firstprivate_int): Likewise.
5733         (lower_omp_target): Likewise.
5734         (check_omp_nesting_restrictions): Handle
5735         GF_OMP_TARGET_KIND_OACC_SERIAL.
5736         (lower_oacc_reductions): Likewise.
5737         (lower_omp_target): Likewise.
5738         * tree.def (OACC_SERIAL): New tree code.
5739         * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
5741         * doc/generic.texi (OpenACC): Document OACC_SERIAL.
5743 2019-11-12  Jakub Jelinek  <jakub@redhat.com>
5745         PR target/92449
5746         * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
5747         don't emit UNORDERED_EXPR guarded libcall.  Formatting fixes.
5749         PR tree-optimization/92452
5750         * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
5751         into NULL_TREE, set up_bound to NULL_TREE instead of computing
5752         MINUS_EXPR on it.
5754 2019-11-12  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5756         * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
5757         safelen with 0.
5759 2019-11-12  Alan Modra  <amodra@gmail.com>
5761         * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
5762         element of unspec vec.
5763         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
5764         PC-relative TLS.
5765         * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
5766         (tls_gd_pcrel, tls_ld_pcrel): New insns.
5767         (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
5768         (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
5770 2019-11-12  Alan Modra  <amodra@gmail.com>
5772         * config/rs6000/rs6000.opt (mtls-markers): Delete.
5773         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5774         (IS_NOMARK_TLSGETADDR): Likewise.
5775         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
5776         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
5777         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
5778         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
5779         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
5780         (rs6000_indirect_call_template_1): Likewise.
5781         (rs6000_pltseq_template): Likewise.
5782         (rs6000_opt_vars): Remove "tls-markers" entry.
5783         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
5784         with TARGET_ELF.
5785         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
5786         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
5787         (pltseq_plt_pcrel<mode>): Likewise.
5788         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
5789         (call_value_local64): Likewise.
5790         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
5791         output and length attribute sub-expression.
5792         (call_value_nonlocal_sysv<mode>),
5793         (call_value_nonlocal_sysv_secure<mode>),
5794         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
5795         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
5796         (call_value_indirect_pcrel<mode>): Likewise.
5797         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
5798         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
5799         * configure: Regenerate.
5800         * config.in: Regenerate.
5802 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
5804         * config/rs6000/predicates.md (prefixed_memory): New predicate.
5805         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
5806         address being a prefixed load/store.
5807         (stack_protect_testdi): Deal with either address being a prefixed
5808         load.
5810 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
5812         PR bootstrap/92433
5813         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5814         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
5815         std::swap.
5817 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
5819         PR tree-optimization/92420
5820         * tree-vect-stmts.c (get_negative_load_store_type): Move further
5821         up file.
5822         (get_group_load_store_type): Use it for reversed SLP accesses.
5824 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
5826         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5827         summary.
5828         (ipcp_transformation_t::duplicate): Break out from ...
5829         (ipa_node_params_t::duplicate): ... here; add copying of agg
5830         replacements.
5831         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5832         (ipcp_transformation_t): Add duplicate.
5834 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
5836         PR fortran/91828
5837         * doc/install.texi: Document that the minimum MPFR version is
5838         3.1.0.
5840 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5842         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5843         use new register constraint letters.
5845 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
5847         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5848         as well, if interesting recover the symbol and re-legitimize the
5849         pic address.
5851 2019-11-11  Martin Liska  <mliska@suse.cz>
5853         * dbgcnt.def (DEBUG_COUNTER): Sort counters
5854         alphabetically.
5856 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5858         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5859         account when checking if there are enough iterations to vectorize
5860         epilogue.
5862 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
5863             Kwok Cheung Yeung  <kcy@codesourcery.com>
5865         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5866         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5867         (LANG_HOOKS_DECLS): Rename also here.
5868         * langhooks.h (lang_hooks_for_decls): Rename
5869         omp_is_optional_argument to omp_check_optional_argument; take
5870         additional bool argument.
5871         * omp-general.h (omp_check_optional_argument): Likewise.
5872         * omp-general.h (omp_check_optional_argument): Likewise.
5873         * omp-low.c (lower_omp_target): Update calls; handle absent
5874         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5876 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
5878         PR target/87833
5879         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5880         -fPIC and -shared the last to create offload image.
5882 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
5884         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5885         of 'offset'.
5887         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5888         (config.status): Use/depend on it.
5889         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5890         * configure: Regenerate.
5892 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
5894         PR tree-optimization/88760
5895         * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5896         * common/config/rs6000/rs6000-common.c
5897         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5898         Turn on -funroll-loops and -munroll-only-small-loops.
5899         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5900         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5901         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5902         Turn off -munroll-only-small-loops for explicit -funroll-loops.
5903         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5904         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
5906 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
5908         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5909         Make scalar_load, vector_load, unaligned_load and
5910         vector_gather_load cost more to conform hardware latency and
5911         insn cost settings.
5913 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
5915         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5916         (MACHO_SYMBOL_LINKER_VIS_P): New.
5918 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
5920         * lra-spills.c (assign_spill_hard_regs): Do not spill into
5921         registers in eliminable_regset.
5923 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5925         * ipa-inline.c (compute_uninlined_call_time,
5926         compute_inlined_call_time): Take edge frequency as
5927         parameter rather than computing it by itself.
5928         (big_speedup_p, edge_badness): Manually CSE sreal
5929         frequency calculations.
5931 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5933         * profile-count.c (profile_count::to_sreal_scale): Short circuit
5934         case where profiles are same.
5936 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5938         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5940 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
5942         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5943         args summaries of inlined edge unless it holds info about
5944         described reference.
5946 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
5948         * config/rs6000/rs6000.md (CC_any): New mode iterator.
5949         (*movcc_internal1): Rename to...
5950         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
5952 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5954         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5955         (cgraph_node::create_virtual_clone): Copy it.
5956         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5957         summaries.
5958         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5959         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5960         is disabled.
5961         (propagate_constants_across_call): If callee is not analyzed, give up.
5962         (propagate_constants_topo): Lower to bottom latties of all callees of
5963         functions with ipa-cp disabled.
5964         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5965         (cgraph_edge_brings_value_p): Check for availability first.
5966         (create_specialized_node): Set ipcp_clone.
5967         (ipcp_store_bits_results): Check that info is present.
5968         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5969         thunks.
5970         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5971         conservative when callee summary is missing.
5972         (remap_edge_summaries): Lookup call summary only when needed.
5973         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5974         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5975         Use get_create.
5976         (ipa_analyze_node): Use get_create.
5977         (propagate_controlled_uses): Do not propagate when function is not
5978         analyzed.
5979         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5980         (ipa_read_node_info): Use get_create.
5981         * ipa-prop.h (IPA_NODE_REF): Use get.
5982         (IPA_NODE_REF_GET_CREATE): New.
5984 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5986         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5987         on function symbol.
5989 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5991         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5992         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5993         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5994         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5996 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
5998         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5999         capping the growth cumulated.
6000         (offline_size): Break out from ...
6001         (estimate_growth): ... here.
6002         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
6003         parameters.
6004         (growth_likely_positive): Turn to ...
6005         (growth_positive_p): Re-implement.
6006         * ipa-inline.h (growth_likely_positive): Remove.
6007         (growth_positive_p): Declare.
6008         * ipa-inline.c (want_inline_small_function_p): Use
6009         growth_positive_p.
6010         (want_inline_function_to_all_callers_p): Likewise.
6012 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
6014         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
6015         calculation of min_size.
6016         (ipa_update_overall_fn_summary): Likewise.
6018 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
6020         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
6021         estimate_edge_devirt_benefit when not computing hints;
6022         do not compute time when not asked for.
6023         (estimate_calls_size_and_time): Pass NULL hints and time when
6024         these are not computed; do not evaluate hint predicates when these are
6025         not computed.
6026         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
6027         frequency.
6029 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
6031         PR tree-optimization/92401
6032         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
6033         if res_op->code is an expression with code length 1.
6034         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
6035         if res_op->code is an expression with code length 2.
6036         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
6037         if res_op->code is an expression with code length 3.
6039 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
6041         * config/darwin.c (machopic_mcount_stub_name): Validate the
6042         symbol stub name when it is created.
6043         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
6044         stub validation.
6046 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
6048         * symtab.c: Fix comment typos.
6049         * cgraphunit.c: Likewise.
6050         * cgraph.h: Likewise.
6051         * cgraphclones.c: Likewise.
6052         * cgraph.c: Likewise.
6053         * varpool.c: Likewise.
6054         * tree-ssa-strlen.c: Likewise.
6055         * ipa-sra.c: Likewise.
6056         (scan_expr_access, check_all_callers_for_issues): Fix typo
6057         in a dump message.
6059 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
6061         * config/darwin-protos.h: Add include quard.
6063 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
6065         * range-op.h (range_operator::fold_range): Return result in a
6066         reference parameter instead of by value.
6067         (range_operator::wi_fold): Same.
6068         * range-op.cc (range_operator::wi_fold): Return result in a reference
6069         parameter instead of by value.
6070         (range_operator::fold_range): Same.
6071         (value_range_from_overflowed_bounds): Same.
6072         (value_range_with_overflow): Same
6073         (create_possibly_reversed_range): Same.
6074         (operator_equal::fold_range): Same.
6075         (operator_not_equal::fold_range): Same.
6076         (operator_lt::fold_range): Same.
6077         (operator_le::fold_range): Same.
6078         (operator_gt::fold_range): Same.
6079         (operator_ge::fold_range): Same.
6080         (operator_plus::wi_fold): Same.
6081         (operator_plus::op1_range): Change call to fold_range.
6082         (operator_plus::op2_range): Change call to fold_range.
6083         (operator_minus::wi_fold): Return result via reference parameter.
6084         (operator_minus::op1_range): Change call to fold_range.
6085         (operator_minus::op2_range): Change call to fold_range.
6086         (operator_min::wi_fold): Return result via reference parameter.
6087         (operator_max::wi_fold): Same.
6088         (cross_product_operator::wi_cross_product): Same.
6089         (operator_mult::wi_fold): Same.
6090         (operator_div::wi_fold): Same.
6091         (operator_div op_floor_div): Fix whitespace.
6092         (operator_exact_divide::op1_range): Change call to fold_range.
6093         (operator_lshift::fold_range): Return result via reference parameter.
6094         (operator_lshift::wi_fold): Same.
6095         (operator_rshift::fold_range): Same.
6096         (operator_rshift::wi_fold): Same.
6097         (operator_cast::fold_range): Same.
6098         (operator_cast::op1_range): Change calls to fold_range.
6099         (operator_logical_and::fold_range): Return result via reference.
6100         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
6101         (operator_bitwise_and::wi_fold): Return result via reference.
6102         (operator_logical_or::fold_range): Same.
6103         (operator_bitwise_or::wi_fold): Same.
6104         (operator_bitwise_xor::wi_fold): Same.
6105         (operator_trunc_mod::wi_fold): Same.
6106         (operator_logical_not::fold_range): Same.
6107         (operator_bitwise_not::fold_range): Same.
6108         (operator_bitwise_not::op1_range): Change call to fold_range.
6109         (operator_cst::fold_range): Return result via reference.
6110         (operator_identity::fold_range): Same.
6111         (operator_abs::wi_fold): Same.
6112         (operator_absu::wi_fold): Same.
6113         (operator_negate::fold_range): Same.
6114         (operator_negate::op1_range): Change call to fold_range.
6115         (operator_addr_expr::fold_range): Return result via reference.
6116         (operator_addr_expr::op1_range): Change call to fold_range.
6117         (operator_pointer_plus::wi_fold): Return result via reference.
6118         (operator_pointer_min_max::wi_fold): Same.
6119         (operator_pointer_and::wi_fold): Same.
6120         (operator_pointer_or::wi_fold): Same.
6121         (range_op_handler): Change call to fold_range.
6122         (range_cast): Same.
6123         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
6124         fold_range.
6125         (range_fold_unary_symbolics_p): Same.
6126         (range_fold_binary_expr): Same.
6127         (range_fold_unary_expr): Same.
6129 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6131         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
6132         vector type as an argument rather than reading it from the
6133         stmt_vec_info.
6134         (vect_create_epilog_for_reduction): Update accordingly.
6135         (vectorizable_reduction): Likewise.
6136         (vect_transform_cycle_phi): Likewise.
6138 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
6140         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
6141         the comparison codes that make sense for the mode used, and only the
6142         codes that can be done with a single branch instruction.
6144 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6146         PR tree-optimization/92351
6147         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
6148         peeling the main loop for alignment, make sure to set the misalignment
6149         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
6151 2019-11-08  Richard Biener  <rguenther@suse.de>
6153         * dbgcnt.def (ivopts_loop): Add.
6154         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
6155         ivopts_loop before optimizing a loop.
6157 2019-11-08  Richard Biener  <rguenther@suse.de>
6159         PR ipa/92409
6160         * tree-inline.c (declare_return_variable): Properly handle
6161         type mismatches for the return slot.
6163 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6165         PR target/92095
6166         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
6167         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
6168         change.
6169         (got_helper_needed): New static variable.
6170         (output_load_pcrel_sym): New function.
6171         (get_pc_thunk_name): Remove after inlining...
6172         (load_got_register): ...here.  Rework the initialization of the GOT
6173         register and of the GOT helper.
6174         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
6175         (sparc_file_end): Test got_helper_needed to decide whether the GOT
6176         helper must be emitted.  Use output_asm_insn instead of fprintf.
6177         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
6178         if optimization is enabled.
6179         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
6180         by calling output_load_pcrel_sym.
6182 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6184         * tree-sra.c (create_access): Delay disqualifying the base
6185         for poly_int values until we know we have a base.
6187 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6189         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
6190         for loops with SIMDUID set.  Enable epilogue vectorization for loops
6191         with SIMDLEN set after finding a main loop with a VF that matches it.
6193 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
6195         PR target/92038
6196         * gimple-ssa-store-merging.c (find_constituent_stores): For return
6197         value only, return non-NULL if there is a single non-clobber
6198         constituent store even if there are constituent clobbers and return
6199         one of clobber constituent stores if all constituent stores are
6200         clobbers.
6201         (split_group): Handle clobbers.
6202         (imm_store_chain_info::output_merged_store): When computing
6203         bzero_first, look after all clobbers at the start.  Don't count
6204         clobber stmts in orig_num_stmts, except if the first orig store is
6205         a clobber covering the whole area and split_stores cover the whole
6206         area, consider equal number of stmts ok.  Punt if split_stores
6207         contains only ->orig stores and their number plus number of original
6208         clobbers is equal to original number of stmts.  For ->orig, look past
6209         clobbers in the constituent stores.
6210         (imm_store_chain_info::output_merged_stores): Don't remove clobber
6211         stmts.
6212         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
6213         rhs.
6214         (store_valid_for_store_merging_p): Allow clobber stmts.
6215         (verify_clear_bit_region_be): Fix up a thinko in function comment.
6217         PR c++/92384
6218         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
6219         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
6220         slot.
6221         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
6222         force creation of a unique data.stack_parm slot.
6224 2019-11-08  Richard Biener  <rguenther@suse.de>
6226         * genmatch.c (expr::gen_transform): Use the resimplify
6227         member function instead of hard-coding the gimple_resimplifyN variant.
6228         (dt_simplify::gen_1): Likewise.
6230 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6232         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6233         POLY_INT_CST.
6235 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6237         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
6238         instead of INTEGER_CST.
6240 2019-11-08  Richard Biener  <rguenther@suse.de>
6242         PR tree-optimization/92324
6243         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6244         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
6245         sign-conversions as necessary.
6246         (vectorizable_reduction): Reject conversions in the chain
6247         that are not sign-conversions, base analysis on a non-converting
6248         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
6249         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
6250         for debug stmts.
6251         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
6252         (STMT_VINFO_REDUC_VECTYPE): Likewise.
6254 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
6256         PR target/92055
6257         * config/avr/avr.opt (-mdouble=, -mlong-double=):
6258         Fix a missing '-' when displaying these options in the
6259         help screen.
6261 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6263         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
6265 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6267         * config/aarch64/aarch64-builtins.c
6268         (aarch64_builtin_vectorized_function): Remove bswap handling.
6270 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6272         * tree-core.h (tree_type_common::indivisible_p): New member variable.
6273         * tree.h (TYPE_INDIVISIBLE_P): New macro.
6274         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6275         Treat the vector types as indivisible.
6277 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
6279         * optabs.def (gather_load_optab, mask_gather_load_optab)
6280         (scatter_store_optab, mask_scatter_store_optab): Turn into
6281         conversion optabs, with the offset mode given explicitly.
6282         * doc/md.texi: Update accordingly.
6283         * config/aarch64/aarch64-sve-builtins-base.cc
6284         (svld1_gather_impl::expand): Likewise.
6285         (svst1_scatter_impl::expand): Likewise.
6286         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
6287         (expand_scatter_store_optab_fn): Likewise.
6288         (direct_gather_load_optab_supported_p): Likewise.
6289         (direct_scatter_store_optab_supported_p): Likewise.
6290         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
6291         to be argument 4.
6292         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
6293         (internal_gather_scatter_fn_supported_p): Replace the offset sign
6294         argument with the offset vector type.  Require the two vector
6295         types to have the same number of elements but allow their element
6296         sizes to be different.  Treat the optabs as conversion optabs.
6297         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
6298         prototype accordingly.
6299         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
6300         (supports_vec_convert_optab_p): ...this new function.
6301         (supports_vec_gather_load_p): Update accordingly.
6302         (supports_vec_scatter_store_p): Likewise.
6303         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
6304         Replace the offset sign and bits parameters with a scalar type tree.
6305         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
6306         Pass back the offset vector type instead of the scalar element type.
6307         Allow the offset to be wider than the memory elements.  Search for
6308         an offset type that the target supports, stopping once we've
6309         reached the maximum of the element size and pointer size.
6310         Update call to internal_gather_scatter_fn_supported_p.
6311         (vect_check_gather_scatter): Update calls accordingly.
6312         When testing a new scale before knowing the final offset type,
6313         check whether the scale is supported for any signed or unsigned
6314         offset type.  Check whether the target supports the source and
6315         target types of a conversion before deciding whether to look
6316         through the conversion.  Record the chosen offset_vectype.
6317         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
6318         (vect_recog_gather_scatter_pattern): Get the scalar offset type
6319         directly from the gs_info's offset_vectype instead.  Pass a zero
6320         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
6321         * tree-vect-stmts.c (check_load_store_masking): Update call to
6322         internal_gather_scatter_fn_supported_p, passing the offset vector
6323         type recorded in the gs_info.
6324         (vect_truncate_gather_scatter_offset): Update call to
6325         vect_check_gather_scatter, leaving it to search for a valid
6326         offset vector type.
6327         (vect_use_strided_gather_scatters_p): Convert the offset to the
6328         element type of the gs_info's offset_vectype.
6329         (vect_get_gather_scatter_ops): Get the offset vector type directly
6330         from the gs_info.
6331         (vect_get_strided_load_store_ops): Likewise.
6332         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
6333         and IFN_MASK_GATHER_LOAD.
6334         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
6335         (gather_load<mode><v_int_equiv>): ...this.
6336         (mask_gather_load<mode>): Rename to...
6337         (mask_gather_load<mode><v_int_equiv>): ...this.
6338         (scatter_store<mode>): Rename to...
6339         (scatter_store<mode><v_int_equiv>): ...this.
6340         (mask_scatter_store<mode>): Rename to...
6341         (mask_scatter_store<mode><v_int_equiv>): ...this.
6343 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
6345         PR target/92132
6346         * config/rs6000/predicates.md
6347         (signed_or_equality_comparison_operator): New predicate.
6348         (unsigned_or_equality_comparison_operator): Likewise.
6349         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
6350         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
6351         * config/rs6000/vector.md
6352         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
6353         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
6354         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
6355         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
6356         vector modes and same-size integer vector modes.
6357         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
6358         (vector_lt<mode> for VEC_F): New expand.
6359         (vector_le<mode> for VEC_F): Likewise.
6360         (vector_ne<mode> for VEC_F): Likewise.
6361         (vector_unge<mode> for VEC_F): Likewise.
6362         (vector_ungt<mode> for VEC_F): Likewise.
6363         (vector_unle<mode> for VEC_F): Likewise.
6364         (vector_unlt<mode> for VEC_F): Likewise.
6365         (vector_uneq<mode>): Expose name.
6366         (vector_ltgt<mode>): Likewise.
6367         (vector_unordered<mode>): Likewise.
6368         (vector_ordered<mode>): Likewise.
6370 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
6372         PR target/92295
6373         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
6374         Enhance ix86_expand_vector_init_concat.
6376 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
6378         * doc/invoke.texi (-Wold-style-definition): Document () not being
6379         considered an old-style definition for C2x.
6381 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
6383         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
6384         Enhance comment.
6385         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
6386         insn patterns using ldcw instruction.
6387         (memory_barrier): Remove insn pattern using sync instruction.
6388         * config/pa/pa.opt (coherent-ldcw): New option.
6389         (ordered): New option.
6391 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6393         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
6394         valid conditions.
6396 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
6398         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
6399         typo - mistmatch -> mismatch.
6400         * ipa-profile.c (ipa_profile): Likewise.
6401         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
6402         - mistmatch -> mismatch.
6404 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6406         * simplify-rtx.c (comparison_to_mask): New function.
6407         (mask_to_comparison): New function.
6408         (simplify_logical_relational_operation): New function.
6409         (simplify_binary_operation_1): Call
6410         simplify_logical_relational_operation.
6412 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
6414         PR other/92090
6415         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
6416         modes for integer constants.
6418 2019-11-07  Jan Hubicka  <jh@suse.cz>
6420         PR ipa/92406
6421         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
6422         summary.
6424 2019-11-07  Jan Hubicka  <jh@suse.cz>
6426         * optc-save-gen.awk: Generate cl_target_option_free
6427         and cl_optimization_option_free.
6428         * opth-en.awk: Declare cl_target_option_free
6429         and cl_optimization_option_free.
6430         * tree.c (free_node): Use it.
6432 2019-11-06  Jan Hubicka  <jh@suse.cz>
6434         * lto-streamer-in.c: Include alloc-pool.h.
6435         (freeing_string_slot_hasher): Remove.
6436         (string_slot_allocator): New object allocator.
6437         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
6438         (file_name_obstack): New obstack.
6439         (canon_file_name): Allocate in obstack and allocator.
6440         (lto_reader_init): Initialize obstack and allocator.
6441         (lto_free_file_name_hash): New function.
6442         * lto-streamer.h (lto_free_file_name_hash): New.
6444 2019-11-07  Feng Xue  <fxue@os.amperecomputing.com>
6446         PR tree-optimization/89134
6447         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
6448         * params.def: Add min-loop-cond-split-prob.
6449         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
6450         outside checks on loop into the function.
6451         (split_info): New class.
6452         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
6453         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
6454         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
6455         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
6456         (stmt_semi_invariant_p, branch_removable_p): Likewise.
6457         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
6458         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
6459         (split_loop_on_cond): Likewise.
6460         (tree_ssa_split_loops): Add loop split on conditional statement.
6462 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
6464         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
6465         pattern.
6467 2019-11-07  Richard Biener  <rguenther@suse.de>
6469         PR tree-optimization/92405
6470         * tree-vect-loop.c (vectorizable_reduction): Appropriately
6471         restrict lane-reducing ops to single stmt chains.
6473 2019-11-07  Martin Jambor  <mjambor@suse.cz>
6475         PR lto/70929
6476         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
6477         * cgraph.h (gimple_check_call_matching_types): Remove
6478         * cgraph.c (gimple_check_call_args): Likewise.
6479         (gimple_check_call_matching_types): Likewise.
6480         (symbol_table::create_edge): Do not call
6481         gimple_check_call_matching_types.
6482         (cgraph_edge::make_direct): Likewise.
6483         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6484         * value-prof.h (check_ic_target): Remove.
6485         * value-prof.c (check_ic_target): Remove.
6486         (gimple_ic_transform): Do nat call check_ic_target.
6487         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
6488         (afdo_indirect_call): Likewise.
6489         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
6490         gimple_check_call_matching_types.
6491         * ipa-inline.c (early_inliner): Likewise.
6493 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6495         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
6496         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
6497         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
6498         * config/arm/arm_acle_builtins.def: Define builtins for the above.
6499         * config/arm/iterators.md (USSAT16): New int_iterator.
6500         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
6501         (sup): Likewise.
6502         * config/arm/predicates.md (ssat16_imm): New predicate.
6503         (usat16_imm): Likewise.
6504         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
6506 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6508         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
6509         New define_insns.
6510         (arm_<simd32_op>): New define_expands.
6511         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
6512         __smuad, __smuadx): Define.
6513         * config/arm/arm_acle_builtins.def: Define builtins for the above.
6514         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
6515         (SIMD32_BINOP_Q): Likewise.
6516         (simd32_op): Handle the above.
6517         * config/arm/unspecs.md: Define unspecs for the above.
6519 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6521         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
6522         * config/arm/arm.md (APSRGE_REGNUM): Define.
6523         (arm_<simd32_op>): New define_insn.
6524         (arm_sel): Likewise.
6525         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
6526         (CALL_USED_REGISTERS): Likewise.
6527         (REG_ALLOC_ORDER): Likewise.
6528         (FIRST_PSEUDO_REGISTER): Update value.
6529         (ARM_GE_BITS_READ): Define.
6530         * config/arm/arm.c (arm_conditional_register_usage): Clear
6531         APSRGE_REGNUM from operand_reg_set.
6532         (arm_ge_bits_access): Define.
6533         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
6534         ARM_BUIILTIN_sel.
6535         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
6536         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
6537         FAIL if ARM_GE_BITS_READ.
6538         (*arm_add<mode>3): New define_insn.
6539         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
6540         (*arm_sub<mode>3): New define_insn.
6541         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
6542         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
6543         __usub16): Define.
6544         * config/arm/arm_acle_builtins.def: Define builtins for the above.
6545         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
6546         (simd32_op): Handle the above.
6547         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
6548         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
6549         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
6550         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
6552 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6554         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
6555         (arm_smlabb): New define_expand.
6556         (*maddhisi4tb): Rename to...
6557         (maddhisi4tb): ... This.
6558         (*maddhisi4tt): Rename to...
6559         (maddhisi4tt): ... This.
6560         (arm_smlatb_setq): New define_insn.
6561         (arm_smlatb): New define_expand.
6562         (arm_smlatt_setq): New define_insn.
6563         (arm_smlatt): New define_expand.
6564         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
6565         (arm_<smlaw_op>): New define_expand.
6566         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
6567         __smlawb, __smlawt): Define.
6568         * config/arm_acle_builtins.def: Define builtins for the above.
6569         * config/arm/iterators.md (SMLAWBT): New int_iterator.
6570         (slaw_op): New int_attribute.
6571         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
6573 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6575         * config/arm/arm.md (arm_<ss_op>): New define_expand.
6576         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
6577         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
6578         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
6579         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
6580         (ss_op): New code_attr.
6582 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6584         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
6585         * config/arm/arm.md (APSRQ_REGNUM): Define.
6586         (add_setq): New define_subst.
6587         (add_clobber_q_name): New define_subst_attr.
6588         (add_clobber_q_pred): Likewise.
6589         (maddhisi4): Change to define_expand.  Split into mult and add if
6590         ARM_Q_BIT_READ.
6591         (arm_maddhisi4): New define_insn.
6592         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
6593         (*maddhisi4tt): Likewise.
6594         (arm_ssat): New define_expand.
6595         (arm_usat): Likewise.
6596         (arm_get_apsr): New define_insn.
6597         (arm_set_apsr): Likewise.
6598         (arm_saturation_occurred): New define_expand.
6599         (arm_set_saturation): Likewise.
6600         (*satsi_<SAT:code>): Rename to...
6601         (satsi_<SAT:code><add_clobber_q_name>): ... This.
6602         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
6603         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
6604         (CALL_USED_REGISTERS): Mark apsrq.
6605         (FIRST_PSEUDO_REGISTER): Update value.
6606         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
6607         (machine_function): Add q_bit_access.
6608         (ARM_Q_BIT_READ): Define.
6609         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
6610         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
6611         operand_reg_set.
6612         (arm_q_bit_access): Define.
6613         * config/arm/arm-builtins.c: Include stringpool.h.
6614         (arm_sat_binop_imm_qualifiers,
6615         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
6616         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
6617         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
6618         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
6619         SET_SAT_QUALIFIERS): Likewise.
6620         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
6621         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
6622         Handle 0 argument expander.
6623         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
6624         (arm_check_builtin_call): Define.
6625         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
6626         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
6627         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
6628         (arm_q_bit_access): Likewise.
6629         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
6630         __saturation_occurred, __set_saturation_occurred): Define.
6631         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
6632         saturation_occurred, set_saturation_occurred.
6633         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
6634         (UNSPEC_APSR_READ): Likewise.
6635         (VUNSPEC_APSR_WRITE): Likewise.
6636         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
6637         (*arm_ssadd<mode>3): New define_insn.
6638         (sssub<mode>3): Convert to define_expand.
6639         (*arm_sssub<mode>3): New define_insn.
6640         (ssmulsa3): Convert to define_expand.
6641         (*arm_ssmulsa3): New define_insn.
6642         (usmulusa3): Convert to define_expand.
6643         (*arm_usmulusa3): New define_insn.
6644         (ssmulha3): FAIL if ARM_Q_BIT_READ.
6645         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
6646         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
6648 2019-11-07  Martin Liska  <mliska@suse.cz>
6650         PR c++/92354
6651         * cgraph.c (delete_function_version): Clear global
6652         variable version_info_node if equal to deleted
6653         function.
6655 2019-11-07  Martin Liska  <mliska@suse.cz>
6657         * fold-const.c (operand_compare::operand_equal_p): Add comparison
6658         of CONSTRUCTOR_NO_CLEARING.
6659         (operand_compare::hash_operand): Likewise.
6661 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
6663         Support 64-bit double and 64-bit long double configurations.
6665         PR target/92055
6666         * config.gcc (tm_defines) [avr]: Set from --with-double=,
6667         --with-long-double=.
6668         * config/avr/t-multilib: Remove.
6669         * config/avr/t-avr: Output of genmultilib.awk is now fully
6670         dynamically generated and no more part of the repo.
6671         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
6672         Pass them down to...
6673         * config/avr/genmultilib.awk: ...here and handle them.
6674         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
6675         (-mlong-double=, avr_long_double). New option and var.
6676         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
6677         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
6678         Set default as requested by --with-double=
6679         (TARGET_HANDLE_OPTION): Define to this...
6680         (avr_handle_option): ...new hook worker.
6681         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
6682         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
6683         (avr_double_lib): New proto for spec function.
6684         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
6685         (DRIVER_SELF_SPECS): Call %:double-lib.
6686         * config/avr/avr.c (avr_option_override): Assert
6687         sizeof(long double) >= sizeof(double) for the target.
6688         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
6689         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
6690         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
6691         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
6692         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
6693         New built-in define depending on --with-double=, --with-long-double=.
6694         * config/avr/driver-avr.c (avr_double_lib): New spec function.
6695         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
6696         * doc/install.texi (Cross-Compiler-Specific Options)
6697         <--with-double=, --with-long-double=>: Doc.
6699 2019-11-07  Richard Biener  <rguenther@suse.de>
6701         * dbgcnt.def (gimple_unroll): New.
6702         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
6703         gimple_unroll debug counter before applying transform.
6704         (try_peel_loop): Likewise.
6706 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
6708         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
6709         frame pointer in multiple registers.
6710         (ira_setup_eliminable_regset): Setup eliminable_regset,
6711         ira_no_alloc_regs and regs_ever_live for frame pointer in
6712         multiple registers.
6714 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6716         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
6717         V2DI modes.
6719 2019-11-06  Jan Hubicka  <jh@suse.cz>
6721         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
6722         allocations.
6723         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
6724         Do not silently ignore summary corruptions.
6726 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6728         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
6729         the epilogue if there are peeled iterations for it to handle.
6731 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6733         * config/arc/arc.c (arc_split_ior): Add asserts.
6734         (arc_split_mov_const): Likewise.
6735         (arc_check_ior_const): Do not match known short immediate values.
6736         * config/arc/arc.md (movsi): Don't split predicated instructions
6737         (iorsi): Likewise.
6739 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6741         * config/arc/arc.opt (mea): Update help string.
6742         * doc/invoke.texi(ARC): Update mea option info.
6744 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
6746         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
6747         (zero_extendqisi2_ac): Likewise.
6748         (zero_extendhisi2_i): Likewise.
6749         (extendqihi2_i): Likewise.
6750         (extendqisi2_ac): Likewise.
6751         (extendhisi2_i): Likewise.
6753 2019-11-06  Richard Biener  <rguenther@suse.de>
6755         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
6756         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
6757         Simplify single_defuse_cycle condition.
6759 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6761         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
6762         epilogue loop, make sure that the VF is small enough or that
6763         the epilogue loop can be fully-masked.
6765 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
6767         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
6768         loop when we've finished, rather than returning directly from
6769         the loop.  Use a local variable to track whether we're still
6770         searching for the preferred simdlen.  Make vect_epilogues
6771         record whether the next iteration should try to treat the
6772         loop as an epilogue.
6774 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
6776         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
6777         __arc_hard_float__, __ARC_HARD_FLOAT__,
6778         __arc_soft_float__, __ARC_SOFT_FLOAT__
6780 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6782         PR tree-optimization/92317
6783         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
6784         update phi's with constant phi arguments.
6786 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6787             Alexandre Oliva  <oliva@adacore.com>
6789         * common.opt (-fcallgraph-info[=]): New option.
6790         * doc/invoke.texi (Developer options): Document it.
6791         * opts.c (common_handle_option): Handle it.
6792         * builtins.c (expand_builtin_alloca): Record allocation if
6793         -fcallgraph-info=da.
6794         * calls.c (expand_call): If -fcallgraph-info, record the call.
6795         (emit_library_call_value_1): Likewise.
6796         * flag-types.h (enum callgraph_info_type): New type.
6797         * explow.c: Include stringpool.h.
6798         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
6799         * function.c (allocate_stack_usage_info): New.
6800         (allocate_struct_function): Call it for -fcallgraph-info.
6801         (prepare_function_start): Call it otherwise.
6802         (record_final_call, record_dynamic_alloc): New.
6803         * function.h (struct callinfo_callee): New.
6804         (CALLEE_FROM_CGRAPH_P): New.
6805         (struct callinfo_dalloc): New.
6806         (struct stack_usage): Add callees and dallocs.
6807         (record_final_call, record_dynamic_alloc): Declare.
6808         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6809         object if -fcallgraph-info=da.
6810         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6811         * print-tree.h (print_decl_identifier): Declare.
6812         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6813         * print-tree.c: Include print-tree.h.
6814         (print_decl_identifier): New function.
6815         * toplev.c: Include print-tree.h.
6816         (callgraph_info_file): New global variable.
6817         (callgraph_info_external_printed): Likewise.
6818         (output_stack_usage): Rename to...
6819         (output_stack_usage_1): ... this.  Make it static, add cf
6820         parameter.  If -fcallgraph-info=su, print stack usage to cf.
6821         If -fstack-usage, use print_decl_identifier for
6822         pretty-printing.
6823         (INDIRECT_CALL_NAME): New.
6824         (dump_final_node_vcg_start): New.
6825         (dump_final_callee_vcg, dump_final_node_vcg): New.
6826         (output_stack_usage): New.
6827         (lang_dependent_init): Open and start file if
6828         -fcallgraph-info.  Allocated callgraph_info_external_printed.
6829         (finalize): If callgraph_info_file is not null, finish it,
6830         close it, and release callgraph_info_external_printed.
6832 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
6833             Frederik Harwath  <frederik@codesourcery.com>
6834             Thomas Schwinge  <thomas@codesourcery.com>
6836         * omp-low.c (struct omp_context): New fields
6837         local_reduction_clauses, outer_reduction_clauses.
6838         (new_omp_context): Initialize these.
6839         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6840         (scan_omp_for): Check reduction clauses for incorrect nesting.
6842 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
6844         PR inline-asm/92352
6845         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6846         operands with non-memory constraints.
6848 2019-11-05  Martin Sebor  <msebor@redhat.com>
6850         PR tree-optimization/92373
6851         * tree.c (component_ref_size): Only consider initializers of objects
6852         of matching struct types.
6853         Return null for instances of interior zero-length arrays.
6855 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
6857         * doc/md.texi (Insn Splitting): Fix combiner documentation.
6859 2019-11-05  Jason Merrill  <jason@redhat.com>
6861         PR tree-optimization/91825
6862         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6864 2019-11-05  Jim Wilson  <jimw@sifive.com>
6866         PR middle-end/92263
6867         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6868         optimize_insn_for_speed_p is true.
6870 2019-11-05  Martin Sebor  <msebor@redhat.com>
6872         PR middle-end/92333
6873         PR middle-end/82608
6874         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6875         size.
6876         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6877         name and location for a temporary variable.
6879 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6881         * tree-vrp.c (value_range::value_range): Fix whitespace.
6882         (defined_ranges_p): Same.
6883         (range_fold_binary_symbolics_p): Same.
6884         (value_range::intersect_helper): Same.
6885         (value_range::union_helper): Same.
6886         * tree-vrp.h (range_fold_binary_expr): Same.
6888 2019-11-04  Martin Sebor  <msebor@redhat.com>
6890         PR middle-end/92341
6891         PR middle-end/82612
6892         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6893         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6894         of message printed in a warning for empty arrays.
6895         (vrp_prop::check_mem_ref): Also handle function parameters and
6896         empty arrays.
6898 2019-11-05  Richard Biener  <rguenther@suse.de>
6900         PR tree-optimization/92371
6901         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6902         on the original stmt of live stmts in the chain.
6903         (vectorizable_live_operation): Look at the original stmt when
6904         checking STMT_VINFO_REDUC_DEF.
6906 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6908         * gimple-fold.c, gimple-loop-versioning.cc,
6909         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6910         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6911         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6912         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6913         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6914         value_range_equiv, and value_range_base to value_range.
6916 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6918         * expr.c (build_personality_function): Fix generated type to
6919         match actual personality functions.
6921 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
6923         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6924         enough bytes for the NULL character.
6926 2019-11-05  Richard Biener  <rguenther@suse.de>
6928         PR tree-optimization/92280
6929         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6930         had a single use do not create a new CTOR.
6931         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6932         BIT_FIELD_REF of a CTOR via GENERIC.
6934 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
6936         * config/s390/s390.c (s390_vector_alignment): Check if the value
6937         fits into uhwi before using it.
6939 2019-11-05  Martin Liska  <mliska@suse.cz>
6941         * symbol-summary.h: Use ggc_delete.
6943 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
6945         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6946         Change vec_perm field to 10.
6948 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
6950         * doc/install.texi: Further fix syntax for html generation.
6952 2019-11-05  Martin Liska  <mliska@suse.cz>
6954         * symbol-summary.h: Rename allocator to m_allocator and
6955         add comment.
6957 2019-11-05  Richard Biener  <rguenther@suse.de>
6959         PR tree-optimization/92324
6960         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6961         all signed or unsigned operations.
6963 2019-11-05  Jan Hubicka  <jh@suse.cz>
6965         * hsa-brig.c: Include alloc-pool.h
6966         * hsa-dump.c: Likewise.
6967         * hsa-gen.c: Likewise.
6968         * hse-regalloc.c: Likewise.
6969         * ipa-hsa.c: Likewise.
6970         * ipa-predicate.c: Likewise.
6971         * ipa-reference.c: Likewise.
6972         * ipa-sra.c: Likewise.
6973         * omp-expand.c: Likewise.
6974         * omp-general.c: Likewise.
6975         * omp-low.c: Likewise.
6976         * sumbol-summary.h (function_summary_base): Add allocator.
6977         (function_summary<T *>::function_summary): Update construction.
6978         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6979         (call_summary_base): Add allcator.
6980         (call_summary<T *>::call_summary): Update construction.
6981         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6983 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
6985         PR tree-optimization/91945
6986         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6987         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6988         Formatting fix.
6990 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
6992         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6993         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6994         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6995         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6996         (vrp_set_zero_nonzero_bits): Move to...
6997         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6998         (vr_values::simplify_bit_ops_using_ranges): Rename
6999         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
7001 2019-11-05  Martin Liska  <mliska@suse.cz>
7003         PR c++/92339
7004         * fold-const.c (operand_compare::hash_operand): Remove
7005         FIELD_DECL handling.
7007 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
7009         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
7010         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
7011         static.
7013 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
7015         * tree-vrp.c (value_range_base::operator==): Use equal_p to
7016         properly handle symbolics.
7017         (range_compatible_p): Remove.
7019 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
7021         * common.opt (-fabi-version): Document =14.
7022         * doc/invoke.texi (C++ Dialect Options): Likewise.
7024 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7026         * tree-vrp.c (value_range_base::set): Do not special case pointers.
7028 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
7030         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
7031         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7032         gcn_omp_device_kind_arch_isa.
7033         * config/gcn/t-omp-device: New file.
7034         * configure.ac: Support gcn for omp_device_property.
7035         * configure: Regenerate.
7037 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7039         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
7040         (vrp_val_max): Same.
7041         (vrp_val_is_min): Same.
7042         (vrp_val_is_max): Same.
7043         (value_range_base::nonzero_p): Remove last argument to
7044         vrp_val_is_max.
7045         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
7046         (vrp_val_max): Same.
7047         (vrp_val_is_min): Same.
7048         (vrp_val_is_max): Same.
7049         (value_range_base::set_varying): Remove last argument to vrp_val*.
7050         (value_range_base::dump): Same.
7051         (value_range_base::set): Same.
7052         (value_range_base::normalize_symbolics): Same.
7053         (value_range_base::num_pairs): Same.
7054         (value_range_base::lower_bound): Same.
7055         (value_range_base::upper_bound): Same.
7056         (ranges_from_anti_range): Remove handle_pointers argument.
7057         (value_range_base::singleton_p): Remove last argument to
7058         ranges_from_anti_range.
7060 2019-11-04  Jan Hubicka  <jh@suse.cz>
7062         * ipa-reference.c (init_function_info): Initialize
7063         info->global.statics_read.
7065 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7067         * tree-vrp.c (value_range_base::invert): Use constructors to build
7068         range.
7070 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7072         * tree-vrp.c (range_int_cst_singleton_p): Remove.
7073         * tree-vrp.h (range_int_cst_singleton_p): Remove.
7075 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7077         * tree-vrp.c (value_range_base::normalize_addresses): Handle
7078         VR_UNDEFINED.
7080 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
7082         * tree-vrp.c (dump_assert_info): New.
7083         (dump_asserts_info): New.
7085 2019-11-04  Jan Hubicka  <jh@suse.cz>
7087         * ipa-inline-transform.c: Include ipa-utils.h
7088         (inline_call): Set thunk_expansion flag.
7089         * ipa-utils.h (thunk_expansion): Declare.
7090         * ipa-devirt.c (thunk_expansion): New global var.
7091         (devirt_node_removal_hook): Do not invalidate cache while
7092         doing thunk expansion.
7094 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
7096         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
7098 2019-11-04  Martin Sebor  <msebor@redhat.com>
7100         PR tree-optimization/92349
7101         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
7102         memebers have constant sizes.
7104 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7106         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
7107         parameter.
7108         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
7109         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
7110         vect_analyze_loop.
7112 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
7114         * expr.c (store_constructor): Modify to handle single element vectors.
7115         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
7116         constructors.
7117         (vect_slp_check_for_constructors): New function.
7118         (vect_slp_analyze_bb_1): Call new function to check for vector
7119         constructors.
7120         (vectorize_slp_instance_root_stmt): New function.
7121         (vect_schedule_slp): Call new function to vectorize root stmt of vector
7122         constructors.
7123         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
7125 2019-11-04  Richard Biener  <rguenther@suse.de>
7127         PR tree-optimization/92345
7128         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
7129         we produced a reduction chain.
7130         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
7131         LOOP_VINFO_REDUCTIONS.
7133 2019-11-04  Jan Hubicka  <jh@suse.cz>
7135         * cgraphclones.c (cgraph_node::create_version_clone): Do not
7136         duplicate summaries.
7137         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
7138         first.
7139         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
7140         access call summaries.
7141         (dump_ipa_call_summary): Be ready for missing edge summaries.
7142         (analyze_function_body): Use get instead of get_create to access
7143         edge summary.
7144         (estimate_calls_size_and_time): Do not access summaries of
7145         inlined edges; sanity check they are missing.
7146         (ipa_call_context::estimate_size_and_time): Use get instead
7147         of get_create to access node summary.
7148         (inline_update_callee_summaries): Do not update depth of
7149         inlined edge.
7150         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
7151         growth caches.
7152         (ipa_merge_fn_summary_after_inlining): Use get instead
7153         of get_create.
7154         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
7155         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
7156         fast summary.
7157         (initialize_growth_caches): Update.
7158         (do_estimate_edge_time): Remove redundant copy of context.
7159         (ipa_remove_from_growth_caches): New function.
7160         * ipa-inline.c (flatten_function): Update overall summary
7161         only when optimizing.
7162         (inline_to_all_callers): Update overall summary of function
7163         inlined to.
7164         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
7165         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
7166         to false.
7168 2019-11-04  Richard Biener  <rguenther@suse.de>
7170         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
7171         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
7173 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
7175         * ggc-common.c: Include system.h before malloc.h.
7177 2019-11-04  Alexandre Oliva <oliva@adacore.com>
7179         * configure.ac: Pass --enable-obsolete=* and
7180         --enable-option-checking=* down to build configure, and fail
7181         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
7182         * configure: Rebuild.
7183         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
7184         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
7186 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7188         * config.in: Regenerate.
7189         * config/msp430/msp430.c (msp430_option_override): Emit an error if
7190         -mtiny-printf is used without GCC being configured with
7191         --enable-newlib-nano-formatted-io.
7192         * config/msp430/msp430.h (LINK_SPEC): Pass 
7193         "--wrap puts --wrap printf" when -mtiny-printf is used.
7194         * config/msp430/msp430.opt: Document -mtiny-printf.
7195         * configure: Regenerate.
7196         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
7197         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
7198         --enable-newlib-nano-formatted-io is passed.
7199         * doc/invoke.texi: Document -mtiny-printf.
7201 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7203         * configure: Regenerate.
7205 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7207         * config/msp430/driver-msp430.c
7208         (msp430_get_linker_devices_include_path): New spec function.
7209         * config/msp430/msp430-devices.c (msp430_dirname): New function.
7210         (extract_devices_dir_from_exec_prefix): New function.
7211         (extract_devices_dir_from_collect_gcc): New function.
7212         (msp430_check_env_var_for_devices): New function.
7213         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
7214         (parse_devices_csv): Call msp430_check_env_var_for_devices if
7215         devices.csv was not found using other methods.
7216         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
7217         New prototype.
7218         (msp430_dirname): Likewise.
7219         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
7220         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
7221         msp430_get_linker_devices_include_path.
7222         (TARGET_EXTRA_PRE_INCLUDES): Define.
7223         * doc/invoke.texi: Document new ways of searching for support files.
7225 2019-11-04  Richard Biener  <rguenther@suse.de>
7227         PR tree-optimization/92301
7228         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
7229         as required by epilogue generation
7231 2019-11-04  Martin Liska  <mliska@suse.cz>
7233         PR ipa/92304
7234         * fold-const.c (operand_compare::hash_operand): Fix field
7235         hashing of CONSTRUCTOR.
7237 2019-11-04  Martin Liska  <mliska@suse.cz>
7239         * ggc.h (ggc_delete): New function.
7240         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
7241         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
7242         (ipa_free_all_node_params): Likewise.
7243         * ipa-sra.c (ipa_sra_analysis): Likewise.
7245 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
7247         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
7248         set_switch_stmt_execution_predicate, compute_bb_predicates,
7249         will_be_nonconstant_expr_predicate,
7250         phi_result_unknown_predicate,
7251         analyze_function_body): Pass arround params summary.
7252         (ipa_call_context::duplicate_from): New comment;
7253         only duplicate useful values.
7254         (ipa_call_context::equal_to): Only compare useful values.
7255         (remap_edge_summaries): Pass params_summary.
7256         (remap_hint_predicate): Likewise.
7257         (ipa_merge_fn_summary_after_inlining): Likewise.
7258         (inline_read_section): Initialize params summary used flags.
7259         * ipa-predicate.c (predicate::remap_after_inlining): Pass
7260         around param_summary.
7261         (add_condition): Initialized used params summary flags.
7262         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
7263         (inline_param_summary::useless_p): New predicate.
7264         (remap_after_inlining, add_condition): Update prototype
7265         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
7266         move_cost.
7267         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
7268         summaries.
7269         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
7270         (ipa_analyze_virtual_call_uses): Likewise.
7271         (update_indirect_edges_after_inlining): Update param summaries.
7272         (ipa_print_node_params): Print used flags.
7273         (ipa_read_indirect_edge_info): Update param summareis.
7274         * ipa-prop.h (ipa_param_descriptor): Add
7275         used_by_ipa_predicates, used_by_indirect_call
7276         and used_by_polymorphic_call.
7277         (ipa_set_param_used_by_ipa_predicates,
7278         ipa_set_param_used_by_indirect_call,
7279         ipa_set_param_used_by_polymorphic_call,
7280         ipa_is_param_used_by_ipa_predicates,
7281         ipa_is_param_used_by_indirect_call,
7282         ipa_is_param_used_by_polymorphic_call): New inline functions.
7284 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
7286         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
7287         member function.
7288         (ipa_call_context::release): Add ALL parameter.
7289         (ipa_call_context::equal_to): New member function.
7290         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
7291         duplicate_form, release, equal_to and exists_p member functoins.
7292         * ipa-inline-analysis.c (node_context_cache_entry): New
7293         class.
7294         (node_context_summary): Likewise.
7295         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
7296         node_context_clear): New static vars.
7297         (initialize_growth_caches): New function.
7298         (free_growth_caches): Also delete node_context_cache; output stats.
7299         (do_estimate_edge_time): Cache contexts.
7300         (reset_node_cache): New function.
7301         * ipa-inline.c (reset_edge_caches): Reset also node cache.
7302         (inline_small_functions): Initialize growth caches.
7303         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
7304         Declare.
7305         * ipa-predicate.h (inline_param_summary::equal_to): New.
7306         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
7307         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
7308         (ipa_agg_jump_function): Implement equal_to member function.
7310 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
7312         * ipa-fnsummary.c (inline_read_section): Set vector size
7313         ahead of time.
7315 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
7317         * ipa-fnsummary.c (ipa_call_context): New constructor.
7318         (estimate_node_size_and_time): Turn to ...
7319         (ipa_call_context::estimate_size_and_time): ... this one.
7320         (ipa_call_context::release): New.
7321         * ipa-fnsummary.h (ipa_call_context): New class.
7322         (estimate_node_size_and_time): Remove.
7323         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
7324         do_estimate_edge_hints): Update.
7326 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
7328         * config.in: Regenerate.
7329         * configure: Regenerate.
7330         * configure.ac: Check for mallinfo.
7331         * ggc-common.c: Include malloc.h if available;
7332         include options.h
7333         (report_heap_memory_use): New functoin.
7334         * ggc-page.c (ggc_grow): Do not print "start".
7335         * ggc.h (report_heap_memory_use): Declare.
7336         * pases.c (execute_one_pass): Report memory after IPA passes.
7337         (ipa_read_summaries_1): Likewise.
7338         (ipa_read_optimization_summaries_1): Likewise.
7340 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
7342         * gimplify.h (omp_construct_selector_matches): Change return
7343         type to int, add a new SCORES argument.
7344         * gimplify.c (omp_construct_selector_matches): Likewise.  If
7345         SCORES is non-NULL, compute scores of each construct.
7346         * omp-general.h (omp_get_context_selector): Declare.
7347         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
7348         Adjust omp_construct_selector_matches callers.
7349         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
7350         (omp_context_compute_score): New function.
7351         (omp_resolve_declare_variant): Compute scores and decide based on
7352         that.
7354         PR bootstrap/92314
7355         * configure.ac: Don't look for omp-device-properties files from
7356         installed offloading compilers.  Instead add tmake_file snippets
7357         for configured offloading targets and use files they generate.
7358         * Makefile.in (install): Don't depend on
7359         install-omp-device-properties.
7360         (install-omp-device-properties): Remove goal.
7361         * config/i386/t-omp-device: New file.
7362         * config/i386/t-intelmic (omp-device-properties): Remove goal.
7363         * config/nvptx/t-omp-device: New file.
7364         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
7365         * configure: Regenerated.
7367         * omp-general.h (omp_context_selector_set_compare): Declare.
7368         * omp-general.c (omp_construct_simd_compare,
7369         omp_context_selector_props_compare, omp_context_selector_set_compare,
7370         omp_context_selector_compare): New functions.
7371         (omp_resolve_declare_variant): Prune variants that are strict subset
7372         of another variant.
7374 2019-11-01  Martin Sebor  <msebor@redhat.com>
7376         PR middle-end/91679
7377         PR middle-end/91647
7378         PR middle-end/91463
7379         PR middle-end/92312
7380         * doc/invoke.texi (-Wzero-length-bounds): Document.
7381         * gimple-match-head.c (try_conditional_simplification): Use memcpy
7382         instead of a hand-rolled loop to avoid PR 92323.
7383         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
7384         with initializers.
7385         (vrp_prop::check_mem_ref): Handle declared struct objects.
7386         * tree.c (last_field): New function.
7387         (array_at_struct_end_p): Handle MEM_REF.
7388         (get_initializer_for): New helper.
7389         (component_ref_size): Add argument.  Rename locals.  Call
7390         get_initializer_for instead of fold_ctor_reference.  Correct handling
7391         of flexible array members.
7392         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
7394 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
7396         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
7397         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
7398         UNSPEC_VSX_CVSPUXDS): Remove.
7399         (vsx_xvcvspdp): New define_expand, old define_insn split to...
7400         (vsx_xvcvspdp_be): ... this.  New.  And...
7401         (vsx_xvcvspdp_le): ... this.  New.
7402         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
7403         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
7404         (vsx_xvcv<su>xwdp_le): ... this.  New.
7405         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
7406         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
7407         (vsx_xvcvsp<su>xds_le): ... this.  New.
7409 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
7411         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
7412         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
7413         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
7414         UNSPEC_VSX_XVCVSPSXWS): Remove.
7415         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
7416         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
7418 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
7420         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
7421         (UNSPEC_VSX_XVCDPSP): Remove.
7422         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
7423         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
7425 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
7427         * hooks.c (hook_tree_tree_bool_null): New.
7428         * hooks.h (hook_tree_tree_bool_null): Declare.
7429         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
7430         (LANG_HOOKS_DECLS): Add it.
7431         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
7432         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
7433         (lower_omp_target): Handle Fortran array with descriptor in
7434         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
7436 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
7438         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
7439         Assert that the type we store in abi_vector_types is its own
7440         main variant.
7441         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
7443 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
7445         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
7446         from a CONST_INT address when TARGET_THUMB2.
7448 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
7450         * config/arm/arm.md (add_not_cin): New insn.
7451         (add_not_shift_cin): Likewise.
7453 2019-10-31  Martin Liska  <mliska@suse.cz>
7455         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
7456         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
7457         and compare_memory_operand.
7459 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
7461         * configure.ac: Compute and substitute omp_device_properties and
7462         omp_device_property_deps.
7463         * Makefile.in (generated_files): Add omp-device-properties.h.
7464         (omp-general.o): Depend on omp-device-properties.h.
7465         (omp_device_properties): New make variable.
7466         (omp-device-properties.h, s-omp-device-properties-h,
7467         install-omp-device-properties): New goals.
7468         (install): Depend on install-omp-device-properties for accelerators.
7469         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
7470         * target.h (enum omp_device_kind_arch_isa): New enum.
7471         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
7472         documentation.
7473         * omp-general.c: Include omp-device-properties.h.
7474         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
7475         colon instead of comma.
7476         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
7477         functions.
7478         (omp_context_selector_matches): Implement device set arch/isa
7479         selectors, improve device set kind selector handling.
7480         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
7481         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
7482         TARGET_SIMD_CLONE_USABLE): Formatting fix.
7483         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7484         ix86_omp_device_kind_arch_isa.
7485         * config/i386/i386-options.c (struct ix86_target_opts): Move type
7486         definition from ix86_target_string to file scope.
7487         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
7488         to file scope.
7489         (ix86_omp_device_kind_arch_isa): New function.
7490         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
7491         isa_opts definitions to file scope.
7492         * config/i386/t-intelmic (omp-device-properties): New goal.
7493         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
7494         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
7495         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7496         nvptx_omp_device_kind_arch_isa.
7497         * configure: Regenerate.
7498         * doc/tm.texi: Regenerate.
7500         PR middle-end/92231
7501         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
7502         DECL_BUILT_IN in comment.  Remove redundant ()s around return
7503         argument.
7504         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
7505         before calling fndecl_built_in_p.
7506         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
7507         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
7508         fndecl_built_in_p on it.
7510 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7512         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
7514 2019-10-31  Martin Liska  <mliska@suse.cz>
7516         * config/arm/arm.c (arm_get_pcs_model): Remove usage
7517         of cgraph_local_info and use local_info_node instead.
7518         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
7519         (bfin_function_ok_for_sibcall): Likewise.
7520         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
7521         (must_reload_pic_reg_p): Likewise.
7523 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
7525         PR c++/90947
7526         * tree.h (type_initializer_zero_p): Remove.
7527         * tree.c (type_initializer_zero_p): Remove.
7529 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7531         * doc/invoke.texi (-Wshadow, -Wshadow=global
7532         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
7534 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7536         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
7537         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
7538         and 'target exit data'.
7540 2019-10-30  Martin Jambor  <mjambor@suse.cz>
7542         ipa/92278
7543         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
7544         availability comparison.
7546 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7548         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
7549         calls to __mspabi_mpy* functions.
7550         * config/msp430/msp430.md (mulhisi3): New define_expand.
7551         (umulhisi3): New define_expand.
7552         (*mulhisi3_inline): Use old mulhisi3 define_insn.
7553         (*umulhisi3_inline): Use old umulhisi3 define_insn.
7555 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7557         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
7558         (msp430_check_plus_not_high_mem): New.
7559         (msp430_op_not_in_high_mem): Use new functions to check if the operand
7560         might be in low memory.
7561         Indicate that a 16-bit absolute address is in lower memory.
7563 2019-10-30  Martin Jambor  <mjambor@suse.cz>
7565         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
7566         ultimate_alias_target.
7568 2019-10-30  Richard Biener  <rguenther@suse.de>
7570         PR tree-optimization/92275
7571         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
7572         Copy all loop-closed PHIs.
7574 2019-10-30  Martin Liska  <mliska@suse.cz>
7576         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
7577         const_tree as function argument.
7578         (func_checker::compare_decl): Likewise.
7579         (func_checker::operand_equal_p): Likewise.
7580         (func_checker::compare_variable_decl): Likewise.
7581         (func_checker::parse_labels): Likewise.
7582         * ipa-icf-gimple.h: Likewise.
7584 2019-10-30  Martin Liska  <mliska@suse.cz>
7586         * ipa-icf-gimple.c (func_checker::compatible_types_p):
7587         Do not compare alias sets.  It's handled by operand_equal_p.
7589 2019-10-30  Martin Liska  <mliska@suse.cz>
7591         * ipa-icf-gimple.c (func_checker::func_checker): Do not
7592         initialize m_compare_polymorphic.
7593         (func_checker::compare_decl): Do not compare polymorphic types.
7594         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
7595         * ipa-icf.c (sem_function::equals_private): Do not call
7596         compare_polymorphic_p.
7598 2019-10-30  Martin Liska  <mliska@suse.cz>
7600         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
7601         compare_operand.
7602         (func_checker::compare_memory_operand): Remove.
7603         (func_checker::compare_cst_or_decl): Remove.
7604         (func_checker::operand_equal_valueize): Do not handle
7605         FIELD_DECL.
7606         (func_checker::compare_gimple_call): Call compare_operand.
7607         (func_checker::compare_gimple_assign): Likewise.
7608         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
7609         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
7610         * ipa-icf.h (icf_handled_component_p): Remove.
7612 2019-10-30  Martin Liska  <mliska@suse.cz>
7614         * ipa-icf-gimple.c (func_checker::hash_operand): New.
7615         (func_checker::compare_cst_or_decl): Remove handling
7616         of FIELD_DECL.
7617         (func_checker::compare_operand): Transform to ...
7618         (func_checker::operand_equal_p): ... this.
7619         * ipa-icf-gimple.h (class func_checker): Add
7620         operand_equal_p and hash_operand.
7621         * ipa-icf.c (sem_function::equals_private): Fix
7622         pushing and popping of cfun.
7624 2019-10-30  Martin Liska  <mliska@suse.cz>
7626         * fold-const.c (operand_equal_p): Move to ...
7627         (operand_compare::operand_equal_p): ... here.
7628         (operand_compare::verify_hash_value): New.
7629         (add_expr): Move to ...
7630         (operand_compare::hash_operand): ... here.
7631         * fold-const.h (operand_equal_p): Move to the class.
7632         (class operand_compare): New.
7633         * tree.c (add_expr): Remove.
7635 2019-10-30  Martin Liska  <mliska@suse.cz>
7637         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
7638         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
7640 2019-10-30  Martin Liska  <mliska@suse.cz>
7642         PR lto/91393
7643         PR lto/88220
7644         * cgraph.c (cgraph_node::get_create): Overwrite node->order
7645         from a first_clone in order to get proper LTO section
7646         in LTO stream.
7647         (cgraph_node::get_untransformed_body):
7648         Use lto_get_section_data where symtab_node::order
7649         must be provided.
7650         * cgraphclones.c (cgraph_node::find_replacement):
7651         Update also symbol order.
7652         * ipa-fnsummary.c (ipa_fn_summary_read):
7653         Use new function lto_get_summary_section_data.
7654         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
7655         * ipa-icf.c (sem_item_optimizer::read_summary):
7656         Likewise.
7657         * ipa-prop.c (ipa_prop_read_jump_functions):
7658         Likewise.
7659         (ipcp_read_transformation_summaries): Likewise.
7660         * ipa-sra.c (ipa_sra_read_summary): Likewise.
7661         * lto-cgraph.c (input_node): Add also order_base.
7662         (input_varpool_node): Likewise.
7663         (input_cgraph_1): Assign the order_base.
7664         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
7665         * lto-opts.c (lto_write_options): Pass new argument.
7666         * lto-section-in.c (lto_get_section_data): Add new argumente order.
7667         (lto_get_summary_section_data): New.
7668         (lto_get_raw_section_data): Add order argument.
7669         (lto_create_simple_input_block): Likewise.
7670         * lto-section-out.c (lto_destroy_simple_output_block):
7671         Likewise.
7672         * lto-streamer-in.c (lto_input_toplevel_asms):
7673         Use lto_get_summary_section_data.
7674         (lto_input_mode_table): Likewise.
7675         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
7676         (lto_output_toplevel_asms): Pass new argument.
7677         (copy_function_or_variable): Likewise.
7678         (produce_lto_section):Likewise.
7679         (produce_symtab): Likewise.
7680         (lto_write_mode_table): Likewise.
7681         (produce_asm_for_decls): Likewise.
7682         * lto-streamer.c (lto_get_section_name): Concat symbol name
7683         and symbol order.
7684         * lto-streamer.h (lto_get_section_data): Add order argument.
7685         (lto_get_summary_section_data): New.
7686         (lto_get_raw_section_data): Add order argument.
7687         (lto_get_section_name): Likewise.
7688         * varpool.c (varpool_node::get_constructor): Pass order argument.
7690 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
7692         PR tree-optimization/92262
7693         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
7694         ubase or cbase here.
7695         (remove_unused_ivs): Unshare comp before using it.
7697 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
7699         * ipa-prop.c (update_jump_functions_after_inlining):
7700         Watch for missing summaries.
7702 2019-10-30  Richard Biener  <rguenther@suse.de>
7704         PR tree-optimization/65930
7705         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
7706         chains also allow a leading and trailing conversion.
7707         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7708         intermediate reduction chains.
7709         (vect_analyze_slp_instance): Likewise.  Build a SLP
7710         node for a trailing conversion manually.
7712 2019-10-30  Martin Liska  <mliska@suse.cz>
7714         * cgraph.c (cgraph_node::local_info): Transform to ...
7715         (cgraph_node::local_info_node): ... this.
7716         (cgraph_node::dump): Remove cgraph_local_info and
7717         put its fields directly into cgraph_node.
7718         (cgraph_node::get_availability): Likewise.
7719         (cgraph_node::make_local): Likewise.
7720         (cgraph_node::verify_node): Likewise.
7721         * cgraph.h (struct GTY): Likewise.
7722         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
7723         (duplicate_thunk_for_node): Likewise.
7724         (cgraph_node::create_clone): Likewise.
7725         (cgraph_node::create_virtual_clone): Likewise.
7726         (cgraph_node::create_version_clone): Likewise.
7727         * cgraphunit.c (cgraph_node::reset): Likewise.
7728         (cgraph_node::finalize_function): Likewise.
7729         (cgraph_node::add_new_function): Likewise.
7730         (analyze_functions): Likewise.
7731         * combine.c (setup_incoming_promotions): Likewise.
7732         * config/i386/i386.c (ix86_function_regparm): Likewise.
7733         (ix86_function_sseregparm): Likewise.
7734         (init_cumulative_args): Likewise.
7735         * ipa-cp.c (determine_versionability): Likewise.
7736         (count_callers): Likewise.
7737         (set_single_call_flag): Likewise.
7738         (initialize_node_lattices): Likewise.
7739         (estimate_local_effects): Likewise.
7740         (create_specialized_node): Likewise.
7741         (identify_dead_nodes): Likewise.
7742         * ipa-fnsummary.c (compute_fn_summary): Likewise.
7743         (ipa_fn_summary_generate): Likewise.
7744         * ipa-hsa.c (check_warn_node_versionable): Likewise.
7745         (process_hsa_functions): Likewise.
7746         * ipa-icf.c (set_local): Likewise.
7747         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
7748         * ipa-inline.c (speculation_useful_p): Likewise.
7749         * ipa-profile.c (ipa_propagate_frequency): Likewise.
7750         (ipa_profile): Likewise.
7751         * ipa-split.c (split_function): Likewise.
7752         (execute_split_functions): Likewise.
7753         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7754         (ipa_sra_ipa_function_checks): Likewise.
7755         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7756         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7757         * lto-cgraph.c (lto_output_node): Likewise.
7758         (input_overwrite_node): Likewise.
7759         * multiple_target.c (expand_target_clones): Likewise.
7760         * omp-simd-clone.c (simd_clone_create): Likewise.
7761         * trans-mem.c (expand_call_tm): Likewise.
7762         (ipa_tm_mayenterirr_function): Likewise.
7763         (ipa_tm_diagnose_tm_safe): Likewise.
7764         (ipa_tm_diagnose_transaction): Likewise.
7765         (ipa_tm_create_version): Likewise.
7766         (ipa_tm_transform_calls_redirect): Likewise.
7767         (ipa_tm_execute): Likewise.
7768         * tree-inline.c (expand_call_inline): Likewise.
7770 2019-10-29  Martin Liska  <mliska@suse.cz>
7772         * symbol-summary.h (function_summary): Pass memory location
7773         to underlaying hash_map (or vec).
7774         (V>::fast_function_summary): Likewise.
7776 2019-10-29  Martin Liska  <mliska@suse.cz>
7778         * ggc.h (ggc_alloc_no_dtor): New function.
7779         * ipa-fnsummary.c (ipa_free_fn_summary): Call
7780         destructor and ggc_free.
7781         (ipa_free_size_summary): Call delete instead
7782         of release.
7783         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
7784         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
7785         (ipa_free_all_edge_args): Call destructor and ggc_free.
7786         (ipa_free_all_node_params): Likewise.
7787         (ipcp_free_transformation_sum): Likewise.
7788         * ipa-prop.h (ipa_check_create_node_params):
7789         Call new ggc_alloc_no_dtor.
7790         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
7791         (ipa_sra_analysis): Call destructor and ggc_free.
7792         Replace release with delete operator.
7793         * symbol-summary.h (release): Remove ..
7794         (V>::~fast_function_summary): and move logic here.
7795         Likewise for other classes.
7797 2019-10-29  Richard Biener  <rguenther@suse.de>
7799         PR tree-optimization/92260
7800         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
7801         lane-reducing ops.
7803 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7805         PR tree-optimization/88915
7806         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7807         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7808         and make the valueize function pointer also take a void pointer.
7809         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7810         around vn_valueize, to call it without a context.
7811         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7812         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7813         (~_loop_vec_info): Release epilogue_vinfos.
7814         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7815         number of iterations of epilogue.
7816         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7817         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
7818         versioning threshold needed for main loop.
7819         (vect_analyze_loop): Likewise.
7820         (find_in_mapping): New helper function.
7821         (update_epilogue_loop_vinfo): New function.
7822         (vect_transform_loop): When vectorizing epilogues re-use analysis done
7823         on main loop and call update_epilogue_loop_vinfo to update it.
7824         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7825         stmts on loop preheader edge.
7826         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7827         we decided to vectorize epilogues.  Update epilogues NITERS and
7828         construct ADVANCE to update epilogues data references where needed.
7829         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7830         (vect_do_peeling, vect_update_inits_of_drs,
7831          determine_peel_for_niter, vect_analyze_loop): Add or update
7832         declarations.
7833         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7834         created loop_vec_info's for epilogues when available.  Otherwise analyse
7835         epilogue separately.
7837 2019-10-29  Richard Biener  <rguenther@suse.de>
7839         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7840         example.
7842 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7844         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7845         index for the COND_EXPR from stmt_info rather than reduc_info.
7847 2019-10-29  Richard Biener  <rguenther@suse.de>
7849         PR tree-optimization/65930
7850         * tree-vect-loop.c (check_reduction_path): Relax single-use
7851         check allowing out-of-loop uses.
7852         (vect_is_simple_reduction): SLP reduction chains cannot have
7853         intermediate stmts used outside of the loop.
7854         (vect_create_epilog_for_reduction): The adjustment might need
7855         to be converted.
7856         (vectorizable_reduction): Annotate live stmts of the reduction
7857         chain with STMT_VINFO_REDUC_DEF.
7858         * tree-vect-stms.c (process_use): Remove no longer true asserts.
7860 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7862         * calls.c (pass_by_reference): Leave the target to decide whether
7863         POLY_INT_CST-sized arguments should be passed by value or reference,
7864         rather than forcing them to be passed by reference.
7865         (must_pass_in_stack_var_size): Likewise.
7866         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7867         V31_REGNUM to P15_REGNUM.
7868         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7869         Take an extra "silent_p" parameter, defaulting to false.
7870         (aarch64_sve::svbool_type_p): Declare.
7871         (aarch64_sve::nvectors_if_data_type): Likewise.
7872         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7873         (aarch64_frame::reg_offset): Turn into poly_int64s.
7874         (aarch64_frame::save_regs_size): Likewise.
7875         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7876         (aarch64_frame::sve_callee_adjust): Likewise.
7877         (aarch64_frame::spare_reg_reg): Likewise.
7878         (ARM_PCS_SVE): New arm_pcs value.
7879         (CUMULATIVE_ARGS::aapcs_nprn): New field.
7880         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7881         (CUMULATIVE_ARGS::silent_p): Likewise.
7882         (BITS_PER_SVE_PRED): New macro.
7883         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7884         function.  Reject aarch64_vector_pcs attributes on SVE functions.
7885         (aarch64_attribute_table): Use the above handler.
7886         (aarch64_sve_abi): New function.
7887         (aarch64_sve_argument_p): Likewise.
7888         (aarch64_returns_value_in_sve_regs_p): Likewise.
7889         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7890         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7891         descriptor for them.
7892         (aarch64_simd_decl_p): Delete.
7893         (aarch64_emit_cfi_for_reg_p): New function.
7894         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7895         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
7896         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7897         as partly clobbered for the SVE PCS.
7898         (aarch64_function_ok_for_sibcall): Check whether the two functions
7899         use the same ABI, rather than checking specifically for whether
7900         they're aarch64_vector_pcs functions.
7901         (aarch64_pass_by_reference): Raise an error for attempts to pass
7902         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
7903         if there are not enough free registers left, or if the argument is
7904         variadic.
7905         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7906         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7907         tuples in memory.
7908         (aarch64_layout_arg): Take a function_arg_info rather than
7909         individual properties.  Handle SVE predicates, vectors and tuples.
7910         Raise an error if they are passed to unprototyped functions.
7911         (aarch64_function_arg): If the silent_p flag is set, suppress the
7912         usual error about using float registers without TARGET_FLOAT.
7913         (aarch64_init_cumulative_args): Take a silent_p parameter and store
7914         it in the cumulative_args structure.  Initialize aapcs_nprn and
7915         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
7916         error about using float registers without TARGET_FLOAT.
7917         If the silent_p flag is not set, also raise an error about
7918         using SVE functions when SVE is disabled.
7919         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7920         and call it for SVE functions too.  Update aapcs_nprn similarly
7921         to the other register counts.
7922         (aarch64_layout_frame): If a big-endian function needs to save
7923         and restore Z8-Z15, search for a spare predicate that it can use.
7924         Store SVE predicates at the bottom of the register save area,
7925         followed by SVE vectors, then followed by the normal slots.
7926         Keep pointing the hard frame pointer at the base of the normal slots,
7927         above the SVE vectors.  Update the various frame creation and
7928         tear-down strategies for the new layout, initializing the new
7929         sve_callee_adjust field.  Add an additional layout for frames
7930         whose saved registers are all SVE registers.
7931         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7932         (aarch64_return_address_signing_enabled): Likewise.
7933         (aarch64_push_regs, aarch64_pop_regs): Update calls to
7934         aarch64_reg_save_mode.
7935         (aarch64_adjust_sve_callee_save_base): New function.
7936         (aarch64_add_cfa_expression): Move earlier in file.  Take the
7937         saved register as an rtx rather than a register number and use
7938         its mode for the MEM slot.
7939         (aarch64_save_callee_saves): Remove the mode argument and instead
7940         use aarch64_reg_save_mode to get the mode of each save slot.
7941         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
7942         offsets.  Allow GP offsets to be saved at a VL-based offset from
7943         the stack, handling this case using the frame pointer if available
7944         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
7945         big-endian SVE functions; use normal moves for other SVE saves.
7946         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7947         returns true.  Add explicit CFA notes when not storing via the
7948         stack pointer.  Do not try to pair SVE saves.
7949         (aarch64_restore_callee_saves): Cope with poly_int64 register
7950         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7951         use normal moves for other SVE restores.  Only add CFA restore notes
7952         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
7953         SVE restores.
7954         (aarch64_get_separate_components): Always keep the first SVE save
7955         in the prologue if we need to use it as a stack probe.  Don't allow
7956         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7957         Likewise the spare predicate register that they need.  Update the
7958         offset calculation to account for the SVE save area.  Use the
7959         appropriate range check for SVE LDR and STR instructions.
7960         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7961         (aarch64_process_components): Likewise.  Update the offset
7962         calculation to account for the SVE save area.  Only mark the
7963         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7964         Do not try to pair SVE saves.
7965         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7966         reg_offsets.  When handling the final allocation, expect the
7967         first SVE register save to be part of the initial allocation
7968         and for it to act as a probe at SP.  Account for the SVE callee
7969         save area in the dump information.
7970         (aarch64_expand_prologue): Update the frame diagram.  Fold the
7971         SVE callee allocation into the initial allocation if stack clash
7972         protection is enabled.  Use new variables to track the offset
7973         of the frame chain (and hard frame pointer) from the current
7974         stack pointer, and likewise the offset of the bottom of the
7975         register save area.  Update calls to aarch64_save_callee_saves
7976         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
7977         saving the FP&SIMD registers.  Save the predicate registers.
7978         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7979         into account when setting the stack pointer from the frame pointer,
7980         and when deciding whether we can inherit the initial adjustment
7981         amount from the prologue.  Restore the predicate registers after
7982         the vector registers, then apply sve_callee_adjust, then restore
7983         the general registers.
7984         (aarch64_secondary_reload): Don't use secondary SVE reloads
7985         for VNx16BImode.
7986         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7987         (aarch64_short_vector_p): Return false for SVE types.
7988         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7989         at the start of the function.  Return false for SVE types.
7990         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7991         functions too.
7992         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7993         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7994         to big-endian targets for bytewise moves.
7995         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7997 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7998             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7999             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8001         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
8002         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
8003         aarch64-sve-builtins-base.o to extra_objs.  Add
8004         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
8005         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
8006         (aarch64-sve-builtins-shapes.o): Likewise.
8007         (aarch64-sve-builtins-base.o): New rules.
8008         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
8009         (aarch64_resolve_overloaded_builtin): Likewise.
8010         (aarch64_check_builtin_call): Likewise.
8011         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
8012         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
8013         pragma.
8014         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
8015         (aarch64_svprfop): New enum.
8016         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
8017         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
8018         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
8019         (aarch64_output_sve_cnt_pat_immediate): Likewise.
8020         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
8021         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
8022         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
8023         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
8024         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
8025         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
8026         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
8027         (aarch64_sve::mangle_builtin_type): Likewise.
8028         (aarch64_sve::resolve_overloaded_builtin): Likewise.
8029         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
8030         (aarch64_sve::expand_builtin): Likewise.
8031         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
8032         (aarch64_sve_int_mode): Likewise.
8033         (aarch64_ptrue_all_mode): New function.
8034         (aarch64_convert_sve_data_to_pred): Make public.
8035         (svprfop_token): New function.
8036         (aarch64_output_sve_prefetch): Likewise.
8037         (aarch64_fold_sve_cnt_pat): Likewise.
8038         (aarch64_output_sve_cnt_pat_immediate): Likewise.
8039         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
8040         instead of gen_while_ult.
8041         (aarch64_replace_reg_mode): Make public.
8042         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
8043         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
8044         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
8045         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
8046         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
8047         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
8048         (aarch64_sve_ptrue_svpattern_p): Likewise.
8049         (aarch64_sve_pred_valid_immediate): Check
8050         aarch64_sve_ptrue_svpattern_p.
8051         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
8052         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
8053         functions.
8054         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
8055         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
8056         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
8057         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
8058         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
8059         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
8060         New unspecs.
8061         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
8062         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
8063         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
8064         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
8065         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
8066         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
8067         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
8068         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
8069         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
8070         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
8071         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
8072         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
8073         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
8074         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
8075         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
8076         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
8077         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
8078         (Vesize): Handle partial vector modes.
8079         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
8080         mode attributes.
8081         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
8082         iterators.
8083         (s, paired_extend, inc_dec): New code attributes.
8084         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
8085         (SVE_INT_UNARY): Add UNSPEC_RBIT.
8086         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
8087         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
8088         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
8089         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
8090         UNSPEC_COND_FMULX.
8091         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
8092         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
8093         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
8094         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
8095         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
8096         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
8097         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
8098         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
8099         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
8100         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
8101         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
8102         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
8103         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
8104         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
8105         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
8106         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
8107         UNSPEC_COND_FSCALE.
8108         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
8109         (binqops_op, binqops_op_rev, last_op): New int attributes.
8110         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
8111         (fn, ab): New int attributes.
8112         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
8113         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
8114         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
8115         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
8116         UNSPEC_RBIT.
8117         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
8118         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
8119         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
8120         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
8121         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
8122         UNSPEC_COND_FMULX.
8123         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
8124         (brk_reg_con, brk_reg_opno): New int attributes.
8125         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
8126         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
8127         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
8128         UNSPEC_COND_FMIN.
8129         (max_elem_bits): New int attribute.
8130         (min_elem_bits): Handle UNSPEC_RBIT.
8131         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
8132         TRUNCATE as well as SUBREG.
8133         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
8134         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
8135         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
8136         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
8137         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
8138         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
8139         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
8140         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
8141         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
8142         (aarch64_gather_scale_operand_h): New predicates.
8143         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
8144         (vgd, vgh, vgw, vsQ, vsS): New constraints.
8145         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
8146         (*aarch64_sve_reinterpret<mode>): Allow any source register
8147         instead of requiring an exact match.
8148         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
8149         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
8150         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
8151         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
8152         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
8153         (aarch64_update_ffrt): New patterns.
8154         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
8155         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8156         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8157         (@aarch64_ld<fn>f1<mode>): New patterns.
8158         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
8159         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8160         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8161         (@aarch64_ldnt1<mode>): New patterns.
8162         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
8163         the scalar part of the address.
8164         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
8165         scalar part of the addresse and add an alternative for handling
8166         nonzero offsets.
8167         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
8168         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
8169         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8170         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8171         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
8172         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
8173         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
8174         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
8175         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8176         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8177         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
8178         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
8179         (@aarch64_sve_prefetch<mode>): New patterns.
8180         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
8181         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
8182         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
8183         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
8184         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
8185         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
8186         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
8187         (@aarch64_stnt1<mode>): New patterns.
8188         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
8189         the scalar part of the address.
8190         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
8191         the scalar part of the addresse and add an alternative for handling
8192         nonzero offsets.
8193         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
8194         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
8195         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
8196         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
8197         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
8198         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
8199         New patterns.
8200         (vec_duplicate<mode>): Use QI as the mode of the input operand.
8201         (extract_last_<mode>): Generalize to...
8202         (@extract_<LAST:last_op>_<mode>): ...this.
8203         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
8204         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
8205         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
8206         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
8207         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
8208         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
8209         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
8210         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
8211         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
8212         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
8213         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
8214         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
8215         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
8216         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
8217         (*aarch64_adr_uxtw_unspec): Likewise.
8218         (*aarch64_adr_uxtw): Rename to...
8219         (*aarch64_adr_uxtw_and): ...this.
8220         (@aarch64_adr<mode>_shift): New expander.
8221         (*aarch64_adr_shift_sxtw): New pattern.
8222         (aarch64_<su>abd<mode>_3): Rename to...
8223         (@aarch64_pred_<su>abd<mode>): ...this.
8224         (<su>abd<mode>_3): Update accordingly.
8225         (@aarch64_cond_<su>abd<mode>): New expander.
8226         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
8227         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
8228         (*<su>mul<mode>3_highpart): Rename to...
8229         (@aarch64_pred_<optab><mode>): ...this.
8230         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
8231         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
8232         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
8233         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
8234         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
8235         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
8236         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
8237         (*v<ASHIFT:optab><mode>3): Rename to...
8238         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
8239         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
8240         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
8241         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
8242         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
8243         (@cond_asrd<mode>): New expander.
8244         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
8245         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
8246         (*sdiv_pow2<mode>3): Delete.
8247         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
8248         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
8249         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
8250         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
8251         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
8252         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
8253         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
8254         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
8255         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
8256         (*add<SVE_F:mode>3): Rename to...
8257         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
8258         for SVE_STRICT_GP.
8259         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
8260         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
8261         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
8262         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
8263         (*sub<SVE_F:mode>3): Rename to...
8264         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
8265         for SVE_STRICT_GP.
8266         (@aarch64_pred_abd<SVE_F:mode>): New expander.
8267         (*fabd<SVE_F:mode>3): Rename to...
8268         (*aarch64_pred_abd<SVE_F:mode>): ...this.
8269         (@aarch64_cond_abd<SVE_F:mode>): New expander.
8270         (*mul<SVE_F:mode>3): Rename to...
8271         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
8272         for SVE_STRICT_GP.
8273         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
8274         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
8275         to...
8276         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
8277         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
8278         (*<nlogical><PRED_ALL:mode>3): Rename to...
8279         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
8280         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
8281         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
8282         (*<logical_nn><PRED_ALL:mode>3): Rename to...
8283         (aarch64_pred_<logical_nn><mode>_z): ...this.
8284         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
8285         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
8286         (*fma<SVE_I:mode>4): Rename to...
8287         (@aarch64_pred_fma<SVE_I:mode>): ...this.
8288         (*fnma<SVE_I:mode>4): Rename to...
8289         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
8290         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
8291         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
8292         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
8293         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
8294         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
8295         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
8296         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
8297         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
8298         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
8299         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
8300         (@aarch64_sve_tmad<mode>): Likewise.
8301         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
8302         (*aarch64_sel_dup<mode>): Rename to...
8303         (@aarch64_sel_dup<mode>): ...this.
8304         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
8305         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
8306         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
8307         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
8308         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
8309         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
8310         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
8311         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
8312         (*fcm<cmp_op><mode>): Rename to...
8313         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
8314         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
8315         (*fcmuo<mode>): Rename to...
8316         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
8317         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
8318         (@aarch64_pred_fac<cmp_op><mode>): New expander.
8319         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
8320         (fold_extract_last_<mode>): Generalize to...
8321         (@fold_extract_<last_op>_<mode>): ...this.
8322         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
8323         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
8324         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
8325         DImode result explicit.
8326         (reduc_plus_scal_<mode>): Update accordingly.
8327         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
8328         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
8329         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
8330         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
8331         (*aarch64_sve_tbl<mode>): Rename to...
8332         (@aarch64_sve_tbl<mode>): ...this.
8333         (@aarch64_sve_compact<mode>): New pattern.
8334         (*aarch64_sve_dup_lane<mode>): Rename to...
8335         (@aarch64_sve_dup_lane<mode>): ...this.
8336         (@aarch64_sve_dupq_lane<mode>): New pattern.
8337         (@aarch64_sve_splice<mode>): Likewise.
8338         (aarch64_sve_<perm_insn><mode>): Rename to...
8339         (@aarch64_sve_<perm_insn><mode>): ...this.
8340         (*aarch64_sve_ext<mode>): Rename to...
8341         (@aarch64_sve_ext<mode>): ...this.
8342         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
8343         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
8344         to...
8345         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
8346         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8347         Rename to...
8348         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8349         ...this.
8350         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
8351         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
8352         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
8353         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
8354         to...
8355         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
8356         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
8357         a "@" marker.
8358         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
8359         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
8360         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
8361         pattern.
8362         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
8363         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
8364         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
8365         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
8366         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
8367         "@" marker.
8368         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
8369         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
8370         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
8371         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
8372         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
8373         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
8374         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
8375         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
8376         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
8377         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
8378         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
8379         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
8380         (aarch64_sve_cnt_pat): Likewise.
8381         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
8382         (*aarch64_sve_incsi_pat): Likewise.
8383         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
8384         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
8385         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
8386         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
8387         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
8388         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
8389         (*aarch64_sve_decsi_pat): Likewise.
8390         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
8391         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
8392         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
8393         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
8394         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
8395         (@aarch64_pred_cntp<mode>): Likewise.
8396         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
8397         New expander.
8398         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
8399         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
8400         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8401         New expander.
8402         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8403         New pattern.
8404         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
8405         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
8406         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
8407         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
8408         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
8409         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
8410         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
8411         New expander.
8412         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
8413         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
8414         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8415         New expander.
8416         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8417         New pattern.
8418         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
8419         expander.
8420         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
8421         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
8422         expander.
8423         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
8424         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
8425         expander.
8426         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
8427         * config/aarch64/arm_sve.h: New file.
8428         * config/aarch64/aarch64-sve-builtins.h: Likewise.
8429         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
8430         * config/aarch64/aarch64-sve-builtins.def: Likewise.
8431         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
8432         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
8433         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
8434         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
8435         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
8436         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
8438 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8440         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
8441         New pattern.
8442         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
8443         SVE modes.
8445 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8447         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
8448         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
8449         FFRT_REGNUM + 1.
8450         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
8451         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
8452         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
8453         (aarch64_hard_regno_nregs): Handle the new register classes.
8454         (aarch64_hard_regno_mode_ok): Likewise.
8455         (aarch64_regno_regclass): Likewise.
8456         (aarch64_class_max_nregs): Likewise.
8457         (aarch64_register_move_cost): Likewise.
8458         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
8459         as general register_operands.
8461 2019-10-29  Martin Liska  <mliska@suse.cz>
8463         * ggc-common.c: One can't subtract unsigned types
8464         in compare function.
8466 2019-10-29  Martin Liska  <mliska@suse.cz>
8468         * cgraphunit.c (symbol_table::compile): Pass
8469         title as dump_memory_report argument.
8470         * toplev.c (dump_memory_report):  New argument.
8471         (finalize): Pass new argument.
8472         * toplev.h (dump_memory_report): Add argument.
8474 2019-10-29  Martin Liska  <mliska@suse.cz>
8476         * ggc-common.c: Move Leak to the first column.
8478 2019-10-29  Martin Liska  <mliska@suse.cz>
8480         * cgraphunit.c (symbol_table::compile): Remove argument
8481         for dump_memory_report.
8482         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8483         (compare_final): Remove in order to make report
8484         better readable.
8485         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
8486         * mem-stats.h (mem_alloc_description::get_list):
8487         Do not pass cmp.
8488         (mem_alloc_description::dump): Likewise here.
8489         * toplev.c (dump_memory_report): Remove final
8490         argument.
8491         (finalize): Likewise.
8492         * toplev.h (dump_memory_report): Remove argument.
8494 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8496         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
8497         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
8498         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
8499         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
8500         accept "const".
8502 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8504         * coretypes.h (string_int_pair): New typedef.
8505         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
8506         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
8507         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
8509 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8511         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
8512         (simulate_builtin_function_decl): Declare.
8513         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
8514         (LANG_HOOKS_INITIALIZER): Include it.
8515         * langhooks.c (add_builtin_function_common): Rename to...
8516         (build_builtin_function): ...this.  Add a location parameter and use
8517         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
8518         the decl instead.
8519         (add_builtin_function): Update accordingly, passing the returned
8520         decl to the lang hook.
8521         (add_builtin_function_ext_scope): Likewise
8522         (simulate_builtin_function_decl): New function.
8524 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
8526         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
8527         example, use actual names of supported offload targets.
8529         PR target/92258
8530         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
8532 2019-10-28  Martin Sebor  <msebor@redhat.com>
8534         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
8535         (handle_store): Pass argument to get_addr_stridx.
8537 2019-10-28  Martin Sebor  <msebor@redhat.com>
8539         PR tree-optimization/92226
8540         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
8541         the offset is in the open range outlined by SI's length.
8543 2019-10-28  Martin Sebor  <msebor@redhat.com>
8545         PR c/66970
8546         * doc/cpp.texi (__has_builtin): Document.
8547         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
8549 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8551         PR target/82981
8552         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
8553         doubleword and low doubleword result of multiplication on
8554         MIPS64R6.
8556         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
8557         pure qualifier to the built-in.
8558         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
8559         built-ins.
8560         (struct mips_builtin_description): Add is_pure flag.
8561         (mips_init_builtins): Mark built-in as pure if the flag in the
8562         corresponding mips_builtin_description struct is set.
8564         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
8565         alternative which covers the floating-point input value. Also
8566         forbid the split of insert.d pattern for floating-point values.
8568 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8570         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
8571         * config/riscv/riscv-sr.c: New file.
8572         * config/riscv/riscv.c (riscv_reorg): New function.
8573         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8574         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
8575         (riscv_remove_unneeded_save_restore_calls): Declare.
8576         * config/riscv/t-riscv (riscv-sr.o): New build rule.
8578 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8580         PR tree-optimization/92163
8581         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
8582         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
8583         before calling bitmap_set_bit.
8584         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
8585         delete_dead_or_redundant_assignment.
8586         (dse_dom_walker::dse_optimize_stmt): Likewise.
8587         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
8589 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8591         PR middle-end/91272
8592         * tree-vect-stmts.c (vectorizable_condition): Support
8593         EXTRACT_LAST_REDUCTION with fully-masked loops.
8595 2019-10-28  Richard Biener  <rguenther@suse.de>
8597         PR tree-optimization/92252
8598         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
8599         STMT_VINFO_REDUC_IDX when swapping operands.
8601 2019-10-28  Richard Biener  <rguenther@suse.de>
8603         PR tree-optimization/92241
8604         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
8605         we failed to update the reduction index do not use the pattern
8606         stmts for the reduction chain.
8607         (vectorizable_reduction): When the reduction chain is corrupt,
8608         fail.
8609         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
8610         fail to update the reduction chain.
8612 2019-10-28  Richard Biener  <rguenther@suse.de>
8614         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8615         STMT_VINFO_REDUC_IDX from the actual stmt.
8616         (vect_transform_reduction): Likewise.
8617         (vectorizable_reduction): Compute the reduction chain length,
8618         do not recompute the reduction operand index.  Remove no longer
8619         necessary restriction for condition reduction chains.
8621 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8623         PR target/92225
8624         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
8625         condition for V2DImode.
8627 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8629         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
8630         Remove %k operand modifier.
8631         (*vec_extractv2df_1_sse): Remove %q operand modifier.
8633 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
8635         PR rtl-optimization/92007
8636         * cfgcleanup.c (thread_jump): Add an assertion that we don't
8637         call it after reload if hot/cold partitioning has been done.
8638         (class pass_postreload_jump): Rename to
8639         pass_jump_after_combine.
8640         (make_pass_postreload_jump): Rename to
8641         make_pass_jump_after_combine.
8642         * passes.def(pass_postreload_jump): Move before reload, rename
8643         to pass_jump_after_combine.
8644         * tree-pass.h (make_pass_postreload_jump): Rename to
8645         make_pass_jump_after_combine.
8647 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
8649         PR ipa/92242
8650         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
8651         for missing EDGE_REF
8652         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
8654 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
8656         PR tree-optimization/88760
8657         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
8658         Enable -funroll-loops for -O2 and above.
8659         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
8660         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
8661         do not turn on web and rngreg implicitly, if the unroller is not
8662         explicitly enabled.
8664 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8666         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
8667         jump functions.
8669 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
8671         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
8672         * cgraph.h (cgraph_node::rtl_info): Likewise.
8674 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8676         * ipa-cp.c (propagate_constants_across_call): If args are not available
8677         just drop everything to varying.
8678         (find_aggregate_values_for_callers_subset): Watch for missing
8679         edge summary.
8680         (find_more_scalar_values_for_callers_subs): Likewise.
8681         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8682         update_jump_functions_after_inlining, propagate_controlled_uses):
8683         Watch for missing summaries.
8684         (ipa_propagate_indirect_call_infos): Remove summary after propagation
8685         is finished.
8686         (ipa_write_node_info): Watch for missing summaries.
8687         (ipa_read_edge_info): Create new ref.
8688         (ipa_edge_args_sum_t): Add remove.
8689         (IPA_EDGE_REF_GET_CREATE): New macro.
8690         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
8691         edge summary.
8692         (remap_edge_change_prob): Likewise.
8694 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8696         * ipa-inline-transform.c (inline_call): update function summaries
8697         after expanidng thunk.
8699 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
8701         * ipa-icf.c (sem_function::merge): Update function summaries.
8702         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
8704 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
8706         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
8707         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
8708         operand already has scalar mode.
8709         (iptr): Remove SF/DF.
8711 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
8713         PR target/91289
8714         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
8715         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
8716         this.
8718 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8720         * config/i386/sse.md
8721         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
8722         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
8723         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
8724         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
8725         <sse>_vmmaskcmp<mode>3):
8726         Change predicates from vector_operand to nonimmediate_operand,
8727         constraints xBm to xm, since scalar operations don't need
8728         memory address alignment.
8729         (avx512f_vmcmp<mode>3<round_saeonly_name>,
8730         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
8731         round_saeonly_nimm_predicate with
8732         round_saeonly_nimm_scalar_predicate.
8733         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8734         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
8735         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8736         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
8737         avx512f_vmfmadd_<mode>_mask3<round_name>,
8738         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8739         *avx512f_vmfmsub_<mode>_mask<round_name>,
8740         avx512f_vmfmsub_<mode>_mask3<round_name>,
8741         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
8742         *avx512f_vmfnmadd_<mode>_mask<round_name>,
8743         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8744         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8745         *avx512f_vmfnmsub_<mode>_mask<round_name>,
8746         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
8747         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
8748         cvtusi2<ssescalarmodesuffix>32<round_name>,
8749         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
8750         round_nimm_predicate with round_nimm_scalr_predicate.
8751         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
8752         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
8753         avx512er_vmrcp28<mode><round_saeonly_name>,
8754         avx512er_vmrsqrt28<mode><round_saeonly_name>,
8755         ): Replace round_saeonly_nimm_predicate with
8756         round_saeonly_nimm_scalar_predicate.
8757         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
8758         vector_operand with nonimmediate_operand.
8759         * config/i386/subst.md (round_scalar_nimm_predicate,
8760         round_saeonly_scalar_nimm_predicate): Replace
8761         vector_operand with nonimmediate_operand.
8763 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
8765         PR target/89071
8766         * config/i386/i386.md (*rcpsf2_sse): Add
8767         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
8768         (*rsqrtsf2_sse): Ditto.
8769         (*sqrt<mode>2_sse): Ditto.
8770         (sse4_1_round<mode>2): separate constraint vm, add
8771         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
8772         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
8773         by pass rpad.
8774         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
8775         Ditto.
8776         (*sse_vmrsqrtv4sf2): Ditto.
8777         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8778         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
8779         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
8780         <iptr> pointer size modifier since vround support memory operand.
8782 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
8784         PR target/85969
8785         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
8786         static function.
8788 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8789             Tobias Burnus  <tobias@codesourcery.com>
8791         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
8792         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8793         common block decls.
8795 2019-10-25  Richard Biener  <rguenther@suse.de>
8797         PR tree-optimization/92222
8798         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
8799         (_slp_oprnd_info::second_pattern): Likewise.
8800         (_slp_oprnd_info::any_pattern): New.
8801         (vect_create_oprnd_info): Adjust.
8802         (vect_get_and_check_slp_defs): Compute whether any stmt is
8803         in a pattern.
8804         (vect_build_slp_tree_2): Avoid building up a node from scalars
8805         if any of the operand defs, not just the first, is in a pattern.
8807 2019-10-25  Richard Biener  <rguenther@suse.de>
8809         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8810         swapping if we actually have to modify the IL on a shared stmt.
8811         (vect_build_slp_tree_2): Never fail swapping on shared stmts
8812         because we no longer modify the IL.
8814 2019-10-25  Martin Liska  <mliska@suse.cz>
8816         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8818 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
8820         * tree-vect-loop.c (vectorizable_reduction): Restrict the
8821         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8822         handled by vect_transform_reduction.  Allow fully-masked loops
8823         to be used with reduction chains.
8824         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8825         operations in fully-masked loops.
8826         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8827         operations in fully-masked loops.
8829 2019-10-25  Richard Biener  <rguenther@suse.de>
8831         * tree-vect-loop.c (vectorizable_reduction): Verify
8832         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8833         correctly.
8834         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8835         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8836         stmts.
8838 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
8840         * gimplify.h (omp_construct_selector_matches): Declare.
8841         * gimplify.c (struct gimplify_omp_ctx): Add code member.
8842         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8843         called function if needed for flag_openmp.
8844         (gimplify_scan_omp_clauses): Set ctx->code.
8845         (omp_construct_selector_matches): New function.
8846         * omp-general.h (omp_constructor_traits_to_codes,
8847         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8848         * omp-general.c (omp_constructor_traits_to_codes,
8849         omp_context_selector_matches, omp_resolve_declare_variant): New
8850         functions.
8852         * config/arc/arc.c (hwloop_optimize): Add missing space in string
8853         literal.
8854         * config/rx/rx.c (rx_print_operand): Likewise.
8855         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8856         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8857         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8858         Likewise.
8859         * genemit.c (emit_c_code): Likewise.
8860         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
8862 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8864         * symbols-summary.h (fast_function_summary<T *, V>::release,
8865         fast_call_summary<T *, V>::release): Free m_vector.
8867 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8869         * cgraphunit.c (symbol_table::process_new_functions): Call
8870         ipa_free_size_summary.
8871         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8872         (devirtualization_time_bonus): Update.
8873         (ipcp_propagate_stage): Update.
8874         * ipa-fnsummary.c (ipa_size_summaries): New.
8875         (ipa_fn_summary_alloc): Alloc size summary.
8876         (dump_ipa_call_summary): Update.
8877         (ipa_dump_fn_summary): Update.
8878         (analyze_function_body): Update.
8879         (compute_fn_summary): Likewise.
8880         (ipa_get_stack_frame_offset): New function.
8881         (inline_update_callee_summaries): Do not update frame offsets.
8882         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8883         remove call and function summary.
8884         (ipa_update_overall_fn_summary): Update.
8885         (inline_read_section): Update.
8886         (ipa_fn_summary_write): Update.
8887         (ipa_free_fn_summary): Do not remove summaries.
8888         (ipa_free_size_summary): New.
8889         (release summary pass): Also run at WPA.
8890         * ipa-fnsummary.h (ipa_size_summary): Declare.
8891         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8892         estimated_self_stack_size.
8893         (ipa_size_summary_t): New type.
8894         (ipa_size_summaries): Declare.
8895         (ipa_free_size_summary): Declare.
8896         (ipa_get_stack_frame_offset): Declare.
8897         * ipa-icf.c (sem_function::merge): Update.
8898         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8899         (estimate_growth): Update.
8900         (growth_likely_positive): Update.
8901         (clone_inlined_nodes): Update.
8902         (inline_call): Update.
8903         * ipa-inline.c (caller_growth_limits): Update.
8904         (edge_badness): Update.
8905         (recursive_inlining): Update.
8906         (inline_small_functions): Update.
8907         (inline_to_all_callers_1): Update.
8908         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8910 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
8912         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8913         (uavg<mode>3_ceil): ... This.
8914         (altivec_vavgs<VI_char>): Rename to...
8915         (avg<mode>3_ceil): ... This.
8916         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8917         VAVGUW, VAVGSW): Adjust.
8919 2019-10-24  Nathan Sidwell  <nathan@acm.org>
8921         * dumpfile.c (dump_begin): Reorder decls to use RAII.
8923 2019-10-24  Martin Liska  <mliska@suse.cz>
8925         * symbol-summary.h (gt_pch_nx): Mark all functions
8926         with gcc_unreachable as we do not expect to be called.
8928 2019-10-24  Richard Biener  <rguenther@suse.de>
8930         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8931         chains try harder with operand swapping and instead of
8932         putting a shifted chain into the reduction operands put
8933         a repetition of the final reduction op there as if we'd
8934         reassociate the expression.
8936 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
8938         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8939         statics_not_read and statics_not_written to statics_read and
8940         statics_written respectively.
8941         (no_module_statics): New static var.
8942         (ipa_reference_get_not_read_global): Rename to ...
8943         (ipa_reference_get_read_global): ... this.
8944         (ipa_reference_get_not_written_global): Rename to ...
8945         (ipa_reference_get_written_global): ... this.
8946         (dump_static_vars_set_to_file): Dump no_module_statics.
8947         (copy_static_var_set): Add for propagation parameter.
8948         (ipa_init): Initialize no_module_statics.
8949         (ipa_ref_opt_summary_t::duplicate): Update.
8950         (ipa_ref_opt_summary_t::remove): Update.
8951         (propagate): Update.
8952         (write_node_summary_p): Look correctly for bitmap differences.
8953         (ipa_reference_write_optimization_summary): Update.
8954         (ipa_reference_read_optimization_summary): Update.
8955         * ipa-reference.h
8956         (ipa_reference_get_not_read_global): Rename to ...
8957         (ipa_reference_get_read_global): ... this.
8958         (ipa_reference_get_not_written_global): Rename to ...
8959         (ipa_reference_get_written_global): ... this.
8960         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8961         (call_may_clobber_ref_p_1): Update.
8963 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8965         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8966         and add comment.
8967         (msp430_hard_regno_nregs_with_padding): Remove.
8969 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8971         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8972         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8973         shift amount is between 1 and 4.
8974         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8975         is between 1 and 4.
8977 2019-10-24  Richard Biener  <rguenther@suse.de>
8979         PR tree-optimization/92205
8980         * tree-vect-loop.c (vectorizable_reduction): Restrict
8981         search for alternate vectype_in to lane-reducing patterns
8982         we support.
8984 2019-10-24  Richard Biener  <rguenther@suse.de>
8986         PR tree-optimization/92203
8987         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8988         Skip eliminating conversion stmts inserted by insertion.
8990 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
8992         * config/s390/s390.c (s390_get_thread_pointer): Use
8993         gen_get_thread_pointer.
8994         (s390_expand_split_stack_prologue): Likewise.
8995         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8996         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8997         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8998         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8999         parameterized name.
9001 2019-10-24  Richard Biener  <rguenther@suse.de>
9003         * tree-vect-slp.c (vect_analyze_slp): When reduction group
9004         SLP discovery fails try to handle the reduction as part
9005         of SLP reduction discovery.
9007 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
9009         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
9010         declaration.
9011         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
9012         attribute if it exists, rather than the insn size.  If we use the
9013         insn size, adjust the size to remove the extra size that prefixed
9014         instructions take.
9015         (rs6000_adjust_insn_length): New function.
9016         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
9017         update the instruction sized if prefixed instructions are used.
9018         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
9019         (non_prefixed_length attribute): Delete.
9020         (num_insns attribute): New insn attribute to return the number of
9021         instructions.
9022         (max_prefixed_insns attribute): New insn attribute to return the
9023         maximum number of prefixed instructions in an insn.
9024         (length attribute): Do not adjust for prefix instructions here,
9025         punt to ADJUST_INSN_LENGTH.
9026         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
9027         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
9028         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
9029         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
9030         max_prefixed_insns and num_insns.
9032         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
9033         (movtd_64bit_nodm): Reformat.
9034         (mov<mode>_32bit): Reformat.
9035         (mov<mode>_softfloat): Reformat.
9036         (FMOVE128_GPR splitter): Reformat.
9037         (DIFD splitter): Reformat.
9038         (TI2 splitter): Reformat.
9039         * config/rs6000/predicates.md (lwa_operand): If the bottom two
9040         bits of the offset for the memory address are non-zero, use PLWA
9041         if prefixed instructions are available.
9043 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
9045         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
9047 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
9049         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
9050         previous patch.
9052 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
9054         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
9055         (cmp_symbol_files): New.
9056         (lto_output): Copy sections in file order.
9057         * lto-streamer.h (lto_file_decl_data): Add field order.
9059 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
9061         * ipa-reference.h (ipa_reference_var_uid): Move offline.
9062         * ipa-reference.c (reference_vars_map_t): new type.
9063         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
9064         (ipa_reference_var_uid): Implement.
9065         (varpool_node_hooks): New static var.
9066         (varpool_removal_hook): New function.
9067         (is_improper): Do not check bitmap for id==-1
9068         (get_static_name): Update.
9069         (ipa_init): Initialize new datastructures.
9070         (analyze_function): Do not recompute ids.
9071         (propagate): Free reference_vars_to_consider.
9072         (stream_out_bitmap): Update.
9073         (ipa_reference_read_optimization_summary): Update.
9075 2019-10-23  qing zhao  <qing.zhao@oracle.com>
9077         PR gcov-profile/91971
9078         * coverage.c (coverage_init): Mangle the full path of filename when
9079         filename is a absolute path.
9081 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9083         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
9084         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
9085         (msp430_has_hwmult): New.
9086         (msp430_output_labelref):
9087         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
9088         * config/msp430/msp430.md (mulhisi3): Likewise.
9089         (umulhisi3): Likewise.
9090         (mulsidi3): Likewise.
9091         (umulsidi3): Likewise.
9093 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
9095         PR ipa/92074
9096         * params.def (inline-heuristics-hint-percent): Set to 600.
9098 2019-10-23  Richard Biener  <rguenther@suse.de>
9100         PR tree-optimization/65930
9101         * tree-vect-loop.c (check_reduction_path): Allow conversions
9102         that only change the sign.
9103         (vectorizable_reduction): Relax latch def stmts we handle further.
9105 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
9107         PR debug/90231
9108         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
9109         (remove_unused_ivs): Use it instead of get_computation_at.  When
9110         choosing best candidate, only consider candidates where
9111         get_debug_computation_at actually returns non-NULL.
9113 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
9115         PR tree-optimization/92131
9116         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
9117         range would be symbolic, drop to varying for any explicit overflow
9118         in the constant part or if neither range is a singleton.
9120 2019-10-23  Martin Liska  <mliska@suse.cz>
9122         PR middle-end/81669
9123         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
9124         Initialize m_data.
9126 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9128         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
9129         int_mode_for_mode rather than mode_for_int_vector for scalars.
9131 2019-10-23  Richard Biener  <rguenther@suse.de>
9133         PR tree-optimization/92179
9134         * tree-vect-stmts.c (vectorizable_shift): For shift args
9135         that are all the same remove type restriction in the SLP case.
9136         Adjust SLP code to handle converting of the shift arg to
9137         only apply in case the modes are different.
9139 2019-10-23  Martin Liska  <mliska@suse.cz>
9141         PR ipa/91969
9142         * ipa-inline.c (recursive_inlining): Do not print
9143         when curr->count is not initialized.
9145 2019-10-23  Richard Biener  <rguenther@suse.de>
9147         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
9148         op from scalars in case there's a constant operand in its
9149         definition.
9151 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
9153         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
9154         against out of range max skip or log values.
9156 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
9158         * cgraph.c (dump_graphviz): Change name to dump_name
9160 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
9162         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
9163         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9164         subtraction from a carry operation.
9166 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
9168         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
9170 2019-10-22  Richard Biener  <rguenther@suse.de>
9172         PR tree-optimization/92173
9173         * tree-vect-loop.c (vectorizable_reduction): If
9174         vect_transform_reduction cannot handle code-generation try without
9175         the single-def-use-cycle optimization.  Pass optab_vector to
9176         optab_for_tree_code to get vector shifts as that's what we'd
9177         generate.
9179 2019-10-22  Michael Matz  <matz@suse.de>
9181         PR middle-end/90796
9182         * gimple-loop-jam.c (any_access_function_variant_p): New function.
9183         (adjust_unroll_factor): Use it to constrain safety, new parameter.
9184         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
9186 2019-10-22  Richard Biener  <rguenther@suse.de>
9188         PR tree-optimization/92173
9189         * tree-vect-loop.c (vectorizable_reduction): If
9190         vect_transform_reduction cannot handle code-generation try without
9191         the single-def-use-cycle optimization.  Pass optab_vector to
9192         optab_for_tree_code to get vector shifts as that's what we'd
9193         generate.
9195 2019-10-22  Martin Liska  <mliska@suse.cz>
9197         * diagnostic-format-json.cc (json_from_expanded_location):
9198         Use json::integer_number.
9199         * gcov.c (output_intermediate_json_line): Use new
9200         json::integer_number.
9201         (output_json_intermediate_file): Likewise.
9202         * json.cc (number::print): Move to ...
9203         (float_number::print): ... this.
9204         (integer_number::print): New.
9205         (test_writing_numbers): Move to ...
9206         (test_writing_float_numbers): ... this.
9207         (test_writing_integer_numbers): New.
9208         (json_cc_tests): Register test_writing_integer_numbers.
9209         * json.h (class value): Add forward declaration
9210         for float_number and integer_number.
9211         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
9212         (class number): Move to ...
9213         (class float_number): ... this.
9214         (class integer_number): New.
9215         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
9216         Use json::integer_number.
9217         (optrecord_json_writer::location_to_json): Likewise.
9218         (optrecord_json_writer::profile_count_to_json): Likewise.
9219         (optrecord_json_writer::pass_to_json): Likewise.
9221 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9223         * tree-vect-slp.c (vect_slp_bb_region): Check whether
9224         autodetected_vector_size rather than vector_size is zero.
9225         * tree-vect-loop.c (vect_analyze_loop): Likewise.
9226         Set autodetected_vector_size immediately after calling
9227         vect_analyze_loop_2.  Check for a fatal error before advancing
9228         next_size.
9230 2019-10-21  Jason Merrill  <jason@redhat.com>
9232         * lock-and-run.sh: Check for process existence rather than timeout.
9234 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9236         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
9237         widening multiplication.
9239 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
9241         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
9242         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
9243         type attribute.
9244         (subsi3_carryin_shift): Separate into register and constant controlled
9245         alternatives.  Use shift_amount_operand for operand 4.  Set shift
9246         attribute and simplify type attribute.
9247         (subsi3_carryin_shift_alt): Likewise.
9248         (rsbsi3_carryin_shift): Likewise.
9249         (rsbsi3_carryin_shift_alt): Likewise.
9250         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
9251         and register controlled shifts into distinct alternatives.
9252         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
9253         (andsi_not_shiftsi_si_scc): Likewise.
9254         (arm_cmpsi_negshiftsi_si): Likewise.
9255         (not_shiftsi): Remove redundant M constraint from alternative 1.
9256         (not_shiftsi_compare0): Likewise.
9257         (arm_cmpsi_insn): Remove redundant alternative 2.
9258         (cmpsi_shift_swp): Likewise.
9259         (sub_shiftsi): Likewise.
9260         (sub_shiftsi_compare0_scratch): Likewise.
9261         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
9262         (thumb2_cmpsi_neg_shiftsi): Likewise.
9264 2019-10-21  Richard Biener  <rguenther@suse.de>
9266         PR tree-optimization/92162
9267         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
9268         STMT_VINFO_REDUC_IDX in reduc_info.
9269         * tree-vect-stmts.c (vectorizable_condition): Likewise.
9271 2019-10-21  Richard Biener  <rguenther@suse.de>
9273         * tree-vectorizer.h (_slp_tree::ops): New member.
9274         (SLP_TREE_SCALAR_OPS): New.
9275         (vect_get_slp_defs): Adjust prototype.
9276         * tree-vect-slp.c (vect_free_slp_tree): Release
9277         SLP_TREE_SCALAR_OPS.
9278         (vect_create_new_slp_node): Initialize it.  New overload for
9279         initializing by an operands array.
9280         (_slp_oprnd_info::ops): New member.
9281         (vect_create_oprnd_info): Initialize it.
9282         (vect_free_oprnd_info): Release it.
9283         (vect_get_and_check_slp_defs): Populate the operands array.
9284         Do not swap operands in the IL when not necessary.
9285         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
9286         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
9287         swap operands in the operands array.  Do not swap operands in
9288         the IL.
9289         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
9290         (vect_gather_slp_loads): Fix.
9291         (vect_detect_hybrid_slp_stmts): Likewise.
9292         (vect_slp_analyze_node_operations_1): Search for a internal
9293         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
9294         (vect_slp_analyze_node_operations): Skip ops-only stmts for
9295         the def-type push/pop dance.
9296         (vect_get_constant_vectors): Compute number_of_vectors here.
9297         Use SLP_TREE_SCALAR_OPS and simplify greatly.
9298         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
9299         (vect_get_slp_defs): Simplify greatly.
9300         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
9301         (vect_transform_reduction): Likewise.
9302         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
9303         (vectorizable_call): Likewise.
9304         (vectorizable_operation): Likewise.
9305         (vectorizable_load): Likewise.
9306         (vectorizable_condition): Likewise.
9307         (vectorizable_comparison): Likewise.
9309 2019-10-21  Richard Biener  <rguenther@suse.de>
9311         PR tree-optimization/92161
9312         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
9313         for reductions.
9315 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9317         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
9318         (aarch64_rndr): New define_insn.
9319         (aarch64_rndrrs): Likewise.
9320         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
9321         (TARGET_RNG): Likewise.
9322         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
9323         argument.
9324         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
9325         Add fourth argument in prototype.
9326         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
9327         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
9328         (aarch64_init_rng_builtins): Define.
9329         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
9330         (aarch64_expand_rng_builtin): Define.
9331         (aarch64_general_expand_builtin): Use IGNORE argument, handle
9332         RNG builtins.
9333         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9334         __ARM_FEATURE_RNG when TARGET_RNG.
9335         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
9337 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9339         * tree-vect-stmts (ensure_base_align): Only change alignment if new
9340         alignment is more restrictive.
9342 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9344         * tree-vectorizer.h (vec_info::vector_size): New member variable.
9345         (vect_update_max_nunits): Update comment.
9346         (current_vector_size): Delete.
9347         * tree-vect-stmts.c (current_vector_size): Likewise.
9348         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
9349         of current_vector_size.
9350         (get_mask_type_for_scalar_type): Likewise.
9351         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
9352         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
9353         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
9354         (vect_double_mask_nunits, vect_transform_loop): Likewise.
9355         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
9356         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
9358 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9360         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
9361         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
9362         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
9363         accordingly.
9365 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9367         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
9368         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
9369         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
9370         call accordingly.
9371         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9373 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9375         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
9376         a loop_vec_info.
9377         (vect_set_loop_condition_masked): Update call accordingly.
9379 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9381         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
9382         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
9383         (simple_integer_narrowing): Update call accordingly.
9384         (vectorizable_conversion): Likewise.
9386 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9388         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
9389         (vectorizable_call): Update call accordingly.
9391 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9393         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
9394         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
9395         (duplicate_and_interleave): Update call accordingly.
9396         * tree-vect-loop.c (vectorizable_reduction): Likewise.
9398 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9400         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
9401         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
9402         (vect_get_constant_vectors): Update call accordingly.
9403         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
9405 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9407         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
9408         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
9409         (vect_prologue_cost_for_slp_op): Update call accordingly.
9410         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
9411         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
9412         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
9413         (get_mask_type_for_scalar_type): Likewise.
9414         (vect_get_vector_types_for_stmt): Likewise.
9415         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9416         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9417         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
9418         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
9419         (vect_split_statement, vect_convert_input): Likewise.
9420         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
9421         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
9422         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
9423         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
9424         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
9425         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
9426         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
9427         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
9428         (vect_recog_mask_conversion_pattern): Likewise.
9429         (vect_add_conversion_to_pattern): Likewise.
9430         (vect_recog_gather_scatter_pattern): Likewise.
9431         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
9432         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
9434 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9436         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
9437         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
9438         (vect_check_load_store_mask): Update call accordingly.
9439         (vect_get_mask_type_for_stmt): Likewise.
9440         * tree-vect-patterns.c (check_bool_pattern): Likewise.
9441         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
9442         (vect_convert_mask_for_vectype): Likewise.
9444 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9446         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
9447         a vec_info.
9448         (vect_recog_dot_prod_pattern): Update call accordingly.
9449         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
9450         (vect_recog_widen_sum_pattern): Likewise.
9452 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9454         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
9455         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
9456         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
9457         accordingly.
9459 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9461         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
9462         get_vectype_for_scalar_type_and_size instead of
9463         get_vectype_for_scalar_type.
9465 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9467         * common.opt (-fcommon): Fix description.
9469 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
9471         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
9472         * config/i386/i386.c (ix86_pre_reload_split): New function.
9473         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
9474         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
9475         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
9476         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
9477         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
9478         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
9479         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
9480         *<shift_insn><dwi>3_doubleword_mask,
9481         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
9482         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
9483         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
9484         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
9485         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
9486         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
9487         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
9488         *avx2_<code>v8qiv8si2<mask_name>_2,
9489         *sse4_1_<code>v4qiv4si2<mask_name>_2,
9490         *sse4_1_<code>v4hiv4si2<mask_name>_2,
9491         *avx512f_<code>v8qiv8di2<mask_name>_2,
9492         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
9493         *sse4_1_<code>v2hiv2di2<mask_name>_2,
9494         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
9495         sse4_2_pcmpistr): Likewise.
9497 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
9499         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
9500         now defaults to https.
9502 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
9504         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
9505         skip non-zero array accesses.
9507 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9509         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
9510         and return a boolean success value.  Move the allocation and
9511         initialization of the bb_vec_info to...
9512         (vect_slp_bb_region): ...here.  Update call accordingly.
9513         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
9514         than in vect_slp_analyze_bb_1.
9516 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9518         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
9519         when processing the given datarefs for the first time and
9520         check_datarefs subsequently.
9521         (vect_slp_bb_region): New function, split out of...
9522         (vect_slp_bb): ...here.  Don't recompute the region bounds and
9523         dataref sets when retrying with a different vector size.
9525 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
9526             UroÅ¡ Bizjak  <ubizjak@gmail.com>
9528         PR target/92140
9529         * config/i386/predicates.md (int_nonimmediate_operand): New special
9530         predicate.
9531         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
9532         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
9533         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
9534         define_insn_and_split patterns.
9536 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
9538         * config/rs6000/rs6000.md: Delete out--of-date comment about
9539         special-casing integer loads.
9541 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
9543         * escaped_string.h (escaped_string): New header.
9544         * tree.c (escaped_string): Remove escaped_string class.
9546 2019-10-18  Martin Sebor  <msebor@redhat.com>
9548         PR tree-optimization/92157
9549         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
9550         compute_string_length to return a negative result.
9552 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9554         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
9555         (negvsi3, negvdi3): Delete.
9556         (negdi2_compare): Delete.
9558 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9560         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
9561         operations.
9562         (subdi3_compare1): Delete pattern.
9563         (subvsi3_borrow): New insn pattern.
9564         (subvsi3_borrow_imm): Likewise.
9566 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9568         * config/arm/arm.md (subv<mode>4): Delete.
9569         (subvdi4): New expander pattern.
9570         (subvsi4): Likewise.  Handle some immediate values.
9571         (subvsi3_intmin): New insn pattern.
9572         (subvsi3): Likewise.
9573         (subvsi3_imm1): Likewise.
9574         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
9575         idioms.
9577 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9579         * config/arm/arm.md (usubvdi4): Allow registers or integers for
9580         incoming operands.  Early split the calculation into SImode
9581         operations.
9582         (usubvsi3_borrow): New insn pattern.
9583         (usubvsi3_borrow_imm): Likewise.
9585 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9587         * config/arm/arm.md (usubv<mode>4): Delete expansion.
9588         (usubvsi4): New pattern.  Allow some immediate values for inputs.
9589         (usubvdi4): New pattern.
9591 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9593         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
9594         or second operand of the PLUS inside a DImode equality test to be
9595         sign-extend when selecting CC_Vmode.
9596         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
9597         instructions.
9598         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
9599         expand patterns.
9600         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
9601         (addsi3_cin_vout_0): Likewise.
9602         (adddi3_compareV): Delete.
9604 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9606         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
9607         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
9608         to transform this back into the summation version when that leads
9609         to smaller code.
9611 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9613         * config/arm/arm.md (addv<mode>4): Delete.
9614         (addvsi4): New pattern.  Handle immediate values that the architecture
9615         supports.
9616         (addvdi4): New pattern.
9617         (addsi3_compareV): Rename to ...
9618         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
9619         and use COMPARE rather than NE.
9620         (addsi3_compareV_imm): New pattern.
9621         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
9622         a signed-overflow check.
9624 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9626         * config/arm/arm-modes.def (CC_ADC): New CC mode.
9627         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
9628         CC_ADCmode.
9629         (maybe_get_arm_condition_code): Handle CC_ADCmode.
9630         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
9631         with overflow.
9632         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
9633         expand patterns.
9634         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
9635         (addsi3_cin_cout_imm_insn): Likewise.
9636         (adddi3_compareC): Delete insn.
9637         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
9639 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9641         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
9642         * (uaddv<mode>4): Delete expansion pattern.
9643         (uaddvsi4): New pattern.
9644         (uaddvdi4): Likewise.
9645         (addsi3_compareC): Delete pattern, change callers to use
9646         addsi3_compare_op1.
9647         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
9648         reduce the number of alternatives and re-work type attribute handling.
9649         (addsi3_compare_op2): Clean up constraints to reduce the number of
9650         alternatives and re-work type attribute handling.
9651         (compare_addsi2_op0): Likewise.
9652         (compare_addsi2_op1): Likewise.
9654 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9656         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
9657         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
9658         for DImode operands.
9659         (arm_gen_dicompare_reg): Remove unreachable expansion code.
9660         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
9661         CC_NCVmode.
9662         * config/arm/arm.md (arm_cmpdi_insn): Delete.
9663         (arm_cmpdi_unsigned): Delete.
9665 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9667         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
9668         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
9669         unchanged only if that will be cheaper.
9670         (arm_select_cc_mode): Recognize a swapped comparison that will
9671         be regenerated using RSBS or RSCS.  Relax restriction on selecting
9672         CC_RSBmode.
9673         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
9674         a constant.
9675         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
9676         is CC_RSBmode.
9677         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
9678         as CCmode.
9679         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
9680         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
9682 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9684         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
9685         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
9686         need these modes.
9687         (arm_gen_dicompare_reg): New code to early expand the sub-operations
9688         of EQ, NE, LT, GE, LTU and GEU.
9689         * config/arm/iterators.md (CC_EXTEND): New code attribute.
9690         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
9691         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
9692         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
9693         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
9695 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9697         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
9698         operand 2.
9699         (cstoredi4): Similarly, but for operand 3.
9700         * config/arm/arm.c (arm_canoncialize_comparison): Allow
9701         canonicalization of unsigned compares with a constant on Arm.
9702         Prefer using const+1 and adjusting the comparison over swapping the
9703         operands whenever the original constant was not valid.
9704         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
9705         register here.
9706         (arm_validize_comparison): Do not force invalid DImode operands to
9707         registers here.
9709 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9711         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
9712         return CC_Zmode if comparing against a constant where one word is
9713         zero.
9714         (arm_gen_compare_reg): Split DImode handling to ...
9715         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
9716         against simple constants.
9717         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
9719 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9721         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
9722         (rsbsi3_carryin_shift_alt): Likewise.
9724 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9726         * config/arm/arm.md (negscc_borrow): New pattern.
9727         (mov_negscc): Don't split if the insn would match negscc_borrow.
9728         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
9729         (thumb2_mov_negscc_strict_it): Likewise.
9731 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9733         * config/arm/arm.c (arm_insn_cost): New function.
9734         (TARGET_INSN_COST): Override default definition.
9736 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9738         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9739         borrow operations.
9741 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9743         * config/arm/arm.c (strip_carry_operation): New function.
9744         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
9745         for SImode.
9747 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9749         * config/arm/predicates.md (arm_carry_operation): New special
9750         predicate.
9751         * config/arm/iterators.md (LTUGEU): Delete iterator.
9752         (cnb): Delete code attribute.
9753         (optab): Delete ltu and geu elements.
9754         * config/arm/arm.md (addsi3_carryin): Renamed from
9755         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
9756         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
9757         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
9758         (addsi3_carryin_clobercc): Similarly.
9759         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
9760         Thumb2 state.
9762 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9764         * config/arm/arm.md (arm_subdi3): Delete insn.
9765         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
9767 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9769         * config/arm/arm-modes.def (CC_RSB): New CC mode.
9770         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
9771         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
9772         return CC_RSBmode.
9773         (maybe_get_arm_condition_code): Handle CC_RSBmode.
9774         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
9775         expand.
9776         (subdi3): Rewrite to early-expand the sub-operations.
9777         (rsb_im_compare): New pattern.
9778         (negdi2): Delete.
9779         (negdi2_insn): Delete.
9780         (arm_negsi2): Correct type attribute to alu_imm.
9781         (negsi2_0compare): New insn pattern.
9782         (negsi2_carryin): New insn pattern.
9784 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9786         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
9787         operand 2.
9789 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9791         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9792         to match canonical form.
9794 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9796         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
9797         (extend<mode>di2): Likewise.
9799 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9801         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
9802         * config/arm/arm.c (arm_decompose_di_binop): New function.
9803         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
9804         If not generating Thumb-1 code, decompose the operation into 32-bit
9805         pieces.
9806         * add0si_carryin_<optab>: New pattern.
9808 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
9810         * arm.md (adddi3): Only accept register operands.
9811         (arm_adddi3): Convert to simple insn with no split.  Do not accept
9812         constants.
9813         (adddi_sesidi_di): Delete patern.
9814         (adddi_zesidi_di): Likewise.
9815         (uaddv<mode>4): Use LTU as condition for branch.
9816         (adddi3_compareV): Convert to simple insn with no split.
9817         (addsi3_compareV_upper): Delete pattern.
9818         (adddi3_compareC): Convert to simple insn with no split.  Correct
9819         flags setting expression.
9820         (addsi3_compareC_upper): Delete pattern.
9821         (addsi3_compareC): Correct flags setting expression.
9822         (subdi3_compare1): Convert to simple insn with no split.
9823         (subsi3_carryin_compare): Delete pattern.
9824         (arm_subdi3): Convert to simple insn with no split.
9825         (subdi_zesidi): Delete pattern.
9826         (subdi_di_sesidi): Delete pattern.
9827         (subdi_zesidi_di): Delete pattern.
9828         (subdi_sesidi_di): Delete pattern.
9829         (subdi_zesidi_zesidi): Delete pattern.
9830         (negvdi3): Use s_register_operand.
9831         (negdi2_compare): Convert to simple insn with no split.
9832         (negdi2_insn): Likewise.
9833         (negsi2_carryin_compare): Delete pattern.
9834         (negdi_zero_extendsidi): Delete pattern.
9835         (arm_cmpdi_insn): Convert to simple insn with no split.
9836         (negdi2): Don't call gen_negdi2_neon.
9837         * config/arm/neon.md (adddi3_neon): Delete pattern.
9838         (subdi3_neon): Delete pattern.
9839         (negdi2_neon): Delete pattern.
9840         (splits for negdi2_neon): Delete splits.
9842 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9844         PR middle-end/92153
9845         * ggc-page.c (release_pages): Read g->alloc_size before free rather
9846         than after it.
9848 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9850         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9851         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
9852         new multilib variants and new mappings.
9854 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
9856         PR target/86040
9857         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9859 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9860             Richard Sandiford  <richard.sandiford@arm.com>
9862         PR target/86753
9863         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9864         and define hashmap traits for it.
9865         (loop_vec_info::scalar_cond_masked_set): New member.
9866         (vect_record_loop_mask): Adjust prototype.
9867         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9868         Implement method.
9869         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9870         vect_record_loop_mask.
9871         (vectorizable_live_operation): Likewise.
9872         (vect_record_loop_mask): New param scalar_mask. Add entry
9873         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9874         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9875         Pass it as last arg to vect_record_loop_mask.
9876         (vectorizable_call): Pass scalar_mask as last arg to
9877         vect_record_loop_mask.
9878         (vectorizable_store): Likewise.
9879         (vectorizable_load): Likewise.
9880         (vectorizable_condition): Check if another part of vectorized code
9881         applies loop_mask to condition or to it's inverse, and if yes,
9882         apply loop_mask to result of vector comparison.
9884 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
9886         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9888 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
9890         PR tree-optimization/92056
9891         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9892         before calling compute_builtin_object_size.
9894 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
9896         PR target/65342
9897         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9898         (movdi_low_st): Delete.
9899         * config/rs6000/rs6000.c
9900         (darwin_rs6000_legitimate_lo_sum_const_p): New.
9901         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9902         * config/rs6000/rs6000.md (movsi_low): Delete.
9904 2019-10-17  Jason Merrill  <jason@redhat.com>
9906         * gimplify.h (get_initialized_tmp_var): Add default argument to
9907         post_p.
9908         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9909         NULL post_p argument.
9910         * targhooks (std_gimplify_va_arg_expr): Likewise.
9912 2019-10-17  Richard Biener  <rguenther@suse.de>
9914         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9915         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9916         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9917         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9918         * tree-vect-loop.c (vect_is_simple_reduction): Set
9919         STMT_VINFO_REDUC_CODE.
9920         (vectorizable_reduction): Remove dead and redundant code, use
9921         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9923 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
9925         Fix breakage introduced by r276985.
9927         * config/avr/avr.c (avr_option_override): Remove set of
9928         PARAM_ALLOW_STORE_DATA_RACES.
9929         * common/config/avr/avr-common.c (avr_option_optimization_table)
9930         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9932 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
9934         * config/i386/i386.h (processor_costs): Add clear_ratio.
9935         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9936         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9937         of 6 and move_ratio in all cost models.
9939 2019-10-17  Richard Biener  <rguenther@suse.de>
9941         * tree-vect-loop.c (check_reduction_path): Compute reduction
9942         operation here.
9943         (vect_is_simple_reduction): Remove special-case of single-stmt
9944         reduction path detection.
9946 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
9948         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9950 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
9952         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9953         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9954         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9955         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9956         New combine patterns.
9957         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9958         above.
9959         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9961 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
9963         * tree-vrp.c (value_range_base::dump): Display +INF for both
9964         pointers and integers when appropriate.
9966 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9968         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9969         when to use versioning threshold.
9971 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9973         * tree-vect-loop.c (determine_peel_for_niter): New function contained
9974         outlined code from ...
9975         (vect_analyze_loop_2): ... here.
9977 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9979         * tree-vect-loop.c (vect_transform_loop): Move code from here...
9980         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9981         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9983 2019-10-17  Richard Biener  <rguenther@suse.de>
9985         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9986         (vect_is_simple_reduction): Move all validity checks ...
9987         (vectorizable_reduction): ... here.  Compute whether we
9988         need a fold-left reduction here.
9989         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9990         both overloads, check needs_fold_left_reduction_p directly.
9991         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9993 2019-10-17  Richard Biener  <rguenther@suse.de>
9995         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9996         TARGET_MEM_REF creation.
9998 2019-10-17  Richard Biener  <rguenther@suse.de>
10000         PR tree-optimization/92129
10001         * tree-vect-loop.c (vectorizable_reduction): Also fail
10002         on GIMPLE_SINGLE_RHS.
10004 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
10006         PR tree-optimization/92056
10007         * tree-object-size.c (cond_expr_object_size): Return early if then_
10008         processing resulted in unknown size.
10010         PR tree-optimization/92115
10011         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
10012         temporary if it could trap.
10014 2019-10-17  Richard Biener  <rguenther@suse.de>
10016         PR debug/91887
10017         * dwarf2out.c (gen_formal_parameter_die): Also try to match
10018         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
10020 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
10022         * tree-ssa-strlen.c (maybe_invalidate): Use
10023         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
10025 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
10026             Jim Wilson  <jimw@sifive.com>
10028         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
10029         regs to SIBCALL_REGS.
10030         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
10031         passing regs to SIBCALL_REGS.
10033 2019-10-16  Martin Sebor  <msebor@redhat.com>
10035         PR tree-optimization/83821
10036         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
10037         the length of a string when available.
10038         (handle_builtin_memset) Add argument.
10039         (handle_store, strlen_check_and_optimize_call): Same.
10040         (check_and_optimize_stmt): Same.  Pass it to callees.
10042 2019-10-16  Martin Sebor  <msebor@redhat.com>
10044         PR tree-optimization/91996
10045         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
10046         information.
10047         (compare_nonzero_chars): Add an overload.
10048         (count_nonzero_bytes): Add an argument.  Call overload above.
10049         Handle non-constant lengths in some range.
10050         (handle_store): Add an argument.
10051         (check_and_optimize_stmt): Pass an argument to handle_store.
10053 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
10055         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
10057 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
10059         * config/mips/mips.c (mips_expand_builtin_insn): Force the
10060         operands which correspond to the same input-output register to
10061         have the same pseudo assigned to them.
10063 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
10065         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
10067 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
10069         * config/aarch64/aarch64.c (aarch64_classify_symbol):
10070         Apply reasonable limit to symbol offsets.
10072 2019-10-16  Richard Biener  <rguenther@suse.de>
10074         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
10075         (vect_is_simple_reduction): Delay checking to
10076         vectorizable_reduction and relax the checking.
10077         (vectorizable_reduction): Check we have a simple use.  Check
10078         for bogus condition reductions.
10079         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
10080         are looking at the last stmt in a pattern sequence when
10081         filling in backedge PHI values.
10083 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
10084             Jiufu Guo  <guojiufu@linux.ibm.com>
10086         PR target/70010
10087         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
10088         the callee explicitly disables some isa_flags the caller is using.
10090 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10092         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
10094 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10096         * genmodes.c (mode_data::order): New field.
10097         (blank_mode): Update accordingly.
10098         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
10099         (make_vector_modes): Likewise.
10100         (VECTOR_MODES): Update use accordingly.
10101         (cmp_modes): Sort by the new order field ahead of sorting by size.
10102         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
10103         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
10104         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
10105         (aarch64_classify_vector_mode): Handle the new partial modes.
10106         (aarch64_vl_bytes): New function.
10107         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
10108         when counting the number of registers in an SVE mode.
10109         (aarch64_class_max_nregs): Likewise.
10110         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
10111         in registers yet.
10112         (aarch64_classify_address): Treat partial vectors analogously
10113         to full vectors.
10114         (aarch64_print_address_internal): Consolidate the printing of
10115         MUL VL addresses, using aarch64_vl_bytes as the number of
10116         bytes represented by "VL".
10117         (aarch64_vector_mode_supported_p): Reject partial vector modes.
10119 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10121         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
10122         rather than known_lt when choosing frame layouts.
10124 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10126         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
10127         that all the adjustments add up to the full frame size.
10128         Use crtl->outgoing_args_size directly as the final adjustment
10129         where appropriate.
10131 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10133         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
10134         "frame" reference instead of always referring directly to
10135         "cfun->machine->frame".
10137 2019-10-16  Richard Biener  <rguenther@suse.de>
10139         PR tree-optimization/92119
10140         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
10141         against missing bswap lhs.
10143 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
10145         PR middle-end/92033
10146         * poly-int.h (constant_lower_bound_with_limit): New function.
10147         (constant_upper_bound_with_limit): Likewise.
10148         * doc/poly-int.texi: Document them.
10149         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
10150         into the worst-case INTEGER_CST bounds.
10152 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
10154         PR ipa/91088
10155         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
10156         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
10157         * ipa-predicat.h (struct expr_eval_op): New struct.
10158         (expr_eval_ops): New typedef.
10159         (struct condition): Add type and param_ops fields, remove size field.
10160         (add_condition): Replace size parameter with type parameter, add
10161         param_ops parameter.
10162         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
10163         (predicate::add_clause): Add comparisons on type and param_ops.
10164         (dump_condition): Add debug dump for param_ops.
10165         (remap_after_inlining): Adjust call arguments to add_condition.
10166         (add_condition): Replace size parameter with type parameter, add
10167         param_ops parameter. Unshare constant value used in conditions.
10168         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
10169         parameter expressions using param_ops.
10170         (decompose_param_expr):  New function.
10171         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
10172         to replace call to unmodified_parm_or_parm_agg_item.
10173         (set_switch_stmt_execution_predicate): Likewise.
10174         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
10175         with type.
10176         (inline_read_section): Read param_ops from summary stream.
10177         (ipa_fn_summary_write): Write param_ops to summary stream.
10179 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
10181         PR rtl-optimization/92107
10182         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
10183         expression written.
10185 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
10187         * config/darwin.c: Update description of fix and continue.
10189 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
10191         * config/darwin.c (darwin_binds_local_p): Update to call
10192         default_binds_local_p_3 () directly. amend comments.
10194 2019-10-15  Richard Biener  <rguenther@suse.de>
10196         * lto-streamer-out.c (lto_variably_modified_type_p): New.
10197         (tree_is_indexable): Use it.
10198         * tree-streamer-out.c (pack_ts_type_common_value_fields):
10199         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
10200         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10202 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10204         * config/msp430/msp430.md (zero_extendqipsi2): New.
10205         (zero_extendqisi2): Optimize case where src register and base dst
10206         register are the same.
10207         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
10208         (zero_extendpsisi2): Optimize r->m case.
10209         Add unnamed insn patterns to catch insns combine searches for when
10210         optimizing pointer manipulation.
10212 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10214         * config/msp430/msp430.md: Group zero_extend* insns together.
10216 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10218         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
10219         constraint.
10220         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
10221         POST_INC.
10222         (msp430_subreg): Likewise.
10223         (msp430_split_addsi): Likewise.
10224         (msp430_print_operand_addr): Likewise.
10225         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
10226         (USE_STORE_POST_INCREMENT): Define.
10227         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
10228         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
10229         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
10230         (msp430_general_dst_operand): New.
10231         (msp430_general_dst_nonv_operand): New.
10232         (msp430_nonsubreg_operand): Remove.
10233         (msp430_nonsubreg_dst_operand): New.
10234         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
10235         of defunct msp430_nonsubreg_operand.
10236         (msp430_nonsubregnonpostinc_or_imm_operand): New.
10238 2019-10-15  Richard Biener  <rguenther@suse.de>
10240         PR tree-optimization/91929
10241         * tree-ssa-pre.c (pre_expr_d::loc): New member.
10242         (get_or_alloc_expr_for_name): Initialize it.
10243         (get_or_alloc_expr_for_constant): Likewise.
10244         (phi_translate_1): Copy it.
10245         (create_expression_by_pieces): Use the original location
10246         of the expression for the inserted stmt.
10247         (compute_avail): Record the location of the stmt for the
10248         expressions created.
10250 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10252         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
10253         before using tree_to_uhwi.
10255 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
10257         * config/s390/s390.md: Run %a0:DI splitters only after reload.
10259 2019-10-15  Richard Biener  <rguenther@suse.de>
10261         PR tree-optimization/92094
10262         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
10263         do not adjust the reduction definition def type.
10264         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
10265         defines the latch argument of the PHI.
10267 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
10269         PR target/92035
10270         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
10271         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
10272         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
10273         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
10274         _mm_maskz_roundscale_round_sd): New intrinsics.
10275         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
10276         __builtin_ia32_rndscales?_mask_round builtins instead of
10277         __builtin_ia32_rndscales?_round.
10278         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
10279         __builtin_ia32_rndscalesd_round): Remove.
10280         (__builtin_ia32_rndscaless_mask_round,
10281         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
10282         * config/i386/sse.md
10283         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
10284         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
10285          ... this, adjust and add subst atrributes to make it maskable.
10287 2019-10-15  Richard Biener  <rguenther@suse.de>
10289         PR middle-end/92046
10290         * common.opt (fallow-store-data-races): New.
10291         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
10292         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
10293         * doc/invoke.texi (fallow-store-data-races): Document.
10294         (--param allow-store-data-races): Remove docs.
10295         * opts.c (default_options_table): Enable -fallow-store-data-races
10296         at -Ofast.
10297         (default_options_optimization): Do not enable --param
10298         allow-store-data-races at -Ofast.
10299         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
10300         instead of PARAM_ALLOW_STORE_DATA_RACES.
10301         * tree-ssa-loop-im.c (execute_sm): Likewise.
10303 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10305         PR tree-optimization/92085
10306         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
10307         instead of calling it unconditionally after
10308         delete_dead_or_redundant_assignment and fix indentation.
10310 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
10312         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
10313         TARGET_VFP_DOUBLE.
10314         (*fmsub<SDF:mode>4): Likewise.
10315         *fnmsub<SDF:mode>4): Likewise.
10316         (*fnmadd<SDF:mode>4): Likewise.
10318 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
10320         * doc/tree-ssa.texi: Update renamed macro name.
10322 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
10324         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
10325         vector constants.
10327 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
10329         * config/darwin.c: Use unsigned ints for the picbase label
10330         counters, initialise the vars explicitly.
10331         (update_pic_label_number_if_needed): Move a variable declaration
10332         to where it's needed.
10333         (machopic_output_function_base_name): Use a more strict checking
10334         assert, and and unsigned int for the picbase label counter.
10335         (machopic_get_function_picbase): Likewise.
10337 2019-10-14  Richard Biener  <rguenther@suse.de>
10339         PR middle-end/92046
10340         * dse.c (scan_insn): Use param max_active_local_stores.
10341         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
10342         based on optimization level.
10343         * loop-invariant.c (move_loop_invariants): Adjust
10344         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
10345         * opts.c (default_options_optimization): Do not adjust
10346         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
10347         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
10349 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
10351         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
10353 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
10355         * config/arm/arm.c (arm_option_override): Don't override sched
10356         pressure algorithm.
10358 2019-10-14  Richard Biener  <rguenther@suse.de>
10360         PR tree-optimization/92069
10361         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
10362         cycles do not set vect_nested_cycle on the latch definition.
10364 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
10366         * function-abi.h (expr_callee_abi): Declare.
10367         * function-abi.cc (expr_callee_abi): New function.
10369 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
10371         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
10372         into [1,MAX].
10373         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
10374         non-zero being represented as [1,MAX].
10376 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
10378         * tree-sra.c (dump_access): Add missing braces.
10380 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
10382         * config/darwin.c (machopic_indirection_name): Rework the
10383         function to emit linker-visible symbols only for indirections
10384         in the data section.  Clean up the code and update comments.
10386 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
10388         * config/darwin.c (machopic_indirect_data_reference): Remove
10389         redundant code.
10391 2019-10-13  Nathan Sidwell  <nathan@acm.org>
10393         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
10395 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10397         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
10398         c99_runtime.
10400 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
10402         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
10403         so non-virutal are before virutals.
10404         (output_function): Avoid body modifications.
10406 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
10408         * config/pa/pa.c (pa_output_call): Load descriptor address to register
10409         %r22.  Load function address before global pointer.
10410         (pa_attr_length_indirect_call): Adjust length of inline versions of
10411         $$dyncall.
10412         (pa_output_indirect_call): Remove fast inline version of $$dyncall
10413         before normal cases.  Update inline $$dyncall sequences to preserve
10414         function descriptor address in register %r22.
10415         (TRAMPOLINE_CODE_SIZE): Adjust.
10416         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
10417         register %r22 contains trampoline address.
10418         (pa_trampoline_init): Adjust offsets.
10419         (pa_trampoline_adjust_address): Likewise.
10420         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
10422 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
10424         PR target/67183
10425         * config/darwin.c (machopic_indirection): New field to flag
10426         non-lazy-symbol-pointers in the data section.
10427         (machopic_indirection_name): Compute if an indirection should
10428         appear in the data section.
10429         (machopic_output_data_section_indirection): New callback split
10430         from machopic_output_indirection.
10431         (machopic_output_stub_indirection): Likewise.
10432         (machopic_output_indirection): Retain the code for non-lazy
10433         symbol pointers in their regular section.
10434         (machopic_finish): Use the new callbacks to order the indirection
10435         output.
10437 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
10439         * config/darwin-protos.h (machopic_finish): Delete.
10440         * config/darwin.c (machopic_finish): Make static.
10442 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
10444         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
10445         sections when building kernel extension code.
10447 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
10449         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
10450         later standard."
10452 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
10454         * config/pa/pa.c (pa_option_override): Remove trailing comma
10455         from warning.
10457 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
10459         PR middle-end/92063
10460         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
10461         <case VEC_COND_EXPR>: Return false with *handled = false.
10462         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
10463         recursing on the first operand.
10464         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
10465         instead of tree_could_trap_p.
10466         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
10468 2019-10-11  Jim Wilson  <jimw@sifive.com>
10470         PR rtl-optimization/91860
10471         * combine.c (subst): If new_rtx is a constant, also check for
10472         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
10474 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
10476         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
10477         INTVAL when calling store_bit_field.
10479 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
10481         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
10482         size.
10484 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10486         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
10487         vectorizable_live_operation.
10488         (vectorizable_live_operation): Adjust parameters.
10489         * tree-vect-stmts.c (vect_init_vector,
10490         vect_gen_widened_results_half): Fix typo in function comment.
10491         (can_vectorize_live_stmts): Adjust function comment.
10492         Adjust parameters.  Adjust call to vectorizable_live_operation.
10493         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
10494         (vect_transform_stmt): Adjust function comment.  Adjust call to
10495         can_vectorize_live_stmts.
10496         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
10498 2019-10-11  Richard Biener  <rguenther@suse.de>
10500         PR tree-optimization/90883
10501         PR tree-optimization/91091
10502         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
10503         alias-sets both for recording VN table entries and continuing
10504         walking after translating through copies.  Handle same-sized
10505         reads from SSA names by returning the plain SSA name.
10506         (eliminate_dom_walker::eliminate_stmt): Properly handle
10507         non-size precision stores in redundant store elimination.
10509 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
10511         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
10512         (ggc_collect): Dump later to not interfere with release_page dump.
10513         (ggc_trim): New function.
10514         * ggc-none.c (ggc_trim): New.
10515         * ggc.h (ggc_trim): Declare.
10517 2019-10-11  Richard Biener  <rguenther@suse.de>
10519         PR tree-optimization/92066
10520         PR tree-optimization/92046
10521         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10522         Fix bogus cost model check.
10524 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
10526         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
10527         (LANG_HOOKS_DECLS): Add it.
10528         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
10529         update comment for omp_is_optional_argument.
10530         * omp-general.c (omp_is_allocatable_or_ptr): New.
10531         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
10532         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
10533         Fortran's optional arguments and allocatable/pointer scalars
10534         with use_device_addr.
10536 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
10538         PR target/77918
10539         * config/s390/2827.md: Add new opcodes.
10540         * config/s390/2964.md: Likewise.
10541         * config/s390/3906.md: Likewise.
10542         * config/s390/8561.md: Likewise.
10543         * config/s390/s390-builtins.def (s390_vfchesb): Use
10544         the new vec_cmpgev4sf_quiet_nocc.
10545         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
10546         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
10547         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
10548         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
10549         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
10550         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
10551         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
10552         * config/s390/s390-modes.def (CCSFPS): New mode.
10553         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
10554         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
10555         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
10556         (s390_expand_vec_compare): Use non-signaling patterns where
10557         necessary.
10558         (s390_reverse_condition): Support CCSFPS.
10559         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
10560         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
10561         (asm_fcmp_op): Likewise.
10562         (*smaxv2df3_vx): Use pattern for quiet comparison.
10563         (*sminv2df3_vx): Likewise.
10564         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
10565         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
10566         (vec_cmpgt<mode>_quiet_nocc): Likewise.
10567         (vec_cmplt<mode>_quiet_nocc): New expander.
10568         (vec_cmpge<mode>_quiet_nocc): New pattern.
10569         (vec_cmple<mode>_quiet_nocc): New expander.
10570         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
10571         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
10572         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
10573         (*vec_cmpge<mode>_signaling_nocc): Likewise.
10574         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
10575         (vec_cmpungt<mode>): New expander.
10576         (vec_cmpunge<mode>): Likewise.
10577         (vec_cmpuneq<mode>): Use quiet patterns.
10578         (vec_cmpltgt<mode>): Allow only on z14+.
10579         (vec_cmpordered<mode>): Use quiet patterns.
10580         (vec_cmpunordered<mode>): Likewise.
10581         (VEC_CMP_EXPAND): Add ungt and unge.
10583 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
10585         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
10586         parameter.
10587         * lto-streamer-out.c: Include tree-dfa.h.
10588         (output_cfg): Do not use cfun.
10589         (lto_prepare_function_for_streaming): New.
10590         (output_function): Do not push cfun; do not initialize loop optimizer.
10591         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
10592         * passes.c (ipa_write_summaries): Use it.
10593         (ipa_write_optimization_summaries): Do not modify bodies.
10594         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
10595         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
10596         * tree-ssa-dse.c (pass_dse::execute): Update use of
10597         renumber_gimple_stmt_uids.
10598         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
10600 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
10602         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10603         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
10605 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
10607         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
10608         macros.
10609         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
10610         Also define DFP macros for these conditions.
10611         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
10612         DEC128_SUBNORMAL_MIN): Do not define.
10613         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
10614         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
10616 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
10617             Sandra Loosemore  <sandra@codesourcery.com>
10619         PR middle-end/26241
10620         * doc/lto.texi (IPA): Reference to the IPA passes.
10621         * doc/passes.texi (Pass manager): Add node IPA passes and
10622           description for each IPA pass.
10624 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10626         * ipa-reference.c: Do not include splay-tree.h
10627         (reference_vars_to_consider): Turn to hash map.
10628         (get_static_name, ipa_init, analyze_function, propagate,
10629         stream_out_bitmap, ipa_reference_write_optimization_summary,
10630         ipa_reference_write_optimization_summary): Update.
10632 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10634         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
10636 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
10638         * config/darwin.c: Lookup Objective C metadata and force indirection
10639         for IVAR refs.
10641 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
10643         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
10644         addresses.
10645         (mem_operand_gpr): Add check for prefixed addresses.
10646         (mem_operand_ds_form): Add check for prefixed addresses.
10647         (rs6000_legitimate_offset_address_p): If we support prefixed
10648         addresses, check for a 34-bit offset instead of 16-bit.
10649         (rs6000_legitimate_address_p): Add check for prefixed addresses.
10650         Do not allow load/store with update if the address is prefixed.
10651         (rs6000_mode_dependent_address):  If we support prefixed
10652         addresses, check for a 34-bit offset instead of 16-bit.
10654 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10656         PR target/77918
10657         * config/s390/vector.md (vcond_comparison_operator): New
10658         predicate.
10659         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
10661 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10663         PR 87488
10664         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
10665         -D.
10666         * configure.ac (--with-documentation-root-url): New option.
10667         * configure: Regenerate.
10668         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
10669         option URL, add it as a new string field of the diagnostic option.
10670         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
10671         (print_option_information): If get_option_url is non-NULL, call
10672         it, and if the result is non-NULL, potentially emit an escape
10673         sequence to markup the option text with the resulting URL.
10674         * diagnostic.h (diagnostic_context::get_option_url): New callback.
10675         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
10676         example of JSON output.
10677         * opts-diagnostic.h (get_option_url): New decl.
10678         * opts.c (get_option_url): New function.
10679         * toplev.c (general_init): Initialize the get_option_url callback.
10681 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
10683         PR 87488
10684         * common.opt (fdiagnostics-urls=): New option.
10685         (diagnostic-url.h): Add SourceInclude.
10686         (diagnostic_url_rule): New enum.
10687         * diagnostic-color.c: Include "diagnostic-url.h".
10688         (diagnostic_urls_enabled_p): New function.
10689         * diagnostic-url.h: New file.
10690         * diagnostic.c: Include "diagnostic-url.h".
10691         (diagnostic_urls_init): New function.
10692         * diagnostic.h (diagnostic_urls_init): New decl.
10693         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10694         -fdiagnostics-urls to the list.
10695         (-fdiagnostics-urls): New option.
10696         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
10697         (driver::global_initializations): Call diagnostic_urls_init.
10698         * opts-global.c (init_options_once): Likewise.
10699         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
10700         * pretty-print.c (pretty_printer::pretty_printer): Initialize
10701         show_urls.
10702         (pp_begin_url): New function.
10703         (pp_end_url): New function.
10704         (selftest::test_urls): New selftest.
10705         (selftest::pretty_print_c_tests): Call it.
10706         * pretty-print.h (pretty_printer::show_urls): New field.
10707         (pp_begin_url): New decl.
10708         (pp_end_url): New decl.
10710 2019-10-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10712         PR target/92022
10713         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
10715 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
10717         PR target/88630
10718         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
10719         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
10720         also for TARGET_FPU_SH4_300.
10721         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
10722         TARGET_SH4_300.
10723         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
10724         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
10725         (*negsf2_i): Split into ...
10726         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
10727         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
10728         (**abssf2_i): Split into ...
10729         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
10730         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
10731         (*negdf2_i): Split into ...
10732         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
10733         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
10734         (**abssf2_i): Split into ...
10735         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
10737 2019-10-10  Richard Biener  <rguenther@suse.de>
10739         PR middle-end/92046
10740         * opts.c (finish_options): Do not influence global --params
10741         from options that are adjustable per function.
10742         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10743         Apply --param adjustment based on active cost-model.
10744         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
10745         further store-sinking when vectorization or if-conversion
10746         are not enabled.
10748 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
10750         PR middle-end/92037
10751         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
10752         rather than ggc_alloc_cleared to alloc symbol table.
10753         * toplev.c (general_init): Likewise.
10754         * cgraph.h (symbol_table): Explicitly construct every field.
10756 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10758         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
10759         (PF_Z15): ... this.
10760         * config.gcc: Add z15 as option for --with-arch and --with-tune
10761         configure switches.
10762         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
10763         error reporting for unsupported builtins.
10764         * config/s390/s390-opts.h (enum processor_type): Rename
10765         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
10766         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
10767         * config/s390/driver-native.c (s390_host_detect_local_cpu):
10768         Likewise.
10769         * config/s390/s390-builtins.def: Likewise.
10770         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
10771         (s390_expand_builtin): Add missing check for unsupported builtins.
10772         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
10773         (s390_rtx_costs): Likewise.
10774         (s390_get_sched_attrmask): Rename arch13 to z15.
10775         (s390_get_unit_mask): Likewise.
10776         (s390_is_fpd): Likewise.
10777         (s390_is_fxd): Likewise.
10778         * config/s390/s390.h (enum processor_flags): Likewise.
10779         * config/s390/s390.md: Likewise.
10780         * config/s390/vector.md: Likewise.
10781         * config/s390/vx-builtins.md: Likewise.
10782         * config/s390/s390.opt: Add z15 to processor_type value.
10784 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
10786         PR target/91035
10787         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
10788         prototype.
10789         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
10790         ("split_stack_data", "split_stack_call")
10791         ("split_stack_call_<mode>", "split_stack_cond_call")
10792         ("split_stack_cond_call_<mode>"): Remove.
10793         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
10794         insn definition.
10795         * config/s390/s390.c (s390_output_split_stack_data): New function.
10796         (s390_expand_split_stack_prologue): Use the merged expander.
10798 2019-10-09  Martin Sebor  <msebor@redhat.com>
10800         PR tree-optimization/90879
10801         * builtins.c (check_access): Avoid using maxbound when null.
10802         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
10803         * doc/invoke.texi (-Wstring-compare): Document new warning option.
10804         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
10805         conditional.
10806         (get_range_strlen): Overwrite initial maxbound when non-null.
10807         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10808         changes.
10809         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10810         (used_only_for_zero_equality): New function.
10811         (handle_builtin_memcmp): Call it.
10812         (determine_min_objsize): Return an integer instead of tree.
10813         (get_len_or_size, strxcmp_eqz_result): New functions.
10814         (maybe_warn_pointless_strcmp): New function.
10815         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
10816         between a longer string and a smaller array.
10817         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10819 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10821         * config/darwin.c (darwin_override_options): Make the check for
10822         Objective-C ABI version more specific for 64bit code.
10824 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
10826         * config/darwin.c (machopic_indirect_data_reference): Set flag to
10827         indicate that the new symbol is an indirection.
10828         (machopic_indirect_call_target): Likewise.
10829         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10830         (MACHO_SYMBOL_INDIRECTION_P): New.
10831         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10833 2019-10-08  Jason Merrill  <jason@redhat.com>
10835         * doc/invoke.texi: Document -fconcepts-ts.
10837 2019-10-09  Richard Biener  <rguenther@suse.de>
10839         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10840         allow stmts other than GIMPLE_ASSIGN in nested cycles.
10842 2019-10-08  Richard Biener  <rguenther@suse.de>
10844         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10845         (_stmt_vec_info::force_single_cycle): Likewise.
10846         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10847         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10848         * tree-vect-loop.c (vectorizable_reduction): Set
10849         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10850         (vect_transform_reduction): Use them to remove redundant code.
10851         (vect_transform_cycle_phi): Likewise.
10853 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10855         PR tree-optimization/90836
10856         * match.pd (popcount): New pattern.
10858 2019-10-08  Martin Sebor  <msebor@redhat.com>
10860         PR middle-end/92026
10861         PR middle-end/92014
10862         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10863         again once nbytes has been set.  Set the access size when not yet set.
10865 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10867         * config/darwin.c (machopic_select_section): Remove dead code for
10868         old Objective-C section selection method, replace with unreachable.
10870 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
10872         * config/darwin.c (machopic_indirect_data_reference): Check for
10873         required indirections before making direct access to defined
10874         values.
10875         (machopic_output_indirection): Place the indirected pointes for
10876         required indirections into the non-lazy symbol pointers section.
10877         (darwin_encode_section_info):
10878         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10879         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10881 2019-10-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10883         PR target/91994
10884         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10885         instead of ALL_SSE_REG to check if function call preserves some
10886         256-bit SSE registers.
10888 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10890         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10891         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10892         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10894 2019-10-08  Richard Biener  <rguenther@suse.de>
10896         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10897         (_stmt_vec_info::is_reduc_info): Add.
10898         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10899         (vectorizable_condition): Remove.
10900         (vectorizable_shift): Likewise.
10901         (vectorizable_reduction): Adjust.
10902         (info_for_reduction): New.
10903         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10904         (vect_analyze_scalar_cycles_1): ... here.
10905         (vect_analyze_loop_operations): Adjust.
10906         (needs_fold_left_reduction_p): Simplify for single caller.
10907         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
10908         for nested cycles not part of double reductions.
10909         (vect_model_reduction_cost): Pass in the reduction type.
10910         (info_for_reduction): New function.
10911         (vect_create_epilog_for_reduction): Use it, access reduction
10912         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
10913         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10914         (vectorize_fold_left_reduction): Remove pointless assert.
10915         (vectorizable_reduction): Analyze the full reduction when
10916         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
10917         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
10918         stmt code-generation to vectorizable_* in most cases.  Verify
10919         code-generation only for cases handled by
10920         vect_transform_reductuon.
10921         (vect_transform_reduction): Use info_for_reduction to get at
10922         reduction meta.  Simplify.
10923         (vect_transform_cycle_phi): Likewise.
10924         (vectorizable_live_operation): Likewise.
10925         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10926         at the PHI node for STMT_VINFO_REDUC_TYPE.
10927         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10928         longer necessary code.
10929         * tree-vect-stmts.c (vectorizable_shift): Make static again.
10930         (vectorizable_condition): Likewise.  Get at reduction related
10931         info via info_for_reduction.
10932         (vect_analyze_stmt): Adjust.
10933         (vect_transform_stmt): Likewise.
10934         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10935         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10937 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
10939         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10940         -fno-fp-int-builtin-inexact default for C2X.
10942 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10943             Richard Biener  <rguenther@suse.de>
10945         PR tree-optimization/91532
10946         * tree-if-conv.c: Include tree-ssa-dse.h.
10947         (ifcvt_local_dce): Change param from bb to loop,
10948         and call dse_classify_store.
10949         (tree_if_conversion): Pass loop instead of loop->header as arg
10950         to ifcvt_local_dce.
10951         * tree-ssa-dse.c: Include tree-ssa-dse.h.
10952         (delete_dead_or_redundant_assignment): Remove static qualifier from
10953         declaration, and add prototype in tree-ssa-dse.h.
10954         (dse_store_status): Move to tree-ssa-dse.h.
10955         (dse_classify_store): Remove static qualifier and add new tree param
10956         stop_at_vuse, and add prototype in tree-ssa-dse.h.
10957         * tree-ssa-dse.h: New header.
10959 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10961         * config/darwin.c (machopic_output_indirection): Don't put
10962         hidden symbol indirections into the .data section, use the
10963         non-lazy symbol pointers section as normal.
10964         (darwin_encode_section_info): Record if a symbol is hidden.
10965         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10966         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10968 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
10970         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10971         predicates instead of accessing bits directly.
10972         (machopic_indirect_call_target): Likewise.
10973         (machopic_output_indirection): Likewise.
10974         (darwin_encode_section_info): Improve description.  Use renamed
10975         symbol flags.  Use predicate macros for variables and functions.
10976         * config/darwin.h:
10977         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10978         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10979         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10980         (MACHO_SYMBOL_VARIABLE_P): New.
10981         (MACHO_SYMBOL_DEFINED_P):New.
10982         (MACHO_SYMBOL_STATIC_P): New.
10983         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10984         (SYMBOL_FLAG_SUBT_DEP): New.
10985         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10987 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10989         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10990         (msp430_expand_epilogue): Likewise.
10991         * config/msp430/predicates.md: Likewise.
10992         * config/msp430/msp430.md: Likewise.
10993         Replace blocks of 8 spaces with tabs.
10995 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10997         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10998         * config/msp430/msp430.c (msp430_split_addsi): New.
10999         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
11000         a block of C code for splitting addsi.
11002 2019-10-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11004         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
11005         ix86_expand_rounddf_32): Reorder functions.
11006         * config/i386/i386-protos.h: Update.
11008 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
11010         * config.in: Regenerate.
11011         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
11012         Add new "Yx" constraint.
11013         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
11014         function.
11015         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
11016         prototype.
11017         * config/msp430/msp430.c (msp430_option_override): Allow the lower
11018         code/data region to be selected in the small memory model.
11019         (msp430_section_attr): Don't warn if the "section" and "lower"
11020         attributes are used together.
11021         (msp430_handle_generic_attribute): Likewise.
11022         (msp430_var_in_low_mem): New function.
11023         (TARGET_ENCODE_SECTION_INFO): Define.
11024         (msp430_encode_section_info): New function.
11025         (gen_prefix): Return early in the small memory model.
11026         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
11027         ".lower" prefix if -m{code,data}-region=lower have been passed.
11028         (msp430_output_aligned_decl_common): Emit common symbols when
11029         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
11030         set.
11031         (TARGET_ASM_FILE_END): Define.
11032         (msp430_file_end): New function.
11033         (msp430_do_not_relax_short_jumps): Allow relaxation when
11034         function will be in the lower region.
11035         (msp430_op_not_in_high_mem): New function.
11036         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
11037         the 'X' operand selector.
11038         Clarify comment for 'x' operand selector.
11039         * config/msp430/msp430.h (LINK_SPEC): Propagate
11040         -m{code,data}-region to the linker via spec function
11041         msp430_propagate_region_opt.
11042         (msp430_propagate_region_opt): New prototype.
11043         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
11044         (SYMBOL_FLAG_LOW_MEM): Define.
11045         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
11046         selector.
11047         (zero_extendqihi2): Fix operand number used by "%X" selector.
11048         (zero_extendqisi2): Likewise.
11049         (zero_extendhisi2): Likewise.
11050         (movqi): Use "Yx" constraint in place of "%X" operand selector.
11051         (movhi): Likewise.
11052         (addqi3): Likewise.
11053         (addhi3): Likewise.
11054         (addsi3): Likewise.
11055         (addhi3_cy): Likewise.
11056         (addchi4_cy): Likewise.
11057         (subqi3): Likewise.
11058         (subhi3): Likewise.
11059         (subsi3): Likewise.
11060         (bic<mode>3): Likewise.
11061         (and<mode>3): Likewise.
11062         (ior<mode>3): Likewise.
11063         (xor<mode>3): Likewise.
11064         (slli_1): Add missing "%X" operand selector.
11065         (slll_1): Likewise.
11066         (slll_2): Likewise.
11067         (srai_1): Likewise.
11068         (sral_1): Likewise.
11069         (sral_2): Likewise.
11070         (srli_1): Likewise.
11071         (srll_1): Likewise.
11072         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
11073         selector.
11074         (cbranchhi4_real): Likewise.
11075         (cbranchqi4_reversed): Likewise.
11076         (cbranchhi4_reversed): Likewise.
11077         (*bitbranch<mode>4): Likewise.
11078         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
11079         * config/msp430/msp430.opt (mcode-region=): Set default to
11080         MSP430_REGION_LOWER. Improve docstring.
11081         (mdata-region=): Likewise.
11082         (muse-lower-region-prefix): New option.
11083         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
11084         mdata-region=none multilib.
11085         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
11086         mdata-region=none multilib.
11087         MULTILIB_EXCEPTIONS: Remove.
11088         MULTILIB_REQUIRED: Define.
11089         * configure: Regenerate.
11090         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
11091         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
11092         * doc/extend.texi: Clarify comment for {upper,lower,either}
11093         function attributes.
11094         Add separate description for "lower" variable attribute.
11096 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
11098         PR target/77918
11099         * optabs-tree.c (vcond_icode_p): New function.
11100         (vcond_eq_icode_p): Likewise.
11101         (expand_vec_cond_expr_p): Use vcond_icode_p and
11102         vcond_eq_icode_p.
11103         * optabs.c (can_vcond_compare_p): New function.
11104         * optabs.h (can_vcond_compare_p): Likewise.
11106 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
11108         PR target/77918
11109         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
11110         caller passes a non-trapping condition.
11111         (is_gimple_condexpr): Allow trapping conditions.
11112         (is_gimple_condexpr_1): New helper function.
11113         (is_gimple_condexpr_for_cond): New function, acts like old
11114         is_gimple_condexpr.
11115         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
11116         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
11117         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
11118         * gimplify.c (gimplify_cond_expr): Use
11119         is_gimple_condexpr_for_cond.
11120         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
11121         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
11122         VEC_COND_EXPR.
11123         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
11124         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
11125         is_gimple_condexpr_for_cond, remove pointless tmp check
11126         (forward_propagate_into_cond): Remove pointless tmp check.
11128 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
11130         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
11131         match that of other gsi_next_* functions.  Adjust the comment.
11132         (gsi_start_nonvirtual_phis): New function.
11133         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
11134         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
11136 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
11138         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
11139         setjmp situation here.  Fix a verb's ending: "the exact variables or
11140         elements for which there are warnings depends" -> "... depend".
11142 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
11144         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
11146 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
11148         * ipa-prop.c (ipa_vr::nonzero_p): New.
11149         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
11150         non-zero range.
11151         * ipa-prop.h (class ipa_vr): Add nonzero_p.
11152         * tree-vrp.c (range_has_numeric_bounds_p): New.
11153         (range_int_cst_p): Use range_has_numeric_bounds_p.
11154         (get_range_op_handler): New.
11155         (supported_types_p): New.
11156         (defined_ranges_p): New.
11157         (drop_undefines_to_varying): New.
11158         (range_fold_binary_symbolics_p): New.
11159         (range_fold_unary_symbolics_p): New.
11160         (range_fold_unary_expr): Extract out into above functions.
11161         (range_fold_binary_expr): Same.
11162         (value_range_base::normalize_addresses): New.
11163         (value_range_base::normalize_symbolics): Normalize addresses.
11164         * tree-vrp.h (class value_range_base): Add normalize_addresses.
11166 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
11168         * tree-vrp.c (value_range_base::singleton_p): Use
11169         value_range_base::num_pairs instead of vrp_val_is* to check
11170         if a range has one sub-range.
11172 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11174         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
11175         DEF is not a true earlyclobber but is tied to a specific input
11176         operand, and so is effectively earlyclobber wrt inputs that have
11177         different values.
11178         (make_early_clobber_and_input_conflicts): Pass this case to the above.
11180 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11182         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
11183         (pod_mode): Mark operators likewise.
11184         (scalar_int_mode): Mark non-default constructors and
11185         operators with CONSTEXPR.
11186         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
11187         (fixed_size_mode): Likewise.
11189 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11191         PR target/91994
11192         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
11193         and wrap the unspec_volatile in a parallel.
11194         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
11195         the unspec_volatile.
11196         * config/i386/predicates.md (vzeroupper_pattern): Expect the
11197         unspec_volatile to be wrapped in a parallel.
11198         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
11199         (ix86_add_reg_usage_to_vzerouppers): New functions.
11200         (rest_of_handle_insert_vzeroupper): Use them to add register
11201         usage information to the vzeroupper instructions.
11203 2019-10-07  Richard Biener  <rguenther@suse.de>
11205         PR tree-optimization/91975
11206         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
11207         handle invariants.
11209 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
11211         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
11212         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
11214 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
11216         * config/darwin.c (darwin_override_options): Adjust objective-c
11217         ABI version error messages to avoid punctuation and contracted
11218         negations.
11220 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
11222         * ipa-inline.c: Fix type; compute size rather than self_size
11223         for size of caller function.
11225 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
11227         PR target/59888
11228         * config/darwin.c (darwin_rodata_section): Add relocation flag,
11229         choose const_data section for constants with relocations.
11230         (machopic_select_section): Pass relocation flag to
11231         darwin_rodata_section ().
11233 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
11235         PR tree-optimization/91734
11236         * generic-match-head.c: Include fold-const-call.h.
11237         * match.pd (sqrt(x) cmp c): Check the boundary value and
11238         in case inexact computation of c*c affects comparison of the boundary,
11239         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
11240         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
11241         for -frounding-math.  For c2, try the next smaller or larger floating
11242         point constant depending on comparison code and if it has the same
11243         sqrt as c2, use it instead of c2.
11245 2019-10-04  Martin Sebor  <msebor@redhat.com>
11247         PR middle-end/91977
11248         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
11249         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
11250         uninitialized objects.
11252 2019-10-04  Martin Sebor  <msebor@redhat.com>
11254         * builtins.c (compute_objsize): Add an argument.
11255         * tree-object-size.c (addr_object_size): Same.
11256         (compute_builtin_object_size): Same.
11257         * tree-object-size.h (compute_builtin_object): Same.
11259 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
11261         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
11263 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
11265         * match.pd (sinh (x) / cosh (x)): New simplification rule.
11267 2019-10-04  Martin Jambor  <mjambor@suse.cz>
11269         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
11270         fntype when switching to calling memcpy instead of memset.
11272 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11274         * hash-table.h (hash_table::empty_slow): Don't assign
11275         size_t values to int variables.
11277 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11279         * expr.c (convert_mode_scalar): Remove shadowing local var.
11280         (emit_block_move): Rename local vars.
11281         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
11282         (emit_push_insn): Rename local vars.
11283         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
11284         shadowing local vars.
11285         (store_constructor): Remove shadowing local vars.  Rename local var.
11286         (store_field, expand_cond_expr_using_cmove,
11287         expand_expr_real_2): Remove shadowing local vars.
11288         (expand_expr_real_1,
11289         do_store_flag): Remove shadowing local vars.  Rename local vars.
11291 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11293         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
11295 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11297         * genmatch.c (commutate): Rename local var.
11298         (lower_cond): Reuse local var.
11299         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
11300         dt_operand::gen, dt_operand::gen_gimple_expr,
11301         dt_simplify::gen): Add a param.  Rename generated vars.
11302         (decision_tree::insert_operand,
11303         (capture_info::walk_match, capture_info::walk_result,
11304         capture_info::walk_c_expr): Rename local vars.
11305         (expr::gen_transform): Rename generated vars.
11306         Use snprintf.  Rename local vars.
11307         (capture::gen_transform, dt_operand::get_name,
11308         dt_operand::gen_opname): Rename generated vars.
11309         (write_predicate): Adjust call to gen_kids.
11310         (parser::get_internal_capture_id): Rename generated vars.
11311         (parser::parse_expr): Rename local vars.
11312         (parser::parse_if): Remove local var.
11313         (parser::parse_pattern, add_operator): Rename local vars.
11315 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
11317         * builtins.def (DEF_C2X_BUILTIN): New macro.
11318         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
11319         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
11320         (strndup): Use DEF_C2X_BUILTIN.
11321         * coretypes.h (enum function_class): Add function_c2x_misc.
11323 2019-10-04  Maya Rashish  <coypu@sdf.org>
11325         * ira-color.c (update_costs_from_allocno): Call
11326         ira_init_register_move_cost_if_necessary.
11328 2019-10-04  Jeff Law  <law@redhat.com>
11330         * config/h8300/h8300.md (cpymemsi): Disable.
11331         (movmd, movmd_internal_<mode>, movstr, movsd):
11332         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
11333         (movmd splitter, movsd splitter): Likewise.
11335         * range-op.cc (range_tests): Avoid two tests when ints and
11336         shorts are the same size.
11338 2019-10-04  Richard Biener  <rguenther@suse.de>
11340         PR lto/91968
11341         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
11342         BLOCK_VARS.
11344 2019-10-04  Richard Biener  <rguenther@suse.de>
11346         PR tree-optimization/91982
11347         * tree-vect-loop.c (vectorizable_live_operation): Also guard
11348         against EXTRACT_LAST_REDUCTION.
11349         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
11351 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
11353         * range-op.o (value_range_from_overflowed_bounds): Rename from
11354         adjust_overflow_bound.
11355         (value_range_with_overflow): Rename from
11356         create_range_with_overflow.
11357         (create_possibly_reversed_range): Adjusted for above renames.
11358         (operator_*::wi_fold): Same.
11359         (cross_product_operator::wi_cross_productor): Same.
11361 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11363         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
11364         -Wshadow=compatible-local): Fix description.
11365         Add an example where -Wshadow=compatible-local does not
11366         warn.
11368 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
11370         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
11372         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
11373         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
11375 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
11377         * expr.c (emit_block_move_hints): Slightly cleaner fix to
11378         can_move_by_pieces issue.
11380 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
11382         PR target/87243
11383         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
11384         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
11385         is available and the user has not set one on the command line.
11387 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
11389         PR target/91769
11390         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
11391         instead of REGNO equality check on addr.reg.
11393 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
11395         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
11396         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
11397         * doc/invoke.texi (inline-heuristics-hint-percent,
11398         inline-heuristics-hint-percent-O2): Document.
11399         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
11400         hint attribute.
11401         (can_inline_edge_by_limits_p): Use it.
11403 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
11405         * config/arm/arm.c (arm_print_value): Use real_to_decimal
11406         to print CONST_DOUBLEs.
11408 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
11410         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
11411         * ipa-prop.c (ipcp_free_transformation_sum): New function.
11412         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
11414 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
11416         * Makefile.in (OBJS): Add range.o and range-op.o.
11417         Remove wide-int-range.o.
11418         * function-tests.c (test_ranges): New.
11419         (function_tests_c_tests): Call test_ranges.
11420         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
11421         range_fold_unary_expr instead of extract_range_from_unary_expr.
11422         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
11423         * range-op.cc: New file.
11424         * range-op.h: New file.
11425         * range.cc: New file.
11426         * range.h: New file.
11427         * selftest.h (range_tests): New prototype.
11428         * ssa.h: Include range.h.
11429         * tree-vrp.c (value_range_base::value_range_base): New
11430         constructors.
11431         (value_range_base::singleton_p): Do not call
11432         ranges_from_anti_range until sure we will need to.
11433         (value_range_base::type): Rename gcc_assert to
11434         gcc_checking_assert.
11435         (vrp_val_is_max): New argument.
11436         (vrp_val_is_min): Same.
11437         (wide_int_range_set_zero_nonzero_bits): Move from
11438         wide-int-range.cc.
11439         (extract_range_into_wide_ints): Remove.
11440         (extract_range_from_multiplicative_op): Remove.
11441         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
11442         from extract_range_from_binary_expr.
11443         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
11444         from extract_range_from_binary_expr.
11445         (extract_range_from_binary_expr): Remove.
11446         (normalize_for_range_ops): New.
11447         (range_fold_binary_expr): New.
11448         (range_fold_unary_expr): New.
11449         (value_range_base::num_pairs): New.
11450         (value_range_base::lower_bound): New.
11451         (value_range_base::upper_bound): New.
11452         (value_range_base::upper_bound): New.
11453         (value_range_base::contains_p): New.
11454         (value_range_base::invert): New.
11455         (value_range_base::union_): New.
11456         (value_range_base::intersect): New.
11457         (range_compatible_p): New.
11458         (value_range_base::operator==): New.
11459         (determine_value_range_1): Call range_fold_*expr instead of
11460         extract_range_from_*expr.
11461         * tree-vrp.h (class value_range_base): Add new constructors.
11462         Add methods for union_, intersect, operator==, contains_p,
11463         num_pairs, lower_bound, upper_bound, invert.
11464         (vrp_val_is_min): Add handle_pointers argument.
11465         (vrp_val_is_max): Same.
11466         (extract_range_from_unary_expr): Remove.
11467         (extract_range_from_binary_expr): Remove.
11468         (range_fold_unary_expr): New.
11469         (range_fold_binary_expr): New.
11470         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
11471         range_fold_binary_expr instead of extract_range_from_binary_expr.
11472         (vr_values::extract_range_basic): Same.
11473         (vr_values::extract_range_from_unary_expr): Call
11474         range_fold_unary_expr instead of extract_range_from_unary_expr.
11475         * wide-int-range.cc: Remove.
11476         * wide-int-range.h: Remove.
11478 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
11480         * config/rs6000/rs6000.c (mem_operand_gpr): Use
11481         SIGNED_16BIT_OFFSET_EXTRA_P macro.
11482         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
11483         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
11484         macro.
11486 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
11488         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
11489         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
11490         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
11491         * glimits.h: Likewise.
11493 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
11495         PR rtl-optimization/91976
11496         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
11497         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
11498         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
11500 2019-10-02  Martin Sebor  <msebor@redhat.com>
11502         PR tree-optimization/80936
11503         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
11505 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11507         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
11508         instead of reg_class_contents[ALL_REGS].
11510 2019-09-30  Jason Merrill  <jason@redhat.com>
11512         Add some hash_map_safe_* functions like vec_safe_*.
11513         * hash-map.h (default_hash_map_size): New variable.
11514         (create_ggc): Use it as default argument.
11515         (hash_map_maybe_create, hash_map_safe_get)
11516         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
11518 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
11520         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
11521         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
11522         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
11523         (can_inline_edge_by_limits_p): Use it.
11524         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
11525         (want_inline_small_function_p): Use O2 bounds.
11526         (edge_badness): LIkewise.
11527         * opts.c (default_options): Add OPT_finline_functions.
11528         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
11529         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
11530         New parameters.
11531         * doc/invoke.texi (-finline-functions): Update documentation.
11532         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
11533         inline-min-speedup-O2): Document.
11534         (early-inlining-insns-O2): Simplify docs.
11536 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
11538         PR rtl-optimization/87047
11539         * ifcvt.c (average_cost): New static function.  Use it...
11540         (noce_process_if_block): ... here.
11542 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
11544         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
11545         * config/rs6000/rs6000-string.c (expand_block_move): Add
11546         might_overlap parm.
11547         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
11548         (cpymemsi): Add might_overlap parm to expand_block_move() call.
11550 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
11552         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
11553         (expand_builtin_memcpy): Use might_overlap parm.
11554         (expand_builtin_mempcpy_args): Use might_overlap parm.
11555         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
11556         (expand_builtin_memory_copy_args): Add might_overlap parm.
11557         * expr.c (emit_block_move_via_cpymem): Rename to
11558         emit_block_move_via_pattern, add might_overlap parm, use cpymem
11559         or movmem optab as appropriate.
11560         (emit_block_move_hints): Add might_overlap parm, do the right
11561         thing for might_overlap==true.
11562         * expr.h (emit_block_move_hints): Update prototype.
11564 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
11566         * tree-eh.h (unsplit_eh_edges): Declare.
11567         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
11568         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
11569         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
11570         (struct store_immediate_info): Add lp_nr field.
11571         (store_immediate_info::store_immediate_info): Add NR2 parameter and
11572         initialize lp_nr with it.
11573         (struct merged_store_group): Add lp_nr and only_constants fields.
11574         (merged_store_group::merged_store_group): Initialize them.
11575         (merged_store_group::can_be_merged_into): Deal with them.
11576         (pass_store_merging): Rename terminate_and_release_chain into
11577         terminate_and_process_chain.
11578         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
11579         renaming and remove useless assertions.
11580         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
11581         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
11582         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
11583         instead of always recomputing it and compare lp_nr.
11584         (imm_store_chain_info::output_merged_store): If the group is in an
11585         active EH region, register new stores if they can throw.  Moreover,
11586         if the insertion has created new basic blocks, adjust the PHI nodes
11587         of the post landing pad.
11588         (imm_store_chain_info::output_merged_stores): If the original stores
11589         are in an active EH region, deregister them.
11590         (lhs_valid_for_store_merging_p): Prettify.
11591         (adjust_bit_pos): New function extracted from...
11592         (mem_valid_for_store_merging): ...here.  Use it for the base address
11593         and also for the offset if it is the addition of a constant.
11594         (lp_nr_for_store): New function.
11595         (pass_store_merging::process_store): Change return type to bool.
11596         Call lp_nr_for_store to initialize the store info.  Propagate the
11597         return status of various called functions to the return value.
11598         (store_valid_for_store_merging_p): New predicate.
11599         (enum basic_block_status): New enumeration.
11600         (get_status_for_store_merging): New function.
11601         (pass_store_merging::execute): If the function can throw and catch
11602         non-call exceptions, unsplit the EH edges on entry and clean up the
11603         CFG on exit if something changed.  Call get_status_for_store_merging
11604         for every basic block and keep the chains open across basic blocks
11605         when possible.  Terminate and process open chains at the end, if any.
11607 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11609         * reginfo.c (globalize_reg): Fix shadowed variable in
11610         function_abis walk.
11612 2019-10-02  Martin Jambor  <mjambor@suse.cz>
11614         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
11615         do not compute some stuff when set.
11616         (cgraph_node::create_edge): Likewise.
11617         (cgraph_node::create_indirect_edge): Renamed last parameter to
11618         coning_p and flipped its meaning, don't even calculate
11619         inline_failed when set.
11620         * cgraph.h (cgraph_node::create_edge): Add new parameter.
11621         (symbol_table::::create_edge): Likewise.
11622         (cgraph_node::create_indirect_edge): Rename last parameter, flip
11623         the default value.
11624         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
11625         call graph edge creating functions.
11627 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11629         PR c++/91222
11630         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
11631         namespace types.
11633 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
11635         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
11637 2019-10-02  Richard Biener  <rguenther@suse.de>
11639         * tree-vectorizer.h (vect_transform_reduction): Declare.
11640         * tree-vect-stmts.c (vect_transform_stmt): Use it.
11641         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
11642         stmt transform to ...
11643         (vect_transform_reduction): ... this.
11645 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
11647         * omp-low.c (lower_omp_target): Dereference optional argument
11648         to work with the right pointer.
11650 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
11652         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
11653         false.
11654         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
11655         * langhooks.h (omp_is_optional_argument): New hook.
11656         * omp-general.c (omp_is_optional_argument): New.
11657         * omp-general.h (omp_is_optional_argument): New declaration.
11658         * omp-low.c (lower_omp_target): Create temporary for received value
11659         and take the address for new_var if the original variable was a
11660         DECL_BY_REFERENCE.  Use size of referenced object when a
11661         pass-by-reference optional argument used as argument to firstprivate.
11663 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
11665         PR tree-optimization/91940
11666         * tree-vect-patterns.c: Include tree-vector-builder.h and
11667         vec-perm-indices.h.
11668         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
11669         unpromoting the argument back to uint16_t, or by converting into a
11670         rotate, or into shifts plus ior.
11672 2019-10-02  Richard Biener  <rguenther@suse.de>
11674         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
11675         New.
11676         (vect_transform_cycle_phi): Declare.
11677         * tree-vect-stmts.c (vect_transform_stmt): Call
11678         vect_transform_cycle_phi.
11679         * tree-vect-loop.c (vectorizable_reduction): Split out
11680         PHI transformation stage to ...
11681         (vect_transform_cycle_phi): ... here.
11683 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
11685         PR middle-end/91957
11686         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
11687         eliminable registers.
11688         (make_hard_regno_live): Likewise, and don't make them live.
11690 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
11692         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
11693         Call pp_emit_prefix.
11694         (layout::print_source_line): Likewise.
11695         (layout::start_annotation_line): Likewise.
11696         (diagnostic_show_locus): Remove call to temporarily clear the
11697         prefix.
11698         (selftest::test_one_liner_fixit_remove): Add test coverage for the
11699         interaction of pp_set_prefix with rulers and fix-it hints.
11700         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
11701         prefix when calling diagnostic_show_locus, rather than destroying
11702         it afterwards.
11703         (print_parseable_fixits): Temporarily clear prefix.
11704         * pretty-print.c (pp_format): Save and restore line_length, rather
11705         than assuming it is zero.
11706         (pp_output_formatted_text): Remove assertion that line_length is
11707         zero.
11709 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11711         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11712         Rename to ...
11713         (nonoverlapping_refs_since_match_p): ... this; handle also
11714         ARRAY_REFs.
11715         (alias_stats): Update stats.
11716         (dump_alias_stats): Likewise.
11717         (cheap_array_ref_low_bound): New function.
11718         (aliasing_matching_component_refs_p): Add partial_overlap
11719         argument;
11720         pass it to nonoverlapping_refs_since_match_p.
11721         (aliasing_component_refs_walk): Update call of
11722         aliasing_matching_component_refs_p
11723         (nonoverlapping_array_refs_p): New function.
11724         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
11725         indirect_refs_may_alias_p): Update calls of
11726         nonoverlapping_refs_since_match_p.
11728 2019-10-01  Maya Rashish  <coypu@sdf.org>
11730         PR target/85401
11731         * ira-color.c (allocno_copy_cost_saving): Call
11732         ira_init_register_move_cost_if_necessary.
11734 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
11736         * Makefile.in (gnat_install_lib): New variable.
11737         * configure.ac: Substitute it.
11738         * configure: Regenerate.
11740 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11742         PR lto/91222
11743         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
11744         is matched with non-C++ type
11746 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11748         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
11749         after local CSE.
11751 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
11753         * doc/invoke.texi (early-inlining-insns-O2): Document.
11754         (early-inlining-insns): Update.
11755         * params.def (early-inlining-insns-O2): New bound.
11756         (early-inlining-insns): Update docs.
11757         * ipa-inline.c (want_early_inline_function_p): Use new bound.
11759 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
11761         PR target/88562
11762         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
11763         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
11764         a memory access insn.
11766 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
11768         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
11769         vpmsumd.
11771 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11773         PR target/77918
11774         * config/s390/s390.c (s390_expand_vec_compare): Use
11775         gen_vec_cmpordered and gen_vec_cmpunordered.
11776         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
11777         vec_unordered): Delete.
11778         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
11779         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
11780         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
11781         (vec_cmp<code>): Generic dispatcher.
11783 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
11785         PR target/77918
11786         * config/s390/vector.md (V_HW): Add V1TI in order to make
11787         vcond$a$b generate vcondv1tiv1tf.
11789 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11791         PR rtl-optimization/91948
11792         * ira-build.c (ira_create_allocno): Initialize
11793         ALLOCNO_CROSSED_CALLS_ABIS.
11794         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
11795         than regno to ira_need_caller_save_p.
11797 2019-10-01  Alexandre Oliva <oliva@adacore.com>
11799         * config/i386/i386-options.c
11800         (ix86_recompute_optlev_based_flags): New, moved out of...
11801         (ix86_option_override_internal): ... this.  Call it.
11802         (ix86_override_options_after_change): Call it here too.
11804         PR debug/91507
11805         * dwarf2out.c (override_type_for_decl_p): New.
11806         (gen_variable_die): Use it.
11808 2019-10-01  Richard Biener  <rguenther@suse.de>
11810         * tree-vect-loop.c (vectorizable_reduction): Move variables
11811         to where they are used.
11813 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11815         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11816         (build_def_use): Use PC instead of CC0 in a comment.
11818 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11820         * rtl.def (CLOBBER_HIGH): Delete.
11821         * doc/rtl.texi (clobber_high): Remove documentation.
11822         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11823         (reg_is_clobbered_by_clobber_high): Delete.
11824         (gen_hard_reg_clobber_high): Likewise.
11825         * alias.c (record_set): Remove CLOBBER_HIGH handling.
11826         * cfgexpand.c (expand_gimple_stmt): Likewise.
11827         * combine-stack-adj.c (single_set_for_csa): Likewise.
11828         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11829         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11830         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11831         * cse.c (invalidate_reg): Remove clobber_high parameter.
11832         (invalidate): Update call accordingly.
11833         (canonicalize_insn): Remove CLOBBER_HIGH handling.
11834         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11835         (count_reg_usage, insn_live_p): Likewise.
11836         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11837         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11838         (cselib_invalidate_rtx_note_stores): Update call accordingly.
11839         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11840         (cselib_invalidate_regno, cselib_process_insn): Likewise.
11841         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11842         (mark_nonreg_stores_2): Likewise.
11843         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11844         (df_get_call_refs): Likewise.
11845         * dwarf2out.c (mem_loc_descriptor): Likewise.
11846         * emit-rtl.c (verify_rtx_sharing): Likewise.
11847         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11848         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11849         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11850         * genemit.c (gen_exp, gen_insn): Likewise.
11851         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11852         * haifa-sched.c (haifa_classify_rtx): Likewise.
11853         * ira-build.c (create_insn_allocnos): Likewise.
11854         * ira-costs.c (scan_one_insn): Likewise.
11855         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11856         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11857         * jump.c (mark_jump_label_1): Likewise.
11858         * lra-int.h (lra_insn_reg::clobber_high): Delete.
11859         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11860         handling.
11861         (mark_not_eliminable): Likewise.
11862         * lra-lives.c (process_bb_lives): Likewise.
11863         * lra.c (new_insn_reg): Remove clobber_high parameter.
11864         (collect_non_operand_hard_regs): Likewise.  Update call to new
11865         insn_reg.  Remove CLOBBER_HIGH handling.
11866         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
11867         to collect_non_operand_hard_regs.
11868         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11869         Update call to new_insn_reg.
11870         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11871         * postreload.c (reload_cse_simplify, reload_combine_note_use)
11872         (move2add_note_store): Likewise.
11873         * print-rtl.c (print_pattern): Likewise.
11874         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11875         (if_test_bypass_p): Likewise.
11876         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11877         * reginfo.c (reg_scan_mark_refs): Likewise.
11878         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11879         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11880         (forget_old_reloads_1): Likewise.
11881         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11882         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11883         (dbr_schedule): Likewise.
11884         * resource.c (update_live_status, mark_referenced_resources)
11885         (mark_set_resources): Likewise.
11886         * rtl.c (copy_rtx): Likewise.
11887         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11888         (note_pattern_stores): Likewise.
11889         (reg_is_clobbered_by_clobber_high): Delete.
11890         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11891         CLOBBER_HIGH handling.
11893 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11895         PR target/91452
11896         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11897         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11898         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11899         Handle ARM_PCS_TLSDESC.
11900         (aarch64_tlsdesc_abi_id): New function.
11901         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11902         rtx instead of a list of clobbers and clobber_highs.
11903         (tlsdesc_small_<mode>): Update accordingly.
11905 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11907         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11908         extra callee_abi argument.
11909         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11910         Insert a CALLEE_ABI unspec into the call pattern as the second
11911         element in the PARALLEL.
11912         (aarch64_simd_call_p): Delete.
11913         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11914         the new CALLEE_ABI element of the PARALLEL.
11915         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11916         from the function type, if given.
11917         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11918         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
11919         when passed the function_arg_info end marker.
11920         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11921         final argument of gen_sibcall.
11922         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11923         (call): Make operand 2 a const_int_operand and pass it to expand_call.
11924         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11925         pattern.
11926         (call_value): Likewise operand 3.
11927         (sibcall): Likewise operand 2.  Place the unspec before rather than
11928         after the return.
11929         (sibcall_value): Likewise operand 3.
11930         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11931         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11932         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
11933         constraint strings.
11934         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11936 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
11938         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11939         choose_hard_reg_mode.
11940         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11942 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11944         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11945         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11946         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11948 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
11950         * diagnostic-show-locus.c (line_label::line_label): Initialize
11951         m_has_vbar.
11952         (line_label::comparator): Reverse the sort order by m_state_idx,
11953         so that when the list is walked backwards the labels appear in
11954         order of insertion into the rich_location.
11955         (line_label::m_has_vbar): New field.
11956         (layout::print_any_labels): When dealing with multiple labels at
11957         the same line and column, only print vertical bars for the one
11958         with the highest label_line.
11959         (selftest::test_one_liner_labels): Update test for multiple labels
11960         to expect the labels to be in the order of insertion into the
11961         rich_location.  Add a test for many such labels, where the column
11962         numbers are out-of-order relative to the insertion order.
11964 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11966         * config/i386/i386.h (ix86_frame::expensive_p): New field.
11967         (ix86_frame::expensive_count): Likewise.
11968         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11969         of use_fast_prologue_epilogue robust against incidental changes
11970         in function size.
11972 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
11974         PR target/77918
11975         * config/s390/vector.md (vec_unordered<mode>): Call
11976         gen_vec_ordered<mode>.
11978 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
11980         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11981         New pattern for ASRD.
11982         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11983         * internal-fn.def (IFN_DIV_POW2): New internal function.
11984         * optabs.def (sdiv_pow2_optab): New optab.
11985         * tree-vect-patterns.c (vect_recog_divmod_pattern):
11986         Modify pattern to support new operation.
11987         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11988         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11989         Document new target selector.
11991 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
11993         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11994         to test whether we're compiling a vector PCS function and to test
11995         whether the function needs to save a particular register.
11996         Remove the vector PCS handling of df_set_regs_ever_live.
11997         (aarch64_components_for_bb): Use crtl->abi to test whether
11998         the function needs to save a particular register.
11999         (aarch64_process_components): Use crtl->abi to test whether
12000         we're compiling a vector PCS function.
12001         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
12002         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
12004 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12006         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
12007         Delete.
12008         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
12009         whether the block calls a function that clobbers more registers
12010         than the current function is allowed to.
12011         (aarch64_use_simple_return_insn_p): Delete.
12012         * config/aarch64/aarch64.md (simple_return): Remove condition.
12014 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12016         * function-abi.h (function_abi_aggregator): New class.
12017         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
12018         function.
12019         * ira.c (update_equiv_regs_prescan): New function.  Call
12020         set_paradoxical_subreg here rather than...
12021         (update_equiv_regs): ...here.
12022         (ira): Call update_equiv_regs_prescan.
12024 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12026         * hard-reg-set.h (regs_invalidated_by_call): Only define if
12027         IN_TARGET_CODE.
12028         (call_used_or_fixed_regs): Likewise.
12029         (call_used_or_fixed_reg_p): Likewise.
12030         * reginfo.c (regs_invalidated_by_call): New macro.
12032 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12034         * shrink-wrap.c: Include function-abi.h.
12035         (requires_stack_frame_p): Use crtl->abi to test whether the
12036         current function can use a register without saving it first.
12038 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12040         * sel-sched-ir.h (_def::crosses_call): Replace with...
12041         (_def::crossed_call_abis): ..this new field.
12042         (def_list_add): Take a mask of ABIs instead of a crosses_call
12043         boolean.
12044         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
12045         of _def accordingly.
12046         * sel-sched.c: Include function-abi.h.
12047         (hard_regs_data::regs_for_call_clobbered): Delete.
12048         (reg_rename::crosses_call): Replace with...
12049         (reg_rename::crossed_call_abis): ...this new field.
12050         (fur_static_params::crosses_call): Replace with...
12051         (fur_static_params::crossed_call_abis): ...this new field.
12052         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
12053         (init_hard_regs_data): Use crtl->abi to test which registers the
12054         current function would need to save before it uses them.
12055         (mark_unavailable_hard_regs): Update handling of call-clobbered
12056         registers, using call_clobbers_in_region to find out which registers
12057         might be call-clobbered (but without taking -fipa-ra into account
12058         for now).  Remove separate handling of partially call-clobbered
12059         registers.
12060         (verify_target_availability): Use crossed_call_abis instead of
12061         crosses_call.
12062         (get_spec_check_type_for_insn, find_used_regs): Likewise.
12063         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
12065 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12067         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
12068         function to test whether a register is fully or partly clobbered.
12070 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12072         * rtlanal.c: Include function-abi.h.
12073         (reg_set_p): Use insn_callee_abi to get the ABI of the called
12074         function and clobbers_reg_p to test whether the register
12075         is call-clobbered.
12076         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
12077         to get the ABI of the called function and full_reg_clobbers to
12078         get the set of fully call-clobbered registers.  Warn about the
12079         pitfalls of using this mode.
12081 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12083         * reload.c: Include function-abi.h.
12084         (find_equiv_reg): Use clobbers_reg_p to test whether either
12085         of the equivalent registers is clobbered by a call.
12086         * reload1.c: Include function-abi.h.
12087         (reg_reloaded_call_part_clobbered): Delete.
12088         (reload): Use crtl->abi to test which registers would need
12089         saving in the prologue before use.
12090         (find_reg): Likewise.
12091         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
12092         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
12093         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
12095 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12097         * regrename.h (du_head::call_clobber_mask): New field.
12098         (du_head::need_caller_save_reg): Replace with...
12099         (du_head::call_abis): ...this new field.
12100         * regrename.c: Include function-abi.h.
12101         (call_clobbered_in_chain_p): New function.
12102         (check_new_reg_p): Use crtl->abi when deciding whether a register
12103         is free for use after RA.  Use call_clobbered_in_chain_p to test
12104         whether a candidate register would be clobbered by a call.
12105         (find_rename_reg): Don't add call-clobber conflicts here.
12106         (rename_chains): Check call_abis instead of need_caller_save_reg.
12107         (merge_chains): Update for changes to du_head.
12108         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
12109         target.  Record the ABI identifier in call_abis and the set of
12110         fully or partially clobbered registers in call_clobber_mask.
12111         Add fully-clobbered registers to hard_conflicts here rather
12112         than in find_rename_reg.
12113         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
12114         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
12115         * config/aarch64/falkor-tag-collision-avoidance.c: Include
12116         function-abi.h.
12117         * config/c6x/c6x.c: Likewise.
12119 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12121         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
12122         mode of the register when deciding whether it is no longer
12123         available after a call.
12125 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12127         * recog.c: Include function-abi.h.
12128         (peep2_find_free_register): Use crtl->abi when deciding whether
12129         a register is free for use after RA.
12131 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12133         * postreload-gcse.c: Include regs.h and function-abi.h.
12134         (record_opr_changes): Use insn_callee_abi to get the ABI of the
12135         call insn target.  Conservatively assume that partially-clobbered
12136         registers are altered.
12138 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12140         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
12141         when deciding whether a register is free for use after RA.
12142         (reload_combine): Remove unnecessary use of fixed_reg_set.
12143         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
12144         call insn target.  Use reg_mode when testing whether a register
12145         is no longer available.
12147 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12149         * target.def (return_call_with_max_clobbers): Delete.
12150         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
12151         * doc/tm.texi: Regenerate.
12152         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
12153         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
12154         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
12155         (lra_reg::call_insn): Delete.
12156         * lra.c: Include function-abi.h.
12157         (initialize_lra_reg_info_element): Don't initialize the fields above.
12158         (lra): Use crtl->abi to test whether the current function needs to
12159         save a register in the prologue.  Remove special pre-inheritance
12160         lra_create_live_ranges pass for flag_ipa_ra.
12161         * lra-assigns.c: Include function-abi.h
12162         (find_hard_regno_for_1): Use crtl->abi to test whether the current
12163         function needs to save a register in the prologue.
12164         (lra_assign): Assert that registers aren't allocated to a
12165         conflicting register, rather than checking only for overlaps
12166         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
12167         and for registers that are not live across a call.
12168         * lra-constraints.c (last_call_for_abi): New variable.
12169         (full_and_partial_call_clobbers): Likewise.
12170         (setup_next_usage_insn): Remove the register from
12171         full_and_partial_call_clobbers.
12172         (need_for_call_save_p): Use call_clobbered_in_region_p to test
12173         whether the register needs a caller save.
12174         (need_for_split_p): Use full_and_partial_reg_clobbers instead
12175         of call_used_or_fixed_regs.
12176         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
12177         full_and_partial_call_clobbers.
12178         * lra-lives.c (check_pseudos_live_through_calls): Replace
12179         last_call_used_reg_set and call_insn arguments with an abi argument.
12180         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
12181         as the set of conflicting registers.
12182         (calls_have_same_clobbers_p): Delete.
12183         (process_bb_lives): Track the ABI of the last call instead of an
12184         insn/HARD_REG_SET pair.  Update calls to
12185         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
12186         the set of registers that could be clobbered by an EH edge.
12187         Include partially-clobbered as well as fully-clobbered registers.
12188         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
12189         * lra-remat.c: Include function-abi.h.
12190         (call_used_regs_arr_len, call_used_regs_arr): Delete.
12191         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
12192         registers and bitmap_view to combine them into dead_regs.
12193         (call_used_input_regno_present_p): Take a function_abi argument
12194         and use it to test whether a register is call-clobbered.
12195         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
12196         call insn target.  Update tje call to call_used_input_regno_present_p.
12197         (do_remat): Likewise.
12198         (lra_remat): Remove the initialization of call_used_regs_arr_len
12199         and call_used_regs_arr.
12201 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12203         * loop-iv.c: Include regs.h and function-abi.h.
12204         (simplify_using_initial_values): Use insn_callee_abi to get the
12205         ABI of the call insn target.  Conservatively assume that
12206         partially-clobbered registers are altered.
12208 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12210         * function-abi.h (call_clobbers_in_region): Declare.
12211         (call_clobbered_in_region_p): New function.
12212         * function-abi.cc (call_clobbers_in_region): Likewise.
12213         * ira-int.h: Include function-abi.h.
12214         (ira_allocno::crossed_calls_abis): New field.
12215         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
12216         (ira_need_caller_save_regs): New function.
12217         (ira_need_caller_save_p): Likewise.
12218         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
12219         of call_used_or_fixed_regs.
12220         (do_reload): Use crtl->abi to test whether the current function
12221         needs to save a register in the prologue.  Count registers that
12222         need to be saved rather than registers that don't.
12223         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
12224         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12225         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
12226         (propagate_some_info_from_allocno): Likewise.
12227         (copy_info_to_removed_store_destinations): Likewise.
12228         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
12229         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
12230         (ira_build): Use ira_need_caller_save_regs instead of
12231         call_used_or_fixed_regs.
12232         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
12233         whether the current function would need to save a register
12234         before using it.
12235         (calculate_spill_cost): Likewise.
12236         (allocno_reload_assign): Use ira_need_caller_save_regs and
12237         ira_need_caller_save_p instead of call_used_or_fixed_regs.
12238         * ira-conflicts.c (ira_build_conflicts): Use
12239         ira_need_caller_save_regs rather than call_used_or_fixed_regs
12240         as the set of call-clobbered registers.  Remove the
12241         call_used_or_fixed_regs mask from the calculation of
12242         temp_hard_reg_set and mask its use instead.  Remove special
12243         handling of partially-clobbered registers.
12244         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
12245         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
12246         calculate the set of conflicting registers for calls that
12247         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
12248         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
12249         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12250         Use eh_edge_abi to calculate the set of registers that could
12251         be clobbered by an EH edge.  Include partially-clobbered as
12252         well as fully-clobbered registers.
12254 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12256         * haifa-sched.c: Include function-abi.h.
12257         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
12258         the function would need to save a register before using it.
12260 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12262         * gcse.c: Include function-abi.h.
12263         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
12264         the call insn target.  Invalidate partially call-clobbered
12265         registers as well as fully call-clobbered ones.
12267 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12269         * function.c (aggregate_value_p): Work out which ABI the
12270         function is using before testing which registers are at least
12271         partly preserved by a call.
12273 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12275         * early-remat.c: Include regs.h and function-abi.h.
12276         (early_remat::maybe_add_candidate): Don't check for call-clobbered
12277         registers here.
12278         (early_remat::restrict_remat_for_unavail_regs): New function.
12279         (early_remat::restrict_remat_for_call): Likewise.
12280         (early_remat::process_block): Before calling emit_remat_insns
12281         for a previous call in the block, invalidate any candidates
12282         that would clobber call-preserved registers.
12283         (early_remat::emit_remat_insns_for_block): Likewise for the
12284         final call in a block.  Do the same thing for live-in registers
12285         when calling emit_remat_insns at the head of a block.
12287 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12289         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
12290         whether the current function needs to save at least part of a
12291         register before using it.
12292         (df_get_exit_block_use_set): Likewise for epilogue restores.
12294 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12296         * df-problems.c: Include regs.h and function-abi.h.
12297         (df_rd_problem_data): Rename sparse_invalidated_by_call to
12298         sparse_invalidated_by_eh and dense_invalidated_by_call to
12299         dense_invalidated_by_eh.
12300         (df_print_bb_index): Update accordingly.
12301         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
12302         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
12303         that are clobbered by an EH edge.  Clobber partially-clobbered
12304         registers as well as fully-clobbered ones.
12305         (df_md_confluence_n): Likewise.
12306         (df_rd_local_compute): Likewise.  Update for changes to
12307         df_rd_problem_data.
12308         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
12309         of registers that are clobbered by an EH edge.  Includde partially-
12310         clobbered registers as well as fully-clobbered ones.
12312 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12314         * cselib.c (cselib_process_insn): If we know what mode a
12315         register was set in, check whether it is clobbered in that
12316         mode by a call.  Only fall back to reg_raw_mode if that fails.
12318 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12320         * cse.c: Include regs.h and function-abi.h.
12321         (invalidate_for_call): Take the call insn as an argument.
12322         Use insn_callee_abi to get the ABI of the call and invalidate
12323         partially clobbered registers as well as fully clobbered ones.
12324         (cse_insn): Update call accordingly.
12326 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12328         * combine.c: Include function-abi.h.
12329         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
12330         of the target of call insns.  Invalidate partially-clobbered
12331         registers as well as fully-clobbered ones.
12333 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12335         * cfgloopanal.c: Include regs.h and function-abi.h.
12336         (init_set_costs): Use default_function_abi to test whether
12337         a general register is call-clobbered.
12339 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12341         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
12342         instead of the call-clobbered sets.
12344 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12346         * caller-save.c (setup_save_areas): Remove redundant |s of
12347         fixed_reg_set.
12348         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
12349         than call_used_or_fixed_regs to decide whether a REG_RETURNED
12350         value is useful.
12352 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12354         * rtl.h (predefined_function_abi): Declare.
12355         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
12356         instead of a boolean call_save flag.
12357         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
12358         accordingly.
12359         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12360         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12361         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
12362         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12363         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12364         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
12365         * reginfo.c (init_reg_modes_target): Likewise.
12366         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
12367         instead of a boolean call_save flag.
12368         * targhooks.c: Include function-abi.h.
12369         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
12370         using eh_edge_abi to choose the mode.
12372 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12374         * target.def (hard_regno_call_part_clobbered): Take an ABI
12375         identifier instead of an rtx_insn.
12376         * doc/tm.texi: Regenerate.
12377         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
12378         (hook_bool_uint_uint_mode_false): New function.
12379         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
12380         (hook_bool_uint_uint_mode_false): New function.
12381         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
12382         Take an ABI identifier instead of an rtx_insn.
12383         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
12384         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
12385         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
12386         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
12387         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
12388         Likewise.
12389         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
12390         * cselib.c: Include function-abi.h.
12391         (cselib_process_insn): Update call to
12392         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12393         to get the appropriate ABI identifier.
12394         * function-abi.cc (predefined_function_abi::initialize): Update call
12395         to targetm.hard_regno_call_part_clobbered.
12396         * ira-conflicts.c (ira_build_conflicts): Likewise.
12397         * ira-costs.c (ira_tune_allocno_costs): Likewise.
12398         * lra-constraints.c: Include function-abi.h.
12399         (need_for_call_save_p): Update call to
12400         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12401         to get the appropriate ABI identifier.
12402         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
12403         * regcprop.c (copyprop_hardreg_forward_1): Update call
12404         to targetm.hard_regno_call_part_clobbered.
12405         * reginfo.c (choose_hard_reg_mode): Likewise.
12406         * regrename.c (check_new_reg_p): Likewise.
12407         * reload.c (find_equiv_reg): Likewise.
12408         * reload1.c (emit_reload_insns): Likewise.
12409         * sched-deps.c: Include function-abi.h.
12410         (deps_analyze_insn): Update call to
12411         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12412         to get the appropriate ABI identifier.
12413         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
12414         call to targetm.hard_regno_call_part_clobbered.
12415         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
12417 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12419         * config/i386/i386.c: Include function-abi.h.
12420         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
12421         if they preserve some 256-bit or 512-bit SSE registers.
12423 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12425         * target.def (insn_callee_abi): New hook.
12426         (remove_extra_call_preserved_regs): Delete.
12427         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
12428         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
12429         * doc/tm.texi: Regenerate.
12430         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
12431         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
12432         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
12433         insn argument.
12434         (aarch64_remove_extra_call_preserved_regs): Delete.
12435         (aarch64_insn_callee_abi): New function.
12436         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
12437         (TARGET_INSN_CALLEE_ABI): New macro.
12438         * rtl.h (get_call_fndecl): Declare.
12439         (cgraph_rtl_info): Fix formatting.  Tweak comment for
12440         function_used_regs.  Remove function_used_regs_valid.
12441         * rtlanal.c (get_call_fndecl): Moved from final.c
12442         * function-abi.h (insn_callee_abi): Declare.
12443         (target_function_abi_info): Mention insn_callee_abi.
12444         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
12445         way to get_call_reg_set_usage did.
12446         (insn_callee_abi): New function.
12447         * regs.h (get_call_reg_set_usage): Delete.
12448         * final.c: Include function-abi.h.
12449         (collect_fn_hard_reg_usage): Add fixed and stack registers to
12450         function_used_regs before the main loop rather than afterwards.
12451         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
12452         if function_used_regs ends up not being useful.
12453         (get_call_fndecl): Move to rtlanal.c
12454         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
12455         * caller-save.c: Include function-abi.h.
12456         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
12457         instead of get_call_reg_set_usage.
12458         * cfgcleanup.c: Include function-abi.h.
12459         (old_insns_match_p): Use insn_callee_abi instead of
12460         get_call_reg_set_usage.
12461         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
12462         a tree.
12463         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
12464         function_used_regs.
12465         * df-scan.c: Include function-abi.h.
12466         (df_get_call_refs): Use insn_callee_abi instead of
12467         get_call_reg_set_usage.
12468         * ira-lives.c: Include function-abi.h.
12469         (process_bb_node_lives): Use insn_callee_abi instead of
12470         get_call_reg_set_usage.
12471         * lra-lives.c: Include function-abi.h.
12472         (process_bb_lives): Use insn_callee_abi instead of
12473         get_call_reg_set_usage.
12474         * postreload.c: Include function-abi.h.
12475         (reload_combine): Use insn_callee_abi instead of
12476         get_call_reg_set_usage.
12477         * regcprop.c: Include function-abi.h.
12478         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
12479         get_call_reg_set_usage.
12480         * resource.c: Include function-abi.h.
12481         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
12482         instead of get_call_reg_set_usage.
12483         * var-tracking.c: Include function-abi.h.
12484         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
12485         get_call_reg_set_usage.
12487 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12489         * target.def (fntype_abi): New target hook.
12490         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
12491         * doc/tm.texi: Regenerate.
12492         * target.h (predefined_function_abi): Declare.
12493         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
12494         if defined.
12495         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
12496         * config/aarch64/aarch64.c: Include function-abi.h.
12497         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
12498         (TARGET_FNTYPE_ABI): Define.
12500 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12502         * Makefile.in (OBJS): Add function-abi.o.
12503         (GTFILES): Add function-abi.h.
12504         * function-abi.cc: New file.
12505         * function-abi.h: Likewise.
12506         * emit-rtl.h (rtl_data::abi): New field.
12507         * function.c: Include function-abi.h.
12508         (prepare_function_start): Initialize crtl->abi.
12509         * read-rtl-function.c: Include regs.h and function-abi.h.
12510         (read_rtl_function_body): Initialize crtl->abi.
12511         (read_rtl_function_body_from_file_range): Likewise.
12512         * reginfo.c: Include function-abi.h.
12513         (init_reg_sets_1): Initialize default_function_abi.
12514         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
12515         when making a register global.
12516         * target-globals.h (this_target_function_abi_info): Declare.
12517         (target_globals::function_abi_info): New field.
12518         (restore_target_globals): Copy it.
12519         * target-globals.c: Include function-abi.h.
12520         (default_target_globals): Initialize the function_abi_info field.
12521         (target_globals): Allocate it.
12522         (save_target_globals): Free it.
12524 2019-09-30  Nick Clifton  <nickc@redhat.com>
12526         PR target/85978
12527         * config/frv/frv.c (frv_register_move_cost): Add break statements
12528         to avoid falling through to the wrong cases.  Tidy code.
12530 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
12532         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
12533         For multi-registers modes, test how big each register part is.
12535 2019-09-30  Nick Clifton  <nickc@redhat.com>
12537         PR target/59205
12538         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
12539         (TARGET_ASM_SELECT_SECTION): Remove definition.
12540         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
12542 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
12544         * emit-rtl.c (init_raw_REG): New function.
12545         (gen_raw_REG): Use init_raw_REG.
12546         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
12547         macros.
12548         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
12549         * rtl.h (rtx_init): New function.
12550         (rtx_alloca): New function.
12551         (init_raw_REG): New function.
12552         (alloca_raw_REG): New macro.
12554 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
12556         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
12557         (pcrel_local_address): Replace pcrel_address predicate, use the
12558         new function address_to_insn_form.
12559         (pcrel_external_address): Replace with new implementation using
12560         address_to_insn_form..
12561         (prefixed_mem_operand): Delete predicate which is now unused.
12562         (pcrel_external_mem_operand): Delete predicate which is now
12563         unused.
12564         * config/rs6000/rs6000-protos.h (enum insn_form): New
12565         enumeration.
12566         (enum non_prefixed_form): New enumeration.
12567         (address_to_insn_form): New declaration.
12568         (prefixed_load_p): New declaration.
12569         (prefixed_store_p): New declaration.
12570         (prefixed_paddi_p): New declaration.
12571         (rs6000_asm_output_opcode): New declaration.
12572         (rs6000_final_prescan_insn): Move declaration and update calling
12573         signature.
12574         (address_is_prefixed): New helper inline function.
12575         * config/rs6000/rs6000.c(print_operand_address): Check for either
12576         PC-relative local symbols or PC-relative external symbols.
12577         (rs6000_emit_move): Support loading PC-relative addresses.
12578         (mode_supports_prefixed_address_p): Delete, no longer used.
12579         (rs6000_prefixed_address_mode_p): Delete, no longer used.
12580         (address_to_insn_form): New function to decode an address format.
12581         (reg_to_non_prefixed): New function to identify what the
12582         non-prefixed memory instruction format is for a register.
12583         (prefixed_load_p): New function to identify prefixed loads.
12584         (prefixed_store_p): New function to identify prefixed stores.
12585         (prefixed_paddi_p): New function to identify prefixed load
12586         immediates.
12587         (next_insn_prefixed_p): New static state variable.
12588         (rs6000_final_prescan_insn): New function to determine if an insn
12589         uses a prefixed instruction.
12590         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
12591         prefixed instruction.
12592         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
12593         (ASM_OUTPUT_OPCODE): New target hook.
12594         * config/rs6000/rs6000.md (prefixed): New insn attribute for
12595         prefixed instructions.
12596         (prefixed_length): New insn attribute for the size of prefixed
12597         instructions.
12598         (non_prefixed_length): New insn attribute for the size of
12599         non-prefixed instructions.
12600         (pcrel_local_addr): New insn to load up a local PC-relative
12601         address.
12602         (pcrel_extern_addr): New insn to load up an external PC-relative
12603         address.
12604         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
12605         GPR and loading a 128-bit floating point type to a GPR.
12607 2019-09-30  Richard Biener  <rguenther@suse.de>
12609         * gimple.c (gimple_get_lhs): For PHIs return the result.
12610         * tree-vectorizer.h (vectorizable_live_operation): Also get the
12611         SLP instance as argument.
12612         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
12613         double-reduction PHIs with vectorizable_lc_phi.
12614         (vect_analyze_loop_operations): Adjust.
12615         (vect_create_epilog_for_reduction): Remove all code not dealing
12616         with reduction LC PHI or epilogue generation.
12617         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
12618         for live stmts of reductions.
12619         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
12620         do not handle defs that are not vect_internal_def.
12621         (can_vectorize_live_stmts): Adjust.
12622         (vect_analyze_stmt): When the vectorized stmt defined a value
12623         used on backedges adjust the backedge uses of vectorized PHIs.
12625 2019-09-30  Martin Jambor  <mjambor@suse.cz>
12627         PR ipa/91853
12628         * tree-inline.c (force_value_to_type): New function.
12629         (setup_one_parameter): Use force_value_to_type to convert type.
12630         * tree-inline.c (force_value_to_type): Declare.
12631         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
12632         with register type mismatches.
12634 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
12636         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
12637         32-bit PowerPC.
12638         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
12639         * config/rs6000/t-freebsd64: Make use of the above define and build
12640         the 32-bit libraries with secure-plt.
12642 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
12644         PR target/91931
12645         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
12646         gen_int_mode instead of GEN_INT.
12648 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
12650         * config/darwin.c (gen_macho_low): Amend to include the mode
12651         argument.
12652         (machopic_indirect_data_reference): Amend gen_macho_low call
12653         to include mode argument
12654         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
12655         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
12656         the macho_high expander and two define_insn entries.
12658 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
12660         PR bootstrap/90543
12661         * optc-save-gen.awk: Fix up printing string option differences.
12663 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12665         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
12666         vec_perm cost to 1 for non-Power7 VSX architectures.
12668 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
12670         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
12671         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
12672         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
12674 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
12676         * config/darwin.c (gen_macho_high): Amend to include the mode
12677         argument.
12678         (machopic_indirect_data_reference): Amend gen_macho_high call
12679         to include mode argument.
12680         (machopic_legitimize_pic_address): Likewise.
12681         * config/rs6000/rs6000.c (rs6000_legitimize_address):
12682         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
12683         the macho_high expander and two define_insn entries.
12685 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12687         PR target/86805
12688         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12690 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12692         PR target/80672
12693         * config/sh/sh.c (parse_validate_atomic_model_option): Use
12694         std::string::compare instead of std::string::find.
12696 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
12698         * configure: Regenerate.
12700 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12702         PR middle-end/91920
12703         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
12704         variables as shared.
12706 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
12708         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
12709         replaces the expander and two define_insn entries.
12710         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
12711         call.
12712         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
12714 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12716         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
12717         (fibonacci_heap::nodes): Likewise.
12718         (fibonacci_heap::min_key): Likewise.
12719         (fibonacci_heap::min): Likewise.
12721 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
12723         * cgraph.c (cgraph_node::get_fun): Make const.
12724         * cgraph.h (cgraph_node::get_fun): Likewise.
12726 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
12728         PR target/91919
12729         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
12730         of SImode MULT.
12732 2019-09-27  Richard Biener  <rguenther@suse.de>
12734         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
12735         (STMT_VINFO_REDUC_FN): Likewise.
12736         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12737         STMT_VINFO_REDUC_FN.
12738         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
12739         for condition reductions.
12740         (vect_create_epilog_for_reduction): Compute all required state
12741         from the stmt to be vectorized.
12742         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
12743         invocation and remove then dead code.  For single def-use chains
12744         record only a single vector stmt.
12746 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12748         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
12749         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
12750         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
12751         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
12752         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
12753         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
12754         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
12755         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
12756         (aarch64_general_builtin_rsqrt): Declare.
12757         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
12758         New function.
12759         (aarch64_mangle_builtin_type): Rename to...
12760         (aarch64_general_mangle_builtin_type): ...this.
12761         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
12762         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
12763         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
12764         aarch64_general_add_builtin instead of add_builtin_function.
12765         (aarch64_init_builtins): Rename to...
12766         (aarch64_general_init_builtins): ...this.  Use
12767         aarch64_general_add_builtin instead of add_builtin_function.
12768         (aarch64_builtin_decl): Rename to...
12769         (aarch64_general_builtin_decl): ...this and remove the unused
12770         arguments.
12771         (aarch64_expand_builtin): Rename to...
12772         (aarch64_general_expand_builtin): ...this and remove the unused
12773         arguments.
12774         (aarch64_builtin_rsqrt): Rename to...
12775         (aarch64_general_builtin_rsqrt): ...this.
12776         (aarch64_fold_builtin): Rename to...
12777         (aarch64_general_fold_builtin): ...this.  Take the function subcode
12778         and return type as arguments.  Remove the "ignored" argument.
12779         (aarch64_gimple_fold_builtin): Rename to...
12780         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
12781         subcode and gcall as arguments, and return the new function call.
12782         * config/aarch64/aarch64.c (aarch64_init_builtins)
12783         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
12784         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
12785         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
12786         instead of aarch64_builtin_rsqrt.
12787         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
12788         instead of aarch64_mangle_builtin_type.
12790 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12792         * target.def (check_builtin_call): New target hook.
12793         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
12794         * doc/tm.texi: Regenerate.
12796 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
12798         PR tree-optimization/91909
12799         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
12800         reduc_index parameter.  When handling COND_REDUCTION, make sure
12801         that the reduction phi operand is in the correct arm of the
12802         VEC_COND_EXPR.
12803         (vectorizable_reduction): Pass reduc_index to the above.
12805 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
12807         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12808         New combine pattern.
12810 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
12812         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12813         loop instruction into new basic block before the loop when basic
12814         block that precedes the loop is empty.
12816 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
12818         * function.c (gimplify_parameters): Use build_clobber function.
12819         * tree-ssa.c (execute_update_addresses_taken): Likewise.
12820         * tree-inline.c (expand_call_inline): Likewise.
12821         * tree-sra.c (clobber_subtree): Likewise.
12822         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12823         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12824         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12825         lower_omp_target): Likewise.
12826         * omp-expand.c (expand_omp_for_generic): Likewise.
12827         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12829 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
12831         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12832         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12833         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12834         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12835         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12836         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12837         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12838         LD_ELEMREV_V16QI): Use the PURE attribute.
12840 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
12842         * config/rs6000/darwin.md: Replace the expanders for
12843         load_macho_picbase and reload_macho_picbase with use of '@'
12844         and <mode> in their respective define_insns.
12845         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12846         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12847         Pmode to gen_load_macho_picbase.
12848         * config/rs6000/rs6000.md: Likewise.
12850 2019-09-25  Richard Biener  <rguenther@suse.de>
12852         PR tree-optimization/91896
12853         * tree-vect-loop.c (vectorizable_reduction): The single
12854         def-use cycle optimization cannot apply when there's more
12855         than one pattern stmt involved.
12857 2019-09-26  Richard Biener  <rguenther@suse.de>
12859         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12860         loop-closed PHIs that are vect_internal_def.
12861         (vect_create_epilog_for_reduction): Exit early for nested cycles.
12862         Simplify.
12863         (vectorizable_lc_phi): New.
12864         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12865         (vect_transform_stmt): Likewise.
12866         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12867         (vectorizable_lc_phi): Declare.
12869 2019-09-26  Richard Biener  <rguenther@suse.de>
12871         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12872         vectorizable_reduction for vect_double_reduction_def.
12873         (vect_transform_loop): Likewise.
12874         (vect_create_epilog_for_reduction): Move double-reduction
12875         PHI creation and preheader argument setting of PHIs ...
12876         (vectorizable_reduction): ... here.  Also process
12877         vect_double_reduction_def PHIs, creating the vectorized
12878         PHI nodes, remembering the scalar adjustment computed for
12879         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12880         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12881         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12882         Initialize STMT_VINFO_REDUC_CODE.
12883         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12884         (_stmt_vec_info::reduc_code): Likewise.
12885         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12886         (STMT_VINFO_REDUC_CODE): Likewise.
12888 2019-09-26  Matt Turner  <mattst88@gmail.com>
12890         PR driver/69471
12891         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12892         (mtune=): Add Negative(mtune=).
12893         (mcpu=): Add Negative(mcpu=).
12894         * config/arm/arm.opt: Likewise.
12896 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12898         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12899         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12900         Define.
12901         * config/arm/arm_acle.h: Define builtins for the above.
12902         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12903         (simd32_op): Handle the above.
12904         * config/arm/unspecs.md: Define unspecs for the above.
12906 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12908         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12909         (arm_<sup>xtb16): Likewise.
12910         (arm_usada8): Likewise.
12911         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12912         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12913         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12914         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12915         __sxtb16, __uxtab16, __uxtb16): Define.
12916         * config/arm/arm_acle_builtins.def: Define builtins for the above.
12917         * config/arm/unspecs.md: Define unspecs for the above.
12918         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12919         (USXTB16): Likewise.
12920         (simd32_op): New int_attribute.
12921         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12922         * doc/sourcebuild.exp (arm_simd32_ok): Document.
12924 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12926         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12927         internal_error.
12929 2019-09-26  Martin Jambor  <mjambor@suse.cz>
12931         * ipa-sra.c (process_scan_results): Fix continue condition.
12933 2019-09-26  Martin Liska  <mliska@suse.cz>
12935         PR tree-optimization/91885
12936         * tree-vectorizer.c (try_vectorize_loop_1): Add
12937         TODO_update_ssa_only_virtuals similarly to what slp pass does.
12939 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
12941         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12942         aarch64_plus_immediate rather than aarch64_uimm12_shift
12943         to test for valid PLUS immediates.
12945 2019-09-25  Martin Jambor  <mjambor@suse.cz>
12947         * tree-sra.c (no_accesses_p): Remove.
12948         (no_accesses_representant): Likewise.
12950 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12952         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12953         consistenly.
12954         (vaba_s16): Likewise.
12955         (vaba_s32): Likewise.
12956         (vaba_u8): Likewise.
12957         (vaba_u16): Likewise.
12958         (vaba_u32): Likewise.
12959         (vabal_high_s8): Likewise.
12960         (vabal_high_s16): Likewise.
12961         (vabal_high_s32): Likewise.
12962         (vabal_high_u8): Likewise.
12963         (vabal_high_u16): Likewise.
12964         (vabal_high_u32): Likewise.
12965         (vabal_s8): Likewise.
12966         (vabal_s16): Likewise.
12967         (vabal_s32): Likewise.
12968         (vabal_u8): Likewise.
12969         (vabal_u16): Likewise.
12970         (vabal_u32): Likewise.
12971         (vabaq_s8): Likewise.
12972         (vabaq_s16): Likewise.
12973         (vabaq_s32): Likewise.
12974         (vabaq_u8): Likewise.
12975         (vabaq_u16): Likewise.
12976         (vabaq_u32): Likewise.
12977         (vabd_s8): Likewise.
12978         (vabd_s16): Likewise.
12979         (vabd_s32): Likewise.
12980         (vabd_u8): Likewise.
12981         (vabd_u16): Likewise.
12982         (vabd_u32): Likewise.
12983         (vabdl_high_s8): Likewise.
12984         (vabdl_high_s16): Likewise.
12985         (vabdl_high_s32): Likewise.
12986         (vabdl_high_u8): Likewise.
12987         (vabdl_high_u16): Likewise.
12988         (vabdl_high_u32): Likewise.
12989         (vabdl_s8): Likewise.
12990         (vabdl_s16): Likewise.
12991         (vabdl_s32): Likewise.
12992         (vabdl_u8): Likewise.
12993         (vabdl_u16): Likewise.
12994         (vabdl_u32): Likewise.
12995         (vabdq_s8): Likewise.
12996         (vabdq_s16): Likewise.
12997         (vabdq_s32): Likewise.
12998         (vabdq_u8): Likewise.
12999         (vabdq_u16): Likewise.
13000         (vabdq_u32): Likewise.
13001         (vaddlv_s8): Likewise.
13002         (vaddlv_s16): Likewise.
13003         (vaddlv_u8): Likewise.
13004         (vaddlv_u16): Likewise.
13005         (vaddlvq_s8): Likewise.
13006         (vaddlvq_s16): Likewise.
13007         (vaddlvq_s32): Likewise.
13008         (vaddlvq_u8): Likewise.
13009         (vaddlvq_u16): Likewise.
13010         (vaddlvq_u32): Likewise.
13011         (vcvtx_f32_f64): Likewise.
13012         (vcvtx_high_f32_f64): Likewise.
13013         (vcvtxd_f32_f64): Likewise.
13014         (vmla_n_f32): Likewise.
13015         (vmla_n_s16): Likewise.
13016         (vmla_n_s32): Likewise.
13017         (vmla_n_u16): Likewise.
13018         (vmla_n_u32): Likewise.
13019         (vmla_s8): Likewise.
13020         (vmla_s16): Likewise.
13021         (vmla_s32): Likewise.
13022         (vmla_u8): Likewise.
13023         (vmla_u16): Likewise.
13024         (vmla_u32): Likewise.
13025         (vmlal_high_n_s16): Likewise.
13026         (vmlal_high_n_s32): Likewise.
13027         (vmlal_high_n_u16): Likewise.
13028         (vmlal_high_n_u32): Likewise.
13029         (vmlal_high_s8): Likewise.
13030         (vmlal_high_s16): Likewise.
13031         (vmlal_high_s32): Likewise.
13032         (vmlal_high_u8): Likewise.
13033         (vmlal_high_u16): Likewise.
13034         (vmlal_high_u32): Likewise.
13035         (vmlal_n_s16): Likewise.
13036         (vmlal_n_s32): Likewise.
13037         (vmlal_n_u16): Likewise.
13038         (vmlal_n_u32): Likewise.
13039         (vmlal_s8): Likewise.
13040         (vmlal_s16): Likewise.
13041         (vmlal_s32): Likewise.
13042         (vmlal_u8): Likewise.
13043         (vmlal_u16): Likewise.
13044         (vmlal_u32): Likewise.
13045         (vmlaq_n_f32): Likewise.
13046         (vmlaq_n_s16): Likewise.
13047         (vmlaq_n_s32): Likewise.
13048         (vmlaq_n_u16): Likewise.
13049         (vmlaq_n_u32): Likewise.
13050         (vmlaq_s8): Likewise.
13051         (vmlaq_s16): Likewise.
13052         (vmlaq_s32): Likewise.
13053         (vmlaq_u8): Likewise.
13054         (vmlaq_u16): Likewise.
13055         (vmlaq_u32): Likewise.
13056         (vmls_n_f32): Likewise.
13057         (vmls_n_s16): Likewise.
13058         (vmls_n_s32): Likewise.
13059         (vmls_n_u16): Likewise.
13060         (vmls_n_u32): Likewise.
13061         (vmls_s8): Likewise.
13062         (vmls_s16): Likewise.
13063         (vmls_s32): Likewise.
13064         (vmls_u8): Likewise.
13065         (vmls_u16): Likewise.
13066         (vmls_u32): Likewise.
13067         (vmlsl_high_n_s16): Likewise.
13068         (vmlsl_high_n_s32): Likewise.
13069         (vmlsl_high_n_u16): Likewise.
13070         (vmlsl_high_n_u32): Likewise.
13071         (vmlsl_high_s8): Likewise.
13072         (vmlsl_high_s16): Likewise.
13073         (vmlsl_high_s32): Likewise.
13074         (vmlsl_high_u8): Likewise.
13075         (vmlsl_high_u16): Likewise.
13076         (vmlsl_high_u32): Likewise.
13077         (vmlsl_n_s16): Likewise.
13078         (vmlsl_n_s32): Likewise.
13079         (vmlsl_n_u16): Likewise.
13080         (vmlsl_n_u32): Likewise.
13081         (vmlsl_s8): Likewise.
13082         (vmlsl_s16): Likewise.
13083         (vmlsl_s32): Likewise.
13084         (vmlsl_u8): Likewise.
13085         (vmlsl_u16): Likewise.
13086         (vmlsl_u32): Likewise.
13087         (vmlsq_n_f32): Likewise.
13088         (vmlsq_n_s16): Likewise.
13089         (vmlsq_n_s32): Likewise.
13090         (vmlsq_n_u16): Likewise.
13091         (vmlsq_n_u32): Likewise.
13092         (vmlsq_s8): Likewise.
13093         (vmlsq_s16): Likewise.
13094         (vmlsq_s32): Likewise.
13095         (vmlsq_u8): Likewise.
13096         (vmlsq_u16): Likewise.
13097         (vmlsq_u32): Likewise.
13098         (vmovl_high_s8): Likewise.
13099         (vmovl_high_s16): Likewise.
13100         (vmovl_high_s32): Likewise.
13101         (vmovl_high_u8): Likewise.
13102         (vmovl_high_u16): Likewise.
13103         (vmovl_high_u32): Likewise.
13104         (vmovl_s8): Likewise.
13105         (vmovl_s16): Likewise.
13106         (vmovl_s32): Likewise.
13107         (vmovl_u8): Likewise.
13108         (vmovl_u16): Likewise.
13109         (vmovl_u32): Likewise.
13110         (vmovn_high_s16): Likewise.
13111         (vmovn_high_s32): Likewise.
13112         (vmovn_high_s64): Likewise.
13113         (vmovn_high_u16): Likewise.
13114         (vmovn_high_u32): Likewise.
13115         (vmovn_high_u64): Likewise.
13116         (vmovn_s16): Likewise.
13117         (vmovn_s32): Likewise.
13118         (vmovn_s64): Likewise.
13119         (vmovn_u16): Likewise.
13120         (vmovn_u32): Likewise.
13121         (vmovn_u64): Likewise.
13122         (vmull_high_n_s16): Likewise.
13123         (vmull_high_n_s32): Likewise.
13124         (vmull_high_n_u16): Likewise.
13125         (vmull_high_n_u32): Likewise.
13126         (vmull_high_p8): Likewise.
13127         (vmull_high_s8): Likewise.
13128         (vmull_high_s16): Likewise.
13129         (vmull_high_s32): Likewise.
13130         (vmull_high_u8): Likewise.
13131         (vmull_high_u16): Likewise.
13132         (vmull_high_u32): Likewise.
13133         (vmull_n_s16): Likewise.
13134         (vmull_n_s32): Likewise.
13135         (vmull_n_u16): Likewise.
13136         (vmull_n_u32): Likewise.
13137         (vmull_p8): Likewise.
13138         (vmull_s8): Likewise.
13139         (vmull_s16): Likewise.
13140         (vmull_s32): Likewise.
13141         (vmull_u8): Likewise.
13142         (vmull_u16): Likewise.
13143         (vmull_u32): Likewise.
13144         (vpadal_s8): Likewise.
13145         (vpadal_s16): Likewise.
13146         (vpadal_s32): Likewise.
13147         (vpadal_u8): Likewise.
13148         (vpadal_u16): Likewise.
13149         (vpadal_u32): Likewise.
13150         (vpadalq_s8): Likewise.
13151         (vpadalq_s16): Likewise.
13152         (vpadalq_s32): Likewise.
13153         (vpadalq_u8): Likewise.
13154         (vpadalq_u16): Likewise.
13155         (vpadalq_u32): Likewise.
13156         (vpaddl_s8): Likewise.
13157         (vpaddl_s16): Likewise.
13158         (vpaddl_s32): Likewise.
13159         (vpaddl_u8): Likewise.
13160         (vpaddl_u16): Likewise.
13161         (vpaddl_u32): Likewise.
13162         (vpaddlq_s8): Likewise.
13163         (vpaddlq_s16): Likewise.
13164         (vpaddlq_s32): Likewise.
13165         (vpaddlq_u8): Likewise.
13166         (vpaddlq_u16): Likewise.
13167         (vpaddlq_u32): Likewise.
13168         (vpaddq_s8): Likewise.
13169         (vpaddq_s16): Likewise.
13170         (vpaddq_s32): Likewise.
13171         (vpaddq_s64): Likewise.
13172         (vpaddq_u8): Likewise.
13173         (vpaddq_u16): Likewise.
13174         (vpaddq_u32): Likewise.
13175         (vpaddq_u64): Likewise.
13176         (vqdmulh_n_s16): Likewise.
13177         (vqdmulh_n_s32): Likewise.
13178         (vqdmulhq_n_s16): Likewise.
13179         (vqdmulhq_n_s32): Likewise.
13180         (vqmovn_high_s16): Likewise.
13181         (vqmovn_high_s32): Likewise.
13182         (vqmovn_high_s64): Likewise.
13183         (vqmovn_high_u16): Likewise.
13184         (vqmovn_high_u32): Likewise.
13185         (vqmovn_high_u64): Likewise.
13186         (vqmovun_high_s16): Likewise.
13187         (vqmovun_high_s32): Likewise.
13188         (vqmovun_high_s64): Likewise.
13189         (vqrdmulh_n_s16): Likewise.
13190         (vqrdmulh_n_s32): Likewise.
13191         (vqrdmulhq_n_s16): Likewise.
13192         (vqrdmulhq_n_s32): Likewise.
13193         (vrsqrte_u32): Likewise.
13194         (vrsqrteq_u32): Likewise.
13195         (vtst_p8): Likewise.
13196         (vtst_p16): Likewise.
13197         (vtst_p64): Likewise.
13198         (vtstq_p8): Likewise.
13199         (vtstq_p16): Likewise.
13200         (vtstq_p64): Likewise.
13201         (vaddlv_s32): Likewise.
13202         (vaddlv_u32): Likewise.
13203         (vqtbl1_p8): Likewise.
13204         (vqtbl1_s8): Likewise.
13205         (vqtbl1_u8): Likewise.
13206         (vqtbl1q_p8): Likewise.
13207         (vqtbl1q_s8): Likewise.
13208         (vqtbl1q_u8): Likewise.
13209         (vqtbx1_s8): Likewise.
13210         (vqtbx1_u8): Likewise.
13211         (vqtbx1_p8): Likewise.
13212         (vqtbx1q_s8): Likewise.
13213         (vqtbx1q_u8): Likewise.
13214         (vqtbx1q_p8): Likewise.
13215         (vtbl1_s8): Likewise.
13216         (vtbl1_u8): Likewise.
13217         (vtbl1_p8): Likewise.
13218         (vtbl2_s8): Likewise.
13219         (vtbl2_u8): Likewise.
13220         (vtbl2_p8): Likewise.
13221         (vtbl3_s8): Likewise.
13222         (vtbl3_u8): Likewise.
13223         (vtbl3_p8): Likewise.
13224         (vtbl4_s8): Likewise.
13225         (vtbl4_u8): Likewise.
13226         (vtbl4_p8): Likewise.
13227         (vtbx2_s8): Likewise.
13228         (vtbx2_u8): Likewise.
13229         (vtbx2_p8): Likewise.
13230         (vld1_f32): Likewise.
13231         (vld1_f64): Likewise.
13232         (vld1_p8): Likewise.
13233         (vld1_p16): Likewise.
13234         (vld1_p64): Likewise.
13235         (vld1_s8): Likewise.
13236         (vld1_s16): Likewise.
13237         (vld1_s32): Likewise.
13238         (vld1_s64): Likewise.
13239         (vld1_u8): Likewise.
13240         (vld1_u16): Likewise.
13241         (vld1_u32): Likewise.
13242         (vld1_u64): Likewise.
13243         (vld1q_f32): Likewise.
13244         (vld1q_f64): Likewise.
13245         (vld1q_p8): Likewise.
13246         (vld1q_p16): Likewise.
13247         (vld1q_p64): Likewise.
13248         (vld1q_s8): Likewise.
13249         (vld1q_s16): Likewise.
13250         (vld1q_s32): Likewise.
13251         (vld1q_s64): Likewise.
13252         (vld1q_u8): Likewise.
13253         (vld1q_u16): Likewise.
13254         (vld1q_u32): Likewise.
13255         (vld1q_u64): Likewise.
13256         (vpmax_s8): Likewise.
13257         (vpmax_s16): Likewise.
13258         (vpmax_s32): Likewise.
13259         (vpmax_u8): Likewise.
13260         (vpmax_u16): Likewise.
13261         (vpmax_u32): Likewise.
13262         (vpmaxq_s8): Likewise.
13263         (vpmaxq_s16): Likewise.
13264         (vpmaxq_s32): Likewise.
13265         (vpmaxq_u8): Likewise.
13266         (vpmaxq_u16): Likewise.
13267         (vpmaxq_u32): Likewise.
13268         (vpmax_f32): Likewise.
13269         (vpmaxq_f32): Likewise.
13270         (vpmaxq_f64): Likewise.
13271         (vpmaxqd_f64): Likewise.
13272         (vpmaxs_f32): Likewise.
13273         (vpmaxnm_f32): Likewise.
13274         (vpmaxnmq_f32): Likewise.
13275         (vpmaxnmq_f64): Likewise.
13276         (vpmaxnmqd_f64): Likewise.
13277         (vpmaxnms_f32): Likewise.
13278         (vpmin_s8): Likewise.
13279         (vpmin_s16): Likewise.
13280         (vpmin_s32): Likewise.
13281         (vpmin_u8): Likewise.
13282         (vpmin_u16): Likewise.
13283         (vpmin_u32): Likewise.
13284         (vpminq_s8): Likewise.
13285         (vpminq_s16): Likewise.
13286         (vpminq_s32): Likewise.
13287         (vpminq_u8): Likewise.
13288         (vpminq_u16): Likewise.
13289         (vpminq_u32): Likewise.
13290         (vpmin_f32): Likewise.
13291         (vpminq_f32): Likewise.
13292         (vpminq_f64): Likewise.
13293         (vpminqd_f64): Likewise.
13294         (vpmins_f32): Likewise.
13295         (vpminnm_f32): Likewise.
13296         (vpminnmq_f32): Likewise.
13297         (vpminnmq_f64): Likewise.
13298         (vpminnmqd_f64): Likewise.
13299         (vpminnms_f32): Likewise.
13300         (vmla_f32): Likewise.
13301         (vmlaq_f32): Likewise.
13302         (vmlaq_f64): Likewise.
13303         (vmls_f32): Likewise.
13304         (vmlsq_f32): Likewise.
13305         (vmlsq_f64): Likewise.
13306         (vqtbl2_s8): Likewise.
13307         (vqtbl2_u8): Likewise.
13308         (vqtbl2_p8): Likewise.
13309         (vqtbl2q_s8): Likewise.
13310         (vqtbl2q_u8): Likewise.
13311         (vqtbl2q_p8): Likewise.
13312         (vqtbl3_s8): Likewise.
13313         (vqtbl3_u8): Likewise.
13314         (vqtbl3_p8): Likewise.
13315         (vqtbl3q_s8): Likewise.
13316         (vqtbl3q_u8): Likewise.
13317         (vqtbl3q_p8): Likewise.
13318         (vqtbl4_s8): Likewise.
13319         (vqtbl4_u8): Likewise.
13320         (vqtbl4_p8): Likewise.
13321         (vqtbl4q_s8): Likewise.
13322         (vqtbl4q_u8): Likewise.
13323         (vqtbl4q_p8): Likewise.
13324         (vqtbx2_s8): Likewise.
13325         (vqtbx2_u8): Likewise.
13326         (vqtbx2_p8): Likewise.
13327         (vqtbx2q_s8): Likewise.
13328         (vqtbx2q_u8): Likewise.
13329         (vqtbx2q_p8): Likewise.
13330         (vqtbx3_s8): Likewise.
13331         (vqtbx3_u8): Likewise.
13332         (vqtbx3_p8): Likewise.
13333         (vqtbx3q_s8): Likewise.
13334         (vqtbx3q_u8): Likewise.
13335         (vqtbx3q_p8): Likewise.
13336         (vqtbx4_s8): Likewise.
13337         (vqtbx4_u8): Likewise.
13338         (vqtbx4_p8): Likewise.
13339         (vqtbx4q_s8): Likewise.
13340         (vqtbx4q_u8): Likewise.
13341         (vqtbx4q_p8): Likewise.
13342         (vrev16_p8): Likewise.
13343         (vrev16_s8): Likewise.
13344         (vrev16_u8): Likewise.
13345         (vrev16q_p8): Likewise.
13346         (vrev16q_s8): Likewise.
13347         (vrev16q_u8): Likewise.
13348         (vrev32_p8): Likewise.
13349         (vrev32_p16): Likewise.
13350         (vrev32_s8): Likewise.
13351         (vrev32_s16): Likewise.
13352         (vrev32_u8): Likewise.
13353         (vrev32_u16): Likewise.
13354         (vrev32q_p8): Likewise.
13355         (vrev32q_p16): Likewise.
13356         (vrev32q_s8): Likewise.
13357         (vrev32q_s16): Likewise.
13358         (vrev32q_u8): Likewise.
13359         (vrev32q_u16): Likewise.
13360         (vrev64_f32): Likewise.
13361         (vrev64_p8): Likewise.
13362         (vrev64_p16): Likewise.
13363         (vrev64_s8): Likewise.
13364         (vrev64_s16): Likewise.
13365         (vrev64_s32): Likewise.
13366         (vrev64_u8): Likewise.
13367         (vrev64_u16): Likewise.
13368         (vrev64_u32): Likewise.
13369         (vrev64q_f32): Likewise.
13370         (vrev64q_p8): Likewise.
13371         (vrev64q_p16): Likewise.
13372         (vrev64q_s8): Likewise.
13373         (vrev64q_s16): Likewise.
13374         (vrev64q_s32): Likewise.
13375         (vrev64q_u8): Likewise.
13376         (vrev64q_u16): Likewise.
13377         (vrev64q_u32): Likewise.
13378         (vsha1cq_u32): Likewise.
13379         (vsha1mq_u32): Likewise.
13380         (vsha1pq_u32): Likewise.
13381         (vsha1h_u32): Likewise.
13382         (vsha1su0q_u32): Likewise.
13383         (vsha1su1q_u32): Likewise.
13384         (vsha256hq_u32): Likewise.
13385         (vsha256h2q_u32): Likewise.
13386         (vsha256su0q_u32): Likewise.
13387         (vsha256su1q_u32): Likewise.
13388         (vmull_p64): Likewise.
13389         (vmull_high_p64): Likewise.
13390         (vsqrt_f32): Likewise.
13391         (vsqrtq_f32): Likewise.
13392         (vsqrt_f64): Likewise.
13393         (vsqrtq_f64): Likewise.
13394         (vst1_f32): Likewise.
13395         (vst1_f64): Likewise.
13396         (vst1_p8): Likewise.
13397         (vst1_p16): Likewise.
13398         (vst1_p64): Likewise.
13399         (vst1_s8): Likewise.
13400         (vst1_s16): Likewise.
13401         (vst1_s32): Likewise.
13402         (vst1_s64): Likewise.
13403         (vst1_u8): Likewise.
13404         (vst1_u16): Likewise.
13405         (vst1_u32): Likewise.
13406         (vst1_u64): Likewise.
13407         (vst1q_f32): Likewise.
13408         (vst1q_f64): Likewise.
13409         (vst1q_p8): Likewise.
13410         (vst1q_p16): Likewise.
13411         (vst1q_p64): Likewise.
13412         (vst1q_s8): Likewise.
13413         (vst1q_s16): Likewise.
13414         (vst1q_s32): Likewise.
13415         (vst1q_s64): Likewise.
13416         (vst1q_u8): Likewise.
13417         (vst1q_u16): Likewise.
13418         (vst1q_u32): Likewise.
13419         (vst1q_u64): Likewise.
13420         (vst1_s64_x2): Likewise.
13421         (vst1_u64_x2): Likewise.
13422         (vst1_f64_x2): Likewise.
13423         (vst1_s8_x2): Likewise.
13424         (vst1_p8_x2): Likewise.
13425         (vst1_s16_x2): Likewise.
13426         (vst1_p16_x2): Likewise.
13427         (vst1_s32_x2): Likewise.
13428         (vst1_u8_x2): Likewise.
13429         (vst1_u16_x2): Likewise.
13430         (vst1_u32_x2): Likewise.
13431         (vst1_f16_x2): Likewise.
13432         (vst1_f32_x2): Likewise.
13433         (vst1_p64_x2): Likewise.
13434         (vst1q_s8_x2): Likewise.
13435         (vst1q_p8_x2): Likewise.
13436         (vst1q_s16_x2): Likewise.
13437         (vst1q_p16_x2): Likewise.
13438         (vst1q_s32_x2): Likewise.
13439         (vst1q_s64_x2): Likewise.
13440         (vst1q_u8_x2): Likewise.
13441         (vst1q_u16_x2): Likewise.
13442         (vst1q_u32_x2): Likewise.
13443         (vst1q_u64_x2): Likewise.
13444         (vst1q_f16_x2): Likewise.
13445         (vst1q_f32_x2): Likewise.
13446         (vst1q_f64_x2): Likewise.
13447         (vst1q_p64_x2): Likewise.
13448         (vst1_s64_x3): Likewise.
13449         (vst1_u64_x3): Likewise.
13450         (vst1_f64_x3): Likewise.
13451         (vst1_s8_x3): Likewise.
13452         (vst1_p8_x3): Likewise.
13453         (vst1_s16_x3): Likewise.
13454         (vst1_p16_x3): Likewise.
13455         (vst1_s32_x3): Likewise.
13456         (vst1_u8_x3): Likewise.
13457         (vst1_u16_x3): Likewise.
13458         (vst1_u32_x3): Likewise.
13459         (vst1_f16_x3): Likewise.
13460         (vst1_f32_x3): Likewise.
13461         (vst1_p64_x3): Likewise.
13462         (vst1q_s8_x3): Likewise.
13463         (vst1q_p8_x3): Likewise.
13464         (vst1q_s16_x3): Likewise.
13465         (vst1q_p16_x3): Likewise.
13466         (vst1q_s32_x3): Likewise.
13467         (vst1q_s64_x3): Likewise.
13468         (vst1q_u8_x3): Likewise.
13469         (vst1q_u16_x3): Likewise.
13470         (vst1q_u32_x3): Likewise.
13471         (vst1q_u64_x3): Likewise.
13472         (vst1q_f16_x3): Likewise.
13473         (vst1q_f32_x3): Likewise.
13474         (vst1q_f64_x3): Likewise.
13475         (vst1q_p64_x3): Likewise.
13476         (vst2_s64): Likewise.
13477         (vst2_u64): Likewise.
13478         (vst2_f64): Likewise.
13479         (vst2_s8): Likewise.
13480         (vst2_p8): Likewise.
13481         (vst2_s16): Likewise.
13482         (vst2_p16): Likewise.
13483         (vst2_s32): Likewise.
13484         (vst2_u8): Likewise.
13485         (vst2_u16): Likewise.
13486         (vst2_u32): Likewise.
13487         (vst2_f16): Likewise.
13488         (vst2_f32): Likewise.
13489         (vst2_p64): Likewise.
13490         (vst2q_s8): Likewise.
13491         (vst2q_p8): Likewise.
13492         (vst2q_s16): Likewise.
13493         (vst2q_p16): Likewise.
13494         (vst2q_s32): Likewise.
13495         (vst2q_s64): Likewise.
13496         (vst2q_u8): Likewise.
13497         (vst2q_u16): Likewise.
13498         (vst2q_u32): Likewise.
13499         (vst2q_u64): Likewise.
13500         (vst2q_f16): Likewise.
13501         (vst2q_f32): Likewise.
13502         (vst2q_f64): Likewise.
13503         (vst2q_p64): Likewise.
13504         (vst3_s64): Likewise.
13505         (vst3_u64): Likewise.
13506         (vst3_f64): Likewise.
13507         (vst3_s8): Likewise.
13508         (vst3_p8): Likewise.
13509         (vst3_s16): Likewise.
13510         (vst3_p16): Likewise.
13511         (vst3_s32): Likewise.
13512         (vst3_u8): Likewise.
13513         (vst3_u16): Likewise.
13514         (vst3_u32): Likewise.
13515         (vst3_f16): Likewise.
13516         (vst3_f32): Likewise.
13517         (vst3_p64): Likewise.
13518         (vst3q_s8): Likewise.
13519         (vst3q_p8): Likewise.
13520         (vst3q_s16): Likewise.
13521         (vst3q_p16): Likewise.
13522         (vst3q_s32): Likewise.
13523         (vst3q_s64): Likewise.
13524         (vst3q_u8): Likewise.
13525         (vst3q_u16): Likewise.
13526         (vst3q_u32): Likewise.
13527         (vst3q_u64): Likewise.
13528         (vst3q_f16): Likewise.
13529         (vst3q_f32): Likewise.
13530         (vst3q_f64): Likewise.
13531         (vst3q_p64): Likewise.
13532         (vst4_s64): Likewise.
13533         (vst4_u64): Likewise.
13534         (vst4_f64): Likewise.
13535         (vst4_s8): Likewise.
13536         (vst4_p8): Likewise.
13537         (vst4_s16): Likewise.
13538         (vst4_p16): Likewise.
13539         (vst4_s32): Likewise.
13540         (vst4_u8): Likewise.
13541         (vst4_u16): Likewise.
13542         (vst4_u32): Likewise.
13543         (vst4_f16): Likewise.
13544         (vst4_f32): Likewise.
13545         (vst4_p64): Likewise.
13546         (vst4q_s8): Likewise.
13547         (vst4q_p8): Likewise.
13548         (vst4q_s16): Likewise.
13549         (vst4q_p16): Likewise.
13550         (vst4q_s32): Likewise.
13551         (vst4q_s64): Likewise.
13552         (vst4q_u8): Likewise.
13553         (vst4q_u16): Likewise.
13554         (vst4q_u32): Likewise.
13555         (vst4q_u64): Likewise.
13556         (vst4q_f16): Likewise.
13557         (vst4q_f32): Likewise.
13558         (vst4q_f64): Likewise.
13559         (vst4q_p64): Likewise.
13560         (vtbx4_s8): Likewise.
13561         (vtbx4_u8): Likewise.
13562         (vtbx4_p8): Likewise.
13563         (vtrn_f32): Likewise.
13564         (vtrn_p8): Likewise.
13565         (vtrn_p16): Likewise.
13566         (vtrn_s8): Likewise.
13567         (vtrn_s16): Likewise.
13568         (vtrn_s32): Likewise.
13569         (vtrn_u8): Likewise.
13570         (vtrn_u16): Likewise.
13571         (vtrn_u32): Likewise.
13572         (vtrnq_f32): Likewise.
13573         (vtrnq_p8): Likewise.
13574         (vtrnq_p16): Likewise.
13575         (vtrnq_s8): Likewise.
13576         (vtrnq_s16): Likewise.
13577         (vtrnq_s32): Likewise.
13578         (vtrnq_u8): Likewise.
13579         (vtrnq_u16): Likewise.
13580         (vtrnq_u32): Likewise.
13581         (vrsqrte_f16): Likewise.
13582         (vrsqrteq_f16): Likewise.
13583         (vsqrt_f16): Likewise.
13584         (vsqrtq_f16): Likewise.
13585         (vabd_f16): Likewise.
13586         (vabdq_f16): Likewise.
13587         (vpadd_f16): Likewise.
13588         (vpaddq_f16): Likewise.
13589         (vpmax_f16): Likewise.
13590         (vpmaxq_f16): Likewise.
13591         (vpmaxnm_f16): Likewise.
13592         (vpmaxnmq_f16): Likewise.
13593         (vpmin_f16): Likewise.
13594         (vpminq_f16): Likewise.
13595         (vpminnm_f16): Likewise.
13596         (vpminnmq_f16): Likewise.
13597         (vrsqrts_f16): Likewise.
13598         (vrsqrtsq_f16): Likewise.
13600 2019-09-25  Richard Biener  <rguenther@suse.de>
13602         PR tree-optimization/91896
13603         * tree-vect-loop.c (vectorizable_reduction): The single
13604         def-use cycle optimization cannot apply when there's more
13605         than one pattern stmt involved.
13607 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
13609         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
13610         the 'P' mode iterator, replacing the (removed) SI and DI variants.
13611         (reload_macho_picbase_<mode>): Likewise.
13613 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
13615         * config/rs6000/rs6000.md: Move darwin.md include until
13616         after the definition of the mode iterators.
13618 2019-09-23  Martin Sebor  <msebor@redhat.com>
13620         PR tree-optimization/91570
13621         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
13622         non-constant minlen, maxlen and maxbound.
13624 2019-09-24  Richard Biener  <rguenther@suse.de>
13626         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
13627         Rename to...
13628         (_stmt_vec_info::cond_reduc_code): ... this.
13629         (_stmt_vec_info::induc_cond_initial_val): Add.
13630         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
13631         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
13632         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
13633         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
13634         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
13635         the reduction code.
13636         (vect_create_epilog_for_reduction): Drop special
13637         induction condition reduction params, pass in reduction code
13638         and simplify.
13639         (vectorizable_reduction): Perform condition reduction kind
13640         selection only at analysis time.  Adjust passing on state.
13642 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13644         * config/aarch64/aarch64.md (mov<mode>): Don't call
13645         aarch64_split_dimode_const_store on volatile MEM.
13647 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
13649         * config/aarch64/aarch64-option-extensions.def (fp16fml):
13650         Update hwcap string for fp16fml.
13652 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
13654         PR middle-end/91866
13655         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
13656         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
13658 2019-09-24  Martin Liska  <mliska@suse.cz>
13660         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
13661         instead of if-elseif-elseif-...
13662         * gimple-expr.c (extract_ops_from_tree): Likewise.
13663         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13664         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
13666 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13668         PR ipa/91831
13669         * ipa-param-manipulation.c (carry_over_param): Make a method of
13670         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
13671         in case of a context mismatch.
13672         (ipa_param_body_adjustments::common_initialization): Adjust call to
13673         carry_over_param.
13674         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
13675         private method carry_over_param.
13677 2019-09-24  Martin Jambor  <mjambor@suse.cz>
13679         PR ipa/91832
13680         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
13682 2019-09-24  Richard Biener  <rguenther@suse.de>
13684         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
13685         base.
13687 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13689         * config/arm/t-arm (arm-builtins.o): Add dependency on
13690         arm_acle_builtins.def.
13692 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13694         PR target/91823
13695         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
13696         canonical CONST_INTs.  Use gen_rtvec.
13698 2019-09-23  Richard Biener  <rguenther@suse.de>
13700         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
13701         avoid adjusting by + 0 or * 1.
13702         (vect_create_epilog_for_reduction): Get reduction code only
13703         when necessary.  Deal with adjustment_def only when necessary.
13705 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
13707         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
13708         memmodel index.
13710 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13712         PR ipa/91835
13713         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
13714         "ipa-sra".
13716 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
13718         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
13719         code.  Merge code blocks with common conditionals. Use declared
13720         macro instead of a magic number for PIC level.
13722 2019-09-21  Martin Sebor  <msebor@redhat.com>
13724         PR middle-end/91830
13725         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
13726         Simplify computation of the offset of the referenced subobject.
13728 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
13730         * config/darwin.c (machopic_legitimize_pic_address): Check
13731         for lra not reload.
13733 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13735         * ira-conflicts.c (can_use_same_reg_p): New function.
13736         (process_reg_shuffles): Take an insn parameter.  Ignore cases
13737         in which input operand op_num could seemingly never be allocated
13738         to the same register as the destination.
13739         (add_insn_allocno_copies): Update call to process_reg_shuffles.
13741 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
13743         * simplify-rtx.c (neg_const_int): Replace with...
13744         (neg_poly_int_rtx): ...this new function.
13745         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
13746         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
13747         (simplify_plus_minus): Likewise for constant terms here.
13749 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
13751         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
13752         HOST_WIDE_PRINT_UNSIGNED.
13754 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
13756         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
13757         character.
13759 2019-09-20  Maya Rashish  <coypu@sdf.org>
13761         PR target/86811
13762         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
13763         Define to speculation_safe_value_not_needed.
13765 2019-09-20  Richard Biener  <rguenther@suse.de>
13766             Uros Bizjak  <ubizjak@gmail.com>
13768         PR target/91814
13769         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
13770         previous change.
13771         (general_scalar_chain::convert_op): Force not suitable memory
13772         operands to a register.
13774 2019-09-20  Richard Biener  <rguenther@suse.de>
13776         PR tree-optimization/91821
13777         * tree-vect-loop.c (check_reduction_path): Check we can compute
13778         reduc_idx.
13779         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
13780         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
13781         operands in canonical order.
13782         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
13783         STMT_VINFO_REDUC_IDX.
13784         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
13785         (STMT_VINFO_REDUC_IDX): Likewise.
13787 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
13789         PR target/91269
13790         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13792 2019-09-20  Richard Biener  <rguenther@suse.de>
13794         PR tree-optimization/91822
13795         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
13796         parameter.
13797         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
13798         for reduc_index in nested cycles, adjust vectorizable_condition
13799         calls.
13800         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
13801         parameter.
13802         (vect_analyze_stmt): Adjust.
13803         (vect_transform_stmt): Likewise.
13805 2019-09-20  Richard Biener  <rguenther@suse.de>
13807         PR target/91767
13808         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13809         Ensure there's a sequence point between allocating the new register
13810         and passing a reference to a reg via regno_reg_rtx.
13812 2019-09-20  Martin Jambor  <mjambor@suse.cz>
13814         * coretypes.h (cgraph_edge): Declare.
13815         * ipa-param-manipulation.c: Rewrite.
13816         * ipa-param-manipulation.h: Likewise.
13817         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13818         (OBJS): Added ipa-sra.o.
13819         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13820         and ref_p, added fields param_adjustments and performed_splits.
13821         (struct cgraph_clone_info): Remove ags_to_skip and
13822         combined_args_to_skip, new field param_adjustments.
13823         (cgraph_node::create_clone): Changed parameters to use
13824         ipa_param_adjustments.
13825         (cgraph_node::create_virtual_clone): Likewise.
13826         (cgraph_node::create_virtual_clone_with_body): Likewise.
13827         (tree_function_versioning): Likewise.
13828         (cgraph_build_function_type_skip_args): Removed.
13829         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13830         using ipa_param_adjustments.
13831         (clone_of_p): Likewise.
13832         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13833         (build_function_decl_skip_args): Likewise.
13834         (duplicate_thunk_for_node): Adjust parameters using
13835         ipa_param_body_adjustments, copy param_adjustments instead of
13836         args_to_skip.
13837         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13838         (cgraph_node::create_virtual_clone): Likewise.
13839         (cgraph_node::create_version_clone_with_body): Likewise.
13840         (cgraph_materialize_clone): Likewise.
13841         (symbol_table::materialize_all_clones): Likewise.
13842         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13843         ipa_replace_map check.
13844         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13845         (initialize_node_lattices): Make aware that some parameters might have
13846         already been removed.
13847         (want_remove_some_param_p): New function.
13848         (create_specialized_node): Convert to using ipa_param_adjustments and
13849         deal with possibly pre-existing adjustments.
13850         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13851         (output_node_opt_summary): Do not stream removed fields.  Stream
13852         parameter adjustments instead of argumetns to skip.
13853         (input_node_opt_summary): Likewise.
13854         (input_node_opt_summary): Likewise.
13855         * lto-section-in.c (lto_section_name): Added ipa-sra section.
13856         * lto-streamer.h (lto_section_type): Likewise.
13857         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13858         param_body_adjs.
13859         (copy_decl_to_var): Declare.
13860         * tree-inline.c (update_clone_info): Do not remap old_tree.
13861         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13862         statements, walk all extra generated statements and remap their
13863         operands.
13864         (redirect_all_calls): Add killed SSA names to a hash set.
13865         (remap_ssa_name): Do not remap killed SSA names.
13866         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13867         half of functionality moved to ipa_param_body_adjustments.
13868         (copy_decl_to_var): Make exported.
13869         (copy_body): Destroy killed_new_ssa_names hash set.
13870         (expand_call_inline): Remap performed splits.
13871         (update_clone_info): Likewise.
13872         (tree_function_versioning): Simplify tree_map processing.  Updated to
13873         accept ipa_param_adjustments and use ipa_param_body_adjustments.
13874         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13875         for the new interface.
13876         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13877         (simd_clone_compute_base_data_type): Likewise.
13878         (simd_clone_init_simd_arrays): Adjust for the new interface.
13879         (simd_clone_adjust_argument_types): Likewise.
13880         (struct modify_stmt_info): Likewise.
13881         (ipa_simd_modify_stmt_ops): Likewise.
13882         (ipa_simd_modify_function_body): Likewise.
13883         (simd_clone_adjust): Likewise.
13884         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
13885         (type_internals_preclude_sra_p): Make public.
13886         * tree-sra.h: New file.
13887         * ipa-inline-transform.c (save_inline_function_body): Update to
13888         refelct new tree_function_versioning signature.
13889         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13890         ipa_param_adjustments to get current parameter indices.
13891         (ipcp_modif_dom_walker::before_dom_children): Likewise.
13892         (ipcp_update_bits): Likewise.
13893         (ipcp_update_vr): Likewise.
13894         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13895         * ipa-sra.c: New file.
13896         * multiple_target.c (create_target_clone): Update to reflet new type
13897         of create_version_clone_with_body.
13898         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13899         tree_function_versioning.
13900         (modify_function): Update to reflect new type of
13901         tree_function_versioning.
13902         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13903         * passes.def: Remove old IPA-SRA and add new one.
13904         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13905         (make_pass_ipa_sra): Declare.
13906         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
13907         ipa_sra_retvalues.
13908         * doc/invoke.texi (ipa-sra-max-replacements): New.
13910 2019-09-19  Martin Sebor  <msebor@redhat.com>
13912         PR middle-end/91631
13913         * builtins.c (component_size): Correct trailing array computation,
13914         rename to component_ref_size and move...
13915         (compute_objsize): Adjust.
13916         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13917         (builtin_access::strict): Do not consider memmove.
13918         (builtin_access::write_off): New function.
13919         (builtin_memref::builtin_memref): Initialize refsize.
13920         (builtin_memref::set_base_and_offset): Adjust refoff and compute
13921         refsize.
13922         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13923         Handle refsize.
13924         (builtin_access::builtin_access): Initialize dstoff to destination
13925         refeence offset here instead of in maybe_diag_overlap.  Adjust
13926         referencess even to unrelated objects.  Adjust sizrange of bounded
13927         string functions to reflect bound.  For strcat, adjust destination
13928         sizrange by that of source.
13929         (builtin_access::strcat_overlap):  Adjust offsets and sizes
13930         to reflect the increase in destination sizrange above.
13931         (builtin_access::overlap): Do not set dstoff here but instead
13932         in builtin_access::builtin_access.
13933         (check_bounds_or_overlap): Use builtin_access::write_off.
13934         (maybe_diag_access_bounds): Add argument.  Add informational notes.
13935         (dump_builtin_memref, dump_builtin_access): New functions.
13936         * tree.c (component_ref_size): ...to here.
13937         * tree.h (component_ref_size): Declare.
13938         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13939         nul in the size of the source string.
13941 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
13943         PR c/67224
13944         * doc/cpp.texi: Document support for extended characters in
13945         identifiers.
13946         * doc/cppopts.texi: Likewise.
13948 2019-09-19  Richard Biener  <rguenther@suse.de>
13950         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13951         (check_reduction_path): New overload having the path as result.
13952         (vect_is_simple_reduction): From the detected reduction
13953         path build a SLP reduction chain if possible.
13955 2019-09-19  Richard Biener  <rguenther@suse.de>
13957         PR target/91814
13958         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13959         Force operand to a register if it isn't nonimmediate_operand.
13961 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13963         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13964         * config/arm/iterators.md (optab): Add and, ior, xor entries.
13965         (logical_op): Remove code attribute.
13966         (logical_OP): Likewise.
13968 2019-09-19  Martin Liska  <mliska@suse.cz>
13970         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13971         Use proper casting.
13973 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
13975         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13976         registers with %R.
13978         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13979         for NE comparison of TImode values.
13980         (aarch64_emit_load_exclusive): Add support for TImode.
13981         (aarch64_emit_store_exclusive): Likewise.
13982         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13983         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13984         Change iterator from ALLI to ALLI_TI.
13985         (@atomic_compare_and_swap<JUST_TI>): New.
13986         (@atomic_compare_and_swap<JUST_TI>_lse): New.
13987         (aarch64_load_exclusive_pair): New.
13988         (aarch64_store_exclusive_pair): New.
13989         * config/aarch64/iterators.md (JUST_TI): New.
13991         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13992         strong_zero_p for aarch64_track_speculation; unify some code paths;
13993         use aarch64_gen_compare_reg instead of open-coding.
13995         * config/aarch64/aarch64.opt (-moutline-atomics): New.
13996         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13997         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13998         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13999         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
14000         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
14001         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
14002         (atomic_<atomic_op><ALLI>): Likewise.
14003         (atomic_fetch_<atomic_op><ALLI>): Likewise.
14004         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
14005         * doc/invoke.texi: Document -moutline-atomics.
14007 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
14009         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
14010         trivial predicate for condition branch.
14011         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
14012         for switch case.
14013         (compute_bb_predicates): Update predicate based on post-dominating
14014         relationship.
14015         (analyze_function_body): Calculate post-dominating information.
14017 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
14019         * tree-vectorizer.h (vectorizable_condition): Take an int
14020         reduction index instead of a boolean flag.
14021         * tree-vect-stmts.c (vectorizable_condition): Likewise.
14022         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
14023         reductions if the reduction accumulator is the "then" rather
14024         than the "else" value.
14025         (vect_analyze_stmt): Update call accordingly.
14026         (vect_transform_stmt): Likewise.
14027         * tree-vect-loop.c (vectorizable_reduction): Likewise,
14028         asserting that the index is > 0.
14030 2019-09-19  Martin Liska  <mliska@suse.cz>
14032         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
14033         (sort_congruence_classes_by_decl_uid): Likewise.
14034         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
14035         easier sorting.
14036         (sem_item_optimizer::merge_classes): Likewise.
14038 2019-09-19  Richard Biener  <rguenther@suse.de>
14040         PR tree-optimization/91812
14041         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
14042         volatile loads.
14044 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
14046         * defaults.h (TARGET_UNIT): New macro.
14047         (target_unit): New type.
14048         * rtl.h (native_encode_rtx, native_decode_rtx)
14049         (native_decode_vector_rtx, subreg_size_lsb): Declare.
14050         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
14051         * rtlanal.c (subreg_lsb_1): Delete.
14052         (subreg_size_lsb): New function.
14053         * simplify-rtx.c: Include rtx-vector-builder.h
14054         (simplify_immed_subreg): Delete.
14055         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
14056         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
14057         functions.
14058         (simplify_subreg): Use them.
14059         (test_vector_subregs_modes, test_vector_subregs_repeating)
14060         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
14061         (test_vector_subregs): New functions.
14062         (test_vector_ops): Call test_vector_subregs for integer vector
14063         modes with at least 2 elements.
14065 2019-09-19  Richard Biener  <rguenther@suse.de>
14067         * tree-parloops.c (parloops_is_slp_reduction): Do not set
14068         LOOP_VINFO_OPERANDS_SWAPPED.
14069         (parloops_is_simple_reduction): Likewise.
14070         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
14071         initialize operands_swapped.
14072         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
14073         (vect_is_slp_reduction): Do not swap operands.
14074         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
14075         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
14077 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
14079         PR target/87007
14080         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
14081         Add avx_partial_xmm_update.
14083 2019-09-18  Jim Wilson  <jimw@sifive.com>
14085         PR target/91683
14086         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
14087         (riscv_move_integer): Likewise.
14088         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
14089         riscv_move_integer arg.
14090         (riscv_legitimize_move): Likewise.
14091         (riscv_force_temporary): New parameter in_splitter.  Don't call
14092         force_reg if true.
14093         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
14094         arg.
14095         (riscv_add_offset): Likewise.
14096         (riscv_split_symbol): New parameter in_splitter.  Pass to
14097         riscv_force_temporary.
14098         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
14099         arg.
14100         (riscv_move_integer): New parameter in_splitter.  New local
14101         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
14102         in_splitter TRUE.
14103         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
14104         riscv_split_symbol, and riscv_force_temporary args.
14105         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
14106         riscv_move_integer arg.
14107         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
14109 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
14111         PR target/90878
14112         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
14113         hard register store cost to 6.
14115 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
14117         PR target/91446
14118         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
14119         pseudo register store cost from 3 to 6 to make it the same as
14120         QImode and HImode.
14122 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14124         PR target/91738
14125         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
14126         (one_cmpldi2): Likewise.
14127         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
14128         of the constant parts is simple.
14129         * config/arm/iterators.md (LOGICAL): Add new code iterator.
14130         (logical_op): Add new code attribute.
14131         (logical_OP): Likewise.
14132         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
14133         (arm_iordi_operand): Add predicate.
14134         (arm_xordi_operand): Add predicate.
14136 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14138         * config/arm/arm.md (maddsidi4): Remove expander.
14139         (mulsidi3adddi): Remove pattern.
14140         (mulsidi3adddi_v6): Likewise.
14141         (mulsidi3_nov6): Likewise.
14142         (mulsidi3_v6): Likewise.
14143         (umulsidi3): Remove expander.
14144         (umulsidi3_nov6): Remove pattern.
14145         (umulsidi3_v6): Likewise.
14146         (umulsidi3adddi): Likewise.
14147         (umulsidi3adddi_v6): Likewise.
14148         (<Us>mulsidi3): Add combined expander.
14149         (<Us>maddsidi4): Likewise.
14150         (<US>mull): Add combined umull and smull pattern.
14151         (<US>mlal): Likewise.
14152         * config/arm/iterators.md (Us): Add new iterator.
14154 2019-09-18  Richard Biener  <rguenther@suse.de>
14156         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
14157         swapping.
14158         (vectorize_fold_left_reduction): Remove assert.
14159         (vectorizable_reduction): Also expect COND_EXPR non-reduction
14160         operand in position 2.  Remove assert.
14162 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14164         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
14165         (smulsi3_highpart_nov6): Remove pattern.
14166         (smulsi3_highpart_v6): Likewise.
14167         (umulsi3_highpart): Likewise.
14168         (umulsi3_highpart_nov6): Likewise.
14169         (umulsi3_highpart_v6): Likewise.
14170         (<US>mull_high): Add new combined multiply pattern.
14172 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14174         * config/arm/arm.md (arm_mulsi3): Remove pattern.
14175         (arm_mulsi3_v6): Likewise.
14176         (mulsi3addsi_v6): Likewise.
14177         (mulsi3subsi): Likewise.
14178         (mul): Add new multiply pattern.
14179         (mla): Likewise.
14180         (mls): Likewise.
14182 2019-09-18  Richard Biener  <rguenther@suse.de>
14184         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
14185         (parloops_valid_reduction_input_p): Copy from
14186         valid_reduction_input_p.
14187         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
14188         (parloops_needs_fold_left_reduction_p): Copy from
14189         needs_fold_left_reduction_p.
14190         (parloops_is_simple_reduction): Copy from
14191         vect_is_simple_reduction.
14192         (parloops_force_simple_reduction): Copy from
14193         vect_force_simple_reduction.
14194         (gather_scalar_reductions): Adjust.
14195         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
14196         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
14198 2019-09-18  Richard Biener  <rguenther@suse.de>
14200         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
14201         * tree-vect-loop.c (get_initial_def_for_reduction): Make
14202         static.
14203         (vect_create_epilog_for_reduction): Remove dead code.
14205 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
14207         * varasm.c (assemble_real): Generate canonical const_ints.
14209 2019-09-18  Richard Biener  <rguenther@suse.de>
14211         PR lto/91763
14212         * lto-streamer-in.c (input_eh_regions): Move EH init to
14213         lto_materialize_function.
14214         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
14215         Likewise.
14217 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
14219         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
14220         are INTEGER_CSTs.
14222 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
14224         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
14225         of checking specifically for INTEGER_CST.
14227 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
14229         * stor-layout.c (compute_record_mode): Operate on poly_uint64
14230         sizes instead of uhwi sizes.
14232 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
14234         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
14235         (add_const_value_attribute): Handle CONST_POLY_INT.
14237 2019-09-18  Martin Liska  <mliska@suse.cz>
14239         * dbgcnt.def (store_merging): New counter.
14240         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
14241         Use it in store merging.
14243 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14245         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
14246         function.
14247         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
14248         * config/arm/arm.c (arm_sched_variable_issue): New function.
14249         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
14251 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14253         * config/arm/types.md (no_reservation): New reservation.
14254         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
14255         no_insn here.
14256         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
14257         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
14258         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
14259         * config/arm/arm1020e.md (1020alu_op): Likewise.
14260         * config/arm/arm1026ejs.md (alu_op): Likewise.
14261         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14262         * config/arm/arm926ejs.md (9_alu_op): Likewise.
14263         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14264         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
14265         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14266         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14267         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
14268         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
14269         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14270         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14271         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14272         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
14273         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
14274         * config/arm/fa526.md (526_alu_op): Likewise.
14275         * config/arm/fa606te.md (606te_alu_op): Likewise.
14276         * config/arm/fa626te.md (626te_alu_op): Likewise.
14277         * config/arm/fa726te.md (726te_alu_op): Likewise.
14278         * config/arm/xgene1.md (xgene1_nop): Likewise.
14280 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14282         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
14283         "no_insn" to "branch".
14285 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14287         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
14289 2019-09-17  Richard Biener  <rguenther@suse.de>
14291         PR debug/91772
14292         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
14293         was missing generate locations only once.
14295 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
14297         PR ipa/91089
14298         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
14299         option.
14300         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
14301         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
14302         for switch default case using range analysis information.
14304 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
14306         PR target/91749
14307         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
14308         mode attributed is supported by FDPIC.
14310 2019-09-17  Richard Biener  <rguenther@suse.de>
14312         PR tree-optimization/91790
14313         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
14314         use the correct DR for setting up realignment.
14316 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14318         PR target/91719
14319         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
14320         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
14321         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
14322         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
14324 2019-09-16  Jason Merrill  <jason@redhat.com>
14326         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
14328 2019-09-16  Martin Liska  <mliska@suse.cz>
14330         * gimple-fold.c (or_comparisons_1): Remove rules moved
14331         to ...
14332         * match.pd: ... here.
14334 2019-09-16  Martin Liska  <mliska@suse.cz>
14336         * gimple-fold.c (or_comparisons_1): Remove rules
14337         moved to ...
14338         * match.pd: ... here.
14340 2019-09-16  Martin Liska  <mliska@suse.cz>
14342         * genmatch.c (dt_node::append_simplify): Do not print
14343         warning when we have duplicate patterns belonging
14344         to a same simplify rule.
14345         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
14346         (maybe_fold_comparisons_from_match_pd): Handle
14347         tcc_comparison as a results.
14348         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
14350 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
14351             Qi Feng  <ffengqi@linux.ibm.com>
14353         PR middle-end/88784
14354         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
14355         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
14356         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
14357         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
14358         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
14359         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
14360         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
14361         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
14362         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
14363         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
14364         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
14365         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
14367 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
14368             Martin Liska  <mliska@suse.cz>
14370         * gimple-fold.c (and_comparisons_1): Add type as first
14371         argument.
14372         (and_var_with_comparison): Likewise.
14373         (and_var_with_comparison_1): Likewise.
14374         (or_comparisons_1): Likewise.
14375         (or_var_with_comparison): Likewise.
14376         (or_var_with_comparison_1): Likewise.
14377         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
14378         (maybe_fold_or_comparisons): Likewise.
14379         (maybe_fold_comparisons_from_match_pd): New.
14380         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
14381         (maybe_fold_or_comparisons): Likewise.
14382         * gimple.c (gimple_size): Make it public and add num_ops argument.
14383         (gimple_init): New function.
14384         (gimple_alloc): Call gimple_init.
14385         * gimple.h (gimple_size): New.
14386         (gimple_init): Likewise.
14387         * tree-if-conv.c (fold_or_predicates): Pass type.
14388         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14389         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
14390         (optimize_vec_cond_expr): Likewise.
14391         (ovce_extract_ops): Return type of conditional expression.
14392         * tree-ssanames.c (init_ssa_name_imm_use): New.
14393         (make_ssa_name_fn): Use init_ssa_name_imm_use.
14394         * tree-ssanames.h (init_ssa_name_imm_use): New.
14396 2019-09-16  Richard Biener  <rguenther@suse.de>
14398         PR tree-optimization/91756
14399         PR tree-optimization/87132
14400         * tree-ssa-alias.h (enum translate_flags): New.
14401         (get_continuation_for_phi): Use it instead of simple bool flag.
14402         (walk_non_aliased_vuses): Likewise.
14403         * tree-ssa-alias.c (maybe_skip_until): Adjust.
14404         (get_continuation_for_phi): When looking across backedges only
14405         disallow valueization.
14406         (walk_non_aliased_vuses): Adjust.
14407         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
14408         if requested.
14410 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
14412         PR middle-end/80791
14413         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
14414         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
14415         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
14416         * target.def (have_count_reg_decr_p): New hook.
14417         (doloop_cost_for_generic): Likewise.
14418         (doloop_cost_for_address): Likewise.
14419         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
14420         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
14421         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
14422         * doc/tm.texi: Regenerate.
14423         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
14424         addend.
14425         (record_group): Init doloop_p.
14426         (add_candidate_1): Add optional argument doloop, change the handlings
14427         accordingly.
14428         (add_candidate): Likewise.
14429         (generic_predict_doloop_p): Update attribute.
14430         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
14431         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
14432         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
14433         MIN_EXPR.
14434         (get_computation_cost): Update for doloop IV cand extra cost.
14435         (determine_group_iv_cost_cond): Update for doloop IV cand.
14436         (determine_iv_cost): Likewise.
14437         (ivopts_estimate_reg_pressure): Likewise.
14438         (may_eliminate_iv): Update handlings for doloop IV cand.
14439         (add_iv_candidate_for_doloop): New function.
14440         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
14441         (iv_ca_set_no_cp): Update for doloop IV cand.
14442         (iv_ca_set_cp): Likewise.
14443         (iv_ca_dump): Dump register cost.
14444         (find_doloop_use): New function.
14445         (analyze_and_mark_doloop_use): Likewise.
14446         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
14448 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14450         PR middle-end/91708
14451         * cse.c (cse_insn): Do not replace anything with a
14452         MEM.
14454 2019-09-13  Ian Lance Taylor  <iant@golang.org>
14456         * doc/invoke.texi (Optimize Options): Fix typo.
14458 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14460         PR tree-optimization/89386
14461         * config/i386/sse.md (smulhrs<mode>3): New expander.
14462         (smulhrsv4hi3): Ditto.
14464 2019-09-12  Richard Biener  <rguenther@suse.de>
14466         PR tree-optimization/91750
14467         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
14468         in the type of the evolution.
14470 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
14472         PR tree-optimization/89386
14473         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
14474         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
14475         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
14476         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
14477         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
14478         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
14479         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
14480         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
14481         (su, r): Handle the unspecs above.
14482         (bt): New int attribute.
14483         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
14484         * internal-fn.c (first_commutative_argument): Commutativity info for
14485         above.
14486         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
14487         (umulhrs_optab): New optabs.
14488         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
14489         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
14490         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
14491         function.
14492         (vect_vect_recog_func_ptrs): Add it.
14494 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
14496         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
14497         code.
14499 2019-09-11  Nathan Sidwell  <nathan@acm.org>
14501         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
14502         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
14504 2019-09-11  Richard Biener  <rguenther@suse.de>
14506         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
14507         * lto-wrapper.c (merge_and_complain): Pick up -g.
14508         (append_compiler_options): Likewise.
14509         (run_gcc): Re-instantiate handling -g0 at link-time.
14510         * doc/invoke.texi (flto): Document debug info generation.
14512 2019-09-11  Richard Biener  <rguenther@suse.de>
14514         PR tree-optimization/90387
14515         * vr-values.c (vr_values::extract_range_basic): After inlining
14516         simplify non-constant __builtin_constant_p to false.
14518 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
14520         PR rtl-optimization/89795
14521         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
14522         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
14524 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
14526         PR tree-optimization/91723
14527         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
14528         instead of pointer equality when checking if argument vectypes are
14529         the same.
14531         PR middle-end/91725
14532         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
14533         of get_nonzero_bits, only call it for integral types.
14535 2019-09-11  Richard Biener  <rguenther@suse.de>
14537         Revert
14538         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
14540         * match.pd: Add flag_unsafe_math_optimizations check
14541         before deciding on the widest type in a binary math operation.
14543 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14545         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
14546         and CALL_REALLY_USED_REGISTERS must be defined, and that
14547         CALL_REALLY_USED_REGISTERS is preferred.
14548         * doc/tm.texi: Regenerate.
14549         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
14550         (call_really_used_regs): Likewise.
14551         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
14552         CALL_REALLY_USED_REGISTERS are defined.
14553         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
14554         initial value if defined.
14555         (initial_call_really_used_regs): Delete.
14556         (saved_call_really_used_regs): Likewise.
14557         (CALL_REALLY_USED_REGNO_P): Likewise.
14558         (init_reg_sets): Remove handling of call_really_used_regs.
14559         (save_register_info, restore_register_info, globalize_reg): Likewise.
14560         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
14561         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
14562         outside operand_reg_set.
14563         (fix_register): Don't change call_used_regs if
14564         CALL_REALLY_USED_REGISTERS is defined.
14565         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
14566         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
14567         instead of call_really_used_regs.
14568         (csky_conditional_register_usage): Remove the old handling of
14569         call_used_regs and change the handling of call_really_used_regs
14570         to use call_used_regs instead.
14571         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
14572         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
14573         making a register fixed.
14574         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
14575         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
14576         instead of call_really_used_regs.
14577         (m32r_conditional_register_usage): Don't set call_used_regs when
14578         making a register fixed.
14579         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
14580         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
14581         instead of call_really_used_regs.
14582         (mips_interrupt_extra_call_saved_reg_p): Likewise.
14583         (mips_cfun_call_saved_reg_p): Likewise.
14584         (mips_swap_registers): Remove the old handling of call_used_regs
14585         and change the handling of call_really_used_regs to use call_used_regs
14586         instead.
14587         (mips_conditional_register_usage): Likewise.
14588         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
14589         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
14590         instead of call_really_used_regs.
14591         (mn10300_get_live_callee_saved_regs): Likewise.
14592         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
14593         (mn10300_conditional_register_usage): Don't set call_used_regs when
14594         making a register fixed.
14595         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
14596         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
14597         Remove the old handling of call_used_regs and change the handling
14598         of call_really_used_regs to use call_used_regs instead.
14599         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
14600         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
14601         instead of call_really_used_regs.
14602         (s390_register_info_gprtofpr, s390_register_info): Likewise.
14603         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
14604         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
14605         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
14606         (s390_conditional_register_usage): Remove the old handling of
14607         call_used_regs and change the handling of call_really_used_regs
14608         to use call_used_regs instead.
14609         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
14610         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
14611         (sh_fix_range, reg_unused_after): Likewise.
14612         (sh_conditional_register_usage): Remove the old handling of
14613         call_used_regs and change the handling of call_really_used_regs
14614         to use call_used_regs instead.
14615         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
14616         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
14617         call_used_regs when making a register fixed.
14618         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
14619         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
14620         call_used_regs when making a register fixed.
14621         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
14622         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
14623         set call_used_regs when making a register fixed.
14624         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
14625         * config/visium/visium.c (visium_conditional_register_usage): Remove
14626         the old handling of call_used_regs and change the handling of
14627         call_really_used_regs to use call_used_regs instead.
14629 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14631         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
14632         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
14633         * reginfo.c (call_used_regs): New macro.
14635 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14637         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
14638         fixed_regs test.
14639         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14640         (bpf_expand_epilogue): Likewise.
14641         * config/c6x/c6x.c (c6x_save_reg): Likewise.
14642         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14643         (ft32_expand_epilogue): Likewise.
14644         * config/i386/i386.c (ix86_save_reg): Likewise.
14645         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
14646         (moxie_expand_epilogue): Likewise.
14647         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14648         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14649         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14651 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14653         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
14654         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
14655         instead of testing call_used_regs directly.
14656         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
14657         (aarch64_components_for_bb): Likewise.
14658         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
14659         * config/arc/arc.c (arc_must_save_register): Likewise.
14660         (arc_epilogue_uses): Likewise.
14661         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
14662         (legitimize_pic_address, callee_saved_reg_p): Likewise.
14663         (arm_compute_save_reg0_reg12_mask): Likewise.
14664         (arm_compute_save_core_reg_mask): Likewise.
14665         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
14666         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
14667         (cmse_nonsecure_entry_clear_before_return): Likewise.
14668         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
14669         (arm_expand_epilogue): Likewise.
14670         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
14671         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
14672         (_reg_unused_after): Likewise.
14673         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
14674         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
14675         (add_to_reg, hwloop_optimize): Likewise.
14676         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14677         (bpf_expand_epilogue): Likewise.
14678         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
14679         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
14680         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
14681         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
14682         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
14683         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
14684         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
14685         * config/frv/frv.c (frv_stack_info): Likewise.
14686         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
14687         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
14688         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
14689         (move_callee_saved_registers): Likewise.
14690         * config/h8300/h8300.c (byte_reg): Likewise.
14691         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
14692         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
14693         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
14694         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
14695         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
14696         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
14697         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
14698         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
14699         * config/m32c/m32c.c (need_to_save): Likewise.
14700         * config/m68k/m68k.c (m68k_save_reg): Likewise.
14701         * config/mcore/mcore.c (calc_live_regs): Likewise.
14702         * config/microblaze/microblaze.c (microblaze_must_save_register):
14703         Likewise.
14704         * config/mmix/mmix.c (mmix_local_regno): Likewise.
14705         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
14706         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
14707         (mmix_expand_epilogue): Likewise.
14708         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
14709         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
14710         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
14711         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
14712         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
14713         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
14714         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
14715         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
14716         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
14717         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
14718         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
14719         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
14720         * config/rl78/rl78.c (need_to_save): Likewise.
14721         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
14722         (rs6000_stack_info, generate_set_vrsave): Likewise.
14723         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
14724         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
14725         * config/rx/rx.c (rx_get_stack_layout): Likewise.
14726         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14727         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
14728         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
14729         (save_local_or_in_reg_p): Likewise.
14730         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
14731         (xstormy16_epilogue_uses): Likewise.
14732         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14733         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14734         * config/v850/v850.c (compute_register_save_size): Likewise.
14735         * config/vax/vax.c (vax_expand_prologue): Likewise.
14736         * config/visium/visium.c (visium_save_reg_p): Likewise.
14737         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14738         * cselib.c (cselib_process_insn): Likewise.
14739         * df-scan.c (df_get_entry_block_def_set): Likewise.
14740         * function.c (aggregate_value_p): Likewise.
14741         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
14742         * ira-lives.c (process_bb_node_lives): Likewise.
14743         * ira.c (do_reload): Likewise.
14744         * lra-lives.c (process_bb_lives): Likewise.
14745         * lra-remat.c (lra_remat): Likewise.
14746         * lra.c (lra): Likewise.
14747         * postreload.c (reload_combine_recognize_pattern): Likewise.
14748         (reload_cse_move2add): Likewise.
14749         * recog.c (peep2_find_free_register): Likewise.
14750         * regrename.c (check_new_reg_p): Likewise.
14751         * reload.c (find_equiv_reg): Likewise.
14752         * reload1.c (reload, find_reg): Likewise.
14753         * sel-sched.c (init_hard_regs_data): Likewise.
14755 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14757         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
14758         regs_invalidated_by_call & ~fixed_reg_set instead of
14759         call_used_or_fixed_regs & ~fixed_reg_set.
14760         * config/sh/sh.c (output_stack_adjust): Likewise.
14762 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14764         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
14765         (call_used_reg_set): Delete.
14766         (call_used_or_fixed_regs): New macro.
14767         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
14768         of call_used_reg_set.
14769         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
14770         instead of call_used_regs.
14771         (save_call_clobbered_regs): Likewise.
14772         * cfgcleanup.c (old_insns_match_p): Likewise.
14773         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
14774         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14775         Likewise.
14776         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14777         * config/sh/sh.c (output_stack_adjust): Likewise.
14778         * final.c (collect_fn_hard_reg_usage): Likewise.
14779         * ira-build.c (ira_build): Likewise.
14780         * ira-color.c (calculate_saved_nregs): Likewise.
14781         (allocno_reload_assign, calculate_spill_cost): Likewise.
14782         * ira-conflicts.c (ira_build_conflicts): Likewise.
14783         * ira-costs.c (ira_tune_allocno_costs): Likewise.
14784         * ira-lives.c (process_bb_node_lives): Likewise.
14785         * ira.c (setup_reg_renumber): Likewise.
14786         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
14787         * lra-constraints.c (need_for_call_save_p): Likewise.
14788         (need_for_split_p, inherit_in_ebb): Likewise.
14789         * lra-lives.c (process_bb_lives): Likewise.
14790         * lra-remat.c (call_used_input_regno_present_p): Likewise.
14791         * postreload.c (reload_combine): Likewise.
14792         * regrename.c (find_rename_reg): Likewise.
14793         * reload1.c (reload_as_needed): Likewise.
14794         * rtlanal.c (find_all_hard_reg_sets): Likewise.
14795         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14796         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14798 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14800         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
14801         (no_caller_save_reg_set): Delete.
14802         * caller-save.c (init_caller_save): Don't initialize it.
14803         * ira-conflicts.c (ira_build_conflicts): Calculate
14804         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
14806 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14808         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14809         (target_hard_regs::x_savable_regs): New field.
14810         (call_fixed_reg_set): Delete.
14811         (savable_regs): New macro,
14812         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14813         (init_reg_sets_1): Likewise.  Initialize savable_regs.
14814         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14815         for all registers.  Set savable_regs instead of call_fixed_reg_set.
14816         (setup_save_areas, save_call_clobbered_regs): Replace uses of
14817         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14818         * config/sh/sh.c (output_stack_adjust): Likewise.
14820 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14822         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14823         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14824         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14826 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14828         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14829         * rtlanal.c (get_call_rtx_from): Likewise.
14830         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14831         than the pattern to get_call_rtx_from.
14832         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14833         an rtx_insn * instead of an rtx.
14834         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14836 2019-09-10  Martin Liska  <mliska@suse.cz>
14838         * common.opt: Use newly added WarnRemoved.
14839         * config/aarch64/aarch64.opt: Likewise.
14840         * config/arm/arm.opt: Likewise.
14841         * config/i386/i386.opt: Likewise.
14842         * config/ia64/ia64.opt: Likewise.
14843         * config/rs6000/rs6000.opt: Likewise.
14844         * doc/options.texi: Document WarnRemoved properly.
14845         * dwarf2out.c (gen_producer_string): Handle renamed
14846         OPT_SPECIAL_warn_removed.
14847         * lto-opts.c (lto_write_options): Likewise.
14848         * lto-wrapper.c (merge_and_complain): Likewise.
14849         * opts-common.c (decode_cmdline_option): Likewise.
14850         (prune_options): Likewise.
14851         (read_cmdline_option): Likewise.
14852         (control_warning_option): Likewise.
14853         * opts.c (print_filtered_help): Likewise.
14854         * optc-gen.awk: Parse for WarnRemoved and make usage
14855         of Deprecated an error.
14856         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14858 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
14860         * doc/install.texi: Fix syntax for html generation.
14862 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
14864         PR middle-end/91680
14865         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14866         the shift type to type.
14868 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14870         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14871         FDPIC mode.
14872         (stack_protect_combined_test_insn): Likewise.
14874 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14875             Mickaël Guêné <mickael.guene@st.com>
14877         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14878         * config/arm/arm.md (FDPIC_REGNUM): New constant.
14879         (load_tp_soft_fdpic): New pattern.
14880         (load_tp_soft): Disable in FDPIC mode.
14882 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14883             Mickaël Guêné <mickael.guene@st.com>
14885         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14886         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14887         (arm_call_tls_get_addr): Add FDPIC support.
14888         (legitimize_tls_address): Likewise.
14889         (arm_emit_tls_decoration): Likewise.
14891 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14892             Mickaël Guêné <mickael.guene@st.com>
14894         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14895         support.
14896         (arm_trampoline_init): Likewise.
14897         (arm_trampoline_adjust_address): Likewise.
14898         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14900 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14901             Mickaël Guêné <mickael.guene@st.com>
14903         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14904         (legitimize_pic_address): Enforce binding rules on function
14905         pointers in FDPIC mode.
14906         (arm_assemble_integer): Likewise.
14908 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14909             Mickaël Guêné <mickael.guene@st.com>
14911         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14912         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14913         FDPIC.
14915 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14916             Mickaël Guêné <mickael.guene@st.com>
14918         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14919         field.
14921 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14922             Mickaël Guêné <mickael.guene@st.com>
14924         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14925         in FDPIC mode.
14926         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14927         new function.
14928         * config/arm/arm.c (arm_option_override): Define pic register to
14929         FDPIC_REGNUM.
14930         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14931         have no decl or go through PLT.
14932         (calculate_pic_address_constant): New function.
14933         (legitimize_pic_address): Call calculate_pic_address_constant.
14934         (arm_load_pic_register): Handle TARGET_FDPIC.
14935         (arm_is_segment_info_known): New function.
14936         (arm_pic_static_addr): Add support for FDPIC.
14937         (arm_load_function_descriptor): New function.
14938         (arm_emit_call_insn): Add support for FDPIC.
14939         (arm_assemble_integer): Add support for FDPIC.
14940         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14941         Define. (FDPIC_REGNUM): New define.
14942         * config/arm/arm.md (call): Add support for FDPIC.
14943         (call_value): Likewise.
14944         (restore_pic_register_after_call): New pattern.
14945         (untyped_call): Disable if FDPIC.
14946         (untyped_return): Likewise.
14947         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14949 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14950             Mickaël Guêné <mickael.guene@st.com>
14952         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14953         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14954         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14955         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14956         (CC1_SPEC): Use FDPIC_CC1_SPEC.
14957         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14958         * config/arm/uclinuxfdpiceabi.h: New file.
14960 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14962         * config.gcc: Handle *-*-uclinuxfdpiceabi.
14964 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
14965             Mickaël Guêné  <mickael.guene@st.com>
14967         * config/arm/arm.opt: Add -mfdpic option.
14968         * doc/invoke.texi: Add documentation for -mfdpic.
14970 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14972         * expmed.c (extract_bit_field): Update function comment
14973         regarding alt_rtl.
14974         * expr.c (expand_expr_real): Update function comment
14975         regarding alt_rtl.
14976         (expand_misaligned_mem_ref): New helper function.
14977         (expand_expr_real_2): Use expand_misaligned_mem_ref.
14978         Remove duplicate assignment to "base" at case MEM_REF.
14979         Remove a shadowed variable "unsignedp" at case VCE. 
14981 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
14983         * regset.h (regs_invalidated_by_call_regset): Delete.
14984         (fixed_reg_set_regset): Likewise.
14985         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14986         (fixed_reg_set_regset, persistent_obstack): Likewise.
14987         (init_reg_sets_1, globalize_reg): Update accordingly.
14988         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14989         instead of a bitmap.
14990         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14991         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14992         instead of regs_invalidated_by_call_regset.
14993         (df_lr_confluence_n, df_md_confluence_n): Likewise.
14994         * df-scan.c (df_scan_start_dump): Likewise.
14995         * dse.c (copy_fixed_regs): Likewise.
14996         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14998 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15000         * array-traits.h: New file.
15001         * coretypes.h (array_traits, bitmap_view): New types.
15002         * bitmap.h: Include "array-traits.h"
15003         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
15004         (base_bitmap_view, bitmap_view): New classes.
15005         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
15006         * hard-reg-set.h: Include array-traits.h.
15007         (array_traits<HARD_REG_SET>): New struct.
15008         * regset.h (IOR_REG_SET_HRS): New macro.
15009         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
15010         rather than iterating over each hard register.
15011         * sched-deps.c (sched_analyze_insn): Likewise.
15012         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
15014 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15016         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
15017         instead of a HARD_REG_SET *.
15018         * ira-build.c (ior_hard_reg_conflicts): Likewise.
15019         (ira_build): Update call accordingly.
15020         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
15022 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15024         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
15025         (HARD_REG_SET::operator!=): Likewise.
15026         (hard_reg_set_equal_p): Delete.
15027         * cfgcleanup.c (old_insns_match_p): Use == instead of
15028         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
15029         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
15030         (add_allocno_hard_regs_to_forest): Likewise.
15031         (setup_allocno_available_regs_num): Likewise.
15032         * ira.c (setup_pressure_classes): Likewise.
15033         (setup_allocno_and_important_classes): Likewise.
15034         (setup_reg_class_relations): Likewise.
15035         * lra-lives.c (process_bb_lives): Likewise.
15036         * reg-stack.c (change_stack, convert_regs_1): Likewise.
15038 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15040         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
15041         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15042         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
15043         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
15044         Likewise.
15045         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
15046         * ira.c (setup_reg_renumber): Likewise.
15047         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15048         * regrename.c (regrename_find_superclass): Likewise.
15049         * reload1.c (find_reg): Likewise.
15051 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15053         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
15054         * caller-save.c (setup_save_areas): Use "&~" instead of
15055         AND_COMPL_HARD_REG_SET.
15056         (save_call_clobbered_regs): Likewise.
15057         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
15058         Likewise.
15059         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
15060         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15061         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
15062         * config/mips/mips.c (mips_class_max_nregs): Likewise.
15063         (mips_conditional_register_usage): Likewise.
15064         * config/sh/sh.c (output_stack_adjust): Likewise.
15065         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
15066         (setup_profitable_hard_regs): Likewise.
15067         (get_conflict_and_start_profitable_regs): Likewise.
15068         * ira-conflicts.c (print_allocno_conflicts): Likewise.
15069         (ira_build_conflicts): Likewise.
15070         * ira-costs.c (restrict_cost_classes): Likewise.
15071         (setup_regno_cost_classes_by_aclass): Likewise.
15072         * ira-lives.c (process_bb_node_lives): Likewise.
15073         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
15074         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
15075         (setup_allocno_and_important_classes, setup_class_translate_array)
15076         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
15077         Likewise.
15078         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15079         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15080         (process_alt_operands, inherit_in_ebb): Likewise.
15081         * lra-eliminations.c (update_reg_eliminate): Likewise.
15082         * lra-lives.c (process_bb_lives): Likewise.
15083         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
15084         * resource.c (find_dead_or_set_registers): Likewise.
15085         (mark_target_live_regs): Likewise.
15086         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
15087         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15088         (implicit_clobber_conflict_p): Likewise.
15089         * shrink-wrap.c (requires_stack_frame_p): Likewise.
15090         (try_shrink_wrapping): Likewise.
15092 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15094         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
15095         (HARD_REG_SET::operator|=): Likewise.
15096         (IOR_HARD_REG_SET): Delete.
15097         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
15098         IOR_HARD_REG_SET.
15099         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
15100         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
15101         * final.c (collect_fn_hard_reg_usage): Likewise.
15102         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
15103         * ira-build.c (merge_hard_reg_conflicts): Likewise.
15104         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
15105         (propagate_some_info_from_allocno): Likewise.
15106         (copy_info_to_removed_store_destinations): Likewise.
15107         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
15108         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
15109         (fast_allocation): Likewise.
15110         * ira-conflicts.c (ira_build_conflicts): Likewise.
15111         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
15112         (process_bb_node_lives): Likewise.
15113         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
15114         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15115         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
15116         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
15117         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
15118         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
15119         (process_bb_lives): Likewise.
15120         * lra-spills.c (assign_spill_hard_regs): Likewise.
15121         * postreload.c (reload_combine): Likewise.
15122         * reginfo.c (init_reg_sets_1): Likewise.
15123         * regrename.c (merge_overlapping_regs, find_rename_reg)
15124         (merge_chains): Likewise.
15125         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
15126         (find_reload_regs, finish_spills, choose_reload_regs_init)
15127         (emit_reload_insns): Likewise.
15128         * reorg.c (redundant_insn): Likewise.
15129         * resource.c (find_dead_or_set_registers, mark_set_resources)
15130         (mark_target_live_regs): Likewise.
15131         * rtlanal.c (find_all_hard_reg_sets): Likewise.
15132         * sched-deps.c (sched_analyze_insn): Likewise.
15133         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15134         (find_best_reg_for_expr): Likewise.
15135         * shrink-wrap.c (try_shrink_wrapping): Likewise.
15137 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15139         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
15140         (HARD_REG_SET::operator&): Likewise.
15141         (AND_HARD_REG_SET): Delete.
15142         * caller-save.c (setup_save_areas): Use "&" instead of
15143         AND_HARD_REG_SET.
15144         (save_call_clobbered_regs): Likewise.
15145         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15146         * config/m32c/m32c.c (reduce_class): Likewise.
15147         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
15148         * final.c (get_call_reg_set_usage): Likewise.
15149         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
15150         (setup_left_conflict_sizes_p): Likewise.
15151         * ira-conflicts.c (print_allocno_conflicts): Likewise.
15152         (ira_build_conflicts): Likewise.
15153         * ira-costs.c (restrict_cost_classes): Likewise.
15154         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
15155         (setup_reg_class_relations): Likewise.
15156         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
15157         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
15158         * resource.c (find_dead_or_set_registers): Likewise.
15159         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15161 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15163         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
15164         (COMPL_HARD_REG_SET): Delete.
15165         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
15166         of COMPL_HARD_REG_SET.
15167         (try_rename_operands): Likewise.
15168         * config/sh/sh.c (push_regs): Likewise.
15169         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15170         * lra-constraints.c (contains_reg_p): Likewise.
15171         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
15173 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15175         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
15176         * caller-save.c (save_call_clobbered_regs): Use assignment instead
15177         of COPY_HARD_REG_SET.
15178         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
15179         (epiphany_conditional_register_usage): Likewise.
15180         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
15181         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15182         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15183         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
15184         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
15185         * config/mips/mips.c (mips_class_max_nregs): Likewise.
15186         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
15187         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
15188         * config/sh/sh.c (output_stack_adjust): Likewise.
15189         * final.c (collect_fn_hard_reg_usage): Likewise.
15190         (get_call_reg_set_usage): Likewise.
15191         * ira-build.c (ira_create_object, remove_low_level_allocnos)
15192         (ira_flattening): Likewise.
15193         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
15194         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
15195         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
15196         (ira_reassign_pseudos): Likewise.
15197         * ira-conflicts.c (print_allocno_conflicts): Likewise.
15198         (ira_build_conflicts): Likewise.
15199         * ira-costs.c (restrict_cost_classes): Likewise.
15200         (setup_regno_cost_classes_by_aclass): Likewise.
15201         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
15202         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
15203         (setup_stack_reg_pressure_class, setup_pressure_classes)
15204         (setup_allocno_and_important_classes, setup_class_translate_array)
15205         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
15206         (ira_setup_eliminable_regset): Likewise.
15207         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15208         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
15209         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15210         (process_alt_operands, inherit_in_ebb): Likewise.
15211         * lra-lives.c (process_bb_lives): Likewise.
15212         * lra-spills.c (assign_spill_hard_regs): Likewise.
15213         * lra.c (lra): Likewise.
15214         * mode-switching.c (new_seginfo): Likewise.
15215         * postreload.c (reload_combine): Likewise.
15216         * reg-stack.c (straighten_stack): Likewise.
15217         * reginfo.c (save_register_info, restore_register_info): Likewise.
15218         (init_reg_sets_1, record_subregs_of_mode): Likewise
15219         * regrename.c (create_new_chain, rename_chains): Likewise.
15220         * reload1.c (order_regs_for_reload, find_reg): Likewise.
15221         (find_reload_regs): Likewise.
15222         * resource.c (find_dead_or_set_registers): Likewise.
15223         (mark_target_live_regs): Likewise.
15224         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15226 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15228         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
15229         (note_pattern_stores): Declare.
15230         (note_stores): Take an rtx_insn *.
15231         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
15232         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
15233         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
15234         (note_stores): Take an rtx_insn * as argument and process
15235         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
15236         (note_pattern_stores): ...this.
15237         (find_first_parameter_load): Pass the insn rather than
15238         its pattern to note_stores.
15239         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
15240         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
15241         (insert_one_insn): Likewise.
15242         * combine.c (combine_instructions): Likewise.
15243         (likely_spilled_retval_p): Likewise.
15244         (try_combine): Use note_pattern_stores instead of note_stores.
15245         (record_dead_and_set_regs): Pass the insn rather than its pattern
15246         to note_stores.
15247         (reg_dead_at_p): Likewise.
15248         * config/bfin/bfin.c (workaround_speculation): Likewise.
15249         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
15250         rather than an rtx.
15251         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
15252         instead of note_stores.
15253         (frv_optimize_membar_local): Pass the insn rather than its pattern
15254         to note_stores.
15255         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15256         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
15257         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
15258         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
15259         (mips_reorg_process_insns): Likewise.
15260         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
15261         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
15262         rather than rtxes.
15263         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
15264         its pattern to note_stores.
15265         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
15266         of note_stores.
15267         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
15268         the insn to note_stores.
15269         (prescan_insns_for_dce): Update call accordingly.
15270         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
15271         to note_stores.
15272         * df-problems.c (can_move_insns_across): Likewise.
15273         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
15274         * function.c (assign_parm_setup_reg): Likewise.
15275         * gcse-common.c (record_last_mem_set_info_common): Likewise.
15276         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
15277         (single_set_gcse): Likewise.
15278         * ira.c (validate_equiv_mem): Likewise.
15279         (update_equiv_regs): Use note_pattern_stores rather than note_stores
15280         for no_equiv.
15281         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
15282         pattern to note_stores.
15283         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15284         * loop-iv.c (simplify_using_initial_values): Likewise.
15285         * mode-switching.c (optimize_mode_switching): Likewise.
15286         * optabs.c (emit_libcall_block_1): Likewise.
15287         (expand_atomic_compare_and_swap): Likewise.
15288         * postreload-gcse.c (load_killed_in_block_p): Likewise.
15289         (record_opr_changes): Likewise.  Remove explicit handling of
15290         CALL_INSN_FUNCTION_USAGE.
15291         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
15292         * regcprop.c (kill_clobbered_values): Likewise.
15293         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
15294         to note_stores.
15295         * regrename.c (build_def_use): Likewise.
15296         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
15297         for mark_not_eliminable.
15298         (reload_as_needed): Pass the insn rather than its pattern
15299         to note_stores.
15300         (emit_output_reload_insns): Likewise.
15301         * resource.c (mark_target_live_regs): Likewise.
15302         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15303         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
15304         instead of note_stores.
15305         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
15306         its pattern to note_stores.
15307         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
15308         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
15310 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15312         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
15313         than a #define.  Use a structure rather than an array as the
15314         fallback definition.  Remove special cases for low array sizes.
15315         (const_hard_reg_set): New typedef.
15316         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
15317         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
15318         (hard_reg_set_empty_p): Likewise.
15319         (SET_HARD_REG_BIT): Use a function rather than a macro to
15320         handle the case in which HARD_REG_SET is a structure.
15321         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
15322         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
15323         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
15324         (IOR_COMPL_HARD_REG_SET): Likewise.
15325         (hard_reg_set_iterator::pset): Constify the pointer target.
15326         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
15327         of a "const HARD_REG_SET".  Update the handling of non-integer
15328         HARD_REG_SETs.
15329         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
15330         * reload.h: Likewise.
15331         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
15332         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
15333         of a "const HARD_REG_SET".
15334         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
15335         (range_in_hard_reg_set_p): Likewise.
15336         * ira-costs.c (restrict_cost_classes): Likewise.
15337         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
15338         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15339         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
15340         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
15341         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
15342         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
15343         take an unsigned int and open-code the HARD_REG_SET operations.
15345 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
15347         * Makefile.in (OBJS): Remove bt-load.o.
15348         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
15349         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
15350         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
15351         document that the option no longer does anything.
15352         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
15353         * target.def (branch_target_register_class): Delete.
15354         (branch_target_register_callee_saved): Likewise.
15355         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
15356         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
15357         * doc/tm.texi: Regenerate.
15358         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
15359         (make_pass_branch_target_load_optimize2): Likewise.
15360         * passes.def (pass_branch_target_load_optimize1): Likewise.
15361         (pass_branch_target_load_optimize2): Likewise.
15362         * targhooks.h (default_branch_target_register_class): Likewise.
15363         * targhooks.c (default_branch_target_register_class): Likewise.
15364         * opt-suggestions.c (test_completion_valid_options): Remove
15365         -fbtr-bb-exclusive from the list of test options.
15366         * bt-load.c: Remove.
15368 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
15370         * match.pd: Add flag_unsafe_math_optimizations check
15371         before deciding on the widest type in a binary math operation.
15373 2019-09-09  Martin Liska  <mliska@suse.cz>
15375         * config/i386/i386.opt: Update comment of removed
15376         options that are preserved only for backward
15377         compatibility.
15379 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
15381         PR target/87853
15382         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
15383         instead of __v16qs.
15385         PR target/91704
15386         * config/i386/avxintrin.h (__v32qs): New typedef.
15387         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
15388         instead of __v32qi.
15390 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
15392         * doc/invoke.texi (Option Summary): Cover eBPF.
15393         (eBPF Options): New section.
15394         * doc/extend.texi (BPF Built-in Functions): Likewise.
15395         (BPF Kernel Helpers): Likewise.
15397 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
15399         * config.gcc: Support for bpf-*-* targets.
15400         * common/config/bpf/bpf-common.c: New file.
15401         * config/bpf/t-bpf: Likewise.
15402         * config/bpf/predicates.md: Likewise.
15403         * config/bpf/constraints.md: Likewise.
15404         * config/bpf/bpf.opt: Likewise.
15405         * config/bpf/bpf.md: Likewise.
15406         * config/bpf/bpf.h: Likewise.
15407         * config/bpf/bpf.c: Likewise.
15408         * config/bpf/bpf-protos.h: Likewise.
15409         * config/bpf/bpf-opts.h: Likewise.
15410         * config/bpf/bpf-helpers.h: Likewise.
15411         * config/bpf/bpf-helpers.def: Likewise.
15413 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
15415         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15416         indirect_calls.
15418 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
15420         * opt-functions.awk (integer_range_info): Make sure values are in
15421         numeric context before operating with them.
15423 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
15425         * genemit.c (gen_split): Print the filename and line number where the
15426         splitter (or peephole2) was defined, to the dump file.
15428 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
15430         PR tree-optimization/91665
15431         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
15432         incompatible with the type of PHI result.
15434 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15436         PR target/91684
15437         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
15438         gen_unaligned_storedi for 4-byte aligned addresses.
15440 2019-09-06  Jim Wilson  <jimw@sifive.com>
15442         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
15443         change.
15445 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
15447         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
15449 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
15451         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
15452         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
15454 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15456         PR target/91654
15457         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
15458         cost of SSE->integer and integer->SSE moves from 2 to 6.
15459         (core_cost): Ditto.
15461 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
15463         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
15464         before testing TYPE_TRANSPARENT_AGGR.
15465         * calls.c (initialize_argument_information, load_register_parameters):
15466         Likewise.
15468 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
15470         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
15471         high regs.
15472         (cmp_ior): Likewise.
15474 2019-09-06  Martin Liska  <mliska@suse.cz>
15476         * doc/match-and-simplify.texi: Separate tuples with ;.
15478 2019-09-06  Martin Liska  <mliska@suse.cz>
15480         PR c++/91125
15481         * Makefile.in: Remove tlink.o.
15482         * collect2.c (do_link): New function isolated
15483         from do_tlink.
15484         (main): Use.
15485         * collect2.h (do_tlink): Remove declaration of do_tlink.
15486         * doc/extend.texi: Remove documentation of -frepo.
15487         * doc/invoke.texi: Likewise.
15488         * doc/sourcebuild.texi: Remove cleanup-repo-files.
15489         * tlink.c: Remove.
15491 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
15492             Jim Wilson  <jimw@sifive.com>
15494         PR target/91635
15495         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
15496         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
15497         paradoxical_subreg_p (operands[0]).
15498         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
15499         use as intermediate value.
15501 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
15503         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
15504         (sync_compare_and_swap<mode>_insn): Likewise.
15506 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15508         PR middle-end/91615
15509         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
15510         without movmisalign optab.
15512 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
15514         PR middle-end/91001
15515         PR middle-end/91105
15516         PR middle-end/91106
15517         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
15518         types, use type of their first field instead of type of
15519         args[i].tree_value.
15521 2019-09-05  Richard Biener  <rguenther@suse.de>
15523         PR rtl-optimization/91656
15524         * postreload-gcse.c (record_last_mem_set_info): Revert addition
15525         of early out.
15527 2019-09-05  Richard Biener  <rguenther@suse.de>
15529         PR middle-end/90501
15530         * tree-inline.c (declare_return_variable): Mark the return
15531         slot as addressable after building an address of it.
15533 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
15535         * doc/install.texi: Update and clarify requirements to build GNAT.
15537 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
15539         PR middle-end/91577
15540         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
15541         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
15542         call to be in memory.
15543         (pass_expand::execute): Call discover_nonconstant_array_refs before
15544         setting currently_expanding_to_rtl.
15546 2019-09-04  Caroline Tice  <cmtice@google.com>
15548         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
15549         specified together.
15551 2019-09-04  Marek Polacek  <polacek@redhat.com>
15553         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
15555 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15557         PR target/32413
15558         * config/i386/i386.c (inline_secondary_memory_needed): Return true
15559         for QI and HImode moves between SSE and general registers.
15561 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15563         PR c/78736
15564         * doc/invoke.texi: Document -Wenum-conversion.
15566 2019-09-04  Richard Biener  <rguenther@suse.de>
15568         PR rtl-optimization/36262
15569         * postreload-gcse.c: Include intl.h and gcse.h.
15570         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
15571         to avoid linear list walk.
15572         (record_last_mem_set_info): Gate off if not computing transparentness.
15573         (get_bb_avail_insn): If transparentness isn't computed give up
15574         early.
15575         (gcse_after_reload_main): Skip compute_transp and extended PRE
15576         if gcse_or_cprop_is_too_expensive says so.
15578 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15580         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
15581         noinit section.
15582         (msp430_select_section): Handle decls with the "noinit" attribute with
15583         default_elf_select_section.
15584         Handle SECCAT_RODATA_MERGE_* section types with
15585         default_elf_select_section.
15586         Add comments about handling of unsupported section types.
15587         (msp430_section_type_flags): Remove handling of the noinit section.
15589 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15591         * config/msp430/msp430.c (msp430_attr): Remove warnings about
15592         conflicting msp430-specific attributes.
15593         (msp430_section_attr): Likewise.
15594         Add warnings about conflicts with generic "noinit" and "section"
15595         attributes.
15596         Fix grammar in -mlarge error message.
15597         (msp430_data_attr): Rename to msp430_persist_attr.
15598         Add warnings about conflicts with generic "noinit" and "section"
15599         attributes.
15600         Add warning for when variable is not initialized.
15601         Chain conditionals which prevent the attribute being added.
15602         (ATTR_EXCL): New helper.
15603         (attr_reent_exclusions): New exclusion table.
15604         (attr_naked_exclusions): Likewise.
15605         (attr_crit_exclusions): Likewise.
15606         (attr_lower_exclusions): Likewise.
15607         (attr_upper_exclusions): Likewise.
15608         (attr_either_exclusions): Likewise.
15609         (attr_persist_exclusions): Likewise.
15610         (msp430_attribute_table): Update with exclusion rules.
15611         (msp430_output_aligned_decl_common): Don't output common symbol if decl
15612         has a section.
15614 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15616         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
15617         (msp430_handle_generic_attribute): New function.
15618         * doc/tm.texi: Regenerate.
15619         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
15620         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15621         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15622         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
15624 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
15626         PR tree-optimization/91504
15627         * match.pd: Add ((~a & b) ^a) --> (a | b).
15629 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15631         PR target/91604
15632         * config/i386/i386-expand.c (split_double_mode): If there is more than
15633         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
15634         already split matching MEM operand instead of calling adjust_address
15635         again.
15637 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
15639         * config.gcc: Obsolete spu target.  Remove references to spu.
15640         * configure.ac: Remove references to spu.
15641         * configure: Regenerate.
15642         * config/spu/: Remove directory.
15643         * common/config/spu/: Remove directory.
15645         * doc/extend.texi: Remove references to spu.
15646         * doc/invoke.texi: Likewise.
15647         * doc/md.texi: Likewise.
15648         * doc/sourcebuild.texi: Likewise.
15650 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15652         PR middle-end/91603
15653         PR middle-end/91612
15654         PR middle-end/91613
15655         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
15656         and SSA_NAME referring to CONSTANT_P correctly.
15658 2019-09-03  Richard Biener  <rguenther@suse.de>
15660         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
15661         (vn_nary_op_insert): Likewise.
15662         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
15663         (vn_nary_op_lookup): Likewise.
15664         (vn_nary_op_insert): Likewise.
15666 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
15668         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
15669         (*op0, 1) instead of XEXP (*op1, 0).
15671 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15673         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
15674         (aarch64_fjcvtzs): New define_insn.
15675         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
15676         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
15677         Add AARCH64_JSCVT.
15678         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
15679         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
15680         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15681         __ARM_FEATURE_JCVT where appropriate.
15682         * config/aarch64/arm_acle.h (__jcvt): Define.
15684 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15686         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
15687         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
15688         (aarch64_<frintnzs_op><mode>): New define_insn.
15689         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
15690         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15691         __ARM_FEATURE_FRINT when appropriate.
15692         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
15693         frint32x, frint64z, frint64x.
15694         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
15695         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
15696         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
15697         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
15698         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
15699         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
15700         * config/aarch64/iterators.md (VSFDF): Define.
15701         (FRINTNZX): Likewise.
15702         (frintnzs_op): Likewise.
15704 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
15706         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
15707         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
15708         Cortex-A34.
15709         * config/aarch64/aarch64-tune.md: Regenerated.
15710         * doc/invoke.texi: Document the new processors.
15712 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15714         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
15715         string.
15716         (ssbs): Likewise.
15717         (sve2): Likewise.
15718         (sve2-sm4): Likewise.
15719         (sveaes): Likewise.
15720         (svesha3): Likewise.
15721         (svebitperm): Likewise.
15723 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
15724             Richard Biener  <rguenther@suse.de>
15726         PR tree-optimization/91597
15727         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
15728         BIT_AND_EXPR optimization for pointers, even if both operand
15729         ranges don't include NULL, the result can be NULL.
15731 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15733         PR middle-end/91605
15734         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
15735         (non_mem_decl_p): ...this.
15736         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
15737         (expand_assignment): Call mem_ref_referes_to_non_mem_p
15738         unconditionally as before.
15740 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15742         PR target/91323
15743         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
15744         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
15745         * tree.def (LTGT_EXPR): Likewise.
15746         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
15748 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
15750         PR go/91617
15751         * fold-const.c (range_check_type): For enumeral and boolean
15752         type, pass 1 to type_for_size langhook instead of
15753         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
15754         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
15755         (build_range_check): Don't call unsigned_type_for for pointer types.
15756         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
15757         range_check_type result.
15759 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15761         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
15762         (replace_ref): Do not replace a chain of only two candidates which are
15763         valid memory references.
15765 2019-09-02  Martin Liska  <mliska@suse.cz>
15767         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
15768         Bail out when we'll end up with the same number of clusters as
15769         at the beginning.
15770         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
15771         (jump_table_cluster::can_be_handled): Remove the guard
15772         as it's already handled in ::is_enabled.  Allocate output
15773         after early bail out.
15775 2019-09-02  Martin Liska  <mliska@suse.cz>
15777         PR gcov-profile/91601
15778         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
15779         (path_contains_zero_or_negative_cycle_arc): ... this and handle
15780         also negative edges.
15781         (circuit): Handle also negative edges as they can happen
15782         in some situations.
15784 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
15786         PR target/91472
15787         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
15788         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
15789         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
15791 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
15793         PR middle-end/91623
15794         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
15795         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
15796         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
15797         zero vector.
15799         PR lto/91572
15800         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
15801         GIMPLE_ASM TREE_LIST operands.
15803 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
15805         * doc/generic.texi (Unary and Binary Expressions): Mark up
15806         an instance of TYPE_MIN.
15808 2019-08-31  Stafford Horne  <shorne@gmail.com>
15810         * config/or1k/constraints.md (t): New constraint.
15811         * config/or1k/or1k.h (GOT_REGS): New register class.
15812         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15814 2019-08-30  Jim Wilson  <jimw@sifive.com>
15816         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15817         and -fpic and -mplt then disable -msave-restore and warn.
15819 2019-08-30  Martin Sebor  <msebor@redhat.com>
15821         PR middle-end/91599
15822         * tree-ssa-strlen.c (handle_store): Use a fallback location if
15823         the statement doesn't have one.
15824         * gimple-pretty-print.c (percent_G_format): Same.
15826         PR middle-end/91584
15827         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15828         before using them to validate MEM_REF offset.
15830 2019-08-30  Marek Polacek  <polacek@redhat.com>
15832         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15834 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15836         * config/arm/arm.md (unaligned_loaddi,
15837         unaligned_storedi): New unspec insn patterns.
15838         * config/arm/neon.md (unaligned_storev8qi): Likewise.
15839         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15840         and unaligned_storedi for 4-byte aligned memory.
15841         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15842         4-byte aligned memory.
15844 2019-08-30  Martin Jambor  <mjambor@suse.cz>
15846         tree-optimization/91579
15847         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15848         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15849         appropriate.
15850         (arg_needs_copy_p): Removed.
15851         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15852         arg_needs_copy_p.
15853         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
15855 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15857         * config/i386/i386-features.c
15858         (general_scalar_chain::compute_convert_gain):
15859         Correct cost for double-word shifts.
15860         (general_scalar_to_vector_candidate_p): Reject count operands
15861         greater or equal to mode bitsize.
15863 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15865         * config/i386/i386.c (inline_secondary_memory_needed): Return true
15866         for moves between SSE and non-general registers and between
15867         mask and non-general registers.
15868         (ix86_register_move_cost): Remove stalled comment.
15870 2019-08-29  Richard Biener  <rguenther@suse.de>
15872         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15873         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15875 2019-08-29  Richard Biener  <rguenther@suse.de>
15877         PR bootstrap/91580
15878         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15879         Do not emit scalar copies for debug-insns, instead replace
15880         their uses with the reg copy used in the chain or reset them
15881         if there is a reaching definition outside of the chain as well.
15883 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
15885         PR target/91560
15886         * config/i386/i386-expand.c (expand_vec_perm_movs,
15887         expand_vec_perm_blend, expand_vec_perm_vpermil,
15888         expand_vec_perm_pshufb, expand_vec_perm_1,
15889         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15890         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15891         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15892         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15893         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15894         comments - replace ix86_expand_vec_perm_builtin_1 with
15895         ix86_expand_vec_perm_const_1.
15896         (expand_vec_perm2_vperm2f128_vblend): New function.
15897         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
15898         expand_vec_perm2_vperm2f128_vblend as last resort.
15899         (canonicalize_perm): Formatting fix.
15901         PR tree-optimization/91351
15902         * tree-cfg.c (generate_range_test): Use range_check_type instead of
15903         unsigned_type_for.
15904         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15905         range_check_type returns NULL.
15906         * tree-switch-conversion.c (switch_conversion::build_one_array):
15907         Use range_check_type instead of unsigned_type_for, don't perform
15908         linear opt if it returns NULL.
15909         (bit_test_cluster::find_bit_tests): Formatting fix.
15910         (bit_test_cluster::emit): Use range_check_type instead of
15911         unsigned_type_for.
15912         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15913         returns NULL.
15915 2019-08-29  Richard Biener  <rguenther@suse.de>
15917         PR tree-optimization/91568
15918         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15919         (vect_update_max_nunits): Add overload for poly_uint64.
15920         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15921         (vect_build_slp_tree): Record max_nunits into the subtree
15922         and merge it upwards.
15923         (vect_print_slp_tree): Print max_nunits.
15925 2019-08-28  Marek Polacek  <polacek@redhat.com>
15927         Implement P1152R4: Deprecating some uses of volatile.
15928         PR c++/91361
15929         * doc/invoke.texi: Document -Wvolatile.
15931 2019-08-28  Marek Polacek  <polacek@redhat.com>
15933         PR c++/91360 - Implement C++20 P1143R2: constinit.
15934         * doc/invoke.texi: Document -Wc++20-compat.
15936 2019-08-28  Martin Sebor  <msebor@redhat.com>
15938         PR tree-optimization/91457
15939         * builtins.c (component_size): New function.
15940         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15941         * builtins.h (compute_objsize): Add argument.
15942         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15943         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15944         (vrp_prop::check_mem_ref): Same.
15945         (vrp_prop::search_for_addr_array): Set no-warning bit.
15946         (check_array_bounds): Same.
15948 2019-08-28  Martin Sebor  <msebor@redhat.com>
15950         PR driver/80545
15951         * opts-common.c (option_enabled): Correct checking for language
15952         options.
15954 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15956         * config/i386/i386.c (ix86_register_move_cost): Do not
15957         limit the cost of moves to/from XMM register to minimum 8.
15959 2019-08-28  Martin Jambor  <mjambor@suse.cz>
15961         PR ipa/91468
15962         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15963         checking assert a normal assert to test it really is redundant.
15964         * ipa-prop.c (compute_complex_assign_jump_func): Removed
15965         redundant test.
15966         (update_jump_functions_after_inlining): Removed combining unary
15967         arithmetic operations with an ancestor jump function.
15968         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15969         instead of t.
15971 2019-08-28  Richard Biener  <rguenther@suse.de>
15973         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15974         add the MD problem.
15976 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15977             Richard Biener  <rguenther@suse.de>
15979         * expr.c (expand_assignment): Handle misaligned DECLs.
15980         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15981         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15982         too.
15983         (assign_parm_setup_stack): Allocate properly aligned stack slots.
15984         * varasm.c (build_constant_desc): Align constants of misaligned types.
15985         * config/arm/predicates.md (aligned_operand): New predicate.
15986         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15987         aligned_operand to check restrictions on memory addresses.
15988         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15989         * config/arm/vec-common.md (mov<VALL>): Likewise.
15991 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
15993         PR libgomp/91530
15994         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15995         V_128 iterator instead of VI_128.
15997 2019-08-28  Martin Liska  <mliska@suse.cz>
15999         PR tree-optimization/90970
16000         * builtins.c (check_access): Remove assignment to maxread
16001         as it hasn't been used since when it was introduced in r255755.
16003 2019-08-27  Martin Sebor  <msebor@redhat.com>
16005         PR tree-optimization/91567
16006         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
16007         of unknown strings.
16008         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
16009         to PTRDIFF_MAX - 2.
16011 2019-08-27  Jeff Law  <law@redhat.com>
16013         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
16014         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
16016 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16018         PR target/91528
16019         * config/i386/i386-features.c (convert_scalars_to_vector):
16020         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
16021         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
16022         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
16023         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
16025 2019-08-27  Richard Biener  <rguenther@suse.de>
16027         * config/i386/i386-features.h
16028         (general_scalar_chain::~general_scalar_chain): Add.
16029         (general_scalar_chain::insns_conv): New bitmap.
16030         (general_scalar_chain::n_sse_to_integer): New.
16031         (general_scalar_chain::n_integer_to_sse): Likewise.
16032         (general_scalar_chain::make_vector_copies): Adjust signature.
16033         * config/i386/i386-features.c
16034         (general_scalar_chain::general_scalar_chain): Outline,
16035         initialize new members.
16036         (general_scalar_chain::~general_scalar_chain): New.
16037         (general_scalar_chain::mark_dual_mode_def): Record insns
16038         we need to insert conversions at and count them.
16039         (general_scalar_chain::compute_convert_gain): Account
16040         for conversion instructions at chain boundary.
16041         (general_scalar_chain::make_vector_copies): Generate a single
16042         copy for a def by a specific insn.
16043         (general_scalar_chain::convert_registers): First populate
16044         defs_map, then make copies at out-of chain insns.
16046 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
16048         * config/arm/arm.md (stack_protect_set_insn): Add security-related
16049         comment.
16050         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
16052 2019-08-27  Martin Liska  <mliska@suse.cz>
16054         * cgraph.c (cgraph_node::remove): Remove dead assignment before
16055         loop.
16056         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
16057         Enclose in anonymous namespace.
16058         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
16059         hard_register initialization in braces.
16060         * tree-vrp.h (value_range_base::supports_type_p): Return false
16061         for function with boolean return type.
16063 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16065         * config/i386/i386.c (emit_i387_cw_initialization)
16066         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
16068 2019-08-26  Martin Sebor  <msebor@redhat.com>
16070         PR c++/83431
16071         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
16072         (sprintf_dom_walker): Remove class.
16073         (get_int_range): Make argument const.
16074         (directive::fmtfunc, directive::set_precision): Same.
16075         (format_none): Same.
16076         (build_intmax_type_nodes): Same.
16077         (adjust_range_for_overflow): Same.
16078         (format_floating): Same.
16079         (format_character): Same.
16080         (format_string): Same.
16081         (format_plain): Same.
16082         (get_int_range): Cast away constness.
16083         (format_integer): Same.
16084         (get_string_length): Call get_range_strlen_dynamic.  Handle
16085         null lendata.maxbound.
16086         (should_warn_p): Adjust argument scope qualifier.
16087         (maybe_warn): Same.
16088         (format_directive): Same.
16089         (parse_directive): Same.
16090         (is_call_safe): Same.
16091         (try_substitute_return_value): Same.
16092         (sprintf_dom_walker::handle_printf_call): Rename...
16093         (handle_printf_call): ...to this.  Initialize target to host charmap
16094         here instead of in pass_sprintf_length::execute.
16095         (struct call_info): Make global.
16096         (sprintf_dom_walker::compute_format_length): Make global.
16097         (sprintf_dom_walker::handle_gimple_call): Same.
16098         * passes.def (pass_sprintf_length): Replace with pass_strlen.
16099         * print-rtl.c (print_pattern): Reduce the number of spaces to
16100         avoid -Wformat-truncation.
16101         * tree-pass.h (make_pass_warn_printf): New function.
16102         * tree-ssa-strlen.c (strlen_optimize): New variable.
16103         (get_string_length): Add comments.
16104         (get_range_strlen_dynamic): New function.
16105         (check_and_optimize_call): New function.
16106         (handle_integral_assign): New function.
16107         (strlen_check_and_optimize_stmt): Factor code out into
16108         strlen_check_and_optimize_call and handle_integral_assign.
16109         (strlen_dom_walker::evrp): New member.
16110         (strlen_dom_walker::before_dom_children): Use evrp member.
16111         (strlen_dom_walker::after_dom_children): Use evrp member.
16112         (printf_strlen_execute): New function.
16113         (pass_strlen::gate): Update to handle printf calls.
16114         (dump_strlen_info): New function.
16115         (pass_data_warn_printf): New variable.
16116         (pass_warn_printf): New class.
16117         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
16118         (handle_printf_call): Same.
16119         * tree-vrp.c (value_range_base::type): Adjust assertion.
16120         * vr-values.c (vr_values::update_value_range): Use type of the first
16121         argument rather than the second.
16123 2019-08-26  Richard Biener  <rguenther@suse.de>
16125         * config/i386/i386-features.c (general_remove_non_convertible_regs):
16126         Remove.
16127         (convert_scalars_to_vector): Do not call it.
16129 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
16130             Uros Bizjak  <ubizjak@gmail.com>
16132         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
16133         CASE_MATHFN_FLOATN for roundeven.
16134         * config/i386/i386.c (ix86_i387_mode_needed): Add case
16135         I387_ROUNDEVEN.
16136         (ix86_mode_needed): Likewise.
16137         (ix86_mode_after): Likewise.
16138         (ix86_mode_entry): Likewise.
16139         (ix86_mode_exit): Likewise.
16140         (ix86_emit_mode_set): Likewise.
16141         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
16142         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
16143         (ix86_entity): Add I387_ROUNDEVEN.
16144         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
16145         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
16146         (define_int_iterator): Likewise.
16147         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
16148         (define_constant): Define ROUND_ROUNDEVEN mode.
16149         (define_attr): Add roundeven mode for i387_cw.
16150         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
16151         * internal-fn.def (ROUNDEVEN): New builtin function.
16152         * optabs.def (roundeven_optab): New optab.
16154 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
16156         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
16157         for ROUNDEVEN.
16158         * builtins.def: Added function definitions for roundeven function
16159         variants.
16160         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
16161         function call.  Adjust condition for floor, ceil, trunc and round.
16162         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
16163         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
16164         (integer_valued_real_call_p): Added case for roundeven function.
16165         * real.c (is_even): New function. Returns true if real number is even,
16166         otherwise returns false.
16167         (is_halfway_below): New function. Returns true if real number is
16168         halfway between two integers, else return false.
16169         (real_roundeven): New function. Round real number to nearest integer,
16170         rounding halfway cases towards even.
16171         * real.h (real_value): Added descriptive comments.  Added function
16172         declaration for roundeven function.
16173         * doc/extend.texi (Other Builtins): List roundeven variants among
16174         functions which can be handled as builtins.
16176 2019-08-26  Richard Biener  <rguenther@suse.de>
16178         PR target/91522
16179         PR target/91527
16180         * config/i386/i386-features.h (general_scalar_chain::defs_map):
16181         New member.
16182         (general_scalar_chain::replace_with_subreg): Remove.
16183         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
16184         (general_scalar_chain::convert_reg): Adjust signature.
16185         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
16186         iterate over all defs of a reg.
16187         (general_scalar_chain::replace_with_subreg): Remove.
16188         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
16189         (general_scalar_chain::make_vector_copies): Populate defs_map,
16190         place copy only after defs that are used as vectors in the chain.
16191         (general_scalar_chain::convert_reg): Emit a copy for a specific
16192         def in a specific instruction.
16193         (general_scalar_chain::convert_op): All reg uses are converted here.
16194         (general_scalar_chain::convert_insn): Emit copies for scalar
16195         uses of defs here.  Replace uses with the copies we created.
16196         Replace and convert the def.  Adjust REG_DEAD notes, remove
16197         REG_EQUIV/EQUAL notes.
16198         (general_scalar_chain::convert_registers): Only handle copies
16199         into the chain here.
16201 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
16203         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
16205 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
16207         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
16208         Add nop_convert case.
16209         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
16210         Fold all statements if requested.
16211         * tree-ssa-propagate.h (class substitute_and_fold_engine):
16212         Allow to fold all statements.
16213         * tree-vrp.c (class vrp_folder):
16214         Let substitute_and_fold_engine fold all statements.
16216 2019-08-26  Richard Biener  <rguenther@suse.de>
16218         PR tree-optimization/91526
16219         * passes.def: Note that after late FRE we do TODO_update_address_taken.
16220         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
16221         TODO_update_address_taken.
16223 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
16225         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
16226         __STDC_HOSTED__.
16228 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
16230         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
16231         machine mode for unspec_volatile operand.
16233 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
16235         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
16236         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
16237         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
16238         (prefer_neon_for_64bits): Remove.
16239         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
16240         (tune_params): Remove PREF_NEON_64_FALSE uses.
16241         (arm_option_override): Remove prefer_neon selection code.
16242         (arm_print_tune_info): Remove prefer_neon_for_64bits.
16243         * config/arm/arm-protos.h (tune_params): Remove
16244         prefer_neon_for_64bits.
16245         (prefer_neon_for_64bits): Remove.
16247 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
16249         PR pch/61250
16250         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
16251         and issue any diagnostics needed before collecting the pre-PCH
16252         state.
16254 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
16256         PR middle-end/91283
16257         * common.opt (fexcess-precision=): Add Optimization flag.  Use
16258         flag_excess_precision variable instead of
16259         flag_excess_precision_cmdline.
16260         * flags.h (class target_flag_state): Remove x_flag_excess_precision
16261         member.
16262         (flag_excess_precision): Don't define.
16263         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
16264         flag_excess_precision_cmdline.  Remove comment.
16265         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
16266         and x_flag_excess_precision instead of
16267         frontend_set_flag_excess_precision_cmdline and
16268         x_flag_excess_precision_cmdline.
16269         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
16270         x_flag_excess_precision_cmdline.
16271         * toplev.c (init_excess_precision): Remove.
16272         (lang_dependent_init_target): Don't call it.
16274 2019-08-23  Martin Liska  <mliska@suse.cz>
16276         * lto-wrapper.c (run_gcc): When setting jobserver
16277         set also parallel to 1.  This was done so before r273908.
16279 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
16281         * config/arm/arm-cpus.in (cortex-m35p): New entry.
16282         (cortex-a76ae): Likewise.
16283         (cortex-a77): Likewise
16284         * config/arm/arm-tables.opt: Regenerate.
16285         * config/arm/arm-tune.md: Likewise.
16286         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
16287         cortex-a77 CPU options.
16289 2019-08-23  Martin Liska  <mliska@suse.cz>
16291         * profile.c (instrument_values): Do not set
16292         0 as last argument.
16293         * tree-profile.c (gimple_gen_interval_profiler): Remove
16294         last argument.
16295         (gimple_gen_pow2_profiler): Likewise.
16296         (gimple_gen_topn_values_profiler): Likewise.
16297         (gimple_gen_ic_profiler): Likewise.
16298         (gimple_gen_time_profiler): Likewise.
16299         (gimple_gen_average_profiler): Likewise.
16300         (gimple_gen_ior_profiler): Likewise.
16301         * value-prof.c (dump_histogram_value): Use default
16302         in switch statement instead of HIST_TYPE_MAX.
16303         (stream_in_histogram_value): Likewise.
16304         (gimple_duplicate_stmt_histograms): Do not
16305         use NULL for implicitly set arguments.
16306         (gimple_divmod_values_to_profile): Do not use
16307         reserve+quick_push.
16308         (gimple_indirect_call_to_profile): Likewise.
16309         (gimple_find_values_to_profile): Use implicit
16310         function call arguments.
16311         * value-prof.h (gimple_alloc_histogram_value):
16312         Set default values.
16313         (gimple_gen_interval_profiler): Remove last argument.
16314         (gimple_gen_pow2_profiler): Likewise.
16315         (gimple_gen_topn_values_profiler): Likewise.
16316         (gimple_gen_ic_profiler): Likewise.
16317         (gimple_gen_time_profiler): Likewise.
16318         (gimple_gen_average_profiler): Likewise.
16319         (gimple_gen_ior_profiler): Likewise.
16321 2019-08-22  Martin Sebor  <msebor@redhat.com>
16323         PR middle-end/91490
16324         * builtins.c (c_strlen): Rename argument and introduce new local.
16325         Set no-warning bit on original argument.
16326         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
16327         Fold empty and zero constructors into empty strings.
16328         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
16329         for missing initializers.
16330         * tree.c (build_string_literal): Handle optional argument.
16331         * tree.h (build_string_literal): Add defaulted argument.
16332         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
16333         no-warning bit on original expression.
16335 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
16337         PR target/91481
16338         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
16339         and UNSPEC_DARN_RAW.
16340         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
16341         UNSPECV_DARN_RAW.
16342         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
16343         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
16344         (darn): Use an unspec_volatile, and UNSPECV_DARN.
16346 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
16348         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
16349         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
16350         * config/rs6000/rs6000.md (unspec): ... here.
16351         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
16352         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
16353         cmpeqb, *cmpeqb_internal): Delete, move to...
16354         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
16355         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
16356         cmpeqb, *cmpeqb_internal): ... here.
16358 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16360         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
16361         intrinsics if __ARM_FP.
16362         Use __ARM_FEATURE_CRC32 ifdef guard.
16364 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
16366         * config/arm/arm.md (neon_for_64bits): Remove.
16367         (avoid_neon_for_64bits): Remove.
16368         (arm_adddi3): Always split early.
16369         (arm_subdi3): Always split early.
16370         (negdi2): Remove Neon expansion.
16371         (split zero_extend): Split before reload.
16372         (split sign_extend): Split before reload.
16374 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
16376         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
16377         (qhs_extenddi_cstr): Likewise.
16378         * config/arm/arm.md (ashldi3): Always expand early.
16379         (ashlsi3): Likewise.
16380         (ashrsi3): Likewise.
16381         (zero_extend<mode>di2): Remove Neon variants.
16382         (extend<mode>di2): Likewise.
16383         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
16384         (signed_shift_di3_neon): Likewise.
16385         (unsigned_shift_di3_neon): Likewise.
16386         (ashrdi3_neon_imm_noclobber): Likewise.
16387         (lshrdi3_neon_imm_noclobber): Likewise.
16388         (<shift>di3_neon): Likewise.
16389         (split extend): Remove DI extend split patterns.
16391 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
16393         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
16394         (split not): Add DImode not splitter.
16395         (anddi3): Remove pattern.
16396         (anddi3_insn): Likewise.
16397         (anddi_zesidi_di): Likewise.
16398         (anddi_sesdi_di): Likewise.
16399         (anddi_notdi_di): Likewise.
16400         (anddi_notzesidi_di): Likewise.
16401         (anddi_notsesidi_di): Likewise.
16402         (iordi3): Likewise.
16403         (iordi3_insn): Likewise.
16404         (iordi_zesidi_di): Likewise.
16405         (iordi_sesidi_di): Likewise.
16406         (xordi3): Likewise.
16407         (xordi3_insn): Likewise.
16408         (xordi_sesidi_di): Likewise.
16409         (xordi_zesidi_di): Likewise.
16410         (one_cmpldi2): Likewise.
16411         (one_cmpldi2_insn): Likewise.
16412         * config/arm/constraints.md: Remove De, Df, Dg constraints.
16413         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
16414         alternative.
16415         (iwmmxt_xordi3): Likewise.
16416         (iwmmxt_anddi3): Likewise.
16417         * config/arm/neon.md (orndi3_neon): Remove pattern.
16418         (anddi_notdi_di): Likewise.
16419         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
16420         (arm_iordi_operand_neon): Likewise.
16421         (arm_xordi_operand_neon): Likewise.
16422         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
16423         (iordi_notzesidi_di): Likewise.
16424         (iordi_notdi_zesidi): Likewise.
16425         (iordi_notsesidi_di): Likewise.
16427 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
16429         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
16430         insn.
16431         (iorsi3_compare0_scratch): Likewise.
16433 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
16435         * config/aarch64/aarch64-simd-builtins.def:
16436         (ld1x4): New.
16437         (st1x4): Likewise.
16438         * config/aarch64/aarch64-simd.md:
16439         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
16440         (aarch64_st1x4<VALLDIF:mode>): Likewise.
16441         (aarch64_ld1_x4_<mode>): Likewise.
16442         (aarch64_st1_x4_<mode>): Likewise.
16443         * config/aarch64/arm_neon.h:
16444         (vld1_s8_x4): New function.
16445         (vld1q_s8_x4): Likewise.
16446         (vld1_s16_x4): Likewise.
16447         (vld1q_s16_x4): Likewise.
16448         (vld1_s32_x4): Likewise.
16449         (vld1q_s32_x4): Likewise.
16450         (vld1_u8_x4): Likewise.
16451         (vld1q_u8_x4): Likewise.
16452         (vld1_u16_x4): Likewise.
16453         (vld1q_u16_x4): Likewise.
16454         (vld1_u32_x4): Likewise.
16455         (vld1q_u32_x4): Likewise.
16456         (vld1_f16_x4): Likewise.
16457         (vld1q_f16_x4): Likewise.
16458         (vld1_f32_x4): Likewise.
16459         (vld1q_f32_x4): Likewise.
16460         (vld1_p8_x4): Likewise.
16461         (vld1q_p8_x4): Likewise.
16462         (vld1_p16_x4): Likewise.
16463         (vld1q_p16_x4): Likewise.
16464         (vld1_s64_x4): Likewise.
16465         (vld1_u64_x4): Likewise.
16466         (vld1_p64_x4): Likewise.
16467         (vld1q_s64_x4): Likewise.
16468         (vld1q_u64_x4): Likewise.
16469         (vld1q_p64_x4): Likewise.
16470         (vld1_f64_x4): Likewise.
16471         (vld1q_f64_x4): Likewise.
16472         (vst1_s8_x4): Likewise.
16473         (vst1q_s8_x4): Likewise.
16474         (vst1_s16_x4): Likewise.
16475         (vst1q_s16_x4): Likewise.
16476         (vst1_s32_x4): Likewise.
16477         (vst1q_s32_x4): Likewise.
16478         (vst1_u8_x4): Likewise.
16479         (vst1q_u8_x4): Likewise.
16480         (vst1_u16_x4): Likewise.
16481         (vst1q_u16_x4): Likewise.
16482         (vst1_u32_x4): Likewise.
16483         (vst1q_u32_x4): Likewise.
16484         (vst1_f16_x4): Likewise.
16485         (vst1q_f16_x4): Likewise.
16486         (vst1_f32_x4): Likewise.
16487         (vst1q_f32_x4): Likewise.
16488         (vst1_p8_x4): Likewise.
16489         (vst1q_p8_x4): Likewise.
16490         (vst1_p16_x4): Likewise.
16491         (vst1q_p16_x4): Likewise.
16492         (vst1_s64_x4): Likewise.
16493         (vst1_u64_x4): Likewise.
16494         (vst1_p64_x4): Likewise.
16495         (vst1q_s64_x4): Likewise.
16496         (vst1q_u64_x4): Likewise.
16497         (vst1q_p64_x4): Likewise.
16498         (vst1_f64_x4): Likewise.
16499         (vst1q_f64_x4): Likewise.
16501 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16503         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
16505 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16506             Richard Sandiford  <richard.sandiford@arm.com>
16508         PR target/88839
16509         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
16510         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
16512 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16514         PR target/90724
16515         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
16516         in reg if it fails aarch64_plus_operand predicate.
16518 2019-08-21  Richard Biener  <rguenther@suse.de>
16520         PR tree-optimization/91482
16521         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
16522         BUILT_IN_ASSUME_ALIGNED calls.
16524 2019-08-21  Richard Biener  <rguenther@suse.de>
16526         PR target/91498
16527         PR target/91503
16528         * config/i386/i386-features.c
16529         (general_scalar_chain::make_vector_copies): Copy stack temporary
16530         rtx when using it multiple times.
16531         (general_scalar_chain::convert_reg): Likewise.
16533 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16535         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
16537 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
16539         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
16540         catch more redundant zero initialization cases.
16541         (dse_dom_walker::dse_optimize_stmt): Likewise.
16543 2019-08-20  Richard Biener  <rguenther@suse.de>
16545         PR lto/91307
16546         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
16547         by collect2 when targetm.have_ctors_dtors which avoids dragging
16548         in temporary filenames from LTO input objects.
16550 2019-08-20  Richard Biener  <rguenther@suse.de>
16552         PR tree-optimization/37242
16553         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
16554         to (T)a + (T)b if we know that a + b does not overflow.
16556 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
16558         PR rtl-optimization/91347
16559         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
16560         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
16562 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16564         * calls.h (function_arg_info): Add a pass_by_reference field,
16565         defaulting to false.
16566         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
16567         when applying pass-by-reference semantics.
16568         (initialize_argument_information): Likewise.
16569         (emit_library_call_value_1): Likewise.
16570         * function.c (assign_parm_data_one): Remove passed_pointer field.
16571         (assign_parm_find_data_types): Don't set it.
16572         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
16573         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
16574         arg.pass_by_reference instead of passed_pointer.
16576 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16578         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
16579         into a single function_arg_info, updating its fields when we
16580         apply pass-by-reference and promotion semantics.  Use the
16581         function_arg_info to track the mode rather than keeping it in
16582         a separate local variable.
16583         (initialize_argument_information): Likewise.  Base the final
16584         arg_to_skip on this new function_arg_info rather than creating
16585         a new one from scratch.
16587 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16589         * function.c (assign_parm_data_one): Replace passed_type,
16590         promoted_mode and named_arg with a function_arg_info field.
16591         (assign_parm_find_data_types): Remove local variables and
16592         assign directly to "data".  Make data->passed_mode shadow
16593         data->arg.mode until promotion, then assign the promoted
16594         mode to data->arg.mode.
16595         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
16596         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
16597         (assign_parm_remove_parallels, assign_parm_setup_block_p)
16598         (assign_parm_setup_block, assign_parm_setup_reg)
16599         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
16600         arg.mode instead of promoted_mode, arg.type instead of passed_type
16601         and arg.named instead of named_arg.  Use data->arg for
16602         function_arg_info structures that had the field values passed_type,
16603         promoted_mode and named_arg.  Base other function_arg_infos on
16604         data->arg, changing the necessary properties.
16606 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16608         * calls.h (apply_pass_by_reference_rules): Declare.
16609         * calls.c (apply_pass_by_reference_rules): New function.
16610         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
16611         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
16612         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16613         * function.c (assign_parm_find_data_types): Likewise.
16614         * var-tracking.c (prepare_call_arguments): Likewise.
16616 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16618         * target.def (must_pass_in_stack): Take a function_arg_info instead
16619         of a mode and a type.
16620         * doc/tm.texi: Regenerate.
16621         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
16622         instead of a mode and a type.
16623         (must_pass_in_stack_var_size_or_pad): Likewise.
16624         * calls.c (must_pass_in_stack_var_size): Likewise.
16625         (must_pass_in_stack_var_size_or_pad): Likewise.
16626         (initialize_argument_information): Update call to
16627         targetm.calls.must_pass_in_stack.
16628         (must_pass_va_arg_on_stack): Likewise.
16629         * function.c (assign_parm_find_entry_rtl): Likewise.
16630         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
16631         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16632         (alpha_function_arg_advance): Likewise.
16633         * config/cr16/cr16.c (cr16_function_arg): Likewise.
16634         (cr16_function_arg_advance): Likewise.
16635         * config/cris/cris.c (cris_pass_by_reference): Likewise.
16636         (cris_arg_partial_bytes): Likewise.
16637         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16638         * config/lm32/lm32.c (lm32_function_arg): Likewise.
16639         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
16640         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
16641         * config/mips/mips.c (mips_pass_by_reference): Likewise.
16642         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
16643         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
16644         * config/sh/sh.c (sh_pass_by_reference): Likewise.
16645         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16646         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16647         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
16648         instead of a mode and a type.
16649         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
16650         (fr30_num_arg_regs): Likewise.
16651         (fr30_setup_incoming_varargs): Update calls accordingly.
16652         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16653         (fr30_function_arg_advance): Likewise.
16654         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
16655         instead of a mode and a type.
16656         * config/gcn/gcn.c (num_arg_regs): Likewise.
16657         (gcn_function_arg, gcn_function_arg_advance): Update calls to
16658         num_arg_regs and targetm.calls.must_pass_in_stack.
16659         (gcn_arg_partial_bytes): Likewise.
16660         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
16661         function_arg_info instead of a mode and a type.
16662         (classify_argument): Update call accordingly.
16663         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
16664         function_arg_info instead of a mode and a type.
16665         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
16666         Likewise.
16667         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
16668         (rs6000_parm_needs_stack): Update call accordingly.
16669         (setup_incoming_varargs): Likewise.
16671 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16673         * target.def (callee_copies): Take a function_arg_info instead
16674         of a mode, type and named flag.
16675         * doc/tm.texi: Regenerate.
16676         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
16677         instead of a mode, type and named flag.
16678         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16679         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16680         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16681         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
16682         instead of a mode, type and named flag.
16683         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16684         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16685         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16686         * calls.h (reference_callee_copied): Take a function_arg_info
16687         instead of a mode, type and named flag.
16688         * calls.c (reference_callee_copied): Likewise.
16689         (initialize_argument_information): Update call accordingly.
16690         (emit_library_call_value_1): Likewise.
16691         * function.c (gimplify_parameters): Likewise.
16692         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
16693         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
16694         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
16695         * config/c6x/c6x.c (c6x_callee_copies): Delete.
16696         (TARGET_CALLEE_COPIES): Define to
16697         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16698         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
16699         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16700         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16701         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
16702         instead of a mode, type and named flag.
16703         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
16704         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16705         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16706         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
16707         * config/msp430/msp430.c (msp430_callee_copies): Delete.
16708         (TARGET_CALLEE_COPIES): Define to
16709         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16710         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
16711         instead of a mode, type and named flag.
16712         * config/sh/sh.c (sh_callee_copies): Likewise.
16713         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
16714         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16715         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16717 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16719         * target.def (function_arg_advance): Take a function_arg_info instead
16720         of a mode, type and named flag.
16721         * doc/tm.texi: Regenerate.
16722         * targhooks.h (default_function_arg_advance): Take a function_arg_info
16723         instead of a mode, type and named flag.
16724         * targhooks.c (default_function_arg_advance): Likewise.
16725         * calls.c (initialize_argument_information): Update call to
16726         targetm.calls.function_arg_advance.
16727         (emit_library_call_value_1): Likewise.
16728         * dse.c (get_call_args): Likewise.
16729         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16730         * function.c (assign_parms, gimplify_parameters): Likewise.
16731         * var-tracking.c (prepare_call_arguments): Likewise.
16732         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
16733         function_arg_info instead of a mode, type and named flag.
16734         (aarch64_setup_incoming_varargs): Update call accordingly.
16735         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
16736         function_arg_info instead of a mode, type and named flag.
16737         (alpha_setup_incoming_varargs): Update call accordingly.
16738         * config/arc/arc.c (arc_function_arg_advance): Take a
16739         function_arg_info instead of a mode, type and named flag.
16740         (arc_setup_incoming_varargs): Update call accordingly.
16741         * config/arm/arm.c (arm_function_arg_advance): Take a
16742         function_arg_info instead of a mode, type and named flag.
16743         (cmse_func_args_or_return_in_stack): Update call accordingly.
16744         (arm_function_ok_for_sibcall): Likewise.
16745         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16746         * config/avr/avr.c (avr_function_arg_advance): Take a
16747         function_arg_info instead of a mode, type and named flag.
16748         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
16749         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
16750         (c6x_call_saved_register_used): Update call accordingly.
16751         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
16752         function_arg_info instead of a mode, type and named flag.
16753         * config/cris/cris.c (cris_function_arg_advance): Likewise.
16754         * config/csky/csky.c (csky_function_arg_advance): Likewise.
16755         (csky_setup_incoming_varargs): Update call accordingly.
16756         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
16757         function_arg_info instead of a mode, type and named flag.
16758         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
16759         * config/frv/frv.c (frv_function_arg_advance): Likewise.
16760         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
16761         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
16762         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
16763         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16764         (ix86_setup_incoming_varargs): Update call accordingly.
16765         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
16766         function_arg_info instead of a mode, type and named flag.
16767         (ia64_setup_incoming_varargs): Update call accordingly.
16768         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
16769         function_arg_info instead of a mode, type and named flag.
16770         (iq2000_expand_prologue): Update call accordingly.
16771         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
16772         function_arg_info instead of a mode, type and named flag.
16773         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
16774         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
16775         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16776         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
16777         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16778         Likewise.
16779         (microblaze_expand_prologue): Update call accordingly.
16780         * config/mips/mips.c (mips_function_arg_advance): Take a
16781         function_arg_info instead of a mode, type and named flag.
16782         (mips_setup_incoming_varargs): Update call accordingly.
16783         (mips_output_args_xfer): Likewise.
16784         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
16785         function_arg_info instead of a mode, type and named flag.
16786         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
16787         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
16788         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
16789         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
16790         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
16791         (nios2_setup_incoming_varargs): Update call accordingly.
16792         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
16793         function_arg_info instead of a mode, type and named flag.
16794         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
16795         * config/pa/pa.c (pa_function_arg_advance): Likewise.
16796         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
16797         * config/pru/pru.c (pru_function_arg_advance): Likewise.
16798         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
16799         (riscv_setup_incoming_varargs): Update call accordingly.
16800         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
16801         function_arg_info instead of a mode, type and named flag.
16802         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
16803         Likewise.
16804         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
16805         (rs6000_parm_needs_stack): Update call accordingly.
16806         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16807         instead of a mode, type and named flag.
16808         * config/s390/s390.c (s390_function_arg_advance): Likewise.
16809         (s390_call_saved_register_used): Update call accordingly.
16810         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16811         instead of a mode, type and named flag.
16812         (sh_output_mi_thunk): Update call accordingly.
16813         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16814         function_arg_info instead of a mode, type and named flag.
16815         * config/spu/spu.c (spu_function_arg_advance): Likewise.
16816         (spu_setup_incoming_varargs): Update call accordingly.
16817         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16818         function_arg_info instead of a mode, type and named flag.
16819         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16820         (tilegx_setup_incoming_varargs): Update call accordingly.
16821         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16822         function_arg_info instead of a mode, type and named flag.
16823         (tilegx_setup_incoming_varargs): Update call accordingly.
16824         * config/v850/v850.c (v850_function_arg_advance): Take a
16825         function_arg_info instead of a mode, type and named flag.
16826         * config/vax/vax.c (vax_function_arg_advance): Likewise.
16827         * config/visium/visium.c (visium_function_arg_advance): Likewise.
16828         (visium_setup_incoming_varargs): Update call accordingly.
16829         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16830         function_arg_info instead of a mode, type and named flag.
16832 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16834         * target.def (function_arg, function_incoming_arg): Take a
16835         function_arg_info instead of a mode, tree and named flag.
16836         * doc/tm.texi: Regenerate.
16837         * targhooks.h (default_function_arg): Take a function_arg_info
16838         instead of a mode, tree and named flag.
16839         (default_function_incoming_arg): Likewise.
16840         * targhooks.c (default_function_arg): Likewise.
16841         (default_function_incoming_arg): Likewise.
16842         * calls.h (function_arg_info::end_marker_p): New function.
16843         (function_arg_info::end_marker): Likewise.
16844         * calls.c (prepare_call_address, initialize_argument_information)
16845         (expand_call, emit_library_call_value_1): Update calls to
16846         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16847         * dse.c: Include calls.h.
16848         (get_call_args): Update call to targetm.calls.function_arg.
16849         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16850         * var-tracking.c (prepare_call_arguments): Likewise.
16851         * function.c (assign_parm_find_entry_rtl): Update call to
16852         targetm.calls.function_incoming_arg.
16853         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16854         function_arg_info instead of a mode, tree and named flag.
16855         * config/alpha/alpha.c (alpha_function_arg): Likewise.
16856         * config/arc/arc.c (arc_function_arg): Likewise.
16857         * config/arm/arm.c (arm_function_arg): Likewise.
16858         (cmse_func_args_or_return_in_stack): Update call accordingly.
16859         (arm_function_ok_for_sibcall): Likewise.
16860         (cmse_nonsecure_call_clear_caller_saved): Likewise.
16861         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16862         instead of a mode, tree and named flag.
16863         * config/bfin/bfin.c (bfin_function_arg): Likewise.
16864         * config/c6x/c6x.c (c6x_function_arg): Likewise.
16865         (c6x_call_saved_register_used): Update call accordingly.
16866         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16867         instead of a mode, tree and named flag.
16868         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16869         (cris_function_arg_1): Likewise.
16870         * config/csky/csky.c (csky_function_arg): Likewise.
16871         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16872         * config/fr30/fr30.c (fr30_function_arg): Likewise.
16873         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16874         (frv_function_arg_1): Likewise.
16875         * config/ft32/ft32.c (ft32_function_arg): Likewise.
16876         * config/gcn/gcn.c (gcn_function_arg): Likewise.
16877         * config/h8300/h8300.c (h8300_function_arg): Likewise.
16878         * config/i386/i386.c (ix86_function_arg): Likewise.
16879         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16880         (ia64_function_arg_1): Likewise.
16881         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16882         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16883         accordingly.
16884         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16885         instead of a mode, tree and named flag.
16886         * config/m32c/m32c.c (m32c_function_arg): Likewise.
16887         * config/m32r/m32r.c (m32r_function_arg): Likewise.
16888         * config/m68k/m68k.c (m68k_function_arg): Likewise.
16889         * config/mcore/mcore.c (mcore_function_arg): Likewise.
16890         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16891         (microblaze_expand_prologue): Update call accordingly.
16892         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16893         instead of a mode, tree and named flag.
16894         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16895         (mmix_function_arg_1): Likewise.
16896         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16897         * config/moxie/moxie.c (moxie_function_arg): Likewise.
16898         * config/msp430/msp430.c (msp430_function_arg): Likewise.
16899         * config/nds32/nds32.c (nds32_function_arg): Likewise.
16900         * config/nios2/nios2.c (nios2_function_arg): Likewise.
16901         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16902         (nvptx_function_incoming_arg): Likewise.
16903         * config/or1k/or1k.c (or1k_function_arg): Likewise.
16904         * config/pa/pa.c (pa_function_arg): Likewise.
16905         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16906         * config/pru/pru.c (pru_function_arg): Likewise.
16907         * config/riscv/riscv.c (riscv_function_arg): Likewise.
16908         * config/rl78/rl78.c (rl78_function_arg): Likewise.
16909         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16910         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16911         (rs6000_parm_needs_stack): Update call accordingly.
16912         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16913         instead of a mode, tree and named flag.
16914         * config/s390/s390.c (s390_function_arg): Likewise.
16915         (s390_call_saved_register_used): Update call accordingly.
16916         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16917         instead of a mode, tree and named flag.
16918         (sh_output_mi_thunk): Update call accordingly.
16919         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16920         (sparc_function_incoming_arg): Take a function_arg_info instead of
16921         a mode, tree and named flag.
16922         * config/spu/spu.c (spu_function_arg): Likewise.
16923         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16924         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16925         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16926         * config/v850/v850.c (v850_function_arg): Likewise.
16927         * config/vax/vax.c (vax_function_arg): Likewise.
16928         * config/visium/visium.c (visium_function_arg): Likewise.
16929         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16930         (xtensa_function_incoming_arg): Likewise.
16932 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16934         * target.def (setup_incoming_varargs): Take a function_arg_info
16935         instead of a mode and tree.
16936         * doc/tm.texi: Regenerate.
16937         * targhooks.h (default_setup_incoming_varargs): Take a
16938         function_arg_info instead of a mode and tree.
16939         * targhooks.c (default_setup_incoming_varargs): Likewise.
16940         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16941         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16942         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16943         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16944         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16945         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16946         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16947         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16948         Likewise.
16949         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16950         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16951         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16952         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16953         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16954         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16955         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16956         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16957         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16958         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16959         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16960         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16961         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16962         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16963         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16964         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16965         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16966         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16967         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16968         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16969         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16970         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16971         * function.c (assign_parms_setup_varargs): Update call to
16972         targetm.calls.setup_incoming_varargs.
16974 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16976         * target.def (pass_by_reference): Take a function_arg_info instead
16977         of a mode, type and named flag.
16978         * doc/tm.texi: Regenerate.
16979         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16980         accordingly.
16981         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16982         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16983         function_arg_info instead of a mode, type and named flag.
16984         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16985         * calls.h (pass_by_reference): Take a function_arg_info instead of a
16986         mode, type and named flag.
16987         * calls.c (pass_by_reference): Likewise.
16988         (pass_va_arg_by_reference): Update call accordingly.
16989         (initialize_argument_information): Likewise.
16990         (emit_library_call_value_1): Likewise.
16991         * function.c (assign_parm_find_data_types): Likewise.
16992         * var-tracking.c (prepare_call_arguments): Likewise.
16993         * stor-layout.c: Include calls.h.
16994         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16995         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16996         function_arg_info instead of a mode, type and named flag.
16997         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16998         * config/arc/arc.c (arc_pass_by_reference): Likewise.
16999         * config/arm/arm.c (arm_pass_by_reference): Likewise.
17000         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
17001         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
17002         (c6x_call_saved_register_used): Update call to pass_by_reference.
17003         * config/cris/cris.c (cris_pass_by_reference): Take a
17004         function_arg_info instead of a mode, type and named flag.
17005         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
17006         function_arg_info instead of a mode, type and named flag.
17007         (epiphany_arg_partial_bytes): Update call accordingly.
17008         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
17009         function_arg_info instead of a mode, type and named flag.
17010         (ft32_arg_partial_bytes): Update call accordingly.
17011         * config/i386/i386.c (ix86_pass_by_reference): Take a
17012         function_arg_info instead of a mode, type and named flag.
17013         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
17014         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
17015         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
17016         (m32r_return_in_memory): Update call accordingly.
17017         * config/mips/mips.c (mips_pass_by_reference): Take a
17018         function_arg_info instead of a mode, type and named flag.
17019         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
17020         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
17021         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
17022         (moxie_arg_partial_bytes): Update call accordingly.
17023         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
17024         function_arg_info instead of a mode, type and named flag.
17025         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
17026         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
17027         * config/pa/pa.c (pa_pass_by_reference): Likewise.
17028         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
17029         (riscv_return_in_memory): Update call accordingly.
17030         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
17031         function_arg_info instead of a mode, type and named flag.
17032         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
17033         (rs6000_parm_needs_stack): Update call to pass_by_reference.
17034         * config/s390/s390.c (s390_pass_by_reference): Take a
17035         function_arg_info instead of a mode, type and named flag.
17036         (s390_call_saved_register_used): Update call accordingly.
17037         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
17038         instead of a mode, type and named flag.
17039         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
17040         * config/spu/spu.c (spu_pass_by_reference): Likewise.
17041         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
17042         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
17043         * config/v850/v850.c (v850_pass_by_reference): Likewise.
17044         * config/visium/visium.c (visium_pass_by_reference): Likewise.
17046 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17048         * target.def (arg_partial_bytes): Take a function_arg_info instead
17049         of a mode, type and named flag.
17050         * doc/tm.texi: Regenerate.
17051         * target.h (function_arg_info): Declare.
17052         * calls.h (function_arg_info): New class.
17053         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
17054         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
17055         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
17056         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
17057         * calls.c (initialize_argument_information): Update call to
17058         targetm.calls.partial_bytes.
17059         (emit_library_call_value_1): Likewise.
17060         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17061         * function.c (assign_parm_find_entry_rtl): Likewise.
17062         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
17063         function_arg_info instead of a mode, type and named flag.
17064         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
17065         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
17066         (cmse_func_args_or_return_in_stack): Update accordingly.
17067         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
17068         function_arg_info instead of a mode, type and named flag.
17069         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
17070         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
17071         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
17072         * config/fr30/fr30.c: Include calls.h.
17073         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
17074         type and named flag.
17075         * config/frv/frv.c: Include calls.h.
17076         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
17077         type and named flag.
17078         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
17079         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
17080         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
17081         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
17082         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
17083         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
17084         * config/microblaze/microblaze.c (function_arg_partial_bytes):
17085         Likewise.
17086         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
17087         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
17088         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
17089         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
17090         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
17091         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
17092         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
17093         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
17094         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
17095         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
17096         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
17097         (rs6000_parm_needs_stack): Update call accordingly.
17098         * config/sh/sh.c (sh_arg_partial_bytes): Take a
17099         function_arg_info instead of a mode, type and named flag.
17100         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
17101         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
17103 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17105         * calls.h (must_pass_va_arg_in_stack): Declare.
17106         * calls.c (must_pass_va_arg_in_stack): New function.
17107         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
17108         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
17109         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
17110         Likewise.
17111         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17113 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17115         * calls.h (pass_va_arg_by_reference): Declare.
17116         * calls.c (pass_va_arg_by_reference): New function.
17117         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
17118         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
17119         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
17120         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
17121         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17122         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
17123         (mips_gimplify_va_arg_expr): Likewise.
17124         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
17125         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17126         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
17127         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17128         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17129         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17130         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
17131         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
17132         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
17133         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17134         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17136 2019-08-20  Richard Biener  <rguenther@suse.de>
17138         PR target/91498
17139         * config/i386/i386-features.c (general_scalar_chain::convert_op):
17140         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
17141         (convert_scalars_to_vector): Add timode_p parameter and use it
17142         to guard TImode-only operation.
17143         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
17144         (pass_stv::execute): Pass down timode_p.
17146 2019-08-20  Lili Cui  <lili.cui@intel.com>
17148         * common/config/i386/i386-common.c
17149         (processor_names): Add tigerlake and cooperlake.
17150         (processor_alias_table): Add tigerlake and cooperlake.
17151         * config.gcc: Add -march=tigerlake and cooperlake.
17152         * config/i386/driver-i386.c
17153         (host_detect_local_cpu): Detect tigerlake and cooperlake.
17154         Add "has_avx" to classify processor.
17155         * config/i386/i386-builtins.c (processor_model) :
17156         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
17157         (arch_names_table): Add tigerlake and cooperlake.
17158         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
17159         and PROCESSOR_COOPERLAKE.
17160         * config/i386/i386-c.c
17161         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
17162         * config/i386/i386-options.c
17163         (m_TIGERLAKE): Define.
17164         (m_COOPERLAKE): Ditto.
17165         (m_CORE_AVX512): Ditto.
17166         (processor_cost_table): Add cascadelake.
17167         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
17168         * config/i386/i386.h
17169         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
17170         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
17171         (PTA_MOVDIRI): Ditto.
17172         (PTA_MOVDIR64B): Ditto.
17173         (PTA_COOPERLAKE): Ditto.
17174         (PTA_TIGERLAKE): Ditto.
17175         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
17176         * doc/extend.texi: Add tigerlake and cooperlake.
17177         * doc/invoke.texi: Add tigerlake and cooperlake.
17179 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
17181         * doc/install.texi (Specific, alpha): Remove note to use
17182         binutils 2.11.2 or later.
17184 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17186         PR middle-end/89544
17187         * function.c (assign_parm_find_stack_rtl): Use larger alignment
17188         when possible.
17190 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
17192         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
17193         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
17194         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
17195         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
17196         * config/aarch64/constraints.md (Dt): New constraint
17197         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
17199 2019-08-19  Richard Biener  <rguenther@suse.de>
17201         PR tree-optimization/91403
17202         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
17203         cases we can handle with tail-recursion...
17204         (follow_ssa_edge_expr): ... here.  Do so.
17206 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
17208         PR target/91441
17209         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
17210         implemented for -fsanitize=kernel-address, and merge check logic
17211         with -fsanitize=address.
17213 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
17215         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
17216         for cpu and machine.  Factor 64/32b builtins.
17218 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
17220         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
17221         gone, point to sourceforge.net.
17223 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
17224         
17225         * doc/ux.texi (User Experience Guidelines): Update reference.
17227 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
17228         
17229         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
17230         not LGPL".
17232 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
17234         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
17235         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
17237 2019-08-16  Martin Sebor  <msebor@redhat.com>
17239         * tree.def (TYPE_SIZE): Clarify.
17240         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
17242 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17244         PR tree-optimization/91109
17245         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
17246         * lra.c (lra): Use lra_need_for_scratch_reg_p.
17247         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
17249 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17251         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
17252         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
17253         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
17254         (uavg<mode>3_ceil): New expander.
17255         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
17256         mode iterator when creating CONST1_RTX.
17257         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
17258         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
17259         mode iterator for const1_operand predicate.
17261 2019-08-16  Richard Biener  <rguenther@suse.de>
17263         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
17264         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
17265         follow_ssa_edge.
17266         (follow_ssa_edge_in_condition_phi_branch): Likewise.
17267         (analyze_evolution_in_loop): Likewise.
17268         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
17269         (follow_ssa_edge_expr): ... here.  Refactor code.
17271 2019-08-16  Richard Biener  <rguenther@suse.de>
17273         PR target/91469
17274         * config/i386/i386-features.c
17275         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
17277 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17279         PR other/91255
17280         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
17281         only if subst_name matches curr_attr string.
17283 2019-08-16  Richard Biener  <rguenther@suse.de>
17285         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
17286         stmt at gsi_p, instead replace it with a NOP removed later.
17287         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
17288         that became dead because of that.
17290 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
17292         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
17293         for which we can't represent a range.
17294         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
17295         set_varying.
17296         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
17297         Set VR_UNDEFINED if type is not supported.
17298         * tree-ssanames.c (get_range_info): Pass type to set_varying.
17299         * tree-vrp.c (value_range_base::check): Assert that a varying has
17300         min/max set.
17301         (value_range_base::equal_p): Early bail for undefines.
17302         (value_range_base::set_varying): Accept a type.
17303         (value_range::set_varying): Same.
17304         (value_range_base::type): VARYING can have a type, while UNDEFINE
17305         is typeless.
17306         (value_range_base::dump): Print type for VARYING nodes.
17307         (value_range_base::set): Add type to VARYING.
17308         (extract_range_from_multiplicative_op): Pass type to set_varying.
17309         (extract_range_from_binary_expr): Same.
17310         (value_range_base::intersect_helper): Same.
17311         (value_range_base::union_helper): Same.
17312         (value_range_base::normalize_symbolics): Same.
17313         (determine_value_range_1): Same.
17314         * tree-vrp.h (class value_range_base): Add type to set_varying.
17315         Add prototype for dump(void).
17316         Add prototype for supports_type_p.
17317         (class value_range): Add type to set_varying.
17318         Add prototype for dump(void).
17319         * vr-values.c (set_value_range_to_truthvalue): Pass type to
17320         set_varying.
17321         (vr_values::get_lattice_entry): Set varying even if propagation
17322         finished.
17323         Pass type to set_varying.
17324         (vr_values::get_value_range): Remove vr_const_varying.
17325         Reallocate the lattice if needed.
17326         (vr_values::update_value_range): Pass type to set_varying.
17327         (vr_values::extract_range_for_var_from_comparison_expr): Same.
17328         (vr_values::extract_range_from_binary_expr): Same.
17329         (vr_values::extract_range_from_unary_expr): Same.
17330         (vr_values::extract_range_from_cond_expr): Same.
17331         (vr_values::check_for_binary_op_overflow): Same.
17332         (vr_values::extract_range_basic): Same.
17333         (vr_values::extract_range_from_assignment): Same.
17334         (vr_values::vr_values): Increase size of num_vr_values.
17335         (vr_values::extract_range_from_phi_node): Pass type to
17336         set_varying.
17338 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
17340         PR target/90878
17341         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
17342         for costs of hard register moves.
17343         (ix86_register_move_cost): Likewise.
17344         * config/i386/i386.h (processor_costs): Move costs of hard
17345         register moves to hard_register.  Add int_load, int_store,
17346         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
17347         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
17348         for costs of RTL expressions.
17349         * config/i386/x86-tune-costs.h: Move costs of hard register
17350         moves to hard_register.  Duplicate int_load, int_store,
17351         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
17352         sse_load, sse_store for costs of RTL expressions.
17354 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17356         * target.def (setup_incoming_vararg_bounds): Remove.
17357         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
17358         * doc/tm.texi: Regenerate.
17359         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
17360         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
17361         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
17362         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
17364 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17366         MSP430: Fix lines over 80 characters long in
17367         config/msp430/*.{c,h} files
17369         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
17370         specifier in string.
17371         (msp430_select_hwmult_lib): Split line more than 80 characters long.
17372         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
17373         redundant old comment.
17374         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
17375         Split line more than 80 characters long.
17376         * config/msp430/msp430.c (msp430_option_override): Likewise.
17377         (msp430_return_in_memory): Likewise.
17378         (msp430_gimplify_va_arg_expr): Likewise.
17379         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
17380         (msp430_legitimate_constant): Likewise.
17381         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
17382         (msp430_attr): Likewise.
17383         (msp430_data_attr): Likewise.
17384         (msp430_start_function): Likewise.
17385         (gen_prefix): Likewise.
17386         (msp430_init_sections): Likewise.
17387         (msp430_select_section): Likewise.
17388         (msp430_function_section): Likewise.
17389         (msp430_unique_section): Likewise.
17390         (msp430_output_aligned_decl_common): Likewise.
17391         (msp430_do_not_relax_short_jumps): Likewise.
17392         (msp430_init_builtins): Likewise.
17393         (msp430_expand_delay_cycles): Likewise.
17394         (msp430_expand_prologue): Likewise.
17395         (msp430_expand_epilogue): Likewise.
17396         (msp430_expand_helper): Likewise.
17397         (msp430_split_movsi): Likewise.
17398         (msp430_print_operand): Likewise.
17399         (msp430_return_addr_rtx): Likewise.
17400         (msp430x_extendhisi): Likewise.
17401         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
17402         (ASM_SPEC): Likewise.
17403         Remove very obvious comments.
17404         (LIB_SPEC): Split line more than 80 characters long.
17405         (EH_RETURN_HANDLER_RTX): Likewise.
17406         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17408 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
17410         MSP430: Fix whitespace errors and incorrect indentation in
17411         config/msp430/*.{c,h} files
17413         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
17414         (msp430_select_hwmult_lib): Likewise.
17415         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
17416         (msp430_extract_mcu_data): Likewise.
17417         (struct t_msp430_mcu_data): Likewise.
17418         * config/msp430/msp430.c (struct machine_function): Remove whitespace
17419         before left square bracket.
17420         (msp430_option_override): Fix indentation.
17421         (msp430_hard_regno_nregs_with_padding): Likewise.
17422         (msp430_initial_elimination_offset): Likewise.
17423         (msp430_special_register_convention_p): Remove whitespace before left
17424         square bracket and after exclamation mark.
17425         (msp430_evaluate_arg): Likewise.
17426         (msp430_callee_copies): Fix indentation.
17427         (msp430_gimplify_va_arg_expr): Likewise.
17428         (msp430_function_arg_advance): Remove whitespace before left square
17429         bracket.
17430         (reg_ok_for_addr): Likewise.
17431         (msp430_preserve_reg_p): Likewise.
17432         (msp430_compute_frame_info): Likewise.
17433         (msp430_asm_output_addr_const_extra): Add space between function name
17434         and open parenthesis.
17435         (has_section_name): Fix indentation.
17436         (msp430_attr): Remove trailing whitespace.
17437         (msp430_section_attr): Likewise.
17438         (msp430_data_attr): Likewise.
17439         (struct msp430_attribute_table): Fix comment and whitespace.
17440         (msp430_start_function): Remove whitespace before left square bracket.
17441         Add space between function name and open parenthesis.
17442         (msp430_select_section): Remove trailing whitespace.
17443         (msp430_section_type_flags): Remove trailing whitespace.
17444         (msp430_unique_section): Remove space before closing parenthesis.
17445         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
17446         (msp430_builtins): Remove whitespace before left square bracket.
17447         (msp430_init_builtins): Fix indentation.
17448         (msp430_expand_prologue): Remove whitespace before left square bracket.
17449         Remove space before closing parenthesis.
17450         (msp430_expand_epilogue): Remove whitespace before left square bracket.
17451         (msp430_split_movsi): Remove space before closing parenthesis.
17452         (helper_function_name_mappings): Fix indentation.
17453         (msp430_use_f5_series_hwmult): Fix whitespace.
17454         (use_32bit_hwmult): Likewise.
17455         (msp430_no_hwmult): Likewise.
17456         (msp430_output_labelref): Remove whitespace before left square bracket.
17457         (msp430_print_operand_raw): Likewise.
17458         (msp430_print_operand_addr): Likewise.
17459         (msp430_print_operand): Add two spaces after '.' in comment.
17460         Fix trailing whitespace.
17461         (msp430x_extendhisi): Fix indentation.
17462         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
17463         tab.
17464         (PC_REGNUM): Likewise.
17465         (STACK_POINTER_REGNUM): Likewise.
17466         (CC_REGNUM): Likewise.
17468 2019-08-15  Richard Biener  <rguenther@suse.de>
17470         PR target/91454
17471         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
17472         helper.
17473         (general_scalar_chain::make_vector_copies): Use it.
17475 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17477         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
17479 2019-08-15  Martin Liska  <mliska@suse.cz>
17481         * tree-ssa-dce.c (propagate_necessity): We can't reach now
17482         operators with no arguments.
17483         (eliminate_unnecessary_stmts): Likewise here.
17485 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17487         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
17488         <case COMPARE>: Revert 2019-08-14 change.
17489         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
17490         for (TARGET_64BIT || mode != DImode).
17492 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
17494         * tree-vrp.c (value_range_base::set): Merge in code from
17495         value_range_base::set_and_canonicalize.
17496         Enforce canonicalization at set time.
17497         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
17498         (value_range_base::set_undefined): Inline call to set().
17499         (value_range_base::set_varying): Same.
17500         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
17501         (vrp_val_max): New argument handle_pointers.
17502         (vrp_val_min): Same.
17503         (ranges_from_anti_range): Same.
17504         (extract_range_into_wide_ints): Use tree argument instead of sign
17505         and precision.
17506         (extract_range_from_multiplicative_op): Take in tree type instead
17507         of precision and sign.  Adapt function for canonicalized ranges.
17508         (extract_range_from_binary_expr): Pass type to
17509         extract_range_from_multiplicative_op.
17510         Adapt for canonicalized ranges.
17511         (extract_range_from_unary_expr): Same.
17512         (value_range_base::intersect_helper): Adjust for canonicalized
17513         ranges.
17514         (value_range_base::union_helper): Same.
17515         (value_range_base::normalize_symbolics): New.
17516         * tree-vrp.h (class value_range_base): Remove
17517         set_and_canonicalize.
17518         New prototype for normalize_symbolics.
17519         (class value_range): Remove set_and_canonicalize.
17520         (vrp_val_min): Adjust prototype.
17521         (vrp_val_max): Same.
17522         * vr-values.c
17523         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
17524         instead of set_and_canonicalize.
17526 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17528         PR middle-end/91444
17529         * tree-vect-stmts.c (vectorizable_call): Check that the function
17530         is a BUILT_IN_MD function before passing it to
17531         targetm.vectorize.builtin_md_vectorized_function.
17533 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17535         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
17536         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
17537         (aarch64_select_early_remat_modes): Use it.
17539 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17541         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
17542         16 for SVE predicates even if they are fixed-length.
17544 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17546         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
17547         operand order match the MOV /Z alias.
17549 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17551         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
17552         the vector pattern as an aarch64_svpattern argument.  Update the
17553         overloaded caller accordingly.
17554         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
17555         (aarch64_output_sve_vector_inc_dec): Likewise.
17557 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17559         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
17560         multiplication case, try to compute VG * (lowest set bit) directly
17561         rather than always basing the multiplication on VG.  Use
17562         expand_mult for the multiplication if we can.
17564 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17566         * config/aarch64/aarch64-protos.h
17567         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
17568         (aarch64_sve_inc_dec_immediate_p): Rename to...
17569         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17570         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
17571         (aarch64_output_sve_scalar_inc_dec): Declare.
17572         (aarch64_output_sve_inc_dec_immediate): Rename to...
17573         (aarch64_output_sve_vector_inc_dec): ...this.
17574         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
17575         (aarch64_output_sve_scalar_inc_dec): New functions.
17576         (aarch64_output_sve_addvl_addpl): Remove the base and offset
17577         arguments.  Only handle true ADDVL and ADDPL instructions;
17578         don't emit an INC or DEC.
17579         (aarch64_sve_inc_dec_immediate_p): Rename to...
17580         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17581         (aarch64_output_sve_inc_dec_immediate): Rename to...
17582         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
17583         aarch64_sve_vector_inc_dec_immediate_p.
17584         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
17585         (aarch64_sve_plus_immediate): New predicates.
17586         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
17587         rather than aarch64_sve_addvl_addpl_immediate.
17588         (aarch64_sve_inc_dec_immediate): Rename to...
17589         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
17590         aarch64_sve_vector_inc_dec_immediate_p.
17591         (aarch64_sve_add_operand): Update accordingly.
17592         * config/aarch64/constraints.md (Uai): New constraint.
17593         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
17594         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
17595         operand into a register if it satisfies aarch64_sve_plus_immediate.
17596         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
17597         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
17598         * config/aarch64/aarch64-sve.md (add<mode>3): Call
17599         aarch64_output_sve_vector_inc_dec instead of
17600         aarch64_output_sve_inc_dec_immediate.
17602 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17604         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
17605         (UNSPEC_REVW): New constants.
17606         (elem_bits): New mode attribute.
17607         (SVE_INT_UNARY): New int iterator.
17608         (optab): Handle UNSPEC_REV[BHW].
17609         (sve_int_op): New int attribute.
17610         (min_elem_bits): Handle VNx16QI and the predicate modes.
17611         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
17612         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
17613         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
17614         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
17615         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
17616         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
17617         unspecs based on the total width of the reversed data.
17618         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
17619         reinterpret followed by a subreg on big-endian targets.
17621 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17622             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17624         * config/aarch64/aarch64-sve.md
17625         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
17626         alternatives in which one of the inputs is in the same register
17627         as the output.
17629 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17631         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
17632         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
17634 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17636         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
17637         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
17639 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17640             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17642         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
17643         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
17644         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
17646 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17647             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17649         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
17650         Add an alternative that uses reversed shifts.
17652 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17654         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
17655         struct.
17657 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17659         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
17660         a commutativity marker.
17662 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17663             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17665         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
17666         (aarch64_prepare_sve_cond_int_fma): Declare.
17667         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
17668         (aarch64_prepare_sve_int_fma): New functions.
17669         (aarch64_prepare_sve_cond_int_fma): Likewise.
17670         * config/aarch64/aarch64-sve.md
17671         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
17672         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
17673         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
17674         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
17675         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
17676         (*madd<mode>): Rename to...
17677         (*fma<mode>4): ...this.
17678         (*msub<mode>): Rename to...
17679         (*fnma<mode>4): ...this.
17681 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17682             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17684         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
17685         Print 2.0 naturally.
17686         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
17687         * config/aarch64/predicates.md
17688         (aarch64_sve_float_negated_arith_immediate): New predicate,
17689         renamed from aarch64_sve_float_arith_with_sub_immediate.
17690         (aarch64_sve_float_arith_with_sub_immediate): Test for both
17691         positive and negative constants.
17692         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
17693         or an aarch64_sve_float_arith_with_sub_immediate.
17694         * config/aarch64/constraints.md (vsN): Use
17695         aarch64_sve_float_negated_arith_immediate.
17696         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
17697         iterator.
17698         (sve_pred_fp_rhs2_immediate): New int attribute.
17699         * config/aarch64/aarch64-sve.md
17700         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
17701         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
17702         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
17703         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
17704         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
17705         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
17707 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17708             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17710         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
17711         (*aarch64_cond_abd<SVE_F:mode>_3)
17712         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
17714 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17715             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17717         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
17718         (*aarch64_cond_<su>abd<mode>_any): New patterns.
17720 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
17721             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17723         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
17724         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
17725         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
17726         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
17727         optabs.
17728         * optabs.h (create_convert_operand_from): Expand comment.
17729         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
17730         when mapping scalar rtxes to vector operands.
17731         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
17732         ashiftrt and lshiftrt.
17733         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
17734         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
17735         (*cond_<optab><mode>_any_const): New patterns.
17737 2019-08-15  Martin Liska  <mliska@suse.cz>
17739         PR ipa/91438
17740         * cgraph.c (cgraph_node::remove): When setting
17741         n->origin = NULL for all nested functions, reset
17742         also next_nested.
17744 2019-08-15  Martin Liska  <mliska@suse.cz>
17746         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
17747         and next_nested.
17749 2019-08-15  Martin Liska  <mliska@suse.cz>
17751         PR ipa/91404
17752         * passes.c (order): Remove.
17753         (uid_hash_t): Likewise).
17754         (remove_cgraph_node_from_order): Remove from set
17755         of pointers (cgraph_node *).
17756         (insert_cgraph_node_to_order): New.
17757         (duplicate_cgraph_node_to_order): New.
17758         (do_per_function_toporder): Register all 3 cgraph hooks.
17759         Skip removed_nodes now as we know about all of them.
17761 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17763         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
17764         <case E_V8QImode>: Use vector_set path for
17765         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17766         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
17767         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17769 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17771         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
17773 2019-08-14  Martin Sebor  <msebor@redhat.com>
17775         PR tree-optimization/91294
17776         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
17777         source length as exact.
17779 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
17781         * doc/extend.texi: Add "noinit" attribute documentation.
17782         * doc/sourcebuild.texi: Add noinit effective target documentation.
17783         * varasm.c (default_section_type_flags): Add support for "noinit"
17784         section.
17785         (default_elf_select_section): Add support for "noinit" attribute.
17786         * config/msp430/msp430.c (msp430_attribute_table): Remove
17787         "noinit" entry.
17789 2019-08-14  Richard Biener  <rguenther@suse.de>
17790             UroÅ¡ Bizjak  <ubizjak@gmail.com>
17792         PR target/91154
17793         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
17794         mode arguments.
17795         (scalar_chain::smode): New member.
17796         (scalar_chain::vmode): Likewise.
17797         (dimode_scalar_chain): Rename to...
17798         (general_scalar_chain): ... this.
17799         (general_scalar_chain::general_scalar_chain): Take mode arguments.
17800         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
17801         base with TImode and V1TImode.
17802         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
17803         (general_scalar_chain::vector_const_cost): Adjust for SImode
17804         chains.
17805         (general_scalar_chain::compute_convert_gain): Likewise.  Add
17806         {S,U}{MIN,MAX} support.
17807         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17808         (general_scalar_chain::make_vector_copies): Likewise.  Handle
17809         non-DImode chains appropriately.
17810         (general_scalar_chain::convert_reg): Likewise.
17811         (general_scalar_chain::convert_op): Likewise.
17812         (general_scalar_chain::convert_insn): Likewise.  Add
17813         fatal_insn_not_found if the result is not recognized.
17814         (convertible_comparison_p): Pass in the scalar mode and use that.
17815         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
17816         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
17817         (scalar_to_vector_candidate_p): Remove by inlining into single
17818         caller.
17819         (general_remove_non_convertible_regs): Rename from
17820         dimode_remove_non_convertible_regs.
17821         (remove_non_convertible_regs): Remove by inlining into single caller.
17822         (convert_scalars_to_vector): Handle SImode and DImode chains
17823         in addition to TImode chains.
17824         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17825         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17826         (*<maxmin>di3_doubleword): Likewise.
17828 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17829             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17831         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17832         (*cond_bic<mode>_any): New patterns.
17834 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17836         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17837         take the equivalent mask, as well as a bit count.
17838         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17839         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17840         (aarch64_sve_pred_and_operand): New predicates.
17841         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17842         code attribute.
17843         * config/aarch64/aarch64-sve.md
17844         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17845         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17847 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17849         * config/aarch64/aarch64-sve.md
17850         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17851         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17852         New patterns.
17854 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17855             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17857         * config/aarch64/aarch64-sve.md
17858         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17859         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17861 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17862             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17864         * config/aarch64/aarch64-sve.md
17865         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17866         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17868 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17870         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17871         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17872         New pattern.
17874 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17875             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17877         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17879 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17880             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
17882         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17883         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17884         (aarch64_print_operand): Add support for %I.
17885         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17886         Bitcast floating-point constants to the corresponding integer constant.
17887         (aarch64_float_const_representable_p): Handle vectors as well
17888         as scalars.
17889         (aarch64_expand_sve_vcond): Make sure that the operands are valid
17890         for the new vcond_mask_<mode><vpred> expander.
17891         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17892         test aarch64_float_const_representable_p.
17893         (aarch64_sve_reg_or_dup_imm): New predicate.
17894         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17895         gen_vcond_mask_<mode><vpred> instead of
17896         gen_aarch64_sve_dup<mode>_const.
17897         (vcond_mask_<mode><vpred>): Turn into a define_expand that
17898         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17899         for operands 1 and 2 respectively.  Force operand 2 into a
17900         register if operand 1 is a register.  Fold old define_insn...
17901         (aarch64_sve_dup<mode>_const): ...and this define_insn...
17902         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
17903         floating-point constants that can be moved as integers.  Add
17904         alternatives for MOV /M and FMOV /M.
17905         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17906         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17907         1 and 2 respectively.
17908         * config/aarch64/constraints.md (Ufc): Handle vectors as well
17909         as scalars.
17910         (vss): New constraint.
17912 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17914         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17915         (aarch64_sve_float_maxmin_operand): New predicates.
17916         * config/aarch64/constraints.md (vsB): New constraint.
17917         (vsM): Fix typo.
17918         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17919         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17920         UNSPEC_COND_FMINNM.
17921         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17922         Use aarch64_sve_float_maxmin_operand for operand 2.
17923         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17924         Add alternatives for the constant forms.
17926 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17928         * config/aarch64/constraints.md (vsb): New constraint.
17929         (vsm): Generalize description.
17930         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17931         iterator.
17932         (sve_imm_con): Handle smax, smin, umax and umin.
17933         (sve_imm_prefix): New code attribute.
17934         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17935         (aarch64_sve_vsb_operand): New predicates.
17936         (aarch64_sve_mul_immediate): Rename to...
17937         (aarch64_sve_vsm_immediate): ...this.
17938         (aarch64_sve_mul_operand): Rename to...
17939         (aarch64_sve_vsm_operand): ...this.
17940         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17941         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17942         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17943         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17944         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17945         add movprfx support for the immediate alternatives.
17946         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17947         of the above.
17948         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17949         for operand 3.
17951 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17953         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17954         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17955         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17957 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17959         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17960         (optab, sve_int_op): Handle them.
17961         * config/aarch64/aarch64-sve.md: Expand comment.
17963 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17965         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17966         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17967         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17969 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17971         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17972         (aarch64_expand_sve_const_pred_trn): New functions.
17973         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17974         use the above functions when the parameter is true.
17975         (aarch64_expand_sve_const_pred): Update call accordingly.
17976         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17977         Rename to...
17978         (@aarch64_sve_<perm_insn><mode>): ...this.
17980 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
17982         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17983         Declare.
17984         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17985         (aarch64_sve_emit_int_cmp): New functions.
17986         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17987         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17988         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17989         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17990         (UNSPEC_PRED_Z): New unspec.
17991         (set_clobber_cc_nzc): Delete.
17992         * config/aarch64/aarch64-sve.md: Add a block comment about
17993         UNSPEC_PRED_Z.
17994         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17995         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17996         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
17997         UNSPEC_MERGE_PTRUE.
17998         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17999         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
18000         check for compatible predicates.
18001         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
18002         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
18003         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
18004         comparisons above.
18006 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18008         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
18009         * config/aarch64/aarch64-sve.md: Add a section describing it.
18010         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
18011         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
18012         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
18013         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
18014         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
18015         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
18016         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
18017         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
18018         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
18019         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
18020         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
18021         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
18022         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
18023         (aarch64_evpc_rev_local): Update accordingly.
18025 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18027         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
18028         iterators.
18029         (SVE_BHSI, SVE_SDI): Tweak comment.
18030         (SVE_HSDI): Likewise.  Fix definition.
18031         (SVE_SDF): New mode iterator.
18032         (elem_bits): New mode attribute.
18033         (SVE_COND_FCVT): New int iterator.
18034         * config/aarch64/aarch64-sve.md
18035         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
18036         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
18037         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
18038         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
18039         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
18040         ...these new patterns.
18041         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
18042         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
18043         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
18044         Merge into...
18045         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
18046         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
18047         ...these new patterns.
18048         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
18049         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
18050         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
18051         ...this new pattern.
18052         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
18053         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
18054         ...this new pattern.
18055         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
18057 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18059         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
18060         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
18061         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
18062         unspecs.
18063         (optab, su): Handle them.
18064         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
18065         * config/aarch64/aarch64-sve.md
18066         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
18067         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
18068         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
18069         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
18070         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
18071         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
18072         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
18073         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
18074         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
18075         FIXUORS.
18076         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
18077         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
18078         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
18079         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
18080         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
18081         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
18082         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
18083         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
18084         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
18085         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
18086         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
18087         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
18088         of UNSPEC_FLOAT_CONVERT.
18089         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
18090         aarch64_sve_extend<mode><Vwide>2.
18092 2019-08-14  Richard Biener  <rguenther@suse.de>
18094         PR target/91154
18095         * config/i386/i386-features.c
18096         (dimode_scalar_chain::compute_convert_gain): Compute and dump
18097         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
18098         ix86_cost->sse_op for vector instruction costs.
18100 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18102         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
18103         (cmp_op): Handle it.
18104         (SVE_COND_FP_CMP): Rename to...
18105         (SVE_COND_FP_CMP_I0): ...this.
18106         (SVE_FP_CMP): Remove.
18107         * config/aarch64/aarch64-sve.md
18108         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
18109         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
18110         using unspecs to represent the comparison.
18111         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
18112         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
18113         accordingly.
18114         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
18115         (aarch64_unspec_cond_code): Move after integer code.  Handle
18116         UNORDERED.
18117         (aarch64_emit_sve_predicated_cond): Replace with...
18118         (aarch64_emit_sve_fp_cond): ...this new function.
18119         (aarch64_emit_sve_or_conds): Replace with...
18120         (aarch64_emit_sve_or_fp_conds): ...this new function.
18121         (aarch64_emit_sve_inverted_cond): Replace with...
18122         (aarch64_emit_sve_invert_fp_cond): ...this new function.
18123         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
18125 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18127         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
18128         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
18129         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
18130         SVE_HSD instead of SVE_SD.
18132 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18133             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
18135         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
18136         iterator.
18137         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
18138         attributes.
18139         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
18140         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
18141         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
18142         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
18143         (*div<SVE_F:mode>3): Generalize to...
18144         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
18146 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18147             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
18149         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
18150         constants.
18151         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
18152         predicate.
18153         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
18154         Declare.
18155         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
18156         function.
18157         * config/aarch64/aarch64-sve.md: Add a block comment about the
18158         handling of predicated FP operations.
18159         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
18160         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
18161         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
18162         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
18163         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
18164         operand.
18165         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
18166         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
18167         operand.
18168         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
18169         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
18170         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
18171         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
18172         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
18173         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
18174         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18175         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
18176         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
18177         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
18178         strictness operands.  Use aarch64_sve_pred_dominates_p to check
18179         whether the predicate on the conditional operation is suitable
18180         for merging.  Split patterns into the canonical equal-predicate form.
18181         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
18182         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
18184 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18185             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
18187         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
18188         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
18189         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
18190         rtx codes.
18191         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
18192         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
18193         unspecs.
18195 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18196             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
18198         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
18199         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
18200         actually has, rather than relying on REG_EQUAL notes.
18201         Make the insn operand order match the SVE operand order.
18202         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
18203         the SVE operand order.
18205 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18207         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
18208         (aarch64_emit_set_immediate): Likewise.
18209         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
18210         (aarch64_pfalse_reg): Likewise.
18211         (aarch64_convert_sve_data_to_pred): New function.
18212         (aarch64_sve_move_pred_via_while): Take an optional target register
18213         and the required register mode.
18214         (aarch64_expand_sve_const_pred_1): New function.
18215         (aarch64_expand_sve_const_pred): Likewise.
18216         (aarch64_expand_mov_immediate): Build an all-true predicate
18217         if the significant bits of the immediate are all true.  Use
18218         aarch64_expand_sve_const_pred for all compile-time predicate constants.
18219         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
18220         before register allocation.
18221         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
18222         a VNx16BI PTRUE when splitting the memory alternative.
18223         (vec_duplicate<mode>): Update accordingly.
18224         (*pred_cmp<cmp_op><mode>): Rename to...
18225         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
18227 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
18229         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
18230         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
18231         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
18232         (UNSPEC_PTEST): New unspec.
18233         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
18234         * config/aarch64/iterators.md (data_bytes): New mode attribute.
18235         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
18236         * config/aarch64/aarch64-sve.md: Add a new section describing the
18237         handling of UNSPEC_PTEST.
18238         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
18239         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
18240         (ptest_ptrue<mode>): Replace with...
18241         (aarch64_ptest<mode>): ...this new pattern.
18242         (cbranch<mode>4): Update after above changes.
18243         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
18244         UNSPEC_PTEST_PTRUE.
18245         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
18246         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
18247         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
18249 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
18251         PR lto/91287
18252         * builtins.c (builtin_with_linkage_p): New function.
18253         * builtins.h (builtin_with_linkage_p): New function.
18254         * symtab.c (write_symbol): Remove redundant assert.
18255         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
18256         Remove FIXME and use builtin_with_linkage_p.
18258 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18260         PR middle-end/91421
18261         * tree-core.h (function_decl::function_code): Change type to
18262         unsigned int.
18263         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
18264         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
18265         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
18266         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
18267         is BUILT_IN_NORMAL.
18268         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
18269         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
18270         (fndecl_built_in_p): Change the type of the "name" argument to
18271         unsigned int.
18272         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
18273         after check for DECL_BUILT_IN_CLASS.
18274         * cgraphclones.c (build_function_decl_skip_args): Use
18275         set_decl_built_in_function.
18276         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
18277         * ipa-split.c (split_function): Likewise.
18278         * langhooks.c (add_builtin_function_common): Likewise.
18279         * omp-simd-clone.c (simd_clone_create): Likewise.
18280         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18281         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
18282         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
18283         DECL_FUNCTION_CODE.
18284         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
18285         instead of DECL_FUNCTION_CODE.
18286         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
18287         instead of DECL_FUNCTION_CODE.
18288         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18289         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
18290         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
18291         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
18292         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
18293         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
18294         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
18295         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
18296         (alpha_gimple_fold_builtin): Likewise.
18297         * config/arc/arc.c (arc_expand_builtin): Likewise.
18298         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
18299         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
18300         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
18301         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
18302         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
18303         * config/frv/frv.c (frv_expand_builtin): Likewise.
18304         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
18305         (gcn_expand_builtin): Likewise.
18306         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
18307         (fold_builtin_cpu): Likewise.
18308         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
18309         * config/i386/i386.c (ix86_fold_builtin): Likewise.
18310         (ix86_gimple_fold_builtin): Likewise.
18311         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
18312         (ia64_expand_builtin): Likewise.
18313         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
18314         * config/mips/mips.c (mips_expand_builtin): Likewise.
18315         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
18316         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
18317         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
18318         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
18319         * config/pa/pa.c (pa_expand_builtin): Likewise.
18320         * config/pru/pru.c (pru_expand_builtin): Likewise.
18321         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
18322         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18323         Likewise.
18324         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
18325         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
18326         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
18327         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
18328         (rs6000_builtin_reciprocal): Likewise.
18329         * config/rx/rx.c (rx_expand_builtin): Likewise.
18330         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
18331         * config/s390/s390.c (s390_expand_builtin): Likewise.
18332         * config/sh/sh.c (sh_expand_builtin): Likewise.
18333         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
18334         (sparc_fold_builtin): Likewise.
18335         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18336         * config/spu/spu.c (spu_expand_builtin): Likewise.
18337         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
18338         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
18339         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
18340         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
18341         (xtensa_expand_builtin): Likewise.
18343 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18345         PR middle-end/91421
18346         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
18347         before the DECL_FUNCTION_CODE.
18348         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
18349         to check for a BUILT_IN_ALLOCA call.
18350         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
18351         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
18352         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
18353         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18354         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
18355         for BUILT_IN_NORMAL functions.
18356         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
18357         test for BUILT_IN_TM_ABORT.
18358         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
18359         to check for a BUILT_IN_STACK_RESTORE call.
18360         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
18361         * tree-ssa-threadedge.c
18362         (record_temporary_equivalences_from_stmts_at_dest): Check for a
18363         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
18364         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
18365         test for a BUILT_IN_NORMAL call instead of a negative test for
18366         an internal function call.
18368 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18370         * tree.h (build_vector_a_then_b): Declare.
18371         * tree.c (build_vector_a_then_b): New function.
18372         * fold-const-call.c (fold_while_ult): Likewise.
18373         (fold_const_call): Use it to handle IFN_WHILE_ULT.
18374         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
18375         (aarch64_svpattern): New enum.
18376         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
18377         constants through aarch64_expand_mov_immediate.
18378         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
18379         than general_operand as the predicate for operand 1.
18380         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
18381         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
18382         insn_type.
18383         (simd_immediate_info::simd_immediate_info): New overload that
18384         takes a scalar_int_mode and an svpattern.
18385         (simd_immediate_info::u): Add a "pattern" field.
18386         (svpattern_token): New function.
18387         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
18388         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
18389         (aarch64_sve_move_pred_via_while): New functions.
18390         (aarch64_expand_mov_immediate): Try using
18391         aarch64_sve_move_pred_via_while for predicates that contain N ones
18392         followed by M zeros but that do not correspond to a VLnnn pattern.
18393         (aarch64_sve_pred_valid_immediate): New function.
18394         (aarch64_simd_valid_immediate): Use it instead of dealing directly
18395         with PTRUE and PFALSE.
18396         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
18397         forms.
18399 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
18401         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
18402         flag.
18403         (darwin_override_options): Likewise.
18404         * config/darwin.h: Likewise.
18405         * config/darwin.opt: Likewise.
18406         * config/i386/i386.c (output_pic_addr_const): Likewise.
18407         * config/rs6000/darwin.h: Likewise.
18408         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
18409         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
18410         ... this TARGET_MACHO_SYMBOL_STUBS.
18411         (FUNCTION_PROFILER):Likewise.
18412         * config/i386/i386.h: Likewise.
18414 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18416         * config/i386/i386-expand.c (ix86_expand_vector_extract)
18417         <case E_V2SImode>: Use vec_extr path for
18418         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18419         <case E_V8QImode>: Ditto.
18420         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
18421         Use SWI48 mode iterator.  Use %k to output operand 0.
18422         (*mmx_pextrw): New insn pattern.
18423         (*mmx_pextrb): Ditto.
18424         (*mmx_pextrb_zext): Ditto.
18426 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
18428         * target.def (libc_has_function, libc_has_fast_function): Improve
18429         documentation strings.
18430         * doc/tm.texi: Regenerate.
18432 2019-08-13  Caroline Tice  <cmtice@google.com>
18434         PR other/91396
18435         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
18436         vtv_end.o or vtv_end_preinit.o files if !static.
18438 2019-08-13  Olivier Hainque  <hainque@adacore.com>
18440         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
18442 2019-08-13  Olivier Hainque  <hainque@adacore.com>
18444         * rtlanal.c (tablejump_casesi_pattern): New function, to
18445         determine if a tablejump insn is a casesi dispatcher. Extracted
18446         from patch_jump_insn.
18447         * rtl.h (tablejump_casesi_pattern): Declare.
18448         * cfgrtl.c (patch_jump_insn): Use it.
18449         * dwarf2cfi.c (create_trace_edges): Use it.
18451 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
18453         PR target/81800
18454         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
18455         operand is larger than a long int.
18457 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18459         * machmode.h (opt_mode::else_mode): New function.
18460         (opt_mode::else_blk): Use it.
18461         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
18462         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
18463         (aarch64_gen_stepped_int_parallel): Likewise.
18464         (aarch64_stepped_int_parallel_p): Likewise.
18465         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
18466         argument.
18467         * config/aarch64/aarch64.c
18468         (aarch64_expand_sve_widened_duplicate): Delete.
18469         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
18470         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
18471         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
18472         argument.  Use early returns in the !CONST_INT_P handling.
18473         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
18474         than handling some inline.
18475         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
18476         from...
18477         (aarch64_simd_container_mode): ...here.
18478         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
18479         (aarch64_sve_ld1rq_operand_p): New functions.
18480         * config/aarch64/predicates.md (descending_int_parallel)
18481         (aarch64_sve_ld1rq_operand): New predicates.
18482         * config/aarch64/constraints.md (UtQ): New constraint.
18483         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
18484         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
18485         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
18486         (@aarch64_sve_reinterpret<mode>): New expander.
18487         (*aarch64_sve_reinterpret<mode>): New pattern.
18488         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
18489         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
18490         (*sve_ld1rq<Vesize>): Replace with...
18491         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
18493 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
18495         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
18496         16:12.
18498 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18500         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
18501         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
18502         (msp430_check_path_for_devices): New.
18503         (parse_devices_csv_1): New.
18504         (parse_devices_csv): New.
18505         (msp430_extract_mcu_data): Try to find devices.csv and search for the
18506         MCU data in devices.csv before using the hard-coded data.
18507         Warn if devices.csv isn't found and the MCU wasn't found in the
18508         hard-coded data either.
18509         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
18510         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
18511         Search for devices.csv on -I and -L paths.
18512         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
18513         msp430_set_driver_var.
18514         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
18515         -mdevices-csv-loc=.
18516         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
18517         searched for devices.csv.
18518         (mwarn-devices-csv): Document option.
18520 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18522         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
18523         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
18524         Use a single Dn alternative instead of separate Dz and Dm
18525         alternatives.  Use aarch64_output_sve_move_immediate.
18526         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
18527         function.
18528         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
18529         for predicates too.
18530         (aarch64_output_sve_mov_immediate): Handle predicate modes.
18531         (aarch64_output_ptrue): Delete.
18533 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18535         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
18536         INDEX.
18537         (simd_immediate_info::value, simd_immediate_info::step)
18538         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
18539         with...
18540         (simd_immediate_info::u): ...this new union.
18541         (simd_immediate_info::simd_immediate_info): Update accordingly.
18542         (aarch64_output_simd_mov_immediate): Likewise.
18543         (aarch64_output_sve_mov_immediate): Likewise.
18545 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18547         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
18548         extra_gcc_objs.
18549         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
18550         (msp430_select_cpu): New spec function.
18551         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
18552         MCU data.
18553         * config/msp430/msp430-devices.c: New file.
18554         * config/msp430/msp430-devices.h: New file.
18555         * config/msp430/msp430.c: Remove msp430_mcu_data.
18556         (msp430_option_override): Use msp430_extract_mcu_data to extract
18557         MCU data.
18558         (msp430_use_f5_series_hwmult): Likewise.
18559         (use_32bit_hwmult): Likewise.
18560         (msp430_no_hwmult): Likewise.
18561         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
18562         assembler.
18563         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
18564         and -mcpu option.
18565         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
18566         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
18567         Remove hard-coded MCU multilib data.
18569 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18571         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
18572         based on the mode instead of testing properties of it.
18574 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18576         * doc/md.texi: Document the x and y constraints for AArch64.
18577         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
18578         (FP_LO8_REGS): New reg_class.
18579         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
18580         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
18581         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
18582         * config/aarch64/predicates.md (aarch64_simd_register): Use
18583         FP_REGNUM_P instead of checking the classes manually.
18584         * config/aarch64/constraints.md (y): New constraint.
18586 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18588         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
18589         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
18590         * config/aarch64/aarch64-simd.md
18591         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
18592         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
18593         from the asm template.
18594         * config/aarch64/aarch64-sve.md
18595         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
18596         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
18597         from the asm template.
18598         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
18599         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
18600         from the asm template.
18601         * config/aarch64/aarch64-simd-builtins.def: Update comment.
18603 2019-08-13  Martin Liska  <mliska@suse.cz>
18605         * value-prof.c (gimple_ic_transform): Add new line.
18606         Print details with MSG_NOTE.
18608 2019-08-13  Martin Liska  <mliska@suse.cz>
18610         * doc/invoke.texi: Document automatic detection of jobserver.
18611         * lto-wrapper.c (run_gcc): Detect jobserver always.
18613 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18615         * config/i386/i386-expand.c (ix86_expand_vector_set)
18616         <case E_V2SImode>: Use vec_merge path for
18617         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18618         <case E_V8QImode>: Ditto.
18619         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
18620         (*mmx_pinsrb): Ditto.
18622 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
18624         PR target/83250
18625         PR target/91340
18626         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
18627         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
18628         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
18629         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
18630         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
18632 2019-08-12  Richard Biener  <rguenther@suse.de>
18634         PR lto/91375
18635         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
18636         flag_devirtualize.
18638 2019-08-12  Richard Biener  <rguenther@suse.de>
18640         PR driver/91130
18641         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
18642         lang_mask option, always use CL_DRIVER.
18643         (get_options_from_collect_gcc_options): Adjust.
18644         (find_and_merge_options): Likewise.
18645         (run_gcc): Likewise.
18647 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18649         * ipa-predicate.c (add_condition): Restore inverted test.
18651 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
18653         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
18654         (enum omp_clause_device_type_kind): New enum.
18655         (struct tree_omp_clause): Add subcode.device_type_kind.
18656         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
18657         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18658         for device_type clause.
18659         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
18660         * tree-pretty-print.c (dump_omp_clause): Likewise.
18662         PR target/91408
18663         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
18664         vector_operand.
18666 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
18668         * reload1.c (finish_spills): Do not check ira_conflicts_p when
18669         handling spilled pseudos.
18671 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18673         PR target/91386
18674         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
18675         to preserve the contents of the original insns.
18677 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
18679         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
18680         (addsi3_compare_op2): Likewise.
18682 2019-08-09  Martin Liska  <mliska@suse.cz>
18684         * alias.c (alias_ptr_types_compatible_p): Strengten
18685         type comparison in LTO mode.
18687 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
18689         PR middle-end/90313
18690         * tree-tailcall.c (find_tail_calls): Reject calls that might
18691         read from an escaped RESULT_DECL.
18693 2019-08-09  Martin Liska  <mliska@suse.cz>
18695         * doc/invoke.texi: Document the option value.
18696         * lto-wrapper.c (run_gcc): Set auto_parallel
18697         only with -flto=auto.
18699 2019-08-09  Martin Liska  <mliska@suse.cz>
18701         * opts.c (common_handle_option): Error for an invalid argument
18702         to -flto=.
18704 2019-08-09  Martin Liska  <mliska@suse.cz>
18706         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
18707         use dump_printf to report optimization.
18708         (sem_variable::merge): Likwise.
18709         (sem_item_optimizer::merge_classes): Use dump_printf to report
18710         ICF hits.
18712 2019-08-09  Martin Liska  <mliska@suse.cz>
18714         * value-prof.c (gimple_divmod_fixed_value_transform):
18715         Use dump_printf_loc.
18716         (gimple_mod_pow2_value_transform): Likewise.
18717         (gimple_mod_subtract_transform): Likewise.
18718         (init_node_map): Likewise.
18719         (gimple_ic_transform): Likewise.
18720         (gimple_stringops_transform): Likewise.
18722 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
18724         * doc/extend.texi: Add const qualifier to ld intrinsics.
18726 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18728         * config/rs6000/dfp.md (D64_D128): Rename to ...
18729         (DDTD): ... this, throughout.
18730         (dfp_suffix): Rename to ...
18731         (q): ... this, throughout.
18733 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18735         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
18736         (dfp_suffix): Ditto.
18737         (adddd3, addtd3): Merge to ...
18738         (add<mode>3 for D64_D128): ... this.
18739         (subdd3, subtd3): Merge to ...
18740         (sub<mode>3 for D64_D128): ... this.
18741         (muldd3, multd3): Merge to ...
18742         (mul<mode>3 for D64_D128): ... this.
18743         (divdd3, divtd3): Merge to ...
18744         (div<mode>3 for D64_D128): ... this.
18745         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
18746         (*cmp<mode>_internal1 for D64_D128): ... this.
18747         (ftruncdd2, ftrunctd2): Merge to ...
18748         (ftrunc<mode>2 for D64_D128): ... this.
18749         (fixdddi2, fixtddi2): Merge to ...
18750         (fix<mode>di2 for D64_D128): ... this.
18752 2019-08-08  Jim Wilson  <jimw@sifive.com>
18754         PR target/91229
18755         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
18756         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
18757         Pass into recursive call.
18758         (riscv_flatten_aggregate_argument): New arg.  Pass to
18759         riscv_flatten_aggregate_field.
18760         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
18761         riscv_flatten_aggregate_argument twice, with false and true as last
18762         arg.  Process result twice.  Compare results and warn if different.
18763         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
18765 2019-08-08  Martin Liska  <mliska@suse.cz>
18767         PR bootstrap/91352
18768         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
18769         * lto-wrapper.c (jobserver_active_p): Likewise.
18771 2019-08-08  Martin Liska  <mliska@suse.cz>
18773         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
18774         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
18775         (create_version_clone_with_body): Likewise.
18777 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
18779         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
18780         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
18781         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
18782         GOVD_EXPLICIT flags.
18783         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
18784         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
18785         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
18786         call install_var_field with mask 11 instead of 3.
18787         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
18788         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
18790 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18792         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
18793         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
18795 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18797         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
18798         MOVPRFX alternatives.  Make the GPR alternatives more expensive
18799         than the FPR ones.
18801 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18803         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
18804         Disparage the GPR alternative relative to the FPR one.
18805         Fix handling of 8-bit and 16-bit FPR values.
18807 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18809         * config/aarch64/iterators.md (BITWISEV): Delete.
18810         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18811         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18812         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18813         UNSPEC_FMINNMV, UNSPEC_FMINV.
18814         (bit_reduc_op): Delete.
18815         (sve_int_op): New int attribute.
18816         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18817         UNSPEC_FMINNMV, UNSPEC_FMINV.
18818         * config/aarch64/aarch64-sve.md
18819         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18820         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18821         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18822         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18823         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18824         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18825         new patterns.
18826         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18827         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18828         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18829         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18830         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18831         new patterns.
18833 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18835         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18836         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18837         (fms<mode>4, *fms<mode>4): Replace with...
18838         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18839         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18840         Use unspecs instead of rtx codes.
18841         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18842         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18844 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18846         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18847         int iterator.
18848         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18849         * config/aarch64/aarch64-sve.md
18850         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18851         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18852         use a single unspec for the rhs.
18853         (*<su><maxmin><mode>3): Delete.
18854         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18856 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18858         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18859         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18860         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18861         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18862         (optab, sve_fp_op): Handle them.
18863         (SVE_FP_UNARY): Delete.
18864         (optab): Remove sqrt entry.
18865         (sve_fp_op): Remove neg, abs and sqrt entries.
18866         (SVE_COND_FP_UNARY): New int iterator.
18867         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18868         (*<frint_pattern><mode>2): Delete.
18869         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18870         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18871         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18872         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18874 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18876         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18878 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18880         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18881         (UNSPEC_COND_FADD): ...this.
18882         (UNSPEC_COND_SUB): Rename to...
18883         (UNSPEC_COND_FSUB): ...this.
18884         (UNSPEC_COND_MUL): Rename to...
18885         (UNSPEC_COND_FMUL): ...this.
18886         (UNSPEC_COND_DIV): Rename to...
18887         (UNSPEC_COND_FDIV): ...this.
18888         (UNSPEC_COND_MAX): Rename to...
18889         (UNSPEC_COND_FMAXNM): ...this.
18890         (UNSPEC_COND_MIN): Rename to...
18891         (UNSPEC_COND_FMINNM): ...this.
18892         (UNSPEC_COND_LT): Rename to...
18893         (UNSPEC_COND_FCMLT): ...this.
18894         (UNSPEC_COND_LE): Rename to...
18895         (UNSPEC_COND_FCMLE): ...this.
18896         (UNSPEC_COND_EQ): Rename to...
18897         (UNSPEC_COND_FCMEQ): ...this.
18898         (UNSPEC_COND_NE): Rename to...
18899         (UNSPEC_COND_FCMNE): ...this.
18900         (UNSPEC_COND_GE): Rename to...
18901         (UNSPEC_COND_FCMGE): ...this.
18902         (UNSPEC_COND_GT): Rename to...
18903         (UNSPEC_COND_FCMGT): ...this.
18904         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18905         (sve_fp_op_rev): Update accordingly.
18906         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18908 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18910         * config/aarch64/aarch64-sve.md: Reorganize contents and add
18911         banner comments.
18912         * config/aarch64/check-sve-md.awk: New file.
18913         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18914         (insn-conditions.md): Depend on it.
18916 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18918         PR target/91385
18919         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18920         (*negsi2_cmpz_zext): Ditto.
18922 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18924         * config/aarch64/iterators.md (commutative): Remove.
18926 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
18928         PR driver/91130
18929         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18930         processing COLLECT_GCC_OPTIONS.
18931         (run_gcc): Likewise.
18933 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18935         PR tree-optimization/91109
18936         * lra-remat.c (update_scratch_ops): Remove assignment of the
18937         hard register.
18939 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
18941         * data-streamer.h (streamer_write_poly_uint64): Declare.
18942         (streamer_read_poly_uint64): Likewise.
18943         * data-streamer-in.c (streamer_read_poly_uint64): New function.
18944         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18945         * ipa-predicate.h (condition::size): Turn into a poly_int64.
18946         (add_condition): Take a poly_int64 size.
18947         * ipa-predicate.c (add_condition): Likewise.
18948         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18949         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18950         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18951         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18952         condition::size as a poly_int64.
18953         (unmodified_parm_1): Take a poly_int64 size pointer.
18954         (unmodified_parm): Likewise.
18955         (unmodified_parm_or_parm_agg_item): Likewise.
18956         (set_cond_stmt_execution_predicate): Update accordingly.
18957         (set_switch_stmt_execution_predicate): Likewise.
18958         (will_be_nonconstant_expr_predicate): Likewise.
18959         (will_be_nonconstant_predicate): Likewise.
18960         (inline_read_section): Stream condition::size as a poly_int.
18961         (ipa_fn_summary_write): Likewise.
18963 2019-08-07  Martin Liska  <mliska@suse.cz>
18965         * fold-const.c (twoval_comparison_p): Replace int
18966         with bool as a return type.
18967         (simple_operand_p): Likewise.
18968         (operand_equal_p): Replace int with bool as a return type.
18969         * fold-const.h (operand_equal_p): Likewise.
18971 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
18973         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18974         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18975         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18976         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18977         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18978         * tree-pretty-print.c (dump_omp_clause): Likewise.
18979         * tree-nested.c (convert_nonlocal_omp_clauses,
18980         convert_local_omp_clauses): Likewise.
18981         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18982         Likewise.
18983         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18984         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18985         clause with array or reference to array types, no matter what type
18986         except for reference it has.
18988 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
18990         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18992 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
18994         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18995         (arch_canonicalize): Support rv32g and rv64g and fix error
18996         handling.
18998 2019-08-06  Martin Liska  <mliska@suse.cz>
19000         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
19001         and DECL_IS_OPERATOR_DELETE_P.
19003 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
19005         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
19006         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
19007         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
19008         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
19009         (gimplify_omp_for): Don't do C++ random access iterator clause
19010         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
19011         don't predetermine the artificial iterator in case of C++ random
19012         access iterators as lastprivate, but private.  For OMP_LOOP, force
19013         bind expr around simd body and force for_pre_body before the
19014         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
19015         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
19016         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
19017         diff var of C++ random access iterators.  Handle
19018         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
19019         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
19020         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
19021         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
19022         * omp-low.c (lower_rec_input_clauses): For
19023         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
19024         variables instead of default constructing them.
19025         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
19026         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
19027         is_taskloop_ctx check from the assert to the guarding condition.
19029 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
19031         * config/riscv/multilib-generator: (canonical_order): New.
19032         (arch_canonicalize): Dito.
19033         Apply arch_canonicalize for alts.
19035 2019-08-05  Martin Sebor  <msebor@redhat.com>
19037         * doc/extend.texi (Common Variable Attributes): Document alias
19038         attribute.
19040 2019-08-05  Marek Polacek  <polacek@redhat.com>
19042         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
19043         * doc/invoke.texi: Document -Wcomma-subscript.
19045 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19047         * tree-core.h (tree_function_decl): Make function_code an
19048         independent field.  Group the remaining bitfields into bytes
19049         and move decl_type so that it contines to be at a byte boundary.
19050         Leave 12 bits for future expansion.
19052 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19054         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
19055         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
19056         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
19057         IFN_MASK_STORE.
19059 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
19061         * gimple.h (gimple_move_vops): Declare.
19062         * gimple.c (gimple_move_vops): New function
19063         * gimple-fold.c (replace_call_with_call_and_fold)
19064         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
19065         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
19066         (gimple_fold_call): Use it.
19067         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
19068         * tree-call-cdce.c (use_internal_fn): Likewise.
19069         * tree-if-conv.c (predicate_load_or_store): Likewise.
19070         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
19071         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
19072         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
19073         (update_call_from_tree): Likewise.
19074         * tree-vect-stmts.c (vectorizable_load): Likewise.
19075         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
19077 2019-08-05  Martin Liska  <mliska@suse.cz>
19079         PR c++/91334
19080         * tree-ssa-dce.c (propagate_necessity): Handle new operators
19081         with not arguments.
19082         (eliminate_unnecessary_stmts): Likewise.
19084 2019-08-05  Richard Biener  <rguenther@suse.de>
19086         PR middle-end/91169
19087         * fold-const.c (get_array_ctor_element_at_index): Create
19088         offset_ints according to the sign of the index type and treat
19089         that as signed if it is obviously so.
19091 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
19093         PR target/91341
19094         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
19095         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
19096         _mm256_storeu2_m128i): New function.
19098 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
19100         * config/riscv/riscv.c (riscv_promote_function_mode): New.
19101         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
19103 2019-08-05  Alan Modra  <amodra@gmail.com>
19105         PR target/91349
19106         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
19107         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
19109 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
19111         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
19112         bug that was fixed in Tcl 8.6.1.
19114 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
19116         * config/rs6000/future.md: New file.
19117         * config/rs6000/rs6000.md: Include future.md.
19118         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
19120 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19122         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
19123         check to use targetm.slow_unaligned_access instead.
19125         * function.c (assign_param_data_one): Remove unused data members.
19127 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
19129         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
19130         build_distinct_type_copy.
19131         (simd_clone_adjust_argument_types): Ditto.
19132         (simd_clone_adjust): Call build_distinct_type_copy here.
19133         (expand_simd_clones): Ditto.
19135 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19137         PR target/91201
19138         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
19140 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
19142         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
19143         from 'const void *'.
19144         (sort_locs_in_loop_postorder_cmp): Likewise.
19146 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
19148         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
19149         (hot-bb-count-ws-permille): Likewise.
19150         (hot-bb-frequency-fraction): Likewise.
19151         (unlikely-bb-count-fraction): Likewise.
19152         * params.def (hot-bb-count-fraction): Rework description.
19153         (hot-bb-count-ws-permille): Likewise.
19154         (hot-bb-frequency-fraction): Likewise.
19155         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
19156         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
19158 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19160         PR target/91323
19161         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
19162         Return false.
19164 2019-08-02  Richard Biener  <rguenther@suse.de>
19166         * vec.h (vec::sort): Add gcc_qsort_r support.
19167         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
19168         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
19169         to gcc_qsort_r style callback.
19170         (sort_locs_in_loop_postorder_cmp): Likewise.
19171         (analyze_memory_references): Use gcc_sort_r interfaces.
19172         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
19174 2019-08-02  Martin Liska  <mliska@suse.cz>
19176         PR lto/91313
19177         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
19178         to detect working job server.
19179         (driver::detect_jobserver): Test whether jobserver
19180         is active from GCC driver. That will prevent situation where
19181         GCC is invoked from a LD plugin and the linker already uses
19182         file descriptors suggested by make.  That leads to a wrong
19183         detection.
19184         * gcc.h (driver): Add detect_jobserver.
19185         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
19186         not scanning for --jobserver-auth prefix.
19188 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
19190         PR tree-optimization/91201
19191         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
19192         V16QImode extraction without sse4.1 try to use V4SImode lowpart
19193         extraction.
19195 2019-08-01  Martin Sebor  <msebor@redhat.com>
19197         PR c++/90947
19198         * tree.c (type_initializer_zero_p): Define.
19199         * tree.h (type_initializer_zero_p): New function.
19201 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
19203         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
19205 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
19207         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
19208         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
19209         * predict.c (maybe_hot_count_p): Likewise.
19210         (maybe_hot_bb_p): Tweak comment.
19211         (maybe_hot_edge_p): Likewise.
19212         (probably_never_executed): Likewise.  Minor tweak.
19213         (probably_never_executed_bb_p): Likewise.
19214         (unlikely_executed_edge_p): Likewise.
19215         (probably_never_executed_edge_p): Likewise.
19216         (optimize_function_for_size_p): Likewise.
19217         (optimize_function_for_speed_p): Likewise.
19218         (function_optimization_type): Likewise.
19219         (optimize_bb_for_size_p): Likewise.
19220         (optimize_bb_for_speed_p): Likewise.
19221         (bb_optimization_type): Likewise.
19222         (optimize_edge_for_size_p): Likewise.
19223         (optimize_edge_for_speed_p): Likewise.
19224         (optimize_insn_for_size_p): Likewise.
19225         (optimize_insn_for_speed_p): Likewise.
19226         (optimize_loop_for_size_p): Likewise.
19227         (optimize_loop_for_speed_p): Likewise.
19228         (optimize_loop_nest_for_speed_p): Likewise.
19229         (optimize_loop_nest_for_size_p): Likewise.
19230         (predictable_edge_p): Likewise.
19231         (handle_missing_profiles): Minor tweak.
19233 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
19235         * config/rs6000/predicates.md (pcrel_external_address): Update
19236         comment.
19238 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19240         PR target/85693
19241         * config/i386/mmx.md (usadv8qi): New expander.
19243 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
19245         PR c++/90590
19246         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
19247         with reserved names that are in a system header.
19249 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19251         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
19252         (*vec_extractv2si_0_zext_sse4): New insn pattern.
19253         (*vec_extractv2si_0_zext): Ditto.
19254         (*vec_extractv2si_1): Add (rm,x) alternative.
19255         (*vec_extractv2si_1_zext): New insn pattern.
19256         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
19257         insn constraint.
19259 2019-08-01  Richard Biener  <rguenther@suse.de>
19261         * domwalk.c (bb_postorder): Remove static variable.
19262         (cmp_bb_postorder): Adjust.
19263         (sort_bbs_postorder): Adjust and use gcc_sort_r.
19264         (dom_walker::walk): Adjust.
19266 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
19268         * sort.cc (sort_r_ctx): New struct.
19269         (reorder23): Make templated on context type.
19270         (reorder45): Ditto.
19271         (cmp1): Ditto.  Adjust signature.
19272         (netsort): Ditto.
19273         (mergesort): Ditto.
19274         [CHECKING_P] (cmp2to3): New static function.  Use it...
19275         (gcc_qsort) [CHECKING_P]: ...here.
19276         (gcc_sort_r): New function.
19277         * system.h (sort_r_cmp_fn): New function typedef.
19278         (qsort_chk): Adjust signature.
19279         (gcc_sort_r): Declare.
19280         * vec.c (qsort_chk_error): Adjust.
19281         (qsort_chk): Adjust.
19283 2019-08-01  Richard Biener  <rguenther@suse.de>
19285         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
19286         (compute_antic): Localize it here.
19288 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
19290         * common/config/riscv/riscv-common.c: Check -march string ends
19291         with null.
19293 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
19295         * ipa-devirt.c (type_warning_cmp): Make static.
19296         (decl_warning_cmp): Ditto.
19298 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
19300         PR target/91050
19301         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
19302         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
19303         use of deleted rs6000_dejagnu_cpu_index variable.
19304         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
19305         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
19306         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
19307         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
19308         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
19309         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
19311 2019-07-31  Richard Biener  <rguenther@suse.de>
19313         PR tree-optimization/91280
19314         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19315         Decompose MEM_REF manually for offset handling.
19317 2019-07-31  Richard Biener  <rguenther@suse.de>
19319         PR tree-optimization/91293
19320         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
19321         of reduction stmts.
19323 2019-07-31  Matt Thomas  <matt@3am-software.com>
19324             Nick Hudson  <nick@nthcliff.demon.co.uk>
19325             Matthew Green  <mrg@eterna.com.au>
19326             Maya Rashish  <coypu@sdf.org>
19328         * config.gcc (hppa*-*-netbsd*): New target.
19329         * config/pa/pa-netbsd.h: New file.
19330         * config/pa/pa32-netbsd.h: New file.
19332 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
19334         PR tree-optimization/91201
19335         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
19337 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
19339         * config/gcn/gcn-valu.md
19340         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
19341         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
19342         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
19343         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
19344         struct ilist. Add nops for delayeduse insns.
19345         * config/gcn/gcn.md (delayeduse): New attribute.
19346         (*movbi): Remove s_waitcnt from stores.
19347         (*mov<mode>_insn): Likewise.
19348         (*movti_insn): Likewise. Add delayeduse attribute.
19349         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
19350         (atomic_store<mode>): Remove or adjust s_waitcnt.
19352 2019-07-31  Richard Biener  <rguenther@suse.de>
19354         * vr-values.h (vr_values::swap_vr_value): New.
19355         (vr_values::free_value_range): likewise.
19356         * vr-values.c (vr_values::swap_vr_value): Implement.
19357         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
19358         Do not return a range or take a var.
19359         (evrp_range_analyzer::stack): Change back to recording a non-const
19360         value_range *.
19361         * gimple-ssa-evrp-analyze.c
19362         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
19363         value-range.
19364         (evrp_range_analyzer::pop_to_marker): Adjust.
19365         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
19366         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
19367         no longer needed value-range.
19369 2019-07-31  Martin Liska  <mliska@suse.cz>
19371         * tree-ssa-dce.c (propagate_necessity): Delete operator can
19372         have size and (or) alignment as 2nd and later arguments.
19373         Mark all of them as necessary.
19375 2019-07-31  Richard Biener  <rguenther@suse.de>
19377         PR tree-optimization/91178
19378         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19379         Use tail-recursion.
19381 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
19383         PR tree-optimization/91201
19384         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
19385         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
19386         TARGET_AVX512F.
19387         (reduc_plus_scal_<mode>): Improve formatting by introducing
19388         a temporary.
19390 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
19392         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
19393         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
19394         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
19395         (aarch64_init_tme_builtins): New.
19396         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
19397         (aarch64_expand_builtin_tme): New.
19398         (aarch64_expand_builtin): Handle TME builtins.
19399         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
19400         __ARM_FEATURE_TME when enabled.
19401         * config/aarch64/aarch64-option-extensions.def: Add "tme".
19402         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
19403         (TARGET_TME): New.
19404         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
19405         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
19406         UNSPECV_TCANCEL.
19407         (tstart, ttest, tcommit, tcancel): New instructions.
19408         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
19409         (__tcancel, __ttest): New.
19410         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
19411         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
19412         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
19413         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
19414         * config/arm/types.md: Add new tme type attr.
19415         * doc/invoke.texi: Document "tme".
19417 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
19419         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
19420         warn_unused_result attribute.
19421         (cmse_check_address_range): Add warn_unused_result attribute.
19423 2019-07-31  Richard Biener  <rguenther@suse.de>
19425         PR tree-optimization/91257
19426         * tree-vrp.c (union_ranges): Unify equality and less tests
19427         by using compare_values.  Re-order cheap tests first.
19429 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
19431         PR middle-end/91301
19432         * gimplify.c (gimplify_omp_for): If for class iterator on
19433         distribute parallel for there is no data sharing clause
19434         on inner_for_stmt, look for private clause on combined
19435         parallel too and if found, move it to inner_for_stmt.
19437 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
19439         * lra-int.h (lra_operand_data): Remove early_clobber field.
19440         (lra_insn_reg): Likewise.
19441         * lra.c (debug_operand_data): Update accordingly.
19442         (setup_operand_alternative): Likewise.
19443         (new_insn_reg): Likewise.  Remove early_clobber parameter.
19444         (collect_non_operand_hard_regs): Update call accordingly.
19445         Don't assign to lra_insn_reg::early_clobber.
19446         (add_regs_to_insn_regno_info): Remove early_clobber parameter
19447         and update calls to new_insn_reg.
19448         (lra_update_insn_regno_info): Update calls accordingly.
19449         * lra-constraints.c (update_and_check_small_class_inputs): Take the
19450         alternative number as a parameter and test whether the operand
19451         is earlyclobbered in that particular alternative.
19452         (process_alt_operands): Update call accordingly.  Use per-alternative
19453         checks for earyclobber here too.
19454         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
19455         against zero for IRA_UNKNOWN_ALT.
19457 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19459         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
19461 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
19463         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
19464         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19466 2019-07-30  Martin Liska  <mliska@suse.cz>
19468         PR ipa/89330
19469         * cgraph.c (cgraph_edge::make_direct): Use
19470         edge->indirect_unknown_callee as edge->resolve_speculation can
19471         deallocate edge which is this pointer.
19473 2019-07-30  Richard Biener  <rguenther@suse.de>
19475         PR tree-optimization/91257
19476         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
19478 2019-07-30  Martin Liska  <mliska@suse.cz>
19480         * doc/invoke.texi: Document new behavior.
19481         * lto-wrapper.c (cpuset_popcount): New function
19482         is a copy of libgomp/config/linux/proc.c.
19483         (init_num_threads): Likewise.
19484         (run_gcc): Automatically detect core count for -flto.
19485         (jobserver_active_p): New function.
19487 2019-07-30  Richard Biener  <rguenther@suse.de>
19489         PR tree-optimization/91257
19490         * bitmap.h (bitmap_ior_into_and_free): Declare.
19491         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
19492         whether to add the unliked element to the freelist.
19493         (bitmap_list_insert_element_after): Add defaulted param for
19494         an already allocated element.
19495         (bitmap_ior_into_and_free): New function.
19496         * tree-ssa-structalias.c (condense_visit): Reduce the
19497         ponts-to and edge bitmaps of the SCC members in a
19498         logarithmic fashion rather than all to one.
19500 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
19502         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
19503         parameter.  When nonnull, make sure that the addition or subtraction
19504         has the same condition.
19505         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
19506         for CFN_COND_MUL too.
19508 2019-07-30  Richard Biener  <rguenther@suse.de>
19510         PR tree-optimization/91291
19511         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
19512         constant values.
19514 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
19516         PR middle-end/91216
19517         * omp-low.c (global_nonaddressable_vars): New variable.
19518         (use_pointer_for_field): For global decls, if they are non-addressable,
19519         remember it in the global_nonaddressable_vars bitmap, if they are
19520         addressable and in the global_nonaddressable_vars bitmap, ignore their
19521         TREE_ADDRESSABLE bit.
19522         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
19523         vars in global_nonaddressable_vars bitmap.
19524         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
19526         PR target/91150
19527         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
19528         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
19529         comparison to unsigned HOST_WIDE_INT before shifting it left.
19531 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19533         * config/i386/i386.md (movstrict<mode>): Use register_operand
19534         predicate for operand 0.  Add expander condition.  Assert that
19535         operand 0 is a SUBREG RTX.
19536         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
19537         Update operand constraints and insn condition.
19538         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
19539         (zero_extendqihi2_and): Do not call gen_movstrictqi.
19540         (*setcc_qi_slp): Use register_operand predicate for operand 0.
19541         Update operand 0 constraints.
19542         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
19544 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19546         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
19547         when -m{code,data}-region are used without -mlarge.
19548         * config/msp430/msp430.c (msp430_option_override): Error when a
19549         non-default code or data region is used without -mlarge.
19550         (msp430_section_attr): Emit a warning and do not add upper/lower/either
19551         attributes when they are used without -mlarge.
19553 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19555         PR target/70320
19556         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
19558 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19560         PR middle-end/91242
19561         * wide-int.h (generic_wide_int::sext_elt): New function.
19562         * inchash.h (hash::add_wide_int): Use it instead of elt.
19564 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19566         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
19567         CODE_FOR_arm_##.
19568         * config/arm/arm.md (<crc_variant>): Rename to...
19569         (arm_<crc_variant>): ... This.
19570         (<cdp>): Rename to...
19571         (arm_<cdp>): ... This.
19572         (<ldc>): Rename to...
19573         (arm_<ldc>): ... This.
19574         (<stc>): Rename to...
19575         (arm_<stc>): ... This.
19576         (<mcr>): Rename to...
19577         (arm_<mcr>): ... This.
19578         (<mrc>): Rename to...
19579         (arm_<mrc>): ... This.
19580         (<mcrr>): Rename to...
19581         (arm_<mcrr>): ... This.
19582         (<mrrc>): Rename to...
19583         (arm_<mrrc>): ... This.
19585 2019-07-29  Richard Biener  <rguenther@suse.de>
19587         PR tree-optimization/91257
19588         * tree-ssa-sccvn.h (struct vn_avail): New.
19589         (struct vn_ssa_aux): Add avail member.
19590         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
19591         member, add m_avail_freelist one.
19592         (rpo_elim::~rpo_elim): Remove.
19593         (rpo_elim::eliminate_avail): Adjust to new avail tracking
19594         data structure.
19595         (rpo_elim::eliminate_push_avail): Likewise.
19596         (do_unwind): Likewise.
19597         (do_rpo_vn): Likewise.
19599 2019-07-29  Richard Biener  <rguenther@suse.de>
19601         PR tree-optimization/91257
19602         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
19603         most cases, instead call compare_values which handles the
19604         symbolic ranges we handle specially.
19605         (compare_values_warnv): Do not call operand_less_p but open-code
19606         the effective fold calls.  Avoid converting so much.
19608 2019-07-29  Martin Liska  <mliska@suse.cz>
19610         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
19611         remove LHS of operator new call.  It's handled latter.
19613 2019-07-29  Richard Biener  <rguenther@suse.de>
19615         PR tree-optimization/91267
19616         * vr-values.c (vr_values::update_value_range): Add early return
19617         for effectively VARYING lattice entry.
19619 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19621         PR debug/86638
19622         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
19623         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
19624         necessary if keep_all_vdefs_p is true.
19625         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
19626         that keep_all_vdefs_p is false.
19627         (mark_all_reaching_defs_necessary): Likewise.
19628         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
19630 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19632         * common.opt (Og): Change the initial value of flag_dse to 0.
19633         * opts.c (default_options_table): Move OPT_ftree_dse from
19634         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
19635         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
19636         entry before the OPT_ftree_sra entry.
19637         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
19638         of flags disabled by Og.
19640 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19642         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
19643         variables for -Og.
19645 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19647         * doc/sourcebuild.texi (check-function-bodies): Document.
19649 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19651         * simplify-rtx.c (simplify_const_unary_operation): Fold a
19652         VEC_DUPLICATE of a fixed-length vector even if the result
19653         is variable-length.  Likewise fold a duplicate of a
19654         variable-length vector if the variable-length vector is
19655         itself a duplicate of a fixed-length sequence.
19656         (test_vector_ops_duplicate): Test more cases.
19658 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
19660         * vector-builder.h (vector_builder): Add a shape template parameter.
19661         (vector_builder::new_unary_operation): New function, generalizing
19662         the old tree_vector_builder function.
19663         (vector_builder::new_binary_operation): Likewise.
19664         (vector_builder::binary_encoded_nelts): Likewise.
19665         * int-vector-builder.h (int_vector_builder): Update template
19666         parameters to vector_builder.
19667         (int_vector_builder::shape_nelts): New function.
19668         * rtx-vector-builder.h (rtx_vector_builder): Update template
19669         parameters to vector_builder.
19670         (rtx_vector_builder::shape_nelts): New function.
19671         (rtx_vector_builder::nelts_of): Likewise.
19672         (rtx_vector_builder::npatterns_of): Likewise.
19673         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
19674         * tree-vector-builder.h (tree_vector_builder): Update template
19675         parameters to vector_builder.
19676         (tree_vector_builder::shape_nelts): New function.
19677         (tree_vector_builder::nelts_of): Likewise.
19678         (tree_vector_builder::npatterns_of): Likewise.
19679         (tree_vector_builder::nelts_per_pattern_of): Likewise.
19680         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
19681         (tree_vector_builder::new_binary_operation): Delete.
19682         (tree_vector_builder::binary_encoded_nelts): Likewise.
19683         * simplify-rtx.c: Include rtx-vector-builder.h.
19684         (distributes_over_addition_p): New function.
19685         (simplify_const_unary_operation)
19686         (simplify_const_binary_operation): Generalize handling of vector
19687         constants to include variable-length vectors.
19688         (test_vector_ops_series): Add more tests.
19690 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
19692         PR lto/91222
19693         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
19694         than INDENTIFIER_POINTER.
19696 2019-07-28  Martin Liska  <mliska@suse.cz>
19698         PR ipa/89330
19699         * cgraph.c (symbol_table::create_edge): Always allocate
19700         a cgraph_edge.
19701         (symbol_table::free_edge): Store summary_id to
19702         edge_released_summary_ids if != -1;
19703         * cgraph.h (NEXT_FREE_NODE): Remove.
19704         (SET_NEXT_FREE_NODE): Likewise.
19705         (NEXT_FREE_EDGE): Likewise.
19706         (symbol_table::release_symbol): Store summary_id to
19707         cgraph_released_summary_ids if != -1;
19708         (symbol_table::allocate_cgraph_symbol): Always allocate
19709         a cgraph_node.
19711 2019-07-28  Alan Modra  <amodra@gmail.com>
19713         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19714         gen_sibcall.
19716 2019-07-28  Alan Modra  <amodra@gmail.com>
19718         PR target/91135
19719         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
19720         define.
19721         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
19722         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
19723         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
19725 2019-07-28  Alan Modra  <amodra@gmail.com>
19727         PR target/91050
19728         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
19729         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
19730         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
19731         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
19732         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
19733         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
19734         in asm_default spec.
19735         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
19736         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
19738 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
19740         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
19742 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19744         PR target/89517
19745         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
19746         * config/aarch64/aarch64-option-extensions.def: Add new comments
19747         and restore easier to read options.
19749 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
19751         * convert.c (convert_to_real_1): Move part of conversion code...
19752         * match.pd: ...To here.
19754 2019-07-26  Martin Jambor  <mjambor@suse.cz>
19756         PR ipa/89330
19757         * ipa-inline-transform.c (check_speculations_1): New function.
19758         (push_all_edges_in_set_to_vec): Likewise.
19759         (check_speculations): Use check_speculations_1, new parameter
19760         new_edges.
19761         (inline_call): Pass new_edges to check_speculations.
19762         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
19763         NULL.
19764         (speculation_useful_p): Early return true if edge is inlined, remove
19765         later checks for inline_failed.
19767 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19769         PR rtl-optimization/91223
19770         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
19771         matching with INOUT operand.
19773 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19775         * stmt.c (expand_case): Try to narrow the index type if it's larger
19776         than a word.  Tidy up.
19778 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19780         * cif-code.def (NEVER_CALL): New code.
19781         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
19782         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
19784 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
19786         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
19787         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19789 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
19791         * ipa-devirt.c (add_type_duplicate): Fix return value.
19793 2019-07-25  Richard Biener  <rguenther@suse.de>
19795         * tree-vrp.c (extract_range_from_multiplicative_op): Add
19796         type parameter and use it instead of guessing expression
19797         type from the first operand.
19798         (extract_range_from_binary_expr): Pass expr_type down.
19800 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19802         * config/arm/arm.md (SATrev): Change to code attribute.
19803         (*satsi_<SAT:code>): Adjust for the above.
19804         (*satsi_<SAT:code>_shift): Likewise.
19806 2019-07-25  Richard Biener  <rguenther@suse.de>
19808         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19809         Make value_range * temporary const.
19810         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19811         Likewise.
19812         (evrp_range_analyzer::record_ranges_from_): Likewise.
19813         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19814         deal with having recorded a const one.
19815         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19816         Return a const value_range *.
19817         (evrp_range_analyzer::pop_value_range): Likewise.
19818         (evrp_range_analyzer::stack): Record const value_range *s.
19819         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19820         Adjust.
19821         * gimple-ssa-sprintf.c (get_int_range): Likewise.
19822         (format_integer): Likewise.
19823         (sprintf_dom_walker::handle_gimple_call): Likewise.
19824         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19825         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19826         (vrp_prop::get_value_range): Adjust.
19827         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19828         modifying the lattice in-place.
19829         (vrp_prop::visit_stmt): Likewise.
19830         * vr-values.c (vr_values::get_lattice_entry): New private method.
19831         (vr_values::get_value_range): Wrap it and return a const
19832         value_range *.
19833         (vr_values::set_def_to_varying): New.
19834         (vr_values::set_defs_to_varying): Use it.
19835         (vr_values::update_value_range): Likewise.
19836         (vr_values::vrp_stmt_computes_nonzero): Adjust.
19837         (values::op_with_constant_singleton_va): Likewise.
19838         (vr_values::extract_range_for_var_from_co): Likewise.
19839         (vr_values::extract_range_from_ssa_name): Likewise.
19840         (vr_values::extract_range_from_cond_expr): Likewise.
19841         (vr_values::extract_range_basic): Likewise.
19842         (compare_ranges): Take const value_range *, adjust.
19843         (compare_range_with_value): Likewise.
19844         (vrp_valueize): Adjust.
19845         (vrp_valueize_1): Likewise.
19846         (vr_values::get_vr_for_comparison): Return a const value_range *.
19847         (vr_values::compare_name_with_value): Adjust.
19848         (vr_values::compare_names): Likewise.
19849         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19850         Likewise.
19851         (vr_values::vrp_evaluate_conditional): Likewise.
19852         (find_case_label_ranges): Take a const value_range *.
19853         (vr_values::vrp_visit_switch_stmt): Adjust.
19854         (vr_values::extract_range_from_phi_node): Likewise.
19855         (vr_values::simplify_div_or_mod_using_ran): Likewise.
19856         (vr_values::simplify_abs_using_ranges): Likewise.
19857         (test_for_singularity): Take a const value_range *.
19858         (range_fits_type_p): Likewise.
19859         (vr_values::simplify_cond_using_ranges_1): Adjust.
19860         (vr_values::simplify_cond_using_ranges_2): Likewise.
19861         (vr_values::simplify_switch_using_ranges): Likewise.
19862         (vr_values::simplify_float_conversion_usi): Likewise.
19863         (vr_values::two_valued_val_range_p): Likewise.
19864         * vr-values.h (vr_values::get_value_range): Return a const
19865         value_range *.
19866         (vr_values::set_def_to_varying): New.
19867         (vr_values::get_lattice_entry): New private method.
19868         (vr_values::get_vr_for_comparison): Return a const value_range *.
19870 2019-07-25  Martin Liska  <mliska@suse.cz>
19871             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
19873         PR c++/23383
19874         * common.opt: Add -fallocation-dce
19875         * gimple.c (gimple_call_operator_delete_p): New.
19876         * gimple.h (gimple_call_operator_delete_p): Likewise.
19877         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19878         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19879         DECL_IS_OPERATOR_DELETE_P.
19880         (mark_all_reaching_defs_necessary_1): Likewise.
19881         (propagate_necessity): Likewise.
19882         (eliminate_unnecessary_stmts): Handle
19883         gimple_call_operator_delete_p.
19884         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19885         Add packing of OPERATOR_DELETE.
19886         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19887         Similarly here.
19888         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19889         (DECL_SET_IS_OPERATOR_DELETE): New.
19890         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19892 2019-07-25  Martin Liska  <mliska@suse.cz>
19894         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19895         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19896         * coverage.c (coverage_begin_function): Likewise.
19897         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19898         * gimple.c (gimple_call_nonnull_result_p): Likewise.
19899         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19900         (sem_item::hash_referenced_symbol_properties): Likewise.
19901         * lto-streamer-out.c (hash_tree): Likewise.
19902         * predict.c (expr_expected_value_1): Likewise.
19903         * tree-inline.c (expand_call_inline): Likewise.
19904         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19905         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19906         * tree-core.h (enum function_decl_type): New enum.
19907         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19908         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19909         (set_function_decl_type): Likewise.
19910         (DECL_IS_OPERATOR_NEW_P): New.
19911         (DECL_SET_IS_OPERATOR_NEW): Likewise.
19912         (DECL_LAMBDA_FUNCTION): Likewise.
19913         (DECL_LAMBDA_FUNCTION_P): Likewise.
19914         (DECL_IS_OPERATOR_NEW): Remove.
19915         (DECL_SET_LAMBDA_FUNCTION): Likewise.
19917 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
19919         * ipa-profile.c (get_most_common_single_value): Use
19920         get_nth_most_common_value.
19921         * profile.c (sort_hist_value): New function.
19922         (compute_value_histograms): Call sort_hist_value to sort the
19923         values after loading from disk.
19924         * value-prof.c (get_most_common_single_value): Rename to ...
19925         get_nth_most_common_value.  Add input params n, return
19926         the n_th value and count.
19927         (gimple_divmod_fixed_value_transform): Use
19928         get_nth_most_common_value.
19929         (gimple_ic_transform): Likewise.
19930         (gimple_stringops_transform): Likewise.
19931         * value-prof.h (get_most_common_single_value): Add input params
19932         n, default to 0.
19934 2019-07-25  Richard Biener  <rguenther@suse.de>
19936         PR tree-optimization/91236
19937         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19938         size of CONSTRUCTOR write.  Fix buffer size we pass to
19939         native_encode_expr.
19941 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19943         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19944         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19945         r273773.
19947 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19949         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19950         explicitly disabled with --disable-initfini-array.
19952 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19954         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19955         if-exists.
19957 2019-07-24  Martin Sebor  <msebor@redhat.com>
19959         PR tree-optimization/91183
19960         PR tree-optimization/86688
19961         * builtins.c (compute_objsize): Handle MEM_REF.
19962         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19963         (get_min_string_length): Remove.
19964         (count_nonzero_bytes): New function.
19965         (handle_char_store): Rename...
19966         (handle_store): to this.  Handle multibyte stores via integer types.
19967         (strlen_check_and_optimize_stmt): Adjust conditional and the called
19968         function name.
19970 2019-07-24  Martin Sebor  <msebor@redhat.com>
19972         PR driver/80545
19973         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19974         (diagnostic_report_diagnostic): Same.
19975         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19976         (diagnostic_context::lang_mask): New data member.
19977         * ipa-pure-const.c (suggest_attribute): Use
19978         lang_hooks.option_lang_mask ().
19979         * opts-common.c (option_enabled): Handle new argument.
19980         (get_option_state): Pass an additional argument.
19981         * opts.c (print_filtered_help): Print supported languages for
19982         unsupported options.  Adjust printing of current state.
19983         * opts.h (option_enabled): Add argument.
19984         * toplev.c (print_switch_values): Use lang_mask.
19985         (general_init): Set global_dc->lang_mask.
19987 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
19989         PR bootstrap/87030
19990         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19992 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19994         * cgraphunit.c (symbol_table::compile): Start and stop
19995         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19996         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19998 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
20000         * gimplify.c (flag_instrument_functions_exclude_p): Include
20001         namespace/class information in the printable name.
20002         * opts.c (add_comma_separated_to_vector): Add NUL terminator
20003         to tokens entered into the vector.
20005 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
20007         * tree-nested.c (build_simple_mem_ref_notrap): New function.
20008         (get_static_chain): Call it instead of build_simple_mem_ref.
20009         (get_frame_field): Likewise.
20010         (get_nonlocal_debug_decl): Likewise.
20011         (convert_nonlocal_reference_op): Likewise.
20013 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
20015         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
20016         declaration.
20017         (arc_compute_frame_size): Millicode is disabled when compiling
20018         ISR.
20019         (arc_return_address_register): Likewise.
20020         (arc_compute_function_type): Likewise.
20021         (arc_compute_frame_size): Likewise.
20022         (secondary_reload_info): Likewise.
20023         (arc_get_unalign): Likewise.
20024         (arc_can_use_return_insn): Declare.
20025         * config/arc/arc.c (AUX_LP_START): Define
20026         (AUX_LP_END): Likewise.
20027         (arc_frame_info): Update gmask member to 64-bit datum.
20028         (GMASK_LEN): Update.
20029         (arc_compute_function_type): Make it static, move it forward.
20030         (arc_must_save_register): Update, consider the extra regs.
20031         (arc_compute_millicode_save_restore_regs): Update to use the 64
20032         bit gmask.
20033         (arc_compute_frame_size): Likewise.
20034         (arc_enter_leave_p): Likewise.
20035         (arc_save_callee_saves): Likewise.
20036         (arc_restore_callee_saves): Likewise.
20037         (arc_save_callee_enter): Likewise.
20038         (arc_restore_callee_leave): Likewise.
20039         (arc_save_callee_milli): Likewise.
20040         (arc_restore_callee_milli): Likewise.
20041         (arc_expand_prologue): Add new interrupt handling.
20042         (arc_return_address_register): Make it static, move it forward.
20043         (arc_expand_epilogue): Add new interrupt handling.
20044         (arc_get_unalign): Delete.
20045         (arc_epilogue_uses): Make sure we do not remove the extra
20046         saved/restored registers when interrupt.
20047         (arc_can_use_return_insn): New function.
20048         (push_reg): Likewise.
20049         (pop_reg): Likewise.
20050         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
20051         procedures.
20052         (arc_restore_callee_saves): Likewise, but restoring.
20053         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
20054         (R33_REG): Likewise.
20055         (R34_REG): Likewise.
20056         (R35_REG): Likewise.
20057         (R36_REG): Likewise.
20058         (R37_REG): Likewise.
20059         (R38_REG): Likewise.
20060         (R39_REG): Likewise.
20061         (R45_REG): Likewise.
20062         (R46_REG): Likewise.
20063         (R47_REG): Likewise.
20064         (R48_REG): Likewise.
20065         (R49_REG): Likewise.
20066         (R50_REG): Likewise.
20067         (R51_REG): Likewise.
20068         (R52_REG): Likewise.
20069         (R53_REG): Likewise.
20070         (R54_REG): Likewise.
20071         (R55_REG): Likewise.
20072         (R56_REG): Likewise.
20073         (R58_REG): Likewise.
20074         (type): Add rtie attribute.
20075         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
20076         (movsi_insn): Accept moves to lp_count.
20077         (rtie): Update pattern.
20078         (simple_return): Simplify it, don't use this pattern as a return
20079         from an interrupt.
20080         (arc600_rtie): New pattern.
20081         (p_return_i): Clean up.
20082         (return): Likewise.
20083         * config/arc/builtins.def (rtie): Only available for non ARC6xx
20084         family CPUs.
20085         * config/arc/predicates.md (move_src_operand): Consider lp_count
20086         as a register.
20088 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
20090         * config/s390/predicates.md (addv_const_operand): New predicate.
20091         * config/s390/s390-modes.def (CCO): New condition code mode.
20092         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
20093         (s390_branch_condition_mask): Likewise.
20094         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
20095         ("mulv<mode>4"): New expanders.
20096         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
20097         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
20098         pattern definitions.
20100 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20102         PR middle-end/91166
20103         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
20104         (define_predicates): Add entry for uniform_vector_p.
20105         (vec_same_elem_p): New match pattern.
20107 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
20109         PR bootstrap/87030
20110         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
20111         * config/i386/darwin32-biarch.h .. to here.
20112         * config/i386/darwin64-biarch.h: Adjust comments.
20113         * config/rs6000/darwin32-biarch.h: Likewise.
20114         * config/rs6000/darwin64-biarch.h: Likewise.
20115         * config.gcc: Missed commit from r273746
20116         (*-*-darwin*): Don't include CPU t-darwin here.
20117         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
20118         an error message if i686-darwin configuration is attempted for
20119         Darwin >= 18.
20121 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
20123         PR bootstrap/87030
20124         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
20125         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
20126         an error message if i686-darwin configuration is attempted for
20127         Darwin >= 18.
20128         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
20129         (powerpc-*-darwin*): Use biarch files where needed.
20130         (powerpc64-*-darwin*): Likewise.
20131         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
20132         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
20133         arch case.
20134         * config/i386/darwin32-biarch.h: New.
20135         * config/i386/darwin64.h: Rename.
20136         * config/i386/darwin64-biarch.h: To this.
20137         * config/i386/t-darwin: Rename.
20138         * config/i386/t-darwin32-biarch: To this.
20139         * config/i386/t-darwin64: Rename.
20140         * config/i386/t-darwin64-biarch: To this.
20141         * config/rs6000/darwin32-biarch.h: New.
20142         * config/rs6000/darwin64.h: Rename.
20143         * config/rs6000/darwin64-biarch.h: To this.
20144         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
20145         arch case.
20146         * config/rs6000/t-darwin8: Rename.
20147         * config/rs6000/t-darwin32-biarch: To this.
20148         * config/rs6000/t-darwin64 Rename.
20149         * config/rs6000/t-darwin64-biarch: To this.
20151 2019-07-23  Martin Sebor  <msebor@redhat.com>
20153         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
20155 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
20157         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
20158         (rh): New alias for it.
20160 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
20162         * gdbhooks.py: Pass replace=True to
20163         gdb.printing.register_pretty_printer.
20165 2019-07-23  Richard Biener  <rguenther@suse.de>
20167         PR debug/91231
20168         * lto-streamer-in.c (input_function): Drop inline-entry markers
20169         that ended up with an unknown location block.
20171 2019-07-23  Richard Biener  <rguenther@suse.de>
20173         PR tree-optimization/83518
20174         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
20175         init from a constant even when partial defs are already recorded.
20177 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
20179         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
20180         * config/i386/znver1.md: Enable patterns for znver2 and add store
20181         variants which use extra AGU unit.
20183 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
20185         * config/i386/i386-options.c (ix86_option_override_internal): Default
20186         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
20187         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
20188         for ZNVER2.
20190 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
20192         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
20193         (znver2_costs): Update 256 bit SSE costs and multiplication.
20195 2019-07-23  Jan Beulich  <jbeulich@suse.com>
20197         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
20198         Require only AVX512F.
20199         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
20200         alternative expanding to vpternlog.
20202 2019-07-23  Martin Liska  <mliska@suse.cz>
20204         * dwarf2out.c (gen_producer_string): Canonize -flto=N
20205         to -flto in dwarf producer string.
20207 2019-07-23  Richard Biener  <rguenther@suse.de>
20209         * tree-cfg.c (label_for_bb): Remove global var.
20210         (main_block_label): Take label_for_bb as argument.
20211         (cleanup_dead_labels_eh): Likewise, adjust.
20212         (cleanup_dead_labels): Adjust.
20214 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
20216         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
20217         Configurations): Add documentation for __builtin_mtfsf.
20219 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
20221         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
20222         * config/riscv/riscv.c (riscv_constant_alignment): Use
20223         riscv_align_data_type.
20224         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
20225         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
20226         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
20227         * config/riscv/riscv.opt (malign-data): New.
20228         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
20230 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
20232         * cgraph.c (dump_graphviz): New function.
20233         * cgraph.h (dump_graphviz): New function.
20234         * symtab.c (dump_graphviz): New function.
20236 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
20238         * config/aarch64/aarch64-simd.md
20239         (*aarch64_simd_sra<mode>): New.
20240         * config/aarch64/iterators.md
20241         (SHIFTRT): New iterator.
20242         (sra_op): New attribute.
20244 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
20246         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
20247         callee-saved regs R4->R10 in an interrupt function that calls another
20248         function.
20250 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
20252         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
20253         (_mm_blendv_epi8): New.
20255 2019-07-22  Richard Biener  <rguenther@suse.de>
20257         PR tree-optimization/91221
20258         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
20259         restrict partial-def handling of empty constructors and
20260         memset to refs with known offset.
20262 2019-07-22  Jan Beulich  <jbeulich@suse.com>
20264         * config/i386/sse.md (ternlogsuffix): New.
20265         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
20266         AVX512F is in use.
20267         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
20269 2019-07-22  Martin Liska  <mliska@suse.cz>
20271         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
20272         comment.
20273         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
20275 2019-07-22  Martin Liska  <mliska@suse.cz>
20277         * lto-section-in.c (lto_get_section_data):
20278         Use new function get_compression.
20279         * lto-streamer-out.c (produce_lto_section): Use
20280         set_compression to encode compression algorithm.
20281         * lto-streamer.h (struct lto_section): Do not
20282         use bitfields in the format.
20284 2019-07-22  Martin Liska  <mliska@suse.cz>
20286         PR driver/91172
20287         * opts-common.c (decode_cmdline_option): Decode
20288         argument of -Werror and check it for a wrong language.
20289         * opts-global.c (complain_wrong_lang): Remove such case.
20291 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
20293         * config/arc/arc.c (prepare_move_operands): Always use an
20294         intermediate register when storing a TLS symbols.
20296 2019-07-22  Stafford Horne  <shorne@gmail.com>
20298         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
20299         force_reg.
20301 2019-07-22  Stafford Horne  <shorne@gmail.com>
20303         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
20304         and munordered-float validations.
20305         * config/or1k/constraints.md (d): New register constraint.
20306         * config/or1k/predicates.md (fp_comparison_operator): New.
20307         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
20308         operands.
20309         (or1k_expand_compare): Normalize unordered comparisons.
20310         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
20311         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
20312         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
20313         * config/or1k/or1k.md (type): Add fpu.
20314         (fpu): New instruction reservation.
20315         (F, f, fr, fi, FI, FOP, fop): New.
20316         (<fop><F:mode>3): New ALU instruction definition.
20317         (float<fi><F:mode>2): New conversion instruction definition.
20318         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
20319         (fpcmpcc): New code iterator.
20320         (*sf_fp_insn): New instruction definition.
20321         (cstore<F:mode>4): New expand definition.
20322         (cbranch<F:mode>4): New expand definition.
20323         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
20324         munordered-float): New options.
20325         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
20326         munordered-float.
20328 2019-07-22  Stafford Horne  <shorne@gmail.com>
20330         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
20331         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
20332         documenation to be more clear.
20333         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
20334         more clear.
20335         * config/or1k/or1k.opt (mrori): New option.
20336         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
20337         msfimm, mshftimm): Rewrite documentation to be more clear.
20338         * config/or1k/or1k.md (insn_support): Add ror and rori.
20339         (enabled): Add conditions for ror and rori.
20340         (rotrsi3): Replace condition for shftimm with ror and rori.
20342 2019-07-22  Stafford Horne  <shorne@gmail.com>
20344         PR target/90363
20345         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
20346         (extend<mode>si2): Update predicate.
20347         * config/or1k/predicates.md (volatile_mem_operand): New.
20348         (reg_or_mem_operand): New.
20350 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
20352         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
20353         * config/rs6000/rs6000-call.c: ... to here.
20355 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20357         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
20358         memory.
20360 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20362         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
20364 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20366         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
20368 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20370         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
20371         (any_memory_operand): New predicate.
20372         (reg_or_mem_operand): Use it.
20374 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
20376         PR target/91204
20377         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
20379 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
20381         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
20382         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
20384 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
20386         * tree.def (OMP_LOOP): New tree code.
20387         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
20388         (enum omp_clause_bind_kind): New enum.
20389         (struct tree_omp_clause): Add subcode.bind_kind.
20390         * tree.h (OMP_LOOP_CHECK): Rename to ...
20391         (OMP_LOOPING_CHECK): ... this.
20392         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
20393         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
20394         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
20395         (OMP_CLAUSE_BIND_KIND): Define.
20396         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20397         bind clause entries.
20398         (walk_tree_1): Handle OMP_CLAUSE_BIND.
20399         * tree-pretty-print.c (dump_omp_clause): Likewise.
20400         (dump_generic_node): Handle OMP_LOOP.
20401         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
20402         (in_omp_construct): New variable.
20403         (is_gimple_stmt): Handle OMP_LOOP.
20404         (gimplify_scan_omp_clauses): For lastprivate don't set
20405         check_non_private if code == OMP_LOOP.  For reduction clause
20406         on OMP_LOOP combined with parallel or teams propagate as shared
20407         on the combined construct.  Handle OMP_CLAUSE_BIND.
20408         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
20409         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
20410         for constructs from a loop construct to gimplify_scan_omp_clauses.
20411         Don't predetermine iterator linear on OMP_SIMD from loop construct.
20412         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
20413         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
20414         to match the implicit ORT_TARGET construct around whole body.
20415         Temporarily clear in_omp_construct when processing body.
20416         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
20417         etc. temporarily set in_omp_construct when processing body.
20418         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
20419         * omp-low.c (struct omp_context): Add loop_p.
20420         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
20421         in that the original var might be private.
20422         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
20423         (check_omp_nesting_restrictions): Adjust nesting restrictions for
20424         addition of loop construct.
20425         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
20427         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
20428         lastprivate non-addressable iterator of a collapse(1) simd.
20430 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
20432         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
20433         as in rs6000.c.
20435 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
20437         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
20438         refer to default conditions.  Warn for the 'y' spec which is ignored
20439         by current linkers.
20441 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
20443         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
20444         cpu_supports_info, builtin_hash_struct, builtin_hasher,
20445         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
20446         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
20447         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
20448         init_cumulative_args, rs6000_promote_function_mode,
20449         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
20450         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
20451         rs6000_function_arg_boundary, rs6000_parm_offset,
20452         rs6000_parm_start, rs6000_arg_size,
20453         rs6000_darwin64_record_arg_advance_flush,
20454         rs6000_darwin64_record_arg_advance_recurse,
20455         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
20456         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
20457         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
20458         rs6000_mixed_function_arg, rs6000_psave_function_arg,
20459         rs6000_finish_function_arg, rs6000_function_arg,
20460         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
20461         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
20462         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
20463         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
20464         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
20465         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
20466         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
20467         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
20468         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
20469         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
20470         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
20471         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
20472         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
20473         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
20474         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
20475         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
20476         get_element_number, altivec_expand_vec_set_builtin,
20477         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
20478         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
20479         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
20480         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
20481         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
20482         rs6000_expand_builtin, rs6000_vector_type,
20483         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
20484         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
20485         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
20486         to rs6000-call.c.
20487         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
20488         cpu_supports_info, builtin_hash_struct, builtin_hasher,
20489         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
20490         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
20491         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
20492         init_cumulative_args, rs6000_promote_function_mode,
20493         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
20494         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
20495         rs6000_function_arg_boundary, rs6000_parm_offset,
20496         rs6000_parm_start, rs6000_arg_size,
20497         rs6000_darwin64_record_arg_advance_flush,
20498         rs6000_darwin64_record_arg_advance_recurse,
20499         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
20500         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
20501         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
20502         rs6000_mixed_function_arg, rs6000_psave_function_arg,
20503         rs6000_finish_function_arg, rs6000_function_arg,
20504         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
20505         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
20506         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
20507         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
20508         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
20509         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
20510         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
20511         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
20512         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
20513         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
20514         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
20515         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
20516         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
20517         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
20518         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
20519         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
20520         get_element_number, altivec_expand_vec_set_builtin,
20521         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
20522         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
20523         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
20524         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
20525         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
20526         rs6000_expand_builtin, rs6000_vector_type,
20527         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
20528         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
20529         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
20530         to here from rs6000.c.
20531         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
20532         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
20533         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
20534         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
20535         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
20536         rs6000_return_in_memory, rs6000_return_in_msb,
20537         rs6000_pass_by_reference, setup_incoming_varargs,
20538         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
20539         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
20540         rs6000_function_arg_padding, rs6000_function_arg,
20541         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
20542         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
20543         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
20544         rs6000_passes_long_double, rs6000_passes_vector,
20545         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
20546         altivec_builtin_mask_for_load) Add declarations.
20547         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
20548         * config/config.gcc: Add new source file rs6000-call.c to garbage
20549         collector and extra_objs.
20551 2019-07-19  Jeff Law  <law@redhat.com>
20553         PR tree-optimization/86061
20554         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
20555         strncpy.  Drop some trivial dead code.
20556         (maybe_trim_memstar_call): Handle strncpy.
20558 2019-07-19  Richard Biener  <rguenther@suse.de>
20560         PR tree-optimization/91211
20561         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
20562         memset encoding size.
20564 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20566         PR target/91204
20567         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
20569 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
20571         PR ipa/91194
20572         * ipa-inline.c (recursive_inlining): Fix limits check.
20574 2019-07-19  Richard Biener  <rguenther@suse.de>
20576         PR tree-optimization/91200
20577         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
20578         no PHI nodes in middle-bb.
20580 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
20582         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
20583         to +sve-bitperm.
20584         * config/aarch64/aarch64-option-extensions.def: Likewise.
20586 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
20588         PR middle-end/91190
20589         * function.c (insert_temp_slot_address): Store into the hash table
20590         a copy of address to avoid RTL sharing issues.
20592 2019-07-19  Richard Biener  <rguenther@suse.de>
20594         PR tree-optimization/91207
20595         Revert
20596         2019-07-17  Richard Biener  <rguenther@suse.de>
20598         PR tree-optimization/91178
20599         * tree-vect-stmts.c (get_group_load_store_type): For SLP
20600         loads with a gap larger than the vector size always use
20601         VMAT_STRIDED_SLP.
20602         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20603         avoid loading vectors that are only contained in the gap
20604         and thus are not needed.
20606 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20608         * config/i386/i386.md (*addqi_2_slp): Remove.
20609         (*<code>qi_2_slp): Ditto.
20611 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
20613         * config/rs6000/predicates.md (prefixed_mem_operand): Call
20614         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
20615         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
20616         Rename function from rs6000_prefixed_address.
20617         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20618         TARGET_HAS_TOC.
20619         (TARGET_TOC): Likewise.
20620         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20621         rs6000.h.
20622         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20623         TARGET_HAS_TOC.
20624         (TARGET_TOC): Likewise.
20625         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20626         rs6000.h.
20627         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20628         TARGET_HAS_TOC.
20629         (TARGET_TOC): Likewise.
20630         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20631         check to require -mcmodel=medium for pc-relative addressing.
20632         (create_TOC_reference): Add assertion for TARGET_TOC.
20633         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
20634         TARGET_NO_TOC.
20635         (rs6000_emit_move): Likewise.
20636         (TOC_alias_set): Rename TOC alias set static variable from 'set'
20637         to 'TOC_alias_set'.
20638         (get_TOC_alias_set): Likewise.
20639         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
20640         TARGET_NO_TOC.
20641         (rs6000_can_eliminate): Likewise.
20642         (rs6000_prefixed_address_mode_p): Rename function from
20643         rs6000_prefixed_address.
20644         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
20645         TARGET_HAS_TOC and not pc-relative.
20646         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
20647         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20648         TARGET_HAS_TOC.
20649         (TARGET_TOC): Likewise.
20650         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20651         rs6000.h.
20653 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20655         PR target/91188
20656         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
20657         for operand 0.  Do not use (match_dup) to match operand 1 with
20658         operand 0.  Add check in insn constraint that either input operand
20659         matches operand 0.  Use SWI12 mode iterator to also handle
20660         HImode operands.
20661         (*and<mode>_1_slp): Ditto.
20662         (*<code>qi_1_slp): Ditto.
20663         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
20664         Do not use (match_dup) to match operand 1 with operand 0.  Add
20665         check in insn constraint that operand 1 matches operand 0.
20666         Use SWI12 mode iterator to also handle HImode operands.
20667         (*ashl<mode>3_1_slp): Ditto.
20668         (*<shift_insn><mode>3_1_slp): Ditto.
20669         (*<rotate_insn><mode>3_1_slp): Ditto.
20671 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20673         * config/arm/arm-builtins.c
20674         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
20675         (arm_expand_unop_builtin): Likewise.
20676         * config/arm/crypto.md
20677         (crypto_sha1h): Convert from define_insn to define_expand.
20678         (crypto_<crypto_pattern>): Likewise.
20679         (crypto_sha1h_lb): New define_insn.
20680         (crypto_<crypto_pattern>_lb): Likewise.
20682 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
20684         PR target/90317
20685         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
20686         (vsha1cq_u32): Likewise.
20687         (vsha1pq_u32): Likewise.
20688         (vsha1mq_u32): Likewise.
20689         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
20690         vec select.
20691         (crypto_sha1c): Correct vec select.
20692         (crypto_sha1m): Likewise.
20693         (crypto_sha1p): Likewise.
20695 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
20697         * config/arm/predicates.md (arm_borrow_operation): New predicate.
20698         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
20699         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
20700         (subdi_zesidi_zesidi): Likewise.
20701         (negdi2_compare, negdi2_insn): Likewise.
20702         (negdi_extensidi): Likewise.
20703         (negdi_zero_extendsidi): Likewise.
20704         (arm_cmpdi_insn): Likewise.
20705         (subsi3_carryin): Use arm_borrow_operation.
20706         (subsi3_carryin_const): Likewise.
20707         (subsi3_carryin_const0): Likewise.
20708         (subsi3_carryin_compare): Likewise.
20709         (subsi3_carryin_compare_const): Likewise.
20710         (subsi3_carryin_compare_const0): Likewise.
20711         (subsi3_carryin_shift): Likewise.
20712         (rsbsi3_carryin_shift): Likewise.
20713         (negsi2_carryin_compare): Likewise.
20715 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
20717         PR tree-optimization/91137
20718         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
20719         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
20720         Init, use and fini the above new field.
20721         (determine_base_object_1): New function.
20722         (determine_base_object): Reimplement using walk_tree.
20724 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
20726         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
20727         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
20728         CLEANUP_FORCE_FAST_DCE is set.
20729         * ifcvt.c (rest_of_handle_if_conversion): Pass
20730         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
20731         if-conversion succeeded.
20733 2019-07-18  Richard Biener  <rguenther@suse.de>
20735         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
20736         branches to make code less indented.
20738 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
20740         PR middle-end/81824
20741         * attribs.c (decls_mismatched_attributes): Simplify the logic
20742         that avoids duplicates and false positives.
20744 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
20746         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
20747         data into data section when generating PIC code.
20748         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
20749         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
20750         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
20751         return 2 for SOM and 0 for other targets.
20753 2019-07-17  Jeff Law  <law@redhat.com>
20755         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
20756         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
20757         avoid unexpected switch statement fallthru.
20759 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20761         * config/i386/i386.md (*add<dwi>3_doubleword):
20762         Remove redundant constraints.
20763         (*add<mode>_1): Ditto.
20764         (*addhi_1): Ditto.
20765         (*addqi_1): Ditto.
20766         (*addqi_1_slp): Ditto.
20767         (*add<mode>_2): Ditto.
20768         (*addv<mode>4): Ditto.
20769         (*sub<dwi>3_doubleword): Ditto.
20770         (*sub<mode>_1): Ditto.
20771         (*subqi_1_slp): Ditto.
20772         (*sub<mode>_2): Ditto.
20773         (*subv<mode>4): Ditto.
20774         (*sub<mode>_3): Ditto.
20775         (@add<mode>3_carry): Ditto.
20776         (@sub<mode>3_carry): Ditto.
20777         (*add<mode>3_cc_overflow_1): Ditto.
20778         (*add<mode>3_zext_cc_overflow_2): Ditto.
20779         (*anddi_1): Ditto.
20780         (*and<mode>_1): Ditto.
20781         (*andqi_1): Ditto.
20782         (*andqi_1_slp): Ditto.
20783         (*anddi_2): Ditto.
20784         (*andqi_2_maybe_si): Ditto.
20785         (*and<mode>_2): Ditto.
20786         (*andqi_2_slp): Ditto.
20787         (*<code><mode>_1): Ditto.
20788         (*<code>qi_1): Ditto.
20789         (*<code>qi_1_slp): Ditto.
20790         (*<code><mode>_2): Ditto.
20791         (*<code>qi_2_slp): Ditto.
20793 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
20795         * alias.c (record_component_aliases): Do not simplify pointed-to
20796         types of ODR types.
20798 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20800         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
20801         partial reg stall on alternative 2.
20803 2019-07-17  Richard Biener  <rguenther@suse.de>
20805         PR tree-optimization/91178
20806         * tree-ssa.c (release_defs_bitset): Iterate from higher to
20807         lower SSA names to avoid quadratic behavior in the common case.
20808         * tree-data-ref.c (split_constant_offset): Add limit argument
20809         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20810         (split_constant_offset_1): Add limit argument and use it to
20811         limit SSA def walking.  Optimize the common plus/minus case.
20813 2019-07-17  Richard Biener  <rguenther@suse.de>
20815         PR tree-optimization/91178
20816         * tree-vect-stmts.c (get_group_load_store_type): For SLP
20817         loads with a gap larger than the vector size always use
20818         VMAT_STRIDED_SLP.
20819         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20820         avoid loading vectors that are only contained in the gap
20821         and thus are not needed.
20823 2019-07-17  Richard Biener  <rguenther@suse.de>
20825         PR tree-optimization/91180
20826         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20827         computation for memset partial defs.
20829 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
20831         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20832         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20833         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20834         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20835         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20836         * omp-grid.c (grid_process_grid_body,
20837         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20838         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20839         == GF_OMP_FOR_KIND_SIMD.
20840         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20841         check_omp_nesting_restrictions, scan_omp_1_stmt,
20842         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20843         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20844         omp_find_scan): Likewise.
20845         * omp-expand.c (expand_omp_for): Likewise.
20846         * omp-general.c (omp_extract_for_data): Likewise.
20848         PR tree-optimization/91157
20849         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20850         a vector boolean with scalar mode.
20851         (expand_vector_condition): Handle first operand being a vector boolean
20852         with scalar mode.
20853         (expand_vector_operations_1): For comparisons, don't bail out early
20854         if the return type is vector boolean with scalar mode, but comparison
20855         operand type is not.
20857 2019-07-17  Richard Biener  <rguenther@suse.de>
20859         PR tree-optimization/91181
20860         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20861         IFN_LOADs as calls.
20863 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20865         * config/i386/i386.md (*testdi_1): Match CCZmode for
20866         constants that might have the SImode sign bit set.
20867         (*testqi_1_maybe_si): Remove "!" constraint modifier.
20868         Use correct constraints for pentium pairing.
20869         (*test<mode>_1): Ditto.
20871 2019-07-16  Jeff Law  <law@redhat.com>
20873         PR rtl-optimization/91173
20874         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20875         SSA_NAME with a constant value, fold its value into the offset
20876         and clear the base before calling gen_addr_rtx.
20878 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
20880         PR rtl-optimization/91164
20881         * dse.c (rest_of_handle_dse): If dead edges have been purged,
20882         invalidate dominance info.
20884 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20886         * read-md.h (md_reader::record_potential_iterator_use): Add a
20887         file_location parameter.
20888         * read-rtl.c (attribute_use::loc): New field.
20889         (map_attr_string): Take a file_location parameter.  Report cases
20890         in which attributes map to multiple distinct values.
20891         (apply_attribute_uses): Update call accordingly.
20892         (md_reader::handle_overloaded_name): Likewise.
20893         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
20894         nonnull strings.
20895         (record_attribute_use): Take a file_location parameter.
20896         Initialize attribute_use::loc.
20897         (md_reader::record_potential_iterator_use): Take a file_location
20898         parameter.  Update call to record_attribute_use.
20899         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20900         (rtx_reader::read_rtx_code): Likewise.
20901         (rtx_reader::read_rtx_operand): Likewise.  Record a location
20902         for implicitly-expanded empty strings.
20904 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20906         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20907         Use file_location instead of separate fields.
20908         (md_reader::set_md_ptr_loc): Take a file_location instead of a
20909         separate filename and line number.
20910         * read-md.c (ptr_loc): As above.
20911         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20912         (md_reader::fprint_md_ptr_loc): Likewise.
20913         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
20914         instead of a separate filename and line number.
20915         (md_reader::read_string): Update call accordingly.
20917 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20919         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20920         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20921         leaving the choice between SFDF and P implicit.
20922         (*mov<mode>_update2): Likewise.
20923         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20924         rather than leaving the choice betweem IBM128 and GPR implicit.
20925         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20926         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20927         QHSI implicit.
20928         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20929         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20930         * config/rs6000/vsx.md
20931         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20932         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20933         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20934         and VSX_EXTRACT_I implicit.
20936 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20938         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20939         Explicitly use <MOVEP1:MODE> for the mode attribute.
20941 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
20943         PR bootstrap/91176
20944         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20946 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
20948         PR target/91050
20949         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20950         .machine directive.
20952 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20954         * config/i386/i386.md (@test<mode>_ccno_1):
20955         Rename from test<mode>_ccno_1.
20956         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
20957         (*testqi_1_maybe_si): Remove modrm attribute.
20958         (*test<mode>_1): Ditto.
20959         * config/i386/i386-expand.c (ix86_split_idivmod): Use
20960         gen_test_ccno_1 and gen_extend_insn.
20962 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
20964         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20965         to 0.
20967 2019-07-15  Richard Biener  <rguenther@suse.de>
20969         PR middle-end/91162
20970         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20971         node make sure to replace all uses with something valid.
20973 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
20975         PR tree-optimization/88497
20976         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20977         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20978         function undistribute_bitref_for_vector.
20979         (undistribute_bitref_for_vector): New function.
20980         (cleanup_vinfo_map): Likewise.
20981         (sort_by_mach_mode): Likewise.
20983 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20985         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20986         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20987         and testdi_ccno_1 using SWI48 mode attribute.
20988         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20989         x86_64_szext_general_operand.
20990         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20991         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20992         instead of genera_operand mode attribute.
20994 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
20996         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20997         fopen and fclose to their respective types.
20998         (DotFn.invoke): Ditto.
21000 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
21002         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
21003         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
21004         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
21005         (array_index_predicate): Remove.
21006         (analyze_function_body): Account cost for variable ofsetted array
21007         indexing.
21008         (estimate_node_size_and_time): Do not compute array index hint.
21009         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
21010         (inline_read_section): Do not read array index hint.
21011         (ipa_fn_summary_write): Do not write array index hint.
21012         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
21013         * ipa-cp.c (hint_time_bonus): Remove.
21014         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
21015         (ipa_fnsummary): Remove array_index.
21016         * ipa-inline.c (want_inline_small_function_p): Do not use
21017         array_index.
21018         (edge_badness): Likewise.
21019         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
21021 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
21023         PR target/91148
21024         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
21025         superfluous "builtin function" phrasing.
21027 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
21029         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
21030         Break out from ...
21031         (aliasing_component_refs_walk): Break out from ...
21032         (aliasing_component_refs_p): ... here.
21034 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
21036         PR target/91148
21037         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
21038         "builtin function" phrasing.
21040 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21042         PR target/90723
21043         * recog.h (temporary_volatile_ok): New class.
21044         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
21045         volatile_ok temporarily to true using temporary_volatile_ok.
21046         * expr.c (emit_block_move_via_cpymem): Likewise.
21047         * optabs.c (maybe_legitimize_operand): Likewise.
21049 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
21051         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
21052         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
21053         uses inside of order(concurrent) constructs.
21054         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
21055         OMP_CLAUSE_ORDER is seen.
21056         * omp-low.c (struct omp_context): Add order_concurrent member.
21057         (scan_sharing_clauses): Set ctx->order_concurrent if
21058         OMP_CLAUSE_ORDER is seen.
21059         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
21060         of simd order(concurrent).  Diagnose constructs not allowed inside of
21061         for order(concurrent).
21062         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
21063         complaining about static double setjmp (double); or class static
21064         methods or non-global namespace setjmps.
21065         (omp_runtime_api_call): New function.
21066         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
21067         order(concurrent) loops.
21069 2019-07-12  Martin Sebor  <msebor@redhat.com>
21071         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
21072         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
21073         * tree-vrp.c (vrp_prop::check_mem_ref): Use
21074         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
21076 2019-07-12  Jan Hubicka  <jh@suse.cz>
21078         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
21079         (indirect_refs_may_alias_p): ... here.
21080         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
21081         mem refs in the access paths.
21083 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
21085         PR tree-optimization/89430
21086         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
21087         store elimination for local variable without address escape.
21089 2019-07-12  Jeff Law  <law@redhat.com>
21091         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
21092         for the ".far" section.
21094 2019-07-12  Richard Biener  <rguenther@suse.de>
21096         PR tree-optimization/91145
21097         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
21098         chain check.
21100 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
21102         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
21103         rather than this_state as the lowering context for the ELSE
21104         seq in a GIMPLE_EH_ELSE.
21106 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
21108         * vector-builder.h (vector_builder::elt): Allow already-supplied
21109         elements to be read back before building is complete.
21111 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
21113         PR rtl-optimization/91136
21114         * df-core.c (ACCESSING REFS): Fix typos in comment.
21115         * resource.c (mark_target_live_reg): Add artificial defs that occur at
21116         the beginning of the block to the initial set of live registers.
21118 2019-07-12  Richard Biener  <rguenther@suse.de>
21120         * fold-const.h (get_array_ctor_element_at_index): Adjust.
21121         * fold-const.c (get_array_ctor_element_at_index): Add
21122         ctor_idx output parameter informing the caller where in
21123         the constructor the element was (not) found.  Add early exit
21124         for when the ctor is sorted.
21125         * gimple-fold.c (fold_array_ctor_reference): Support constant
21126         folding across multiple array elements.
21128 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
21130         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
21131         doesn't have location, set the current location to the function's end.
21133 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
21135         * config/aarch64/aarch64.md (*compare_condjump<mode>)
21136         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
21137         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
21138         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
21139         * config/aarch64/aarch64-simd.md
21140         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
21141         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
21142         * config/aarch64/aarch64-sve.md
21143         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
21144         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
21146 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
21148         * doc/md.texi: Document that @ patterns can have different
21149         numbers of operands.
21150         * genemit.c (handle_overloaded_gen): Handle this case.
21151         * genopinit.c (handle_overloaded_gen): Likewise.
21152         * gensupport.c (replace_operands_with_dups): Iterate over
21153         the new rtx's format rather than the old one's.
21155 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
21157         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
21158         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21159         order clause entries.
21160         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
21161         * tree-pretty-print.c (dump_omp_clause): Likewise.
21162         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
21163         Likewise.
21164         * omp-low.c (scan_sharing_clauses): Likewise.
21165         * tree-nested.c (convert_nonlocal_omp_clauses,
21166         convert_local_omp_clauses): Likewise.
21168 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
21170         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
21171         fallthrough target of current basic block isn't the placed
21172         right next.
21174 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
21176         PR target/90980
21177         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
21178         (_mm512_storeu_epi64): Likewise.
21179         (_mm512_loadu_epi32): Likewise.
21180         (_mm512_storeu_epi32): Likewise.
21181         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
21182         (_mm_storeu_epi64): Likewise.
21183         (_mm256_storeu_epi32): Likewise.
21184         (_mm_storeu_epi32): Likewise.
21186 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
21188         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
21190 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
21192         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
21193         Handle Modula-2.
21195 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
21197         PR target/91124
21198         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
21199         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
21200         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
21201         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
21202         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
21203         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
21204         define_insns.
21205         (ufix_truncv2dfv2si2<mask_name>): Change into ...
21206         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
21207         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
21208         define_insns.
21209         (sse2_cvttpd2dq<mask_name>): Change into ...
21210         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
21211         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
21212         (*sse2_cvtpd2dq<mask_name>): Change into ...
21213         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
21214         Add "C" constraint to const0_operand.
21215         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
21216         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
21217         changes.
21219         PR target/91124
21220         * config/i386/i386-builtin-types.def
21221         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
21222         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
21223         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
21224         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
21225         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
21226         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
21227         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
21228         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
21229         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
21230         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
21231         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
21232         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
21233         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
21234         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
21235         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
21236         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
21237         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
21238         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
21239         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
21240         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
21241         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
21242         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
21243         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
21244         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
21245         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
21246         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
21247         __builtin_ia32_vpdpbusd_v4si_maskz,
21248         __builtin_ia32_vpdpbusds_v16si_mask,
21249         __builtin_ia32_vpdpbusds_v16si_maskz,
21250         __builtin_ia32_vpdpbusds_v8si_mask,
21251         __builtin_ia32_vpdpbusds_v8si_maskz,
21252         __builtin_ia32_vpdpbusds_v4si_mask,
21253         __builtin_ia32_vpdpbusds_v4si_maskz,
21254         __builtin_ia32_vpdpwssd_v16si_mask,
21255         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
21256         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
21257         __builtin_ia32_vpdpwssd_v4si_maskz,
21258         __builtin_ia32_vpdpwssds_v16si_mask,
21259         __builtin_ia32_vpdpwssds_v16si_maskz,
21260         __builtin_ia32_vpdpwssds_v8si_mask,
21261         __builtin_ia32_vpdpwssds_v8si_maskz,
21262         __builtin_ia32_vpdpwssds_v4si_mask,
21263         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
21264         suffixed types rather than *_INT.
21265         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
21266         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
21267         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
21268         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
21269         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
21270         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
21272 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
21274         * tree-vrp.c (intersect_ranges): If we know the intersection is
21275         empty, there is no need to conservatively add anything else to
21276         the set.
21278 2019-07-11  Richard Biener  <rguenther@suse.de>
21280         PR middle-end/91131
21281         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
21282         when the object is volatile and we have not cleared it even though
21283         there are no nonzero elements.
21285 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
21287         * config/rs6000/predicates.md (cint34_operand): Update
21288         SIGNED_34BIT_OFFSET_P call.
21289         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
21290         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
21291         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
21292         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
21293         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
21294         argument.
21295         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
21296         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
21297         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
21298         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
21299         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
21301 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
21303         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
21304         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
21305         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
21306         (DEF_MIN_OSX_VERSION): New.
21308 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
21310         * fold-const.c (fold_relational_const): Fix folding of
21311         vector-to-scalar NE_EXPRs.
21312         (test_vector_folding): Add more tests.
21314 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
21316         PR target/91060
21317         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
21318         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
21319         (vec_setv2di_internal): Reexpress as...
21320         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
21321         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
21322         rather than gen_neon_vset_lane<mode>.
21324 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21326         PR target/91102
21327         * lra-constraints.c (process_alt_operands): Don't match user
21328         defined regs only if they are early clobbers.
21330 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
21332         * wide-int.h (wi::lshift): Reject negative values for the fast path.
21334 2019-07-10  Richard Biener  <rguenther@suse.de>
21336         PR tree-optimization/91126
21337         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
21338         native encoding offset for BYTES_BIG_ENDIAN.
21339         (vn_reference_lookup_3): Likewise.
21341 2019-07-10  Richard Biener  <rguenther@suse.de>
21343         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
21344         LHS whenever possible.
21346 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
21348         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
21349         from ...; work also on duplicated types.
21350         (nonoverlapping_component_refs_since_match): ... here
21351         (ncr_type_uid): Break out from ...
21352         (ncr_compar): ... here; look for TYPE_UID of canonical type if
21353         available.
21354         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
21355         the types and nonoverlapping_component_refs_p_1 to disambiguate.
21357 2019-07-09  Martin Sebor  <msebor@redhat.com>
21359         PR tree-optimization/90989
21360         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
21361         optimization to just single character stores.
21363 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
21365         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
21366         Swap operands only once.
21368 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
21370         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
21371         for both call instructions.
21373 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
21375         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
21376         rather than GET_MODE_BITSIZE to better handle partial integer modes.
21378 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
21380         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
21381         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
21382         function from rs6000-logue.c back to rs6000.c.
21383         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
21385 2019-07-09  Martin Sebor  <msebor@redhat.com>
21387         PR c++/61339
21388         * auto-profile.c: Change class-key of PODs to struct and others
21389         to class.
21390         * basic-block.h: Same.
21391         * bitmap.c (bitmap_alloc): Same.
21392         * bitmap.h: Same.
21393         * builtins.c (expand_builtin_prefetch): Same.
21394         (expand_builtin_interclass_mathfn): Same.
21395         (expand_builtin_strlen): Same.
21396         (expand_builtin_mempcpy_args): Same.
21397         (expand_cmpstr): Same.
21398         (expand_builtin___clear_cache): Same.
21399         (expand_ifn_atomic_bit_test_and): Same.
21400         (expand_builtin_thread_pointer): Same.
21401         (expand_builtin_set_thread_pointer): Same.
21402         * caller-save.c (setup_save_areas): Same.
21403         (replace_reg_with_saved_mem): Same.
21404         (insert_restore): Same.
21405         (insert_save): Same.
21406         (add_used_regs): Same.
21407         * cfg.c (get_bb_copy): Same.
21408         (set_loop_copy): Same.
21409         * cfg.h: Same.
21410         * cfganal.h: Same.
21411         * cfgexpand.c (alloc_stack_frame_space): Same.
21412         (add_stack_var): Same.
21413         (add_stack_var_conflict): Same.
21414         (add_scope_conflicts_1): Same.
21415         (update_alias_info_with_stack_vars): Same.
21416         (expand_used_vars): Same.
21417         * cfghooks.c (redirect_edge_and_branch_force): Same.
21418         (delete_basic_block): Same.
21419         (split_edge): Same.
21420         (make_forwarder_block): Same.
21421         (force_nonfallthru): Same.
21422         (duplicate_block): Same.
21423         (lv_flush_pending_stmts): Same.
21424         * cfghooks.h: Same.
21425         * cfgloop.c (flow_loops_cfg_dump): Same.
21426         (flow_loop_nested_p): Same.
21427         (superloop_at_depth): Same.
21428         (get_loop_latch_edges): Same.
21429         (flow_loop_dump): Same.
21430         (flow_loops_dump): Same.
21431         (flow_loops_free): Same.
21432         (flow_loop_nodes_find): Same.
21433         (establish_preds): Same.
21434         (flow_loop_tree_node_add): Same.
21435         (flow_loop_tree_node_remove): Same.
21436         (flow_loops_find): Same.
21437         (find_subloop_latch_edge_by_profile): Same.
21438         (find_subloop_latch_edge_by_ivs): Same.
21439         (mfb_redirect_edges_in_set): Same.
21440         (form_subloop): Same.
21441         (merge_latch_edges): Same.
21442         (disambiguate_multiple_latches): Same.
21443         (disambiguate_loops_with_multiple_latches): Same.
21444         (flow_bb_inside_loop_p): Same.
21445         (glb_enum_p): Same.
21446         (get_loop_body_with_size): Same.
21447         (get_loop_body): Same.
21448         (fill_sons_in_loop): Same.
21449         (get_loop_body_in_dom_order): Same.
21450         (get_loop_body_in_custom_order): Same.
21451         (release_recorded_exits): Same.
21452         (get_loop_exit_edges): Same.
21453         (num_loop_branches): Same.
21454         (remove_bb_from_loops): Same.
21455         (find_common_loop): Same.
21456         (delete_loop): Same.
21457         (cancel_loop): Same.
21458         (verify_loop_structure): Same.
21459         (loop_preheader_edge): Same.
21460         (loop_exit_edge_p): Same.
21461         (single_exit): Same.
21462         (loop_exits_to_bb_p): Same.
21463         (loop_exits_from_bb_p): Same.
21464         (get_loop_location): Same.
21465         (record_niter_bound): Same.
21466         (get_estimated_loop_iterations_int): Same.
21467         (max_stmt_executions_int): Same.
21468         (likely_max_stmt_executions_int): Same.
21469         (get_estimated_loop_iterations): Same.
21470         (get_max_loop_iterations): Same.
21471         (get_max_loop_iterations_int): Same.
21472         (get_likely_max_loop_iterations): Same.
21473         * cfgloop.h (simple_loop_desc): Same.
21474         (get_loop): Same.
21475         (loop_depth): Same.
21476         (loop_outer): Same.
21477         (loop_iterator::next): Same.
21478         (loop_outermost): Same.
21479         * cfgloopanal.c (mark_irreducible_loops): Same.
21480         (num_loop_insns): Same.
21481         (average_num_loop_insns): Same.
21482         (expected_loop_iterations_unbounded): Same.
21483         (expected_loop_iterations): Same.
21484         (mark_loop_exit_edges): Same.
21485         (single_likely_exit): Same.
21486         * cfgloopmanip.c (fix_bb_placement): Same.
21487         (fix_bb_placements): Same.
21488         (remove_path): Same.
21489         (place_new_loop): Same.
21490         (add_loop): Same.
21491         (scale_loop_frequencies): Same.
21492         (scale_loop_profile): Same.
21493         (create_empty_if_region_on_edge): Same.
21494         (create_empty_loop_on_edge): Same.
21495         (loopify): Same.
21496         (unloop): Same.
21497         (fix_loop_placements): Same.
21498         (copy_loop_info): Same.
21499         (duplicate_loop): Same.
21500         (duplicate_subloops): Same.
21501         (loop_redirect_edge): Same.
21502         (can_duplicate_loop_p): Same.
21503         (duplicate_loop_to_header_edge): Same.
21504         (mfb_keep_just): Same.
21505         (has_preds_from_loop): Same.
21506         (create_preheader): Same.
21507         (create_preheaders): Same.
21508         (lv_adjust_loop_entry_edge): Same.
21509         (loop_version): Same.
21510         * cfgloopmanip.h: Same.
21511         * cgraph.h: Same.
21512         * cgraphbuild.c: Same.
21513         * combine.c (make_extraction): Same.
21514         * config/i386/i386-features.c: Same.
21515         * config/i386/i386-features.h: Same.
21516         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
21517         (ix86_emit_outlined_ms2sysv_restore): Same.
21518         (ix86_noce_conversion_profitable_p): Same.
21519         (ix86_init_cost): Same.
21520         (ix86_simd_clone_usable): Same.
21521         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
21522         Wstruct-not-pod.
21523         * coretypes.h: Same.
21524         * data-streamer-in.c (string_for_index): Change class-key of PODs
21525         to struct and others to class.
21526         (streamer_read_indexed_string): Same.
21527         (streamer_read_string): Same.
21528         (bp_unpack_indexed_string): Same.
21529         (bp_unpack_string): Same.
21530         (streamer_read_uhwi): Same.
21531         (streamer_read_hwi): Same.
21532         (streamer_read_gcov_count): Same.
21533         (streamer_read_wide_int): Same.
21534         * data-streamer.h (streamer_write_bitpack): Same.
21535         (bp_unpack_value): Same.
21536         (streamer_write_char_stream): Same.
21537         (streamer_write_hwi_in_range): Same.
21538         (streamer_write_record_start): Same.
21539         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
21540         (add_cross_iteration_register_deps): Same.
21541         (build_intra_loop_deps): Same.
21542         * df-core.c (df_analyze): Same.
21543         (loop_post_order_compute): Same.
21544         (loop_inverted_post_order_compute): Same.
21545         * df-problems.c (df_rd_alloc): Same.
21546         (df_rd_simulate_one_insn): Same.
21547         (df_rd_local_compute): Same.
21548         (df_rd_init_solution): Same.
21549         (df_rd_confluence_n): Same.
21550         (df_rd_transfer_function): Same.
21551         (df_rd_free): Same.
21552         (df_rd_dump_defs_set): Same.
21553         (df_rd_top_dump): Same.
21554         (df_lr_alloc): Same.
21555         (df_lr_reset): Same.
21556         (df_lr_local_compute): Same.
21557         (df_lr_init): Same.
21558         (df_lr_confluence_n): Same.
21559         (df_lr_free): Same.
21560         (df_lr_top_dump): Same.
21561         (df_lr_verify_transfer_functions): Same.
21562         (df_live_alloc): Same.
21563         (df_live_reset): Same.
21564         (df_live_init): Same.
21565         (df_live_confluence_n): Same.
21566         (df_live_finalize): Same.
21567         (df_live_free): Same.
21568         (df_live_top_dump): Same.
21569         (df_live_verify_transfer_functions): Same.
21570         (df_mir_alloc): Same.
21571         (df_mir_reset): Same.
21572         (df_mir_init): Same.
21573         (df_mir_confluence_n): Same.
21574         (df_mir_free): Same.
21575         (df_mir_top_dump): Same.
21576         (df_word_lr_alloc): Same.
21577         (df_word_lr_reset): Same.
21578         (df_word_lr_init): Same.
21579         (df_word_lr_confluence_n): Same.
21580         (df_word_lr_free): Same.
21581         (df_word_lr_top_dump): Same.
21582         (df_md_alloc): Same.
21583         (df_md_simulate_one_insn): Same.
21584         (df_md_reset): Same.
21585         (df_md_init): Same.
21586         (df_md_free): Same.
21587         (df_md_top_dump): Same.
21588         * df-scan.c (df_insn_delete): Same.
21589         (df_insn_rescan): Same.
21590         (df_notes_rescan): Same.
21591         (df_sort_and_compress_mws): Same.
21592         (df_install_mws): Same.
21593         (df_refs_add_to_chains): Same.
21594         (df_ref_create_structure): Same.
21595         (df_ref_record): Same.
21596         (df_def_record_1): Same.
21597         (df_find_hard_reg_defs): Same.
21598         (df_uses_record): Same.
21599         (df_get_conditional_uses): Same.
21600         (df_get_call_refs): Same.
21601         (df_recompute_luids): Same.
21602         (df_get_entry_block_def_set): Same.
21603         (df_entry_block_defs_collect): Same.
21604         (df_get_exit_block_use_set): Same.
21605         (df_exit_block_uses_collect): Same.
21606         (df_mws_verify): Same.
21607         (df_bb_verify): Same.
21608         * df.h (df_scan_get_bb_info): Same.
21609         * doc/tm.texi: Same.
21610         * dse.c (record_store): Same.
21611         * dumpfile.h: Same.
21612         * emit-rtl.c (const_fixed_hasher::equal): Same.
21613         (set_mem_attributes_minus_bitpos): Same.
21614         (change_address): Same.
21615         (adjust_address_1): Same.
21616         (offset_address): Same.
21617         * emit-rtl.h: Same.
21618         * except.c (dw2_build_landing_pads): Same.
21619         (sjlj_emit_dispatch_table): Same.
21620         * explow.c (allocate_dynamic_stack_space): Same.
21621         (emit_stack_probe): Same.
21622         (probe_stack_range): Same.
21623         * expmed.c (store_bit_field_using_insv): Same.
21624         (store_bit_field_1): Same.
21625         (store_integral_bit_field): Same.
21626         (extract_bit_field_using_extv): Same.
21627         (extract_bit_field_1): Same.
21628         (emit_cstore): Same.
21629         * expr.c (emit_block_move_via_cpymem): Same.
21630         (expand_cmpstrn_or_cmpmem): Same.
21631         (set_storage_via_setmem): Same.
21632         (emit_single_push_insn_1): Same.
21633         (expand_assignment): Same.
21634         (store_constructor): Same.
21635         (expand_expr_real_2): Same.
21636         (expand_expr_real_1): Same.
21637         (try_casesi): Same.
21638         * flags.h: Same.
21639         * function.c (try_fit_stack_local): Same.
21640         (assign_stack_local_1): Same.
21641         (assign_stack_local): Same.
21642         (cut_slot_from_list): Same.
21643         (insert_slot_to_list): Same.
21644         (max_slot_level): Same.
21645         (move_slot_to_level): Same.
21646         (temp_address_hasher::equal): Same.
21647         (remove_unused_temp_slot_addresses): Same.
21648         (assign_temp): Same.
21649         (combine_temp_slots): Same.
21650         (update_temp_slot_address): Same.
21651         (preserve_temp_slots): Same.
21652         * function.h: Same.
21653         * fwprop.c: Same.
21654         * gcc-rich-location.h: Same.
21655         * gcov.c: Same.
21656         * genattrtab.c (check_attr_test): Same.
21657         (check_attr_value): Same.
21658         (convert_set_attr_alternative): Same.
21659         (convert_set_attr): Same.
21660         (check_defs): Same.
21661         (copy_boolean): Same.
21662         (get_attr_value): Same.
21663         (expand_delays): Same.
21664         (make_length_attrs): Same.
21665         (min_fn): Same.
21666         (make_alternative_compare): Same.
21667         (simplify_test_exp): Same.
21668         (tests_attr_p): Same.
21669         (get_attr_order): Same.
21670         (clear_struct_flag): Same.
21671         (gen_attr): Same.
21672         (compares_alternatives_p): Same.
21673         (gen_insn): Same.
21674         (gen_delay): Same.
21675         (find_attrs_to_cache): Same.
21676         (write_test_expr): Same.
21677         (walk_attr_value): Same.
21678         (write_attr_get): Same.
21679         (eliminate_known_true): Same.
21680         (write_insn_cases): Same.
21681         (write_attr_case): Same.
21682         (write_attr_valueq): Same.
21683         (write_attr_value): Same.
21684         (write_dummy_eligible_delay): Same.
21685         (next_comma_elt): Same.
21686         (find_attr): Same.
21687         (make_internal_attr): Same.
21688         (copy_rtx_unchanging): Same.
21689         (gen_insn_reserv): Same.
21690         (check_tune_attr): Same.
21691         (make_automaton_attrs): Same.
21692         (handle_arg): Same.
21693         * genextract.c (gen_insn): Same.
21694         (VEC_char_to_string): Same.
21695         * genmatch.c (print_operand): Same.
21696         (lower): Same.
21697         (parser::parse_operation): Same.
21698         (parser::parse_capture): Same.
21699         (parser::parse_c_expr): Same.
21700         (parser::parse_simplify): Same.
21701         (main): Same.
21702         * genoutput.c (output_operand_data): Same.
21703         (output_get_insn_name): Same.
21704         (compare_operands): Same.
21705         (place_operands): Same.
21706         (process_template): Same.
21707         (validate_insn_alternatives): Same.
21708         (validate_insn_operands): Same.
21709         (gen_expand): Same.
21710         (note_constraint): Same.
21711         * genpreds.c (write_one_predicate_function): Same.
21712         (add_constraint): Same.
21713         (process_define_register_constraint): Same.
21714         (write_lookup_constraint_1): Same.
21715         (write_lookup_constraint_array): Same.
21716         (write_insn_constraint_len): Same.
21717         (write_reg_class_for_constraint_1): Same.
21718         (write_constraint_satisfied_p_array): Same.
21719         * genrecog.c (optimize_subroutine_group): Same.
21720         * gensupport.c (process_define_predicate): Same.
21721         (queue_pattern): Same.
21722         (remove_from_queue): Same.
21723         (process_rtx): Same.
21724         (is_predicable): Same.
21725         (change_subst_attribute): Same.
21726         (subst_pattern_match): Same.
21727         (alter_constraints): Same.
21728         (alter_attrs_for_insn): Same.
21729         (shift_output_template): Same.
21730         (alter_output_for_subst_insn): Same.
21731         (process_one_cond_exec): Same.
21732         (subst_dup): Same.
21733         (process_define_cond_exec): Same.
21734         (mnemonic_htab_callback): Same.
21735         (gen_mnemonic_attr): Same.
21736         (read_md_rtx): Same.
21737         * ggc-page.c: Same.
21738         * gimple-loop-interchange.cc (dump_reduction): Same.
21739         (dump_induction): Same.
21740         (loop_cand::~loop_cand): Same.
21741         (free_data_refs_with_aux): Same.
21742         (tree_loop_interchange::interchange_loops): Same.
21743         (tree_loop_interchange::map_inductions_to_loop): Same.
21744         (tree_loop_interchange::move_code_to_inner_loop): Same.
21745         (compute_access_stride): Same.
21746         (compute_access_strides): Same.
21747         (proper_loop_form_for_interchange): Same.
21748         (tree_loop_interchange_compute_ddrs): Same.
21749         (prune_datarefs_not_in_loop): Same.
21750         (prepare_data_references): Same.
21751         (pass_linterchange::execute): Same.
21752         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
21753         (unroll_jam_possible_p): Same.
21754         (fuse_loops): Same.
21755         (adjust_unroll_factor): Same.
21756         (tree_loop_unroll_and_jam): Same.
21757         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
21758         (loop_versioning::expensive_stmt_p): Same.
21759         (loop_versioning::version_for_unity): Same.
21760         (loop_versioning::dump_inner_likelihood): Same.
21761         (loop_versioning::find_per_loop_multiplication): Same.
21762         (loop_versioning::analyze_term_using_scevs): Same.
21763         (loop_versioning::record_address_fragment): Same.
21764         (loop_versioning::analyze_expr): Same.
21765         (loop_versioning::analyze_blocks): Same.
21766         (loop_versioning::prune_conditions): Same.
21767         (loop_versioning::merge_loop_info): Same.
21768         (loop_versioning::add_loop_to_queue): Same.
21769         (loop_versioning::decide_whether_loop_is_versionable): Same.
21770         (loop_versioning::make_versioning_decisions): Same.
21771         (loop_versioning::implement_versioning_decisions): Same.
21772         * gimple-ssa-evrp-analyze.c
21773         (evrp_range_analyzer::record_ranges_from_phis): Same.
21774         * gimple-ssa-store-merging.c (split_store::split_store): Same.
21775         (count_multiple_uses): Same.
21776         (split_group): Same.
21777         (imm_store_chain_info::output_merged_store): Same.
21778         (pass_store_merging::process_store): Same.
21779         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
21780         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
21781         (is_max): Same.
21782         (alloca_call_type): Same.
21783         (pass_walloca::execute): Same.
21784         * gimple-streamer-in.c (input_phi): Same.
21785         (input_gimple_stmt): Same.
21786         * gimple-streamer.h: Same.
21787         * godump.c (go_force_record_alignment): Same.
21788         (go_format_type): Same.
21789         (go_output_type): Same.
21790         (go_output_fndecl): Same.
21791         (go_output_typedef): Same.
21792         (keyword_hash_init): Same.
21793         (find_dummy_types): Same.
21794         * graph.c (draw_cfg_nodes_no_loops): Same.
21795         (draw_cfg_nodes_for_loop): Same.
21796         * hard-reg-set.h (hard_reg_set_iter_next): Same.
21797         * hsa-brig.c: Same.
21798         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
21799         * hsa-dump.c (dump_hsa_cfun): Same.
21800         * hsa-gen.c (gen_function_def_parameters): Same.
21801         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
21802         * input.c (dump_line_table_statistics): Same.
21803         (test_lexer): Same.
21804         * input.h: Same.
21805         * internal-fn.c (get_multi_vector_move): Same.
21806         (expand_load_lanes_optab_fn): Same.
21807         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21808         (expand_GOMP_SIMT_EXIT): Same.
21809         (expand_GOMP_SIMT_LAST_LANE): Same.
21810         (expand_GOMP_SIMT_ORDERED_PRED): Same.
21811         (expand_GOMP_SIMT_VOTE_ANY): Same.
21812         (expand_GOMP_SIMT_XCHG_BFLY): Same.
21813         (expand_GOMP_SIMT_XCHG_IDX): Same.
21814         (expand_addsub_overflow): Same.
21815         (expand_neg_overflow): Same.
21816         (expand_mul_overflow): Same.
21817         (expand_call_mem_ref): Same.
21818         (expand_mask_load_optab_fn): Same.
21819         (expand_scatter_store_optab_fn): Same.
21820         (expand_gather_load_optab_fn): Same.
21821         * ipa-cp.c (ipa_get_parm_lattices): Same.
21822         (print_all_lattices): Same.
21823         (ignore_edge_p): Same.
21824         (build_toporder_info): Same.
21825         (free_toporder_info): Same.
21826         (push_node_to_stack): Same.
21827         (ipcp_lattice<valtype>::set_contains_variable): Same.
21828         (set_agg_lats_to_bottom): Same.
21829         (ipcp_bits_lattice::meet_with): Same.
21830         (set_single_call_flag): Same.
21831         (initialize_node_lattices): Same.
21832         (ipa_get_jf_ancestor_result): Same.
21833         (ipcp_verify_propagated_values): Same.
21834         (propagate_scalar_across_jump_function): Same.
21835         (propagate_context_across_jump_function): Same.
21836         (propagate_bits_across_jump_function): Same.
21837         (ipa_vr_operation_and_type_effects): Same.
21838         (propagate_vr_across_jump_function): Same.
21839         (set_check_aggs_by_ref): Same.
21840         (set_chain_of_aglats_contains_variable): Same.
21841         (merge_aggregate_lattices): Same.
21842         (agg_pass_through_permissible_p): Same.
21843         (propagate_aggs_across_jump_function): Same.
21844         (call_passes_through_thunk_p): Same.
21845         (propagate_constants_across_call): Same.
21846         (devirtualization_time_bonus): Same.
21847         (good_cloning_opportunity_p): Same.
21848         (context_independent_aggregate_values): Same.
21849         (gather_context_independent_values): Same.
21850         (perform_estimation_of_a_value): Same.
21851         (estimate_local_effects): Same.
21852         (value_topo_info<valtype>::add_val): Same.
21853         (add_all_node_vals_to_toposort): Same.
21854         (value_topo_info<valtype>::propagate_effects): Same.
21855         (ipcp_propagate_stage): Same.
21856         (ipcp_discover_new_direct_edges): Same.
21857         (same_node_or_its_all_contexts_clone_p): Same.
21858         (cgraph_edge_brings_value_p): Same.
21859         (gather_edges_for_value): Same.
21860         (create_specialized_node): Same.
21861         (find_more_scalar_values_for_callers_subset): Same.
21862         (find_more_contexts_for_caller_subset): Same.
21863         (copy_plats_to_inter): Same.
21864         (intersect_aggregates_with_edge): Same.
21865         (find_aggregate_values_for_callers_subset): Same.
21866         (cgraph_edge_brings_all_agg_vals_for_node): Same.
21867         (decide_about_value): Same.
21868         (decide_whether_version_node): Same.
21869         (spread_undeadness): Same.
21870         (identify_dead_nodes): Same.
21871         (ipcp_store_vr_results): Same.
21872         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21873         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21874         (redirect_to_unreachable): Same.
21875         (edge_set_predicate): Same.
21876         (evaluate_conditions_for_known_args): Same.
21877         (evaluate_properties_for_edge): Same.
21878         (ipa_fn_summary_t::duplicate): Same.
21879         (ipa_call_summary_t::duplicate): Same.
21880         (dump_ipa_call_summary): Same.
21881         (ipa_dump_fn_summary): Same.
21882         (eliminated_by_inlining_prob): Same.
21883         (set_cond_stmt_execution_predicate): Same.
21884         (set_switch_stmt_execution_predicate): Same.
21885         (compute_bb_predicates): Same.
21886         (will_be_nonconstant_expr_predicate): Same.
21887         (phi_result_unknown_predicate): Same.
21888         (analyze_function_body): Same.
21889         (compute_fn_summary): Same.
21890         (estimate_edge_devirt_benefit): Same.
21891         (estimate_edge_size_and_time): Same.
21892         (estimate_calls_size_and_time): Same.
21893         (estimate_node_size_and_time): Same.
21894         (remap_edge_change_prob): Same.
21895         (remap_edge_summaries): Same.
21896         (ipa_merge_fn_summary_after_inlining): Same.
21897         (ipa_fn_summary_generate): Same.
21898         (inline_read_section): Same.
21899         (ipa_fn_summary_read): Same.
21900         (ipa_fn_summary_write): Same.
21901         * ipa-fnsummary.h: Same.
21902         * ipa-hsa.c (ipa_hsa_read_section): Same.
21903         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21904         * ipa-icf.c (sem_function::param_used_p): Same.
21905         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21906         * ipa-inline.c (edge_badness): Same.
21907         (inline_small_functions): Same.
21908         * ipa-polymorphic-call.c
21909         (ipa_polymorphic_call_context::stream_out): Same.
21910         * ipa-predicate.c (predicate::remap_after_duplication): Same.
21911         (predicate::remap_after_inlining): Same.
21912         (predicate::stream_out): Same.
21913         * ipa-predicate.h: Same.
21914         * ipa-profile.c (ipa_profile_read_summary): Same.
21915         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21916         (count_formal_params): Same.
21917         (ipa_dump_param): Same.
21918         (ipa_alloc_node_params): Same.
21919         (ipa_print_node_jump_functions_for_edge): Same.
21920         (ipa_print_node_jump_functions): Same.
21921         (ipa_load_from_parm_agg): Same.
21922         (get_ancestor_addr_info): Same.
21923         (ipa_compute_jump_functions_for_edge): Same.
21924         (ipa_analyze_virtual_call_uses): Same.
21925         (ipa_analyze_stmt_uses): Same.
21926         (ipa_analyze_params_uses_in_bb): Same.
21927         (update_jump_functions_after_inlining): Same.
21928         (try_decrement_rdesc_refcount): Same.
21929         (ipa_impossible_devirt_target): Same.
21930         (update_indirect_edges_after_inlining): Same.
21931         (combine_controlled_uses_counters): Same.
21932         (ipa_edge_args_sum_t::duplicate): Same.
21933         (ipa_write_jump_function): Same.
21934         (ipa_write_indirect_edge_info): Same.
21935         (ipa_write_node_info): Same.
21936         (ipa_read_edge_info): Same.
21937         (ipa_prop_read_section): Same.
21938         (read_replacements_section): Same.
21939         * ipa-prop.h (ipa_get_param_count): Same.
21940         (ipa_get_param): Same.
21941         (ipa_get_type): Same.
21942         (ipa_get_param_move_cost): Same.
21943         (ipa_set_param_used): Same.
21944         (ipa_get_controlled_uses): Same.
21945         (ipa_set_controlled_uses): Same.
21946         (ipa_get_cs_argument_count): Same.
21947         * ipa-pure-const.c (analyze_function): Same.
21948         (pure_const_read_summary): Same.
21949         * ipa-ref.h: Same.
21950         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21951         * ipa-split.c (test_nonssa_use): Same.
21952         (dump_split_point): Same.
21953         (dominated_by_forbidden): Same.
21954         (split_part_set_ssa_name_p): Same.
21955         (find_split_points): Same.
21956         * ira-build.c (finish_loop_tree_nodes): Same.
21957         (low_pressure_loop_node_p): Same.
21958         * ira-color.c (ira_reuse_stack_slot): Same.
21959         * ira-int.h: Same.
21960         * ira.c (setup_reg_equiv): Same.
21961         (print_insn_chain): Same.
21962         (ira): Same.
21963         * loop-doloop.c (doloop_condition_get): Same.
21964         (add_test): Same.
21965         (record_reg_sets): Same.
21966         (doloop_optimize): Same.
21967         * loop-init.c (loop_optimizer_init): Same.
21968         (fix_loop_structure): Same.
21969         * loop-invariant.c (merge_identical_invariants): Same.
21970         (compute_always_reached): Same.
21971         (find_exits): Same.
21972         (may_assign_reg_p): Same.
21973         (find_invariants_bb): Same.
21974         (find_invariants_body): Same.
21975         (replace_uses): Same.
21976         (can_move_invariant_reg): Same.
21977         (free_inv_motion_data): Same.
21978         (move_single_loop_invariants): Same.
21979         (change_pressure): Same.
21980         (mark_ref_regs): Same.
21981         (calculate_loop_reg_pressure): Same.
21982         * loop-iv.c (biv_entry_hasher::equal): Same.
21983         (iv_extend_to_rtx_code): Same.
21984         (check_iv_ref_table_size): Same.
21985         (clear_iv_info): Same.
21986         (latch_dominating_def): Same.
21987         (iv_get_reaching_def): Same.
21988         (iv_constant): Same.
21989         (iv_subreg): Same.
21990         (iv_extend): Same.
21991         (iv_neg): Same.
21992         (iv_add): Same.
21993         (iv_mult): Same.
21994         (get_biv_step): Same.
21995         (record_iv): Same.
21996         (analyzed_for_bivness_p): Same.
21997         (record_biv): Same.
21998         (iv_analyze_biv): Same.
21999         (iv_analyze_expr): Same.
22000         (iv_analyze_def): Same.
22001         (iv_analyze_op): Same.
22002         (iv_analyze): Same.
22003         (iv_analyze_result): Same.
22004         (biv_p): Same.
22005         (eliminate_implied_conditions): Same.
22006         (simplify_using_initial_values): Same.
22007         (shorten_into_mode): Same.
22008         (canonicalize_iv_subregs): Same.
22009         (determine_max_iter): Same.
22010         (check_simple_exit): Same.
22011         (find_simple_exit): Same.
22012         (get_simple_loop_desc): Same.
22013         * loop-unroll.c (report_unroll): Same.
22014         (decide_unrolling): Same.
22015         (unroll_loops): Same.
22016         (loop_exit_at_end_p): Same.
22017         (decide_unroll_constant_iterations): Same.
22018         (unroll_loop_constant_iterations): Same.
22019         (compare_and_jump_seq): Same.
22020         (unroll_loop_runtime_iterations): Same.
22021         (decide_unroll_stupid): Same.
22022         (unroll_loop_stupid): Same.
22023         (referenced_in_one_insn_in_loop_p): Same.
22024         (reset_debug_uses_in_loop): Same.
22025         (analyze_iv_to_split_insn): Same.
22026         * lra-eliminations.c (lra_debug_elim_table): Same.
22027         (setup_can_eliminate): Same.
22028         (form_sum): Same.
22029         (lra_get_elimination_hard_regno): Same.
22030         (lra_eliminate_regs_1): Same.
22031         (eliminate_regs_in_insn): Same.
22032         (update_reg_eliminate): Same.
22033         (init_elimination): Same.
22034         (lra_eliminate): Same.
22035         * lra-int.h: Same.
22036         * lra-lives.c (initiate_live_solver): Same.
22037         * lra-remat.c (create_remat_bb_data): Same.
22038         * lra-spills.c (lra_spill): Same.
22039         * lra.c (lra_set_insn_recog_data): Same.
22040         (lra_set_used_insn_alternative_by_uid): Same.
22041         (init_reg_info): Same.
22042         (expand_reg_info): Same.
22043         * lto-cgraph.c (output_symtab): Same.
22044         (read_identifier): Same.
22045         (get_alias_symbol): Same.
22046         (input_node): Same.
22047         (input_varpool_node): Same.
22048         (input_ref): Same.
22049         (input_edge): Same.
22050         (input_cgraph_1): Same.
22051         (input_refs): Same.
22052         (input_symtab): Same.
22053         (input_offload_tables): Same.
22054         (output_cgraph_opt_summary): Same.
22055         (input_edge_opt_summary): Same.
22056         (input_cgraph_opt_section): Same.
22057         * lto-section-in.c (lto_free_raw_section_data): Same.
22058         (lto_create_simple_input_block): Same.
22059         (lto_free_function_in_decl_state_for_node): Same.
22060         * lto-streamer-in.c (lto_tag_check_set): Same.
22061         (lto_location_cache::revert_location_cache): Same.
22062         (lto_location_cache::input_location): Same.
22063         (lto_input_location): Same.
22064         (stream_input_location_now): Same.
22065         (lto_input_tree_ref): Same.
22066         (lto_input_eh_catch_list): Same.
22067         (input_eh_region): Same.
22068         (lto_init_eh): Same.
22069         (make_new_block): Same.
22070         (input_cfg): Same.
22071         (fixup_call_stmt_edges): Same.
22072         (input_struct_function_base): Same.
22073         (input_function): Same.
22074         (lto_read_body_or_constructor): Same.
22075         (lto_read_tree_1): Same.
22076         (lto_read_tree): Same.
22077         (lto_input_scc): Same.
22078         (lto_input_tree_1): Same.
22079         (lto_input_toplevel_asms): Same.
22080         (lto_input_mode_table): Same.
22081         (lto_reader_init): Same.
22082         (lto_data_in_create): Same.
22083         * lto-streamer-out.c (output_cfg): Same.
22084         * lto-streamer.h: Same.
22085         * modulo-sched.c (duplicate_insns_of_cycles): Same.
22086         (generate_prolog_epilog): Same.
22087         (mark_loop_unsched): Same.
22088         (dump_insn_location): Same.
22089         (loop_canon_p): Same.
22090         (sms_schedule): Same.
22091         * omp-expand.c (expand_omp_for_ordered_loops): Same.
22092         (expand_omp_for_generic): Same.
22093         (expand_omp_for_static_nochunk): Same.
22094         (expand_omp_for_static_chunk): Same.
22095         (expand_omp_simd): Same.
22096         (expand_omp_taskloop_for_inner): Same.
22097         (expand_oacc_for): Same.
22098         (expand_omp_atomic_pipeline): Same.
22099         (mark_loops_in_oacc_kernels_region): Same.
22100         * omp-offload.c (oacc_xform_loop): Same.
22101         * omp-simd-clone.c (simd_clone_adjust): Same.
22102         * optabs-query.c (get_traditional_extraction_insn): Same.
22103         * optabs.c (expand_vector_broadcast): Same.
22104         (expand_binop_directly): Same.
22105         (expand_twoval_unop): Same.
22106         (expand_twoval_binop): Same.
22107         (expand_unop_direct): Same.
22108         (emit_indirect_jump): Same.
22109         (emit_conditional_move): Same.
22110         (emit_conditional_neg_or_complement): Same.
22111         (emit_conditional_add): Same.
22112         (vector_compare_rtx): Same.
22113         (expand_vec_perm_1): Same.
22114         (expand_vec_perm_const): Same.
22115         (expand_vec_cond_expr): Same.
22116         (expand_vec_series_expr): Same.
22117         (maybe_emit_atomic_exchange): Same.
22118         (maybe_emit_sync_lock_test_and_set): Same.
22119         (expand_atomic_compare_and_swap): Same.
22120         (expand_atomic_load): Same.
22121         (expand_atomic_store): Same.
22122         (maybe_emit_op): Same.
22123         (valid_multiword_target_p): Same.
22124         (create_integer_operand): Same.
22125         (maybe_legitimize_operand_same_code): Same.
22126         (maybe_legitimize_operand): Same.
22127         (create_convert_operand_from_type): Same.
22128         (can_reuse_operands_p): Same.
22129         (maybe_legitimize_operands): Same.
22130         (maybe_gen_insn): Same.
22131         (maybe_expand_insn): Same.
22132         (maybe_expand_jump_insn): Same.
22133         (expand_insn): Same.
22134         * optabs.h (create_expand_operand): Same.
22135         (create_fixed_operand): Same.
22136         (create_output_operand): Same.
22137         (create_input_operand): Same.
22138         (create_convert_operand_to): Same.
22139         (create_convert_operand_from): Same.
22140         * optinfo.h: Same.
22141         * poly-int.h: Same.
22142         * predict.c (optimize_insn_for_speed_p): Same.
22143         (optimize_loop_for_size_p): Same.
22144         (optimize_loop_for_speed_p): Same.
22145         (optimize_loop_nest_for_speed_p): Same.
22146         (get_base_value): Same.
22147         (predicted_by_loop_heuristics_p): Same.
22148         (predict_extra_loop_exits): Same.
22149         (predict_loops): Same.
22150         (predict_paths_for_bb): Same.
22151         (predict_paths_leading_to): Same.
22152         (propagate_freq): Same.
22153         (pass_profile::execute): Same.
22154         * predict.h: Same.
22155         * profile-count.c (profile_count::differs_from_p): Same.
22156         (profile_probability::differs_lot_from_p): Same.
22157         * profile-count.h: Same.
22158         * profile.c (branch_prob): Same.
22159         * regrename.c (free_chain_data): Same.
22160         (mark_conflict): Same.
22161         (create_new_chain): Same.
22162         (merge_overlapping_regs): Same.
22163         (init_rename_info): Same.
22164         (merge_chains): Same.
22165         (regrename_analyze): Same.
22166         (regrename_do_replace): Same.
22167         (scan_rtx_reg): Same.
22168         (record_out_operands): Same.
22169         (build_def_use): Same.
22170         * regrename.h: Same.
22171         * reload.h: Same.
22172         * reload1.c (init_reload): Same.
22173         (maybe_fix_stack_asms): Same.
22174         (copy_reloads): Same.
22175         (count_pseudo): Same.
22176         (count_spilled_pseudo): Same.
22177         (find_reg): Same.
22178         (find_reload_regs): Same.
22179         (select_reload_regs): Same.
22180         (spill_hard_reg): Same.
22181         (fixup_eh_region_note): Same.
22182         (set_reload_reg): Same.
22183         (allocate_reload_reg): Same.
22184         (compute_reload_subreg_offset): Same.
22185         (reload_adjust_reg_for_icode): Same.
22186         (emit_input_reload_insns): Same.
22187         (emit_output_reload_insns): Same.
22188         (do_input_reload): Same.
22189         (inherit_piecemeal_p): Same.
22190         * rtl.h: Same.
22191         * sanopt.c (maybe_get_dominating_check): Same.
22192         (maybe_optimize_ubsan_ptr_ifn): Same.
22193         (can_remove_asan_check): Same.
22194         (maybe_optimize_asan_check_ifn): Same.
22195         (sanopt_optimize_walker): Same.
22196         * sched-deps.c (add_dependence_list): Same.
22197         (chain_to_prev_insn): Same.
22198         (add_insn_mem_dependence): Same.
22199         (create_insn_reg_set): Same.
22200         (maybe_extend_reg_info_p): Same.
22201         (sched_analyze_reg): Same.
22202         (sched_analyze_1): Same.
22203         (get_implicit_reg_pending_clobbers): Same.
22204         (chain_to_prev_insn_p): Same.
22205         (deps_analyze_insn): Same.
22206         (deps_start_bb): Same.
22207         (sched_free_deps): Same.
22208         (init_deps): Same.
22209         (init_deps_reg_last): Same.
22210         (free_deps): Same.
22211         * sched-ebb.c: Same.
22212         * sched-int.h: Same.
22213         * sched-rgn.c (add_branch_dependences): Same.
22214         (concat_insn_mem_list): Same.
22215         (deps_join): Same.
22216         (sched_rgn_compute_dependencies): Same.
22217         * sel-sched-ir.c (reset_target_context): Same.
22218         (copy_deps_context): Same.
22219         (init_id_from_df): Same.
22220         (has_dependence_p): Same.
22221         (change_loops_latches): Same.
22222         (bb_top_order_comparator): Same.
22223         (make_region_from_loop_preheader): Same.
22224         (sel_init_pipelining): Same.
22225         (get_loop_nest_for_rgn): Same.
22226         (make_regions_from_the_rest): Same.
22227         (sel_is_loop_preheader_p): Same.
22228         * sel-sched-ir.h (inner_loop_header_p): Same.
22229         (get_all_loop_exits): Same.
22230         * selftest.h: Same.
22231         * sese.c (sese_build_liveouts): Same.
22232         (sese_insert_phis_for_liveouts): Same.
22233         * sese.h (defined_in_sese_p): Same.
22234         * sreal.c (sreal::stream_out): Same.
22235         * sreal.h: Same.
22236         * streamer-hooks.h: Same.
22237         * target-globals.c (save_target_globals): Same.
22238         * target-globals.h: Same.
22239         * target.def: Same.
22240         * target.h: Same.
22241         * targhooks.c (default_has_ifunc_p): Same.
22242         (default_empty_mask_is_expensive): Same.
22243         (default_init_cost): Same.
22244         * targhooks.h: Same.
22245         * toplev.c: Same.
22246         * tree-affine.c (aff_combination_mult): Same.
22247         (aff_combination_expand): Same.
22248         (aff_combination_constant_multiple_p): Same.
22249         * tree-affine.h: Same.
22250         * tree-cfg.c (build_gimple_cfg): Same.
22251         (replace_loop_annotate_in_block): Same.
22252         (replace_uses_by): Same.
22253         (remove_bb): Same.
22254         (dump_cfg_stats): Same.
22255         (gimple_duplicate_sese_region): Same.
22256         (gimple_duplicate_sese_tail): Same.
22257         (move_block_to_fn): Same.
22258         (replace_block_vars_by_duplicates): Same.
22259         (move_sese_region_to_fn): Same.
22260         (print_loops_bb): Same.
22261         (print_loop): Same.
22262         (print_loops): Same.
22263         (debug): Same.
22264         (debug_loops): Same.
22265         * tree-cfg.h: Same.
22266         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
22267         (chrec_fold_multiply_poly_poly): Same.
22268         (chrec_evaluate): Same.
22269         (chrec_component_in_loop_num): Same.
22270         (reset_evolution_in_loop): Same.
22271         (is_multivariate_chrec): Same.
22272         (chrec_contains_symbols): Same.
22273         (nb_vars_in_chrec): Same.
22274         (chrec_convert_1): Same.
22275         (chrec_convert_aggressive): Same.
22276         * tree-chrec.h: Same.
22277         * tree-core.h: Same.
22278         * tree-data-ref.c (dump_data_dependence_relation): Same.
22279         (canonicalize_base_object_address): Same.
22280         (data_ref_compare_tree): Same.
22281         (prune_runtime_alias_test_list): Same.
22282         (get_segment_min_max): Same.
22283         (create_intersect_range_checks): Same.
22284         (conflict_fn_no_dependence): Same.
22285         (object_address_invariant_in_loop_p): Same.
22286         (analyze_ziv_subscript): Same.
22287         (analyze_siv_subscript_cst_affine): Same.
22288         (analyze_miv_subscript): Same.
22289         (analyze_overlapping_iterations): Same.
22290         (build_classic_dist_vector_1): Same.
22291         (add_other_self_distances): Same.
22292         (same_access_functions): Same.
22293         (build_classic_dir_vector): Same.
22294         (subscript_dependence_tester_1): Same.
22295         (subscript_dependence_tester): Same.
22296         (access_functions_are_affine_or_constant_p): Same.
22297         (get_references_in_stmt): Same.
22298         (loop_nest_has_data_refs): Same.
22299         (graphite_find_data_references_in_stmt): Same.
22300         (find_data_references_in_bb): Same.
22301         (get_base_for_alignment): Same.
22302         (find_loop_nest_1): Same.
22303         (find_loop_nest): Same.
22304         * tree-data-ref.h (dr_alignment): Same.
22305         (ddr_dependence_level): Same.
22306         * tree-if-conv.c (fold_build_cond_expr): Same.
22307         (add_to_predicate_list): Same.
22308         (add_to_dst_predicate_list): Same.
22309         (phi_convertible_by_degenerating_args): Same.
22310         (idx_within_array_bound): Same.
22311         (all_preds_critical_p): Same.
22312         (pred_blocks_visited_p): Same.
22313         (predicate_bbs): Same.
22314         (build_region): Same.
22315         (if_convertible_loop_p_1): Same.
22316         (is_cond_scalar_reduction): Same.
22317         (predicate_scalar_phi): Same.
22318         (remove_conditions_and_labels): Same.
22319         (combine_blocks): Same.
22320         (version_loop_for_if_conversion): Same.
22321         (versionable_outer_loop_p): Same.
22322         (ifcvt_local_dce): Same.
22323         (tree_if_conversion): Same.
22324         (pass_if_conversion::gate): Same.
22325         * tree-if-conv.h: Same.
22326         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
22327         * tree-loop-distribution.c (bb_top_order_cmp): Same.
22328         (free_rdg): Same.
22329         (stmt_has_scalar_dependences_outside_loop): Same.
22330         (copy_loop_before): Same.
22331         (create_bb_after_loop): Same.
22332         (const_with_all_bytes_same): Same.
22333         (generate_memset_builtin): Same.
22334         (generate_memcpy_builtin): Same.
22335         (destroy_loop): Same.
22336         (build_rdg_partition_for_vertex): Same.
22337         (compute_access_range): Same.
22338         (data_ref_segment_size): Same.
22339         (latch_dominated_by_data_ref): Same.
22340         (compute_alias_check_pairs): Same.
22341         (fuse_memset_builtins): Same.
22342         (finalize_partitions): Same.
22343         (find_seed_stmts_for_distribution): Same.
22344         (prepare_perfect_loop_nest): Same.
22345         * tree-parloops.c (lambda_transform_legal_p): Same.
22346         (loop_parallel_p): Same.
22347         (reduc_stmt_res): Same.
22348         (add_field_for_name): Same.
22349         (create_call_for_reduction_1): Same.
22350         (replace_uses_in_bb_by): Same.
22351         (transform_to_exit_first_loop_alt): Same.
22352         (try_transform_to_exit_first_loop_alt): Same.
22353         (transform_to_exit_first_loop): Same.
22354         (num_phis): Same.
22355         (gen_parallel_loop): Same.
22356         (gather_scalar_reductions): Same.
22357         (get_omp_data_i_param): Same.
22358         (try_create_reduction_list): Same.
22359         (oacc_entry_exit_single_gang): Same.
22360         (parallelize_loops): Same.
22361         * tree-pass.h: Same.
22362         * tree-predcom.c (determine_offset): Same.
22363         (last_always_executed_block): Same.
22364         (split_data_refs_to_components): Same.
22365         (suitable_component_p): Same.
22366         (valid_initializer_p): Same.
22367         (find_looparound_phi): Same.
22368         (insert_looparound_copy): Same.
22369         (add_looparound_copies): Same.
22370         (determine_roots_comp): Same.
22371         (predcom_tmp_var): Same.
22372         (initialize_root_vars): Same.
22373         (initialize_root_vars_store_elim_1): Same.
22374         (initialize_root_vars_store_elim_2): Same.
22375         (finalize_eliminated_stores): Same.
22376         (initialize_root_vars_lm): Same.
22377         (remove_stmt): Same.
22378         (determine_unroll_factor): Same.
22379         (execute_pred_commoning_cbck): Same.
22380         (base_names_in_chain_on): Same.
22381         (combine_chains): Same.
22382         (pcom_stmt_dominates_stmt_p): Same.
22383         (try_combine_chains): Same.
22384         (prepare_initializers_chain_store_elim): Same.
22385         (prepare_initializers_chain): Same.
22386         (prepare_initializers): Same.
22387         (prepare_finalizers_chain): Same.
22388         (prepare_finalizers): Same.
22389         (insert_init_seqs): Same.
22390         * tree-scalar-evolution.c (loop_phi_node_p): Same.
22391         (compute_overall_effect_of_inner_loop): Same.
22392         (add_to_evolution_1): Same.
22393         (add_to_evolution): Same.
22394         (follow_ssa_edge_binary): Same.
22395         (follow_ssa_edge_expr): Same.
22396         (backedge_phi_arg_p): Same.
22397         (follow_ssa_edge_in_condition_phi_branch): Same.
22398         (follow_ssa_edge_in_condition_phi): Same.
22399         (follow_ssa_edge_inner_loop_phi): Same.
22400         (follow_ssa_edge): Same.
22401         (analyze_evolution_in_loop): Same.
22402         (analyze_initial_condition): Same.
22403         (interpret_loop_phi): Same.
22404         (interpret_condition_phi): Same.
22405         (interpret_rhs_expr): Same.
22406         (interpret_expr): Same.
22407         (interpret_gimple_assign): Same.
22408         (analyze_scalar_evolution_1): Same.
22409         (analyze_scalar_evolution): Same.
22410         (analyze_scalar_evolution_for_address_of): Same.
22411         (get_instantiated_value_entry): Same.
22412         (loop_closed_phi_def): Same.
22413         (instantiate_scev_name): Same.
22414         (instantiate_scev_poly): Same.
22415         (instantiate_scev_binary): Same.
22416         (instantiate_scev_convert): Same.
22417         (instantiate_scev_not): Same.
22418         (instantiate_scev_r): Same.
22419         (instantiate_scev): Same.
22420         (resolve_mixers): Same.
22421         (initialize_scalar_evolutions_analyzer): Same.
22422         (scev_reset_htab): Same.
22423         (scev_reset): Same.
22424         (derive_simple_iv_with_niters): Same.
22425         (simple_iv_with_niters): Same.
22426         (expression_expensive_p): Same.
22427         (final_value_replacement_loop): Same.
22428         * tree-scalar-evolution.h (block_before_loop): Same.
22429         * tree-ssa-address.h: Same.
22430         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
22431         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
22432         (record_edge_info): Same.
22433         * tree-ssa-live.c (var_map_base_fini): Same.
22434         (remove_unused_locals): Same.
22435         * tree-ssa-live.h: Same.
22436         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
22437         (pass_ch_vect::execute): Same.
22438         (pass_ch::process_loop_p): Same.
22439         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
22440         (movement_possibility): Same.
22441         (outermost_invariant_loop): Same.
22442         (stmt_cost): Same.
22443         (determine_max_movement): Same.
22444         (invariantness_dom_walker::before_dom_children): Same.
22445         (move_computations): Same.
22446         (may_move_till): Same.
22447         (force_move_till_op): Same.
22448         (force_move_till): Same.
22449         (memref_free): Same.
22450         (record_mem_ref_loc): Same.
22451         (set_ref_stored_in_loop): Same.
22452         (mark_ref_stored): Same.
22453         (sort_bbs_in_loop_postorder_cmp): Same.
22454         (sort_locs_in_loop_postorder_cmp): Same.
22455         (analyze_memory_references): Same.
22456         (mem_refs_may_alias_p): Same.
22457         (find_ref_loc_in_loop_cmp): Same.
22458         (rewrite_mem_ref_loc::operator): Same.
22459         (first_mem_ref_loc_1::operator): Same.
22460         (sm_set_flag_if_changed::operator): Same.
22461         (execute_sm_if_changed_flag_set): Same.
22462         (execute_sm): Same.
22463         (hoist_memory_references): Same.
22464         (ref_always_accessed::operator): Same.
22465         (refs_independent_p): Same.
22466         (record_dep_loop): Same.
22467         (ref_indep_loop_p_1): Same.
22468         (ref_indep_loop_p): Same.
22469         (can_sm_ref_p): Same.
22470         (find_refs_for_sm): Same.
22471         (loop_suitable_for_sm): Same.
22472         (store_motion_loop): Same.
22473         (store_motion): Same.
22474         (fill_always_executed_in): Same.
22475         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
22476         (estimated_unrolled_size): Same.
22477         (loop_edge_to_cancel): Same.
22478         (remove_exits_and_undefined_stmts): Same.
22479         (remove_redundant_iv_tests): Same.
22480         (unloop_loops): Same.
22481         (estimated_peeled_sequence_size): Same.
22482         (try_peel_loop): Same.
22483         (canonicalize_loop_induction_variables): Same.
22484         (canonicalize_induction_variables): Same.
22485         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
22486         (name_info): Same.
22487         (stmt_after_inc_pos): Same.
22488         (contains_abnormal_ssa_name_p): Same.
22489         (niter_for_exit): Same.
22490         (find_bivs): Same.
22491         (mark_bivs): Same.
22492         (find_givs_in_bb): Same.
22493         (find_induction_variables): Same.
22494         (find_interesting_uses_cond): Same.
22495         (outermost_invariant_loop_for_expr): Same.
22496         (idx_find_step): Same.
22497         (add_candidate_1): Same.
22498         (add_iv_candidate_derived_from_uses): Same.
22499         (alloc_use_cost_map): Same.
22500         (prepare_decl_rtl): Same.
22501         (generic_predict_doloop_p): Same.
22502         (computation_cost): Same.
22503         (determine_common_wider_type): Same.
22504         (get_computation_aff_1): Same.
22505         (get_use_type): Same.
22506         (determine_group_iv_cost_address): Same.
22507         (iv_period): Same.
22508         (difference_cannot_overflow_p): Same.
22509         (may_eliminate_iv): Same.
22510         (determine_set_costs): Same.
22511         (cheaper_cost_pair): Same.
22512         (compare_cost_pair): Same.
22513         (iv_ca_cand_for_group): Same.
22514         (iv_ca_recount_cost): Same.
22515         (iv_ca_set_remove_invs): Same.
22516         (iv_ca_set_no_cp): Same.
22517         (iv_ca_set_add_invs): Same.
22518         (iv_ca_set_cp): Same.
22519         (iv_ca_add_group): Same.
22520         (iv_ca_cost): Same.
22521         (iv_ca_compare_deps): Same.
22522         (iv_ca_delta_reverse): Same.
22523         (iv_ca_delta_commit): Same.
22524         (iv_ca_cand_used_p): Same.
22525         (iv_ca_delta_free): Same.
22526         (iv_ca_new): Same.
22527         (iv_ca_free): Same.
22528         (iv_ca_dump): Same.
22529         (iv_ca_extend): Same.
22530         (iv_ca_narrow): Same.
22531         (iv_ca_prune): Same.
22532         (cheaper_cost_with_cand): Same.
22533         (iv_ca_replace): Same.
22534         (try_add_cand_for): Same.
22535         (get_initial_solution): Same.
22536         (try_improve_iv_set): Same.
22537         (find_optimal_iv_set_1): Same.
22538         (create_new_iv): Same.
22539         (rewrite_use_compare): Same.
22540         (remove_unused_ivs): Same.
22541         (determine_scaling_factor): Same.
22542         * tree-ssa-loop-ivopts.h: Same.
22543         * tree-ssa-loop-manip.c (create_iv): Same.
22544         (compute_live_loop_exits): Same.
22545         (add_exit_phi): Same.
22546         (add_exit_phis): Same.
22547         (find_uses_to_rename_use): Same.
22548         (find_uses_to_rename_def): Same.
22549         (find_uses_to_rename_in_loop): Same.
22550         (rewrite_into_loop_closed_ssa): Same.
22551         (check_loop_closed_ssa_bb): Same.
22552         (split_loop_exit_edge): Same.
22553         (ip_end_pos): Same.
22554         (ip_normal_pos): Same.
22555         (copy_phi_node_args): Same.
22556         (gimple_duplicate_loop_to_header_edge): Same.
22557         (can_unroll_loop_p): Same.
22558         (determine_exit_conditions): Same.
22559         (scale_dominated_blocks_in_loop): Same.
22560         (niter_for_unrolled_loop): Same.
22561         (tree_transform_and_unroll_loop): Same.
22562         (rewrite_all_phi_nodes_with_iv): Same.
22563         * tree-ssa-loop-manip.h: Same.
22564         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
22565         (number_of_iterations_ne): Same.
22566         (assert_no_overflow_lt): Same.
22567         (assert_loop_rolls_lt): Same.
22568         (number_of_iterations_lt): Same.
22569         (adjust_cond_for_loop_until_wrap): Same.
22570         (tree_simplify_using_condition): Same.
22571         (simplify_using_initial_conditions): Same.
22572         (simplify_using_outer_evolutions): Same.
22573         (loop_only_exit_p): Same.
22574         (ssa_defined_by_minus_one_stmt_p): Same.
22575         (number_of_iterations_popcount): Same.
22576         (number_of_iterations_exit): Same.
22577         (find_loop_niter): Same.
22578         (finite_loop_p): Same.
22579         (chain_of_csts_start): Same.
22580         (get_val_for): Same.
22581         (loop_niter_by_eval): Same.
22582         (derive_constant_upper_bound_ops): Same.
22583         (do_warn_aggressive_loop_optimizations): Same.
22584         (record_estimate): Same.
22585         (get_cst_init_from_scev): Same.
22586         (record_nonwrapping_iv): Same.
22587         (idx_infer_loop_bounds): Same.
22588         (infer_loop_bounds_from_ref): Same.
22589         (infer_loop_bounds_from_array): Same.
22590         (infer_loop_bounds_from_pointer_arith): Same.
22591         (infer_loop_bounds_from_signedness): Same.
22592         (bound_index): Same.
22593         (discover_iteration_bound_by_body_walk): Same.
22594         (maybe_lower_iteration_bound): Same.
22595         (estimate_numbers_of_iterations): Same.
22596         (estimated_loop_iterations): Same.
22597         (estimated_loop_iterations_int): Same.
22598         (max_loop_iterations): Same.
22599         (max_loop_iterations_int): Same.
22600         (likely_max_loop_iterations): Same.
22601         (likely_max_loop_iterations_int): Same.
22602         (estimated_stmt_executions_int): Same.
22603         (max_stmt_executions): Same.
22604         (likely_max_stmt_executions): Same.
22605         (estimated_stmt_executions): Same.
22606         (stmt_dominates_stmt_p): Same.
22607         (nowrap_type_p): Same.
22608         (loop_exits_before_overflow): Same.
22609         (scev_var_range_cant_overflow): Same.
22610         (scev_probably_wraps_p): Same.
22611         (free_numbers_of_iterations_estimates): Same.
22612         * tree-ssa-loop-niter.h: Same.
22613         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
22614         (idx_analyze_ref): Same.
22615         (analyze_ref): Same.
22616         (gather_memory_references_ref): Same.
22617         (mark_nontemporal_store): Same.
22618         (emit_mfence_after_loop): Same.
22619         (may_use_storent_in_loop_p): Same.
22620         (mark_nontemporal_stores): Same.
22621         (should_unroll_loop_p): Same.
22622         (volume_of_dist_vector): Same.
22623         (add_subscript_strides): Same.
22624         (self_reuse_distance): Same.
22625         (insn_to_prefetch_ratio_too_small_p): Same.
22626         * tree-ssa-loop-split.c (split_at_bb_p): Same.
22627         (patch_loop_exit): Same.
22628         (find_or_create_guard_phi): Same.
22629         (easy_exit_values): Same.
22630         (connect_loop_phis): Same.
22631         (connect_loops): Same.
22632         (compute_new_first_bound): Same.
22633         (split_loop): Same.
22634         (tree_ssa_split_loops): Same.
22635         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
22636         (is_maybe_undefined): Same.
22637         (tree_may_unswitch_on): Same.
22638         (simplify_using_entry_checks): Same.
22639         (tree_unswitch_single_loop): Same.
22640         (tree_unswitch_loop): Same.
22641         (tree_unswitch_outer_loop): Same.
22642         (empty_bb_without_guard_p): Same.
22643         (used_outside_loop_p): Same.
22644         (get_vop_from_header): Same.
22645         (hoist_guard): Same.
22646         * tree-ssa-loop.c (gate_oacc_kernels): Same.
22647         (get_lsm_tmp_name): Same.
22648         * tree-ssa-loop.h: Same.
22649         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
22650         (build_and_add_sum): Same.
22651         (no_side_effect_bb): Same.
22652         (get_ops): Same.
22653         (linearize_expr): Same.
22654         (should_break_up_subtract): Same.
22655         (linearize_expr_tree): Same.
22656         * tree-ssa-scopedtables.c: Same.
22657         * tree-ssa-scopedtables.h: Same.
22658         * tree-ssa-structalias.c (condense_visit): Same.
22659         (label_visit): Same.
22660         (dump_pred_graph): Same.
22661         (perform_var_substitution): Same.
22662         (move_complex_constraints): Same.
22663         (remove_preds_and_fake_succs): Same.
22664         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
22665         (determine_bb_domination_status): Same.
22666         (duplicate_thread_path): Same.
22667         (thread_through_all_blocks): Same.
22668         * tree-ssa-threadupdate.h: Same.
22669         * tree-streamer-in.c (streamer_read_string_cst): Same.
22670         (input_identifier): Same.
22671         (unpack_ts_type_common_value_fields): Same.
22672         (unpack_ts_block_value_fields): Same.
22673         (unpack_ts_translation_unit_decl_value_fields): Same.
22674         (unpack_ts_omp_clause_value_fields): Same.
22675         (streamer_read_tree_bitfields): Same.
22676         (streamer_alloc_tree): Same.
22677         (lto_input_ts_common_tree_pointers): Same.
22678         (lto_input_ts_vector_tree_pointers): Same.
22679         (lto_input_ts_poly_tree_pointers): Same.
22680         (lto_input_ts_complex_tree_pointers): Same.
22681         (lto_input_ts_decl_minimal_tree_pointers): Same.
22682         (lto_input_ts_decl_common_tree_pointers): Same.
22683         (lto_input_ts_decl_non_common_tree_pointers): Same.
22684         (lto_input_ts_decl_with_vis_tree_pointers): Same.
22685         (lto_input_ts_field_decl_tree_pointers): Same.
22686         (lto_input_ts_function_decl_tree_pointers): Same.
22687         (lto_input_ts_type_common_tree_pointers): Same.
22688         (lto_input_ts_type_non_common_tree_pointers): Same.
22689         (lto_input_ts_list_tree_pointers): Same.
22690         (lto_input_ts_vec_tree_pointers): Same.
22691         (lto_input_ts_exp_tree_pointers): Same.
22692         (lto_input_ts_block_tree_pointers): Same.
22693         (lto_input_ts_binfo_tree_pointers): Same.
22694         (lto_input_ts_constructor_tree_pointers): Same.
22695         (lto_input_ts_omp_clause_tree_pointers): Same.
22696         (streamer_read_tree_body): Same.
22697         * tree-streamer.h: Same.
22698         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
22699         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
22700         (vect_analyze_possibly_independent_ddr): Same.
22701         (vect_analyze_data_ref_dependence): Same.
22702         (vect_compute_data_ref_alignment): Same.
22703         (vect_enhance_data_refs_alignment): Same.
22704         (vect_analyze_data_ref_access): Same.
22705         (vect_check_gather_scatter): Same.
22706         (vect_find_stmt_data_reference): Same.
22707         (vect_create_addr_base_for_vector_ref): Same.
22708         (vect_setup_realignment): Same.
22709         (vect_supportable_dr_alignment): Same.
22710         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
22711         (adjust_phi_and_debug_stmts): Same.
22712         (vect_set_loop_mask): Same.
22713         (add_preheader_seq): Same.
22714         (vect_maybe_permute_loop_masks): Same.
22715         (vect_set_loop_masks_directly): Same.
22716         (vect_set_loop_condition_masked): Same.
22717         (vect_set_loop_condition_unmasked): Same.
22718         (slpeel_duplicate_current_defs_from_edges): Same.
22719         (slpeel_add_loop_guard): Same.
22720         (slpeel_can_duplicate_loop_p): Same.
22721         (create_lcssa_for_virtual_phi): Same.
22722         (iv_phi_p): Same.
22723         (vect_update_ivs_after_vectorizer): Same.
22724         (vect_gen_vector_loop_niters_mult_vf): Same.
22725         (slpeel_update_phi_nodes_for_loops): Same.
22726         (slpeel_update_phi_nodes_for_guard1): Same.
22727         (find_guard_arg): Same.
22728         (slpeel_update_phi_nodes_for_guard2): Same.
22729         (slpeel_update_phi_nodes_for_lcssa): Same.
22730         (vect_do_peeling): Same.
22731         (vect_create_cond_for_alias_checks): Same.
22732         (vect_loop_versioning): Same.
22733         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
22734         (vect_inner_phi_in_double_reduction_p): Same.
22735         (vect_analyze_scalar_cycles_1): Same.
22736         (vect_fixup_scalar_cycles_with_patterns): Same.
22737         (vect_get_loop_niters): Same.
22738         (bb_in_loop_p): Same.
22739         (vect_get_max_nscalars_per_iter): Same.
22740         (vect_verify_full_masking): Same.
22741         (vect_compute_single_scalar_iteration_cost): Same.
22742         (vect_analyze_loop_form_1): Same.
22743         (vect_analyze_loop_form): Same.
22744         (vect_active_double_reduction_p): Same.
22745         (vect_analyze_loop_operations): Same.
22746         (neutral_op_for_slp_reduction): Same.
22747         (vect_is_simple_reduction): Same.
22748         (vect_model_reduction_cost): Same.
22749         (get_initial_def_for_reduction): Same.
22750         (get_initial_defs_for_reduction): Same.
22751         (vect_create_epilog_for_reduction): Same.
22752         (vectorize_fold_left_reduction): Same.
22753         (vectorizable_reduction): Same.
22754         (vectorizable_induction): Same.
22755         (vectorizable_live_operation): Same.
22756         (loop_niters_no_overflow): Same.
22757         (vect_get_loop_mask): Same.
22758         (vect_transform_loop_stmt): Same.
22759         (vect_transform_loop): Same.
22760         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
22761         (vect_determine_precisions): Same.
22762         (vect_pattern_recog_1): Same.
22763         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
22764         * tree-vect-stmts.c (stmt_vectype): Same.
22765         (process_use): Same.
22766         (vect_init_vector_1): Same.
22767         (vect_truncate_gather_scatter_offset): Same.
22768         (get_group_load_store_type): Same.
22769         (vect_build_gather_load_calls): Same.
22770         (vect_get_strided_load_store_ops): Same.
22771         (vectorizable_simd_clone_call): Same.
22772         (vectorizable_store): Same.
22773         (permute_vec_elements): Same.
22774         (vectorizable_load): Same.
22775         (vect_transform_stmt): Same.
22776         (supportable_widening_operation): Same.
22777         * tree-vectorizer.c (vec_info::replace_stmt): Same.
22778         (vec_info::free_stmt_vec_info): Same.
22779         (vect_free_loop_info_assumptions): Same.
22780         (vect_loop_vectorized_call): Same.
22781         (set_uid_loop_bbs): Same.
22782         (vectorize_loops): Same.
22783         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
22784         * tree.c (add_tree_to_fld_list): Same.
22785         (fld_type_variant_equal_p): Same.
22786         (fld_decl_context): Same.
22787         (fld_incomplete_type_of): Same.
22788         (free_lang_data_in_binfo): Same.
22789         (need_assembler_name_p): Same.
22790         (find_decls_types_r): Same.
22791         (get_eh_types_for_runtime): Same.
22792         (find_decls_types_in_eh_region): Same.
22793         (find_decls_types_in_node): Same.
22794         (assign_assembler_name_if_needed): Same.
22795         * value-prof.c (stream_out_histogram_value): Same.
22796         * value-prof.h: Same.
22797         * var-tracking.c (use_narrower_mode): Same.
22798         (prepare_call_arguments): Same.
22799         (vt_expand_loc_callback): Same.
22800         (resolve_expansions_pending_recursion): Same.
22801         (vt_expand_loc): Same.
22802         * varasm.c (const_hash_1): Same.
22803         (compare_constant): Same.
22804         (tree_output_constant_def): Same.
22805         (simplify_subtraction): Same.
22806         (get_pool_constant): Same.
22807         (output_constant_pool_2): Same.
22808         (output_constant_pool_1): Same.
22809         (mark_constants_in_pattern): Same.
22810         (mark_constant_pool): Same.
22811         (get_section_anchor): Same.
22812         * vr-values.c (compare_range_with_value): Same.
22813         (vr_values::extract_range_from_phi_node): Same.
22814         * vr-values.h: Same.
22815         * web.c (unionfind_union): Same.
22816         * wide-int.h: Same.
22818 2019-07-09  Martin Sebor  <msebor@redhat.com>
22820         PR c++/61339
22821         * align.h: Change class-key from class to struct and vice versa
22822         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22823         * alloc-pool.h: Same.
22824         * asan.c (shadow_mem_size): Same.
22825         * auto-profile.c: Same.
22826         * basic-block.h: Same.
22827         * bitmap.h: Same.
22828         * cfgexpand.c (set_rtl): Same.
22829         (expand_one_stack_var_at): Same.
22830         * cfghooks.h: Same.
22831         * cfgloop.h: Same.
22832         * cgraph.h: Same.
22833         * config/i386/i386.h: Same.
22834         * df-problems.c (df_print_bb_index): Same.
22835         * df-scan.c: Same.
22836         * df.h (df_single_use): Same.
22837         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22838         (layout::annotation_line_showed_range_p): Same.
22839         (get_printed_columns): Same.
22840         (correction::ensure_terminated): Same.
22841         (line_corrections::~line_corrections): Same.
22842         * dojump.h: Same.
22843         * dse.c: Same.
22844         * dump-context.h: Same.
22845         * dumpfile.h: Same.
22846         * dwarf2out.c: Same.
22847         * edit-context.c: Same.
22848         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22849         * flags.h: Same.
22850         * function.c (assign_stack_local): Same.
22851         * function.h: Same.
22852         * gcc.c: Same.
22853         * gcov.c (block_info::block_info): Same.
22854         * genattrtab.c: Same.
22855         * genextract.c: Same.
22856         * genmatch.c (comparison_code_p): Same.
22857         (id_base::id_base): Same.
22858         (decision_tree::print): Same.
22859         * genoutput.c: Same.
22860         * genpreds.c (write_one_predicate_function): Same.
22861         * genrecog.c (validate_pattern): Same.
22862         (find_operand_positions): Same.
22863         (optimize_subroutine_group): Same.
22864         (merge_pattern_transition::merge_pattern_transition): Same.
22865         (merge_pattern_info::merge_pattern_info): Same.
22866         (merge_state_result::merge_state_result): Same.
22867         (merge_into_state): Same.
22868         * gensupport.c: Same.
22869         * gensupport.h: Same.
22870         * ggc-common.c (init_ggc_heuristics): Same.
22871         * ggc-tests.c (test_union): Same.
22872         * gimple-loop-interchange.cc (dump_induction): Same.
22873         * gimple-loop-versioning.cc: Same.
22874         * gimple-match.h (gimple_match_cond::any_else): Same.
22875         * gimple-ssa-backprop.c: Same.
22876         * gimple-ssa-sprintf.c: Same.
22877         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22878         Same.
22879         (store_immediate_info::store_immediate_info): Same.
22880         (merged_store_group::apply_stores): Same.
22881         (get_location_for_stmts): Same.
22882         * gimple-ssa-strength-reduction.c: Same.
22883         * gimple-ssa-warn-alloca.c: Same.
22884         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22885         * godump.c (go_type_decl): Same.
22886         * hash-map-tests.c (test_map_of_strings_to_int): Same.
22887         * hash-map.h: Same.
22888         * hash-set-tests.c (test_set_of_strings): Same.
22889         * hsa-brig.c: Same.
22890         * hsa-common.h: Same.
22891         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22892         * input.c (assert_loceq): Same.
22893         * input.h: Same.
22894         * ipa-cp.c: Same.
22895         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22896         * ipa-fnsummary.h: Same.
22897         * ipa-inline.h: Same.
22898         * ipa-prop.h: Same.
22899         * ipa-split.c (visit_bb): Same.
22900         * ira-int.h (minmax_set_iter_next): Same.
22901         * loop-invariant.c: Same.
22902         * loop-iv.c: Same.
22903         * lra-eliminations.c: Same.
22904         * lra-int.h: Same.
22905         * lra-lives.c (mark_regno_dead): Same.
22906         * lra-remat.c: Same.
22907         * lra-spills.c: Same.
22908         * lto-streamer.h: Same.
22909         * mem-stats.h: Same.
22910         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22911         * omp-low.c (omp_clause_aligned_alignment): Same.
22912         * optabs-query.h (get_vcond_eq_icode): Same.
22913         * optabs.h: Same.
22914         * opts.c (wrap_help): Same.
22915         * poly-int.h: Same.
22916         * predict.c (predict_paths_leading_to_edge): Same.
22917         * pretty-print.h: Same.
22918         * profile-count.h: Same.
22919         * read-md.h: Same.
22920         * read-rtl-function.c: Same.
22921         * ree.c: Same.
22922         * reginfo.c: Same.
22923         * regrename.c: Same.
22924         * regrename.h: Same.
22925         * reload.h: Same.
22926         * rtl-iter.h: Same.
22927         * rtl.h (costs_add_n_insns): Same.
22928         * sanopt.c: Same.
22929         * sched-int.h: Same.
22930         * sel-sched-ir.h: Same.
22931         * selftest.h: Same.
22932         * sese.h (vec_find): Same.
22933         * stmt.c: Same.
22934         * target-globals.h: Same.
22935         * tree-affine.c (aff_combination_find_elt): Same.
22936         * tree-affine.h: Same.
22937         * tree-data-ref.h: Same.
22938         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22939         * tree-predcom.c: Same.
22940         * tree-scalar-evolution.c (find_var_scev_info): Same.
22941         * tree-ssa-alias.h: Same.
22942         * tree-ssa-ccp.c: Same.
22943         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22944         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22945         (rewrite_mem_refs): Same.
22946         (execute_sm_if_changed): Same.
22947         (hoist_memory_references): Same.
22948         * tree-ssa-loop-ivopts.c (operator<=): Same.
22949         * tree-ssa-loop.h: Same.
22950         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22951         * tree-ssa-structalias.c: Same.
22952         * tree-switch-conversion.h (cluster::cluster): Same.
22953         (simple_cluster::simple_cluster): Same.
22954         * tree-vect-patterns.c (type_conversion_p): Same.
22955         * tree-vectorizer.c (dump_stmt_cost): Same.
22956         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22957         * tree.c (protected_set_expr_location): Same.
22958         * tree.h (desired_pro_or_demotion_p): Same.
22959         (fndecl_built_in_p): Same.
22960         * unique-ptr-tests.cc: Same.
22961         * var-tracking.c (delete_variable_part): Same.
22962         * varasm.c (assemble_real): Same.
22963         (tree_output_constant_def): Same.
22964         * vec.c: Same.
22965         * wide-int-bitmask.h: Same.
22966         * wide-int.h (decompose): Same.
22968 2019-07-09  Richard Biener  <rguenther@suse.de>
22970         PR tree-optimization/91114
22971         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22972         find a vector type isn't fatal.
22974 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
22976         * config/aarch64/aarch64-simd.md
22977         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22978         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22979         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22980         (*aarch64_crypto_aese_fused,
22981         *aarch64_crypto_aesd_fused): Update to new definition.
22982         * config/aarch64/aarch64.c
22983         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22985 2019-07-09  Richard Biener  <rguenther@suse.de>
22987         * gimple-match.h (gimple_match_op::resimplify): New.
22988         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22989         gimple_resimplify4, gimple_resimplify5): Remove.
22990         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22991         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22992         Make static.
22993         (gimple_match_op::resimplify): New.
22994         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22995         according to availability.  Use gimple_match_op::resimplify.
22997 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
22999         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
23001 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
23003         * config/arm/crypto.md:
23004         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
23005         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
23006         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
23007         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
23008         * config/arm/arm.c
23009         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
23010         * config/arm/aarch-common-protos.h
23011         (aarch_crypto_can_dual_issue): Remove.
23012         * config/arm/aarch-common.c
23013         (aarch_crypto_can_dual_issue): Likewise.
23014         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
23015         * config/arm/cortex-a53.md: Likewise.
23016         * config/arm/cortex-a57.md: Likewise.
23017         * config/arm/iterators.md:
23018         (CRYPTO_BINARY): Redefine.
23019         (CRYPTO_UNARY): Removed.
23020         (CRYPTO_AES, CRYPTO_AESMC): New.
23022 2019-07-09  Richard Biener  <rguenther@suse.de>
23024         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
23025         (vn_reference_lookup_3): If the main ref has no access path recorded
23026         but orig_ref has use it to do access-path based disambiguation.
23027         (vn_reference_lookup_pieces): Adjust.
23028         (vn_reference_lookup): Pass down original ref if we valueized.
23030 2019-07-09  Martin Liska  <mliska@suse.cz>
23032         * doc/extend.texi: Document influence on loop
23033         optimizers.
23035 2019-07-09  Martin Liska  <mliska@suse.cz>
23037         * lto-compress.c (lto_normalized_zstd_level): Do not use
23038         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
23039         of libzstd.  One can use 0 as a default compression level.
23041 2019-07-09  Martin Liska  <mliska@suse.cz>
23043         * doc/invoke.texi: Add link from -fprofile-dir option.
23044         Use better wording for 'gcno filename'.
23046 2019-07-08  Martin Sebor  <msebor@redhat.com>
23048         PR middle-end/71924
23049         PR middle-end/90549
23050         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
23051         comment.
23052         (args_loc_t): New type.
23053         (args_loc_t, locmap_t): same.
23054         (diag_returned_locals): New function.
23055         (is_addr_local): Same.
23056         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
23057         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
23058         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
23060 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
23062         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
23063         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
23064         and casts in offset when different, both through gimple stmts
23065         and through trees.  Rewritten using loops to minimize code duplication
23066         for each operand.
23068 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
23070         * emit-rtl.c (set_insn_locations): New function moved from...
23071         * function.c (set_insn_locations): ...here.
23072         * ira-emit.c (emit_moves): Propagate location of the first instruction
23073         to the inserted move instructions.
23074         * reg-stack.c (compensate_edge): Set the location if the sequence is
23075         inserted on the edge.
23076         * rtl.h (set_insn_locations): Declare.
23078 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
23080         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
23081         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
23082         .machine string.
23084 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
23086         PR rtl-optimization/88233
23087         * common.opt (fsplit-wide-types-early): New option.
23088         * common/config/rs6000/rs6000-common.c
23089         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
23090         OPT_LEVELS_ALL.
23091         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
23092         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
23093         flag_split_wide_types_early.
23094         (pass_data_lower_subreg3): New.
23095         (pass_lower_subreg3): New.
23096         (make_pass_lower_subreg3): New.
23097         * passes.def (pass_lower_subreg2): Move after the loop passes.
23098         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
23099         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
23100         the pass pipeline; its previous place is taken by ...
23101         (make_pass_lower_subreg3): ... this.
23103 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
23105         * config/s390/s390.c (s390_shift_truncation_mask): Define.
23106         (TARGET_SHIFT_TRUNCATION_MASK): Define.
23108 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
23110         * config/s390/constraints.md: Add new jsc constraint.
23111         * config/s390/predicates.md: New predicates.
23112         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
23113         * config/s390/s390.c (s390_valid_shift_count): New function.
23114         (print_shift_count_operand): Use s390_valid_shift_count.
23115         (print_operand): Likewise.
23116         * config/s390/s390.md: Use new predicate.
23117         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
23118         * config/s390/vector.md: Use new predicate.
23120 2019-07-08  Andrew Waterman  <andrew@sifive.com>
23121             Jim Wilson  <jimw@sifive.com>
23123         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
23124         bitsize instead of BITS_PER_WORD.
23126 2019-07-08  Martin Liska  <mliska@suse.cz>
23128         * collect2.c (defined): Revert to before r254460.
23129         (scan_prog_file): Revert to before r254460.
23131 2019-07-08  Richard Biener  <rguenther@suse.de>
23133         PR tree-optimization/83518
23134         * tree-ssa-sccvn.c: Include splay-tree.h.
23135         (struct pd_range, struct pd_data): New.
23136         (struct vn_walk_cb_data): Add data to track partial definitions.
23137         (vn_walk_cb_data::~vn_walk_cb_data): New.
23138         (vn_walk_cb_data::push_partial_def): New.
23139         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
23140         (vn_reference_lookup_2): When partial defs are registered give up.
23141         (vn_reference_lookup_3): Track partial defs for memset and
23142         constructor zeroing and for defs from constants.
23144 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
23146         * doc/install.texi (bootstrap-Og): Document.
23148 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
23150         * config/riscv/pic.md (*local_pic_load_s<mode>)
23151         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
23152         referenced by <mode>, giving...
23153         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
23154         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
23155         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
23156         use <X:MODE> for the mode attribute.
23158 2019-07-07  Jeff Law  <law@redhat.com>
23160         PR tree-optimization/91090
23161         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
23162         in handling of ranges to simplify switch statements.
23164 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
23166         * config/darwin.c (darwin_override_options): Make a final check on PIC
23167         options.
23169 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
23171         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
23172         on for kernel code.
23174 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
23176         PR target/91068
23177         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
23178         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
23179         instead of matching them to "l" output operands.
23181 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
23183         * config/mips/mips.c (mips_split_move): Zero-initialize addr
23184         and check whether addr.reg is nonnull before using it.
23186 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
23188         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
23189         ctx->for_simd_scan_phase simd copy the outer var to the privatized
23190         variable(s).  For conditional lastprivate look through outer
23191         GIMPLE_OMP_SCAN context.
23192         (lower_omp_1): For conditional lastprivate look through outer
23193         GIMPLE_OMP_SCAN context.
23195         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
23196         member to combined_into_simd_safelen1.
23197         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
23198         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
23199         clauses if ctx->combined_into_simd_safelen1 put statements after the
23200         predicate conditionalized block rather than into it.
23202 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
23204         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
23205         operand 1.
23206         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
23207         Make the choice of <mode> explicit, giving...
23208         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
23210 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
23212         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
23213         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
23214         of .md attributes.
23215         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
23216         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
23217         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
23218         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
23219         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
23220         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
23221         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
23222         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
23223         (*avx512f_scatterdi<mode>): Likewise.
23224         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
23226 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
23228         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
23229         specify the mode iterator referenced by <mode>, giving...
23230         (*push1_h8300hs_<QHI:mode>): ...this.
23232 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
23234         * config/gcn/gcn-valu.md
23235         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
23236         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
23237         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
23238         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
23239         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
23240         but using the _exec comparison patterns.
23241         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
23242         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
23243         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
23244         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
23245         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
23246         but using the _exec comparison patterns.
23248 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
23250         * config/arm/sync.md
23251         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
23252         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
23253         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
23254         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
23255         <SIDI:cas_cmp_str>.
23257 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
23259         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
23260         (maybe_lookup_ctx): Add forward declaration.
23261         (omp_find_scan): Likewise.  Walk into body of simd if composited
23262         with worksharing loop.
23263         (scan_omp_simd_scan): New function.
23264         (scan_omp_1_stmt): Call it.
23265         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
23266         ctx->for_simd_scan_phase.
23267         (lower_rec_input_clauses): Do much less work for inscan reductions
23268         in ctx->for_simd_scan_phase is_simd regions.
23269         (lower_omp_scan): Set is_simd also on simd constructs composited
23270         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
23271         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
23272         emit their body after in simd constructs composited with worksharing
23273         loop.
23274         (lower_omp_for_scan): Handle worksharing loop composited with simd.
23276         * omp-low.c (omp_find_scan): Make static.
23277         (lower_omp_for_scan): Fix order of merge arguments in input phase of
23278         the second loop, var2 represents the first partial sum and so needs
23279         to go before rprivb[ivar].
23281 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
23283         * config/rs6000/rs6000-logue.c: Remove unused code.
23285 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
23287         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
23289 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
23291         PR target/90712
23292         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
23293         check with a frame laid out check.
23295 2019-07-05  Richard Biener  <rguenther@suse.de>
23297         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
23298         when comparing against a store with possibly the same value.
23300 2019-07-05  Richard Biener  <rguenther@suse.de>
23302         PR tree-optimization/91091
23303         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
23304         (walk_non_aliased_vuses): Likewise.
23305         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
23306         (get_continuation_for_phi): New tbaa_p parameter and pass
23307         it down.
23308         (walk_non_aliased_vuses): Likewise.
23309         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
23310         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
23311         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
23312         Likewise.
23313         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
23314         (adjust_offsets_for_equal_base_address): New function.
23315         (vn_reference_lookup_3): Use it to catch more base equivalences.
23316         Handle and pass down tbaa_p flag.
23317         (vn_reference_lookup_pieces): Adjust.
23318         (vn_reference_lookup): Remove alias-set altering, instead pass
23319         down false as tbaa_p.
23321 2019-07-05  Richard Biener  <rguenther@suse.de>
23323         PR tree-optimization/91091
23324         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
23325         accesses can happen with -fno-strict-aliasing.
23327 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
23329         * tree-ssa-alias.c (alias_stats): Add
23330         nonoverlapping_component_refs_since_match_p_must_overlap.
23331         (dump_alias_stats): Print it.
23332         (nonoverlapping_component_refs_since_match_p): Add early exit.
23333         (nonoverlapping_component_refs_p): Do not account early exit.
23335 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
23337         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
23338         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
23339         (emit_eh_dispatch): Delete.
23340         (lower_catch): Emit the eh_dispatch manually and set the location of
23341         the first catch statement onto it.
23342         (lower_eh_filter): Emit the eh_dispatch manually and set location.
23343         (lower_eh_dispatch): Propagate location.
23344         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
23345         (eliminate_build): Likewise.
23347 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
23349         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
23350         phi nodes if possible.
23351         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
23352         location info on the newly created statement.
23353         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
23354         newly created increment if needed.
23356 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
23358         PR middle-end/78884
23359         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
23360         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
23361         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
23362         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
23363         ctx->add_safelen1 is set.
23365         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
23366         GOMP_loop_start at the start of second worksharing loop in a scan.
23367         For nowait, don't emit GOMP_loop_end_nowait at the end of first
23368         worksharing loop in a scan even if there are conditional lastprivates,
23369         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
23371 2019-07-04  Jan Hubicka  <jh@suse.cz>
23373         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
23374         Fix check for match in the ref walk.
23376 2019-07-04  Martin Liska  <mliska@suse.cz>
23378         * tree-ssa-loop-niter.c
23379         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
23380         (estimate_numbers_of_iterations):
23381         Support __builtin_expect_with_probability for analysis
23382         of # of loop iterations.
23384 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
23386         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
23387         * except.c: Likewise.
23388         * expr.c (expand_expr_real_1): Reject it.
23389         * gimplify.c (gimplify_expr): Gimplify it, within
23390         TRY_FINALLY_EXPR.
23391         * tree-dump.c (dequeue_and_dump): Dump it.
23392         * tree-pretty-print.c (dump_generic_node): Likewise.
23393         * tree.c (block_may_fallthru): Handle it.
23394         * tree.def (EH_ELSE_EXPR): Introduce it.
23395         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
23396         with GIMPLE_EH_ELSE as try/finally/else.
23398 2019-07-04  Richard Biener  <rguenther@suse.de>
23400         PR ipa/91062
23401         * tree-pass.h (execute_all_ipa_transforms): Add a flag
23402         parameter whether to disable GC collection.
23403         * passes.c (execute_one_ipa_transform_pass): Likewise, and
23404         honor it.
23405         (execute_all_ipa_transforms): Likewise and pass it down.
23406         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
23407         collection from applying IPA transforms.
23408         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
23409         from applying IPA transforms.
23411 2019-07-04  Richard Biener  <rguenther@suse.de>
23413         PR tree-optimization/90911
23414         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
23415         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
23416         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23417         scalar_loop_scaling.
23418         (vect_transform_loop): Scale scalar loop profile if needed.
23419         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
23420         the loop copy from if-conversion adjust edge probabilities
23421         and scale the vectorized loop body profile, queue the scalar
23422         profile for updating after peeling.
23424 2019-07-04  Jan Hubicka  <jh@suse.cz>
23426         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
23427         parameters; return early for must-alias.
23428         (indirect_ref_may_alias_decl_p): Likewise; when establishing
23429         outer types match, try nonoverlapping_component_refs
23430         if must-alias is not obvious.
23431         (indirect_refs_may_alias_p): Likewise.
23432         (refs_may_alias_p_2): Likewise.
23434 2019-07-04  Richard Biener  <rguenther@suse.de>
23436         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
23437         argument.
23438         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
23439         globals into...
23440         (struct vn_walk_cb_data): New callback data struct.
23441         (vn_reference_lookup_2): Adjust.
23442         (vn_reference_lookup_3): Likewise.
23443         (vn_reference_lookup_pieces): Likewise.
23444         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
23445         (visit_reference_op_load): Adjust.
23447 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
23449         PR tree-optimization/91063
23450         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
23451         stmt from stmts sequence before calling vect_init_vector_1.
23452         Formatting fix.
23454 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23456         PR target/88833
23457         * fwprop.c (reg_single_def_p): New function.
23458         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
23459         (forward_propagate_into): New parameter reg_prop_only
23460         with default value false.
23461         Propagate def's src into loop only if SET_SRC and SET_DEST
23462         of def_set have single definitions.
23463         Likewise if reg_prop_only is set to true.
23464         (fwprop): New param fwprop_addr_p.
23465         Integrate fwprop_addr into fwprop.
23466         (fwprop_addr): Remove.
23467         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
23468         to true.
23469         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
23470         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
23471         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
23473 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
23475         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
23476         in worksharing loop scans.
23478         PR tree-optimization/91074
23479         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
23480         temporary.
23482         PR rtl-optimization/90756
23483         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
23484         for VECTOR_TYPE_P.
23486 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
23488         * config/aarch64/aarch64.md: Remove redundant constraints from
23489         define_expand but keep some patterns untouched if they are
23490         specially selected by TARGET_SECONDARY_RELOAD hook.
23491         * config/aarch64/aarch64-sve.md: Likewise.
23492         * config/aarch64/atomics.md: Remove redundant constraints from
23493         define_expand.
23494         * config/aarch64/aarch64-simd.md: Likewise.
23496 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
23498         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
23499         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
23500         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
23501         clauses.
23502         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
23503         DARWIN_NOPIE_SPEC.
23505 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
23507         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
23508         (STARTFILE_SPEC): Split crt3 into a separate spec.
23509         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
23510         (DARWIN_CRT2_SPEC): New.
23511         (DARWIN_CRT3_SPEC): New.
23512         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
23513         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
23514         (DARWIN_CRT3_SPEC): New.
23516 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
23518         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
23519         Change the RTL attribute "length" from "4" to "*" to allow the
23520         length attribute to be adjusted automatically for prefixed load,
23521         store, and add immediate instructions.
23522         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
23523         Likewise.
23524         (extendsi<mode>2, EXTSI iterator): Likewise.
23525         (movsi_internal1): Likewise.
23526         (movsi_from_sf): Likewise.
23527         (movdi_from_sf_zero_ext): Likewise.
23528         (mov<mode>_internal): Likewise.
23529         (movcc_internal1, QHI iterator): Likewise.
23530         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
23531         (movsf_from_si): Likewise.
23532         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
23533         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
23534         (mov<mode>, FMOVE128 iterator): Likewise.
23535         (movdi_internal64): Likewise.
23536         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
23537         Likewise.
23538         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
23539         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
23540         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
23541         (vsx_splat_v4sf): Likewise.
23543 2019-07-03  Mark Wielaard  <mark@klomp.org>
23545         PR debug/90981
23546         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
23547         DW_AT_addr_base if there is actually a .debug_addr section with
23548         addresses.
23549         (output_addr_table): Add DWARF5 table header generation here after
23550         checking there are actually any addresses from...
23551         (dwarf2out_finish): ...here.
23553 2019-07-03  Richard Biener  <rguenther@suse.de>
23555         PR middle-end/91069
23556         * match.pd (vec_perm -> bit_insert): Fix element read from
23557         first vector.
23559 2019-07-03  Martin Liska  <mliska@suse.cz>
23561         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
23562         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
23563         condition.
23564         * generic-match-head.c: Include dbgcnt.h.
23565         * gimple-match-head.c: Likewise.
23567 2019-07-03  Martin Liska  <mliska@suse.cz>
23569         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
23570         (GCOV_COUNTER_V_TOPN): New.
23571         (GCOV_COUNTER_V_INDIR): Use _topn.
23572         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
23573         (GCOV_TOPN_VALUES): New.
23574         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
23575         (GCOV_TOPN_VALUES_COUNTERS): New.
23576         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
23577         * tree-profile.c:
23578         (gimple_init_gcov_profiler): Rename variables from one_value
23579         to topn_values.
23580         (gimple_gen_one_value_profiler): Remove.
23581         (gimple_gen_topn_values_profiler): New function.
23582         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
23583         names instead of SINGLE_VALUE.
23584         (stream_out_histogram_value): Likewise.
23585         (stream_in_histogram_value): Likewise.
23586         (get_most_common_single_value): Likewise.
23587         (gimple_divmod_fixed_value_transform): Likewise.
23588         (gimple_stringops_transform): Likewise.
23589         (gimple_divmod_values_to_profile): Likewise.
23590         (gimple_stringops_values_to_profile): Likewise.
23591         (gimple_find_values_to_profile): Likewise.
23592         * value-prof.h (enum hist_type): Rename to TOPN.
23593         (gimple_gen_one_value_profiler): Remove.
23594         (gimple_gen_topn_values_profiler): New.
23596 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
23598         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
23599         if it has the DW_AT_data_member_location attribute.
23601 2019-07-03  Richard Biener  <rguenther@suse.de>
23603         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
23604         dumping.
23606 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
23608         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
23609         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
23610         (tlsdesc_small_sve_<mode>): Likewise.
23612 2019-07-03  Martin Liska  <mliska@suse.cz>
23614         * Makefile.in: Define ZSTD_LIB.
23615         * common.opt: Adjust compression level
23616         to support also zstd levels.
23617         * config.in: Regenerate.
23618         * configure: Likewise.
23619         * configure.ac: Add --with-zstd and --with-zstd-include options
23620         and detect ZSTD.
23621         * doc/install.texi: Mention zstd dependency.
23622         * gcc.c: Print supported LTO compression algorithms.
23623         * lto-compress.c (lto_normalized_zstd_level): Likewise.
23624         (lto_compression_zstd): Likewise.
23625         (lto_uncompression_zstd): Likewise.
23626         (lto_end_compression): Dispatch in between zlib and zstd.
23627         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
23628         (lto_uncompression_zlib): Make it static.
23629         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
23630         * lto-section-in.c (lto_get_section_data): Pass info
23631         about used compression.
23632         * lto-streamer-out.c: By default use zstd when possible.
23633         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
23634         (TV_IPA_LTO_COMPRESS): Likewise for compression.
23636 2019-07-03  Martin Liska  <mliska@suse.cz>
23638         * lto-section-in.c (lto_get_section_data): Add "lto" section.
23639         * lto-section-out.c (lto_destroy_simple_output_block): Never
23640         compress LTO_section_lto section.
23641         * lto-streamer-out.c (produce_asm): Do not set major_version
23642         and minor_version.
23643         (lto_output_toplevel_asms): Likewise.
23644         (produce_lto_section): New function.
23645         (lto_output): Call produce_lto_section.
23646         (lto_write_mode_table): Do not set major_version and
23647         minor_version.
23648         (produce_asm_for_decls): Likewise.
23649         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
23650         type.
23651         (struct lto_header): Remove.
23652         (struct lto_section): New struct.
23653         (struct lto_simple_header): Do not inherit from lto_header.
23654         (struct lto_file_decl_data): Add lto_section_header field.
23656 2019-07-03  Martin Liska  <mliska@suse.cz>
23658         * lra-eliminations.c (eliminate_regs_in_insn): Remove
23659         dead assignemts.
23660         * reg-stack.c (check_asm_stack_operands): Likewise.
23661         * tree-ssa-structalias.c (create_function_info_for): Likewise.
23662         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
23663         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
23664         force_expand_binop.
23666 2019-07-03  Martin Liska  <mliska@suse.cz>
23668         PR tree-optimization/90892
23669         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
23670         in string constants.
23672 2019-07-03  Martin Liska  <mliska@suse.cz>
23674         PR middle-end/90899
23675         * multiple_target.c (create_dispatcher_calls): Add to comdat
23676         group only if set for ifunc.
23678 2019-07-03  Martin Liska  <mliska@suse.cz>
23680         PR target/88056
23681         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23682         Define local_object_name in outer scope in order to handle
23683         use-after-scope issue.
23685 2019-07-03  Martin Liska  <mliska@suse.cz>
23687         * common.opt: Add fprofile-note.
23688         * coverage.c (coverage_init): Append the option
23689         to bbg_file_name.
23690         * doc/invoke.texi: Document -fprofile-note.
23692 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
23694         PR tree-optimization/91033
23695         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
23696         vect_analyze_data_refs): Add bool * arguments.
23697         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
23698         if failure is due to scatter/gather, set *fatal to false if non-NULL.
23699         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23700         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
23701         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
23702         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
23703         vect_analyze_data_refs caller.
23705         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
23706         clause.
23707         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
23708         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
23709         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
23710         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23711         OMP_CLAUSE__SCANTEMP_ entry.
23712         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
23713         * tree-pretty-print.c (dump_omp_clause): Likewise.
23714         * tree-nested.c (convert_nonlocal_omp_clauses,
23715         convert_local_omp_clauses): Likewise.
23716         * omp-general.h (struct omp_for_data): Add have_scantemp and
23717         have_nonctrl_scantemp members.
23718         * omp-general.c (omp_extract_for_data): Initialize them.
23719         * omp-low.c (struct omp_context): Add scan_exclusive member.
23720         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
23721         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
23722         ctx->scan_exclusive.
23723         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
23724         of !ctx->scan_inclusive.
23725         (lower_rec_input_clauses): Simplify gimplification of dtors using
23726         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
23727         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
23728         loops.  Don't add barrier for reduction_omp_orig_ref if
23729         ctx->scan_??xclusive.
23730         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
23731         (lower_omp_scan): Use ctx->scan_exclusive instead
23732         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
23733         reductions.  Use new_vard != new_var instead of repeated
23734         omp_is_reference calls.
23735         (omp_find_scan, lower_omp_for_scan): New functions.
23736         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
23737         inscan reductions.
23738         * omp-expand.c (expand_omp_scantemp_alloc): New function.
23739         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
23740         and fd->have_scantemp.
23742         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
23743         on worksharing loop propagate it as shared clause to containing
23744         combined parallel.
23746         * omp-expand.c (expand_omp_for_static_nochunk,
23747         expand_omp_for_static_chunk): For nowait worksharing loop with
23748         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
23749         at the end.
23751 2019-07-02  qing zhao  <qing.zhao@oracle.com>
23753         PR preprocessor/90581
23754         * doc/cppopts.texi: Add document for -fmax-include-depth.
23755         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
23757 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23759         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
23760         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
23761         (mmx_packssdw): Ditto.
23762         (mmx_punpckhbw): Ditto.
23763         (mmx_punpcklbw): Ditto.
23764         (mmx_punpckhwd): Ditto.
23765         (mmx_punpcklwd): Ditto.
23766         (mmx_punpckhdq): Ditto.
23767         (mmx_punpckldq): Ditto.
23768         (*vec_dupv4hi): Ditto.
23769         (*vec_dupv2si): Ditto.
23770         (mmx_pmovmskb): Ditto.
23771         * config/i386/sse.md (sse_cvtpi2ps): Use
23772         TARGET_SSE2 && SSE_REG_P in split condition.
23773         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
23774         TARGET_SSSE3 && SSE_REGNO_P in split condition.
23775         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
23776         (ssse3_pshufbv8qi3): Ditto.
23777         (ssse3_palignrdi): Ditto.
23779 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
23781         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
23782         with inlined save and restore.
23784 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
23786         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
23787         to be inserted on single successor edge of the entry block.  Then call
23788         commit_edge_insertions instead of inserting the instructions manually.
23789         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
23790         RTL expansion and rebuild jump labels chain.
23792 2019-07-02  Richard Biener  <rguenther@suse.de>
23794         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
23795         TI_CHREC_KNOWN.
23796         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23797         Define here.
23798         * tree.c (build_common_tree_nodes): Initialize them.
23799         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23800         Make declarations comments.
23801         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
23802         chrec_known): Remove definitions.
23803         (initialize_scalar_evolutions_analyzer): Remove.
23804         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
23805         * tree-streamer.c (preload_common_nodes): Do not preload
23806         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23808 2019-07-02  Jan Hubicka  <jh@suse.cz>
23810         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23811         sanity check.
23813 2019-07-02  Jan Hubicka  <jh@suse.cz>
23815         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23816         to ..
23817         (nonoverlapping_component_refs_since_match_p): ... this one;
23818         handle also non-decl bases; return -1 if search gave up.
23819         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23820         nonoverlapping_component_refs_of_decl_p_no_alias to
23821         nonoverlapping_component_refs_since_match_p_may_alias,
23822         nonoverlapping_component_refs_since_match_p_no_alias.
23823         (dump_alias_stats): Update dumping.
23824         (aliasing_matching_component_refs_p): Break out from ...;
23825         dispatch to nonoverlapping_component_refs_for_decl_p
23826         and nonoverlapping_component_refs_since_match_p.
23827         (aliasing_component_refs_p): ... here; call
23828         nonoverlapping_component_refs_p in scenarios where we can not
23829         precisely determine base match.
23830         (decl_refs_may_alias_p): Use
23831         nonoverlapping_component_refs_since_match_p.
23832         (indirect_ref_may_alias_decl_p): Do not call
23833         nonoverlapping_component_refs_p.
23834         (indirect_refs_may_alias_p): Likewise.
23836 2019-07-02  Jan Hubicka  <jh@suse.cz>
23838         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23839         to clobber of return value.
23841 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23843         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23844         for is_neon_type instructions that have not already been categorized.
23846 2019-07-02  Richard Biener  <rguenther@suse.de>
23848         PR tree-optimization/58483
23849         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23850         for MEM_REF base hashing.
23851         (equal_mem_array_ref_p): Likewise for base comparison.
23853 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23855         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23856         parameterized name.
23857         (signbit<mode>2): Use that name.  Simplify.
23859 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
23861         PR middle-end/66726
23862         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23863         Tune heuristic from PR71016 to allow MIN / MAX.
23865 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23867         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23868         parameterized name.
23869         (abs<mode>2): Use that name.  Simplify.
23871 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23873         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23874         parameterized name.
23875         (neg<mode>2): Use that name.  Simplify.
23877 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23879         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23880         name.
23881         (abs<mode>2): Use that name.  Simplify.
23883 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23885         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23886         name.
23887         (neg<mode>2): Use that name.  Simplify.
23889 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23891         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23892         ("enabled" attribute): Handle sse_noavx isa attribute.
23893         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23894         Use TARGET_SSE && SSE_REGNO_P in split condition.
23895         (*vec_dupv2sf): Ditto.
23897 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23899         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23900         name.
23901         (floatsi<mode>2): Use that name.  Simplify.
23903 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23905         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23906         parameterized name.
23907         (extenddf<mode>2_vsx): Make this a parameterized name.
23908         (extenddf<mode>2): Use those names.  Simplify.
23910 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23912         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23913         name.
23914         (eh_return): Use that name.  Simplify.
23916 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23918         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23919         (doloop_end): Use that name.  Simplify.
23921 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23923         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23924         parameterized name.
23925         (indirect_jump): Use that name.  Simplify.
23927 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23929         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23930         parameterized name.
23931         (abs<mode>2): Use that name.  Simplify.
23933 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23935         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23936         parameterized name.
23937         (fix_trunc<mode>si2): Use that name.  Simplify.
23939 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23941         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23942         (allocate_stack): Use that name.  Simplify.
23944 2019-07-01  Martin Sebor  <msebor@redhat.com>
23946         PR middle-end/90923
23947         * hash-map.h (hash_map::put): On insertion invoke element ctor.
23948         (hash_map::get_or_insert): Same.  Reformat comment.
23949         * hash-set.h (hash_set::add): On insertion invoke element ctor.
23950         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23951         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23952         * hash-table.h (hash_table::operator=): Prevent copy assignment.
23953          (hash_table::hash_table (const hash_table&)): Use copy ctor
23954          instead of assignment to copy elements.
23956 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
23957             John David Anglin  <danglin@gcc.gnu.org>
23959         PR target/90963
23960         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23961         using saved frame pointer.
23963 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23965         PR middle-end/64242
23966         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23967         Add frame clobber and schedule blockage.
23969 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
23971         * doc/invoke.texi (Link Options): Further editorial changes to
23972         -flinker-output docs.
23974 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
23976         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23977         Load both operands of a PLUS into registers separately.
23979 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
23981         * config/s390/vector.md: Fix shift count operand printing.
23983 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23985         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23987 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23989         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23990         Use recog_data to test for an output operand.
23992 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23994         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23995         exclude any others that are disparaged or that are bound to need
23996         a reload or spill.
23997         (ira_get_dup_out_num): Expand comment.
23999 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24001         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
24002         constraint string for each operand/alternative combo.  Only handle
24003         '%' at the start of constraint strings, and look for it outside
24004         the main loop.
24006 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24008         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
24009         alternative_mask instead of HARD_REG_SET to represent a
24010         bitmask of alternatives.
24011         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
24012         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
24014 2019-07-01  Martin Liska  <mliska@suse.cz>
24016         * edit-context.c (test_applying_fixits_unreadable_file): Do not
24017         use () for a constructor call.
24018         (test_applying_fixits_line_out_of_range): Likewise.
24019         * ggc-page.c (alloc_page): Use (void *) for %p printf format
24020         argument.
24021         (free_page): Likewise.
24023 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
24025         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
24026         parameter names to match usage (no functional change).
24027         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
24029 2019-07-01  Richard Biener  <rguenther@suse.de>
24031         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
24032         pass parameter.
24033         (pass_fre::execute): Honor it.
24034         * passes.def: Adjust pass_fre invocations to allow iterating,
24035         add non-iterating pass_fre before late threading/dom.
24037 2019-07-01  Richard Biener  <rguenther@suse.de>
24039         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
24040         TARGET_MEM_REF handling to also handle address-taken ones.
24042 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
24044         * doc/sourcebuild.texi (Effective-Target Keywords, Other
24045         hardware attributes): Document avx512vp2intersect.
24047 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24049         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
24050         (abs<mode>2): New expander.
24051         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
24052         Use CODE_FOR_ssse3_absv8qi2.
24053         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
24054         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
24056 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24058         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
24059         to sse, sse_noavx and avx.  Update all uses.
24061 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24063         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
24064         (*mmx_<plusminus_insn><mode>3): Ditto.
24065         (*mmx_mulv4hi3"): Ditto.
24066         (*mmx_smulv4hi3_highpart): Ditto.
24067         (*mmx_umulv4hi3_highpart): Ditto.
24068         (*mmx_pmaddwd): Ditto.
24069         (*sse2_umulv1siv1di3): Ditto.
24070         (*mmx_<code>v4hi3): Ditto.
24071         (*mmx_<code>v8qi3): Ditto.
24072         (mmx_ashr<mode>3): Ditto.
24073         ("mmx_<shift_insn><mode>3): Ditto.
24074         (*mmx_eq<mode>3): Ditto.
24075         (mmx_gt<mode>3): Ditto.
24076         (mmx_andnot<mode>3): Ditto.
24077         (*mmx_<code><mode>3): Ditto.
24078         (*mmx_pinsrw): Ditto.
24079         (*mmx_pextrw): Ditto.
24080         (mmx_pshufw_1): Ditto.
24081         (*mmx_uavgv8qi3): Ditto.
24082         (*mmx_uavgv4hi3): Ditto.
24083         ("mmx_psadbw): Ditto.
24084         * config/i386/sse.md (sse_cvtps2pi): Ditto.
24085         (sse_cvttps2pi): Ditto.
24086         (ssse3_pmaddubsw): Ditto.
24087         (*ssse3_pmulhrswv4hi3): Ditto.
24088         (ssse3_psign<mode>3): Ditto.
24090 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
24092         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
24093         adjustment for bit-fields to all aggregate types.
24095 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
24097         * config/rs6000/predicates.md (pcrel_address): Use
24098         SYMBOL_REF_LOCAL_P to determine if a label is local.
24099         (pcrel_external_address): New predicate.
24100         (non_prefixed_mem_operand): Delete, predicate not used.
24101         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
24102         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
24103         addressing.
24104         (SYMBOL_REF_PCREL_P): Likewise.
24106         PR target/91009
24107         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
24108         alternative.
24109         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
24110         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
24111         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
24113 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
24115         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
24116         override on extra_headers.
24118 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
24120         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
24121         * config/darwin-driver.c (darwin_default_min_version): Remove newline
24122         from warning.
24123         (darwin_driver_init): Likewise.
24125 2019-06-28  Jan Beulich  <jbeulich@suse.com>
24127         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
24128         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
24129         Eliminate redundant alternative.
24131 2019-06-28  Jan Beulich  <jbeulich@suse.com>
24133         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
24134         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
24135         Use vector_operand.
24137 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
24139         * config/arc/arc.c (arc_rtx_costs): All short instructions are
24140         having a lower cost regardless of the speed option.
24142 2019-06-28  Jan Beulich  <jbeulich@suse.com>
24144         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
24145         vector_operand plus, on both alternatives, "Bm" constraint.
24147 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
24149         * config/arm/arm.md: Remove redundant constraints from
24150         define_expand but leave reload_inm and reload_outm patterns
24151         untouched since they need special constraints to work.
24152         * config/arm/arm-fixed.md: Remove redundant constraints from
24153         define_expand.
24154         * config/arm/iwmmxt.md: Likewise.
24155         * config/arm/neon.md: Likewise.
24156         * config/arm/sync.md: Likewise.
24157         * config/arm/thumb1.md: Likewise.
24158         * config/arm/vec-common.md: Likewise.
24160 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
24162         * doc/install.texi: Document --disable-tm-clone-registry.
24164 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
24166         PR c++/91024
24167         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
24168         statements.
24170         PR tree-optimization/91010
24171         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
24172         return true.  Otherwise, don't call operand_equal_p if offset1 or
24173         offset2 is NULL and just return false.
24175 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
24177         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
24178         user-specified float mode choice for kernel mode code.
24180 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
24182         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
24183         spec.
24185 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
24187         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
24188         use longcall for 64b code.
24190 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
24192         * builtins.c (get_memory_rtx): Fix comment.
24193         * optabs.def (movmem_optab): Change to cpymem_optab.
24194         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
24195         (emit_block_move_hints): Change movmem to cpymem.
24196         * defaults.h: Change movmem to cpymem.
24197         * targhooks.c (get_move_ratio): Change movmem to cpymem.
24198         (default_use_by_pieces_infrastructure_p): Ditto.
24199         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
24200         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
24201         to cpymem.
24202         * config/aarch64/aarch64.h: Change movmem to cpymem.
24203         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
24204         * config/alpha/alpha.h: Change movmem to cpymem in comment.
24205         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
24206         movmem to cpymem.
24207         * config/arc/arc-protos.h: Change movmem to cpymem.
24208         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
24209         * config/arc/arc.h: Change movmem to cpymem in comment.
24210         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
24211         * config/arm/arm-protos.h: Change movmem to cpymem in names.
24212         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
24213         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
24214         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
24215         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
24216         * config/avr/avr-protos.h: Change movmem to cpymem.
24217         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
24218         avr_out_movmem): Change movmem to cpymem.
24219         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
24220         Change movmem to cpymem.
24221         * config/bfin/bfin-protos.h: Change movmem to cpymem.
24222         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
24223         Change movmem to cpymem.
24224         * config/bfin/bfin.h: Change movmem to cpymem in comment.
24225         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
24226         * config/c6x/c6x-protos.h: Change movmem to cpymem.
24227         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
24228         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
24229         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
24230         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
24231         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
24232         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
24233         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
24234         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
24235         expand_small_cpymem_or_setmem,
24236         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
24237         expand_set_or_cpymem_constant_prologue,
24238         ix86_expand_set_or_cpymem): Change movmem to cpymem.
24239         * config/i386/i386-protos.h: Change movmem to cpymem.
24240         * config/i386/i386.h: Change movmem to cpymem in comment.
24241         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
24242         (setmem<mode>): Change expansion function name.
24243         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
24244         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
24245         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
24246         * config/m32c/m32c-protos.h: Change movmem to cpymem.
24247         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
24248         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
24249         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
24250         to cpymem.
24251         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
24252         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
24253         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
24254         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
24255         Change movmem to cpymem.
24256         * config/mips/mips.h: Change movmem to cpymem.
24257         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
24258         * config/nds32/nds32-memory-manipulation.c
24259         (nds32_expand_movmemsi_loop_unknown_size,
24260         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
24261         nds32_expand_movmemsi_unroll,
24262         nds32_expand_movmemsi): Change movmem to cpymem.
24263         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
24264         * config/nds32/nds32-protos.h: Change movmem to cpymem.
24265         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
24266         (pa_adjust_insn_length): Change call to compute_movmem_length.
24267         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
24268         movmemdi, movmemdi_prereload,
24269         movmemdi_postreload): Change movmem to cpymem.
24270         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
24271         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
24272         * config/riscv/riscv.c: Change movmem to cpymem in comment.
24273         * config/riscv/riscv.h: Change movmem to cpymem.
24274         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
24275         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
24276         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
24277         movmem to cpymem.
24278         * config/s390/s390-protos.h: Change movmem to cpymem.
24279         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
24280         s390_expand_insv): Change movmem to cpymem.
24281         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
24282         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
24283         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
24284         * config/sparc/sparc.h: Change movmem to cpymem in comment.
24285         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
24286         for nonexistent function.
24287         * config/vax/vax.h: Change movmem to cpymem in comment.
24288         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
24289         * config/visium/visium.h: Change movmem to cpymem in comment.
24290         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
24291         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
24292         * doc/md.texi: Change movmem to cpymem and update description to match.
24293         * doc/rtl.texi: Change movmem to cpymem.
24294         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
24295         * doc/tm.texi: Regenerate.
24297 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
24299         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
24300         -fvariable-expansion-in-unroller by default.
24301         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
24302         default for Power.
24304 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
24306         Revert
24307         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
24308         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
24310         * config.gcc(rs6000-*-*): Define target_gtfiles.
24312 2019-06-27  Jan Hubicka  <jh@suse.cz>
24314         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
24315         (add_type_duplicate): When odr hash is not allocated, to nothing.
24316         (odr_based_tbaa_p): New function.
24317         (set_type_canonical_for_odr_type): New function.
24318         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
24319         set_type_canonical_for_odr_type): New.
24320         * tree.c (gimple_canonical_types_compatible_p): ODR types with
24321         ODR based TBAA are not equivalent to non-ODR types.
24323 2019-06-27  Martin Liska  <mliska@suse.cz>
24325         PR tree-optimization/90974
24326         PR rtl-optimization/90975
24327         PR rtl-optimization/90976
24328         PR target/91016
24329         PR tree-optimization/91017
24330         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
24331         unused tmp.
24332         * lra.c (lra_set_insn_recog_data): Remove a leftover from
24333         initial commit of IRA.
24334         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
24335         of op0 and op1.
24336         * tree-vect-loop.c (vect_create_epilog_for_reduction):
24337         Remove unused mode1.
24338         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
24339         to new_stmt_info.
24341 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
24343         PR target/90991
24344         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
24345         instead of register_operand for operands[1], add m to its constraints
24346         if operands[2] uses "C" constraint.  Ensure in condition that if
24347         operands[2] is not 0, then operands[1] is not a MEM.  For last two
24348         alternatives, use unaligned loads instead of aligned if operands[1] is
24349         misaligned_operand.
24351 2019-06-27  Martin Liska  <mliska@suse.cz>
24353         * asan.c (asan_emit_allocas_unpoison): Remove obviously
24354         dead assignments.
24355         * bt-load.c (move_btr_def): Likewise.
24356         * builtins.c (expand_builtin_apply_args_1): Likewise.
24357         (expand_builtin_apply): Likewise.
24358         * cfgexpand.c (expand_asm_stmt): Likewise.
24359         (construct_init_block): Likewise.
24360         * cfghooks.c (verify_flow_info): Likewise.
24361         * cfgloopmanip.c (remove_path): Likewise.
24362         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
24363         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
24364         * combine.c (simplify_if_then_else): Likewise.
24365         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
24366         (choose_basereg): Likewise.
24367         (ix86_expand_prologue): Likewise.
24368         (ix86_preferred_output_reload_class): Likewise.
24369         * cselib.c (cselib_record_sets): Likewise.
24370         * df-scan.c (df_scan_alloc): Likewise.
24371         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
24372         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
24373         * emit-rtl.c (try_split): Likewise.
24374         * graphite-scop-detection.c (assign_parameter_index_in_region):
24375         Likewise.
24376         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
24377         * ira-color.c (setup_profitable_hard_regs): Likewise.
24378         * ira.c (rtx_moveable_p): Likewise.
24379         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
24380         * read-rtl.c (read_subst_mapping): Likewise.
24381         * regrename.c (scan_rtx): Likewise.
24382         * reorg.c (fill_slots_from_thread): Likewise.
24383         * tree-inline.c (tree_function_versioning): Likewise.
24384         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
24385         * tree-ssa-sink.c (statement_sink_location): Likewise.
24386         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
24387         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
24388         (vect_create_epilog_for_reduction): Likewise.
24389         * tree.c (build_nonstandard_integer_type): Likewise.
24391 2019-06-27  Richard Biener  <rguenther@suse.de>
24393         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
24395 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
24397         PR tree-optimization/89772
24398         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
24399         out-of-bound accesses checking.
24401 2019-06-27  Martin Liska  <mliska@suse.cz>
24403         PR tree-optimization/91014
24404         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
24405         when LHS is NULL_TREE.
24407 2019-06-27  Martin Liska  <mliska@suse.cz>
24409         * symbol-summary.h (traverse): Pass
24410         argument a to the call of callback.
24411         (gt_ggc_mx): Mark arguments as unused.
24412         (gt_pch_nx): Likewise.
24414 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
24416         PR target/62147
24417         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
24418         finiteness.
24420 2019-06-26  Jeff Law  <law@redhat.com>
24422         PR tree-optimization/90883
24423         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
24424         (delete_dead_or_redundant_assignment): Likewise.
24426         PR tree-optimization/90883
24427         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
24428         * tree-ssa-dse.c: Update various comments to distinguish between
24429         dead and redundant stores.
24430         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
24431         (dse_optimize_redundant_stores): New function.
24432         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
24433         Distinguish between dead and redundant calls in dump output.  All
24434         callers updated.
24435         (delete_dead_or_redundant_assignment): Similarly for assignments.
24436         (dse_optimize_stmt): Handle _CHK variants.  For statements which
24437         store 0 into multiple memory locations, try to prove a subsequent
24438         store is redundant.
24440 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24442         PR target/89021
24443         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
24444         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
24446 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
24448         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
24449         (branch_islands): New extern.
24450         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
24451         * config/rs6000/rs6000.c: .. here.
24453 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
24455         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
24456         (powerpc*-*-*) ... to here.
24458 2019-06-26  Jeff Law  <law@redhat.com>
24460         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
24461         memcpy, memmove and memset builtins.
24462         (maybe_trim_memstar_call): Likewise.
24464 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
24466         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
24468 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
24470         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
24472 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
24474         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
24475         declaration.
24476         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
24477         "static".
24478         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
24479         declaration.
24481 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
24483         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
24485 2019-06-26  Richard Biener  <rguenther@suse.de>
24487         PR ipa/90982
24488         * tree-inline.c (remap_ssa_name): Copy SSA range info.
24490 2019-06-26  Richard Biener  <rguenther@suse.de>
24492         * lto-streamer.h (lto_bitmap_alloc): Remove.
24493         (lto_bitmap_free): Likewise.
24494         * lto-streamer.c (lto_bitmap_alloc): Remove.
24495         (lto_bitmap_free): Likewise.
24496         (lto_obstack): Likewise.
24497         (lto_obstack_initialized): Likewise.
24498         * lto-streamer-out.c (lto_output): Use own obstack for local
24499         bitmap, free it consistently.
24501 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
24503         PR target/90991
24504         * config/i386/sse.md
24505         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
24506         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
24507         insns if operands[2] is misaligned_operand.
24509 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
24511         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
24512         TARGET_POWERPC64.
24513         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
24514         to GPR.
24516 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
24518         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
24520 2019-06-26  Martin Liska  <mliska@suse.cz>
24522         PR tree-optimization/90973
24523         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
24524         epilogue_cost_vec instead of prologue_cost_vec for
24525         a epilogue cost.
24527 2019-06-26  Martin Liska  <mliska@suse.cz>
24529         * bb-reorder.c (connect_better_edge_p): Add missing else
24530         statement in the middle of if-else statements.
24532 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
24533             H.J. Lu  <hongjiu.lu@intel.com>
24534             Olga Makhotina  <olga.makhotina@intel.com>
24536         * common/config/i386/i386-common.c
24537         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
24538         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
24539         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
24540         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
24541         (ix86_handle_option): Handle -mavx512vp2intersect.
24542         * config/i386/avx512vp2intersectintrin.h: New.
24543         * config/i386/avx512vp2intersectvlintrin.h: New.
24544         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
24545         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24546         AVX512VP2INTERSECT.
24547         * config/i386/i386-builtin-types.def: Add new types.
24548         * config/i386/i386-builtin.def: Add new builtins.
24549         * config/i386/i386-builtins.c: (enum processor_features): Add
24550         F_AVX512VP2INTERSECT.
24551         (static const _isa_names_table isa_names_table): Ditto.
24552         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24553         __AVX512VP2INTERSECT__.
24554         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
24555         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
24556         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
24557         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
24558         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
24559         * config/i386/i386-options.c (ix86_target_string): Add
24560         -mavx512vp2intersect.
24561         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
24562         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
24563         P2HImode and P2QImode.
24564         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
24565         number for P2QImode and P2HImode.
24566         (ix86_regmode_natural_size): New function.
24567         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
24568         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
24569         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
24570         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
24571         * config/i386/i386.opt: Add -mavx512vp2intersect.
24572         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
24573         avx512vp2intersectvlintrin.h.
24574         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
24575         (define_mode_iterator VI48_AVX512VP2VL): New.
24576         (avx512vp2intersect_2intersect<mode>,
24577         avx512vp2intersect_2intersectv16si): New define_insn patterns.
24578         * config.gcc: Add avx512vp2intersectvlintrin.h and
24579         avx512vp2intersectintrin.h to extra_headers.
24580         * doc/invoke.texi: Document -mavx512vp2intersect.
24582 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
24584         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
24586 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
24588         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
24589         savres_routine_syms, savres_routine_name, morestack_ref,
24590         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24591         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24592         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24593         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24594         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24595         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24596         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24597         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24598         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24599         get_stack_clash_protection_probe_interval,
24600         get_stack_clash_protection_guard_size,
24601         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24602         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24603         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24604         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24605         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24606         gen_frame_mem_offset, rs6000_savres_routine_name,
24607         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24608         ptr_regno_for_savres, rs6000_emit_savres_rtx,
24609         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24610         rs6000_global_entry_point_prologue_needed_p,
24611         rs6000_get_separate_components, rs6000_components_for_bb,
24612         rs6000_disqualify_components, rs6000_emit_prologue_components,
24613         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24614         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24615         rs6000_output_savres_externs, rs6000_output_function_prologue,
24616         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24617         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24618         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24619         rs6000_output_function_epilogue, gen_add3_const,
24620         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24621         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24622         to rs6000-logue.c.
24623         (machine_function): Moved to rs6000.h.
24624         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
24625         rs6000-internal.h.
24626         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
24627         savres_routine_syms, savres_routine_name, morestack_ref,
24628         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24629         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24630         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24631         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24632         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24633         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24634         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24635         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24636         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24637         get_stack_clash_protection_probe_interval,
24638         get_stack_clash_protection_guard_size,
24639         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24640         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24641         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24642         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24643         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24644         gen_frame_mem_offset, rs6000_savres_routine_name,
24645         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24646         ptr_regno_for_savres, rs6000_emit_savres_rtx,
24647         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24648         rs6000_global_entry_point_prologue_needed_p,
24649         rs6000_get_separate_components, rs6000_components_for_bb,
24650         rs6000_disqualify_components, rs6000_emit_prologue_components,
24651         rs6000_emit_epilogue_components, rs6000_set_handled_components,
24652         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24653         rs6000_output_savres_externs, rs6000_output_function_prologue,
24654         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24655         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24656         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24657         rs6000_output_function_epilogue, gen_add3_const,
24658         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24659         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24660         to here from rs6000.c.
24661         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
24662         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
24663         quad_address_offset_p) Moved to here from rs6000.c.
24664         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
24665         * config/config.gcc: Add new source file rs6000-logue.c to garbage
24666         collector.
24668 2019-06-25  Martin Liska  <mliska@suse.cz>
24670         * hash-table.c (hashtab_chk_error): Move here from ...
24671         * hash-table.h (hashtab_chk_error): ... here.
24673 2019-06-25  Martin Liska  <mliska@suse.cz>
24675         PR tree-optimization/90978
24676         * df-scan.c (df_update_entry_block_defs): Remove dead else
24677         branch.
24678         (df_update_exit_block_uses): Likewise.
24680 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
24681             Andrew Stubbs  <ams@codesourcery.com>
24683         * config.gcc (thread_file): Set to gcn for AMD GCN.
24684         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
24685         (TARGET_EMUTLS_VAR_INIT): New hook.
24687 2019-06-25  Martin Jambor  <mjambor@suse.cz>
24689         PR ipa/90939
24690         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
24692 2019-06-25  Richard Biener  <rguenther@suse.de>
24694         PR tree-optimization/90930
24695         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
24696         into parallel form in the last pass instance.
24698 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
24700         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
24701         (arc_legitimize_pic_address): Simplify and cleanup the function.
24702         (SYMBOLIC_CONST): Remove.
24703         (prepare_pic_move): Likewise.
24704         (prepare_move_operands): Handle complex mov cases here.
24705         (arc_legitimize_address_0): Remove call to
24706         arc_legitimize_pic_address.
24707         (arc_legitimize_address): Remove call to
24708         arc_legitimize_tls_address.
24709         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
24710         (movhi_insn): Likewise.
24712 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
24714         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
24715         PTRDIFF_TYPE.
24716         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
24717         format of "__intN" types for UINTMAX_TYPE.
24718         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
24719         format of "__intN" types for SIZETYPE.
24720         * tree.c (build_common_tree_nodes): Accept "__intN__"
24721         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
24722         * doc/invoke.texi: Document that __intN__ disables pedantic
24723         warnings.
24725 2019-06-25  Jan Hubicka  <jh@suse.cz>
24727         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
24728         base2_alias_set is non-zero before doing TBAA based disambiguation.
24730 2019-06-25  Martin Liska  <mliska@suse.cz>
24732         PR tree-optimization/90973
24733         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
24734         of prologue and epilogue.
24736 2019-06-24  Jan Hubicka  <jh@suse.cz>
24738         * ipa-utils.h (type_with_linkage_p): Verify that type is
24739         CXX_ODR_P.
24740         (odr_type_p): Remove extra return.
24741         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
24742         hash STRING_FLAG only for arrays and integers.
24743         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
24744         Update analogously.
24745         * tree-streamer-out.c (pack_ts_type_common_value_fields):
24746         Likewise.
24747         * print-tree.c (print_node): Print cxx-odr-p
24748         and string-flag.
24749         * tree.c (need_assembler_name_p): Also check that type
24750         is CXX_ODR_TYPE_P
24751         (verify_type_variant): Update verification of SRING_FLAG;
24752         also check CXX_ODR_P.
24753         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
24754         (TYPE_STRING_FLAG): Use it.
24755         (TYPE_CXX_ODR_P): New macro.
24756         * dwarf2out.c (gen_array_type_die): First check that type
24757         is an array and then test string flag.
24759 2019-06-24  Richard Biener  <rguenther@suse.de>
24761         PR tree-optimization/90972
24762         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
24763         in common code, dealing with STRING_CST properly.
24765 2019-06-24  Richard Biener  <rguenther@suse.de>
24767         PR tree-optimization/90930
24768         PR tree-optimization/90316
24769         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
24770         decrement of limit.
24772 2019-06-24  Martin Sebor  <msebor@redhat.com>
24774         * tree-pretty-print.h: Remove unnecessary punctuation characters
24775         from a diagnostic.
24776         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
24778 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
24780         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
24781         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
24782         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
24784 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24786         * config/rs6000/darwin.h: Handle GCC target pragma.
24788 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
24790         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
24792 2019-06-22  Jeff Law  <law@redhat.com>
24794         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24796 2019-06-22  Jan Hubicka  <jh@suse.cz>
24798         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
24799         give up on bitfields; continue searching for different refs
24800         appearing later.
24802 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24804         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24805         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
24806         containing the offset as possible simd lane access.  Look through
24807         widening conversion.  Move the
24808         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24810 2019-06-21  Richard Biener  <rguenther@suse.de>
24812         PR tree-optimization/90930
24813         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24814         flag on new stmts to avoid re-processing them.
24816 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
24818         PR c++/90875 - added -Wswitch-outside-range option
24819         * doc/invoke.texi (Wswitch-outside-range): Document.
24821 2019-06-21  Jeff Law  <law@redhat.com>
24823         PR tree-optimization/90949
24824         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24825         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24827 2019-06-21  Richard Biener  <rguenther@suse.de>
24829         PR debug/90914
24830         * dwarf2out.c (prune_unused_types_walk): Always consider
24831         function-local extern declarations as used.
24833 2019-06-21  Richard Biener  <rguenther@suse.de>
24835         PR tree-optimization/90913
24836         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24837         the scalar variant of if-conversion versioning.
24839 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
24841         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24842         create another "omp scan inscan exclusive" array if
24843         !ctx->scan_inclusive.
24844         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24845         (lower_omp_scan): Likewise.
24846         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24847         2-bit bitfield for simd_lane_access_p member.
24848         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24849         aux == (void *)-4 as simd lane access.
24850         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
24851         comment with permutations to show the canonical permutation order.
24852         (vectorizable_scan_store): Handle exclusive scan.
24853         (vectorizable_store): Call vectorizable_scan_store even for
24854         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24856         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24857         "omp simd array" arrays with one byte elements.
24859 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24861         * config/alpha/alpha.md (@unaligned_store<mode>):
24862         Rename from unaligned_store<mode>.
24863         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24864         * config/alpha/sync.md (@load_locked_<mode>): Rename
24865         from load_locked_<mode>.
24866         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24867         (@atomic_compare_and_swap<mode>_1): Rename
24868         from atomic_compare_and_swap<mode>_1.
24869         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24870         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24871         Use gen_reload_in_aligned and gen_unaligned_store.
24872         (emit_load_locked): Remove.
24873         (emit_store_conditional): Ditto.
24874         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24875         (alpha_split_compare_and_swap): Ditto.
24876         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24877         (alpha_split_compare_and_swap_12): Use gen_load_locked
24878         and gen_store_conditional.
24879         (alpha_split_atomic_exchange): Ditto.
24880         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24881         (alpha_split_atomic_exchange_12): Use gen_load_locked
24882         and gen_store_conditional.
24884 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
24886         * config/aarch64/aarch64-errata.h: New file.
24887         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24888         (CA53_ERR_843419_SPEC): Delete.
24889         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24890         * config/aarch64/aarch64-linux.h: Likewise.
24891         * config/aarch64/aarch64-netbsd.h: Likewise.
24892         * config/aarch64/aarch64-freebsd.h: Likewise.
24894 2019-06-20  Marek Polacek  <polacek@redhat.com>
24896         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24898 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
24900         * config/rs6000/rs6000.md (isa attribute): Add support for
24901         for a future processor.
24903 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
24905         PR target/54855
24906         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24907         standard scalar operation pattern for V2DF.
24908         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24909         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24910         (*ieee_<ieee_maxmin><mode>3): Likewise.
24911         (vec_setv2df_0): Likewise.
24913 2019-06-20  Jan Hubicka  <jh@suse.cz>
24915         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24916         parameter; it has no use in gimple memory model.
24917         (indirect_ref_may_alias_decl_p): Update.
24919 2019-06-20  Martin Liska  <mliska@suse.cz>
24921         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24922         to 10.
24924 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
24926         * tree-vect-stmts.c (enum scan_store_kind): New type.
24927         (scan_store_can_perm_p): Change last argument from int * to
24928         vec<enum scan_store_kind> *, record precisely which permutations
24929         need whole vector left shift or that plus VEC_COND_EXPR.
24930         (vectorizable_scan_store): Adjust caller, use whole vector left shift
24931         and additional VEC_COND_EXPR only for those iterations that need it.
24933 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
24935         * config.gcc: Fix ARM --with-fpu checking and error message.
24937 2019-06-19  Marek Polacek  <polacek@redhat.com>
24939         PR c++/60364 - noreturn after first decl not diagnosed.
24940         * attribs.c (get_attribute_namespace): No longer static.
24941         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
24942         attributes.
24943         (attr_noreturn_exclusions): Make it extern.
24944         * attribs.h (get_attribute_namespace): Declare.
24945         * tree-inline.c (function_attribute_inlinable_p): Use
24946         get_attribute_name.
24948 2019-06-19  Martin Sebor  <msebor@redhat.com>
24950         PR tree-optimization/90626
24951         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24953         PR tree-optimization/90626
24954         * tree-ssa-strlen.c (strxcmp_unequal): New function.
24955         (handle_builtin_string_cmp): Call it.
24957 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24959         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24960         and DARWIN_NOPIE_SPEC.
24961         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24962         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24963         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24964         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24965         (DARWIN_EXPORT_DYNAMIC): Delete.
24966         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24967         and pie options processing to  darwin.h.
24968         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24970 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
24972         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24973         in computing the number of options to be moved.
24975 2019-06-19  Maya Rashish  <coypu@sdf.org>
24977         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24978         (CLEAR_INSN_CACHE) Use it.
24980 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24982         * config/i386/i386.md (cmpstrnsi): Remove dead code.
24984 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
24986         PR middle-end/84521
24987         * builtins.c (expand_builtin_setjmp_setup): Save
24988         hard_frame_pointer_rtx.
24989         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24990         restore fp.
24991         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24992         non-local goto.
24993         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24994         elimination code.
24995         (remove_reg_equal_offset_note): Remove unused function.
24996         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24997         code.
24998         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24999         (arc_builtin_setjmp_frame_value): Remove function.
25000         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25001         (avr_builtin_setjmp_frame_value): Remove function.
25002         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25003         (ix86_builtin_setjmp_frame_value): Remove function.
25004         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
25005         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25006         (sparc_builtin_setjmp_frame_value): Remove function.
25007         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25008         (vax_builtin_setjmp_frame_value): Remove function.
25009         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
25010         pointer if has_nonlocal_label.
25012 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
25014         * doc/md.texi: Document vec_shl_<mode> pattern.
25015         * optabs.def (vec_shl_optab): New optab.
25016         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
25017         argument, if == vec_shl_optab, check for left whole vector shift
25018         pattern rather than right shift.
25019         (expand_vec_perm_const): Add vec_shl_optab support.
25020         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
25021         in the comment.
25022         * tree-vect-generic.c (lower_vec_perm): Support permutations which
25023         can be handled by vec_shl_optab.
25024         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
25025         (check_scan_store): Use it.
25026         (vectorizable_scan_store): If target can't do normal permutations,
25027         try to use whole vector left shifts and if needed a VEC_COND_EXPR
25028         after it.
25029         * config/i386/sse.md (vec_shl_<mode>): New expander.
25031         * omp-low.c (lower_rec_input_clauses): Handle references properly
25032         in inscan clauses.
25033         (lower_omp_scan): Likewise.
25035 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25037         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
25038         mem_mode is BLKmode.
25040 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
25042         PR target/90922
25043         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
25044         pointer adjustment for the case of no callee-saved registers and
25045         stack frame bigger than 128 bytes.
25047 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
25049         PR middle-end/90862
25050         * omp-low.c (check_omp_nesting_restrictions): Handle
25051         GF_OMP_TARGET_KIND_OACC_DECLARE.
25053 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25055         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
25056         (@add<mode>3_carry): Rename from add<mode>3_carry.
25057         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
25058         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
25059         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
25060         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
25061         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
25062         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
25063         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
25064         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
25065         (cmpstrnsi): Use gen_cmp_1.
25066         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
25067         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
25068         (@umonitor_<mode>): Rename from umonitor_<mode>.
25069         * config/i386/i386-expand.c (ix86_expand_copysign):
25070         Use gen_copysign3_const and gen_copysign3_var.
25071         (ix86_expand_xorsign): Use gen_xorsign3_1.
25072         (ix86_expand_branch): Use gen_sub3_carry_ccc,
25073         gen_sub3_carry_ccgz and gen_cmp1.
25074         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
25075         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
25076         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
25077         (ix86_split_lshr): Ditto.
25078         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
25080 2019-06-18  Jason Merrill  <jason@redhat.com>
25082         * tree.c (build_constructor): Add MEM_STAT_DECL.
25084 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25086         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
25087         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
25088         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
25089         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
25090         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
25091         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
25092         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
25093         Use CC_NZC instead of CC.
25094         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
25095         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
25096         (aarch64_print_operand): Handle E_CC_NZCmode.
25097         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
25098         of gen_set_clobber_cc.
25100 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25102         * config/aarch64/aarch64-sve.md: Tabify file.
25104 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25106         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
25107         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
25108         * config/aarch64/aarch64-sve.md: Use it.
25110 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25112         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
25113         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
25114         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
25115         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
25116         (aarch64_expand_sve_vec_cmp_int): Use it.
25117         (aarch64_expand_sve_vec_cmp_float): Likewise.
25118         * config/aarch64/aarch64-sve.md: Likewise throughout.
25120 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25121             Kugan Vivekanandarajah  <kuganv@linaro.org>
25123         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
25124         (*cond_<optab><mode>_z): Fold into...
25125         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
25126         operand 4 can be tied to operand 0 (either inherently or via RA).
25128 2019-06-18  Richard Biener  <rguenther@suse.de>
25130         PR debug/90900
25131         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
25132         as if optimized away.
25134 2019-06-18  Tom de Vries  <tdevries@suse.de>
25136         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
25137         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
25138         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
25139         Rename to ...
25140         (define_insn "@set_softstack_<mode>"): ... this.
25141         (define_insn "omp_simt_enter_<mode>"): Rename to ...
25142         (define_insn "@omp_simt_enter_<mode>"): ... this.
25143         (define_insn "omp_simt_exit_<mode>"): Rename to ...
25144         (define_insn "@omp_simt_exit_<mode>"): ... this.
25146 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
25148         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
25149         vf parameter.  Restore the previous iv step of nscalars_step,
25150         but give it iv_type rather than compare_type.  Tweak code order
25151         to match the comments.
25152         (vect_set_loop_condition_masked): Update accordingly.
25153         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
25154         for iv_precision.  Tweak comment formatting.
25156 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
25158         * config/darwin.c: Strip trailing whitespace.
25160 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
25162         * config/darwin.c (darwin_emit_unwind_label): New default to false.
25163         (darwin_override_options): Set darwin_emit_unwind_label as needed.
25165 2019-06-18  Martin Jambor  <mjambor@suse.cz>
25167         PR ipa/90889
25168         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
25169         caller does not have flag_ipa_cp set.
25171 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25173         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
25174         from "*fold_left_plus_<mode>", updated operands order.
25175         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
25176         * internal-fn.c (mask_fold_left_direct): New define.
25177         (expand_mask_fold_left_optab_fn): Likewise.
25178         (direct_mask_fold_left_optab_supported_p): Likewise.
25179         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
25180         * optabs.def (mask_fold_left_plus_optab): New optab.
25181         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
25182         masked internal_fn for a reduction ifn.
25183         (vectorize_fold_left_reduction): Add support for masking reductions.
25185 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
25187         PR middle-end/80791
25188         * target.def (predict_doloop_p): New hook.
25189         * targhooks.h (default_predict_doloop_p): New declaration.
25190         * targhooks.c (default_predict_doloop_p): New function.
25191         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
25192         * doc/tm.texi: Regenerate.
25193         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
25194         (TARGET_PREDICT_DOLOOP_P): New macro.
25195         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
25197 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
25199         * omp-low.c (struct omp_context): Add scan_inclusive field.
25200         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
25201         if inclusive scan.
25202         (struct omplow_simd_context): Add lastlane member.
25203         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
25204         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
25205         1 or 2 argument.
25206         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
25207         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
25208         (lower_omp_scan): New function.
25209         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
25210         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
25211         check 3rd argument if present rather than 2nd.
25212         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
25213         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
25214         2-bit bitfield.
25215         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25216         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
25217         than 2nd.
25218         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
25219         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
25220         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
25221         init.
25222         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
25223         IFN_GOMP_SIMD_LANE argument.
25224         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
25225         encoded ->aux value.
25226         * tree-vect-stmts.c: Include attribs.h.
25227         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
25228         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
25229         functions.
25230         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
25231         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
25233 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25235         PR target/62055
25236         * config/i386/i386.md (*nabstf2_1): New insn pattern.
25237         (*nabs<mode>2_1): Ditto.
25238         (nabs sse-reg splitter): New splitter.
25239         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
25241 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
25243         PR bootstrap/90873.
25244         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
25245         TMR index check.
25247 2019-06-17  Tom de Vries  <tdevries@suse.de>
25249         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
25250         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
25251         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
25252         ...
25253         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
25254         match_operand 0.
25255         (define_insn "omp_simt_enter_insn"): Rename to ...
25256         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
25257         match_operand 0, 1 and 2, as well as the unspec_volatile result.
25258         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
25259         gen_omp_simt_enter_si.
25260         (define_expand "omp_simt_exit"): New.
25261         (define_insn "omp_simt_exit"): Rename to ...
25262         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
25263         match_operand 0.
25265 2019-06-17  Matthew Green  <mrg@eterna.com.au>
25266             Maya Rashish  <coypu@sdf.org>
25268         * config.gcc (aarch64*-*-netbsd*): New target.
25269         * config/aarch64/aarch64-netbsd.h: New file.
25270         * config/aarch64/t-aarch64-netbsd: Likewise.
25272 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
25274         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
25275         the access path from base to first VIEW_CONVERT_EXPR or
25276         BIT_FIELD_REF.
25278 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
25280         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
25281         access path on BIT_FIELD_REFs.
25283 2019-06-17  Martin Liska  <mliska@suse.cz>
25285         PR ipa/90874
25286         * ipa-utils.h (odr_type_p): Remove dead code.
25288 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25290         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
25291         alternative Solaris 11.4 format.
25292         * configure: Regenerate.
25294 2019-06-17  Tom de Vries  <tdevries@suse.de>
25296         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
25297         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
25298         match_operand 0.
25299         (define_insn "call_value_insn"): Rename to ...
25300         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
25301         match_operand 0.
25302         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
25303         DI.
25305 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
25307         PR middle-end/64242
25308         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
25309         frame clobbers and schedule block.
25310         (builtin_longjmp): Likewise.
25312 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25314         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
25315         describe how to perform MSPABI compliant 64-bit shift.
25316         * config/msp430/msp430.md (ashldi3): New define_expand.
25317         (ashrdi3): New define_expand.
25318         (lshrdi3): New define_expand.
25320 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
25322         * doc/sourcebuild.texi: Document new effective target keyword
25323         longlong64.
25325 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
25327         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
25328         indirect_refs_may_alias_p): Revert accidental commits.
25330         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
25331         at the end of structures.
25333 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
25335         * config/darwin.c (machopic_indirect_call_target): Use renamed
25336         darwin_picsymbol_stubs to decide on output.
25337         (darwin_override_options): Handle darwin_picsymbol_stubs.
25338         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
25339         (LD64_VERSION): Revise default.
25340         * config/darwin.opt: (mpic-symbol-stubs): New option.
25341         (darwin_picsymbol_stubs): New variable.
25342         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
25343         rename to TARGET_MACHO_PICSYM_STUBS.
25344         * config/i386/i386.c (output_pic_addr_const): Likewise.
25345         * config/i386/i386.h Likewise.
25346         * config/rs6000/darwin.h: Likewise.
25347         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
25348         darwin_picsymbol_stubs.
25350 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
25352         * config/darwin.opt (prebind, noprebind, seglinkedit,
25353         noseglinkedit): Add RejectNegative.
25355 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
25357         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
25358         in my previous patch.
25360 2019-06-16  Tom de Vries  <tdevries@suse.de>
25362         PR tree-optimization/89376
25363         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
25365 2019-06-15  Maya Rashish  <coypu@sdf.org>
25367         * doc/invoke.texi (Spec Files): Update location of the
25368         Fortran spec file.
25370 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
25372         * doc/extend.texi (Common Function Attributes): Clarify
25373         no_sanitize.  Fix grammar.
25375 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
25377         * tree-ssa-alias.c (alias_stats): Add
25378         nonoverlapping_component_refs_p_may_alias,
25379         nonoverlapping_component_refs_p_no_alias,
25380         nonoverlapping_component_refs_of_decl_p_may_alias,
25381         nonoverlapping_component_refs_of_decl_p_no_alias.
25382         (dump_alias_stats): Dump them.
25383         (nonoverlapping_component_refs_of_decl_p): Add stats.
25384         (nonoverlapping_component_refs_p): Add stats; do not stop on first
25385         ARRAY_REF.
25387 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25389         * config/i386/i386.md (and<mode>3): Generate zero-extends for
25390         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
25391         only.
25392         (*anddi3_doubleword): Split before reload. Merge with
25393         anddi->zext pre-reload splitter.
25394         (*andndi3_doubleword): Split before reload.
25395         (*<code>di3_doubleword): Ditto.
25396         (*one_cmpldi2_doubleword): Ditto.
25398 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
25400         PR middle-end/90779
25401         * gimplify.c: Include omp-offload.h and context.h.
25402         (gimplify_bind_expr): Add "omp declare target" attributes
25403         to static block scope variables inside of target region or target
25404         functions.
25406 2019-06-15  Tom de Vries  <tdevries@suse.de>
25408         PR tree-optimization/90009
25409         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
25410         Return NULL if bb contains IFN_UNIQUE.
25412 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
25414         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
25415         (un): New define_mode_attr.
25416         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
25417         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
25418         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
25419         merge into ...
25420         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
25422 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
25424         * config/darwin.opt: Add RejectNegative where needed, reorder
25425         and add minimal functional descriptions.
25427 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
25429         PR rtl-optimization/90765
25430         * calls.c (update_stack_alignment_for_call): New function.
25431         (expand_call): Call update_stack_alignment_for_call when
25432         outgoing parameter is passed in the stack.
25433         (emit_library_call_value_1): Likewise.
25434         * function.c (locate_and_pad_parm): Don't update
25435         stack_alignment_needed and preferred_stack_boundary.
25437 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
25439         PR target/90877
25440         * config/i386/i386-features.c
25441         (dimode_scalar_chain::compute_convert_gain): Replace
25442         mmxsse_to_integer with sse_to_integer.
25443         * config/i386/i386.c (ix86_register_move_cost): Verify that
25444         moves between MMX and non-MMX units require secondary memory.
25445         Correct costs of moves between SSE and integer units.
25446         * config/i386/i386.h (processor_costs): Rename cost of moving
25447         SSE register to integer to sse_to_integer.  Rename cost of
25449 2019-06-14  Matt Thomas  <matt@3am-software.com>
25450             Matthew Green  <mrg@eterna.com.au>
25451             Nick Hudson  <skrll@netbsd.org>
25452             Maya Rashish  <coypu@sdf.org>
25453             Richard Earnshaw  <rearnsha@arm.com>
25455         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
25456         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
25457         * config/arm/netbsd-eabi.h: New file.
25458         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
25459         redefining.
25460         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
25461         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
25462         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
25463         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
25465 2019-06-14  Richard Biener  <rguenther@suse.de>
25467         * tree-loop-distribution.c (classify_partition): Return
25468         whether a reduction appeared in all partitions and do not
25469         stop builtin detection because of this.
25470         (distribute_loop): Sort a non-builtin partition last if
25471         there's a reduction in all partitions and make sure the
25472         partition prevailing as last is not a builtin.
25474 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
25476         PR ipa/90401
25477         * ipa-prop.c (add_to_agg_contents_list): New function.
25478         (clobber_by_agg_contents_list_p): Likewise.
25479         (extract_mem_content): Likewise.
25480         (get_place_in_agg_contents_list): Delete.
25481         (determine_known_aggregate_parts): Renamed from
25482         determine_locally_known_aggregate_parts.  New parameter
25483         aa_walk_budget_p.
25485 2019-06-13  Martin Sebor  <msebor@redhat.com>
25487         PR tree-optimization/90662
25488         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
25489         to the same type.
25491 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
25493         PR bootstrap/90873
25494         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
25495         dbase is not TARGET_MEM_REF.
25497 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25499         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
25500         Update all uses.
25501         (and<mode>3): Use gen_extend_insn instead of indirect functions.
25502         Do not generate DImode extends for 32bit targets.
25503         (and->zext post-reload splitter): Use gen_extend_insn
25504         instead of indirect functions.
25505         (anddi->zext pre-reload splitter): New.
25506         (*zext<mode>_doubleword_and): Remove.
25507         (*zext<mode>_doubleword): Ditto.
25508         (*zextsi_doubleword): Dittto.
25510 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25512         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
25513         Use gen_sub3_insn instead of indirect function.
25514         (ix86_expand_ashl_const): Use gen_add2_insn instead of
25515         indirect function.
25516         (ix86_adjust_counter): Ditto.
25518 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
25519             Lijia He  <helijia@linux.ibm.com>
25521         PR tree-optimization/77820
25522         * tree-ssa-threadedge.c
25523         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
25524         function.
25525         (thread_across_edge): Add call to
25526         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
25528 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
25530         * config/darwin-driver.c (validate_macosx_version_min): New.
25531         (darwin_default_min_version): Cleanup and validate supplied version.
25532         (darwin_driver_init): Likewise and push cleaned version into opts.
25534 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
25536         PR tree-optimization/90869
25537         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
25538         converts in MEM_REF referencing decl rather than view converts
25539         from decl type to MEM_REF type.
25541 2019-06-13  Richard Biener  <rguenther@suse.de>
25543         PR tree-optimization/90856
25544         * tree-sra.c (build_ref_for_model): Only use
25545         build_reconstructed_reference when address-spaces are the same.
25547 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
25549         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
25550         wrap ei variable name in the declaration in ()s.
25551         (nvptx_single): Actually use mode_label variable.  Formatting fix.
25553 2019-06-13  Richard Biener  <rguenther@suse.de>
25555         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
25556         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
25557         also return the condition stmt.
25558         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
25559         loop we can version and version that, reusing the loop version
25560         created by if-conversion instead of versioning again.
25562 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
25564         * gimple-loop-versioning.cc (prune_loop_conditions): Use
25565         may_contain_p.
25566         * tree-vrp (value_range_base::may_contain_p): Call into
25567         value_inside_range.
25568         (value_inside_range): Make private inside value_range_base class.
25569         Take min/max from *this.
25570         (range_includes_p): Remove.
25571         * tree-vrp.h (value_range_base): Add value_inside_range.
25572         (range_includes_p): Remove.
25573         (range_includes_zero_p): Call may_contain_p.
25574         * vr-values.c (compare_range_with_value): Same.
25576 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
25578         * doc/extend.texi (ARC Function Attributes): Update info.
25580 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
25582         PR tree-optimization/89713
25583         * doc/invoke.texi (-ffinite-loops): Document new option.
25584         * common.opt (-ffinite-loops): New option.
25585         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
25586         IFN_GOACC_LOOP calls as necessary.
25587         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
25588         is finite.
25589         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
25590         IFN_GOACC_LOOP call is not used.
25591         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
25593 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25595         PR target/88838
25596         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
25597         compare_type is not with Pmode size, we will create an IV with
25598         Pmode size with truncated use (i.e. converted to the correct type).
25599         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
25600         (vect_iv_limit_for_full_masking): New. Factored out of
25601         vect_set_loop_condition_masked.
25602         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
25603         (vect_iv_limit_for_full_masking): Declare.
25605 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25607         PR target/88834
25608         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
25609         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
25610         (get_alias_ptr_type_for_ptr_address): Likewise.
25611         (add_iv_candidate_for_use): Add scaled index candidate if useful.
25612         * tree-ssa-address.c (preferred_mem_scale_factor): New.
25613         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
25614         allow_reg_index_p.
25616 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
25618         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
25620 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
25622         * common/config/pru/pru-common.c: New file.
25623         * config.gcc: Add PRU target.
25624         * config/pru/alu-zext.md: New file.
25625         * config/pru/constraints.md: New file.
25626         * config/pru/predicates.md: New file.
25627         * config/pru/pru-opts.h: New file.
25628         * config/pru/pru-passes.c: New file.
25629         * config/pru/pru-pragma.c: New file.
25630         * config/pru/pru-protos.h: New file.
25631         * config/pru/pru.c: New file.
25632         * config/pru/pru.h: New file.
25633         * config/pru/pru.md: New file.
25634         * config/pru/pru.opt: New file.
25635         * config/pru/t-pru: New file.
25636         * doc/extend.texi: Document PRU pragmas.
25637         * doc/invoke.texi: Document PRU-specific options.
25638         * doc/md.texi: Document PRU asm constraints.
25640 2019-06-12  Martin Sebor  <msebor@redhat.com>
25642         PR middle-end/90676
25643         * tree-pretty-print.c (dump_mem_ref): New function.  Include
25644         MEM_REF type in output when different size than operand.
25645         (dump_generic_node): Move code to dump_mem_ref and call it.
25647 2019-06-12  Martin Sebor  <msebor@redhat.com>
25649         PR tree-optimization/90662
25650         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
25651         to arrays.
25653 2019-06-12  Tom de Vries  <tdevries@suse.de>
25655         PR tree-optimization/90009
25656         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
25658 2019-06-12  Martin Liska  <mliska@suse.cz>
25660         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
25661         the created map.
25662         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
25663         * mem-stats.h (mem_alloc_description::mem_alloc_description):
25664         Do not sanitize created maps.
25666 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
25668         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
25669         value_range::singleton_p.
25670         * tree-vrp.c (value_range_constant_singleton): Remove.
25671         * tree-vrp.h (value_range_constant_singleton): Remove.
25672         * vr-values.c (vr_values::singleton): Use
25673         value_range::singleton_p.
25675 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25677         PR target/90811
25678         * cfgexpand.c (align_local_variable): Add really_expand argument,
25679         don't SET_DECL_ALIGN if it is false.
25680         (add_stack_var): Add really_expand argument, pass it through to
25681         align_local_variable.
25682         (expand_one_stack_var_1): Pass true as really_expand to
25683         align_local_variable.
25684         (expand_one_ssa_partition): Pass true as really_expand to
25685         add_stack_var.
25686         (expand_one_var): Pass really_expand through to add_stack_var.
25688 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
25690         * config/arm/iterators.md (VABAL): New int iterator.
25691         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
25692         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
25693         UNSPEC_VABAL_U values.
25695 2019-06-12  Martin Liska  <mliska@suse.cz>
25697         * value-prof.c (stream_out_histogram_value): Only first value
25698         can't be negative.
25700 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
25702         PR c/90760
25703         * symtab.c (symtab_node::set_section): Allow being called on aliases
25704         as long as they aren't analyzed yet.
25706 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
25708         * config/mips/mips.c (mips_final_postscan_insn): Modify call
25709         to `mips_set_text_contents_type' to indicate whether a
25710         non-debug insn follows.
25712 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
25714         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
25715         enabling -mpcrel by default.
25716         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
25717         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
25718         that the test against -mcpu=future is done first.  Then test if
25719         -mprefixed-addr is on for -mpcrel.
25720         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
25722 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25724         PR target/90811
25725         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
25726         instead of and.u%d.
25728 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25730         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
25732 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
25734         PR c++/90449 - add -Winaccessible-base option.
25735         * doc/invoke.texi (Winaccessible-base): Document.
25737 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
25739         PR tree-optimization/62041
25740         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
25742 2019-06-11  Jason Merrill  <jason@redhat.com>
25744         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
25745         * tree.c (get_tree_code_name): Likewise.
25746         * print-tree.c (print_node): Only briefly print a node with an
25747         invalid code.
25749 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
25751         PR bootstrap/90819
25752         * trans-mem.c (tm_memopt_compute_available): Add assertion
25753         that blocks is not empty.  Formatting fix.
25755 2019-06-11  Martin Liska  <mliska@suse.cz>
25757         PR c++/87847
25758         * hash-table.h: Extend create_gcc, add one parameter
25759         that is passed into hash_table::hash_table.
25761 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25763         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
25764         New prototype.
25765         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
25766         Emit clobber also for non-sse operations.
25767         (ix86_split_fp_absneg_operator): New function.
25768         * config/i386/i386.md (SSEMODEF): New mode iterator.
25769         (ssevecmodef): New mode attribute.
25770         (<code>tf2): Use absneg code iterator.
25771         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
25772         Add three-operand AVX alternatives.
25773         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
25774         Use absneg code iterator and X87MODEF mode iterator.
25775         (absneg fp_reg non-sse splitter): Call absneg code iterator
25776         and X87MODEF mode iterator.
25777         (absneg general_reg non-sse splitter): Use absneg code iterator
25778         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
25779         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
25780         code iterator.  Add three-operand AVX alternative.
25781         (absneg sse_reg splitter): Use absneg code iterator
25782         and SSEMODEF mode iterator.  Handle AVX operands.
25783         (absneg fp_reg splitter): Use absneg code iterator
25784         and MODEF mode iterator.
25785         (absneg general_reg splitter): Merge splitters using MODEF mode
25786         iterator.  Use absneg code iterator.  Call
25787         ix86_split_fp_absneg_operator.
25788         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
25789         Do not enable for non-sse modes before reload.
25790         (CSGNMODE): Remove.
25791         (CSGNVMODE): Ditto.
25792         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
25793         ssevecmodef mode attribute instaed of CSGNVMODE.
25794         (copysign<mode>3_const): Ditto.
25795         (copysign<mode>3_var): Ditto.
25796         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
25797         Use absneg code iterator.  Simplify code using std::swap.
25798         * config/i386/predicates.md (absneg_operator): Remove.
25800 2019-06-10  Martin Sebor  <msebor@redhat.com>
25802         * gimple-fold.c (get_range_strlen): Update comment that didn't
25803         make it into r267503 or related commits.
25805 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
25807         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25808         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25810 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
25812         * tree.def (OMP_SCAN): New tree code.
25813         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25814         OMP_CLAUSE_EXCLUSIVE.
25815         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25816         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25817         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25818         OMP_CLAUSE_{IN,EX}CLUSIVE.
25819         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25820         * tree-nested.c (convert_nonlocal_reference_stmt,
25821         convert_local_reference_stmt, convert_gimple_call): Handle
25822         GIMPLE_OMP_SCAN.
25823         * tree-pretty-print.c (dump_omp_clause): Handle
25824         OMP_CLAUSE_{IN,EX}CLUSIVE.
25825         (dump_generic_node): Handle OMP_SCAN.
25826         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25827         * gimple.h (gomp_scan): New type.
25828         (is_a_helper <gomp_scan *>::test,
25829         is_a_helper <const gomp_scan *>::test): New templates.
25830         (gimple_build_omp_scan): Declare.
25831         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25832         gimple_omp_scan_set_clauses): New inline functions.
25833         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25834         * gimple.c (gimple_build_omp_scan): New function.
25835         (gimple_copy): Handle GIMPLE_OMP_SCAN.
25836         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25837         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25838         GIMPLE_OMP_TASKGROUP.
25839         (dump_gimple_omp_scan): New function.
25840         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25841         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25842         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25843         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25844         (is_gimple_stmt): Handle OMP_SCAN.
25845         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25846         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25847         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25848         mentioned in nested #pragma omp scan.  Handle
25849         OMP_CLAUSE_{IN,EX}CLUSIVE.
25850         (gimplify_expr): Handle OMP_SCAN.
25851         * omp-low.c (check_omp_nesting_restrictions): For parent context,
25852         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
25853         simd constructs.
25854         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25855         GIMPLE_OMP_SCAN.
25857 2019-06-10  Martin Liska  <mliska@suse.cz>
25859         * ipa-cp.c (ignore_edge_p): New function.
25860         (build_toporder_info): Use it.
25861         * ipa-inline.c (ignore_edge_p): New function.
25862         (inline_small_functions): Use it.
25863         * ipa-pure-const.c (ignore_edge_for_nothrow):
25864         Verify opt_for_fn for caller and callee.
25865         (ignore_edge_for_pure_const): Likewise.
25866         * ipa-reference.c (ignore_edge_p): Extend to check
25867         for opt_for_fn.
25868         * ipa-utils.c (searchc): Refactor.
25869         * ipa-utils.h: Fix coding style.
25871 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25873         * config/arc/arc.c (arc_rtx_costs): Update costs.
25875 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
25877         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25878         (arc_split_ior): Likewise.
25879         (arc_check_mov_const): Likewise.
25880         (arc_split_mov_const): Likewise.
25881         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25882         (arc_rtx_costs): Replace check Crr with Cax constraint.
25883         (prepare_move_operands): Cleanup, remove unused code.
25884         (arc_split_ior): New function.
25885         (arc_check_ior_const): Likewise.
25886         (arc_split_mov_const): Likewise.
25887         (arc_check_mov_const): Likewise.
25888         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25889         in define_insn_and_split pattern.
25890         (iorsi3): Likewise.
25891         (mulsi3_v2): Add new matching variant.
25892         (andsi3_i): Cleanup pattern.
25893         (rotrsi3_cnt1): Update pattern.
25894         (rotrsi3_cnt8): New pattern.
25895         (ashlsi2_cnt8): Likewise.
25896         (ashlsi2_cnt16): Likewise.
25897         * config/arc/constraints.md (C0p): Update constraint.
25898         (Crr): Remove it.
25899         (C0x): New pattern.
25900         (Cax): New pattern.
25902 2019-06-10  Martin Liska  <mliska@suse.cz>
25904         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25905         Update coding style.
25906         (sem_item_optimizer::dump_cong_classes):
25907         Print how many items are in a non-singular class.  Improve
25908         coding style.
25910 2019-06-10  Martin Liska  <mliska@suse.cz>
25912         * value-prof.c (dump_histogram_value): Change dump format.
25913         (gimple_mod_subtract_transform): Remove legacy comment.
25915 2019-06-10  Martin Liska  <mliska@suse.cz>
25917         * value-prof.c (dump_histogram_value): Print histogram values
25918         only if present.
25920 2019-06-10  Martin Liska  <mliska@suse.cz>
25922         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25923         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25924         * ipa-profile.c (ipa_profile_generate_summary):
25925         Use get_most_common_single_value.
25926         * tree-profile.c (gimple_init_gcov_profiler):
25927         Instrument with __gcov_one_value_profiler_v2
25928         and __gcov_indirect_call_profiler_v4.
25929         * value-prof.c (dump_histogram_value):
25930         Print all values for HIST_TYPE_SINGLE_VALUE.
25931         (stream_out_histogram_value): Update assert for
25932         N values.
25933         (stream_in_histogram_value): Set number of
25934         counters for HIST_TYPE_SINGLE_VALUE.
25935         (get_most_common_single_value): New.
25936         (gimple_divmod_fixed_value_transform):
25937         Use get_most_common_single_value.
25938         (gimple_ic_transform): Likewise.
25939         (gimple_stringops_transform): Likewise.
25940         (gimple_find_values_to_profile): Set number
25941         of counters for HIST_TYPE_SINGLE_VALUE.
25942         * value-prof.h (get_most_common_single_value): New.
25944 2019-06-10  Martin Liska  <mliska@suse.cz>
25946         * hash-map.h: Pass default value to hash_table ctor.
25947         * hash-table.h: Add default value to call of a ctor.
25949 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
25951         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25952         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25954 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
25956         PR target/90751
25957         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25958         Call pa_output_function_label.
25959         (TARGET_ASM_FUNCTION_PROLOGUE): define.
25960         * config/pa/pa-protos.h (pa_output_function_label): Declare.
25961         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25962         to declaration.
25963         (pa_linux_output_function_prologue): Declare.
25964         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25965         (pa_output_function_label): New.
25966         (pa_output_function_prologue): Revise to use pa_output_function_label.
25967         (pa_linux_output_function_prologue): New.
25968         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25970 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
25972         * tree-vrp.h (value_range_base::intersect): New.
25973         (value_range::intersect_helper): Move from here...
25974         (value_range_base::intersect_helper): ...to here.
25975         * tree-vrp.c (value_range::intersect_helper): Rename to...
25976         (value_range_base::intersect_helper): ...this, and rewrite to
25977         return a value instead of modifying THIS in place.
25978         Also, move equivalence handling...
25979         (value_range::intersect): ...here, while calling intersect_helper.
25980         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25981         calling intersect.
25982         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25983         Same.
25984         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25986 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
25988         * Makefile.in (genprogerr): Add condmd.
25989         (genprog): Remove it here.
25991 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
25993         * doc/invoke.texi (AMD GCN Options): Add gfx906.
25995 2019-06-07  Richard Biener  <rguenther@suse.de>
25997         PR debug/90574
25998         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25999         that appear after user labels.
26001 2019-06-07  Martin Liska  <mliska@suse.cz>
26003         * cselib.c (cselib_init): Disable hash table
26004         sanitization.
26005         * hash-set.h: Pass new default argument to m_table.
26006         * hash-table.c: Add global variable with hash table
26007         sanitization limit.
26008         * hash-table.h (Allocator>::hash_table): Add new argument
26009         to ctor.
26010         (hashtab_chk_error): New.
26011         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
26012         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
26013         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
26015 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
26017         * common.opt (flto-odr-type-merging): Ignore.
26018         * invoke.texi (-flto-odr-type-merging): Remove.
26019         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
26020         (can_be_vtable_hashed_p): Remove.
26021         (hash_odr_vtable): Remove.
26022         (odr_vtable_hasher::hash): Remove.
26023         (types_same_for_odr): Remove.
26024         (types_odr_comparable): Remove.
26025         (odr_vtable_hasher::equal): Remove.
26026         (odr_vtable_hash_type, odr_vtable_hash): Remove.
26027         (add_type_duplicate): Do not synchronize vtable and name hashtables.
26028         (get_odr_type): Do not use vtable hash.
26029         (dump_odr_type): Remove commented out code.
26030         (build_type_inheritance_graph): Do not allocate vtable hash.
26031         (rebuild_type_inheritance_graph): Do not delete vtable hash.
26032         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
26033         (odr_type_p): Likewise.
26034         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
26035         test.
26037 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
26039         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
26040         immediately after same_types_for_tbaa_p returns -1 and continue
26041         looking for possible exact match; if matching types are arrays
26042         watch for partial overlaps.
26043         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
26044         (indirect_refs_may_alias_p): Do type based disambiguation first;
26045         update comment.
26047 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
26049         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
26051 2019-06-07  Martin Liska  <mliska@suse.cz>
26053         * doc/invoke.texi: Remove param.
26054         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
26055         Remove.
26056         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
26057         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
26058         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
26059         * profile.c (instrument_values): Remove
26060         HIST_TYPE_INDIR_CALL_TOPN.
26061         * tree-profile.c (init_ic_make_global_vars):
26062         Always build __gcov_indirect_call only.
26063         (gimple_init_gcov_profiler): Remove usage
26064         of PARAM_INDIR_CALL_TOPN_PROFILE.
26065         (gimple_gen_ic_profiler): Likewise.
26066         * value-prof.c (dump_histogram_value): Likewise.
26067         (stream_in_histogram_value): Likewise.
26068         (gimple_indirect_call_to_profile): Likewise.
26069         (gimple_find_values_to_profile): Likewise.
26070         * value-prof.h (enum hist_type): Likewise.
26072 2019-06-07  Martin Liska  <mliska@suse.cz>
26074         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
26075         function.
26077 2019-06-07  Martin Liska  <mliska@suse.cz>
26079         PR tree-optimization/78902
26080         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
26081         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
26082         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
26083         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
26084         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
26085         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
26086         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
26087         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
26088         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
26089         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
26090         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
26091         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
26092         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
26093         New.
26094         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
26095         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
26096         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
26097         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
26098         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
26099         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
26100         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
26101         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
26102         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
26103         warn_unused_result attribute.
26104         (BUILT_IN_STRDUP): Likewise.
26105         (BUILT_IN_STRNDUP): Likewise.
26106         (BUILT_IN_ALLOCA): Likewise.
26107         (BUILT_IN_CALLOC): Likewise.
26108         (BUILT_IN_MALLOC): Likewise.
26109         (BUILT_IN_REALLOC): Likewise.
26111 2019-06-06  Jim Wilson  <jimw@sifive.com>
26113         PR target/89955
26114         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
26115         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
26116         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
26118 2019-06-06  Martin Sebor  <msebor@redhat.com>
26120         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
26121         (handle_builtin_malloc): Remove trailing spaces.
26122         (handle_builtin_memset): Same.
26123         (handle_builtin_memcmp): Same.
26124         (compute_string_length): Same.
26125         (determine_min_objsize): Same.
26126         (handle_builtin_string_cmp): Same.
26127         (handle_char_store): Same.  Break up excessively long line.
26129 2019-06-06  Martin Jambor  <mjambor@suse.cz>
26131         * tree-sra.c (build_reconstructed_reference): Drop the alignment
26132         check.
26134 2019-06-06  Martin Jambor  <mjambor@suse.cz>
26136         * tree-sra.c (struct access): New field grp_same_access_path.
26137         (dump_access): Dump it.
26138         (build_reconstructed_reference): New function.
26139         (build_ref_for_model): Use it if possible.
26140         (path_comparable_for_same_access): New function.
26141         (same_access_path_p): Likewise.
26142         (sort_and_splice_var_accesses): Set the new flag.
26143         (analyze_access_subtree): Likewise.
26144         (propagate_subaccesses_across_link): Propagate zero value of the new
26145         flag down the access tree.
26147 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
26149         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
26150         * config/gcn/gcn.opt (gpu_type): Add gfx906.
26151         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
26152         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
26153         Add gfx906.
26155 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26157         PR tree-optimization/90332
26158         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
26159         Handle VALS containing two vectors.
26160         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
26161         to...
26162         (@aarch64_combinez<mode>): ... This.
26163         (*aarch64_combinez_be<mode>): Rename to...
26164         (@aarch64_combinez_be<mode>): ... This.
26165         (vec_init<mode><Vhalf>): New define_expand.
26166         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
26168 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
26170         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
26171         library functions only when not optimizing for size.
26172         (ashlsi3): Likewise.
26173         (ashrhi3): Likewise.
26174         (ashrsi3): Likewise.
26175         (lshrhi3): Likewise.
26176         (lshrsi3): Likewise.
26178 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
26180         PR rtl-optimization/88751
26181         * ira.c (ira): Use the number of the actually referenced registers
26182         when calculating the threshold.
26184 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
26186         * configure: Regenerate.
26188 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
26190         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
26191         register if it is in memory, so the shift can be emulated with a rotate
26192         instruction.
26193         (ashrhi3): Likewise.
26194         (lshrhi3): Likewise.
26196 2019-06-06  Martin Liska  <mliska@suse.cz>
26198         PR tree-optimization/87954
26199         * match.pd: Simplify mult where both arguments are 0 or 1.
26201 2019-06-06  Richard Biener  <rguenther@suse.de>
26203         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
26204         put equivalences on UNDEFINED ranges.
26205         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
26206         Make sure to drop defs of stmts added during simplification
26207         to VARYING.
26209 2019-06-06  Richard Biener  <rguenther@suse.de>
26211         * tree-ssa-structalias.c: Include tree-cfg.h.
26212         (make_heapvar): Do not make heap vars artificial.
26213         (find_func_aliases_for_builtin_call): Handle stack allocation
26214         functions.
26215         (find_func_aliases): Delay processing of simple enough returns
26216         in non-IPA mode.
26217         (set_uids_in_ptset): Adjust.
26218         (find_what_var_points_to): Likewise.
26219         (solve_constraints): Do not dump points-to sets here.
26220         (compute_points_to_sets): Post-process return statements,
26221         amending the escaped solution.  Dump points-to sets afterwards.
26222         (ipa_pta_execute): Dump points-to sets.
26224 2019-06-06  Martin Liska  <mliska@suse.cz>
26226         PR web/87933
26227         * doc/install.texi: Fix HTML headers and
26228         titles for 'Installing GCC' pages.
26230 2019-06-06  Martin Liska  <mliska@suse.cz>
26232         * ipa-icf-gimple.h (dump_message_1): Remove.
26233         (dump_message): Likewise.
26234         (return_false_with_message_1): Print also file.
26235         (return_false_with_msg): Likewise.
26236         (return_with_result): Likewise.
26237         (return_with_debug): Likewise.
26238         * ipa-icf.c (sem_function::equals_private): Remove call
26239         to dump_message.
26241 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
26243         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
26244         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
26245         memory operand for it.
26246         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
26248 2019-06-05  Martin Sebor  <msebor@redhat.com>
26250         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
26251         Adjust quoting and hyphenation.
26252         * convert.c (convert_to_real_1): Same.
26253         * gcc.c (driver_wrong_lang_callback): Same.
26254         (driver::handle_unrecognized_options): Same.
26255         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
26256         * opts-common.c (cmdline_handle_error): Same.
26257         (read_cmdline_option): Same.
26258         * opts-global.c (complain_wrong_lang): Same.
26259         (print_ignored_options): Same.
26260         (handle_common_deferred_options): Same.
26261         * pretty-print.h: Same.
26262         * print-rtl.c (debug_bb_n_slim): Same.
26263         * sched-rgn.c (make_pass_sched_fusion): Same.
26264         * tree-cfg.c (verify_gimple_assign_unary): Same.
26265         (verify_gimple_label): Same.
26266         * tree-ssa-operands.c (verify_ssa_operands): Same.
26267         * varasm.c (do_assemble_alias): Same.
26268         (assemble_alias): Same.
26270 2019-06-05  Richard Henderson  <rth@twiddle.net>
26272         * config/alpha/alpha.c (direct_return): Move down after
26273         struct machine_function definition; use saved frame_size;
26274         return bool.
26275         (struct machine_function): Add sa_mask, sa_size, frame_size.
26276         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
26277         (alpha_compute_frame_layout): ... new function.
26278         (TARGET_COMPUTE_FRAME_LAYOUT): New.
26279         (alpha_initial_elimination_offset): Use saved sa_size.
26280         (alpha_vms_initial_elimination_offset): Likewise.
26281         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
26282         (alpha_expand_prologue): Use saved frame data.  Merge integer
26283         and fp register save loops.
26284         (alpha_expand_epilogue): Likewise.
26285         (alpha_start_function): Use saved frame data.
26286         * config/alpha/alpha-protos.h (direct_return): Update.
26287         (alpha_sa_size): Remove.
26289 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
26291         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
26292         multiplication by a power-of-two value.
26293         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
26294         and turn the modulo operation into a masking operation.
26296 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
26298         PR debug/90733
26299         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
26300         with VOIDmode inner operands.
26302 2019-06-05  Richard Biener  <rguenther@suse.de>
26304         PR middle-end/90726
26305         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
26306         turn an expression graph into a tree.
26308 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
26310         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
26311         member.
26312         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
26313         treat it like explicit monotonic schedule modifier.
26314         (expand_omp_for): Initialize has_lastprivate_conditional.
26315         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
26316         schedule modifier.
26318         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
26319         references, lookup in in hash map MEM_REF operand instead of the
26320         MEM_REF itself.
26321         (lower_omp_1): When looking for lastprivate conditional assignments,
26322         handle MEM_REFs with REFERENCE_TYPE operands.
26324         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
26325         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
26326         and references a VLA.  Handle references to non-VLAs if is_simd
26327         all privatization clauses like reductions.
26328         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
26329         If omp_is_reference, use always omp simd arrays and set
26330         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
26331         fails, emit reference initialization.
26333 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
26335         PR target/89803
26336         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
26337         _mm_mask_fpclass_sd_mask): New intrinsics.
26338         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
26339         * config/i386/i386-builtin.def
26340         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
26341         New builtins.
26342         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
26343         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
26344         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
26345         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
26346         case QI_FTYPE_V2SF_INT): Ditto.
26347         * config/i386/sse.md
26348         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
26349         Extended to insnstructions with mask operands.
26351 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26353         * config/rs6000/constraints.md (define_register_constraint "wp"):
26354         Delete.
26355         (define_register_constraint "wq"): Delete.
26356         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26357         (rs6000_init_hard_regno_mode_ok): Adjust.
26358         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26359         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
26360         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
26361         (define_mode_attr VSa): Delete.
26362         (define_mode_attr VSisa): New.
26363         (rest of file): Adjust.
26364         * doc/md.texi (Machine Constraints): Adjust.
26366 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26368         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
26369         (define_attr "enabled"): Handle those new isa values.
26371 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26373         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
26374         (define_mode_attr VSr5): Delete.
26375         (define_mode_attr VStype_sqrt): Delete.
26376         (define_mode_iterator VSX_SPDP): Delete.
26377         (define_mode_attr VS_spdp_res): Delete.
26378         (define_mode_attr VS_spdp_insn): Delete.
26379         (define_mode_attr VS_spdp_type): Delete.
26380         (*vsx_sqrt<mode>2): Adjust.
26381         (vsx_<VS_spdp_insn>): Delete, split to...
26382         (vsx_xscvdpsp): ... this.  New.  And...
26383         (vsx_xvcvspdp): ... this.  New.  And...
26384         (vsx_xvcvdpsp): ... this.  New.
26386 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26388         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
26389         and V2DF.
26390         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
26391         (rest of file): Adjust.
26393 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26395         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
26396         (vsx_extract_<mode>_var): Ditto.
26398 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26400         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
26401         with just "wa".
26403 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26405         * config/rs6000/constraints.md (define_register_constraint "ww"):
26406         Delete.
26407         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26408         (rs6000_init_hard_regno_mode_ok): Adjust.
26409         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26410         RS6000_CONSTRAINT_ww.
26411         * config/rs6000/rs6000.md: Adjust.
26412         * config/rs6000/vsx.md: Adjust.
26413         * doc/md.texi (Machine Constraints): Adjust.
26415 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26417         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
26418         (define_mode_attr sd): New.
26419         (define_mode_attr s): New.
26420         (define_mode_attr Ftrad): Delete.
26421         (define_mode_attr Fvsx): Delete.
26422         (define_mode_attr Fs): Delete.
26423         (rest of file): Use the new mode attributes.
26424         * config.rs6000/vsx.md: Use the new mode attributes.
26426 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26428         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
26429         with just "wa".
26431 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26433         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
26434         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
26435         used with VSX_B, VSX_D, or VSX_F, with just "wa".
26437 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
26439         PR target/78263
26440         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
26441         C++ with strict ANSI requirements.
26443 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
26445         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
26446         computations when step is 1.
26448 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26450         * config/rs6000/constraints.md (define_register_constraint "wf"):
26451         Delete.
26452         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26453         (rs6000_init_hard_regno_mode_ok): Adjust.
26454         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26455         RS6000_CONSTRAINT_wf.
26456         * config/rs6000/rs6000.md: Adjust.
26457         * config/rs6000/vsx.md: Adjust.
26458         * doc/md.texi (Machine Constraints): Adjust.
26460 2019-06-04  Andrew Pinski  <apinski@marvell.com>
26462         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
26463         Fix ILP32 value.
26465 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26467         * config/rs6000/constraints.md (define_register_constraint "wd"):
26468         Delete.
26469         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26470         (rs6000_init_hard_regno_mode_ok): Adjust.
26471         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26472         RS6000_CONSTRAINT_wd.
26473         * config/rs6000/rs6000.md: Adjust.
26474         * config/rs6000/vsx.md: Adjust.
26475         * doc/md.texi (Machine Constraints): Adjust.
26477 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26479         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
26480         (rest of file): Adjust.
26482 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26484         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
26485         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
26486         (vsx_splat_<mode>_reg): Adjust.
26488 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26490         * config/rs6000/constraints.md (define_register_constraint "ws"):
26491         Delete.
26492         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26493         (rs6000_init_hard_regno_mode_ok): Adjust.
26494         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26495         RS6000_CONSTRAINT_ws.
26496         * config/rs6000/rs6000.md: Adjust.
26497         * config/rs6000/vsx.md: Adjust.
26498         * doc/md.texi (Machine Constraints): Adjust.
26500 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26502         * config/rs6000/constraints.md (define_register_constraint "wv"):
26503         Delete.
26504         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26505         (rs6000_init_hard_regno_mode_ok): Adjust.
26506         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26507         RS6000_CONSTRAINT_wv.
26508         * config/rs6000/rs6000.md: Adjust.
26509         * config/rs6000/vsx.md: Adjust.
26510         * doc/md.texi (Machine Constraints): Adjust.
26512 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
26514         * config/rs6000/constraints.md (define_register_constraint "wi"):
26515         Delete.
26516         (define_register_constraint "wt"): Delete.
26517         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26518         (rs6000_init_hard_regno_mode_ok): Adjust.
26519         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26520         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
26521         * config/rs6000/rs6000.md: Adjust.
26522         * config/rs6000/vsx.md: Adjust.
26523         * doc/md.texi (Machine Constraints): Adjust.
26525 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26527         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
26528         const.
26529         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
26530         default_elf_asm_output_external.
26532 2019-06-04  Martin Liska  <mliska@suse.cz>
26534         * ipa-icf.c (INCLUDE_LIST): Remove.
26535         (sem_item_optimizer::execute): Remove call to init_wpa.
26536         * ipa-icf.h (init_wpa): Remove.
26538 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
26540         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
26541         conditional on combined for simd.
26542         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
26543         member.
26544         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
26545         constructs, don't remove lastprivate_conditional_map, but instead set
26546         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
26547         to parent construct temporaries.
26548         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
26549         like !ctx->lastprivate_conditional_map.
26550         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
26551         use up->outer context instead of up.
26552         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
26553         gimple_omp_for_combined_p.
26554         (expand_omp_for_static_nochunk): Likewise.
26555         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
26556         probably moved over into expand_omp_for_generic rather than being copied
26557         there.
26559 2019-06-04  Martin Liska  <mliska@suse.cz>
26561         * value-prof.c (dump_histogram_value): Fix typo.
26562         (gimple_mod_subtract_transform): Likewise.
26564 2019-06-04  Richard Biener  <rguenther@suse.de>
26566         PR middle-end/90726
26567         * tree-chrec.c (chrec_contains_symbols): Add to visited.
26568         (tree_contains_chrecs): Likewise.
26569         (chrec_contains_symbols_defined_in_loop): Move here and avoid
26570         exponential behaivor from ...
26571         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26572         ... here.
26573         (expression_expensive_p): Avoid exponential behavior and compute
26574         expanded size, rejecting any expansion.
26575         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
26576         (idx_contains_abnormal_ssa_name_p): Likewise.
26577         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
26578         (contains_abnormal_ssa_name_p): Simplify and use
26579         walk_tree_without_duplicates.
26581 2019-06-04  Richard Biener  <rguenther@suse.de>
26583         PR tree-optimization/90738
26584         Revert
26585         2019-06-03  Richard Biener  <rguenther@suse.de>
26587         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26588         full reference tree and record in ref->ref.
26589         (vn_reference_lookup_3): Pass in original ref to
26590         ao_ref_init_from_vn_reference.
26591         (vn_reference_lookup): Likewise.
26592         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26593         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26594         Handle non-decl bases in the original reference.
26596 2019-06-04  Martin Liska  <mliska@suse.cz>
26598         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
26599         number of references.
26600         (sem_item_optimizer::do_congruence_step):
26601         (sem_item_optimizer::worklist_push): Dump how references
26602         a class has.
26603         (sem_item_optimizer::worklist_pop): Use heap.
26604         (sem_item_optimizer::process_cong_reduction): Likewise.
26605         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
26607 2019-06-04  Martin Liska  <mliska@suse.cz>
26609         * ipa-icf.h (struct sem_usage_pair_hash): New.
26610         (sem_usage_pair_hash::hash): Likewise.
26611         (sem_usage_pair_hash::equal): Likewise.
26612         (struct sem_usage_hash): Likewise.
26613         * ipa-icf.c (sem_item::sem_item): Initialize
26614         referenced_by_count.
26615         (sem_item::add_reference): Register a reference
26616         in ref_map and not in target->usages.
26617         (sem_item::setup): Remove initialization of
26618         dead vectors.
26619         (sem_item::~sem_item): Remove usage of dead vectors.
26620         (sem_item::dump): Remove dump of references.
26621         (sem_item_optimizer::sem_item_optimizer): Initialize
26622         m_references.
26623         (sem_item_optimizer::read_section): Remove useless
26624         dump.
26625         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
26626         (sem_item_optimizer::build_graph): Pass m_references
26627         to ::add_reference.
26628         (sem_item_optimizer::verify_classes): Remove usage of dead
26629         vectors.
26630         (sem_item_optimizer::traverse_congruence_split): Return true
26631         when a class is split.
26632         (sem_item_optimizer::do_congruence_step_for_index): Use
26633         hash_map for look up of (sem_item *, index). That brings
26634         significant speed up.
26635         (sem_item_optimizer::do_congruence_step): Return true
26636         when a split is done.
26637         (congruence_class::is_class_used): Use referenced_by_count.
26639 2019-06-04  Alan Modra  <amodra@gmail.com>
26641         PR target/90689
26642         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
26643         error.
26645 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26647         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
26648         * config/rs6000/rs6000.c (direct_move_p): Adjust.
26649         (rs6000_secondary_reload_simple_move): Adjust.
26650         (rs6000_opt_masks): Neuter the "mfpgpr" option.
26651         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
26652         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
26653         comment.
26654         (power6x): Adjust.
26655         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
26656         (floatunssi<mode>2_lfiwzx): Adjust.
26657         (fix_trunc<mode>si2_stfiwx): Adjust.
26658         (fixuns_trunc<mode>si2_stfiwx): Adjust.
26659         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
26660         (mfpgpr): Mark as deprecated.
26661         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
26662         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
26663         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
26665 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
26667         * config/rs6000/constraints.md (define_register_constraint "wg"):
26668         Delete.
26669         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26670         RS6000_CONSTRAINT_wg.
26671         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26672         (rs6000_init_hard_regno_mode_ok): Adjust.
26673         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
26674         Delete "wg" alternatives.
26675         * doc/md.texi (Machine Constraints): Adjust.
26677 2019-06-03  Alan Modra  <amodra@gmail.com>
26679         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
26680         (get_uncond_jump_length): Assert length less than INT_MAX and
26681         non-negative.
26683 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26685         PR middle-end/64242
26686         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
26687         block.
26688         (expand_builtin_nonlocal_goto): Likewise.
26690 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26692         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
26693         (aarch64_asm_output_external): Declare.
26694         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
26695         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
26696         (aarch64_asm_output_alias): New.
26697         (aarch64_asm_output_external): New.
26698         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
26699         (ASM_OUTPUT_EXTERNAL): Define.
26701 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
26702         * tree-vrp.h (value_range_base::nonzero_p): New.
26703         (value_range_base::set_nonnull): Rename to...
26704         (value_range_base::set_nonzero): ...this.
26705         (value_range_base::set_null): Rename to...
26706         (value_range_base::set_zero): ...this.
26707         (value_range::set_nonnull): Remove.
26708         (value_range::set_null): Remove.
26709         * tree-vrp.c (range_is_null): Remove.
26710         (range_is_nonnull): Remove.
26711         (extract_range_from_binary_expr): Use value_range_base::*zero_p
26712         instead of range_is_*null.
26713         (extract_range_from_unary_expr): Same.
26714         (value_range_base::set_nonnull): Rename to...
26715         (value_range_base::set_nonzero): ...this.
26716         (value_range::set_nonnull): Remove.
26717         (value_range_base::set_null): Rename to...
26718         (value_range_base::set_zero): ...this.
26719         (value_range::set_null): Remove.
26720         (extract_range_from_binary_expr): Rename set_*null uses to
26721         set_*zero.
26722         (extract_range_from_unary_expr): Same.
26723         (union_helper): Same.
26724         * vr-values.c (get_value_range): Use set_*zero instead of
26725         set_*null.
26726         (vr_values::extract_range_from_binary_expr): Same.
26727         (vr_values::extract_range_basic): Same.
26729 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
26731         PR driver/90684
26732         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
26734 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26736         * config/aarch64/iterators.md (MAX_OPP): New code attr.
26737         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
26738         Rename to...
26739         (aarch64_<su>abd<mode>_3): ... This.
26740         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
26742 2019-06-03  Richard Biener  <rguenther@suse.de>
26744         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26745         full reference tree and record in ref->ref.
26746         (vn_reference_lookup_3): Pass in original ref to
26747         ao_ref_init_from_vn_reference.
26748         (vn_reference_lookup): Likewise.
26749         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26750         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26751         Handle non-decl bases in the original reference.
26753 2019-06-03  Martin Liska  <mliska@suse.cz>
26755         * doc/generic.texi: Remove Java Trees.
26757 2019-06-03  Martin Liska  <mliska@suse.cz>
26759         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
26760         returns 0 when operands are equal.
26762 2019-06-03  Richard Biener  <rguenther@suse.de>
26764         PR tree-optimization/90716
26765         * tree-loop-distribution.c (destroy_loop): Process blocks in
26766         correct order.
26768 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26770         PR target/88837
26771         * vector-builder.h (vector_builder::count_dups): New method.
26772         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
26773         Declare prototype.
26774         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
26775         (vec_init<mode><Vel>): New pattern.
26776         * config/aarch64/aarch64.c (emit_insr): New function.
26777         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
26778         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
26779         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
26780         (aarch64_sve_expand_vector_init): Define two overloaded functions.
26782 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26784         PR tree-optimization/90681
26785         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
26786         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
26787         special case for SLP, but fail on non-groupped loads.
26789 2019-06-03  Martin Liska  <mliska@suse.cz>
26791         * cfg.c (debug): Use TDF_DETAILS for debug and
26792         print edge info only once.
26794 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
26796         PR fortran/90539
26797         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
26799 2019-06-01  Martin Sebor  <msebor@redhat.com>
26801         PR middle-end/90694
26802         * tree-pretty-print.c (dump_generic_node): Add parentheses.
26804 2019-05-31  Jan Hubicka  <jh@suse.cz>
26806         * alias.c: Include ipa-utils.h.
26807         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26808         * ipa-devirt.c (prevailing_odr_type): New.
26809         * ipa-utils.h (previaling_odr_type): Declare.
26811 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26812             Hongtao Liu  <hongtao.liu@intel.com>
26814         PR target/89355
26815         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26816         NOTE_INSN_DELETED_LABEL check.
26818 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
26819             Robert Suchanek  <robert.suchanek@mips.com>
26821         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26822         and 3rd operands of the fmadd/fmsub/maddv builtin.
26824 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26826         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26827         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26828         on OMP_SIMD if not nested inside of worksharing loop that also has
26829         lastprivate conditional clause for the same decl.
26830         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26831         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26832         on simd.
26833         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
26834         on simd construct.
26835         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26836         on simd construct.
26837         (lower_lastprivate_clauses): Likewise.
26838         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26839         calling lower_rec_input_clauses.
26840         (lower_omp_for): Likewise.
26841         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26842         clause on simd construct.
26843         * omp-expand.c (expand_omp_simd): Initialize cond_var if
26844         OMP_CLAUSE__CONDTEMP_ clause is present.
26846         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26847         ivar and lvar.
26849 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
26851         PR c/43673
26852         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26853         TEX_D32, TEX_D64 or TEX_D128.
26855 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26857         * match.pd (~(vec?cst1:cst2)): New transformation.
26859 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
26861         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26862         ((size_t)(A /[ex] B) CMP C): New transformation.
26864 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
26866         * doc/md.texi: Document define_insn_and_rewrite.
26867         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26868         * gensupport.c (queue_elem): Update comment.
26869         (replace_operands_with_dups): New function.
26870         (gen_rewrite_sequence): Likewise.
26871         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26872         * read-rtl.c (apply_subst_iterator): Likewise.
26873         (add_condition_to_rtx, named_rtx_p): Likewise.
26874         (rtx_reader::read_rtx_operand): Likewise.
26875         * config/aarch64/aarch64-sve.md
26876         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26877         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26878         define_insn_and_rewrite.
26879         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26880         Remove separate define_split.
26882 2019-05-31  Jan Hubicka  <jh@suse.cz>
26884         * tree-ssa-alias.c (type_has_components_p): New function.
26885         (aliasing_component_refs_p): Use it.
26887 2019-05-31  Martin Liska  <mliska@suse.cz>
26889         * gdbhooks.py: Add const_tree to TreePrinter.
26891 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
26893         PR debug/86964
26894         * common.opt (feliminate-unused-debug-symbols): Enable by default.
26895         * doc/invoke.texi (Debugging Options): Document new default of
26896         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26898 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
26900         PR tree-optimization/90671
26901         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26902         template_block used to be empty on the first call, don't use
26903         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26904         seq with bb_seq and set it with set_bb_seq.
26906 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
26908         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26910 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26911             Michael Meissner  <meissner@linux.ibm.com>
26913         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26914         (prefixed_mem_operand): Likewise.
26915         (non_prefixed_mem_operand): Likewise.
26916         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26917         prototype.
26918         * config/rs6000/rs6000.c (print_operand_address): Handle
26919         PC-relative addresses.
26920         (mode_supports_prefixed_address_p): New function.
26921         (rs6000_prefixed_address): New function.
26922         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26923         (SYMBOL_REF_PCREL_P): Likewise.
26925 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26927         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26928         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26929         (gimplify_omp_for): If worksharing loop with lastprivate conditional
26930         is nested inside of parallel region, add _condtemp_ clause to both.
26931         * tree-nested.c (convert_nonlocal_omp_clauses,
26932         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26933         assertion failure.
26934         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26935         member.
26936         * omp-general.c (omp_extract_for_data): Compute it.
26937         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26938         (lower_rec_input_clauses): Likewise.
26939         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26940         clause is already present, just add one further one after it.
26941         (lower_lastprivate_clauses): Handle cond_ptr with array type.
26942         (lower_send_shared_vars): Clear _condtemp_ vars.
26943         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26944         or section or taskgroup.
26945         * omp-expand.c (determine_parallel_type): Disallow combining only if
26946         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
26947         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26948         (expand_omp_for_generic, expand_omp_for_static_nochunk,
26949         expand_omp_for_static_chunk, expand_omp_for): Use
26950         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26951         determine if a special set of API routines are needed and if condtemp
26952         needs to be initialized, while always initialize cond_var if
26953         fd->lastprivate_conditional is non-zero.
26955 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26956             Michael Meissner  <meissner@linux.ibm.com>
26958         * config/rs6000/constraints.md (eI): New constraint.
26959         * config/rs6000/predicates.md (cint34_operand): New predicate.
26960         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26961         (SIGNED_34BIT_OFFSET_P): Likewise.
26962         * doc/md.texi (eI): Document constraint.
26964 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
26966         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26968 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
26969             Michael Meissner  <meissner@linux.ibm.com>
26971         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26972         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26973         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26974         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26975         (OTHER_FUTURE_MASKS): Likewise.
26976         (POWERPC_MASKS): Likewise.
26977         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26978         specified without -mprefixed-addr or -mcpu=future.  Error if
26979         -mprefixed-addr is specified without -mcpu=future.
26980         (rs6000_opt_masks): Add entry for prefixed-addr.
26981         * rs6000.opt (mprefixed-addr): New option.
26983 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
26985         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26986         cfun->is_thunk check.
26988 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
26990         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26991         to length.
26993 2019-05-30  Martin Liska  <mliska@suse.cz>
26995         * gdbinit.in: Fix 'ptc' command.  Add trt
26996         that prints TREE_TYPE($).
26998 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
26999             Alan Modra  <amodra@gmail.com>
27001         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
27002         calls here...
27003         (rs6000_indirect_call_template_1): ...and here.
27004         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
27005         plt16_ha, plt16_lo, mtctr indirect calls.  Use
27006         rs6000_pltseq_enum.
27007         (rs6000_decl_ok_for_sibcall): New function.
27008         (rs6000_function_ok_for_sibcall): Refactor.
27009         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
27010         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
27011         when pcrel.  Reorganize.
27012         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
27013         * rs6000.h (rs6000_pltseq_enum): New enum.
27014         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
27015         (*pltseq_tocsave): Use rs6000_pltseq_enum.
27016         (*pltseq_plt16_ha): Likewise.
27017         (*pltseq_plt16_lo): Likewise.
27018         (*pltseq_mtctr): Likewise.
27019         (*pltseq_plt_pcrel): New insn.
27020         (*call_local_aix): Handle @notoc calls.
27021         (*call_value_local_aix): Likewise.
27022         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
27023         (*call_value_nonlocal_aix): Likewise.
27024         (*call_indirect_pcrel): New insn.
27025         (*call_value_indirect_pcrel): Likewise.
27027 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27029         * config/i386/sse.md (*save_multiple<mode>): Rename from
27030         save_multiple<mode>.
27031         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
27032         (*restore_multiple_and_return<mode>): Rename from
27033         restore_multiple_and_return<mode>.
27034         (*restore_multiple_leave_return<mode>): Rename from
27035         restore_multiple_leave_return<mode>.
27037 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
27039         * config.gcc (rx-*-linux*): New target.
27040         * config/rx/elf.opt: New file.
27041         * config/rx/linux.h: Likewise.
27042         * config/rx/t-linux: Likewise.
27043         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
27044         make it zero.
27045         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
27046         (ASM_APP_OFF): Likewise.
27047         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
27048         moved elsewhere.
27050 2019-05-29  Jan Hubicka  <jh@suse.cz>
27052         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
27053         variants are pointer equivalent.
27055 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
27057         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
27058         * config/aarch64/aarch64-sve2.md: New file.
27059         (<u>avg<mode>3_floor): New pattern.
27060         (<u>avg<mode>3_ceil): Likewise.
27061         (*<sur>h<addsub><mode>): Likewise.
27062         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
27063         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
27065 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
27067         PR bootstrap/90543
27068         * optc-save-gen.awk: In cl_optimization_print, use correct condition
27069         for var_opt_string printing.  In cl_optimization_print_diff, print
27070         (null) instead of invoking undefined behavior if one of the
27071         var_opt_string pointers is NULL and use && instead of first || in the
27072         guarding condition.  For var_target_other options, handle const char *
27073         target variables similarly to const char * optimize node variables.
27075 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
27077         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
27078         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
27079         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
27080         Add autib1716 and pacib1716 initialisation.
27081         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
27082         for autib1716 and pacib1716.
27083         * config/aarch64/aarch64-protos.h (aarch64_key_type,
27084         aarch64_post_cfi_startproc): Define.
27085         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
27086         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
27087         aarch64_handle_pac_ret_protection): Set default sign key to A.
27088         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
27089         aarch64_expand_prologue): Add check for b-key.
27090         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
27091         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
27092         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
27093         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
27094         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
27095         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
27096         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27097         * config/aarch64/aarch64.md (do_return): Add check for b-key.
27098         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
27099         pauth_hint_num_a with pauth_hint_num.
27100         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
27101         pauth_hint_num_a with pauth_hint_num.
27102         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
27103         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
27104         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27105         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
27106         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
27107         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
27108         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
27109         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27110         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
27111         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
27112         UNSPEC_AUTIA1716 respectively.
27113         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
27114         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
27115         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
27116         * doc/invoke.texi (-mbranch-protection): Add b-key type.
27117         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
27118         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
27120 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
27122         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
27123         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
27124         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
27125         explicit clause on combined parallel into implicit shared clause.
27126         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
27127         and firstprivate if the decl has one too from combined parallel to
27128         the worksharing construct.
27130 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
27131             Michael Meissner  <meissner@linux.ibm.com>
27133         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
27135 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
27137         * rtl.h (LABEL_REF_P): New #define.
27139 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
27141         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
27143 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
27145         * internal-fn.c: Marked mask_load_direct as vectorizable.
27146         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
27147         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
27148         combined even if masks different with allow_slp_p param.
27149         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
27150         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
27151         dissolve SLP-only vectorizable groups when SLP has been discarded.
27152         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
27153         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
27154         masks.
27155         (vect_build_slp_tree_1): Fixed comment typo.
27156         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
27157         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
27158         loads for SLP only.
27159         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
27160         vectorizable.
27161         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
27163 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27165         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
27166         Remove obsolete use_thunk reference.
27167         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27168         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27169         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27170         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27171         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27172         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27173         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27174         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27175         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27177 2019-05-28  Nathan Sidwell  <nathan@acm.org>
27179         * tree.h (IDENTIFIER_ANON_P): New.
27180         (anon_aggrname_format, anon_aggname_p): Don't declare.
27181         (make_anon_name): Declare.
27182         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
27183         (hash_tree): Likewise.
27184         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
27185         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
27186         (anon_cnt, make_anon_name): New.
27188 2019-05-28  Martin Liska  <mliska@suse.cz>
27190         PR other/90315
27191         * opts-global.c (decode_options): Print help for all
27192         help_option_arguments.
27193         * opts.c (print_help): Add new argument.
27194         (common_handle_option): Remember all values into
27195         help_option_arguments.
27196         * opts.h (print_help): Add new argument.
27198 2019-05-28  Martin Liska  <mliska@suse.cz>
27200         PR ipa/90555
27201         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
27202         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
27203         (func_checker::compare_bb): Call compare_loops.
27205 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
27207         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
27208         on sections construct.
27209         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
27210         construct.
27211         (lower_omp_sections): Handle lastprivate conditional.
27212         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
27213         lastprivate_conditional_map.
27214         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
27216         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
27217         critical, taskgroup and section regions when looking for a region
27218         with non-NULL lastprivate_conditional_map.
27220 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27222         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
27223         (*ix86_gen_sub3): Ditto.
27224         (*ix86_gen_sub3_carry): Ditto.
27225         (*ix86_gen_one_cmpl2): Ditto.
27226         (*ix86_gen_andsp): Ditto.
27227         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
27228         (gen_and2_insn): New static function.
27229         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
27230         Use gen_add3_insn instead of ix86_gen_add3.
27231         (ix86_expand_split_stack_prologue): Use gen_add2_insn
27232         instead of ix86_gen_add3.
27233         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
27234         Use gen_sub3_insn instead of ix86_gen_sub3.
27235         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
27236         instead of ix86_gen_add3.
27237         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
27238         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
27239         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
27240         * config/i386/i386-options.c (ix86_option_override_internal):
27241         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
27242         ix86_gen_one_cmpl2 and ix86_gen_andsp.
27244 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27246         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
27247         and DW_OP_GNU_const_index opcodes.
27249 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27251         * config/i386/i386.h (STACK_SIZE_MODE): Define.
27253 2019-05-27  Richard Biener  <rguenther@suse.de>
27255         PR tree-optimization/90637
27256         * tree-ssa-sink.c (statement_sink_location): Honor the
27257         computed sink location for single-uses.
27259 2019-05-27  Richard Biener  <rguenther@suse.de>
27261         PR middle-end/90610
27262         * match.pd (vec_perm): Avoid clobbering op0 when not generating
27263         a bit-insert.
27265 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27267         * config/i386/i386.md (@sub<mode>3_carry): Rename
27268         from sub<mode>3_carry.
27269         (@leave_<mode>): New expander.
27270         (*leave): Rename from leave.
27271         (*leave_rex64): Rename from leave_rex64.
27272         (@monitorx_<mode>): Rename from monitorx_<mode>.
27273         (@clzero_<mode>): Rename from clzero_<mode>.
27274         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
27275         from sse3_monitor_<mode>.
27276         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
27277         (*ix86_gen_leave): Ditto.
27278         (*ix86_gen_monitor): Ditto.
27279         (*ix86_gen_monitorx): Ditto.
27280         (*ix86_gen_clzero): Ditto.
27281         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
27282         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
27283         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
27284         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
27285         Use gen_sse3_monitor instead of ix86_gen_monitor.
27286         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
27287         instead of ix86_gen_monitorx.
27288         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
27289         instead of ix86_gen_clzero.
27290         * config/i386/i386-options.c (ix86_option_override_internal):
27291         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
27292         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
27294 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27296         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
27297         Rename from tls_global_dynamic_64_<mode>.
27298         (@tls_local_dynamic_base_64_<mode>): Rename from
27299         tls_local_dynamic_base_64_<mode>.
27300         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
27301         Remove indirect function.
27302         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
27303         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
27304         instead of ix86_gen_tls_global_dynamic_64.
27305         Use gen_tls_local_dynamic_base_64 instead of
27306         ix86_gen_tls_local_dynamic_base_64.
27307         * config/i386/i386-options.c (ix86_option_override_internal):
27308         Do not initialize ix86_gen_tls_global_dynamic_64 and
27309         ix86_gen_tls_local_dynamic_base_64.
27311 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27313         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
27314         Rename from pro_epilogue_adjust_stack_<mode>_add.
27315         (@pro_epilogue_adjust_stack_sub_<mode>)
27316         Rename from pro_epilogue_adjust_stack_<mode>_sub.
27317         (@allocate_stack_worker_probe_<mode>):
27318         Rename from allocate_stack_worker_probe_<mode>.
27319         (allocate_stack): Use gen_allocate_stack_worker_probe.
27320         (probe_stack): Use gen_probe_stack_1.
27321         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
27322         (@adjust_stack_and_probe_<mode>): Rename from
27323         adjust_stack_and_probe<mode>.
27324         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
27325         (stack_protect_set): Use gen_stack_protect_set_1.
27326         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
27327         (stack_protect_test): Use gen_stack_protect_test_1.
27328         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
27329         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
27330         Remove indirect function.
27331         (*ix86_gen_adjust_stack_and_probe): Ditto.
27332         (*ix86_gen_probe_stack_range): Ditto.
27333         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
27334         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
27335         (ix86_adjust_stack_and_probe_stack_clash): Use
27336         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
27337         (ix86_adjust_stack_and_probe): Ditto.
27338         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
27339         of ix86_gen_probe_stack_range.
27340         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
27341         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
27342         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
27343         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
27344         CODE_FOR_stack_protect_test_{si,di}.
27345         * config/i386/i386-options.c (ix86_option_override_internal):
27346         Do not initialize ix86_gen_allocate_stack_worker,
27347         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
27349 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
27351         * doc/invoke.texi (Link Options): Many editorial changes around
27352         -flinker-output.
27354 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27356         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
27357         pre-Solaris 11 referene and most Studio compiler details.
27359 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
27361         PR target/90530
27362         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
27363         DImode to SImode in floating-point registers on 64-bit target.
27364         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
27365         register_operand in xmpyu patterns.
27367 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
27369         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
27370         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
27371         OMP_CLAUSE__REDUCTEMP_.
27372         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
27373         OMP_CLAUSE__CONDTEMP_.
27374         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
27375         * tree-pretty-print.c (dump_omp_clause): Likewise.
27376         * tree-nested.c (convert_nonlocal_omp_clauses,
27377         convert_local_omp_clauses): Likewise.
27378         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
27379         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
27380         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
27381         on OMP_FOR.
27382         (gimplify_omp_for): Warn and disable conditional modifier from
27383         lastprivate on loop iterators.
27384         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
27385         member.
27386         * omp-general.c (omp_extract_for_data): Initialize it.
27387         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
27388         member.
27389         (delete_omp_context): Delete it.
27390         (lower_lastprivate_conditional_clauses): New function.
27391         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
27392         handle lastprivate conditional clauses.
27393         (lower_reduction_clauses): Add CLIST argument, emit it into
27394         the critical section if any.
27395         (lower_omp_sections): Adjust lower_lastprivate_clauses and
27396         lower_reduction_clauses callers.
27397         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
27398         to lower_lastprivate_clauses.
27399         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
27400         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
27401         clist into a critical section if not emitted there already by
27402         lower_reduction_clauses.
27403         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
27404         callers.
27405         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
27406         conditional variables.
27407         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
27408         clause is present.
27409         (expand_omp_for_generic, expand_omp_for_static_nochunk,
27410         expand_omp_for_static_chunk): Handle lastprivate conditional.
27411         (expand_omp_for): Handle fd.lastprivate_conditional like
27412         fd.have_reductemp.
27414 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
27416         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
27417         kernel does not exit cleanly.
27418         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
27420 2019-05-24  Jason Merrill  <jason@redhat.com>
27422         Revert:
27423         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27425 2019-05-24  Richard Biener  <rguenther@suse.de>
27427         PR testsuite/90607
27428         * tree-loop-distribution.c (struct partition): Add location
27429         member.
27430         (partition_alloc): Initialize all fields.
27431         (generate_memset_builtin): Use the location recorded in the
27432         partition for the generated call.
27433         (generate_memcpy_builtin): Likewise.
27434         (classify_partition): Record the location of a single store
27435         as location for the partition.
27437 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
27439         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
27440         for lo-part.
27442 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
27444         PR target/90588
27445         * common/config/aarch64/aarch64-common.c
27446         (aarch64_rewrite_selected_cpu): Change local temporary variable
27447         type from unsigned long to uint64_t.
27448         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
27449         aarch64_get_extension_string_for_isa_flags): Change declaration to
27450         match new definition by replacing unsigned long with uint64_t.
27452 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
27454         PR target/90568
27455         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
27456         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
27457         Handle stack_protect_test_<mode> codegen similarly to corresponding
27458         sub instruction.
27460 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
27462         * config/i386/darwin.h: Reject -mfentry*.
27463         * doc/sourcebuild.texi: Document mfentry target support.
27465 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
27467         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
27468         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
27469         false for PC-relative functions.
27470         (rs6000_output_function_prologue): Change called function name to
27471         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
27472         name,1" for PC-relative functions.
27473         (rs6000_elf_declare_function_name): Change called function name to
27474         rs6000_global_entry_point_prologue_needed_p.
27476 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27478         PR target/90552
27479         * config/i386/i386.c (gen_rtx_cost):
27480         Use ix86_tune_cost instead of ix86_cost.
27482 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
27483             Michael Meissner  <meissner@linux.ibm.com>
27484             Segher Boessenkool  <segher@kernel.crashing.org>
27486         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
27487         OPTION_MASK_PCREL.
27488         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
27489         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
27490         (rs6000_fndecl_pcrel_p): Likewise.
27491         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
27492         error if -mpcrel is requested without -mcpu=future.
27493         (rs6000_opt_masks): Add entry for pcrel.
27494         (rs6000_fndecl_pcrel_p): New function.
27495         (rs6000_pcrel_p): Likewise.
27496         * config/rs6000/rs6000.opt (mpcrel): New option.
27497         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
27499 2019-05-23  Jan Hubicka  <jh@suse.cz>
27500             Martin Liska  <mliska@suse.cz>
27502         PR tree-optimization/90576
27503         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
27504         poly_int_tree_p.
27505         (aliasing_component_refs_p): Fix three way size compare conditional;
27506         give up earlier in case we can not decide on equivalence.
27508 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
27509             Michael Meissner  <meissner@linux.ibm.com>
27510             Segher Boessenkool  <segher@kernel.crashing.org>
27512         * config.gcc: Add future cpu.
27513         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
27514         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
27515         #define.
27516         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
27517         (RS6000_CPU): New instantiation for future cpu.
27518         * config/rs6000/rs6000-opts.h (enum processor_type): Add
27519         PROCESSOR_FUTURE.
27520         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
27521         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
27522         * config/rs6000/rs6000-tables.opt: Regenerate.
27523         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
27524         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
27525         (rs6000_machine_from_flags): Handle future cpu.
27526         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
27527         PROCESSOR_POWER9 for now.
27528         (rs6000_adjust_cost): Likewise.
27529         (rs6000_issue_rate): Likewise.
27530         (rs6000_register_move_cost): Likewise.
27531         (rs6000_opt_masks): Add entry for future.
27532         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
27533         (MASK_FUTURE): New #define.
27534         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
27535         * config/rs6000/rs6000.opt (mfuture): New target option.
27536         * doc/invoke.texi (mcpu): Add future cpu.
27538 2019-05-23  Martin Liska  <mliska@suse.cz>
27540         PR c++/90587
27541         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
27542         operation points to a temporary (pointed via tree_to_wide_ref)
27543         that is out of scope after the &.
27545 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
27547         PR c++/90592
27548         * doc/extend.texi (Function Names): Add missing word.
27550 2019-05-23  Richard Biener  <rguenther@suse.de>
27552         PR tree-optimization/88440
27553         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
27554         at -O[2s]+.
27555         * tree-loop-distribution.c (generate_memset_builtin): Fold the
27556         generated call.
27557         (generate_memcpy_builtin): Likewise.
27558         (distribute_loop): Pass in whether to only distribute patterns.
27559         (prepare_perfect_loop_nest): Also allow size optimization.
27560         (pass_loop_distribution::execute): When optimizing a loop
27561         nest for size allow pattern replacement.
27563 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
27565         PR target/90568
27566         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
27567         of xor.
27569 2019-05-23  Martin Liska  <mliska@suse.cz>
27571         PR sanitizer/90570
27572         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
27573         expression similarly to gimplify_decl_expr.
27575 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27577         * cse.c (cse_dump_path): s/dump_file/f.
27579 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
27581         PR c++/90462
27582         * diagnostic-format-json.cc: Include "selftest.h".
27583         (json_from_expanded_location): Only add "file" key for non-NULL
27584         file strings.
27585         (json_from_location_range): Don't add "start" and "finish"
27586         children if they are UNKNOWN_LOCATION.
27587         (selftest::test_unknown_location): New selftest.
27588         (selftest::test_bad_endpoints): New selftest.
27589         (selftest::diagnostic_format_json_cc_tests): New function.
27590         * json.cc (json::object::get): New function.
27591         (selftest::test_object_get): New selftest.
27592         (selftest::json_cc_tests): Call it.
27593         * json.h (json::object::get): New decl.
27594         * selftest-run-tests.c (selftest::run_tests): Call
27595         selftest::diagnostic_format_json_cc_tests.
27596         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
27597         decl.
27599 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
27600             Andrew Stubbs  <amd@codesourcery.com>
27602         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
27603         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
27604         (kernel): Rename to...
27605         (main_kernel): ... this.
27606         (load_image): Load _init_array and _fini_array kernels.
27607         (run): Add argument for kernel to run.
27608         (main): Run init_array_kernel before main_kernel, and
27609         fini_array_kernel after.
27610         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
27611         amdgpu_hsa_kernel attribute on functions.
27612         (gcn_disable_constructors): Delete.
27613         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
27614         * config/gcn/crt0.c (size_t): Define.
27615         (_init_array, _fini_array): New.
27616         (__preinit_array_start, __preinit_array_end,
27617         __init_array_start, __init_array_end,
27618         __fini_array_start, __fini_array_end): Declare weak references.
27620 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
27622         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
27624 2019-05-22  Jason Merrill  <jason@redhat.com>
27626         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27628 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
27630         PR target/88483
27631         * config/i386/i386-options.c (ix86_init_machine_status): Set
27632         stack_frame_required to true.
27633         * config/i386/i386.c (ix86_get_frame_size): New function.
27634         (ix86_frame_pointer_required): Replace get_frame_size with
27635         ix86_get_frame_size.
27636         (ix86_compute_frame_layout): Likewise.
27637         (ix86_find_max_used_stack_alignment): Changed to void.  Set
27638         stack_frame_required.
27639         (ix86_finalize_stack_frame_flags): Always call
27640         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
27641         ix86_get_frame_size.
27642         * config/i386/i386.h (machine_function): Add stack_frame_required.
27644 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27646         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
27648 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
27650         * common/config/aarch64/aarch64-common.c
27651         (struct aarch64_option_extension, struct processor_name_to_arch,
27652         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
27653         aarch64_contains_opt,
27654         aarch64_get_extension_string_for_isa_flags): Change type of
27655         variables storing flags to uint64_t.
27656         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
27657         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
27658         * config/aarch64/aarch64.c (struct processor,
27659         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
27660         aarch64_validate_march, aarch64_override_options,
27661         aarch64_option_print, aarch64_handle_attr_isa_flags,
27662         aarch64_declare_function_name, aarch64_start_file): Make flag
27663         variables uint64_t.
27664         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
27665         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
27666         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
27667         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
27668         * config/aarch64/driver-aarch64.c
27669         (struct aarch64_arch_extension, struct aarch64_core_data,
27670         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
27671         flag variables uint64_t.
27672         * doc/invoke.texi: Add documentation for new arguments.
27674 2019-05-22  Richard Biener  <rguenther@suse.de>
27676         * alias.c (ao_ref_from_mem): Move stack-slot sharing
27677         rewrite ...
27678         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
27680 2019-05-22  Martin Liska  <mliska@suse.cz>
27682         PR lto/90500
27683         * doc/extend.texi: Document the change.
27685 2019-05-22  Richard Biener  <rguenther@suse.de>
27687         PR tree-optimization/90450
27688         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
27689         (mem_ref_hasher::equal): Check it.
27690         (mem_ref_alloc): Initialize it.
27691         (gather_mem_refs_stmt): Set it.
27693 2019-05-22  Richard Biener  <rguenther@suse.de>
27695         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
27696         Add ABS_EXPR.
27697         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
27698         as ABSU_EXPR.
27700 2019-05-22  Alan Modra  <amodra@gmail.com>
27702         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
27703         (ASM_CPU_SPEC): Conditionally add -many.
27704         * config/rs6000/rs6000.c (rs6000_machine): New static var.
27705         (rs6000_machine_from_flags, emit_asm_machine): New functions..
27706         (rs6000_file_start): ..extracted from here, and modified to
27707         test all ISA bits.
27708         (rs6000_output_function_prologue): Emit .machine as necessary.
27710 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
27712         PR middle-end/90553
27713         * ira-lives.c (process_bb_node_lives): Consider defs
27714         for a call insn to be die before the call, not after.
27716         * function.c (assign_parm_setup_block): Raise alignment of
27717         stacked parameter only for STRICT_ALIGNMENT targets.
27719 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27721         * config/rs6000/constraints.md (define_register_constraint "wz"):
27722         Delete.
27723         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27724         RS6000_CONSTRAINT_wz.
27725         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27726         (rs6000_init_hard_regno_mode_ok): Adjust.
27727         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
27728         * doc/md.texi (Machine Constraints): Adjust.
27730 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27732         * config/rs6000/constraints.md (define_register_constraint "wl"):
27733         Delete.
27734         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27735         RS6000_CONSTRAINT_wl.
27736         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27737         (rs6000_init_hard_regno_mode_ok): Adjust.
27738         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
27739         * doc/md.texi (Machine Constraints): Adjust.
27741 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27743         * config/rs6000/constraints.md (define_register_constraint "wm"):
27744         Delete.
27745         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27746         RS6000_CONSTRAINT_wm.
27747         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27748         (rs6000_init_hard_regno_mode_ok): Adjust.
27749         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
27750         * doc/md.texi (Machine Constraints): Adjust.
27752 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27754         * config/rs6000/constraints.md (define_register_constraint "wk"):
27755         Delete.
27756         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27757         RS6000_CONSTRAINT_wk.
27758         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27759         (rs6000_init_hard_regno_mode_ok): Adjust.
27760         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
27761         * doc/md.texi (Machine Constraints): Adjust.
27763 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27765         * config/rs6000/constraints.md (define_register_constraint "wj"):
27766         Delete.
27767         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27768         RS6000_CONSTRAINT_wj.
27769         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27770         (rs6000_init_hard_regno_mode_ok): Adjust.
27771         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
27772         (VS_64dm): Delete.
27773         * config/rs6000/vsx.md: Ditto.
27774         * doc/md.texi (Machine Constraints): Adjust.
27776 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27778         * config/rs6000/constraints.md (define_register_constraint "wh"):
27779         Delete.
27780         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27781         RS6000_CONSTRAINT_wh.
27782         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27783         (rs6000_init_hard_regno_mode_ok): Adjust.
27784         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
27785         * doc/md.texi (Machine Constraints): Adjust.
27787 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27789         PR target/90547
27790         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27791         Avoid calling gen_lowpart with CONST operand.
27793 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
27795         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
27796         field template_last_to_copy.
27797         (ssa_create_duplicates): Set it, and use it.  Attempt to
27798         preserve more debug stmts.
27800 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27802         * config/i386/sse.md (VF1_AVX2): New mode iterator.
27803         (signbit<mode>2): New expander
27805 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
27807         PR bootstrap/87338
27808         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27809         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27811 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27813         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27814         %ebx and %ecx bafore calling cpuid with leaf 1 or
27815         non-constant leaf argument.
27817 2019-05-21  Alan Modra  <amodra@gmail.com>
27819         PR target/90545
27820         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27821         power9 direct move cost.
27823 2019-05-21  Richard Biener  <rguenther@suse.de>
27825         PR middle-end/90510
27826         * fold-const.c (fold_read_from_vector): New function.
27827         * fold-const.h (fold_read_from_vector): Declare.
27828         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27829         single-element insert permutations.  Canonicalize selector
27830         further and fix issue with last commit.
27832 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27834         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27835         parameter with default value false to declaration.
27836         (split_edges_for_insertion): New inline function.  Wrapper for
27837         split_critical_edges with for_edge_insertion_p = true.
27838         * tree-cfg.c (split_critical_edges): Don't split non-critical
27839         edges if for_edge_insertion_p is false.  Fix whitespace.
27840         * tree-ssa-pre.c (pass_pre::execute): Call
27841         split_edges_for_insertion instead of split_critical_edges.
27842         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27843         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27844         (pass_data_sink_code): Update function name in the comment.
27846 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
27848         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27849         around is_value_included_in that knows how to handle BIT_AND_EXPR.
27850         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
27851         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27852         positives.
27854 2019-05-21  Martin Liska  <mliska@suse.cz>
27856         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27857         an extra newline.
27858         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27859         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27860         vec_lvsr.
27861         * config/rs6000/rs6000.c (rs6000_option_override_internal):
27862         Quote a C type.
27863         (rs6000_function_arg): Likewise.
27864         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27865         (rs6000_expand_ternop_builtin): Use interval syntax.
27866         (get_element_number): Likewise.
27867         (altivec_expand_builtin): Likewise.
27868         (rs6000_get_function_versions_dispatcher): Quote target_clones.
27870 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27872         PR c++/59813
27873         PR target/90418
27874         * function.h (struct function): Add calls_eh_return member.
27875         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27876         gimplifying __builtin_eh_return call.
27877         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27878         to cfun.
27879         (expand_call_inline): Or in src_cfun->calls_eh_return into
27880         dst_cfun->calls_eh_return.
27881         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27882         cfun->calls_eh_return.
27883         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27884         * lto-streamer-out.c (output_struct_function_base): Write
27885         calls_eh_return.
27887 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
27889         PR rtl-optimization/43147
27890         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27891         IX86_BUILTIN_SHUFPD.
27893 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27895         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27896         (refs_may_alias_p_1): ... here; update stats.
27897         (refs_may_alias_p): Do not update stats here.
27899 2019-05-20  Richard Biener  <rguenther@suse.de>
27901         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27902         doesn't produce pointers.
27903         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27904         the first operand points to.
27906 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
27908         * tree-ssa-alias.c (compare_sizes): New function.
27909         (sompare_type_sizes): New function
27910         (aliasing_component_refs_p): Use it.
27911         (indirect_ref_may_alias_decl_p): Likewise.
27913 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27915         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27917 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27919         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27920         (LIBLSAN_EARLY_SPEC): Likewise.
27921         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27923 2019-05-20  Martin Liska  <mliska@suse.cz>
27925         * config/i386/i386.c (ix86_libc_has_fast_function):
27926         Add ATTRIBUTE_UNUSED for the argument.
27928 2019-05-20  Richard Biener  <rguenther@suse.de>
27930         * gimple-match-head.c: Include vec-perm-indices.h.
27931         * generic-match-head.c: Likewise.
27932         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27933         is included.
27934         * fold-const.c (fold_vec_perm): Export.
27935         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27936         (match.pd): ...here.
27938 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
27940         * cfgloop.h (struct loop): Add simdlen member.
27941         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27942         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27943         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27944         as new argument to autovectorize_vector_sizes target hook.  If
27945         loop->simdlen, pick up vector size where the vectorization factor
27946         is equal to loop->simd, and if there is none, fall back to the first
27947         successful one.
27948         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27949         caller.
27950         * omp-low.c (omp_clause_aligned_alignment): Likewise.
27951         * omp-general.c (omp_max_vf): Likewise.
27952         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27953         * tree-vect-slp.c (vect_slp_bb): Likewise.
27954         * target.def (autovectorize_vector_sizes): Add ALL argument and
27955         document it.
27956         * doc/tm.texi: Adjust documentation.
27957         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27958         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27959         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27960         bool argument.
27961         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27962         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27963         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27964         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
27965         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27966         preferred vector size is not 512-bit or 256-bit, just put those
27967         unpreferred ones last.
27969 2019-05-20  Martin Liska  <mliska@suse.cz>
27971         * targhooks.c (default_libc_has_fast_function): New function.
27972         * targhooks.h (default_libc_has_fast_function): Likewise.
27974 2019-05-20  Martin Liska  <mliska@suse.cz>
27976         PR middle-end/90263
27977         * builtins.c (expand_builtin_memory_copy_args): When having a
27978         target with fast mempcpy implementation do now use memcpy.
27979         * config/i386/i386.c (ix86_libc_has_fast_function): New.
27980         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27981         * doc/tm.texi: Likewise.
27982         * doc/tm.texi.in: Likewise.
27983         * target.def:
27984         * expr.c (emit_block_move_hints): Add 2 new arguments.
27985         * expr.h (emit_block_move_hints): Bail out when libcall
27986         to memcpy would be used.
27988 2019-05-20  Martin Liska  <mliska@suse.cz>
27990         * profile-count.c: Add vertical spacing in order
27991         to separate functions.
27992         * profile-count.h: Likewise.
27994 2019-05-20  Martin Liska  <mliska@suse.cz>
27996         * profile-count.h: Do not use full qualified
27997         names if possible.
27998         * profile-count.c (profile_count::to_frequency): Likewise.
28000 2019-05-20  Martin Liska  <mliska@suse.cz>
28002         * profile-count.h (enum profile_quality): Use capital letters
28003         for enum value names.  Use the adjusted names.
28004         * profile-count.c: Use the adjusted names.
28006 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28008         * config/rs6000/constraints.md (define_register_constraint "wH"):
28009         Delete.
28010         (define_register_constraint "wI"): Delete.
28011         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28012         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
28013         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28014         (rs6000_init_hard_regno_mode_ok): Adjust.
28015         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
28016         resp. "d", or with "wa" as appropriate, all with "p8v".
28017         * config/rs6000/vsx.md: Ditto.
28018         * doc/md.texi (Machine Constraints): Adjust.
28020 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28022         * config/rs6000/constraints.md (define_register_constraint "wy"):
28023         Delete.
28024         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28025         RS6000_CONSTRAINT_wy.
28026         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28027         (rs6000_init_hard_regno_mode_ok): Adjust.
28028         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
28029         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
28030         (define_mode_attr Fisa): New.
28031         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
28032         * doc/md.texi (Machine Constraints): Adjust.
28034 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28036         * config/rs6000/constraints.md (define_register_constraint "wu"):
28037         Delete.
28038         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28039         RS6000_CONSTRAINT_wu.
28040         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28041         (rs6000_init_hard_regno_mode_ok): Adjust.
28042         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
28043         both with "p8v".
28044         (define_mode_attr Fa): Delete.
28045         * config/rs6000/vsx.md: Ditto.
28046         * doc/md.texi (Machine Constraints): Adjust.
28048 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28050         * config/rs6000/constraints.md (define_register_constraint "wJ"):
28051         Delete.
28052         (define_register_constraint "wK"): Delete.
28053         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28054         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
28055         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28056         (rs6000_init_hard_regno_mode_ok): Adjust.
28057         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
28058         Replace "wK" constraint by "wH" with "p9v".
28059         * config/rs6000/vsx.md: Ditto.
28060         * doc/md.texi (Machine Constraints): Adjust.
28062 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28064         * config/rs6000/constraints.md (define_register_constraint "wb"):
28065         Delete.
28066         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28067         RS6000_CONSTRAINT_wb.
28068         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28069         (rs6000_init_hard_regno_mode_ok): Adjust.
28070         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
28071         * config/rs6000/vsx.md: Ditto.
28072         * doc/md.texi (Machine Constraints): Adjust.
28074 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
28076         * config/rs6000/constraints.md (define_register_constraint "wo"):
28077         Delete.
28078         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28079         RS6000_CONSTRAINT_wo.
28080         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28081         (rs6000_init_hard_regno_mode_ok): Adjust.
28082         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
28083         * config/rs6000/altivec.md: Ditto.
28084         * doc/md.texi (Machine Constraints): Adjust.
28086 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
28088         * config/darwin-c.c (darwin_register_objc_includes): Do not
28089         prepend the sysroot when building gnu-runtime header search
28090         paths.
28092 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
28094         * config/darwin.c (darwin_file_end): Use switch_to_section ()
28095         instead of direct output of the asm.
28097 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
28099         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
28100         argument to be type bool (was int before).
28101         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
28102         at first use.  Use type bool for some variables.  Fix a theoretical
28103         eh_return bug for svr4.
28105 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
28107         * config/rs6000/rs6000.md (isa): New attribute.
28108         (enabled): New attribute.
28110 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
28112         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
28113         assemble_start_function and assemble_end_function.
28115 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
28117         PR middle-end/89433
28118         * omp-general.c (oacc_verify_routine_clauses): Change formal
28119         parameters.  Add checking if already marked with an OpenACC
28120         'routine' directive.  Adjust all users.
28122         PR middle-end/89433
28123         * omp-general.c (oacc_build_routine_dims): Move some of its
28124         processing into...
28125         (oacc_verify_routine_clauses): ... this new function.
28126         * omp-general.h (oacc_verify_routine_clauses): New prototype.
28128 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
28130         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
28131         formating of picbase labels to match other ports.
28133 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
28135         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
28136         in the generated code.
28138 2019-05-16  Martin Sebor  <msebor@redhat.com>
28140         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
28141         identifiers, keywords, operators, and types in diagnostics.  Correct
28142         quoting, spelling, and sentence capitalization issues.
28143         (expand_builtin_atomic_is_lock_free): Same.
28144         (fold_builtin_next_arg): Same.
28145         * cfgexpand.c (expand_one_var): Same.
28146         (tree_conflicts_with_clobbers_p): Same.
28147         (expand_asm_stmt): Same.
28148         (verify_loop_structure): Same.
28149         * cgraphunit.c (process_function_and_variable_attributes): Same.
28150         * collect-utils.c (collect_execute): Same.
28151         * collect2.c (maybe_run_lto_and_relink): Same.
28152         (is_lto_object_file): Same.
28153         (scan_prog_file): Same.
28154         * convert.c (convert_to_real_1): Same.
28155         * dwarf2out.c (dwarf2out_begin_prologue): Same.
28156         * except.c (verify_eh_tree): Same.
28157         * gcc.c (execute): Same.
28158         (eval_spec_function): Same.
28159         (run_attempt): Same.
28160         (driver::set_up_specs): Same.
28161         (compare_debug_auxbase_opt_spec_function): Same.
28162         * gcov-tool.c (unlink_gcda_file): Same.
28163         (do_merge): Same.
28164         (do_rewrite): Same.
28165         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
28166         * gimplify.c (gimplify_asm_expr): Same.
28167         (gimplify_adjust_omp_clauses): Same.
28168         * hsa-gen.c (gen_hsa_addr_insns): Same.
28169         (gen_hsa_insns_for_load): Same.
28170         (gen_hsa_cmp_insn_from_gimple): Same.
28171         (gen_hsa_insns_for_operation_assignment): Same.
28172         (gen_get_level): Same.
28173         (gen_hsa_alloca): Same.
28174         (omp_simple_builtin::generate): Same.
28175         (gen_hsa_atomic_for_builtin): Same.
28176         (gen_hsa_insns_for_call): Same.
28177         * input.c (dump_location_info): Same.
28178         * ipa-devirt.c (compare_virtual_tables): Same.
28179         * ira.c (ira_setup_eliminable_regset): Same.
28180         * lra-assigns.c (lra_assign): Same.
28181         * lra-constraints.c (lra_constraints): Same.
28182         * lto-streamer-in.c (lto_input_mode_table): Same.
28183         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
28184         (merge_and_complain): Same.
28185         (compile_offload_image): Same.
28186         (compile_images_for_offload_targets): Same.
28187         (debug_objcopy): Same.
28188         (run_gcc): Same.
28189         (main): Same.
28190         * opts.c (print_specific_help): Same.
28191         (parse_no_sanitize_attribute): Same.
28192         (print_help): Same.
28193         (handle_param): Same.
28194         * plugin.c (add_new_plugin): Same.
28195         (parse_plugin_arg_opt): Same.
28196         (try_init_one_plugin): Same.
28197         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
28198         operators, and types in diagnostics.  Correct quoting and spelling
28199         issues.
28200         * read-rtl-function.c (parse_edge_flag_token): Same.
28201         (function_reader::parse_enum_value): Same.
28202         * reg-stack.c (check_asm_stack_operands): Same.
28203         * regcprop.c (validate_value_data): Same.
28204         * sched-rgn.c (make_pass_sched_fusion): Same.
28205         * stmt.c (check_unique_operand_names): Same.
28206         * targhooks.c (default_target_option_pragma_parse): Same.
28207         * tlink.c (recompile_files): Same.
28208         * toplev.c (process_options): Same.
28209         (do_compile): Same.
28210         * trans-mem.c (diagnose_tm_1): Same.
28211         (ipa_tm_scan_irr_block): Same.
28212         (ipa_tm_diagnose_transaction): Same.
28213         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
28214         format a tree code name in a diagnostic.
28215         (verify_types_in_gimple_min_lval): Same.
28216         (verify_types_in_gimple_reference): Same.
28217         (verify_gimple_call): Same.
28218         (verify_gimple_assign_unary): Same.
28219         (verify_gimple_assign_binary): Same.
28220         (verify_gimple_assign_ternary): Same.
28221         (verify_gimple_assign_single): Same.
28222         (verify_gimple_switch): Same.
28223         (verify_gimple_label): Same.
28224         (verify_gimple_phi): Same.
28225         (verify_gimple_in_seq): Same.
28226         (verify_eh_throw_stmt_node): Same.
28227         (collect_subblocks): Same.
28228         (gimple_verify_flow_info): Same.
28229         (do_warn_unused_result): Same.
28230         * tree-inline.c (expand_call_inline): Same.
28231         * tree-into-ssa.c (update_ssa): Same.
28232         * tree.c (tree_int_cst_elt_check_failed): Same.
28233         (tree_vec_elt_check_failed): Same.
28234         (omp_clause_operand_check_failed): Same.
28235         (verify_type_variant): Same.
28236         (verify_type): Same.
28237         * value-prof.c (verify_histograms): Same.
28238         * varasm.c (assemble_start_function): Same.
28240 2019-05-16  Martin Sebor  <msebor@redhat.com>
28242         * config/i386/i386-expand.c (get_element_number): Quote keywords
28243         and other internal names in diagnostics.  Adjust other diagnostic
28244         formatting issues noted by -Wformat-diag.
28245         * config/i386/i386-features.c
28246         (ix86_mangle_function_version_assembler_name): Same.
28247         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
28248         * config/i386/i386.c (ix86_function_type_abi): Same.
28249         (ix86_function_ms_hook_prologue): Same.
28250         (classify_argument): Same.
28251         (ix86_expand_prologue): Same.
28252         (ix86_md_asm_adjust): Same.
28253         (ix86_memmodel_check): Same.
28255 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
28257         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
28258         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
28259         and fpxx modes.
28261 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
28263         PR target/90497
28264         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
28265         intrinsics without SSE/SSE2/SSSE3.
28266         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
28267         check.
28268         (*mmx_uavgv8qi3): Likewise.
28270 2019-05-17  Richard Biener  <rguenther@suse.de>
28272         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
28273         VEC_PERM_EXPR as __VEC_PERM with -gimple.
28275 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
28277         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
28278         vec_sldw insn pattern.
28280 2019-05-17  Richard Biener  <rguenther@suse.de>
28282         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
28284 2019-05-17  Martin Liska  <mliska@suse.cz>
28286         PR driver/90496
28287         * toplev.c (output_stack_usage): With LTO and sanitizer it
28288         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
28289         has no file location.
28291 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
28293         PR c++/90484
28294         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
28295         sz0 is equal to sz1, instead return false in that case.
28297         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
28298         has non-constant expression, force sctx.lane and use two
28299         argument IFN_GOMP_SIMD_LANE instead of single argument.
28300         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
28301         two argument IFN_GOMP_SIMD_LANE without lhs.
28302         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
28303         member.
28304         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
28305         Define.
28306         (LOOP_REQUIRES_VERSIONING): Or in
28307         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
28308         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
28309         simd_if_cond.
28310         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
28311         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
28312         from simd if clause if needed.
28314 2019-05-16  Richard Biener  <rguenther@suse.de>
28316         * tree-affine.c (expr_to_aff_combination): New function split
28317         out from...
28318         (tree_to_aff_combination): ... here.
28319         (aff_combination_expand): Avoid building a GENERIC tree.
28321 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
28323         * cgraphunit.c (cgraph_node::expand_thunk): Remove
28324         assemble_start_function and assemble_end_function calls.
28325         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
28326         assemble_start_function and assemble_end_function.
28327         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
28328         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
28329         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
28330         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
28331         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
28332         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
28333         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
28334         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
28335         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
28336         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
28337         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
28338         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
28339         Likewise.
28340         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
28341         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
28342         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
28343         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
28344         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
28345         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
28346         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
28347         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
28348         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
28349         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
28350         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
28351         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
28352         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
28353         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
28354         Likewise.
28355         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
28356         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
28357         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
28359 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
28361         * tree-ssa-alias.c (alias_stats): Add
28362         aliasing_component_refs_p_may_alias and
28363         aliasing_component_refs_p_no_alias.
28364         (dump_alias_stats): Print aliasing_component_refs_p stats.
28365         (aliasing_component_refs_p): Update stats.
28367 2019-05-16  Martin Liska  <mliska@suse.cz>
28369         PR lto/90500
28370         * multiple_target.c (expand_target_clones): Do not allow
28371         target_clones being used with a symbol that is an alias.
28373 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
28375         PR tree-optimization/90394
28376         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
28377         positives rather than ICE for cases where (code2 == NE_EXPR
28378         && code1 == BIT_AND_EXPR).
28380 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
28382         PR fortran/90329
28383         * tree-core.h (struct tree_decl_common): Document
28384         decl_nonshareable_flag for PARM_DECLs.
28385         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
28386         * calls.c (expand_call): Don't try tail call if caller
28387         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
28388         passed on the stack and callee needs to pass any arguments on the
28389         stack.
28390         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28391         else if instead of series of mutually exclusive ifs.  Handle
28392         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
28393         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
28395         * lto-streamer.h (LTO_major_version): Bump to 9.
28397 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
28399         PR tree-optimization/90106
28400         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
28401         new parameter as new internal function call, also move it to new
28402         basic block.
28403         (use_internal_fn): Pass internal function call to
28404         shrink_wrap_one_built_in_call_with_conds.
28406 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
28408         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
28409         max_vf to 1.
28410         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
28411         safelen_int and set loop->dont_vectorize.
28413 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28415         PR target/89021
28416         * config/i386/i386-builtin.def: Enable MMX intrinsics with
28417         SSE/SSE2/SSSE3.
28418         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
28419         Likewise.
28420         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
28421         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
28422         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
28423         is defined.
28425 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28427         PR target/89021
28428         * config/i386/mmx.md (*vec_dupv2sf): Changed to
28429         define_insn_and_split to support SSE emulation.
28430         (*vec_extractv2sf_0): Likewise.
28431         (*vec_extractv2sf_1): Likewise.
28432         (*vec_extractv2si_0): Likewise.
28433         (*vec_extractv2si_1): Likewise.
28434         (*vec_extractv2si_zext_mem): Likewise.
28435         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
28436         (vec_extractv2sf_1 splitter): Likewise.
28437         (vec_extractv2sfsf): Likewise.
28438         (vec_setv2si): Likewise.
28439         (vec_extractv2si_1 splitter): Likewise.
28440         (vec_extractv2sisi): Likewise.
28441         (vec_setv4hi): Likewise.
28442         (vec_extractv4hihi): Likewise.
28443         (vec_setv8qi): Likewise.
28444         (vec_extractv8qiqi): Likewise.
28445         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
28446         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
28447         (vec_extractv2sisi): Likewise.
28448         (vec_extractv4hihi): Likewise.
28449         (vec_extractv8qiqi): Likewise.
28450         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
28451         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
28452         (vec_initv2sisi): Likewise.
28453         (vec_initv4hihi): Likewise.
28454         (vec_initv8qiqi): Likewise.
28455         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
28456         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
28457         (vec_setv4hi): Likewise.
28458         (vec_setv8qi): Likewise.
28460 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28462         PR target/89021
28463         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
28464         TARGET_MMX_WITH_SSE.
28465         (MMXMODE:*mov<mode>_internal): Likewise.
28466         (MMXMODE:movmisalign<mode>): Likewise.
28468 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28470         PR target/89021
28471         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
28472         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
28473         (sse2_cvtpd2pi): Ditto.
28474         (sse2_cvttpd2pi): Ditto.
28475         (*vec_concatv2sf_sse4_1): Ditto.
28476         (*vec_concatv2sf_sse): Ditto.
28477         (*vec_concatv2si_sse4_1): Ditto.
28478         (*vec_concatv2si): Ditto.
28479         (*vec_concatv4si_0): Ditto.
28480         (*vec_concatv2di_0): Ditto.
28482 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28484         PR target/89021
28485         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
28487 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28489         PR target/89021
28490         * config/i386/sse.md (ssse3_palignrdi): Changed to
28491         define_insn_and_split to support SSE emulation.
28493 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28495         PR target/89021
28496         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
28498 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28500         PR target/89021
28501         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
28502         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
28503         SSE emulation.
28505 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28507         PR target/89021
28508         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
28509         or TARGET_MMX_WITH_SSE.
28510         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
28512 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28514         PR target/89021
28515         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
28517 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28519         PR target/89021
28520         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
28521         Changed to define_insn_and_split to support SSE emulation.
28523 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28525         PR target/89021
28526         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
28527         Changed to define_insn_and_split to support SSE emulation.
28529 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28531         PR target/89021
28532         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
28533         (*mmx_<emms>): This.
28534         (mmx_<emms>): New expander.
28536 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28538         PR target/89021
28539         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
28540         support.
28541         (*sse2_umulv1siv1di3): Add SSE2 emulation.
28543 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28545         PR target/89021
28546         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
28548 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28550         PR target/89021
28551         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
28553 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28555         PR target/89021
28556         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
28557         TARGET_MMX_WITH_SSE.
28558         (*mmx_uavgv4hi3): Add SSE emulation.
28560 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28562         PR target/89021
28563         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
28564         and TARGET_MMX_WITH_SSE.
28565         (*mmx_uavgv8qi3): Add SSE emulation.
28567 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28569         PR target/89021
28570         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
28571         maskmovdqu for __MMX_WITH_SSE__.
28573 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28575         PR target/89021
28576         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
28577         TARGET_MMX and TARGET_MMX_WITH_SSE.
28578         (*mmx_umulv4hi3_highpart): Add SSE emulation.
28580 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28582         PR target/89021
28583         * config/i386/mmx.md (mmx_pmovmskb): Changed to
28584         define_insn_and_split to support SSE emulation.
28586 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28588         PR target/89021
28589         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
28590         and TARGET_MMX_WITH_SSE.
28591         (mmx_<code>v8qi3): Likewise.
28592         (smaxmin:<code>v4hi3): New.
28593         (umaxmin:<code>v8qi3): Likewise.
28594         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
28595         (umaxmin:*mmx_<code>v8qi3): Likewise.
28597 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28599         PR target/89021
28600         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
28601         TARGET_MMX_WITH_SSE.
28602         (*mmx_pinsrw): Add SSE emulation.
28604 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28606         PR target/89021
28607         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
28609 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28611         PR target/89021
28612         * config/i386/sse.md (sse_cvtpi2ps): Changed to
28613         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
28614         SSE emulation.
28616 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28618         PR target/89021
28619         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
28620         (sse_cvttps2pi): Likewise.
28622 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28624         PR target/89021
28625         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
28626         TARGET_MMX_WITH_SSE.
28627         (mmx_pshufw_1): Add SSE emulation.
28628         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
28629         TARGET_MMX_WITH_SSE to support SSE emulation.
28631 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28633         PR target/89021
28634         * config/i386/constraints.md (Yw): New constraint.
28635         * config/i386/mmx.md (*vec_dupv2si): Changed to
28636         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
28637         support SSE emulation.
28639 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28641         PR target/89021
28642         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
28643         TARGET_MMX_WITH_SSE.
28644         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28645         support.
28646         (mmx_gt<mode>3): Likewise.
28648 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28650         PR target/89021
28651         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
28652         TARGET_MMX_WITH_SSE.  Add SSE support.
28654 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28656         PR target/89021
28657         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
28658         TARGET_MMX_WITH_SSE.
28659         (any_logic:<code><mode>3): New.
28660         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
28661         Add SSE support.
28663 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28665         PR target/89021
28666         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
28667         TARGET_MMX_WITH_SSE.  Add SSE emulation.
28668         (mmx_<shift_insn><mode>3): Likewise.
28669         (ashr<mode>3): New.
28670         (<shift_insn><mode>3): Likewise.
28672 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28674         PR target/89021
28675         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
28676         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
28678 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28680         PR target/89021
28681         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
28682         TARGET_MMX_WITH_SSE.
28683         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
28684         SSE support.
28686 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28688         PR target/89021
28689         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
28690         TARGET_MMX_WITH_SSE.
28691         (mulv4hi3): New.
28692         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
28693         support.
28695 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28697         PR target/89021
28698         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
28699         (plusminus:mmx_<plusminus_insn><mode>3): Check
28700         TARGET_MMX_WITH_SSE.
28701         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
28702         (<plusminus_insn><mode>3): New.
28703         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
28704         (*mmx_<plusminus_insn><mode>3): Likewise.
28706 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28708         PR target/89021
28709         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
28710         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
28711         prototype.
28712         * config/i386/mmx.m (mmx_punpckhbw): Changed to
28713         define_insn_and_split to support SSE emulation.
28714         (mmx_punpcklbw): Likewise.
28715         (mmx_punpckhwd): Likewise.
28716         (mmx_punpcklwd): Likewise.
28717         (mmx_punpckhdq): Likewise.
28718         (mmx_punpckldq): Likewise.
28720 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28721             Uros Bizjak  <ubizjak@gmail.com>
28723         PR target/89021
28724         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
28725         New function.
28726         (ix86_split_mmx_pack): Likewise.
28727         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
28728         New prototype.
28729         (ix86_split_mmx_pack): Likewise.
28730         * config/i386/i386.md (mmx_isa): New.
28731         (enabled): Also check mmx_isa.
28732         * config/i386/mmx.md (any_s_truncate): New code iterator.
28733         (s_trunsuffix): New code attr.
28734         (mmx_packsswb): Removed.
28735         (mmx_packssdw): Likewise.
28736         (mmx_packuswb): Likewise.
28737         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
28738         MMX packsswb/packuswb with SSE2.
28739         (mmx_packssdw): Likewise.
28740         * config/i386/predicates.md (register_mmxmem_operand): New.
28742 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
28744         PR target/89021
28745         * config/i386/i386-c.c (ix86_target_macros_internal): Define
28746         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
28747         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
28748         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
28749         (ix86_vector_mode_supported_p): Likewise.
28750         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
28752 2019-05-15  Martin Liska  <mliska@suse.cz>
28754         PR middle-end/90478
28755         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28756         Check for overflow.
28758 2019-05-15  Richard Biener  <rguenther@suse.de>
28760         * tree-into-ssa.c (pass_build_ssa::execute): Run
28761         update_address_taken before going into SSA.
28763 2019-05-15  Richard Biener  <rguenther@suse.de>
28765         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
28766         as __BIT_FIELD_REF with type with -gimple.
28768 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
28770         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
28771         semantically equivalent branches (left over after prior refactorings).
28773 2019-05-15  Richard Biener  <rguenther@suse.de>
28775         PR tree-optimization/88828
28776         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
28777         bogus check.
28779 2019-05-14  Richard Biener  <rguenther@suse.de>
28781         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
28782         as __VIEW_CONVERT with -gimple.
28784 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28786         PR target/82920
28787         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
28788         Darwin.
28790 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28792         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
28793         define_split to become a define_insn_and_split.
28795 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
28797         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
28798         arguments.
28799         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
28800         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
28801         (sibcall_epilogue): Adjust.
28802         (epilogue): Adjust.
28804 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28806         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28807         to unsupported ones.
28808         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28809         * config.host: Likewise.
28810         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28811         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28812         __svr4__]: Remove "brand" fallback.
28813         [!KSTAT_DATA_STRING]: Remove.
28814         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28815         to *-*-solaris2*.
28816         (comdat_group): Likewise.
28817         (set_have_as_tls): Likewise.
28818         (gcc_cv_target_dl_iterate_phdr): Likewise.
28819         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28820         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28821         * configure: Regenerate.
28822         * doc/install.texi: Simplify Solaris target triplets.
28823         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28824         (Specific, *-*-solaris2*): Document Solaris 10 removal.
28825         Remove Solaris 10 references.
28826         Remove obsolete Solaris bug reference.
28827         (Specific, sparc-sun-solaris2.10): Remove.
28829 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28831         * config/i386/i386.md (any_div): New code iterator.
28832         (paired_mod): New code attribute.
28833         (sgnprefix): Handle DIV and UDIV RTXes.
28834         (u): Ditto.
28835         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28836         and udivmod<mode>4 patterns using any_div code iterator.
28837         (divmod splitters): Macroize splitters using any_div code iterator.
28838         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28839         (*udivmodsi4_pow2_zext_2): Ditto.
28840         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28841         and *udivmod<mode>4_noext patterns using any_div code iterator.
28842         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28843         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28844         patterns using any_div code iterator.
28845         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28846         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28847         patterns using any_div code iterator.
28848         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28849         udivmodhiqi3 patterns using any_extend code iterator.
28851 2019-05-14  Richard Biener  <rguenther@suse.de>
28852             H.J. Lu  <hongjiu.lu@intel.com>
28854         PR tree-optimization/88828
28855         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28856         permuting in a single non-constant element not extracted
28857         from a vector.
28859 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
28861         * internal-fn.def (SIGNBIT): New.
28862         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28863         defined.
28864         (signbitv4sf2): Likewise.
28866 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
28868         PR target/90357
28869         * config/mips/mips.c (mips_split_move): Skip forward SRC into
28870         next insn when the SRC reg is dead.
28872 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
28874         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28875         (alloc_cand_and_find_basis): Ditto.
28876         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28877         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28878         (create_add_imm_cand, slsr_process_cast): Ditto.
28879         (slsr_process_copy, replace_mult_candidate): Ditto.
28880         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28881         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28882         (pass_strength_reduction::execute): Init the first NULL element.
28884 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28886         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
28887         (run_attempt): Reformat line break.
28889 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
28891         PR target/90418
28892         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28893         data registers in sibcall epilogues.
28894         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28896 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28898         PR target/89221
28899         * configure.ac (--enable-frame-pointer):
28900         Disable by default for cygwin and mingw.
28901         * configure: Regenerate.
28903 2019-05-13  Nathan Sidwell  <nathan@acm.org>
28905         * dwarf2out.c (breakout_comdat_types): Move comment to correct
28906         piece of code.
28907         (const_ok_for_output_1): Balance parens around #if/#else/#endif
28908         (gen_member_die): Move abstract origin check earlier.  Only VARs
28909         can be static_inline_p.  Simplify splicing control flow.
28911 2019-05-13  Richard Biener  <rguenther@suse.de>
28913         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28914         VIEW_CONVERT_EXPR.
28915         (vect_build_slp_tree_1): Likewise.
28917 2019-05-13  Richard Biener  <rguenther@suse.de>
28919         PR tree-optimization/90402
28920         * tree-if-conv.c (tree_if_conversion): Value number only
28921         the loop body by making the latch an exit of the region
28922         as well.
28923         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28924         processing PHIs.
28925         (do_rpo_vn): Deal with multiple edges into the entry block
28926         that are not backedges inside the region by skipping PHIs
28927         of the entry block.
28929 2019-05-13  Richard Biener  <rguenther@suse.de>
28931         PR tree-optimization/90316
28932         * tree-ssa-pre.c (insert_aux): Fold into ...
28933         (insert): ... this function.  Use a RPO walk to reduce the
28934         number of required iterations.
28936 2019-05-13  Martin Liska  <mliska@suse.cz>
28938         PR tree-optimization/90416
28939         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28940         string instead of passing the second part as va_arg argument.
28942 2019-05-13  Martin Liska  <mliska@suse.cz>
28944         PR gcov-profile/90380
28945         * gcov.c (handle_cycle): Do not support zero cycle count,
28946         it should not be possible.
28947         (path_contains_zero_cycle_arc): New function.
28948         (circuit): Ignore zero cycle arc counts.
28950 2019-05-13  Martin Liska  <mliska@suse.cz>
28952         PR gcov-profile/90380
28953         * gcov.c (enum loop_type): Remove the enum and
28954         the operator.
28955         (handle_cycle): Assert that we should not reach
28956         a negative count.
28957         (circuit): Use loop_found instead of a tri-state loop_type.
28958         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28959         happen.
28961 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28963         PR target/82920
28964         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28965         (ix86_output_indirect_branch_via_reg): Use output mechanism
28966         accounting for __USER_LABEL_PREFIX__.
28967         (ix86_output_indirect_branch_via_push): Likewise.
28968         (ix86_output_function_return): Likewise.
28969         (ix86_output_indirect_function_return): Likewise.
28971 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
28973         * doc/md.texi: Document use of code attributes in rtx patterns.
28974         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28975         * read-rtl.c (find_code): Split out search loops into...
28976         (maybe_find_code): ...this new function.
28977         (check_code_iterator): Make the error message more informative.
28978         (check_code_attribute): New function.
28979         (rtx_reader::rtx_alloc_for_name): Likewise.
28980         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28981         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28982         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28983         <max_opp> directly as an rtx code instead of via a match_operator.
28984         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28985         (<su>abd<mode>_3): Update accordingly.
28987 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
28989         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28990         is given, print the state of the EH "save world" computation for
28991         Darwin.
28993 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
28995         PR c++/59813
28996         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28997         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28999 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29001         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
29002         Use pinsrd for TARGET_SSE4_1.
29003         * config/i386/sse.md (movdi_to_sse): Ditto.
29005 2019-05-10  Richard Biener  <rguenther@suse.de>
29007         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
29008         (do_rpo_vn): Initialize next_value_id.
29010 2019-05-10  Martin Liska  <mliska@suse.cz>
29012         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
29013         Fix plural form.
29015 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
29017         PR tree-optimization/90385
29018         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
29019         arguments of the exit phis.
29021         PR c++/90383
29022         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
29023         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
29024         id->do_not_fold.
29025         (copy_tree_body_r): Likewise.
29026         (copy_fn): Set id.do_not_fold to true.
29028 2019-05-10  Martin Liska  <mliska@suse.cz>
29030         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
29031         Reapply changes from r269790.
29033 2019-05-10  Martin Liska  <mliska@suse.cz>
29035         PR middle-end/90340
29036         * doc/invoke.texi: New params.
29037         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
29038         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
29039         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
29040         Use it.
29041         * tree-switch-conversion.h (struct jump_table_cluster):
29042         Likewise.
29044 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
29046         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
29048 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
29050         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
29052 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
29054         PR rtl-optimization/88879
29055         * sel-sched.c (sel_target_adjust_priority): Remove assert.
29057 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
29059         PR target/90405
29060         * config/arm/arm.c (callee_saved_reg_p): Move before
29061         thumb_find_work_register.
29062         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
29063         thumb_find_work_register.  Only call df_get_live_out once.
29064         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
29065         (thumb_find_work_register): Use
29066         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
29067         algorithms to locate a spare call clobbered reg.
29069 2019-05-09  Martin Liska  <mliska@suse.cz>
29071         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
29072         and MAX_EXPR in GIMPLE FE format.
29074 2019-05-09  Martin Liska  <mliska@suse.cz>
29076         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
29077         * gimple-pretty-print.c (dump_gimple_bb_header):
29078         Dump BB count.
29079         (pp_cfg_jump): Dump edge probability.
29080         * profile-count.c (profile_quality_as_string): Simplify
29081         with a static array.
29082         (parse_profile_quality): New function.
29083         (profile_count::dump): Simplify with a static array.
29084         (profile_count::from_gcov_type): Add new argument.
29085         * profile-count.h (parse_profile_quality): Likewise.
29086         * predict.h (set_hot_bb_threshold): New.
29087         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
29088         New param.
29089         * predict.c (get_hot_bb_threshold): Set from the new param.
29090         (set_hot_bb_threshold): New.
29092 2019-05-09  Richard Biener  <rguenther@suse.de>
29094         PR tree-optimization/90395
29095         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
29096         rewrite vector stores that throw internally.
29098 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
29100         * cif-code.def (CHKP): Remove.
29102         PR target/89221
29103         * configure.ac (--enable-frame-pointer): Disable by default for
29104         GNU systems.
29105         * configure: Regenerate.
29107 2019-05-09  Alan Modra  <amodra@gmail.com>
29109         PR target/89271
29110         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
29111         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
29112         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
29113         cost for general <-> vsx when direct moves are available.
29114         Cost union classes at minimal cost for any reg in the class.
29115         Correct calculation for moves between vsx, float, and altivec.
29116         Don't return a low cost for moves between special regs.  Don't
29117         use hard coded register numbers.
29118         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
29119         (rs6000_ira_change_pseudo_allocno_class): New function.
29120         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
29121         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
29122         alternatives.
29123         (movsi_internal1): Don't disparage vector alternatives.
29124         (mov<mode>_internal): Likewise, excepting alternative that
29125         will be split.
29126         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
29127         we <- b alternative.
29129 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
29131         PR c++/59813
29132         PR tree-optimization/89060
29133         * tree-ssa-live.h (live_vars_map): New typedef.
29134         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
29135         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
29136         (struct compute_live_vars_data): New type.
29137         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
29138         live_vars_at_stmt, destroy_live_vars): New functions.
29139         * tree-tailcall.c: Include tree-ssa-live.h.
29140         (live_vars, live_vars_vec): New global variables.
29141         (find_tail_calls): Perform variable life analysis before punting.
29142         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
29143         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
29144         member.
29145         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
29146         Perform variable life analysis to select variables that really need
29147         clobbers added.
29148         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
29149         instead set id->eh_landing_pad_dest and assert it is the same.
29150         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
29152 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
29153             Richard Earnshaw  <rearnsha@arm.com>
29155         PR target/88167
29156         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
29157         function.
29158         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
29159         (thumb1_compute_save_core_reg_mask): Don't force a spare work
29160         register if both the epilogue and prologue can use call-clobbered
29161         regs.
29162         (thumb1_unexpanded_epilogue): Use
29163         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
29164         picking temporaries for restoring high regs to match that of the
29165         prologue where possible.
29166         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
29167         the list of work registers.  Detect if the return address is still live
29168         at the end of the prologue and avoid using it for a work register if so.
29169         If the return address is not live, add LR to the list of pushable regs
29170         after the first pass.
29172 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
29174         PR tree-optimization/90078
29175         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
29176         (INFTY): Increase the value for infinite cost.
29177         (struct comp_cost): Promote type of members to int64_t.
29178         (infinite_cost): Don't set complexity in initialization.
29179         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
29180         overflows to infinite_cost.
29181         (adjust_setup_cost): Promote type of parameter and cost computation
29182         to int64_t.
29183         (struct ainc_cost_data, struct iv_ca): Promote type of member to
29184         int64_t.
29185         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
29186         cost computation to int64_t.
29187         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
29188         int64_t's format specifier in dump.
29190 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
29192         PR tree-optimization/90240
29193         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
29194         with respect to scaling factor pre-computed for each basic block.
29195         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
29196         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
29197         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
29198         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
29199         live range for array of loop's basic blocks.  Cleanup aux field of
29200         loop's basic blocks.
29202 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
29204         PR tree-optimization/90356
29205         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
29207 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
29209         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
29210         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
29211         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
29212         (ix86_handle_option): Handle -mavx512bf16.
29213         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
29214         to extra_headers.
29215         * config/i386/avx512bf16vlintrin.h: New.
29216         * config/i386/avx512bf16intrin.h: New.
29217         * config/i386/cpuid.h (bit_AVX512BF16): New.
29218         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
29219         * config/i386/i386-builtin-types.def: Add new types.
29220         * config/i386/i386-builtin.def: Add new builtins.
29221         * config/i386/i386-c.c (ix86_target_macros_internal): Define
29222         __AVX512BF16__.
29223         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
29224         (ix86_option_override_internal): Handle BF16.
29225         (ix86_valid_target_attribute_inner_p): Ditto.
29226         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
29227         * config/i386/i386-builtin.c (enum processor_features): Add
29228         F_AVX512BF16.
29229         (static const _isa_names_table isa_names_table): Ditto.
29230         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
29231         (PTA_AVX512BF16): Ditto.
29232         * config/i386/i386.opt: Add -mavx512bf16.
29233         * config/i386/immintrin.h: Include avx512bf16intrin.h
29234         and avx512bf16vlintrin.h.
29235         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
29236         avx512f_cvtneps2bf16_<mode><mask_name>,
29237         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
29238         * config/i386/subst.md (mask_half): Add new subst.
29239         * doc/invoke.texi: Document -mavx512bf16.
29241 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29243         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
29244         Delete declaration.
29245         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
29246         (rs6000_debug_legitimize_reload_address): Delete.
29247         (rs6000_legitimize_reload_address_ptr): Delete.
29248         (rs6000_option_override_internal): Adjust.
29249         (mem_operand_gpr): Adjust comment.
29250         (legitimate_lo_sum_address_p): Ditto.
29251         (rs6000_legitimize_reload_address): Delete.
29252         (rs6000_debug_legitimize_reload_address): Delete.
29253         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
29255 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29257         PR target/89765
29258         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29259         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
29260         to compute vector element selector for both constant and variable
29261         operands.
29263 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29265         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
29266         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
29267         ashrdi3_cvt using SWI48 mode iterator.
29269 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
29271         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
29272         (aarch64_<su>abd<mode>_3): Likewise.
29273         (*aarch64_<su>abd<mode>_3): New define_insn.
29274         (<sur>sad<vsi2qi>): New define_expand.
29275         * config/aarch64/iterators.md: Added MAX_OPP attribute.
29276         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
29277         (build_vect_cond_expr): Likewise.
29279 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29281         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
29282         clobbers outside of accessible_reg_set.
29283         * config/i386/i386.c (ix86_conditional_register_usage):
29284         Disable register sets by clearing corresponding bits in
29285         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
29286         call_used_regs and don't clear corresponding reg_names array members.
29288 2019-05-07  Richard Biener  <rguenther@suse.de>
29290         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
29291         not specified still compute a comp_vectype for invariant
29292         compares.
29294 2019-05-07  Richard Biener  <rguenther@suse.de>
29296         PR tree-optimization/90316
29297         * tree-ssa-pre.c (translate_vuse_through_block): When
29298         same_valid is NULL do not bother to search for a virtual
29299         PHI continuation.
29300         (phi_translate_1): When operands changed we cannot keep
29301         the same value-number so do not bother to ask whether
29302         that's possible from translate_vuse_through_block.
29304 2019-05-07  Martin Liska  <mliska@suse.cz>
29306         * bitmap.c (bitmap_register): Come up with
29307         alloc_descriptor_max_uid and assign it for
29308         a new bitmap.
29309         (register_overhead): Use get_descriptor as
29310         a descriptor.
29311         (release_overhead): New.
29312         (bitmap_elem_to_freelist): Call it.
29313         (bitmap_elt_clear_from): Likewise.
29314         (bitmap_obstack_free): Likewise.
29315         (bitmap_move): Sensitively release memory.
29316         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
29317         (bitmap_initialize): Initialize alloc_descriptor to zero.
29318         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
29320 2019-05-07  Richard Biener  <rguenther@suse.de>
29322         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
29323         we build a SLP node.  Remove max_size and limiting.
29324         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
29326 2019-05-07  Richard Biener  <rguenther@suse.de>
29328         PR tree-optimization/90316
29329         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
29330         limit by reference.
29331         (walk_non_aliased_vuses): Take walking limit argument.
29332         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
29333         walking if it is reached instead of just counting.
29334         (get_continuation_for_phi): Likewise.
29335         (walk_non_aliased_vuses): Likewise, instead of leaving counter
29336         limiting to the callback.
29337         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
29338         (vn_reference_lookup_3): Likewise.
29339         (vn_reference_lookup_pieces): Likewise.
29340         (vn_reference_lookup): Likewise.
29341         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
29342         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
29343         (avail_exprs_stack::lookup_avail_expr): Likewise.
29345 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
29347         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
29348         for comparaible types in the second direction even if first one
29349         hits incomparable type.
29351 2019-05-07  Richard Biener  <rguenther@suse.de>
29353         PR lto/90369
29354         * lto-wrapper.c (debug_objcopy): Use the original filename
29355         including archive offset for the filename used for -save-temps.
29357 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
29359         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
29360         detection.
29362 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
29363             Hongtao Liu  <hongtao.liu@intel.com>
29365         PR target/89750
29366         PR target/86444
29367         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
29368         Modified, original implementation isn't correct.
29370 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29372         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
29373         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
29374         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
29375         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
29376         (FRAME_POINTER_REGNUM): Change numbering.
29377         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
29378         (alt_reg_names): Adjust.
29379         (rs6000_conditional_register_usage): Don't mark hard register 64 as
29380         fixed.
29381         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
29382         (DWARF_FRAME_REGISTERS): Delete.
29383         (DWARF2_FRAME_REG_OUT): Fix whitespace.
29384         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
29385         Adjust.
29386         (REG_ALLOC_ORDER): Adjust.
29387         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
29388         (REG_CLASS_CONTENTS): Adjust.
29389         (RETURN_ADDR_RTX): Change comment.
29390         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
29391         instead of 67.
29392         (REGISTER_NAMES): Adjust.
29393         (ADDITIONAL_REGISTER_NAMES): Adjust.
29394         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
29396 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29398         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
29399         Delete.
29400         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
29401         (DWARF_FRAME_REGISTERS): Adjust.
29402         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
29403         Adjust.
29404         (REG_ALLOC_ORDER): Adjust.
29405         (enum reg_class): Delete SPR_REGS.
29406         (REG_CLASS_NAMES): Delete SPR_REGS.
29407         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
29408         (REGISTER_NAMES): Adjust.
29409         (ADDITIONAL_REGISTER_NAMES): Adjust.
29410         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
29411         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
29412         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
29413         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
29414         (htm_spr_regno): Delete.
29415         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
29416         argument.
29417         (rs6000_dbx_register_number): Adjust.
29419 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29421         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
29423 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29425         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
29426         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
29428 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
29430         PR tree-optimization/88709
29431         PR tree-optimization/90271
29432         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
29433         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
29434         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
29435         variable.
29436         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
29437         of the store merging group is larger than
29438         PARAM_STORE_MERGING_MAX_SIZE parameter.
29439         (split_group): Add bzero_first argument.  If set, always emit first
29440         the first store which must be = {} of the whole area and then for the
29441         rest of the stores consider all zero bytes as paddings.
29442         (imm_store_chain_info::output_merged_store): Check if first store
29443         is = {} of the whole area and if yes, determine which setting of
29444         bzero_first for split_group gives smaller number of stores.  Adjust
29445         split_group callers.
29446         (lhs_valid_for_store_merging_p): Allow decls.
29447         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
29448         no elts.
29449         (pass_store_merging::process_store): Likewise.
29451 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29453         PR target/89424
29454         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
29455         handling of V1TImode.
29457 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29459         PR target/89221
29460         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
29461         and enable_frame_pointer ...
29462         * configure.ac: ... here.  Update help strings for
29463         --enable-frame-pointer.
29464         * configure: Regenerate.
29465         * config/i386/i386-options.c (ix86_option_override_internal): Remove
29466         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
29467         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
29468         (USE_X86_64_FRAME_POINTER): Ditto.
29470 2019-05-06  Martin Liska  <mliska@suse.cz>
29472         * config.gcc: Append to target_gtfiles and fix indentation.
29474 2019-05-06  Richard Biener  <rguenther@suse.de>
29476         PR tree-optimization/90358
29477         * tree-vect-stmts.c (get_group_load_store_type): Properly
29478         detect unused upper half of load.
29479         (vectorizable_load): Likewise.
29481 2019-05-06  Richard Biener  <rguenther@suse.de>
29483         PR tree-optimization/88828
29484         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
29485         (simplify_vector_constructor): ...here.  Handle constants in
29486         the constructor.
29488 2019-05-06  Richard Biener  <rguenther@suse.de>
29490         PR tree-optimization/90328
29491         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
29492         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
29493         is valid in the loop nest before using it.
29494         (initialize_data_dependence_relation): Adjust.
29495         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
29496         loop as loop-nest to dr_may_alias_p.
29498 2019-05-06  Richard Biener  <rguenther@suse.de>
29500         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
29502 2019-05-06  Richard Biener  <rguenther@suse.de>
29504         PR tree-optimization/90316
29505         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
29506         compute target on demand.
29507         (get_continuation_for_phi): Remove code walking stmts to
29508         get to a target virtual operand which could end up being
29509         quadratic.
29511 2019-05-06  Martin Liska  <mliska@suse.cz>
29513         PR sanitizer/90312
29514         * config/i386/i386-options.c (ix86_option_override_internal): Error only
29515         when -mabi is selected to a non-default version.
29517 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
29518             Martin Liska  <mliska@suse.cz>
29520         * Makefile.in: Add lto-dump.texi.
29521         * cgraph.h: Add new functions get_visibility_string and
29522         get_symtab_type_string.
29523         * doc/gcc.texi: Include lto-dump section.
29524         * doc/lto-dump.texi: New file.
29525         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
29526         (parse_dump_option): Factor out this function.
29527         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
29528         (parse_dump_option): Export the function.
29529         * symtab.c (symtab_node::get_visibility_string): New function.
29530         (symtab_node::get_symtab_type_string): Likewise.
29532 2019-05-06  Martin Liska  <mliska@suse.cz>
29534         * config/i386/i386-builtins.c: New file.
29535         * config/i386/i386-builtins.h: New file.
29536         * config/i386/i386-expand.c: New file.
29537         * config/i386/i386-expand.h: New file.
29538         * config/i386/i386-features.c: New file.
29539         * config/i386/i386-features.h: New file.
29540         * config/i386/i386-options.c: New file.
29541         * config/i386/i386-options.h: New file.
29542         * config.gcc: Add new files into extra_objs and
29543         target_gtfiles.
29544         * config/i386/i386.c: Split content of the file
29545         into newly introduced files.
29546         * config/i386/i386.h: Declare common variables
29547         and macros.
29548         * config/i386/t-i386: Define dependencies for new files.
29550 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
29552         PR target/89400
29553         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
29554         Restrict 'all' variant to 32-bit configurations.
29555         (unaligned_loadhiu): Likewise.
29556         (unaligned_storehi): Likewise.
29557         (unaligned_storesi): Likewise.
29558         (unaligned_loadhis): Disable when compiling for thumb1.
29560 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
29562         PR tree-optimization/90269
29563         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
29564         Ignore clobbers.
29566 2019-05-03  Martin Liska  <mliska@suse.cz>
29568         * hash-map.h: Add is_empty function.
29569         * hash-set.h: Likewise.
29570         * hash-table.h: Likewise.
29571         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
29572         elements () == 0 (and similar usages).
29573         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
29574         * gimplify.c (gimplify_bind_expr): Likewise.
29575         (gimplify_switch_expr): Likewise.
29576         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
29577         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
29578         * postreload-gcse.c (dump_hash_table): Likewise.
29579         (gcse_after_reload_main): Likewise.
29580         * predict.c (combine_predictions_for_bb): Likewise.
29581         * tree-parloops.c (reduction_phi): Likewise.
29582         (separate_decls_in_region): Likewise.
29583         (transform_to_exit_first_loop): Likewise.
29584         (gen_parallel_loop): Likewise.
29585         (gather_scalar_reductions): Likewise.
29586         (try_create_reduction_list): Likewise.
29587         * var-tracking.c (dump_vars): Likewise.
29588         (emit_notes_for_changes): Likewise.
29589         (vt_emit_notes): Likewise.
29591 2019-05-03  Richard Biener  <rguenther@suse.de>
29593         PR tree-optimization/90316
29594         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
29595         before running VN.
29597 2019-05-03  Richard Biener  <rguenther@suse.de>
29599         * tree-vect-stmts.c (get_group_load_store_type): Avoid
29600         peeling for gaps by loading only lower halves of vectors
29601         if possible.
29602         (vectorizable_load): Likewise.
29604 2019-05-03  Richard Biener  <rguenther@suse.de>
29606         PR middle-end/89518
29607         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
29609 2019-05-03  Richard Biener  <rguenther@suse.de>
29611         PR middle-end/87314
29612         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
29613         Handle STRING_CST vs DECL or STRING_CST.
29615 2019-05-03  Richard Biener  <rguenther@suse.de>
29617         PR tree-optimization/88963
29618         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
29619         vector loads feeding only BIT_FIELD_REFs to component
29620         loads.  Rewrite stores fed by CONSTRUCTORs to component
29621         stores.
29623 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
29625         * opts.h (finish_options): Remove lang_mask argument.
29626         (print_help, help_option_argument): Declare.
29627         * opts.c (print_help): Remove forward declaration, no longer static.
29628         (finish_options): Remove lang_mask argument, don't call print_help
29629         here.
29630         * opts-global.c (decode_options): Adjust finish_option caller, call
29631         print_help here.
29633         PR tree-optimization/90303
29634         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
29635         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
29637 2019-05-03  Richard Biener  <rguenther@suse.de>
29639         PR tree-optimization/89698
29640         * gimple-fold.c (canonicalize_constructor_val): Early out
29641         for constants, handle unfolded INTEGER_CSTs as they appear in
29642         C++ virtual table ctors.
29644 2019-05-03  Richard Biener  <rguenther@suse.de>
29646         * passes.c (execute_function_todo): Remove dead code.
29648 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29650         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
29651         the internal register number, for any "real" register.
29653 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
29655         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
29656         correct numbers for TFHAR, TFIAR, TEXASR.
29658 2019-05-02  Richard Biener  <rguenther@suse.de>
29660         PR tree-optimization/89653
29661         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
29662         update-address-taken before the pass.
29663         * passes.def (pass_tree_loop_init): Put comment before it.
29665 2019-05-02  Richard Biener  <rguenther@suse.de>
29667         PR tree-optimization/89509
29668         * tree-ssa-structalias.c (compute_dependence_clique): Look
29669         at the first subvar when determining whether it is restrict.
29671 2019-05-02  Richard Biener  <rguenther@suse.de>
29673         PR tree-optimization/90273
29674         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
29675         useless debug stmts.
29677 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
29679         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
29680         ACLE branch.
29681         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
29682         SVE ACLE branch.
29683         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
29684         VEC_COND_EXPR be inserted to emulate a conditional internal function.
29685         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
29686         (vectorizable_reduction): Use the functions above to vectorize in a
29687         fully masked loop codes that don't have a conditional internal
29688         function.
29690 2019-05-02  Martin Liska  <mliska@suse.cz>
29692         * cgraphclones.c: Call valid_attribute_p with 1 for
29693         target_clone.
29694         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
29695         it's for target attribute.
29696         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
29697         Add new boolean argument.
29698         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
29699         Likewise.
29700         (ix86_valid_target_attribute_tree): Pass target_clone_attr
29701         to ix86_valid_target_attribute_inner_p.
29702         (ix86_valid_target_attribute_p): Pass flags argument to
29703         ix86_valid_target_attribute_inner_p.
29704         (get_builtin_code_for_version): Use 0 as it's target attribute.
29706 2019-05-02  Martin Liska  <mliska@suse.cz>
29708         * gcc.c (process_command): Add dummy file only
29709         if n_infiles == 0.
29710         * opts-global.c (decode_options): Pass lang_mask.
29711         * opts.c (print_help): New function.
29712         (finish_options): Print --help if help_option_argument
29713         is set.
29714         (common_handle_option): Factor out content of OPT__help_
29715         into print_help.
29716         * opts.h (finish_options): Add new argument.
29718 2019-05-02  Martin Liska  <mliska@suse.cz>
29720         PR target/88809
29721         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
29722         With -minline-all-stringops use inline expansion using 4B loop.
29723         * doc/invoke.texi: Document the change of
29724         -minline-all-stringops.
29726 2019-05-01  Jeff Law  <law@redhat.com>
29728         PR tree-optimization/88797
29729         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
29730         PHI feeds a conditional on the RHS of an assignment.
29732 2019-04-30  Andrew Waterman  <andrew@sifive.com>
29733             Jim Wilson  <jimw@sifive.com>
29735         * config/riscv/constraints.md (L): New.
29736         * config/riscv/predicates.md (lui_operand): New.
29737         (sfb_alu_operand): New.
29738         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
29739         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
29740         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
29741         * config/riscv/risc.md (type): Add sfb_alu.
29742         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
29743         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
29744         (branch_zero<mode>): Delete.
29745         (mov<mode>cc): New.
29746         (mov<GPR:mode><X:mode>cc): Likewise.
29747         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
29749 2019-04-30  Nathan Sidwell  <nathan@acm.org>
29751         * tree.h (MARK_TS_EXP): New.
29753 2019-04-30  Martin Liska  <mliska@suse.cz>
29755         * opts.c (enable_warning_as_error): Provide hints
29756         for unknown options.
29758 2019-04-30  Martin Liska  <mliska@suse.cz>
29760         PR debug/90288
29761         * doc/invoke.texi: Add missing dash for gas-locview-support
29762         and gno-as-locview-support.
29764 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29766         PR target/89093
29767         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
29768         whitespace at the start of target attribute string.
29770 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29772         PR target/86538
29773         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
29774         Define __ARM_FEATURE_ATOMICS.
29776 2019-04-30  Martin Liska  <mliska@suse.cz>
29778         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
29779         into built_in_function enum. Remove code for endp == 2 and
29780         use BUILT_IN_* constants.
29781         (gimple_fold_builtin): Call the function with fcode.
29783 2019-04-30  Martin Liska  <mliska@suse.cz>
29785         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
29786         DECL_FUNCTION_CODE into ix86_builtins enum before
29787         the switch statement.
29789 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
29791         PR tree-optimization/89475
29792         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
29793         calls.
29795 2019-04-30  Martin Liska  <mliska@suse.cz>
29797         PR translation/90274
29798         * opts.c (print_filtered_help): Wrap string in _(...).
29800 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
29802         PR tree-optimization/90240
29803         Revert:
29804         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
29806         PR tree-optimization/90078
29807         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29808         checks for infinite_cost overflow.
29810 2019-04-29  Jeff Law  <law@redhat.com>
29812         * passes.def: Move -Wrestrict pass after copy propagation.
29814 2019-04-29  Maya Rashish  <coypu@sdf.org>
29816         * config.gcc (default_gnu_indirect_function): Default to yes
29817         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29818         sparc*-*-netbsd*, x86_64-*-netbsd*.
29820 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
29822         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29823         where cond2 is NE_EXPR.
29824         (is_value_included_in): Update comment.
29826 2019-04-29  Richard Biener  <rguenther@suse.de>
29828         PR tree-optimization/90278
29829         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29830         EH on comparison simplification.
29832 2019-04-29  Jason Merrill  <jason@redhat.com>
29834         PR c++/82081 - tail call optimization breaks noexcept
29835         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29836         nothrow function to a might-throw function into a tail call.
29838 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29840         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29841         (DDR_INNER_LOOP): Likewise.
29842         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29843         (initialize_data_dependence_relation): Likewise.
29844         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29846 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
29848         PR rtl-optimization/90257
29849         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29850         return value.
29852         Revert the revert:
29853         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
29855         PR target/90178
29856         Revert:
29857         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
29859         Revert the revert:
29860         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
29862         Revert:
29863         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
29865         * lra-spills.c (lra_final_code_change): Remove useless move insns.
29867 2019-04-29  Richard Biener  <rguenther@suse.de>
29869         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29870         rhs issue a reset.
29872 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
29874         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
29875         varasm.h, and netbsd-protos.h.
29877 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29879         PR target/89261
29880         * config/i386/i386-protos.h (ix86_data_alignment): Change
29881         the second argument type to unsigned int.
29882         * config/i386/i386.c (ix86_data_alignment): Change "align"
29883         argument type to unsigned int.
29885 2019-04-27  Martin Liska  <mliska@suse.cz>
29887         PR middle-end/90258
29888         * opt-suggestions.c (option_proposer::build_option_suggestions):
29889         When get_valid_option_values returns empty values, add the
29890         misspelling candidate.
29892 2019-04-26  Jim Wilson  <jimw@sifive.com>
29894         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29895         parameter.
29896         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29897         Pass orig_mode to riscv_build_integer.
29898         (riscv_split_integer): Pass mode to riscv_move_integer.
29899         (riscv_legitimize_const_move): Likewise.
29900         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29901         promoted_mode.  Replace force_reg call with code to load constant into
29902         promoted reg and then subreg it for the store.
29903         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29904         riscv_move_integer.
29906 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
29908         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29909         corrupt codes.
29911 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
29913         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29914         commentary about the encoding of precision.
29916 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
29918         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29919         * config/i386/t-freebsd64: New file.
29920         * config.gcc: Add the t-freebsd64 for multilib support.
29922 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29924         * doc/extend.texi (vector_size): Add missing comma after @xref.
29926 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
29928         * BASE-VER: Set to 10.0.0.
29930 2019-04-25  Richard Biener  <rguenther@suse.de>
29932         PR middle-end/89765
29933         * gimplify.c (gimplify_expr): Avoid turning a lvalue
29934         VIEW_CONVERT_EXPR into one operating on an rvalue.
29936 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
29938         PR target/89929
29939         * config/i386/i386.c (feature_priority): Moved to file scope.
29940         (processor_features): Likewise.
29941         (processor_model): Likewise.
29942         (_arch_names_table): Likewise.
29943         (arch_names_table): Likewise.
29944         (_feature_list): Removed.
29945         (feature_list): Likewise.
29946         (_isa_names_table): Moved to file scope.  Add priority.
29947         (isa_names_table): Likewise.
29948         (get_builtin_code_for_version): Replace feature_list with
29949         isa_names_table.  Update error message for P_ZERO priority.
29951 2019-04-25  Richard Biener  <rguenther@suse.de>
29953         * tree-pass.h (make_pass_phi_only_cprop): Remove.
29954         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29956 2019-04-24  Jeff Law  <law@redhat.com>
29958         PR tree-optimization/90037
29959         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29960         * passes.def: Replace all instance of phi-only cprop with the
29961         lattice propagator.  Move propagation pass from after erroneous
29962         path isolation to before erroneous path isolation.
29963         * tree-ssa-phionlycprop.c: Remove.
29965 2019-04-24  Richard Biener  <rguenther@suse.de>
29967         PR middle-end/90213
29968         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29969         by size and BITS_PER_UNIT on poly-wide-ints.
29971 2019-04-25  Richard Biener  <rguenther@suse.de>
29973         PR middle-end/90194
29974         * match.pd: Add pattern to simplify view-conversion of an
29975         empty constructor.
29977 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
29979         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29980         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29981         for Go on 32 bit AIX.
29982         * config/rs6000/aix72.h: Likewise.
29984 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
29986         PR target/90193
29987         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29988         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29990 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
29992         PR target/89952
29993         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29994         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
29995         for restored hard frame pointer.
29996         (s390_sched_dependencies_evaluation): Implement new target hook.
29997         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29999 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
30001         * config/arc/arc-options.def: Fix typos and spelling mistakes.
30002         * config/arc/arc.c (arc_init): Cleanup warning message.
30003         (arc_override_options): Likewise.
30005 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
30007         PR target/90187
30008         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
30009         a register if both if_true and if_false are MEMs.
30011         PR tree-optimization/90208
30012         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
30013         after labels of new_bb, not before them.
30015         PR tree-optimization/90211
30016         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
30017         which are not SSA_NAMEs.
30019 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
30021         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
30022         AArch64.
30023         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
30025 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
30027         PR rtl-optimization/87979
30028         * modulo-sched.c (sms_schedule): Start ii value "mii" should
30029         not equal zero.
30031 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
30033         PR rtl-optimization/84032
30034         * modulo-sched.c (ps_insn_find_column): Change condition so that
30035         branch will always be the last insn in a row inside partial
30036         schedule.
30038 2019-04-23  Richard Biener  <rguenther@suse.de>
30040         PR debug/90131
30041         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
30042         dest_single_pred_p argument.
30043         (remove_forwarder_block): Adjust.
30044         (remove_forwarder_block_with_phi): Likewise.
30046 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30047             Bernd Edlinger  <bernd.edlinger@hotmail.de>
30048             Jakub Jelinek  <jakub@redhat.com>
30050         PR target/89093
30051         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
30052         if used with general-regs-only.
30053         (arm_conditional_register_usage): Don't add non-general regs if
30054         general-regs-only.
30055         (arm_valid_target_attribute_rec): Handle general-regs-only.
30056         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
30057         general-regs-only.
30058         (TARGET_HARD_FLOAT_SUB): Define.
30059         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
30060         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
30061         (TARGET_REALLY_IWMMXT2): Likewise.
30062         * config/arm/arm.opt: Add -mgeneral-regs-only.
30063         * doc/extend.texi: Document ARM general-regs-only target.
30064         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
30066 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
30068         PR tree-optimization/90078
30069         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
30070         checks for infinite_cost overflow.
30072 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
30074         PR tree-optimization/90021
30075         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
30076         and check univariate against it.
30077         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
30078         * tree-data-ref.c (add_other_self_distances): Pass new argument.
30080 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
30082         PR target/90178
30083         Revert:
30084         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
30086         Revert the revert:
30087         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
30089         Revert:
30090         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
30092         * lra-spills.c (lra_final_code_change): Remove useless move insns.
30094 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
30096         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
30097         names using operand format, rather than hard-wired.
30098         (speculation_barrier): Likewise.
30100 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
30102         PR tree-optimization/88055
30103         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
30104         (gen_one_condition): Use it if !HONOR_NANS.
30106 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
30108         PR middle-end/90139
30109         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
30110         assign_temp instead of gen_reg_rtx.
30112 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
30114         PR translation/90118
30115         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30116         Add missing space before %<.
30118 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
30120         PR rtl-optimization/87871
30121         * ira-lives.c (make_object_dead): Don't add conflicts to
30122         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
30124 2019-04-18  Martin Sebor  <msebor@redhat.com>
30126         PR middle-end/89797
30127         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
30128         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
30129         assuming type size fits in SHWI.
30131 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
30133         PR ipa/85051
30134         * ipa-inline.c (flatten_function): New parameter UPDATE.
30135         (ipa_inline, early_inliner): Use it.
30137 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
30139         * fold-const.c (int_const_binop): Return early on failure.
30141 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
30143         PR middle-end/85164
30144         * combine.c (force_int_to_mode): Cast the argument rather than
30145         the result of known_alignment.
30146         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
30148 2019-04-18  Richard Biener  <rguenther@suse.de>
30150         PR debug/90131
30151         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
30152         out from ...
30153         (remove_forwarder_block): ... here.
30154         (remove_forwarder_block_with_phi): Also move debug stmts here.
30156 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
30158         PR translation/79183
30159         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
30160         inform where appropriate.
30162 2019-04-18  Richard Biener  <rguenther@suse.de>
30164         * tree.c (get_qualified_type): Put found type variants at the
30165         head of the variant list.
30167 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
30169         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
30171 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
30173         PR target/90125
30174         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
30175         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
30176         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
30177         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
30178         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
30180 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
30182         * ira-conflicts.c (print_allocno_conflicts): Always print something,
30183         even for allocno's with no conflicts.
30184         (print_conflicts): Print an extra newline.
30186 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
30188         * auto-inc-dec.c (attempt_change): Set the alignment of the
30189         temporary memory to that of the original.
30191 2019-04-17  Joao Moreira  <jmoreira@suse.de>
30193         * targhooks.c (default_print_patchable_function_entry): Emit
30194         __patchable_function_entries section with writable flags to allow
30195         relocation resolution.
30197 2019-04-17  Jonny Grant  <jg@jguk.org>
30199         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
30201 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
30203         PR middle-end/90095
30204         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
30205         on lowpart SUBREGs.
30207 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
30209         * config/arc/arc.c (arc_init): Format diagnostic string.
30210         (arc_override_options): Likewise.
30211         (check_if_valid_regno_const): Likewise.
30212         (arc_reorg): Likewise.
30214 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
30216         PR target/17108
30217         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
30218         name.
30219         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
30220         name.
30221         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
30222         (*movdi_update1): Use Pmode.
30223         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
30224         (movdi_<mode>_update_stack): Rename to ...
30225         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
30226         use Pmode.
30227         (*movsi_update1): Use Pmode.
30228         (*movsi_update2): Use Pmode.
30229         (movsi_update): Rename to ...
30230         (movsi_<mode>_update): ... this.  Use Pmode.
30231         (movsi_update_stack): Fix condition.
30232         (*movhi_update1): Use Pmode.  Fix argument to
30233         avoiding_indexed_address_p.
30234         (*movhi_update2): Ditto.
30235         (*movhi_update3): Ditto.
30236         (*movhi_update4): Ditto.
30237         (*movqi_update1): Ditto.
30238         (*movqi_update2): Ditto.
30239         (*movqi_update3): Ditto.
30240         (*movsf_update1, *movdf_update1): Merge, rename to...
30241         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
30242         avoiding_indexed_address_p.  Add "size" attribute.
30243         (*movsf_update2, *movdf_update2): Merge, rename to...
30244         (*mov<mode>_update2): This.  Ditto.
30245         (*movsf_update3): Use Pmode.  Fix argument to
30246         avoiding_indexed_address_p.
30247         (*movsf_update4): Ditto.
30248         (allocate_stack): Simplify condition.  Adjust pattern names.
30250 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
30252         PR target/89093
30253         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
30254         whitespace at the start of target attribute string.
30256 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
30258         PR target/84369
30259         * config/rs6000/power9.md: Add store forwarding bypass.
30261 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
30263         PR debug/89528
30264         * valtrack.c (dead_debug_insert_temp): Reset debug references
30265         to the return value of a call being removed.
30267 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
30269         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
30270         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
30271         implement target hook.
30272         (arc_memory_move_cost): New function.
30273         (TARGET_REGISTER_MOVE_COST): Define.
30274         (TARGET_MEMORY_MOVE_COST): Likewise.
30275         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
30276         (MEMORY_MOVE_COST): Likewise.
30278 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
30280         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
30281         (sibcall_value_insn): Likewise.
30282         * config/arc/constraints.md (Rs5): Remove.
30284 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
30286         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
30287         for last two fake registers.
30288         (arc_conditional_register_usage): Make sure fake frame and arg
30289         pointer regs are in general regs class.
30290         (FRAME_POINTER_MASK): Remove.
30291         (RETURN_ADDR_MASK): Remove.
30292         (arc_must_save_register): Use hard frame regnum.
30293         (frame_restore_reg): Use hard_frame_pointer_rtx.
30294         (arc_save_callee_saves): Likewise.
30295         (arc_restore_callee_saves): Likewise.
30296         (arc_save_callee_enter): Likewise.
30297         (arc_restore_callee_leave): Likewise.
30298         (arc_save_callee_milli): Likewise.
30299         (arc_eh_return_address_location): Likewise.
30300         (arc_check_multi): Use hard frame regnum.
30301         (arc_can_eliminate): Likewise.
30302         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
30303         for register allocator.
30304         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
30305         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
30306         (FRAME_POINTER_REGNUM): Change it to a fake register.
30307         (HARD_FRAME_POINTER_REGNUM): Defined.
30308         (ARG_POINTER_REGNUM): Change it to a new fake register.
30309         (ELIMINABLE_REGS): Update.
30310         (REGISTER_NAMES): Update names.
30311         * config/arc/arc.md (LP_START): Remove.
30312         (LP_END): Likewise.
30313         (shift_si3_loop): Update pattern.
30315 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
30317         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
30318         to avoid delay slot scheduling.
30319         (arc_must_save_register): Don't save SP.
30320         * config/arc/arc.md (stack_tie): Remove.
30321         (UNSPEC_ARC_STKTIE): Likewise.
30323 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
30324             Shiva Chen  <shiva0217@gmail.com>
30326         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
30327         code gen with large shift amount.
30329 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30331         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
30332         subreg.
30334 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
30336         PR target/90096
30337         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
30338         print -m64/-mx32/-m32 if it is true.
30339         (ix86_debug_options, ix86_function_specific_print): Pass true as
30340         ADD_ABI_P to ix86_target_string.
30341         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
30342         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
30343         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
30345         PR rtl-optimization/90082
30346         * dce.c (can_delete_call): New function.
30347         (deletable_insn_p, mark_insn): Use it.
30349         PR tree-optimization/90090
30350         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
30351         throw internally.
30352         (is_division_by_square): Likewise.  Formatting fix.
30354 2019-04-16  Richard Biener  <rguenther@suse.de>
30356         PR tree-optimization/56049
30357         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
30358         equality check if alias-set zero will prevail.
30360 2019-04-15  Jeff Law  <law@redhat.com>
30362         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
30363         size and alignment as unsigned.
30365 2019-04-15  Richard Biener  <rguenther@suse.de>
30367         PR debug/90074
30368         * tree-loop-distribution.c (destroy_loop): Preserve correct
30369         debug info.
30371 2019-04-15  Richard Biener  <rguenther@suse.de>
30373         PR tree-optimization/90071
30374         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
30375         abnormal operands from def stmts.
30377 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
30379         PR rtl-optimization/89794
30380         * combine.c (count_auto_inc): New function.
30381         (try_combine): Count how many auto_inc expressions there were in the
30382         original instructions.  Ensure we have the same number in the new
30383         instructions.  Remove the code that tried to ensure auto_inc side
30384         effects on i1 and i0 are not lost.
30386 2019-04-15  Richard Biener  <rguenther@suse.de>
30388         PR ipa/88936
30389         * tree.h (auto_var_p): Declare.
30390         * tree.c (auto_var_p): New function, split out from ...
30391         (auto_var_in_fn_p): ... here.
30392         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
30393         member.
30394         (new_var_info): Initialize it.
30395         (set_uids_in_ptset): Also set the shadow variable uid if required.
30396         (ipa_pta_execute): Postprocess points-to solutions assigning
30397         shadow variable uids for locals that may reach their containing
30398         function recursively.
30399         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
30400         assert but instead check whether the points-to solution is
30401         a singleton.
30403 2019-04-15  Martin Jambor  <mjambor@suse.cz>
30405         PR ipa/pr89693
30406         * cgraph.c (clone_of_p): Loop over clone chain for each step in
30407         the thunk chain.
30409 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
30411         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
30413 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
30414             Kito Cheng  <kito.cheng@gmail.com>
30415             Shiva Chen  <shiva0217@gmail.com>
30417         * config/nds32/nds32-md-auxiliary.c
30418         (nds32_legitimize_pic_address): Use new PIC pattern.
30419         (nds32_legitimize_tls_address): Use new TLS pattern.
30420         (nds32_output_symrel): New.
30421         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
30422         (nds32_alloc_relax_group_id): Ditto.
30423         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
30424         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
30425         relax_group_id.
30426         (nds32_group_tls_insn): Ditto.
30427         (nds32_group_float_insns): Ditto.
30428         * config/nds32/nds32.md (tls_le): New.
30429         (sym_got): Ditto.
30431 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
30433         * configure: Add nds32 target for dwarf2 debug_line checking.
30434         * configure.ac: Regenerated.
30436 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
30438         PR lto/89358
30439         * ipa-devirt.c (skip_in_fields_list_p): New.
30440         (odr_types_equivalent_p): Use it.
30442 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
30444         PR target/89093
30445         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
30446         instead of strncmp when checking for thumb and arm.  Formatting fixes.
30448 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
30450         * doc/install.texi: Document --with-target-system-zlib.
30452 2019-04-12  Martin Sebor  <msebor@redhat.com>
30454         PR c/88383
30455         PR c/89288
30456         PR c/89798
30457         PR c/89797
30458         * targhooks.c (default_vector_alignment): Avoid assuming
30459         argument fits in SHWI.
30460         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
30461         a shift expression.
30462         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
30464 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
30466         PR rtl-optimization/89965
30467         * dce.c: Include rtl-iter.h.
30468         (struct check_argument_load_data): New type.
30469         (check_argument_load): New function.
30470         (find_call_stack_args): Check for loads from stack slots still tracked
30471         in sp_bytes and punt if any is found.
30473         * config/mips/loongson-mmiintrin.h: Fix up #error message.
30475 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
30477         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
30478         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
30480 2019-04-12  Martin Liska  <mliska@suse.cz>
30482         PR middle-end/89970
30483         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
30484         in error message.
30485         (separate_attrs): Handle multiple 'default's.
30486         (expand_target_clones): Rework error handling code.
30488 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
30490         PR target/87532
30491         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
30492         mode of vector rather than mode of destination for move instruction.
30493         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
30494         Use QI inner mode with V16QI vector mode.
30496 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
30498         PR target/52726
30499         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
30500         "invalid %%t operand" in output_operand_lossage message.
30502 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
30504         * config/s390/predicates.md (permute_pattern_operand): New
30505         predicate.
30506         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
30507         operand for the permute pattern.
30508         ("*vec_perm<mode>"): New insn definition.
30509         ("bswap<mode>"): Generate the permute pattern operand in the
30510         expander and perform the operand reloads for pre arch13 level
30511         already.
30512         ("*bswap<mode>_emu"): Rename to ...
30513         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
30514         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
30515         Add the USE operand for the permute pattern.
30516         ("*vec_set_bswap_vec<mode>"): Likewise.
30518 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
30520         PR c/89946
30521         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
30522         and gcc_unreachable if it fails, just call tree_to_uhwi which
30523         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
30524         Start warning message with a lower-case letter.  Formatting fixes.
30526         PR rtl-optimization/90026
30527         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
30528         successors, look for BARRIERs inside of the whole BB_FOOTER chain
30529         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
30530         in cfglayout mode, use emit_barrier_after_bb.
30532 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
30534         PR rtl-optimization/87763
30535         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
30536         New Instruction.
30538 2019-04-11  Tom de Vries  <tdevries@suse.de>
30540         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
30541         max macro using statement expression.
30543 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
30545         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
30546         * xcoffout.c (xcoff_private_rodata_section_name): Define.
30547         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
30548         read_only_private_data_section using xcoff_private_rodata_section_name.
30549         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
30551 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
30553         PR target/90016
30554         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
30556 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
30558         PR rtl-optimization/89965
30559         * dce.c (sp_based_mem_offset): New function.
30560         (find_call_stack_args): Use sp_based_mem_offset.
30562 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
30564         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
30566 2019-04-11  Richard Biener  <rguenther@suse.de>
30568         PR tree-optimization/90020
30569         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
30570         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
30571         * tree-ssa-pre.c (compute_avail): Use it to not put
30572         possibly trapping references after a call that might not
30573         return into EXP_GEN.
30574         * gcse.c (compute_hash_table_work): Do not elide
30575         marking a block containing a call if the call might not
30576         return.
30578 2019-04-11  Richard Biener  <rguenther@suse.de>
30580         PR tree-optimization/90018
30581         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
30582         Test both SLP and interleaving variants.
30584 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
30586         * config/s390/8561.md: New file.
30587         * config/s390/driver-native.c (s390_host_detect_local_cpu):
30588         Add arch13 cpu model.
30589         * config/s390/s390-opts.h (enum processor_type): Likewise.
30590         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
30591         (s390_get_unit_mask): Likewise.
30592         (s390_is_fpd): Likewise.
30593         (s390_is_fxd): Likewise.
30594         * config/s390/s390.h (s390_tune_attr): Likewise.
30595         * config/s390/s390.md: Include arch13 pipeline description.
30596         * config/s390/s390.opt: Add arch13.
30598 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
30600         PR rtl-optimization/87763
30601         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
30602         New prototype.
30603         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
30604         New function.
30605         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
30606         New instruction.
30607         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
30608         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
30609         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
30610         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
30612 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
30614         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
30615         "Although" in -fipa-icf documentation.
30617         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
30618         of using multiple -g options.
30620 2019-04-10  Martin Liska  <mliska@suse.cz>
30622         PR gcov-profile/89959
30623         * doc/gcov.texi: Make documentation of -x option
30624         more precise.
30626 2019-04-10  Richard Biener  <rguenther@suse.de>
30628         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
30629         member.
30630         (DR_GROUP_SAME_DR_STMT): Remove.
30631         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
30632         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
30633         replace with assert.
30634         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
30635         (vect_record_grouped_load_vectors): Remove unreachable code.
30637 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
30639         PR target/90016
30640         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
30641         obsolete reference to N.
30643 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
30645         PR middle-end/90025
30646         * expr.c (store_expr): Set properly size on the MEM passed to
30647         clear_storage.
30649         PR c++/90010
30650         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
30651         with strlen in between hostsz-3 and hostsz-1 inclusive when no
30652         translation is needed, and when translation is needed, only append
30653         ... if the string length is hostsz or more bytes long.  Avoid using
30654         strncpy or strcat.
30656 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
30658         PR target/90024
30659         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
30660         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
30661         into three.
30662         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
30663         differences directly.
30664         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
30666 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30668         PR translation/90011
30669         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30670         from diagnostics.
30671         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
30672         diagnostics.
30673         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30674         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
30675         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
30676         trailing space from -gsplit-dwarf diagnostics.
30678         PR tree-optimization/89998
30679         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
30680         instead of integer_type_node if possible, don't add ranges if return
30681         type is not compatible with int.
30682         * gimple-fold.c (gimple_fold_builtin_sprintf,
30683         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
30684         integer_type_node.
30686 2019-04-09  Martin Liska  <mliska@suse.cz>
30688         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
30689         * doc/install.texi: Document the new config.
30691 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
30693         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
30694         use gimple_expr_type for load and store calls.  Skip over the
30695         condition argument in a conditional internal function.
30696         Protect use of TREE_INT_CST_LOW.
30698 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
30700         PR target/90015
30701         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
30702         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
30703         trailing period from it too.
30705 2019-04-08  wu yuan  <wuyuan5@huawei.com>
30707         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
30708         * config/aarch64/aarch64.md: Add "tsv110.md".
30709         * config/aarch64/tsv110.md: New file.
30711 2019-04-08  Richard Biener  <rguenther@suse.de>
30713         PR tree-optimization/90006
30714         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
30715         calls like lrint.
30717 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
30719         PR target/83033
30720         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
30721         construction.
30722         (fma_root_node): Likewise.
30723         (func_fma_steering): Likewise.
30725 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
30727         PR rtl-optimization/89865
30728         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
30730         PR rtl-optimization/89865
30731         * config/i386/i386.md
30732         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
30733         numbers not to clash with the additional operands[4].
30734         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
30735         with extra register copy in the middle.
30737 2019-04-08  Martin Liska  <mliska@suse.cz>
30739         PR gcov-profile/89961
30740         * doc/gcov.texi: Document data_file.
30741         * gcov.c (generate_results): Add data_info into JSON output.
30743 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
30745         PR tree-optimization/89725
30746         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
30747         loop's chrec as invariant symbol.
30748         * tree-chrec.h (chrec_contains_symbols): New parameter.
30749         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
30750         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
30751         function of loops not in DDR's loop_nest.
30752         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30754 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
30756         PR target/89623
30757         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
30758         Mask.
30760 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
30762         PR target/89945
30763         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
30764         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
30766 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
30768         * sched-deps.c (sched_macro_fuse_insns): Check return value of
30769         targetm.fixed_condition_code_regs.
30771 2019-04-05  Richard Biener  <rguenther@suse.de>
30773         PR debug/89892
30774         PR debug/89905
30775         * tree-cfgcleanup.c (remove_forwarder_block): Always move
30776         debug bind stmts but reset them if they are not valid at the
30777         destination.
30779 2019-04-05  Martin Liska  <mliska@suse.cz>
30781         PR translation/89936
30782         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
30783         order to wrap keywords or arguments.
30784         * collect2.c (main): Likewise.
30785         (scan_prog_file): Likewise.
30786         (scan_libraries): Likewise.
30787         * common/config/riscv/riscv-common.c
30788         (riscv_subset_list::parsing_subset_version): Likewise.
30789         (riscv_subset_list::parse_std_ext): Likewise.
30790         * config/aarch64/aarch64.c (aarch64_override_options_internal):
30791         Likewise.
30792         * config/arm/arm.c (arm_option_override): Likewise.
30793         * config/cris/cris.c (cris_print_operand): Likewise.
30794         * config/darwin-c.c (darwin_pragma_options): Likewise.
30795         (darwin_pragma_unused): Likewise.
30796         (darwin_pragma_ms_struct): Likewise.
30797         * config/ft32/ft32.c (ft32_print_operand): Likewise.
30798         * config/i386/i386.c (print_reg): Likewise.
30799         (ix86_print_operand): Likewise.
30800         * config/i386/xm-djgpp.h: Likewise.
30801         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
30802         * config/m32c/m32c.c (m32c_option_override): Likewise.
30803         * config/msp430/msp430.c (msp430_option_override): Likewise.
30804         * config/nds32/nds32.c (nds32_option_override): Likewise.
30805         * config/nvptx/mkoffload.c (main): Likewise.
30806         * config/rx/rx.c (rx_print_operand): Likewise.
30807         (valid_psw_flag): Likewise.
30808         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30809         (vms_pragma_nomember_alignment): Likewise.
30810         (vms_pragma_extern_model): Likewise.
30811         * lto-wrapper.c (compile_offload_image): Likewise.
30812         * omp-offload.c (oacc_parse_default_dims): Likewise.
30813         * symtab.c (symtab_node::verify_base): Likewise.
30814         * tlink.c (recompile_files): Likewise.
30815         (start_tweaking): Likewise.
30816         * tree-profile.c (parse_profile_filter): Likewise.
30818 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
30820         PR tree-optimization/89956
30821         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30822         multiple negates of the same value.
30824 2019-04-04  Martin Sebor  <msebor@redhat.com>
30826         PR middle-end/89957
30827         PR middle-end/89911
30828         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30829         have the same precision since the function crashes otherwise.
30830         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30831         has non-zero arguments.
30833 2019-04-04  Martin Sebor  <msebor@redhat.com>
30835         PR middle-end/89934
30836         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30837         out if the number of arguments is less than expected.
30839 2019-04-04  Jeff Law  <law@redhat.com>
30841         PR rtl-optimization/89399
30842         * ree.c (combine_set_extension): Use single_set rather than
30843         digging into PATTERN for items on the candidate list.
30844         (combine_reaching_defs): Likewise.
30846 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
30848         PR rtl-optimization/46590
30849         * loop-invariant.c (find_defs): Move df_remove_problem and
30850         df_process_deferred_rescans to move_invariants.
30851         Move df_live_add_problem and df_live_set_all_dirty calls
30852         to move_invariants.
30853         (move_invariants): Likewise.
30854         (move_loop_invariants): Likewise, making the df_live calls
30855         conditional on -O.  Remove the problem again if we added it
30856         locally.
30858 2019-04-03  qing zhao  <qing.zhao@oracle.com>
30860         PR tree-optimization/89730
30861         * ipa-inline.c (can_inline_edge_p): Delete the checking for
30862         -flive-patching=inline-only-static.
30863         (can_inline_edge_by_limits_p): Add the checking for
30864         -flive-patching=inline-only-static and grant always_inline
30865         even when -flive-patching=inline-only-static is specified.
30867 2019-04-03  Jeff Law  <law@redhat.com>
30869         PR rtl-optimization/81025
30870         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30872 2019-04-03  Richard Biener  <rguenther@suse.de>
30874         PR tree-optimization/84101
30875         * tree-vect-stmts.c: Include explow.h for hard_function_value,
30876         regs.h for hard_regno_nregs.
30877         (cfun_returns): New helper.
30878         (vect_model_store_cost): When vectorizing a store to a decl
30879         we return and the function ABI returns in a multi-reg location
30880         account for the possible spilling that will happen.
30882 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
30884         * config/s390/s390.c (s390_legitimate_address_p): Reject long
30885         displacement addresses for vector mode operands.
30887 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
30889         * config/arc/arc.c (GMASK_LEN): Define.
30890         (arc_restore_callee_saves): Restore first blink when
30891         !optimize_size.
30893 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
30895         * doc/extend.texi: Add deprecated comment on sign-return-address
30896         function attribute and add mbranch-protection.
30897         * doc/invoke.texi: Add bti to the options for mbranch-protection.
30899 2019-04-03  Richard Biener  <rguenther@suse.de>
30901         PR lto/89896
30902         * lto-wrapper.c (run_gcc): Avoid implicit rules making
30903         the all target phony.
30905 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
30907         PR target/89902
30908         PR target/89903
30909         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30910         Return false for variable DImode shifts.
30911         (dimode_scalar_chain::compute_convert_gain): Do not handle
30912         register count operand in variable DImode shifts.
30913         (dimode_scalar_chain::make_vector_copies): Remove support to copy
30914         count argument of a variable shift instruction to a vector register.
30915         (dimode_scalar_chain::convert_reg): Remove support to convert
30916         count argument of a variable shift instruction.
30918 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30920         PR rtl-optimization/84206
30921         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30922         iterating over loop headers.
30924 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
30926         PR rtl-optimization/85876
30927         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30928         beyond the original fence.
30930 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
30932         * config.gcc: Mark spu* targets as deprecated/obsolete.
30934 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30936         * config/s390/s390-builtin-types.def: New builtin function type
30937         definitions. Remove unused types.
30938         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30939         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30940         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30941         overloaded builtins.
30942         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30943         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30944         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30945         (vec_double, vec_signed, vec_unsigned): Define to use the new
30946         overloaded builtins.
30947         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30948         Remove expanders.
30950 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30952         * config/s390/s390-builtin-types.def: New builtin function type
30953         definitions.
30954         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30955         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30956         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30957         (s390_vstrszh, s390_vstrszf): New low-level builtins.
30958         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30959         constant definitions.
30960         * config/s390/vecintrin.h (vec_search_string_cc)
30961         (vec_search_string_until_zero_cc): New builtin name definitions.
30962         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30963         expanders.
30964         ("vec_vstrs<mode>"): New insn definition.
30966 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30968         * config/s390/s390-builtin-types.def: Add new builtin function
30969         types.
30970         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30971         New overloaded builtins.
30972         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
30973         s390_vsrd.
30974         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30975         (UNSPEC_VEC_SLDBYTE): ... this.
30976         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30977         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30978         definitions.
30979         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30980         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30981         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30983 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30985         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30986         New insn definition.
30987         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30988         * config/s390/vector.md (V_HW_HSD): ... here.
30990 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
30992         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30993         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30994         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30995         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30996         New insn definitions.
30998 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31000         * config/s390/s390-builtin-types.def: Add new builtin function type.
31001         * config/s390/s390-builtins.def: Add overloaded builtin
31002         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
31003         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
31004         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
31005         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
31006         ("eltswap<mode>"): New expander.
31007         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
31008         insn definitions.
31010 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31012         * config/s390/s390-builtin-types.def: Add new builtin function types.
31013         * config/s390/s390-builtins.def: Add overloaded builtin
31014         s390_vec_revb. Add low-level builtins for vlbr and vstbr
31015         instructions.
31016         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
31017         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
31018         ("bswap<mode>"): New expander.
31019         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
31021 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31023         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
31024         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
31025         vector builtin version number in __VEC__.
31027 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31029         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
31030         iterators.
31031         (SFSI): New mode attribute.
31032         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
31033         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
31034         rename to ...
31035         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
31036         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
31037         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
31038         ("floatsi<mode>2"): Add wcefb instruction.
31040 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31042         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
31043         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
31044         mode iterators.
31045         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
31046         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
31047         support 32 bit fp-int conversions. Rename to ...
31048         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
31049         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
31050         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
31051         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
31052         ... to these.
31054 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31056         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
31057         if-then-else constructs if we can use the select instruction.
31058         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
31060 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31062         * config/s390/s390.md ("*popcountdi_arch13_cc")
31063         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
31064         definition.
31065         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
31066         Append _z196 to make it ...
31067         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
31068         ("popcounthi2_z196"): ... this.
31069         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
31070         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
31072 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31074         * config/s390/s390.c (s390_canonicalize_comparison): Convert
31075         certain compares for arch13 in order to make use of the condition
31076         code result produced by the new instructions.
31077         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
31078         nxrk, and nxgrk instruction patterns.
31079         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
31080         (inv_no): Add new code iterator together with some attributes.
31081         ("*andc_split_<mode>"): Disable splitter for arch13.
31082         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
31083         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
31084         ("*<ANDOR:bitops_name>c<GPR:mode>")
31085         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
31086         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
31087         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
31088         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
31090 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
31092         * common/config/s390/s390-common.c (processor_flags_table): New
31093         entry for arch13.
31094         * config.gcc: Support arch13 with the --with-arch= configure flag.
31095         * config/s390/driver-native.c (s390_host_detect_local_cpu):
31096         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
31097         * config/s390/s390.c (s390_get_sched_attrmask)
31098         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
31099         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
31100         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
31101         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
31102         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
31103         definitions.
31104         * config/s390/s390.opt: Support arch13 as processor type in
31105         command line options.
31107 2019-04-02  Martin Liska  <mliska@suse.cz>
31109         PR translation/89912
31110         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
31111         Fix param description of graphite-max-arrays-per-scop.
31113 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
31115         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
31116         (ASAN_CC1_SPEC): Use it in 64-bit mode.
31117         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
31119 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
31121         PR rtl-optimization/85412
31122         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
31123         sel_sched_region_1, not after.
31125 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
31127         PR rtl-optimization/86928
31128         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
31129         compute_live if necessary.
31130         (sel_redirect_edge_and_branch): Likewise.
31132 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
31134         PR rtl-optimization/89865
31135         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
31136         register if it is a part of small class.
31138 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
31140         PR rtl-optimization/87273
31141         * sel-sched-ir.c (merge_fences): Remove assert.
31143 2019-04-01  Richard Biener  <rguenther@suse.de>
31145         PR tree-optimization/46590
31146         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
31147         (dom_walker::m_reachability): Add in place of...
31148         (dom_walker::m_skip_unreachable_blocks): ...this.
31149         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
31150         Move complex initialization ...
31151         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
31152         lazily and initialize edge flags on each invocation.
31153         (dom_walker::bb_reachable): Use m_reachability.
31155 2019-04-01  Martin Liska  <mliska@suse.cz>
31157         PR driver/89861
31158         * opt-suggestions.c (option_proposer::build_option_suggestions):
31159         Add variant without any argument in order to provide better
31160         hints.
31162 2019-04-01  Richard Biener  <rguenther@suse.de>
31164         PR c/71598
31165         * gimple.c: Include langhooks.h.
31166         (gimple_get_alias_set): Treat enumeral types as the underlying
31167         integer type.
31169 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
31170             Eric Botcazou  <ebotcazou@adacore.com>
31172         PR rtl-optimization/89862
31173         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
31174         that operates on the full registers for WORD_REGISTER_OPERATIONS
31175         architectures.
31177 2019-03-29  Jim Wilson  <jimw@sifive.com>
31179         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
31180         Clear MASK_RVC and then set if C subset supported.
31182 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
31184         PR c/89872
31185         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
31186         non-addressable complit into its initializer if it is volatile.
31188 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
31190         * opts-common.c (integral_argument): Set errno properly in one case.
31192 2019-03-29  Martin Liska  <mliska@suse.cz>
31194         * doc/invoke.texi: Remove -Wchkp from documentation.
31196 2019-03-29  Martin Liska  <mliska@suse.cz>
31198         * dbgcnt.c (print_limit_reach): New function.
31199         (dbg_cnt): Use it.
31201 2019-03-29  Martin Liska  <mliska@suse.cz>
31203         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
31204         (dbg_cnt_process_opt): Parse first tokens aas
31205         dbg_cnt_process_single_pair is also using strtok.
31207 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
31209         PR rtl-optimization/87485
31210         * function.c (expand_function_end): Move stack_protect_epilogue
31211         before loading of return value into hard register(s).
31213 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
31215         PR middle-end/89621
31216         * tree-inline.h (struct copy_body_data): Add
31217         dont_remap_vla_if_no_change flag.
31218         * tree-inline.c (remap_type_3, remap_type_2): New functions.
31219         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
31220         and remap_type_2 returns false.
31221         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
31222         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
31223         only from where it is copied to nested contexts.
31225 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31227         PR target/89865
31228         * config/i386/i386.md (RMW operation with LEA peephole):
31229         Use LEAMODE mode attribute instead of SWI mode iterator for
31230         LEA pattern.
31232 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31234         PR target/89848
31235         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
31236         Also process XEXP (src, 0) of a shift insn.
31238 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
31240         PR middle-end/89725
31241         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
31242         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
31244 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
31246         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
31247         test.
31248         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
31249         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
31250         immediately after first one with df_analyze in between, but rather
31251         process all bbs, queueing ones that need second pass in a worklist,
31252         df_analyze, process queued debug insn changes and if second pass is
31253         needed, process bbs from worklist, df_analyze, process queued debug
31254         insns again.
31256         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
31257         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
31258         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
31260 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
31262         PR c/79022
31263         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
31264         definition.
31266 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
31268         PR target/85667
31269         * config/i386/i386.c (ix86_function_value_1): Call the newly added
31270         function for 32-bit MS_ABI.
31271         (function_value_ms_32): New function.
31273 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
31275         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
31276         (movdi): Call gen_movdi_symbol_save_scc.
31277         (gen_movdi_symbol_save_scc): New insn and split.
31279 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
31281         PR rtl-optimization/89313
31282         * function.c (matching_constraint_num): New static function.
31283         (match_asm_constraints_1): Use it.  Fixup white space and comment.
31284         Don't replace inputs with non-matching constraints which conflict
31285         with early clobber outputs.
31287 2019-03-27  Jeff Law  <law@redhat.com>
31289         PR rtl-optimization/87761
31290         PR rtl-optimization/89826
31291         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
31292         slightly later.
31293         (pass_cprop_hardreg::execute): Call df_analyze after adding the
31294         note problem to get REG_DEAD/REG_UNUSED notes updated.
31296 2019-03-27  Richard Biener  <rguenther@suse.de>
31298         PR tree-optimization/89463
31299         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
31300         queue edges to remove.
31301         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
31302         dead stmts.  Delay edge removal until PHIs are removed to
31303         make debug-stmt creation not confused by seemingly degenerate
31304         PHIs.
31306 2019-03-27  Alan Modra  <amodra@gmail.com>
31308         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
31309         throughout file.
31310         * config/rs6000/darwin.h: Likewise.
31311         * config/rs6000/rs6000.c: Likewise.
31313 2019-03-27  Alan Modra  <amodra@gmail.com>
31315         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
31316         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
31318 2019-03-26  Andrew Waterman  <andrew@sifive.com>
31319             Jim Wilson  <jimw@sifive.com>
31321         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
31322         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
31323         (generic_idivdi, generic_fmul_single, generic_fmul_double)
31324         (generic_fdiv, generic_fsqrt): Add check for generic tune.
31325         (generic_alu): Add auipc to type list.
31326         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
31327         (riscv_microarchitecture): Declare.
31328         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
31329         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
31330         field.
31331         (riscv_microarchitecture): New.
31332         (sifive_7_tune_info): New.
31333         (riscv_cpu_info_table): Add microarchitecture value for rocket and
31334         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
31335         entries.
31336         (riscv_store_data_bypass_p): New.
31337         (riscv_option_override): Set riscv_microarchitecture from
31338         cpu->microarchitecture.
31339         * config/riscv/riscv.md: Include sifive-7.md.
31340         (type): Add auipc.
31341         (tune): New.
31342         (auipc<mode>): Change type to auipc.
31343         (restore_stack_nonlocal): New.
31344         * config/riscv/sifive-7.md: New.
31345         * doc/invoke.texi (RISC-V Options): Update mtune docs.
31347 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
31349         PR target/89827
31350         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
31351         Also process XEXP (src, 0) of a shift insn.
31353 2019-03-26  Richard Biener  <rguenther@suse.de>
31355         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
31356         (copy_debug_stmt): Likewise.
31357         (expand_call_inline): Likewise.
31358         (copy_bb): Avoid redundant lookup & set of gimple_block.
31359         * gimple-low.c (lower_gimple_return): Likewise.
31360         (lower_builtin_setjmp): Likewise.
31362 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
31364         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
31365         is constant 0, turn into static const data member initialized to false.
31366         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
31367         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
31369 2019-03-26  Jason Merrill  <jason@redhat.com>
31370             Jakub Jelinek  <jakub@redhat.com>
31372         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
31373         method.
31374         (mem_alloc_description::release_object_overhead): Fix comment typos.
31375         * hash-table.h (hash_table::~hash_table): Call
31376         release_instance_overhead only if m_entries is non-NULL, otherwise
31377         call unregister_descriptor.
31379 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
31381         PR tree-optimization/81740
31382         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31383         In case of outer loop vectorization, check for backward dependence
31384         at the inner loop if outer loop dependence is reversed.
31386 2019-03-26  Alan Modra  <amodra@gmail.com>
31388         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
31389         rs6000_vector_mem init.  Correct wI and wJ comment.
31391 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
31393         PR rtl-optimization/88347
31394         PR rtl-optimization/88423
31395         * sched-deps.c (sched_analyze_insn): Take into account that for
31396         tablejumps the barrier appears after a label and a jump_table_data.
31398 2019-03-25  Martin Sebor  <msebor@redhat.com>
31400         PR c/89812
31401         * c-common.c (check_user_alignment): Rename local.  Correct maximum
31402         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
31403         convert it to UHWI when it fits.
31405 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
31407         PR debug/86964
31408         * dwarf2out.c (premark_used_variables): New function.
31409         (prune_unused_types_walk): Do not mark not premarked external
31410         variables.
31411         (prune_unused_types): Call premark_used_variables.
31413 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
31415         PR rtl-optimization/89676
31416         * lra-constraints.c (curr_insn_transform): Do match reload for
31417         early clobbers when the match was successful only for different
31418         registers.
31420 2019-03-25  Martin Sebor  <msebor@redhat.com>
31422         * doc/extend.texi (Common Type Attributes): Document vector_size.
31423         (Common Variable Attributes): Mention size constraint.  Correct
31424         quoting and typos.
31425         (Vector Extensions): Use @dfn when defining bas type.  Clarify
31426         base type and size constraints.
31428 2019-03-25  Richard Biener  <rguenther@suse.de>
31430         PR tree-optimization/89789
31431         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
31432         changes from non-undefined back to undefined.
31434 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
31436         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
31437         heap string and a gc string, but since this variable is unknown to
31438         ggc the gc string might get reused and corrupted. Fixed by always
31439         using a heap string.
31441 2019-03-25  Richard Biener  <rguenther@suse.de>
31443         PR tree-optimization/89779
31444         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
31445         to remove IV defs, delay actual removal.
31446         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
31447         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
31448         very end, properly also reset loop control IV information.
31450 2019-03-25  Richard Biener  <rguenther@suse.de>
31452         PR tree-optimization/89802
31453         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
31454         move EH data to folded stmt.
31456 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
31458         * config/s390/s390-builtin-types.def: Remove few unused types and
31459         fix sort order for others.
31461 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
31463         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
31464         expected and found types with -mdebug during builtin matching.
31466 2019-03-25  Richard Biener  <rguenther@suse.de>
31468         PR middle-end/89790
31469         * fold-const.c (operand_equal_p): Revert last change with
31470         updated comment.
31472 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
31474         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
31475         notes for the result of the __tls_get_addr calls.
31476         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
31478 2019-03-24  Jeff Law  <law@redhat.com>
31480         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
31482         PR rtl-optimization/87761
31483         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
31484         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
31485         as needed.
31486         (pass_cprop_hardreg::execute): Add df note problem and defer insn
31487         rescans.  Reprocess blocks as needed, calling df_analyze before
31488         reprocessing.  Always call df_analyze before fixing up debug bind
31489         insns.
31491 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
31493         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
31494         big endian.
31496 2019-03-22  Andrew Pinski  <apinski@marvell.com>
31498         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
31499         attrribute for uxtw.
31501 2019-03-26  Jeff Law  <law@redhat.com>
31503         PR rtl-optimization/87761
31504         * config/mips/mips-protos.h (mips_split_move): Add new argument.
31505         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
31506         (mips_split_move): Accept new INSN argument.  Try to forward SRC
31507         into the next instruction.
31508         (mips_split_move_insn): Pass INSN through to mips_split_move.
31510 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
31512         PR rtl-optimization/89676
31513         * lra-constraints.c (curr_insn_transform): Do match reload for
31514         early clobbers even if the match was successful.
31516 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
31518         PR c++/87481
31519         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
31521 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
31523         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
31525 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
31527         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
31528         <avx512>_fmsub_<mode>_mask3<round_name>,
31529         <avx512>_fnmadd_<mode>_mask3<round_name>,
31530         <avx512>_fnmsub_<mode>_mask3<round_name>,
31531         avx512f_vmfmadd_<mode>_mask3<round_name>,
31532         avx512f_vmfmsub_<mode>_mask3<round_name>,
31533         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
31534         instead of register_operand and %v instead of v for match_operand 1.
31535         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
31536         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
31537         <round_nimm_predicate> instead of register_operand and %v instead of v
31538         for match_operand 1.
31540         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
31541         <avx512>_fmadd_<mode>_mask3<round_name>,
31542         <avx512>_fmsub_<mode>_mask<round_name>,
31543         <avx512>_fmsub_<mode>_mask3<round_name>,
31544         <avx512>_fnmadd_<mode>_mask<round_name>,
31545         <avx512>_fnmadd_<mode>_mask3<round_name>,
31546         <avx512>_fnmsub_<mode>_mask<round_name>,
31547         <avx512>_fnmsub_<mode>_mask3<round_name>,
31548         <avx512>_fmaddsub_<mode>_mask<round_name>,
31549         <avx512>_fmaddsub_<mode>_mask3<round_name>,
31550         <avx512>_fmsubadd_<mode>_mask<round_name>,
31551         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
31552         <round_nimm_predicate> instead of nonimmediate_operand.
31553         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
31554         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
31555         Use register_operand instead of <round_nimm_predicate> for the
31556         operand that needs to match output.
31557         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
31558         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
31559         Likewise.  Formatting fixes.
31561         PR target/89784
31562         * config/i386/i386.c (enum ix86_builtins): Remove
31563         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
31564         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
31565         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
31566         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
31567         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
31568         __builtin_ia32_vfmsubss3_mask3): New builtins.
31569         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
31570         avx512f_vmfmadd_<mode>_mask3<round_name>,
31571         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
31572         *avx512f_vmfmsub_<mode>_mask<round_name>,
31573         avx512f_vmfmsub_<mode>_mask3<round_name>,
31574         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
31575         *avx512f_vmfnmadd_<mode>_mask<round_name>,
31576         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
31577         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
31578         *avx512f_vmfnmsub_<mode>_mask<round_name>,
31579         avx512f_vmfnmsub_<mode>_mask3<round_name>,
31580         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
31581         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
31582         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
31583         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
31584         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
31585         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
31586         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
31587         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
31588         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
31589         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
31590         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
31591         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
31592         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
31593         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
31594         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
31595         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
31596         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
31597         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
31598         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
31599         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
31600         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
31601         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
31603 2019-03-21  Martin Sebor  <msebor@redhat.com>
31605         PR tree-optimization/89350
31606         * builtins.c (compute_objsize): Also ignore offsets whose upper
31607         bound is negative.
31608         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
31609         (builtin_memref::builtin_memref): Initialize new member.
31610         Allow EXPR to be null.
31611         (builtin_memref::extend_offset_range): Replace local with a member.
31612         Avoid assuming pointer offsets are unsigned.
31613         (builtin_memref::set_base_and_offset): Determine base object
31614         before computing offset range.
31615         (builtin_access::builtin_access): Handle memset.
31616         (builtin_access::generic_overlap): Replace local with a member.
31617         (builtin_access::strcat_overlap): Same.
31618         (builtin_access::overlap): Same.
31619         (maybe_diag_overlap): Same.
31620         (maybe_diag_access_bounds): Same.
31621         (wrestrict_dom_walker::check_call): Handle memset.
31622         (check_bounds_or_overlap): Same.
31624 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
31625             Jakub Jelinek  <jakub@redhat.com>
31627         PR lto/89692
31628         * tree.c (fld_type_variant, fld_incomplete_type_of,
31629         fld_process_array_type): Call fld->pset.add and don't call
31630         add_tree_to_fld_list if it returns true.
31631         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
31632         non-marked types from TYPE_NEXT_VARIANT list.
31633         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
31635 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
31637         * hash-table.h (hash_table): Add Lazy template parameter defaulted
31638         to false, if true, don't alloc_entries during construction, but defer
31639         it to the first method that needs m_entries allocated.
31640         (hash_table::hash_table, hash_table::~hash_table,
31641         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
31642         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
31643         hash_table::clear_slot, hash_table::traverse_noresize,
31644         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
31645         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
31646         false.
31647         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
31648         NO_INSERT instead of find_with_hash.
31649         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
31650         hash_set::m_table): Add Lazy to template params of hash_table.
31651         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
31652         * attribs.c (test_attribute_exclusions): Likewise.
31653         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
31654         hash_set.  Add tests for hash_set with Lazy = true.
31656 2019-03-21  Richard Biener  <rguenther@suse.de>
31658         PR tree-optimization/89779
31659         * tree.c (tree_nop_conversion): Consolidate and fix defensive
31660         checks with respect to released SSA names now having error_mark_node
31661         type.
31662         * fold-const.c (operand_equal_p): Likewise.
31664 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
31666         PR target/89775
31667         * config/s390/s390.c (global_not_special_regno_p): Move to make it
31668         available to ...
31669         (s390_optimize_register_info): Use global_not_special_regno_p to
31670         check for global regs.
31672 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
31674         PR target/89752
31675         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
31676         update this_alternative nor this_alternative_set.
31678 2019-03-19  Jim Wilson  <jimw@sifive.com>
31680         PR target/89411
31681         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
31682         align, size, offset.  Use them to handle a BLKmode reference.  Update
31683         comment.
31684         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
31686 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31688         PR rtl-optimization/89768
31689         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
31690         instead of GEN_INT.
31691         (unroll_loop_runtime_iterations): Likewise.
31693 2019-03-19  Martin Sebor  <msebor@redhat.com>
31695         PR tree-optimization/89644
31696         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
31697         rather than endptr as an indicator of nul-termination.
31699         PR tree-optimization/89644
31700         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
31701         arrays in determining sequence sizes in strncpy and stpncpy.
31703 2019-03-19  Martin Liska  <mliska@suse.cz>
31705         PR middle-end/89737
31706         * predict.c (combine_predictions_for_bb): Empty likely_edges and
31707         unlikely_edges if there's an edge that belongs to both these sets.
31709 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
31711         PR target/89746
31712         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
31713         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
31714         go via a stack temporary.
31716 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31718         PR target/89378
31719         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
31720         instead of gen_rtx_SUBREG.
31721         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
31723 2019-03-19  Richard Biener  <rguenther@suse.de>
31725         PR debug/88389
31726         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
31728 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
31730         PR lto/87809
31731         PR lto/89335
31732         * tree.c (free_lang_data_in_decl): Do not free context of C++
31733         destrutors.
31735 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31737         PR target/89506
31738         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
31739         subs for the first alternative except when operands[3] is 1.
31741         PR target/89752
31742         * gimplify.c (gimplify_asm_expr): For output argument with
31743         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
31744         diagnose error.
31746 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
31748         PR rtl-optimization/89753
31749         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31750         explicit unrolling factor even more robust.
31752 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
31754         PR target/89726
31755         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
31756         compensation use x2 += 1 instead of x2 -= -1 and when honoring
31757         signed zeros, do another copysign after the compensation.
31759 2019-03-18  Martin Sebor  <msebor@redhat.com>
31761         PR tree-optimization/89720
31762         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
31763         more conservatively, the same as anti-range.
31765 2019-03-18  Richard Biener  <rguenther@suse.de>
31767         PR middle-end/88945
31768         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
31769         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
31770         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
31771         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
31773 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
31775         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
31776         Extend queue to 1024 entries.
31777         Add "consumed" field.
31778         (gomp_print_output): Remove print_index parameter.
31779         Add final parameter.
31780         Change limit to unsigned.
31781         Use consumed field to implement circular buffer.
31782         Detect interrupted print in final pass.
31783         Flush output at the end.
31784         (run): Update gomp_print_output usage.
31785         (main): Initialize kernargs->output_data.consumed.
31787 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
31789         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
31790         calculation of the minimum number of scalar iterations for
31791         fully-predicated loops.
31793 2019-03-18  Martin Jambor  <mjambor@suse.cz>
31795         PR tree-optimization/89546
31796         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
31797         any propagation to its children took place.
31799 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
31801         PR target/89627
31802         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
31803         parameter, and make use of it.
31804         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
31806 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31808         * config/arc/arc.opt (mcode-density-frame): Get the inital value
31809         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31810         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31811         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31812         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31813         match what the ops is doing.
31814         (push_multi_fp_blink): Likewise.
31815         * config/arc/arc.c (arc_override_options): Enable enter/leave when
31816         compiling for size and elf target.
31817         (arc_save_callee_enter): Adjust note to match what enter/leave
31818         operation does.
31820 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31822         * config/arc/arc.md (tst_movb): Fix constraint.
31824 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31826         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31828 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
31830         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31831         * config/arc/arc.c (arc_conditional_register_usage): Remove all
31832         reg_alloc_order references.
31833         (size_alloc_order): Define.
31834         (arc_adjust_reg_alloc_order): New function.
31835         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31836         order.
31837         (ADJUST_REG_ALLOC_ORDER): Define.
31838         (HONOR_REG_ALLOC_ORDER): Likewise.
31840 2019-03-18  Richard Biener  <rguenther@suse.de>
31842         PR target/87561
31843         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31844         loads and stores a bit more.
31846 2019-03-18  Richard Biener  <rguenther@suse.de>
31848         PR target/87561
31849         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31850         load pessimization to stores as well.
31852 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
31854         PR middle-end/86979
31855         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31856         successor, use NULL as its av set.
31858 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
31860         PR rtl-optimization/89721
31861         * lra-constraints (invariant_p): Return false if side_effects_p holds.
31863 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
31865         PR target/87532
31866         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31867         When handling vec_extract, use modular arithmetic to allow
31868         constant selectors greater than vector length.
31869         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31870         V1TImode vectors to have constant selector values greater than 0.
31871         Use modular arithmetic to compute vector index.
31872         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31873         index for in-memory vectors.  Correct code generation for
31874         in-register vectors.
31875         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31876         compute index.
31878 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
31880         PR c++/88534
31881         PR c++/88537
31882         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31883         VAR_DECL args.
31885 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
31887         PR c++/89709
31888         * tree.c (inchash::add_expr): Strip any location wrappers.
31889         * fold-const.c (operand_equal_p): Move stripping of location wrapper
31890         after hash verification.
31892         PR debug/89704
31893         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31894         SIGN_EXTEND and ZERO_EXTEND.
31896 2019-03-14  Jason Merrill  <jason@redhat.com>
31897             Jakub Jelinek  <jakub@redhat.com>
31899         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31900         than if is_empty (*slot).
31901         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31902         existing elt and for elt removal.
31903         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31904         of already removed elt.
31906 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
31908         PR target/89650
31909         * config/i386/i386.c (remove_partial_avx_dependency): Handle
31910         REG_EH_REGION note.
31912 2019-03-14  Martin Liska  <mliska@suse.cz>
31914         PR other/89712
31915         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31917 2019-03-14  Richard Biener  <rguenther@suse.de>
31919         PR target/89711
31920         * config/i386/i386.c (make_resolver_func): Properly set
31921         DECL_CONTEXT on the RESULT_DECL.
31922         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31924 2019-03-14  Richard Biener  <rguenther@suse.de>
31926         * gimple-pretty-print.c: Include cfgloop.h.
31927         (dump_gimple_phi): Adjust.
31928         (dump_gimple_bb_header): Dump loop header for GIMPLE.
31929         (pp_cfg_jump): Adjust.
31930         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31931         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31932         (lower_phi_internal_fn): Remove.
31933         (verify_gimple_call): Remove IFN_PHI special-casing.
31934         (dump_function_to_file): Dump IL state.
31935         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31936         done to deal with PHI nodes being present in non-SSA state.
31938 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31940         PR ipa/89684
31941         * multiple_target.c (create_dispatcher_calls): Change
31942         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31943         In the node->iterate_referring loop, push *ref rather than ref, call
31944         ref->remove_reference () and always pass 0 to iterate_referring.
31946         PR rtl-optimization/89679
31947         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31948         would contain a paradoxical SUBREG.
31950 2019-03-14  Richard Biener  <rguenther@suse.de>
31952         PR tree-optimization/89710
31953         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31954         safe_dyn_cast.
31956 2019-03-14  Martin Liska  <mliska@suse.cz>
31958         * coverage.c (coverage_begin_function): Stream also
31959         end_column.
31960         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
31961         documentation about function declaration location.
31962         * gcov-dump.c (tag_function): Print whole range
31963         of function declaration.
31964         * gcov.c (struct function_info): Add end_column field.
31965         (function_info::function_info): Initialize it.
31966         (output_json_intermediate_file): Output {start,end}_column
31967         fields.
31968         (read_graph_file): Read end_column.
31970 2019-03-14  Richard Biener  <rguenther@suse.de>
31972         PR middle-end/89698
31973         * fold-const.c (operand_equal_p): For INDIRECT_REF check
31974         that the access types are similar.
31976 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
31978         PR tree-optimization/89703
31979         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31980         aren't compatible also with builtin_decl_explicit.  Check pure
31981         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31982         and BUILT_IN_STPNCPY{,_CHK}.
31984 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
31986         PR target/89523
31987         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31988         addr32 prefix to VSIB address for X32.
31989         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31990         "%M2" to opcode.
31991         (*avx512pf_gatherpf<mode>df_mask): Likewise.
31992         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31993         (*avx512pf_scatterpf<mode>df_mask): Likewise.
31994         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31995         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31996         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31997         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31998         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31999         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
32000         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
32001         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
32002         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
32003         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
32004         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
32005         (*avx512f_scatterdi<mode>): Likewise.
32007 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
32009         PR target/85860
32010         * lra-constraints.c (inherit_in_ebb): Update
32011         potential_reload_hard_regs along with live_hard_regs.
32013 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
32015         PR debug/89498
32016         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
32017         DWARF_OFFSET_SIZE.
32018         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
32020 2019-03-13  Martin Sebor  <msebor@redhat.com>
32022         PR tree-optimization/89662
32023         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
32024         has a size.
32026 2019-03-13  Richard Biener  <rguenther@suse.de>
32028         PR middle-end/89677
32029         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
32030         throw FP expressions at tree-affine.
32032 2019-03-14  Richard Biener  <rguenther@suse.de>
32034         * tree-pretty-print.c (dump_generic_node): For -gimple properly
32035         dump negative integer constants using _Literal (type) -num.
32037 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
32039         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
32040         nonlocal_value member.
32042         PR middle-end/88588
32043         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
32044         (ipa_simd_modify_function_body): Handle PHIs.
32046 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
32048         * config/s390/s390.c (s390_option_override_internal): Use more
32049         aggressive inlining parameters.
32051 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
32053         * config/s390/3906.md: New file.
32054         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
32055         (LONGRUNNING_THRESHOLD): Remove.
32056         (MAX_SCHED_MIX_SCORE): Decrease.
32057         (MAX_SCHED_MIX_DISTANCE): Decrease.
32058         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
32059         (struct s390_sched_state): New struct to hold scheduling state.
32060         (S390_SCHED_STATE_NORMAL): Remove.
32061         (S390_SCHED_STATE_CRACKED): Remove.
32062         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
32063         (s390_get_sched_attrmask): Use new attribute.
32064         (s390_get_unit_mask): Use new units.
32065         (s390_is_fpd): New function.
32066         (s390_is_fxd): New function.
32067         (s390_is_longrunning): New function.
32068         (s390_sched_score): Use new functions.
32069         (s390_sched_reorder): Likewise.
32070         (s390_sched_variable_issue): Rework and use new functions.
32071         (s390_sched_init): Use new functions.
32072         * config/s390/s390.h (s390_tune_attr): Add z14.
32073         * config/s390/s390.md: Add z14.
32075 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
32077         * config/s390/2964.md: Update pipeline description.
32078         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
32079         (LONGRUNNING_THRESHOLD): Remove.
32080         (LATENCY_FACTOR): Remove.
32081         (s390_get_unit_mask): Add unit.
32082         (s390_sched_score): Use fxd/fpd.
32083         (s390_sched_variable_issue): Use fxd/fpd.
32085 2019-03-12  Martin Liska  <mliska@suse.cz>
32087         * config/i386/i386.c: Reword an error message.
32089 2019-03-12  Martin Jambor  <mjambor@suse.cz>
32091         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
32092         terminate with newline.
32094 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
32096         PR target/52726
32097         * config/s390/s390.md (tabort): Use %wd instead of
32098         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
32099         letters and periods.
32100         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
32101         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
32102         's with %< and %>.
32104         PR middle-end/89663
32105         * builtins.c (expand_builtin_int_roundingfn,
32106         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
32107         gcc_unreachable if validate_arglist fails.
32109 2019-03-12  Richard Biener  <rguenther@suse.de>
32111         PR tree-optimization/89664
32112         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
32113         free the occurance tree after the early out.
32115 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
32117         PR middle-end/89655
32118         PR bootstrap/89656
32119         * vr-values.c (vr_values::update_value_range): If
32120         old_vr->varying_p (), don't update it, make new_vr also VARYING
32121         and return false.
32123 2019-03-11  Martin Liska  <mliska@suse.cz>
32125         * config/aarch64/aarch64.c (aarch64_override_options_internal):
32126         Fix double string quoting.
32128 2019-03-11  Martin Liska  <mliska@suse.cz>
32130         * collect-utils.c (collect_wait): Wrap apostrophes
32131         in gcc internal format with %'.
32132         * collect2.c (main): Likewise.
32133         (scan_prog_file): Likewise.
32134         (scan_libraries): Likewise.
32135         * config/i386/i386.c (ix86_expand_call): Likewise.
32136         (ix86_handle_interrupt_attribute): Likewise.
32137         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
32138         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
32139         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
32140         * lto-wrapper.c (find_crtoffloadtable): Likewise.
32141         * symtab.c (symtab_node::verify_base): Likewise.
32142         * tree-cfg.c (verify_gimple_label): Likewise.
32143         * tree.c (verify_type_variant): Likewise.
32145 2019-03-11  Martin Liska  <mliska@suse.cz>
32147         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
32148         in a string format message and fix GNU coding style.
32149         (expand_builtin_set_thread_pointer): Likewise.
32150         * common/config/aarch64/aarch64-common.c
32151         (aarch64_rewrite_selected_cpu): Likewise.
32152         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
32153         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
32154         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
32155         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
32156         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
32157         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
32158         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
32159         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
32160         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
32161         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
32162         Likewise.
32163         * common/config/riscv/riscv-common.c
32164         (riscv_subset_list::parsing_subset_version): Likewise.
32165         (riscv_subset_list::parse_std_ext): Likewise.
32166         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32167         (riscv_subset_list::parse): Likewise.
32168         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
32169         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
32170         (aarch64_override_options_internal): Likewise.
32171         (aarch64_validate_mcpu): Likewise.
32172         (aarch64_validate_march): Likewise.
32173         (aarch64_validate_mtune): Likewise.
32174         (aarch64_override_options): Likewise.
32175         * config/alpha/alpha.c (alpha_option_override): Likewise.
32176         * config/arc/arc.c (arc_init): Likewise.
32177         (parse_mrgf_banked_regs_option): Likewise.
32178         (arc_override_options): Likewise.
32179         (arc_expand_builtin_aligned): Likewise.
32180         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
32181         (arm_expand_builtin): Likewise.
32182         * config/arm/arm.c (arm_option_check_internal): Likewise.
32183         (arm_configure_build_target): Likewise.
32184         (arm_option_override): Likewise.
32185         (arm_options_perform_arch_sanity_checks): Likewise.
32186         (arm_handle_cmse_nonsecure_entry): Likewise.
32187         (arm_handle_cmse_nonsecure_call): Likewise.
32188         (arm_tls_referenced_p): Likewise.
32189         (thumb1_expand_prologue): Likewise.
32190         * config/avr/avr.c (avr_option_override): Likewise.
32191         * config/bfin/bfin.c (bfin_option_override): Likewise.
32192         * config/c6x/c6x.c (c6x_option_override): Likewise.
32193         * config/cr16/cr16.c (cr16_override_options): Likewise.
32194         * config/cris/cris.c (cris_option_override): Likewise.
32195         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
32196         * config/darwin-c.c (macosx_version_as_macro): Likewise.
32197         * config/darwin.c (darwin_override_options): Likewise.
32198         * config/frv/frv.c (frv_expand_builtin): Likewise.
32199         * config/h8300/h8300.c (h8300_option_override): Likewise.
32200         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
32201         (ix86_option_override_internal): Likewise.
32202         (warn_once_call_ms2sysv_xlogues): Likewise.
32203         (ix86_expand_prologue): Likewise.
32204         (split_stack_prologue_scratch_regno): Likewise.
32205         (ix86_warn_parameter_passing_abi): Likewise.
32206         * config/ia64/ia64.c (fix_range): Likewise.
32207         * config/m68k/m68k.c (m68k_option_override): Likewise.
32208         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
32209         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
32210         (mips_set_compression_mode): Likewise.
32211         * config/mmix/mmix.c (mmix_option_override): Likewise.
32212         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
32213         * config/msp430/msp430.c (msp430_option_override): Likewise.
32214         * config/nds32/nds32.c (nds32_option_override): Likewise.
32215         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
32216         (nios2_option_override): Likewise.
32217         (nios2_expand_custom_builtin): Likewise.
32218         * config/nvptx/mkoffload.c (main): Likewise.
32219         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
32220         * config/pa/pa.c (fix_range): Likewise.
32221         (pa_option_override): Likewise.
32222         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
32223         (riscv_option_override): Likewise.
32224         * config/rl78/rl78.c (rl78_option_override): Likewise.
32225         * config/rs6000/aix61.h: Likewise.
32226         * config/rs6000/aix71.h: Likewise.
32227         * config/rs6000/aix72.h: Likewise.
32228         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
32229         * config/rs6000/freebsd64.h: Likewise.
32230         * config/rs6000/linux64.h: Likewise.
32231         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
32232         (rs6000_expand_zeroop_builtin): Likewise.
32233         (rs6000_expand_mtfsb_builtin): Likewise.
32234         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
32235         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
32236         (rs6000_invalid_builtin): Likewise.
32237         (rs6000_expand_split_stack_prologue): Likewise.
32238         * config/rs6000/rtems.h: Likewise.
32239         * config/rx/rx.c (valid_psw_flag): Likewise.
32240         (rx_expand_builtin): Likewise.
32241         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
32242         * config/s390/s390.c (s390_expand_builtin): Likewise.
32243         (s390_function_profiler): Likewise.
32244         (s390_option_override_internal): Likewise.
32245         (s390_option_override): Likewise.
32246         * config/sh/sh.c (sh_option_override): Likewise.
32247         (sh_builtin_saveregs): Likewise.
32248         (sh_fix_range): Likewise.
32249         * config/sh/vxworks.h: Likewise.
32250         * config/sparc/sparc.c (sparc_option_override): Likewise.
32251         * config/spu/spu.c (spu_option_override): Likewise.
32252         (fix_range): Likewise.
32253         * config/visium/visium.c (visium_option_override): Likewise.
32254         (visium_handle_interrupt_attr): Likewise.
32255         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
32256         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
32257         (dbg_cnt_process_opt): Likewise.
32258         * dwarf2out.c (output_dwarf_version): Likewise.
32259         * except.c (expand_eh_return): Likewise.
32260         * gcc.c (defined): Likewise.
32261         (driver_handle_option): Likewise.
32262         (process_command): Likewise.
32263         (compare_files): Likewise.
32264         (driver::prepare_infiles): Likewise.
32265         (driver::do_spec_on_infiles): Likewise.
32266         (driver::maybe_run_linker): Likewise.
32267         * omp-offload.c (oacc_parse_default_dims): Likewise.
32268         * opts-global.c (handle_common_deferred_options): Likewise.
32269         * opts.c (parse_sanitizer_options): Likewise.
32270         (common_handle_option): Likewise.
32271         (enable_warning_as_error): Likewise.
32272         * passes.c (enable_disable_pass): Likewise.
32273         * plugin.c (parse_plugin_arg_opt): Likewise.
32274         (default_plugin_dir_name): Likewise.
32275         * targhooks.c (default_expand_builtin_saveregs): Likewise.
32276         (default_pch_valid_p): Likewise.
32277         * toplev.c (init_asm_output): Likewise.
32278         (process_options): Likewise.
32279         (toplev::run_self_tests): Likewise.
32280         * tree-cfg.c (verify_gimple_call): Likewise.
32281         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
32282         (tree_inlinable_function_p): Likewise.
32283         * var-tracking.c (vt_find_locations): Likewise.
32285 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
32287         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
32288         only on the else branch.
32290 2019-03-11  Martin Liska  <mliska@suse.cz>
32292         * gcov.c (output_intermediate_json_line): Print function
32293         name of each line.
32294         (output_json_intermediate_file): Add new argument.
32295         * doc/gcov.texi: Document the change.
32297 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
32299         PR rtl-optimization/89588
32300         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
32301         explicit unrolling factor more robust.
32303 2019-03-11  Richard Biener  <rguenther@suse.de>
32305         PR tree-optimization/89649
32306         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
32307         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
32308         on the prolog and epilog loops.
32309         (vect_loop_versioning): Return copy of loop.
32310         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
32311         on the non-vectorized version of the loop.
32313 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32315         PR target/68924
32316         * config/i386/sse.md (*vec_extractv2di_0_sse):
32317         Add (=r,x) alternative and corresponding splitter.
32319 2019-03-10  Martin Jambor  <mjambor@suse.cz>
32321         PR tree-optimization/85762
32322         PR tree-optimization/87008
32323         PR tree-optimization/85459
32324         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
32325         it points to if there is a type changing MEM_REF.  Adjust all callers.
32326         (build_accesses_from_assign): Disable total scalarization if
32327         contains_vce_or_bfcref_p returns true through the new parameter, for
32328         both rhs and lhs.
32330 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
32332         PR c/88568
32333         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
32334         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
32336         PR target/79645
32337         * common.opt (fdiagnostics-show-labels,
32338         fdiagnostics-show-line-numbers, fdiagnostics-format=,
32339         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
32340         gas-locview-support, ginline-points, ginternal-reset-location-views):
32341         Terminate description text with a dot.
32342         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
32343         * config/mcore/mcore.opt (m210, m340): Likewise.
32344         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
32345         mnops=): Start description text with a capital letter.
32346         * config/arc/arc.opt (msize-level=): Likewise.
32347         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
32348         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
32349         mnewlib): Likewise.
32350         * config/ft32/ft32.opt (msim): Likewise.
32351         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
32352         (mnodiv, mnopm): Terminate description text with a dot.
32353         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
32354         a colon.
32355         * config/i386/i386.opt (prefer_vector_width, instrument_return):
32356         Likewise.
32357         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
32358         text.
32360         PR rtl-optimization/89634
32361         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
32362         are modified in BB_END (e->src) instruction.
32364 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
32366         PR target/79926
32367         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
32368         messages more amenable to translation, and improve wording.
32370 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
32372         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
32373         ud- and du-chains between phases.
32375 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
32377         PR debug/89631
32378         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
32379         instead of POLY_INT_CST.
32381 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
32383         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
32384         requirement.
32386 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32388         PR target/68924
32389         PR target/78782
32390         PR target/87558
32391         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
32392         (_mm_storeu_si64): Ditto.
32394 2019-03-08  Martin Liska  <mliska@suse.cz>
32396         PR target/86952
32397         * config/i386/i386.c (ix86_option_override_internal): Disable
32398         jump tables when retpolines are used.
32400 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
32402         PR go/63560
32403         * ipa-split.c (execute_split_functions): Do not split
32404         'noinline' or 'section' function.
32406 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
32408         PR target/79846
32409         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
32410         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
32411         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
32413         PR ipa/80000
32414         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
32415         from diagnostics.  Formatting fixes.
32417         PR target/85665
32418         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
32419         warn_odr diagnostics.
32421         PR other/80058
32422         * lra-constraints.c (process_alt_operands): Avoid one space before
32423         " at the end of line and another after " on another line in a string
32424         literal.
32425         * attribs.c (handle_dll_attribute): Likewise.
32426         * config/avr/avr-devices.c (avr_texinfo): Likewise.
32428         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
32429         warning_at or inform messages in G_() if there is no ?:.
32431         PR tree-optimization/89550
32432         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
32433         returned true.  Formatting fixes.
32434         (expand_builtin_strnlen): Formatting fixes.
32435         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
32436         if warning_at returned true.
32437         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
32439 2019-03-08  Richard Biener  <rguenther@suse.de>
32441         PR middle-end/89578
32442         * cfgloop.h (struct loop): Add owned_clique field.
32443         * cfgloopmanip.c (copy_loop_info): Copy it.
32444         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
32445         cliques.
32446         * tree-inline.c (copy_loops): Remap owned_clique.
32447         * lto-streamer-in.c (input_cfg): Stream owned_clique.
32448         * lto-streamer-out.c (output_cfg): Likewise.
32450 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
32452         PR target/80190
32453         * config/darwin.c: Include intl.h.
32454         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
32455         composing the message out of two separate parts.
32457 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
32459         PR target/80003
32460         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
32461         doesn't start with a capital letter and doesn't end with a dot.
32462         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
32463         with a capital letter.
32464         (ix86_mangle_function_version_assembler_name): Likewise.
32465         (ix86_generate_version_dispatcher_body): Likewise.
32466         (fold_builtin_cpu): Likewise.
32467         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
32468         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
32469         translators, wrap full type name in %qs.
32471         PR translation/79999
32472         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
32473         depend clause with source (or sink) modifier.
32474         * omp-expand.c (expand_omp_ordered_sink): Likewise.
32476         PR target/89602
32477         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
32478         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
32479         (avx512f_load<mode>_mask): New define_expand.
32480         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
32481         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
32482         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
32483         __builtin_ia32_movess_mask): New builtins.
32484         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
32485         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
32486         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
32487         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
32489 2019-03-07  Martin Jambor  <mjambor@suse.cz>
32491         PR lto/87525
32492         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
32493         for extern inline functions.
32495 2019-03-07  Martin Jambor  <mjambor@suse.cz>
32497         PR ipa/88235
32498         * cgraph.h (cgraph_node): New inline method former_thunk_p.
32499         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
32500         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
32501         have multiple callees.  At the end check if declarations match as
32502         opposed to cgraph_nodes.
32504 2019-03-07  Martin Liska  <mliska@suse.cz>
32506         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
32507         which is equivalent to searching for this in clones chain.
32508         * symtab.c (symtab_node::verify_base): Similarly compare ASM
32509         names with a neighbour and special case first node in a chain.
32511 2019-01-25  Jason Merrill  <jason@redhat.com>
32513         PR c++/80916 - spurious "static but not defined" warning.
32514         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
32515         for an internal symbol with DECL_EXTERNAL.
32517 2019-04-07  Richard Biener  <rguenther@suse.de>
32519         PR middle-end/89618
32520         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
32521         * tree-inline.c (copy_loops): Simplify.
32523 2019-03-07  Martin Liska  <mliska@suse.cz>
32525         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
32527 2019-03-07  Richard Biener  <rguenther@suse.de>
32529         PR tree-optimization/89595
32530         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
32531         stmt iterator as reference, take boolean output parameter to
32532         indicate whether the stmt was removed and thus the iterator
32533         already advanced.
32534         (dom_opt_dom_walker::before_dom_children): Re-iterate over
32535         stmts created by folding.
32537 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
32539         PR c++/89585
32540         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
32541         at toplevel.
32543 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
32545         PR rtl-optimization/88845
32546         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
32547         LRA.
32548         * lra.c (remove_scratches_1): New function.
32549         (remove_scratches): Use it.
32550         (lra_emit_move): Likewise.
32552 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
32554         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
32555         unaligned_access variable.
32556         * config/arc/arc.c (arc_override_options): Set unaligned access
32557         default on for HS CPUs.
32558         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
32560 2019-03-06  Martin Liska  <mliska@suse.cz>
32562         PR gcov-profile/89577
32563         * doc/gcov.texi: Prefer to use --coverage.
32564         * doc/sourcebuild.texi: Likewise.
32566 2019-03-02  Jason Merrill  <jason@redhat.com>
32568         PR c++/86485 - -Wmaybe-unused with empty class ?:
32569         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
32571 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32573         PR target/89587
32574         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
32575         if_multiarch.
32577         PR middle-end/89590
32578         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
32579         exactly one argument.
32581 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32582             Richard Sandiford  <richard.sandiford@arm.com>
32584         PR tree-optimization/89570
32585         * match.pd (vec_cond into cond_op simplification): Don't use
32586         get_conditional_internal_fn, use as_internal_fn (cond_op).
32588 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
32590         PR target/89222
32591         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
32592         to decide when to split off a non-zero offset from a symbol.
32593         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
32594         in function symbols.
32596 2019-03-05  Richard Biener  <rguenther@suse.de>
32598         PR tree-optimization/89594
32599         * tree-if-conv.c (pass_if_conversion::execute): Handle
32600         case where .LOOP_VECTORIZED_FUNCTION was removed.
32602 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
32604         PR bootstrap/89560
32605         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
32606         instead alloca it only when needed with the needed size.
32608         PR tree-optimization/89570
32609         * match.pd (vec_cond into cond_op simplification): Guard with
32610         vectorized_internal_fn_supported_p test and #if GIMPLE.
32612         PR tree-optimization/89566
32613         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
32614         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
32615         Punt if get_user_idx_format succeeds, but idx_format argument is
32616         not provided or doesn't have pointer type, or if idx_args is above
32617         number of provided arguments.
32619 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
32621         PR tree-optimization/89437
32622         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
32624 2019-03-04  Richard Biener  <rguenther@suse.de>
32626         PR middle-end/89572
32627         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
32628         safe_dyn_cast.
32630 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
32632         PR tree-optimization/89487
32633         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
32634         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
32635         (distribute_loop): Don't do runtime alias check if there is non-
32636         addressable data reference.
32637         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
32638         is a register variable.
32640 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
32642         PR target/89506
32643         * config/arm/arm.md (cmpsi2_addneg): Use
32644         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
32645         If operands[2] is 0 or INT_MIN, force use of subs.
32646         (*compare_scc splitter): Use gen_int_mode.
32647         (*negscc): Likewise.
32648         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
32650 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
32651             Monk Chiang  <sh.chiang04@gmail.com>
32653         * common/config/riscv/riscv-common.c: Include sstream.
32654         (riscv_subset_list::to_string): New.
32655         (riscv_arch_str): Likewise.
32656         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
32657         * config.in: Regen.
32658         * config/riscv/riscv-protos.h (riscv_arch_str): New.
32659         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
32660         (riscv_emit_attribute): New.
32661         (riscv_file_start): Emit attribute if needed.
32662         (riscv_option_override): Init riscv_emit_attribute_p.
32663         * config/riscv/riscv.opt (mriscv-attribute): New option.
32664         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
32665         * configure: Regen.
32666         * doc/install.texi: Document --with-riscv-attribute.
32667         * doc/invoke.texi: Document -mriscv-attribute.
32669         * common/config/riscv/riscv-common.c:
32670         Include config/riscv/riscv-protos.h.
32671         (INCLUDE_STRING): Defined.
32672         (RISCV_DONT_CARE_VERSION): Defined.
32673         (riscv_subset_t): Declare.
32674         (riscv_subset_t::riscv_subset_t): New.
32675         (riscv_subset_list): Declare.
32676         (riscv_subset_list::riscv_subset_list): New.
32677         (riscv_subset_list::~riscv_subset_list): Likewise.
32678         (riscv_subset_list::parsing_subset_version): Likewise.
32679         (riscv_subset_list::parse_std_ext): Likewise.
32680         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32681         (riscv_subset_list::add): Likewise.
32682         (riscv_subset_list::lookup): Likewise.
32683         (riscv_subset_list::xlen): Likewise.
32684         (riscv_subset_list::parse): Likewise.
32685         (riscv_supported_std_ext): Likewise.
32686         (current_subset_list): Likewise.
32687         (riscv_parse_arch_string): Using riscv_subset_list::parse to
32688         parse.
32690 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
32692         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32693         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
32694         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
32696 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
32698         PR rtl-optimization/85899
32699         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
32700         fallthru edges leading to the exit block.
32702 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
32704         PR target/89517
32705         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
32706         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
32708 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
32710         PR tree-optimization/89535
32711         * tree-vect-stmts.c (vectorizable_call): Record the vector types
32712         for each operand.  Calculate the fallback choice for mask operands
32713         and pass it to vect_get_vec_def_for_operand.
32715 2019-03-01  Richard Biener  <rguenther@suse.de>
32717         PR middle-end/89541
32718         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
32719         get virtual operands.
32720         (get_expr_operands): Handle CONST_DECL like other decls.
32722 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32724         PR middle-end/89503
32725         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
32726         on DECL_P and EXPR_P.
32728 2019-03-01  Richard Biener  <rguenther@suse.de>
32730         PR middle-end/89497
32731         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
32732         argument, defaulted to zero.
32733         * passes.c (execute_function_todo): Pass down SSA update flags
32734         to cleanup_tree_cfg.
32735         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
32736         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
32737         form if requested.
32738         (cleanup_tree_cfg): Get and pass down SSA update flags.
32740 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
32742         PR bootstrap/89539
32743         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
32744         early_lto_debug argument.
32746 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
32748         PR tree-optimization/89536
32749         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
32750         only whether bit #0 of the value is 0 instead of the entire value.
32752 2019-02-28  Marek Polacek  <polacek@redhat.com>
32754         PR c++/87068 - missing diagnostic with fallthrough statement.
32755         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
32756         at the end of a seq, save its location to walk_stmt_info.
32757         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
32758         a switch.
32760 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
32762         PR lto/88585
32763         * tree.c (find_atomic_core_type): Move ahead in file.
32764         (check_base_type): Correctly compare alignments of atomic types.
32766 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32768         PR target/89455
32769         * config/i386/i386.c (get_builtin_code_for_version): Identify
32770         Westmere from PCLMUL, instead of AES.
32772 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32774         PR target/89434
32775         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
32776         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
32777         -UINTVAL (...).
32779 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
32781         PR target/88530
32782         * config/aarch64/aarch64-option-extensions.def: Document it.
32783         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
32784         if empty hwcaps.
32786 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
32788         PR c/89520
32789         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
32790         builtins if they don't have a single scalar floating point argument.
32791         Formatting fixes.
32793 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32795         PR rtl-optimization/89490
32796         * varasm.c (get_block_for_section): Bail out for mergeable sections.
32797         (default_use_anchors_for_symbol_p, output_object_block): Assert the
32798         block section is not mergeable.
32800 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32802         PR target/70341
32803         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
32804         old define_insn to ...
32805         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
32806         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32807         Rename old define_insn to ...
32808         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
32809         (thumb2_casesi_internal_pic): New define_expand.  Rename old
32810         define_insn to ...
32811         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
32812         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32813         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32815 2019-02-27  Richard Biener  <rguenther@suse.de>
32817         PR debug/88878
32818         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32820 2019-02-27  Richard Biener  <rguenther@suse.de>
32822         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32823         building.
32825 2019-02-27  Richard Biener  <rguenther@suse.de>
32827         PR debug/88878
32828         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32829         parameter, prefix section name with .gnu.debuglto_ if true.
32830         (dwarf2out_finish): Pass false to output_comdat_type_unit.
32831         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32833 2019-02-27  Richard Biener  <rguenther@suse.de>
32835         PR debug/89514
32836         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32837         rather than on use_debug_types, doing what output_die does.
32838         (value_format): Likewise.
32840 2019-02-27  Martin Jambor  <mjambor@suse.cz>
32841             Martin Sebor  <msebor@redhat.com>
32843         * doc/invoke.texi (Warning Options): Reword description of
32844         -Wno-absolute-value.
32846 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
32848         PR tree-optimization/89280
32849         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32850         builtin_setjmp_setup_bb): New functions.
32851         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32852         When visiting __builtin_setjmp_setup block, queue in special
32853         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32854         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
32855         from visited after the loop if they don't have any visited successor
32856         blocks.
32858 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
32860         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32861         New function.
32862         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32864 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32866         PR c++/89507
32867         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32868         with types other than sizetype/ssizetype.
32870 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32872         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32873         (enum sparc_processor_type): ...this.
32874         (enum sparc_code_model_type): New enumeration type.
32875         (enum sparc_memory_model_type): Tweak comments.
32876         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32877         (mtune): Likewise.
32878         (mcmodel): Use sparc_code_model enumeration and variable.
32879         (sparc_code_model): New enumeration.
32880         (mdebug): Add Undocumented marker.
32881         * config/sparc/sparc.h (enum cmodel): Delete.
32882         (sparc_cmodel): Likewise.
32883         (TARGET_CM_MEDLOW): Adjust to above renaming.
32884         (TARGET_CM_MEDMID): Likewise.
32885         (TARGET_CM_MEDANY): Likewise.
32886         (TARGET_CM_EMBMEDANY): Likewise.
32887         * config/sparc/sparc.c (sparc_cmodel): Delete.
32888         (sparc_option_override): Remove string/value mapping support for the
32889         code model.  Move code and memory model support to after the handling
32890         of target flags.  Do private machine setup last.
32891         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32892         (sparc_legitimize_reload_address): Likewise.
32893         (sparc_output_mi_thunk): Likewise.
32894         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32896 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32898         PR tree-optimization/89500
32899         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32900         (handle_builtin_strlen): Remove noncst_bound variable.  Always
32901         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
32902         cst if the first cst bytes starting at x are known to be non-zero,
32903         even if the string is not zero terminated.  Don't try to modify
32904         *si for strnlen.  Update strlen_to_stridx only for strlen or if
32905         we can prove strnlen returns the same value as strlen would.
32907 2019-02-26  Martin Liska  <mliska@suse.cz>
32909         * alloc-pool.h (struct pool_usage): Remove extra
32910         print_dash_line.
32911         * bitmap.h (struct bitmap_usage): Likewise.
32912         * ggc-common.c (struct ggc_usage): Likewise.
32913         * mem-stats.h (struct mem_usage): Likewise.
32914         (mem_alloc_description::dump): Print dash lines
32915         here and repeat header at the end of a table report.
32916         It's then more readable.
32917         * tree-phinodes.c (phinodes_print_statistics): Make
32918         horizontal alignment.
32919         * tree-ssanames.c (ssanames_print_statistics): Likewise.
32920         * vec.c (struct vec_usage): Remove extra print_dash_line.
32921         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32923 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
32925         * doc/extend.texi (__builtin_object_size):
32926         Use @pxref instead of @xref inside parenthesis.
32927         (__builtin_has_attribute): Add missing comma after @xref.
32928         (__builtin_object_size): Ditto.
32929         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32931 2019-02-26  Jeff Law  <law@redhat.com>
32933         PR rtl-optimization/87761
32934         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32935         detect obviously dead insns and delete them.
32937 2019-02-26  Richard Biener  <rguenther@suse.de>
32939         PR tree-optimization/89505
32940         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32941         to handle restrict pointed-to vars with multiple subvars
32942         correctly.
32944 2019-02-26  Richard Biener  <rguenther@suse.de>
32946         PR tree-optimization/89489
32947         * tree-parloops.c (create_loop_fn): Copy over last_clique.
32949 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32951         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32952         and move around comment.
32953         <BIT_AND_EXPR>: Likewise.
32954         <BIT_NOT_EXPR>: Add specific handling for boolean types.
32956 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
32958         PR target/89474
32959         * config/i386/i386.c (remove_partial_avx_dependency): Call
32960         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32961         after changing possibly many instructions to use that pseudo.  Fix up
32962         insertion of v4sf_const0 setter at the start of bb.
32964 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32966         PR c/80409
32967         * doc/extend.texi (Variadic Pointer Args): New section.
32969 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
32970             Martin Sebor  <msebor@gmail.com>
32972         * common.opt (Wattribute-alias): Likewise.
32973         * doc/invoke.texi (Option Summary): List general form of
32974         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
32975         (-Wmissing-attributes): Invert entry, rewrite and correct default.
32976         Add cross-references.
32977         (-Wattribute-alias): Rewrite and correct default.  Mention
32978         considered attributes (same as for -Wmissing-attributes).
32980 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
32982         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32983         (_mm_cvtpd_ps): Likewise.
32984         (_mm_cvttpd_epi32): Likewise.
32986         PR target/89338
32987         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32988         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32990         PR target/89339
32991         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32993 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
32995         PR target/88530
32996         * common/config/aarch64/aarch64-common.c
32997         (struct aarch64_option_extension): Add is_synthetic.
32998         (all_extensions): Use it.
32999         (TARGET_OPTION_INIT_STRUCT): Define hook.
33000         (struct gcc_targetm_common): Moved to end.
33001         (all_extensions_by_on): New.
33002         (opt_ext_cmp, typedef opt_ext): New.
33003         (aarch64_option_init_struct): New.
33004         (aarch64_contains_opt): New.
33005         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
33006         * config/aarch64/aarch64-option-extensions.def
33007         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
33008         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
33009         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
33010         Set is_synthetic to false.
33011         (crypto): Set is_synthetic to true.
33012         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
33013         SYNTHETIC.
33015 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
33017         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
33018         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
33019         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
33020         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
33021         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
33022         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
33023         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
33024         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
33025         Rename ...
33026         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
33027         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
33028         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
33029         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
33030         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
33031         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
33032         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
33033         vfmlsl_laneq_high_f16): ... To this.
33034         * config/arm/neon.md: Update comments.
33036 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
33038         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
33039         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
33040         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
33041         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
33042         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
33043         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
33044         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
33045         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
33046         Rename ...
33047         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
33048         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
33049         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
33050         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
33051         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
33052         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
33053         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
33054         vfmlslq_laneq_high_f16): ... To this.
33056 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
33058         PR rtl-optimization/86096
33059         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
33060         comparing mw_order values.
33062 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
33064         PR target/89434
33065         * config/arm/arm.md (*subsi3_carryin_const): Use
33066         arm_neg_immediate_operand predicate instead of
33067         arm_not_immediate_operand, "L" constraint instead of "K" and
33068         print it using %n2 instead of %B2.
33069         (*subsi3_carryin_const0): New define_insn.
33070         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
33071         instead of arm_not_operand and "I" constraint instead of "K" and
33072         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
33073         another match_operand and in the condition check that it is negation
33074         of operands[2].
33075         (*subsi3_carryin_compare_const0): New define_ins.
33076         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
33077         *subsi3_carryin_const.
33078         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
33079         split into *subsi3_carryin_compare_const0 if the highpart is zero.
33081         PR target/89438
33082         * config/arm.vfp.md (*negdf2_vfp): Use
33083         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
33084         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
33086 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
33088         PR rtl-optimization/89445
33089         * simplify-rtx.c (simplify_ternary_operation): Don't use
33090         simplify_merge_mask on operands that may trap.
33091         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
33092         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
33093         second operand is CONST_VECTOR, check if any element could be zero.
33094         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
33095         their operands can trap.
33097 2019-02-23  Martin Sebor  <msebor@redhat.com>
33099         * gimple-ssa-sprintf.c (target_strtol): Rename...
33100         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
33101         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
33102         check for range error.
33104 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
33106         PR driver/69471
33107         * opts-common.c (prune_options): Also prune joined switches
33108         with Negative and RejectNegative.
33109         * config/i386/i386.opt (march=): Add Negative(march=).
33110         (mtune=): Add Negative(mtune=).
33111         * doc/options.texi: Document Negative used together with Joined
33112         and RejectNegative.
33114 2019-02-22  Martin Sebor  <msebor@redhat.com>
33116         * doc/extend.texi (Other Builtins): Add
33117         __builtin_is_constant_evaluated.
33119 2019-02-22  Richard Biener  <rguenther@suse.de>
33121         PR tree-optimization/87609
33122         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
33124 2019-02-22  Jeff Law  <law@redhat.com>
33126         PR rtl-optimization/87761
33127         * config/mips/mips.md: Add new combiner pattern to recognize
33128         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
33130 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
33132         PR target/89324
33133         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
33134         destination register in peepholes generating patterns for ADDS/SUBS.
33135         (add<mode>3_compare0,
33136         *addsi3_compare0_uxtw, add<mode>3_compareC,
33137         add<mode>3_compareV_imm, add<mode>3_compareV,
33138         *adds_<optab><ALLX:mode>_<GPI:mode>,
33139         *subs_<optab><ALLX:mode>_<GPI:mode>,
33140         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
33141         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
33142         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
33143         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
33144         sub<mode>3_compare1): Allow stack pointer for source register.
33145         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
33147 2019-02-22  Martin Sebor  <msebor@redhat.com>
33149         PR tree-optimization/88993
33150         PR tree-optimization/88853
33151         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
33152         New helper.
33153         (sprintf_dom_walker::call_info::is_string_func): New helper.
33154         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
33155         for formatted string functions.
33156         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
33158 2019-02-22  Martin Sebor  <msebor@redhat.com>
33160         PR c/89425
33161         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
33162         unreachable subexpressions.
33164 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
33165             Hongtao Liu  <hongtao.liu@intel.com>
33166             Sunil K Pandey  <sunil.k.pandey@intel.com>
33168         PR target/87007
33169         * config/i386/i386-passes.def: Add
33170         pass_remove_partial_avx_dependency.
33171         * config/i386/i386-protos.h
33172         (make_pass_remove_partial_avx_dependency): New.
33173         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
33174         New function.
33175         (pass_data_remove_partial_avx_dependency): New.
33176         (pass_remove_partial_avx_dependency): Likewise.
33177         (make_pass_remove_partial_avx_dependency): Likewise.
33178         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
33179         (*extendsfdf2): Add avx_partial_xmm_update.
33180         (truncdfsf2): Likewise.
33181         (*float<SWI48:mode><MODEF:mode>2): Likewise.
33182         (SF/DF conversion splitters): Disabled for TARGET_AVX.
33184 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
33186         PR middle-end/85598
33187         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
33188         analysis for pass.
33190 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
33192         PR target/89444
33193         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
33194         (PTA_SKYLAKE): Add PTA_AES.
33195         (PTA_GOLDMONT): Likewise.
33197 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
33199         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
33200         instruction if enabled.
33201         (aarch64_override_options): Remove reference to return address key.
33203 2019-02-22  Richard Biener  <rguenther@suse.de>
33205         PR tree-optimization/89440
33206         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
33207         not necessary assert.
33209 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
33211         PR fortran/72741
33212         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
33213         (oacc_replace_fn_attrib_attr): ... this new function.
33214         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
33215         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
33217 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33219         * config/arm/arm-cpus.in (ares): Rename to...
33220         (neoverse-n1): ... This.  Add ares as alias.
33221         * config/arm/arm-tables.opt: Regenerate.
33222         * config/arm/arm-tune.md: Likewise.
33223         * doc/invoke.txt (ARM Options): Document neoverse-n1.
33225 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33227         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
33228         * config/aarch64/aarch64-tune.md: Regenerate.
33229         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
33231 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33233         * config/aarch64/aarch64.c (ares_tunings): Rename to...
33234         (neoversen1_tunings): ... This.
33235         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
33236         (neoverse-n1): New CPU.
33237         * config/aarch64/aarch64-tune.md: Regenerate.
33238         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
33240 2019-02-22  Richard Biener  <rguenther@suse.de>
33242         PR middle-end/87609
33243         * cfghooks.h (dependence_hash): New typedef.
33244         (struct copy_bb_data): New type.
33245         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
33246         (duplicate_block): Likewise.
33247         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
33248         (copy_bbs): Create and pass down copy_bb_data.
33249         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
33250         (rtl_duplicate_bb): Likewise.
33251         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
33252         remap dependence info.
33254 2019-02-22  Richard Biener  <rguenther@suse.de>
33256         PR tree-optimization/87609
33257         * tree-core.h (tree_base): Document special clique values.
33258         * tree-inline.c (remap_dependence_clique): Do not use the
33259         special clique value of one.
33260         (maybe_set_dependence_info): Use clique one.
33261         (clear_dependence_clique): New callback.
33262         (compute_dependence_clique): Clear clique one from all refs
33263         before assigning it (again).
33265 2019-02-21  Martin Sebor  <msebor@redhat.com>
33267         * doc/extend.texi (__clear_cache): Correct signature.
33269 2019-02-21  Ian Lance Taylor  <iant@golang.org>
33271         PR go/89170
33272         * varasm.c (decode_addr_const): Call lookup_constant_def rather
33273         than output_constant_def.
33274         (add_constant_to_table): New static function.
33275         (output_constant_def): Call add_constant_to_table.
33276         (tree_output_constant_def): Likewise.
33278 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
33280         PR c++/89285
33281         * builtins.c (fold_builtin_arith_overflow): If first two args are
33282         INTEGER_CSTs, set intres and ovfres to constants rather than calls
33283         to ifn.
33285 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
33287         PR target/87412
33288         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
33289         error for -mindirect-branch/-mfunction-return with incompatible
33290         -fcf-protection.
33292 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
33294         PR bootstrap/88714
33295         * constraints.md (q): Remove.
33296         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
33297         instead of q.
33299 2019-02-21  Martin Jambor  <mjambor@suse.cz>
33301         PR hsa/89302
33302         * omp-general.c (omp_extract_for_data): Removed a duplicate call
33303         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
33304         (omp_adjust_for_condition): ...here.  Added necessary parameters.
33305         * omp-general.h (omp_adjust_for_condition): Updated declaration.
33306         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
33307         proper values to new parameters of omp_adjust_for_condition.
33309 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
33311         PR middle-end/89412
33312         * expr.c (expand_assignment): If result is a MEM, use change_address
33313         instead of simplify_gen_subreg.
33315 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
33316             David Malcolm  <dmalcolm@redhat.com>
33318         PR middle-end/89091
33319         * fold-const.c (decode_field_reference): Return NULL_TREE if
33320         lang_hooks.types.type_for_size returns NULL.  Check it before
33321         overwriting *exp_.  Use return NULL_TREE instead of return 0.
33323 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
33325         PR middle-end/88074
33326         PR middle-end/89415
33327         * toplev.c (do_compile): Double the emin/emax exponents to workaround
33328         buggy mpc_norm.
33330 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33332         PR target/89397
33333         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
33334         TARGET_SSE in addition to TARGET_SSE_MATH.
33336         (ix86_excess_precision): Ditto.
33337         (ix86_float_exceptions_rounding_supported_p): Ditto.
33338         (use_rsqrt_p): Ditto.
33339         * config/i386/sse.md (rsqrt<mode>2): Ditto.
33341 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
33343         PR c/89410
33344         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
33345         linenum_arith_t when determining if two adjacent line spans are
33346         close enough to merge.
33347         (diagnostic_show_locus): Use linenum_arith_t when iterating over
33348         lines within each line_span.
33350 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
33352         PR target/86487
33353         * lra-constraints.c(uses_hard_regs_p): Fix handling of
33354         paradoxical SUBREGS.
33356 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
33358         PR target/88100
33359         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
33360         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
33361         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
33362         range checking it.
33364 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
33366         * config/gcn/gcn.c (print_operand): Fix typo.
33368 2019-02-19  Richard Biener  <rguenther@suse.de>
33370         PR middle-end/88074
33371         * toplev.c (do_compile): Initialize mpfr's exponent range
33372         based on available float modes.
33374 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
33376         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
33377         as long as the epilogue isn't completed.
33379 2019-02-18  Martin Sebor  <msebor@redhat.com>
33381         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
33382         __has_cpp_attribute, and __has_include.
33384 2019-02-18  Martin Sebor  <msebor@redhat.com>
33386         * doc/invoke.texi (-Wreturn-type): Correct and expand.
33388 2019-02-18  Martin Sebor  <msebor@redhat.com>
33390         PR middle-end/89294
33391         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
33392         expression.
33393         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
33395 2019-02-18  Richard Biener  <rguenther@suse.de>
33397         PR tree-optimization/89296
33398         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
33399         of no-warning flag to cases that might emit the bogus warning.
33401 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
33403         PR bootstrap/88714
33404         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
33405         "q" constraint.
33406         * config/arm/vfp.md (*movdi_vfp): Likewise.
33407         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
33408         "q" constraint for operands[0].
33410         PR target/89369
33411         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
33412         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
33413         pattern in a temporary buffer.
33414         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
33415         than 64-operands[2].
33417         PR target/89361
33418         * config/s390/s390.c (s390_indirect_branch_attrvalue,
33419         s390_indirect_branch_settings): Define unconditionally.
33420         (s390_set_current_function): Likewise, but guard the whole body except
33421         the s390_indirect_branch_settings call with
33422         #if S390_USE_TARGET_ATTRIBUTE.
33423         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
33425         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
33426         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
33427         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
33428         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
33429         HOST_WIDE_INT_1U instead of 1ULL.
33430         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
33431         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
33432         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
33433         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
33434         instead of 1UL.
33435         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
33436         instead of 1ul.
33438 2019-02-18  Martin Jambor  <mjambor@suse.cz>
33440         PR tree-optimization/89209
33441         * tree-sra.c (create_access_replacement): New optional parameter
33442         reg_tree.  Use it as a type if non-NULL and access type is not of
33443         a register type.
33444         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
33445         to create_access_replacement.
33446         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
33447         Check lacc is non-NULL before attempting to re-create it on the RHS.
33449 2019-02-18  Martin Liska  <mliska@suse.cz>
33451         PR ipa/89306
33452         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
33453         by default.
33454         (symbol_table::free_edge): Recycle m_summary_id.
33455         * cgraph.h (get_summary_id): New.
33456         (symbol_table::release_symbol): Set m_summary_id to -1
33457         by default.
33458         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
33459         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
33460         function_summary to fast_function_summary.
33461         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
33462         * ipa-pure-const.c (class funct_state_summary_t):
33463         Switch from function_summary to fast_function_summary.
33464         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
33465         (class ipa_ref_opt_summary_t): Switch from function_summary
33466         to fast_function_summary.
33467         * symbol-summary.h (class function_summary_base): New class
33468         that is created from base of former function_summary.
33469         (function_summary_base::unregister_hooks): New.
33470         (class function_summary): Inherit from function_summary_base.
33471         (class call_summary_base): New class
33472         that is created from base of former call_summary.
33473         (class call_summary): Inherit from call_summary_base.
33474         (struct is_same): New.
33475         (class fast_function_summary): New summary class.
33476         (class fast_call_summary): New summary class.
33477         * vec.h (vec_safe_grow_cleared): New function.
33479 2019-02-18  Martin Liska  <mliska@suse.cz>
33481         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
33482         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
33483         * doc/tm.texi: Document new target hook.
33484         * doc/tm.texi.in: Likewise.
33485         * target.def: Add new target macro.
33486         * gcc.c (find_fortran_preinclude_file): Do not search multilib
33487         suffixes.
33489 2019-02-17  Alan Modra  <amodra@gmail.com>
33491         PR target/89271
33492         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
33493         output reg on add insn.
33494         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
33496 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
33498         PR target/89372
33499         * config/i386/sse.md (ssedoublemode): Remove V4HI.
33500         (PMULHRSW): Likewise.
33501         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
33502         TARGET_AVX2.
33503         (ssse3_pmulhrswv4hi3): New expander.
33505 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
33507         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
33508         MMX.  Add isa attribute.
33510 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
33512         PR rtl-optimization/66152
33513         * builtins.h (c_readstr): Declare.
33514         * builtins.c (c_readstr): Remove forward declaration.  Add
33515         null_terminated_p argument, if false, read all bytes from the
33516         string instead of stopping after '\0'.
33517         * expr.c (string_cst_read_str): New function.
33518         (store_expr): Use string_cst_read_str instead of
33519         builtin_strncpy_read_str.  Try to store by pieces the whole
33520         exp_len first, and only if that fails, split it up into
33521         store by pieces followed by clear_storage.  Formatting fix.
33523         * config/i386/i386.md (*movqi_internal): Remove static from
33524         buf variable.  Use output_asm_insn (buf, operands); return "";
33525         instead of return buf;.
33526         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
33527         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
33528         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
33530 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33532         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
33533         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
33534         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
33535         (CC1_SPEC): Likewise.
33536         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
33538 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33540         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
33541         the base address on 64-bit strict-alignment platforms.
33543 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
33545         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
33547 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33549         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
33551 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
33553         PR rtl-optimization/88308
33554         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
33555         on copied instruction.
33557 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
33559         * final.c (insn_current_reference_address): Replace test on JUMP_P
33560         with test on jump_to_label_p.
33561         * config/visium/visium-passes.def: New file.
33562         * config/visium/t-visium (PASSES_EXTRA): Define.
33563         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
33564         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
33565         (TRAMPOLINE_ALIGNMENT): Define.
33566         * config/visium/visium.c (visium_option_override): Do not register
33567         the machine-specific reorg pass here.
33568         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
33569         for the GR6.
33570         (output_branch): Adjust threshold for long branch instruction.
33571         * config/visium/visium.md (cpu): Move around.
33572         (length): Adjust for the GR6.
33574 2019-02-15  Richard Biener  <rguenther@suse.de>
33575             Jakub Jelinek  <jakub@redhat.com>
33577         PR tree-optimization/89278
33578         * tree-loop-distribution.c: Include tree-eh.h.
33579         (generate_memset_builtin, generate_memcpy_builtin): Call
33580         rewrite_to_non_trapping_overflow on builtin->size before passing it
33581         to force_gimple_operand_gsi.
33583 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
33585         PR other/89342
33586         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
33587         optimize_debug.
33588         * opth-gen.awk: Likewise.
33590 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33592         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
33593         Enable MMX, SSE and SSE2 by default.
33594         * config/i386/i386.c (ix86_option_override_internal): Do not
33595         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
33597 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
33599         PR rtl-optimization/89354
33600         * combine.c (make_extraction): Punt if extraction_mode is narrower
33601         than len bits.
33603 2019-02-14  Maya Rashish  <coypu@sdf.org>
33605         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
33606         * config/netbsd-d.c: New file.
33607         * config/t-netbsd: Add netbsd-d.o
33609 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
33611         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
33612         affects_type_identity to true for aarch64_vector_pcs.
33613         (aarch64_comp_type_attributes): New function.
33614         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
33616 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
33618         PR target/88850
33619         * config/arm/iterators.md (ANY64): Add V4HF.
33621 2019-02-14  Martin Liska  <mliska@suse.cz>
33623         PR rtl-optimization/89242
33624         * dce.c (delete_unmarked_insns): Call free_dominance_info we
33625         process a transformation.
33627 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
33629         PR tree-optimization/89314
33630         * fold-const.c (fold_binary_loc): Cast strlen argument to
33631         const char * before dereferencing it.  Formatting fixes.
33633         PR middle-end/89284
33634         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
33636 2019-02-13  Ian Lance Taylor  <iant@golang.org>
33638         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
33639         and set current index for other optimizations.
33641 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
33643         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
33644         nonimmediate_operand as operand 2 predicate.
33645         (vec_set<VF2_512_256:mode>_0): Ditto.
33646         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
33647         (*vec_concatv2si): Remove alternative 2.
33648         (*vec_concatv4si_0): Use vm constraint for alternative 0.
33649         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
33650         (vec_concatv2di): Split alternatives 4,5,6 to ...
33651         (*vec_concatv2di_0) ... new pattern.
33653 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
33655         PR target/89190
33656         * config/arm/arm.c (ldm_stm_operation_p) Set
33657         addr_reg_in_reglist correctly for first register.
33658         (load_multiple_sequence): Remove dead base check.
33659         (gen_ldm_seq): Correctly set write_back for Thumb-1.
33661 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
33663         PR target/88847
33664         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
33665         Expose as @aarch64_pred_mov.
33666         * config/aarch64/aarch64.c (aarch64_classify_address):
33667         Use expand_insn which legitimizes operands.
33669 2019-02-13  Martin Liska  <mliska@suse.cz>
33671         * builtins.h (expand_builtin_with_bounds): Remove declaration.
33672         * calls.c (struct arg_data): Remove special_slot, pointer_arg
33673         and pointer_offset fields.
33674         (initialize_argument_information): Remove usage of dead
33675         fields.
33676         * cgraph.h (struct cgraph_thunk_info): Remove
33677         add_pointer_bounds_args.
33678         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
33679         fields.
33680         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
33681         fields.
33682         * config/i386/i386.c (ix86_function_arg_advance): Remove
33683         unrelated comment.
33684         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
33685         (def_builtin): Remove usage of dead fields.
33686         (ix86_add_new_builtins): Likewise.
33687         * ipa-fnsummary.c (compute_fn_summary): Likewise.
33688         * ipa-icf.c (sem_function::equals_wpa): Likewise.
33689         (sem_function::init): Likewise.
33690         (sem_variable::merge): Likewise.
33691         * ipa-visibility.c (function_and_variable_visibility): Likewise.
33692         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33693         * lto-cgraph.c (lto_output_node): Likewise.
33694         (lto_output_varpool_node): Likewise.
33695         (input_node): Likewise.
33696         (input_varpool_node): Likewise.
33697         * lto-streamer-out.c (lto_output): Likewise.
33698         * tree-inline.c (expand_call_inline): Remove usage of
33699         assign_stmts.
33700         * tree-inline.h (struct copy_body_data): Likewise.
33701         * varpool.c (varpool_node::dump): Likewise.
33703 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
33705         PR middle-end/89303
33706         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
33707         into pt->vars_contains_escaped_heap instead of setting
33708         pt->vars_contains_escaped_heap to it.
33710         PR middle-end/89281
33711         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
33712         INTVAL (size), compare it to GET_MODE_MASK instead of
33713         1 << GET_MODE_BITSIZE.
33715         PR target/89290
33716         * config/i386/predicates.md (x86_64_immediate_operand): Allow
33717         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
33718         -mcmodel=large.
33720 2019-02-13  Martin Liska  <mliska@suse.cz>
33722         PR lto/88858
33723         * cfgrtl.c (remove_barriers_from_footer): New function.
33724         (try_redirect_by_replacing_jump): Use it.
33725         (cfg_layout_redirect_edge_and_branch): Likewise.
33727 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
33729         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
33730         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
33731         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
33732         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
33733         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
33734         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
33735         New BU_CRYPTO_2.
33736         * config/rs6000/rs6000.c (builtin_function_type)
33737         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
33738         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
33739         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
33740         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
33741         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
33743 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
33745         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
33746         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
33748 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33750         PR target/89229
33751         * config/i386/i386.md (*movoi_internal_avx): Revert revision
33752         268678 and revision 268657.
33753         (*movti_internal): Likewise.
33755 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
33757         PR target/89233
33758         * config/s390/s390.c (s390_decompose_address): Update comment.
33759         (s390_check_qrst_address): Reject invalid address forms after
33760         LRA.
33762 2019-02-12  Martin Liska  <mliska@suse.cz>
33764         PR lto/88876
33765         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
33766         we need default values of funct_state for a function that
33767         is not optimized.
33769 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33771         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
33772         the object to pick the size of stores on strict-alignment platforms.
33774         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
33775         (*movdi_insn_sp32): Likewise.
33776         (*movdi_insn_sp64): Likewise.
33778 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
33780         PR lto/88677
33781         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
33782         types that needs constructiong.
33783         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
33785 2019-02-12  Richard Biener  <rguenther@suse.de>
33787         PR tree-optimization/89253
33788         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
33789         duplicate the loop.
33791 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
33793         PR lto/88147
33794         * input.c (selftest::test_line_offset_overflow): New selftest.
33795         (selftest::input_c_tests): Call it.
33797 2019-02-11  Martin Sebor  <msebor@redhat.com>
33799         PR tree-optimization/88771
33800         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
33801         when -Wstringop-overflow is set.
33802         (builtin_memref::builtin_memref): Adjust excessive upper bound
33803         only when lower bound is not excessive.
33804         (maybe_diag_overlap): Detect and diagnose excessive bounds via
33805         -Wstringop-ovefflow.
33806         (maybe_diag_offset_bounds): Rename...
33807         (maybe_diag_access_bounds): ...to this.
33808         (check_bounds_or_overlap): Adjust for name change above.
33810 2019-02-11  Martin Sebor  <msebor@redhat.com>
33812         PR c++/87996
33813         * builtins.c (max_object_size): Move from here...
33814         * builtins.h (max_object_size): ...and here...
33815         * tree.c (max_object_size): ...to here...
33816         * tree.h (max_object_size): ...and here.
33818 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
33820         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33821         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33822         for correct semantics.
33824 2019-02-11  Alan Modra  <amodra@gmail.com>
33826         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33827         -mlongcall and -mpltseq.
33828         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33829         (RS/6000 and PowerPC Options <-mpltseq>): Document.
33830         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33831         * config/rs6000/sysv4.opt (mpltseq): New option.
33832         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33833         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33834         support is lacking.  Don't allow -mpltseq with -mbss-plt.
33835         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33836         -mpltseq given for ELFv1.
33837         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33838         Only use UNSPEC_PLTSEQ for inline PLT calls.
33839         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
33840         use UNSPEC_PLTSEQ for inline PLT calls.
33841         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33842         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33843         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33844         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33845         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33846         (pltseq_mtctr_<mode>): Likewise.
33848 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33850         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33851         Solaris ld.
33852         * configure: Regenerate.
33854 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
33856         PR bootstrap/88714
33857         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33858         instead of r.
33860 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33862         * function.c (assign_parm_setup_block): Use the stored
33863         size, not the passed size, when allocating stack-space,
33864         also for a parameter with alignment larger than
33865         MAX_SUPPORTED_STACK_ALIGNMENT.
33867 2019-02-11  Martin Liska  <mliska@suse.cz>
33869         PR ipa/89009
33870         * ipa-cp.c (build_toporder_info): Remove usage of a param.
33871         * ipa-inline.c (inline_small_functions): Likewise.
33872         * ipa-pure-const.c (propagate_pure_const): Likewise.
33873         (propagate_nothrow): Likewise.
33874         * ipa-reference.c (propagate): Likewise.
33875         * ipa-utils.c (struct searchc_env): Remove unused field.
33876         (searchc): Always search across AVAIL_INTERPOSABLE.
33877         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33878         the only called IPA pure const can properly not propagate
33879         across interposable boundary.
33880         * ipa-utils.h (ipa_reduced_postorder): Remove param.
33882 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
33884         * config/nds32/nds32.md (call_internal, call_value_internal,
33885         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33887 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
33889         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33890         typo.
33892 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
33894         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33895         in comments
33897 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33899         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33901 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
33903         PR tree-optimization/89268
33904         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33905         if preds is non-NULL.
33907 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33909         PR lto/89272
33910         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33911         polymorphic types.
33913 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33915         * config/nds32/nds32.md (trap): New pattern.
33917 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
33919         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33920         dwarf span.
33922 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33924         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33925         to split POST_INC.
33927 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33929         * ipa-visibility.c (localize_node): Also do not localize
33930         LDPR_PREVAILING_DEF_IRONLY_EXP.
33932 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33934         PR lto/87957
33935         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33936         instead of type_with_linkage.
33938 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
33940         PR ipa/88755
33941         * params.def (uninlined-function-insns, uninlined-function-time,
33942         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33943         bound so we don't get overflows.
33945 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
33947         * config/rs6000/rs6000-string.c (expand_compare_loop,
33948         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33949         memcmp/strncmp.
33951 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
33953         PR middle-end/89246
33954         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33955         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33956         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33958 2019-02-09  Alan Modra  <amodra@gmail.com>
33960         PR target/88343
33961         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33962         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
33963         setup.
33965 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33967         PR middle-end/88560
33968         * lra-constraints.c (process_alt_operands): Don't increase reject
33969         for memory when offset memory is required.
33971 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
33973         * config/s390/vector.md: Implement vector copysign.
33975 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33977         * expr.c (expand_constructor): Correct indentations.
33979 2019-02-08  Richard Biener  <rguenther@suse.de>
33981         PR tree-optimization/89247
33982         * tree-if-conv.c: Include tree-cfgcleanup.h.
33983         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33984         (tree_if_conversion): Pass through predicate vector.
33985         (pass_if_conversion::execute): Do CFG cleanup and SSA update
33986         inline, see if any if-converted loops we refrece in
33987         LOOP_VECTORIZED calls vanished and fixup.
33988         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33990 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
33992         * config/s390/constraints.md (jdd): New constraint.
33994 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
33996         PR target/89229
33997         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33998         upper 16 vector registers without TARGET_AVX512VL.
33999         (*movti_internal): Likewise.
34001 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
34003         PR rtl-optimization/89234
34004         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
34005         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
34006         (copy_reg_eh_region_note_backward): Likewise.
34008 2019-02-08  Richard Biener  <rguenther@suse.de>
34010         PR middle-end/89223
34011         * tree-data-ref.c (initialize_matrix_A): Fail if constant
34012         doesn't fit in HWI.
34013         (analyze_subscript_affine_affine): Handle failure from
34014         initialize_matrix_A.
34016 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
34018         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
34019         cfun everywhere.
34021 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
34023         PR tree-optimization/86637
34024         PR tree-optimization/89235
34025         * tree-vect-loop.c (optimize_mask_stores): Add an
34026         auto_purge_vect_location sentinel to ensure that vect_location is
34027         purged on exit.
34028         * tree-vectorizer.c
34029         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
34030         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
34031         to ensure that vect_location is purged on exit.
34032         (pass_slp_vectorize::execute): Likewise, replacing the manual
34033         reset.
34034         * tree-vectorizer.h (class auto_purge_vect_location): New class.
34036 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34038         * config/aarch64/iterators.md (max_opp): New code_attr.
34039         (USMAX): New code iterator.
34040         * config/aarch64/predicates.md (aarch64_smin): New predicate.
34041         (aarch64_smax): Likewise.
34042         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
34043         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
34044         MINUS (MAX MIN).
34046 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
34048         PR target/89229
34049         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
34050         for TARGET_AVX512VL.
34051         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
34053 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
34055         * config/s390/s390-builtin-types.def: Add new types.
34056         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
34057         (s390_vec_xlw4): Make the memory operand into a const pointer.
34058         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
34059         float.
34060         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
34061         a new vector type with the alignment of the scalar memory operand.
34063 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
34064             Jakub Jelinek  <jakub@redhat.com>
34066         PR bootstrap/88714
34067         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
34068         arm_count_ldrdstrd_insns): New declarations.
34069         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
34070         MINUS.
34071         (valid_operands_ldrd_strd): New function.
34072         (arm_count_ldrdstrd_insns): New function.
34073         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
34074         sets instead of single DImode set and define new insns to match this.
34076 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
34078         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
34079         Make it a C initializer.
34081 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
34083         PR/target 88850
34084         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
34086 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34088         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
34089         Use neon_dot<q> for type.
34090         (neon_<sup>dot_lane<vsi2qi>): Likewise.
34092 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34094         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
34095         Use neon_dot<q> for type.
34096         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
34097         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
34099 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
34101         PR rtl-optimization/89225
34102         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
34103         sizes check.
34105 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
34107         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
34108         after restoring registers saved to allocate the frame on Windows.
34110 2019-02-06  Richard Biener  <rguenther@suse.de>
34112         PR tree-optimization/89182
34113         * graphite.h (cached_scalar_evolution_in_region): Declare.
34114         * graphite.c (struct seir_cache_key): New.
34115         (struct sese_scev_hash): Likewise.
34116         (seir_cache): New global.
34117         (cached_scalar_evolution_in_region): New function.
34118         (graphite_transform_loops): Allocate and release seir_cache.
34119         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
34120         cached_scalar_evolution_in_region.
34121         * graphite-scop-detection.c (scop_detection::can_represent_loop):
34122         Simplify.
34123         (scop_detection::graphite_can_represent_expr: Use
34124         cached_scalar_evolution_in_region.
34125         (scop_detection::stmt_simple_for_scop_p): Likewise.
34126         (find_params_in_bb): Likewise.
34127         (gather_bbs::before_dom_children): Likewise.
34128         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
34129         (add_loop_constraints): Likewise.
34131 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
34133         PR middle-end/89210
34134         * fold-const-call.c (fold_const_vec_convert): Pass true as last
34135         operand to new_unary_operation only if both element types are integral
34136         and it isn't a widening conversion.  Return NULL_TREE if
34137         new_unary_operation failed.
34139 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
34141         PR target/88856
34142         * config/s390/s390.md: Remove load and test FP splitter.
34144 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
34146         PR target/89112
34147         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
34148         expand_compare_loop, expand_block_compare_gpr,
34149         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
34150         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
34151         #include "profile-count.h" and "predict.h" for types and functions
34152         needed to work with REG_BR_PROB notes.
34154 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
34156         PR target/89112
34157         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
34158         for the long branch case.
34160 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
34162         PR target/89188
34163         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
34164         can throw, non-call exceptions are enabled and we can't delete
34165         dead exceptions or alter cfg.  Set must_clean if
34166         delete_insn_and_edges returns true, don't set it blindly for calls.
34167         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
34169         PR rtl-optimization/89195
34170         * combine.c (make_extraction): For MEMs, don't extract bytes outside
34171         of the original MEM.
34173 2019-02-05  Martin Liska  <mliska@suse.cz>
34175         PR gcov-profile/89000
34176         * gcov.c (function_summary): Remove argument.
34177         (file_summary): New function.
34178         (print_usage): Replace tabs with spaces.
34179         (generate_results): Use new function file_summary.
34181 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
34183         PR target/89186
34184         * optabs.c (prepare_cmp_insn): Pass x and y to
34185         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
34187 2019-02-05  Richard Biener  <rguenther@suse.de>
34189         PR middle-end/89150
34190         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
34191         (struct bitmap_element): Drop chain_prev so we properly recurse on
34192         the prev member, supporting tree views.
34193         (struct bitmap_head): GTY skip the obstack member.
34195 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
34197         PR c/88698
34198         * doc/extend.texi (Vector Extensions): Add an example of using vector
34199         types together with x86 intrinsics.
34201 2019-02-04  Alan Modra  <amodra@gmail.com>
34203         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
34204         str[] size to 160, and comment.
34206 2019-02-04  Alan Modra  <amodra@gmail.com>
34208         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
34209         (rs6000_pltseq_template): Guard output of TLS markers with
34210         TARGET_TLS_MARKERS.
34211         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
34212         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
34213         to use inline PLT sequences.
34214         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
34215         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
34216         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
34218 2019-02-04  Martin Liska  <mliska@suse.cz>
34220         PR ipa/88985
34221         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
34222         out when ipa_fn_summaries does not contain entry for callee.
34224 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34226         * config/sparc/sparc.h: Remove superfluous blank lines.
34227         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
34228         (got_register_rtx): ...this.
34229         (sparc_got): Adjust to above renaming.
34230         (sparc_tls_got): Likewise.
34231         (sparc_delegitimize_address): Likewise.
34232         (sparc_output_mi_thunk): Likewise.
34233         (sparc_init_pic_reg): Likewise.
34234         (save_local_or_in_reg_p): Fix test on the GOT register.
34235         (USE_HIDDEN_LINKONCE): Move around.
34236         (get_pc_thunk_name): Likewise.
34237         (gen_load_pcrel_sym): Likewise.
34238         (load_got_register): Likewise.
34240 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
34242         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
34243         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
34245 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
34247         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
34248         into consideration.
34250 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
34252         * config.gcc (with_nds32_lib, glibc):
34253         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
34254         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
34255         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
34257 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34259         PR target/89071
34260         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
34261         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
34262         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
34263         (*rcpsf2_sse): Ditto.
34264         (*rsqrtsf2_sse): Ditto.
34265         (sse4_1_round<mode<2): Ditto.
34267 2019-02-03  Richard Biener  <rguenther@suse.de>
34269         PR debug/87295
34270         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
34271         orig.
34273 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
34275         PR middle-end/87887
34276         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
34277         Punt with warning on aggregate return or argument types.  Ignore
34278         type/mode checking for uniform arguments.
34280 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
34282         * combine.c (try_combine): Do not print "Can't combine" messages unless
34283         printing failed combination attempts.
34285 2019-02-01  Martin Jambor  <mjambor@suse.cz>
34287         PR hsa/87863
34288         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
34289         segment and global segment variables before making them static.
34291 2019-02-01  Martin Jambor  <mjambor@suse.cz>
34293         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
34294         missed optimization dump with dump_enabled_p.
34296 2019-02-01  Richard Biener  <rguenther@suse.de>
34298         PR middle-end/88597
34299         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
34300         the instantiate cache.
34301         (instantiate_scev_binary): Elide second operand procesing
34302         if equal to the first.
34303         * tree-chrec.c (chrec_contains_symbols): Add visited set.
34304         (chrec_contains_undetermined): Likewise.
34305         (tree_contains_chrecs): Likewise.
34307 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
34309         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
34311 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
34313         PR tree-optimization/89143
34314         * wide-int-range.h (wide_int_range_absu): Declare.
34315         * wide-int-range.cc (wide_int_range_absu): New function.
34316         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
34318         PR tree-optimization/88107
34319         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
34320         instead of assertion that eh_region_outermost is non-NULL, if it
34321         is NULL, set *ALL to true and return NULL.
34322         (move_sese_region_to_fn): Adjust caller, if all is set, call
34323         duplicate_eh_regions with NULL region.
34325 2019-02-01  Richard Biener  <rguenth@suse.de>
34327         PR rtl-optimization/88593
34328         * mode-switching.c (optimize_mode_switching): Free dominators before
34329         calling cleanup_cfg.
34331 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
34333         PR tree-optimization/88932
34334         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
34336 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
34338         PR middle-end/89137
34339         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
34340         bogus clang warning.
34342 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34344         PR target/89071
34345         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
34346         alternative to avoid partial SSE register stall for TARGET_AVX.
34347         (truncdfsf2): Ditto.
34348         (sse4_1_round<mode>2): Ditto.
34350 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
34352         PR tree-optimization/89008
34353         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
34354         process anything of the form X * 0.
34356 2019-01-31  Richard Biener  <rguenther@suse.de>
34358         PR tree-optimization/89135
34359         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
34360         with abnormal preds.
34362 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
34364         PR sanitizer/89124
34365         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
34366         always_inline callees into no_sanitize_address callers.
34368 2019-01-31  Richard Biener  <rguenther@suse.de>
34370         PR rtl-optimization/89115
34371         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
34373 2019-01-30  Martin Sebor  <msebor@redhat.com>
34375         PR other/89106
34376         * doc/extend.texi (cast to a union): Correct and expand.
34378 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34380         PR rtl-optimization/87246
34381         * lra-constraints.c (simplify_operand_subreg): Reload memory
34382         in subreg if the address became invalid.
34384 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
34386         PR target/87064
34387         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
34388         Disable for little-endian.
34390 2019-01-30  Richard Biener  <rguenther@suse.de>
34392         PR rtl-optimization/89115
34393         * opts.c (default_options_optimization): Reduce
34394         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
34395         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
34396         to the default.
34398 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
34400         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
34401         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
34402         type of vector element when vec_extract is implemented by direct
34403         move.
34405 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
34407         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
34409 2019-01-30  Richard Biener  <rguenther@suse.de>
34411         PR tree-optimization/89111
34412         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
34413         canonicalization to appropriately sized access types.
34415 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
34417         PR c++/89105
34418         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
34419         for arguments to functions that are TU-local and shouldn't be
34420         referenced by assembly.
34422 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
34424         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
34425         after '='.
34427 2019-01-29  Martin Sebor  <msebor@redhat.com>
34429         PR c/88956
34430         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
34432 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
34434         PR c++/66676
34435         PR ipa/89104
34436         * omp-simd-clone.c (simd_clone_clauses_extract)
34437         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
34438         OMP_CLAUSE_ALIGNED_ALIGNMENT.
34440 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
34442         * config.gcc: Force .init_array for ARC.
34444 2019-01-29  Richard Biener  <rguenther@suse.de>
34446         PR debug/87295
34447         * dwarf2out.c (collect_skeleton_dies): New helper.
34448         (copy_decls_for_unworthy_types): Call it.
34449         (build_abbrev_table): Assert we do not try to replace
34450         DW_AT_signature refs with local refs.
34452 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
34454         PR middle-end/89002
34455         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
34456         for lastprivate/linear IV, push gimplify context around gimplify_assign
34457         and, if it needed any temporaries, pop it into a gimple bind around the
34458         sequence.
34460 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34462         * common.opt (-Wattribute-alias): Remove "no-" from name.
34463         Make -Wattribute-alias command line option and
34464         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
34466 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
34468         PR target/89073
34469         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
34470         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
34471         x86 ISA options.
34472         (bmi2): Add missing @opindex.
34473         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
34474         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
34475         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
34476         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
34477         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
34478         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
34479         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
34480         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
34481         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
34482         xsavec, xsaveopt and xsaves options.
34484 2019-01-28  Richard Biener  <rguenther@suse.de>
34486         PR debug/89076
34487         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
34488         support removal.
34490 2019-01-28  Richard Biener  <rguenther@suse.de>
34492         PR tree-optimization/88739
34493         * tree-cfg.c (verify_types_in_gimple_reference): Verify
34494         BIT_FIELD_REFs only are applied to mode-precision operands
34495         when they are integral.
34496         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
34497         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
34498         BIT_FIELD_REFs of non-mode-precision integral operands.
34500 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
34502         PR target/87214
34503         * config/i386/sse.md
34504         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
34505         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
34506         first constants in pairs are multiples of 2.  Formatting fixes.
34507         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
34508         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
34509         first constants in each quadruple are multiples of 4.  Formatting fixes.
34511 2019-01-26  Martin Jambor  <mjambor@suse.cz>
34513         PR ipa/88933
34514         * tree-inline.c: Include tree-cfgcleanup.h.
34515         (delete_unreachable_blocks_update_callgraph): Move...
34516         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
34517         ...here, make externally visible, make second argument bool, adjust
34518         all callers.
34519         * tree-cfgcleanup.c: Include cgraph.h.
34520         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
34521         Declare.
34522         * ipa-prop.c: Include tree-cfgcleanup.h.
34523         (ipcp_transform_function): Call
34524         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
34526 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
34528         PR rtl-optimization/88846
34529         * ira.c (process_set_for_memref_referenced_p): New.
34530         (memref_referenced_p): Add new param.  Use
34531         process_set_for_memref_referenced_p.  Add new switch cases.
34532         (memref_used_between_p): Pass new arg to memref_referenced_p.
34534 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
34536         PR target/88469
34537         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
34538         argument ABI_BREAK.  Set to true if the calculated alignment has
34539         changed in gcc-9.  Check bit-fields for their base type alignment.
34540         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
34541         (aarch64_function_arg_boundary): Likewise.
34542         (aarch64_gimplify_va_arg_expr): Likewise.
34544 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
34546         PR middle-end/89037
34547         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
34548         instead of accessing TREE_INT_CST_ELT directly.
34550 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
34552         * doc/sourcebuild.texi (Environment attributes): Add fenv and
34553         fenv_exceptions description.
34555 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
34557         PR rtl-optimization/87763
34558         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
34559         Allow SUBREG when matching CC_NZmode compare.
34561 2019-01-25  Richard Biener  <rguenther@suse.de>
34563         PR tree-optimization/89049
34564         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
34565         Look at the pattern stmt to determine if the stmt is vectorized.
34567 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
34569         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
34570         (pred_mov<mode>): Handle all-register forms using both a new
34571         alternative and a split.
34573 2019-01-25  Richard Biener  <rguenther@suse.de>
34575         PR tree-optimization/86865
34576         * graphite-scop-detection.c (scop_detection::can_represent_loop):
34577         Reject non-do-while loops.
34579 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
34581         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
34582         * config/rs6000/constraints.md (Q constraint): Use REG_P.
34583         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
34584         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34585         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
34586         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34587         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
34588         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
34589         vlogical_operand, gpc_reg_operand, int_reg_operand,
34590         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
34591         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
34592         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
34593         (save_world_operation, restore_world_operation, lmw_operation,
34594         stmw_operation): Use MEM_P and REG_P.
34595         (tie_operand): Use MEM_P.
34596         (vrsave_operation, crsave_operation): Use REG_P.
34597         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
34598         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
34599         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
34600         (call_operand): Use HARD_REGISTER_P.
34601         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
34602         Use CONST_INT_P.
34603         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
34604         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
34605         quad_aligned_load_p, replace_swapped_aligned_store,
34606         recombine_lvx_pattern, replace_swapped_aligned_load,
34607         recombine_stvx_pattern): Use MEM_P.
34608         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
34609         Use MEM_P and SYMBOL_REF_P.
34610         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
34611         (insn_is_swappable_p): Use REG_P and MEM_P.
34612         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
34613         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
34614         Use CONST_INT_P.
34615         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
34616         Use CONST_DOUBLE_P.
34617         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
34618         CONST_WIDE_INT_P.
34619         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
34620         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
34621         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
34622         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
34623         reg_or_subregno:
34624         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34625         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
34626         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
34627         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
34628         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
34629         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
34630         rs6000_split_logical_di): Use CONST_INT_P.
34631         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
34632         REG_P and SYMBOL_REF_P.
34633         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
34634         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
34635         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
34636         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
34637         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
34638         (small_data_operand, print_operand_address): Use CONST_INT_P and
34639         SYMBOL_REF_P.
34640         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
34641         (rs6000_init_hard_regno_mode_ok, direct_move_p):
34642         Use HARD_REGISTER_NUM_P.
34643         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
34644         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
34645         SUBREG_P and SYMBOL_REF_P.
34646         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
34647         and HARD_REGISTER_NUM_P.
34648         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
34649         reg_or_subregno.
34650         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
34651         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
34652         MEM_P and REG_P.
34653         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
34654         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
34655         find_addr_reg): Use REG_P.
34656         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
34657         (rs6000_emit_le_vsx_move): Use SUBREG_P.
34658         (offsettable_ok_by_alignment, constant_pool_expr_p,
34659         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
34660         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
34661         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
34662         rs6000_assemble_integer, create_TOC_reference,
34663         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
34664         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
34665         (rs6000_split_vec_extract_var): Use reg_or_subregno.
34666         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34667         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34668         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34669         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34670         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
34671         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
34672         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
34673         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
34674         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
34675         and cbranch<mode>4): Use CONST_INT_P.
34676         (multiple define_splits): Use REG_P and SUBREG_P.
34677         (define_expands call, call_value): Use MEM_P.
34678         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
34679         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
34680         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
34681         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
34682         and HARD_REGISTER_NUM_P.
34683         (multiple define_splits): Use HARD_REGISTER_NUM_P.
34685 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34687         PR rtl-optimization/88948
34688         * rtl.h (prepare_copy_insn): New prototype.
34689         * gcse.c (prepare_copy_insn): New function, split out from
34690         process_insert_insn.
34691         (process_insert_insn): Use prepare_copy_insn.
34692         * store-motion.c (replace_store_insn): Use prepare_copy_insn
34693         instead of gen_move_insn.
34695 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
34697         PR debug/89006
34698         * config/i386/i386.c (ix86_pic_register_p): Return true for
34699         UNSPEC_SET_GOT too.
34701         PR tree-optimization/88964
34702         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
34703         punt if HONOR_SNANS (chrec).
34705         PR middle-end/89015
34706         * tree-nested.c (convert_nonlocal_reference_stmt,
34707         convert_local_reference_stmt, convert_tramp_reference_stmt,
34708         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
34709         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
34710         or GIMPLE_OMP_TASK.
34712         PR tree-optimization/89027
34713         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
34714         for "omp simd array" variables.
34716 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
34718         PR target/88469
34719         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
34720         force the alignment of m_val.
34722 2019-01-24  Richard Biener  <rguenther@suse.de>
34724         PR lto/87187
34725         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
34726         When in "legacy" debug mode make sure to reset self-origins.
34728 2019-01-24  Martin Liska  <mliska@suse.cz>
34730         PR gcov-profile/88994
34731         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
34732         result will be always smaller or equal to the original.
34733         * gcov.c (mangle_name): Fix else branch where we should
34734         also copy to PTR and shift the pointer.
34736 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
34738         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
34739         * vr-values.c (find_case_label_ranges): Fix a comment typo.
34741 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
34743         * common/config/i386/i386-common.c
34744         (OPTION_MASK_ISA_ENQCMD_SET,
34745         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
34746         (ix86_handle_option): Handle -menqcmd.
34747         * config.gcc (enqcmdintrin.h): New header file.
34748         * config/i386/cpuid.h (bit_ENQCMD): New bit.
34749         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
34750         -menqcmd.
34751         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
34752         function type.
34753         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
34754         __builtin_ia32_enqcmds): New builtins.
34755         * config/i386/i386-c.c (__ENQCMD__): New macro.
34756         * config/i386/i386-option.c (ix86_target_string): Add
34757         -menqcmd.
34758         (ix86_valid_target_attribute_inner_p): Likewise.
34759         * config/i386/i386-expand.c
34760         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
34761         IX86_BUILTIN_ENQCMDS.
34762         * config/i386/i386.h (TARGET_ENQCMD): New.
34763         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
34764         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
34765         (movdir64b_<mode>): Parameterize to enable share expansion code
34766         with ENQCMD in function ix86_expand_builtin.
34767         * config/i386/i386.opt: Add -menqcmd.
34768         * config/i386/immintrin.h: Include enqcmdintrin.h.
34769         * config/i386/enqcmdintrin.h: New intrinsic file.
34770         * doc/invoke.texi: Add -menqcmd.
34772 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
34773             Steve Ellcey  <sellcey@marvell.com>
34775         PR target/85711
34776         * recog.c (address_operand): Return false on wrong mode for address.
34777         (constrain_operands): Check for mode with 'p' constraint.
34779 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34781         PR target/88998
34782         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
34783         Disparage MMX alternative.
34784         (sse2_cvtpd2pi): Ditto.
34785         (sse2_cvttpd2pi): Ditto.
34787 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
34789         PR driver/89014
34790         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
34791         use-after-free of the result of
34792         aarch64_get_extension_string_for_isa_flags.
34794 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34796         PR c/44715
34797         * doc/extend.texi: Document break and continue behavior in
34798         statement expressions.
34800 2019-01-23  Richard Biener  <rguenther@suse.de>
34802         PR tree-optimization/89008
34803         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
34804         not leave another stray operand.
34806 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34808         * BASE-VER: Bump to 9.0.1.
34810 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
34812         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34813         thunk that returns by reference, use the type of the return object
34814         of the thunk instead of that of the alias to build the dereference.
34816 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
34818         * config/arc/atomic.md: Add operand to DMB instruction.
34820 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
34822         PR tree-optimization/88964
34823         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34824         build_zero_cst instead of build_int_cst.  Return false for loop
34825         invariants which honor signed zeros.
34827 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
34829         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34831 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34833         PR target/88965
34834         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34835         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34836         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34838         PR middle-end/88968
34839         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34840         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34842         PR target/87064
34843         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34844         Disable for little endian.
34846 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34848         PR target/88469
34849         * config/arm/arm.c (arm_needs_double_word_align): Check
34850         DECL_BIT_FIELD_TYPE.
34852 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
34853             H.J. Lu  <hongjiu.lu@intel.com>
34855         PR target/88909
34856         * config/i386/i386-builtin.def: Add mask2 to all builtin
34857         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34858         SPECIAL_ARGS.
34859         * config/i386/i386.c (BDESC): Add mask2 to the definition.
34860         (BDESC_FIRST): Likewise.
34861         (define_builtin): Add an argument for mask2.  Updated to handle
34862         both ix86_isa_flags and ix86_isa_flags2.
34863         (define_builtin_const): Likewise.
34864         (define_builtin_pure): Likewise.
34865         (define_builtin2): Deleted.
34866         (define_builtin_const2): Likewise.
34867         (builtin_description): Add a member, mask2.
34868         (bdesc_*): Add mask2 to builtin initializations.
34869         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34870         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
34871         support.
34872         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34874 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
34876         PR target/88954
34877         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34878         noplt attribute.
34880 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
34882         PR target/88469
34883         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34884         alignment is dominated by a bitfield with 64-bit aligned base type.
34885         (arm_function_arg): Emit a warning if the alignment has changed since
34886         earlier GCC releases.
34887         (arm_function_arg_boundary): Likewise.
34888         (arm_setup_incoming_varargs): Likewise.
34890 2019-01-22  Richard Biener  <rguenther@suse.de>
34892         PR tree-optimization/88862
34893         * graphite-scop-detection.c
34894         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34896 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
34898         * doc/extend.tex (AMD GCN Function Attributes): New section.
34899         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34900         * doc/invoke.texi (AMD GCN Options): New section.
34901         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34903 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34905         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34906         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34908 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
34910         PR tree-optimization/88044
34911         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34912         is false in the first iteration, but !every_iteration, return false
34913         instead of true with niter->niter zero.
34915         PR rtl-optimization/88904
34916         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34917         any nonequal registers before processing BB_END (b).
34919         PR target/88905
34920         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34921         GET_MODE (op0).
34922         (expand_binop_directly, expand_doubleword_clz,
34923         expand_doubleword_popcount, expand_ctz, expand_ffs,
34924         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34926         PR rtl-optimization/49429
34927         PR target/49454
34928         PR rtl-optimization/86334
34929         PR target/88906
34930         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34931         addressable from here...
34932         (emit_block_op_via_libcall): ... to here.
34934 2019-01-22  Richard Biener  <rguenther@suse.de>
34936         * tree-vect-loop.c (vect_analyze_loop_operations): Use
34937         auto_vec for cost vector to fix memleak.
34938         (vectorize_fold_left_reduction): Properly gather SLP defs.
34939         (vectorizable_comparison): Do not swap operands to properly
34940         gather SLP defs.
34942 2019-01-22  Alan Modra  <amodra@gmail.com>
34944         PR target/88614
34945         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34946         stays a reg.  Allow a const_int.
34947         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34948         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34949         (IS_NOMARK_TLSGETADDR): Define.
34950         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34951         (rs6000_output_tlsargs): New function.
34952         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34953         __tls_get_addr call takes an arg.
34954         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34955         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34956         delete split..
34957         (call_value_nonlocal_sysv): ..or here, delete split.
34958         (tls_gdld_nomark): Delete.
34959         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34960         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
34961         (call_value_nonlocal_sysv): Likewise.
34962         (call_value_nonlocal_sysv_secure): Likewise.
34963         (call_value_nonlocal_aix): Likewise.
34964         (call_value_indirect_aix): Likewise.
34965         (call_value_indirect_elfv2): Likewise.
34966         (call_value_local32, call_value_local64): Disable for no-mark tls.
34967         (call_value_local_aix): Likewise.
34969 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
34971         PR target/88938
34972         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34973         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34975 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
34977         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34978         string contents as hash_map keys.
34980 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34982         PR c/88928
34983         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34984         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
34985         instead of TYPE_ALIGN.
34986         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34987         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
34988         pointer from TYPE_STUB_DECL.
34990 2019-01-21  Richard Biener  <rguenther@suse.de>
34992         PR tree-optimization/88934
34993         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34994         at the possibly non-constant operand.
34995         (vect_get_constant_vectors): Adjust.
34997 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
34999         PR target/71659
35000         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
35001         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
35002         instead of _X86INTRIN_H_INCLUDED.
35003         * onfig/i386/clwbintrin.h: Likewise.
35004         * config/i386/pkuintrin.h: Likewise.
35005         * config/i386/prfchwintrin.h: Likewise.
35006         * config/i386/rdseedintrin.h: Likewise.
35007         * config/i386/wbnoinvdintrin.h: Likewise.
35008         * config/i386/xsavecintrin.h: Likewise.
35009         * config/i386/xsavesintrin.h: Likewise.
35010         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
35011         * config/i386/xsaveintrin.h: Likewise.
35012         * config/i386/xsaveoptintrin.h: Likewise.
35013         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
35014         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
35015         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
35016         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
35017         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
35018         * config/i386/immintrin.h: Here.
35020 2019-01-20  Martin Jambor  <mjambor@suse.cz>
35022         PR ipa/87615
35023         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
35024         with aa_walk_budget.
35025         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
35026         aa_walk_budget_p parameter.
35027         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
35028         walk.  Updated all callers.
35029         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
35030         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
35031         unmodified_parm.
35032         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
35033         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
35034         and to unmodified_parm.
35035         (phi_result_unknown_predicate): New parameter fbi, removed parameter
35036         info, updated call to will_be_nonconstant_expr_predicate.
35037         (param_change_prob): New parameter fbi, limit AA walking.
35038         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
35039         calls to various above functions.
35040         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
35041         parameter.  Use it to limit AA walking.
35042         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
35043         fbi, limit AA walk.
35044         (detect_type_change): New parameter fbi, pass it on to
35045         detect_type_change_from_memory_writes.
35046         (detect_type_change_ssa): Likewise.
35047         (aa_overwalked): Removed.
35048         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
35049         accordingly, adjust to the neew AA limiting scheme.
35050         (parm_ref_data_preserved_p): Likewise.
35051         (ipa_compute_jump_functions_for_edge): Adjust call to
35052         get_dynamic_type.
35053         (ipa_analyze_call_uses): Likewise.
35054         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
35055         (ipa_analyze_node): Initialize aa_walk_budget.
35056         (ipcp_transform_function): Likewise.
35057         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
35058         to get_dynamic_type.
35060 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
35062         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
35063         outside of #if CHECKING_P code.
35065 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
35067         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
35068         New function, split out from...
35069         (loop_versioning::analyze_stride): ...here.
35070         (loop_versioning::find_per_loop_multiplication): Use gassign.
35071         (loop_versioning::analyze_term_using_scevs): Return a success code.
35072         (loop_versioning::analyze_arbitrary_term): New function.
35073         (loop_versioning::analyze_address_fragment): Use
35074         analyze_arbitrary_term if all else fails.
35076 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
35078         PR target/88892
35079         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
35080         operands.
35082 2019-01-18  Richard Biener  <rguenther@suse.de>
35084         PR tree-optimization/88903
35085         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
35086         scalar stmts a SLP shift amount is composed of when detecting
35087         shifts by scalars.
35089 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
35091         PR target/88799
35092         * config/arm/arm-cpus.in (mp): New feature.
35093         (sec): New feature.
35094         (fgroup ARMv7ve): Add mp and sec features.
35095         (arch armv7-a): Add options to allow mp and sec extensions.
35096         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
35097         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
35098         extenstions to the base architecture.
35099         (cpu cortex-a8): Add sec extension to the base architecture.
35100         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
35101         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
35102         variants down to the base v7-a varaint.
35103         * config/arm/t-multilib (v7_a_arch_variants): New variable.
35104         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
35105         of permitted extensions for -march=armv7-a and for
35106         -mcpu=generic-armv7-a.
35108 2019-01-18  Martin Liska  <mliska@suse.cz>
35110         * params.def: Fix comment.
35111         * tree-profile.c (gimple_init_gcov_profiler): Bump function
35112         name.
35113         (gimple_gen_ic_func_profiler): Likewise.
35115 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35117         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
35118         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
35119         and put in error checks for stack protector guard options.
35120         (aarch64_stack_protect_guard): New.
35121         (TARGET_STACK_PROTECT_GUARD): Define.
35122         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
35123         (reg_stack_protect_address<mode>): New.
35124         (stack_protect_set): Adjust for SSP_GLOBAL.
35125         (stack_protect_test): Likewise.
35126         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
35127         (-mstack-protector-guard): Likewise.
35128         (-mstack-protector-guard-offset): Likewise.
35130 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
35132         PR tree-optimization/86214
35133         * tree-inline.h (struct copy_body_data): Add
35134         add_clobbers_to_eh_landing_pads member.
35135         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
35136         (copy_edges_for_bb): Call it if EH edge destination is <
35137         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
35138         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
35139         if flag_stack_reuse != SR_NONE and clear it afterwards.
35141 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
35143         PR target/85596
35144         * doc/install.texi (with-multilib-list): Document for aarch64.
35146 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
35148         PR target/88734
35149         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
35150         (("..."))) with ("...").
35152 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35154         * doc/extend.texi (Built-in Functions for Memory Model Aware
35155         Atomic Operations): Document atomic fetch and nand.
35157 2019-01-18  Martin Liska  <mliska@suse.cz>
35158             Richard Biener  <rguenther@suse.de>
35160         PR middle-end/88587
35161         * cgraph.h (create_version_clone_with_body): Add new argument
35162         with attributes.
35163         * cgraphclones.c (cgraph_node::create_version_clone): Add
35164         DECL_ATTRIBUTES to a newly created decl.  And call
35165         valid_attribute_p so that proper cl_target_optimization_node
35166         is set for the newly created declaration.
35167         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
35168         for declaration.
35169         (expand_target_clones): Do not call valid_attribute_p, it must
35170         be already done.
35171         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
35172         vector types.
35174 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
35176         PR target/88734
35177         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
35178         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
35179         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
35181 2019-01-17  Martin Sebor  <msebor@redhat.com>
35183         PR middle-end/88273
35184         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
35185         Handle anti-ranges the same as no range at all.
35187 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
35189         * config/aarch64/aarch64.c (cgraph.h): New include.
35190         (intl.h): New include.
35191         (supported_simd_type): New function.
35192         (currently_supported_simd_type): Ditto.
35193         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
35194         (aarch64_simd_clone_adjust): Ditto.
35195         (aarch64_simd_clone_usable): Ditto.
35196         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
35197         (TARGET_SIMD_CLONE_ADJUST): Ditto.
35198         (TARGET_SIMD_CLONE_USABLE): Ditto.
35199         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
35200         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
35201         call.
35203 2019-01-17  Martin Sebor  <msebor@redhat.com>
35205         PR tree-optimization/88800
35206         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
35207         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
35208         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
35209         redundant argument.  Add new argument and issue diagnostics under
35210         its control.  Detect out-of-bounds access even with warnings
35211         disabled.
35212         (check_bounds_or_overlap): Change return type.  Add argument.
35213         (wrestrict_dom_walker::check_call): Adjust.
35214         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
35215         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
35216         check_bounds_or_overlap's return value.
35217         (handle_builtin_stxncpy): Same.
35218         (handle_builtin_strcat): Same.
35220 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35221             Kwok Cheung Yeung  <kcy@codesourcery.com>
35222             Julian Brown  <julian@codesourcery.com>
35223             Tom de Vries  <tom@codesourcery.com>
35225         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
35227 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35229         * doc/sourcebuild.texi: Document dg-require-effective-target
35230         llvm_binutils and offload_gcn.
35232 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35233             Kwok Cheung Yeung  <kcy@codesourcery.com>
35234             Julian Brown  <julian@codesourcery.com>
35235             Tom de Vries  <tom@codesourcery.com>
35237         * doc/sourcebuild.texi: Document dg-required-effective-target
35238         exceptions.
35240 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35241             Kwok Cheung Yeung  <kcy@codesourcery.com>
35242             Julian Brown  <julian@codesourcery.com>
35243             Tom de Vries  <tom@codesourcery.com>
35244             Jan Hubicka  <hubicka@ucw.cz>
35245             Martin Jambor  <mjambor@suse.cz>
35247         * config.gcc: Add amdgcn*-*-amdhsa configuration.
35248         * configure.ac: Check for dlopen.
35249         * configure: Regenerate.
35251 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35252             Kwok Cheung Yeung  <kcy@codesourcery.com>
35253             Julian Brown  <julian@codesourcery.com>
35254             Tom de Vries  <tom@codesourcery.com>
35255             Jan Hubicka  <hubicka@ucw.cz>
35256             Martin Jambor  <mjambor@suse.cz>
35258         * common/config/gcn/gcn-common.c: New file.
35259         * config/gcn/driver-gcn.c: New file.
35260         * config/gcn/gcn-builtins.def: New file.
35261         * config/gcn/gcn-hsa.h: New file.
35262         * config/gcn/gcn-modes.def: New file.
35263         * config/gcn/gcn-opts.h: New file.
35264         * config/gcn/gcn-passes.def: New file.
35265         * config/gcn/gcn-protos.h: New file.
35266         * config/gcn/gcn-run.c: New file.
35267         * config/gcn/gcn-tree.c: New file.
35268         * config/gcn/gcn.c: New file.
35269         * config/gcn/gcn.h: New file.
35270         * config/gcn/gcn.opt: New file.
35271         * config/gcn/t-gcn-hsa: New file.
35273 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
35274             Kwok Cheung Yeung  <kcy@codesourcery.com>
35275             Julian Brown  <julian@codesourcery.com>
35276             Tom de Vries  <tom@codesourcery.com>
35277             Jan Hubicka  <hubicka@ucw.cz>
35278             Martin Jambor  <mjambor@suse.cz>
35280         * config/gcn/constraints.md: New file.
35281         * config/gcn/gcn-valu.md: New file.
35282         * config/gcn/gcn.md: New file.
35283         * config/gcn/predicates.md: New file.
35285 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
35287         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
35288         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
35289         (stmt_uses_0_or_null_in_undefined_way): Likewise.
35290         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
35292 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
35294         PR target/88851
35295         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
35296         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
35297         it and document registers.
35299 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35301         * config/aarch64/aarch64.c (ares_tunings): Define.
35302         * config/aarch64/aarch64-cores.def (ares): Use the above.
35304 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
35306         PR target/88794
35307         Revert:
35308         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
35310         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
35311         (_mm512_fixupimm_round_pd): Update parameters and builtin.
35312         (_mm512_maskz_fixupimm_round_pd): Ditto.
35313         (_mm512_fixupimm_round_ps): Ditto.
35314         (_mm512_maskz_fixupimm_round_ps): Ditto.
35315         (_mm_fixupimm_round_sd): Ditto.
35316         (_mm_maskz_fixupimm_round_sd): Ditto.
35317         (_mm_fixupimm_round_ss): Ditto.
35318         (_mm_maskz_fixupimm_round_ss): Ditto.
35319         (_mm512_fixupimm_pd): Ditto.
35320         (_mm512_maskz_fixupimm_pd): Ditto.
35321         (_mm512_fixupimm_ps): Ditto.
35322         (_mm512_maskz_fixupimm_ps): Ditto.
35323         (_mm_fixupimm_sd): Ditto.
35324         (_mm_maskz_fixupimm_sd): Ditto.
35325         (_mm_fixupimm_ss): Ditto.
35326         (_mm_maskz_fixupimm_ss): Ditto.
35327         (_mm512_mask_fixupimm_round_pd): Update builtin.
35328         (_mm512_mask_fixupimm_round_ps): Ditto.
35329         (_mm_mask_fixupimm_round_sd): Ditto.
35330         (_mm_mask_fixupimm_round_ss): Ditto.
35331         (_mm512_mask_fixupimm_pd): Ditto.
35332         (_mm512_mask_fixupimm_ps): Ditto.
35333         (_mm_mask_fixupimm_sd): Ditto.
35334         (_mm_mask_fixupimm_ss): Ditto.
35335         * config/i386/avx512vlintrin.h:
35336         (_mm256_fixupimm_pd): Update parameters and builtin.
35337         (_mm256_maskz_fixupimm_pd): Ditto.
35338         (_mm256_fixupimm_ps): Ditto.
35339         (_mm256_maskz_fixupimm_ps): Ditto.
35340         (_mm_fixupimm_pd): Ditto.
35341         (_mm_maskz_fixupimm_pd): Ditto.
35342         (_mm_fixupimm_ps): Ditto.
35343         (_mm_maskz_fixupimm_ps): Ditto.
35344         (_mm256_mask_fixupimm_pd): Update builtin.
35345         (_mm256_mask_fixupimm_ps): Ditto.
35346         (_mm_mask_fixupimm_pd): Ditto.
35347         (_mm_mask_fixupimm_ps): Ditto.
35348         * config/i386/i386-builtin-types.def: Add new types and remove
35349         useless ones.
35350         * config/i386/i386-builtin.def: Update builtin definitions.
35351         * config/i386/i386.c: Handle new builtin types and remove useless ones.
35352         * config/i386/sse.md: Update VFIXUPIMM* patterns.
35353         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35354         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35355         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
35356         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35357         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35358         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
35359         * config/i386/subst.md:
35360         (round_saeonly_sd_mask_operand4): Add new subst_attr.
35361         (round_saeonly_sd_mask_op4): Ditto.
35362         (round_saeonly_expand_operand5): Ditto.
35363         (round_saeonly_expand): Update.
35365 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
35367         PR target/88794
35368         Revert:
35369         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
35371         * config/i386/sse.md: Combine VFIXUPIMM* patterns
35372         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35373         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35374         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
35375         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35376         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35377         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
35379 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
35381         PR target/88794
35382         Revert:
35383         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
35385         PR target/88489
35386         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
35387         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
35388         instead of UNSPEC_FIXUPIMM.
35390 2019-01-17  Richard Biener  <rguenther@suse.de>
35392         PR lto/86736
35393         * dwarf2out.c (want_pubnames): Never generate pubnames sections
35394         and friends for the LTO part of debug info.
35396 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
35398         PR tree-optimization/86214
35399         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
35400         if x == y.
35402         PR rtl-optimization/88870
35403         * dce.c (deletable_insn_p): Never delete const/pure calls that can
35404         throw if we can't alter the cfg or delete dead exceptions.
35405         (mark_insn): Don't call find_call_stack_args for such calls.
35407 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
35409         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
35410         prototypes for vec_st.
35411         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
35412         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
35413         mainly on signed/unsigned long long and double.
35415 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
35417         PR target/88861
35418         * combine.c (delete_noop_moves): Convert to "bool" return,
35419         returning true if any edges are eliminated.
35420         (combine_instructions): Also return true if delete_noop_moves
35421         returns true.
35423 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
35425         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
35426         correct max nunits for endian swap.
35427         (aarch64_expand_fcmla_builtin): Correct subreg code.
35428         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35429         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
35430         lane endianness.
35432 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
35434         * config/alpha/alpha.c (alpha_gimplify_va_arg):
35435         Handle split indirect COMPLEX_TYPE arguments.
35437 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
35439         PR target/86891
35440         * config/aarch64/aarch64-modes.def: Add comment about how the carry
35441         bit is set by add and compare.
35442         (CC_ADC): New CC_MODE.
35443         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
35444         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
35445         comparison.  Add detection for CC_ADCmode.
35446         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
35447         CC_ADCmode.
35448         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
35449         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
35450         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
35451         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
35452         to eliminate the need for zero-extending the operands.
35453         (add<mode>3_compareC_imm): Delete.  Merge into ...
35454         (add<mode>3_compareC): ... this.  Restructure the comparison to
35455         eliminate the need for zero-extending the operands.
35456         (add<mode>3_carryin): Use LTU for the overflow detection.
35457         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
35458         Reexpress comparison for overflow.
35459         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
35460         (add<mode>3_carryinC): Likewise.
35461         (add<mode>3_carryinV): Use LTU for carry between partials.
35462         * config/aarch64/predicates.md (aarch64_carry_operation): Update
35463         handling of CC_Cmode and add CC_ADCmode.
35464         (aarch64_borrow_operation): Likewise.
35466 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
35468         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
35469         Remove patternmode.
35470         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
35471         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35472         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
35473         Remove endianness conversion.
35475 2019-01-16  Martin Liska  <mliska@suse.cz>
35477         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
35478         for GCC driver.
35479         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
35480         a new argument.
35481         * gcc.c (add_sysrooted_hdrs_prefix): New function.
35482         (path_prefix_reset): Move up in the source file.
35483         (find_fortran_preinclude_file): Make complex search for the
35484         fortran header files.
35486 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
35488         * godump.c (go_output_typedef): When outputting a typedef, refer
35489         to the underlying type by its name and not its structure.
35491 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
35493         PR c++/88795
35494         * tree.c (build_function_type): Assert that arg_types is not
35495         error_mark_node.
35497 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
35499         PR inline-asm/52813
35500         * doc/extend.texi: Document that listing the stack pointer in the
35501         clobber list of an asm is a deprecated feature.
35502         * common.opt (Wdeprecated): Moved from c-family/c.opt.
35503         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
35504         warning instead of an error for clobbers of the stack pointer.
35505         Add a note explaining why.
35507 2019-01-15  Richard Biener  <rguenther@suse.de>
35509         PR debug/88046
35510         * dwarf2out.c (gen_member_die): Do not generate inheritance
35511         DIEs late.
35513 2019-01-15  Richard Biener  <rguenther@suse.de>
35515         PR tree-optimization/88855
35516         * tree-if-conv.c (combine_blocks): Collect
35517         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
35519 2019-01-15  Tom de Vries  <tdevries@suse.de>
35521         PR target/80547
35522         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
35523         lhs == NULL_TREE for gang-level reduction.
35525 2019-01-15  Richard Biener  <rguenther@suse.de>
35526             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35528         PR ipa/88788
35529         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
35530         return true if SSA_NAME is already marked in visited bitmap.
35531         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
35533 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
35535         PR tree-optimization/88775
35536         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
35537         equal == 0 equality pointer comparisons some more if compared in
35538         integral types and either one points to an automatic var and the
35539         other to a global, or we can prove at least one points to the middle
35540         or both point to start or both point to end.
35542 2019-01-14  Andi Kleen  <ak@linux.intel.com>
35544         * Makefile.in: Lower autofdo sampling rate by 10x.
35545         * Makefile.tpl: Dito.
35547 2019-01-14  Tom Honermann  <tom@honermann.net>
35549         * defaults.h: Define CHAR8_TYPE.
35551 2019-01-14  Martin Sebor  <msebor@redhat.com>
35553         PR target/88638
35554         * doc/extend.texi (Darwin Format Checks): Clarify.
35556 2019-01-14  Richard Biener  <rguenther@suse.de>
35558         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
35559         whether we are in (simplify ...) or (match ...) context.
35561 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
35563         PR rtl-optimization/88796
35564         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
35565         * cfgexpand.c (stack_protect_prologue): Initialize
35566         crtl->stack_protect_guard_decl.
35567         * function.c (stack_protect_epilogue): Use it instead of calling
35568         targetm.stack_protect_guard again.
35569         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
35570         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
35571         crtl->stack_protect_guard_decl.
35572         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
35573         on the returned MEM_EXPR.
35575 2019-01-12  Tom de Vries  <tdevries@suse.de>
35577         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
35578         vector length using -fopenacc-dim.
35580 2019-01-12  Tom de Vries  <tdevries@suse.de>
35582         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
35583         lengths into account.
35585 2019-01-12  Svante Signell  <svante.signell@gmail.com>
35587         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
35588         (TARGET_CAN_SPLIT_STACK): Define.
35589         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
35591 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
35593         * params.def (inline-unit-growth): Set to 40.
35595 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
35597         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
35599 2019-01-12  Tom de Vries  <tdevries@suse.de>
35601         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
35602         region calling vector-partitionable routine, set default_vector_length
35603         to WARP_SIZE.
35605 2019-01-12  Tom de Vries  <tdevries@suse.de>
35607         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
35608         variable default_vector_length.
35610 2019-01-12  Tom de Vries  <tdevries@suse.de>
35612         PR middle-end/88703
35613         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
35614         from oacc_default_dims, as oacc_validate_dims would do it, and apply
35615         dimensions limits.
35617 2019-01-12  Tom de Vries  <tdevries@suse.de>
35619         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
35620         (nvptx_goacc_validate_dims): Add used parameter.
35621         * doc/tm.texi: Regenerate.
35622         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
35623         argument to call to targetm.goacc.validate_dims.
35624         (default_goacc_validate_dims): Add used
35625         parameter.
35626         * target.def (validate_dims): Add used parameter in DEFHOOK.
35627         * targhooks.h (default_goacc_validate_dims): Add used parameter.
35629 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35631         PR middle-end/85956
35632         PR lto/88733
35633         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
35634         field.
35635         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
35636         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
35637         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
35638         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
35640 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
35642         PR rtl-optimization/87305
35643         * lra-assigns.c
35644         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
35645         for little endian pseudos used as paradoxical subreg.
35647 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35649         PR tree-optimization/88693
35650         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
35651         for STRING_CSTs that don't contain any NUL characters in the first
35652         TREE_STRING_LENGTH bytes.
35654 2019-01-11  Alan Modra  <amodra@gmail.com>
35656         PR 88777
35657         PR 88614
35658         * genattrtab.c (min_fn): Don't translate values.
35659         (min_attr_value): Return INT_MAX when the value can't be calculated.
35660         Return minimum among any values that can be calculated.
35661         (max_attr_value): Adjust.
35663 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35665         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
35667 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35669         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35670         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
35671         (aarch64_return_call_with_max_clobbers): New function.
35672         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
35673         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
35674         argument.
35675         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
35676         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
35677         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
35678         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
35679         * cselib.c (cselib_process_insn): Add argument to
35680         targetm.hard_regno_call_part_clobbered call.
35681         * ira-conflicts.c (ira_build_conflicts): Ditto.
35682         * ira-costs.c (ira_tune_allocno_costs): Ditto.
35683         * lra-constraints.c (inherit_reload_reg): Ditto.
35684         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
35685         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
35686         argument.  Call targetm.return_call_with_max_clobbers.
35687         Add argument to targetm.hard_regno_call_part_clobbered call.
35688         (calls_have_same_clobbers_p): New function.
35689         (process_bb_lives): Add call_insn and last_call_insn variables.
35690         Pass call_insn to check_pseudos_live_through_calls.
35691         Modify if stmt to check targetm.return_call_with_max_clobbers.
35692         Update setting of flush variable.
35693         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
35694         to false.
35695         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
35696         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
35697         targetm.hard_regno_call_part_clobbered call.
35698         * reginfo.c (choose_hard_reg_mode): Ditto.
35699         * regrename.c (check_new_reg_p): Ditto.
35700         * reload.c (find_equiv_reg): Ditto.
35701         * reload1.c (emit_reload_insns): Ditto.
35702         * sched-deps.c (deps_analyze_insn): Ditto.
35703         * sel-sched.c (init_regs_for_mode): Ditto.
35704         (mark_unavailable_hard_regs): Ditto.
35705         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
35706         * target.def (hard_regno_call_part_clobbered): Add insn argument.
35707         (return_call_with_max_clobbers): New target function.
35708         * doc/tm.texi: Regenerate.
35709         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
35710         * hooks.c (hook_bool_uint_mode_false): Change to
35711         hook_bool_insn_uint_mode_false.
35712         * hooks.h (hook_bool_uint_mode_false): Ditto.
35714 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
35716         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35717         (aarch64_remove_extra_call_preserved_regs): New function.
35718         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
35719         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
35720         * doc/tm.texi: Regenerate.
35721         * final.c (get_call_reg_set_usage): Call new hook.
35722         * target.def (remove_extra_call_preserved_regs): New hook.
35723         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
35724         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
35726 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
35728         PR bootstrap/88714
35729         * passes.c (finish_optimization_passes): Call print_combine_total_stats
35730         inside of pass_combine_1 dump rather than pass_profile_1.
35732 2019-01-11  Tom de Vries  <tdevries@suse.de>
35734         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
35735         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
35736         (PTX_NUM_PER_WORKER_BARRIERS): Define.
35737         (nvptx_apply_dim_limits): Prevent vector_length 64 and
35738         num_workers 16.
35740 2019-01-11  Tom de Vries  <tdevries@suse.de>
35742         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
35744 2019-01-11  Jan Beulich  <jbeulich@suse.com>
35746         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
35747         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
35748         sse2_cvtsi2sd): Add {l}.
35749         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
35750         syntax.
35752 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35754         PR target/88785
35755         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
35756         define_expand.
35757         (*float<floatunssuffix>v2div2sf2): New define_insn.
35758         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
35759         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
35760         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
35761         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
35762         match_operands with "const0_operand" "C".
35764 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35766         * config/aarch64/aarch64-builtins.c
35767         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
35768         (aarch64_init_simd_builtins): ...Here
35770 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35772         PR rtl-optimization/87305
35773         * lra-assigns.c
35774         (setup_live_pseudos_and_spill_after_risky_transforms): Check
35775         allocation for big endian pseudos used as paradoxical subregs and
35776         spill them if it is wrong.
35777         * lra-constraints.c (lra_constraints): Add a comment.
35779 2019-01-10  Richard Biener  <rguenther@suse.de>
35781         PR tree-optimization/88792
35782         * tree-ssa-pre.c (get_representative_for): Do not return a
35783         value-number here.
35785 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35787         PR middle-end/84877
35788         PR bootstrap/88450
35789         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
35790         (assign_parm_setup_block): Do the argument slot realignment here
35791         instead.
35793 2019-01-10  Stefan Agner  <stefan@agner.ch>
35795         PR target/88648
35796         * config/arm/arm.c (arm_option_override_internal): Force
35797         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
35799 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
35801         PR c/88568
35802         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
35803         DECL_EXTERNAL.
35805 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35807         * config/arm/arm-builtins.c
35808         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35809         (MAC_LANE_PAIR_QUALIFIERS): New.
35810         (arm_expand_builtin_args): Use it.
35811         (arm_expand_builtin_1): Likewise.
35812         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35813         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35814         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35815         * config/arm/arm_neon.h:
35816         (vcadd_rot90_f16): New.
35817         (vcaddq_rot90_f16): New.
35818         (vcadd_rot270_f16): New.
35819         (vcaddq_rot270_f16): New.
35820         (vcmla_f16): New.
35821         (vcmlaq_f16): New.
35822         (vcmla_lane_f16): New.
35823         (vcmla_laneq_f16): New.
35824         (vcmlaq_lane_f16): New.
35825         (vcmlaq_laneq_f16): New.
35826         (vcmla_rot90_f16): New.
35827         (vcmlaq_rot90_f16): New.
35828         (vcmla_rot90_lane_f16): New.
35829         (vcmla_rot90_laneq_f16): New.
35830         (vcmlaq_rot90_lane_f16): New.
35831         (vcmlaq_rot90_laneq_f16): New.
35832         (vcmla_rot180_f16): New.
35833         (vcmlaq_rot180_f16): New.
35834         (vcmla_rot180_lane_f16): New.
35835         (vcmla_rot180_laneq_f16): New.
35836         (vcmlaq_rot180_lane_f16): New.
35837         (vcmlaq_rot180_laneq_f16): New.
35838         (vcmla_rot270_f16): New.
35839         (vcmlaq_rot270_f16): New.
35840         (vcmla_rot270_lane_f16): New.
35841         (vcmla_rot270_laneq_f16): New.
35842         (vcmlaq_rot270_lane_f16): New.
35843         (vcmlaq_rot270_laneq_f16): New.
35844         (vcadd_rot90_f32): New.
35845         (vcaddq_rot90_f32): New.
35846         (vcadd_rot270_f32): New.
35847         (vcaddq_rot270_f32): New.
35848         (vcmla_f32): New.
35849         (vcmlaq_f32): New.
35850         (vcmla_lane_f32): New.
35851         (vcmla_laneq_f32): New.
35852         (vcmlaq_lane_f32): New.
35853         (vcmlaq_laneq_f32): New.
35854         (vcmla_rot90_f32): New.
35855         (vcmlaq_rot90_f32): New.
35856         (vcmla_rot90_lane_f32): New.
35857         (vcmla_rot90_laneq_f32): New.
35858         (vcmlaq_rot90_lane_f32): New.
35859         (vcmlaq_rot90_laneq_f32): New.
35860         (vcmla_rot180_f32): New.
35861         (vcmlaq_rot180_f32): New.
35862         (vcmla_rot180_lane_f32): New.
35863         (vcmla_rot180_laneq_f32): New.
35864         (vcmlaq_rot180_lane_f32): New.
35865         (vcmlaq_rot180_laneq_f32): New.
35866         (vcmla_rot270_f32): New.
35867         (vcmlaq_rot270_f32): New.
35868         (vcmla_rot270_lane_f32): New.
35869         (vcmla_rot270_laneq_f32): New.
35870         (vcmlaq_rot270_lane_f32): New.
35871         (vcmlaq_rot270_laneq_f32): New.
35872         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35873         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35874         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35875         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35876         vcmlaq_lane270): New.
35877         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35878         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35879         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35880         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35881         (arm_option_reconfigure_globals): Use them.
35882         * config/arm/iterators.md (VDF, VQ_HSF): New.
35883         (VCADD, VCMLA): New.
35884         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35885         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35886         New.
35887         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35888         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35890 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
35892         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35893         Add qualifier_lane_pair_index.
35894         (emit-rtl.h): Include.
35895         (TYPES_QUADOP_LANE_PAIR): New.
35896         (aarch64_simd_expand_args): Use it.
35897         (aarch64_simd_expand_builtin): Likewise.
35898         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35899         New.
35900         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35901         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35902         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35903         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35904         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35905         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35906         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35907         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35908         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35909         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35910         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35911         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35912         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35913         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35914         Add __ARM_FEATURE_COMPLEX.
35915         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35916         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35917         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35918         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35919         fcmlaq_lane270): New.
35920         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35921         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35922         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35923         * config/aarch64/arm_neon.h:
35924         (vcadd_rot90_f16): New.
35925         (vcaddq_rot90_f16): New.
35926         (vcadd_rot270_f16): New.
35927         (vcaddq_rot270_f16): New.
35928         (vcmla_f16): New.
35929         (vcmlaq_f16): New.
35930         (vcmla_lane_f16): New.
35931         (vcmla_laneq_f16): New.
35932         (vcmlaq_lane_f16): New.
35933         (vcmlaq_rot90_lane_f16): New.
35934         (vcmla_rot90_laneq_f16): New.
35935         (vcmla_rot90_lane_f16): New.
35936         (vcmlaq_rot90_f16): New.
35937         (vcmla_rot90_f16): New.
35938         (vcmlaq_laneq_f16): New.
35939         (vcmla_rot180_laneq_f16): New.
35940         (vcmla_rot180_lane_f16): New.
35941         (vcmlaq_rot180_f16): New.
35942         (vcmla_rot180_f16): New.
35943         (vcmlaq_rot90_laneq_f16): New.
35944         (vcmlaq_rot270_laneq_f16): New.
35945         (vcmlaq_rot270_lane_f16): New.
35946         (vcmla_rot270_laneq_f16): New.
35947         (vcmlaq_rot270_f16): New.
35948         (vcmla_rot270_f16): New.
35949         (vcmlaq_rot180_laneq_f16): New.
35950         (vcmlaq_rot180_lane_f16): New.
35951         (vcmla_rot270_lane_f16): New.
35952         (vcadd_rot90_f32): New.
35953         (vcaddq_rot90_f32): New.
35954         (vcaddq_rot90_f64): New.
35955         (vcadd_rot270_f32): New.
35956         (vcaddq_rot270_f32): New.
35957         (vcaddq_rot270_f64): New.
35958         (vcmla_f32): New.
35959         (vcmlaq_f32): New.
35960         (vcmlaq_f64): New.
35961         (vcmla_lane_f32): New.
35962         (vcmla_laneq_f32): New.
35963         (vcmlaq_lane_f32): New.
35964         (vcmlaq_laneq_f32): New.
35965         (vcmla_rot90_f32): New.
35966         (vcmlaq_rot90_f32): New.
35967         (vcmlaq_rot90_f64): New.
35968         (vcmla_rot90_lane_f32): New.
35969         (vcmla_rot90_laneq_f32): New.
35970         (vcmlaq_rot90_lane_f32): New.
35971         (vcmlaq_rot90_laneq_f32): New.
35972         (vcmla_rot180_f32): New.
35973         (vcmlaq_rot180_f32): New.
35974         (vcmlaq_rot180_f64): New.
35975         (vcmla_rot180_lane_f32): New.
35976         (vcmla_rot180_laneq_f32): New.
35977         (vcmlaq_rot180_lane_f32): New.
35978         (vcmlaq_rot180_laneq_f32): New.
35979         (vcmla_rot270_f32): New.
35980         (vcmlaq_rot270_f32): New.
35981         (vcmlaq_rot270_f64): New.
35982         (vcmla_rot270_lane_f32): New.
35983         (vcmla_rot270_laneq_f32): New.
35984         (vcmlaq_rot270_lane_f32): New.
35985         (vcmlaq_rot270_laneq_f32): New.
35986         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35987         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35988         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35989         (FCADD, FCMLA): New.
35990         (rot): New.
35991         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35993 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35995         PR other/16615
35997         * config/pa/pa.c: Change "can not" to "cannot".
35998         * gimple-ssa-evrp-analyze.c: Likewise.
35999         * ipa-icf.c: Likewise.
36000         * ipa-polymorphic-call.c: Likewise.
36001         * ipa-pure-const.c: Likewise.
36002         * lra-constraints.c: Likewise.
36003         * lra-remat.c: Likewise.
36004         * reload1.c: Likewise.
36005         * reorg.c: Likewise.
36006         * tree-ssa-uninit.c: Likewise.
36008 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
36010         PR other/16615
36012         * Makefile.in: Mechanically replace "can not" with "cannot".
36013         * alias.c: Likewise.
36014         * builtins.c: Likewise.
36015         * calls.c: Likewise.
36016         * cgraph.c: Likewise.
36017         * cgraph.h: Likewise.
36018         * cgraphclones.c: Likewise.
36019         * cgraphunit.c: Likewise.
36020         * combine-stack-adj.c: Likewise.
36021         * combine.c: Likewise.
36022         * common/config/i386/i386-common.c: Likewise.
36023         * config/aarch64/aarch64.c: Likewise.
36024         * config/alpha/sync.md: Likewise.
36025         * config/arc/arc.c: Likewise.
36026         * config/arc/predicates.md: Likewise.
36027         * config/arm/arm-c.c: Likewise.
36028         * config/arm/arm.c: Likewise.
36029         * config/arm/arm.h: Likewise.
36030         * config/arm/arm.md: Likewise.
36031         * config/arm/cortex-r4f.md: Likewise.
36032         * config/csky/csky.c: Likewise.
36033         * config/csky/csky.h: Likewise.
36034         * config/darwin-f.c: Likewise.
36035         * config/epiphany/epiphany.md: Likewise.
36036         * config/i386/i386.c: Likewise.
36037         * config/i386/sol2.h: Likewise.
36038         * config/m68k/m68k.c: Likewise.
36039         * config/mcore/mcore.h: Likewise.
36040         * config/microblaze/microblaze.md: Likewise.
36041         * config/mips/20kc.md: Likewise.
36042         * config/mips/sb1.md: Likewise.
36043         * config/nds32/nds32.c: Likewise.
36044         * config/nds32/predicates.md: Likewise.
36045         * config/pa/pa.c: Likewise.
36046         * config/rs6000/e300c2c3.md: Likewise.
36047         * config/rs6000/rs6000.c: Likewise.
36048         * config/s390/s390.h: Likewise.
36049         * config/sh/sh.c: Likewise.
36050         * config/sh/sh.md: Likewise.
36051         * config/spu/vmx2spu.h: Likewise.
36052         * cprop.c: Likewise.
36053         * dbxout.c: Likewise.
36054         * df-scan.c: Likewise.
36055         * doc/cfg.texi: Likewise.
36056         * doc/extend.texi: Likewise.
36057         * doc/fragments.texi: Likewise.
36058         * doc/gty.texi: Likewise.
36059         * doc/invoke.texi: Likewise.
36060         * doc/lto.texi: Likewise.
36061         * doc/md.texi: Likewise.
36062         * doc/objc.texi: Likewise.
36063         * doc/rtl.texi: Likewise.
36064         * doc/tm.texi: Likewise.
36065         * dse.c: Likewise.
36066         * emit-rtl.c: Likewise.
36067         * emit-rtl.h: Likewise.
36068         * except.c: Likewise.
36069         * expmed.c: Likewise.
36070         * expr.c: Likewise.
36071         * fold-const.c: Likewise.
36072         * genautomata.c: Likewise.
36073         * gimple-fold.c: Likewise.
36074         * hard-reg-set.h: Likewise.
36075         * ifcvt.c: Likewise.
36076         * ipa-comdats.c: Likewise.
36077         * ipa-cp.c: Likewise.
36078         * ipa-devirt.c: Likewise.
36079         * ipa-fnsummary.c: Likewise.
36080         * ipa-icf.c: Likewise.
36081         * ipa-inline-transform.c: Likewise.
36082         * ipa-inline.c: Likewise.
36083         * ipa-polymorphic-call.c: Likewise.
36084         * ipa-profile.c: Likewise.
36085         * ipa-prop.c: Likewise.
36086         * ipa-pure-const.c: Likewise.
36087         * ipa-reference.c: Likewise.
36088         * ipa-split.c: Likewise.
36089         * ipa-visibility.c: Likewise.
36090         * ipa.c: Likewise.
36091         * ira-build.c: Likewise.
36092         * ira-color.c: Likewise.
36093         * ira-conflicts.c: Likewise.
36094         * ira-costs.c: Likewise.
36095         * ira-int.h: Likewise.
36096         * ira-lives.c: Likewise.
36097         * ira.c: Likewise.
36098         * ira.h: Likewise.
36099         * loop-invariant.c: Likewise.
36100         * loop-unroll.c: Likewise.
36101         * lower-subreg.c: Likewise.
36102         * lra-assigns.c: Likewise.
36103         * lra-constraints.c: Likewise.
36104         * lra-eliminations.c: Likewise.
36105         * lra-lives.c: Likewise.
36106         * lra-remat.c: Likewise.
36107         * lra-spills.c: Likewise.
36108         * lra.c: Likewise.
36109         * lto-cgraph.c: Likewise.
36110         * lto-streamer-out.c: Likewise.
36111         * postreload-gcse.c: Likewise.
36112         * predict.c: Likewise.
36113         * profile-count.h: Likewise.
36114         * profile.c: Likewise.
36115         * recog.c: Likewise.
36116         * ree.c: Likewise.
36117         * reload.c: Likewise.
36118         * reload1.c: Likewise.
36119         * reorg.c: Likewise.
36120         * resource.c: Likewise.
36121         * rtl.def: Likewise.
36122         * rtl.h: Likewise.
36123         * rtlanal.c: Likewise.
36124         * sched-deps.c: Likewise.
36125         * sched-ebb.c: Likewise.
36126         * sched-rgn.c: Likewise.
36127         * sel-sched-ir.c: Likewise.
36128         * sel-sched.c: Likewise.
36129         * shrink-wrap.c: Likewise.
36130         * simplify-rtx.c: Likewise.
36131         * symtab.c: Likewise.
36132         * target.def: Likewise.
36133         * toplev.c: Likewise.
36134         * tree-call-cdce.c: Likewise.
36135         * tree-cfg.c: Likewise.
36136         * tree-complex.c: Likewise.
36137         * tree-core.h: Likewise.
36138         * tree-eh.c: Likewise.
36139         * tree-inline.c: Likewise.
36140         * tree-loop-distribution.c: Likewise.
36141         * tree-nrv.c: Likewise.
36142         * tree-profile.c: Likewise.
36143         * tree-sra.c: Likewise.
36144         * tree-ssa-alias.c: Likewise.
36145         * tree-ssa-dce.c: Likewise.
36146         * tree-ssa-dom.c: Likewise.
36147         * tree-ssa-forwprop.c: Likewise.
36148         * tree-ssa-loop-im.c: Likewise.
36149         * tree-ssa-loop-ivcanon.c: Likewise.
36150         * tree-ssa-loop-ivopts.c: Likewise.
36151         * tree-ssa-loop-niter.c: Likewise.
36152         * tree-ssa-phionlycprop.c: Likewise.
36153         * tree-ssa-phiopt.c: Likewise.
36154         * tree-ssa-propagate.c: Likewise.
36155         * tree-ssa-threadedge.c: Likewise.
36156         * tree-ssa-threadupdate.c: Likewise.
36157         * tree-ssa-uninit.c: Likewise.
36158         * tree-ssanames.c: Likewise.
36159         * tree-streamer-out.c: Likewise.
36160         * tree.c: Likewise.
36161         * tree.h: Likewise.
36162         * vr-values.c: Likewise.
36164 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
36166         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
36167         (ix86_split_xorsign): Ditto.
36168         * config/i386/i386.c (ix86_expand_xorsign): New function.
36169         (ix86_split_xorsign): Ditto.
36170         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
36171         (xorsign<mode>3): New expander.
36172         (xorsign<mode>3_1): New insn_and_split pattern.
36173         * config/i386/sse.md (xorsign<mode>3): New expander.
36175 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
36177         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
36178         (*tablejump_sp64): Likewise.
36179         (*tablejump<P:mode>): ...this.
36180         (*call_address_sp32): Merge into...
36181         (*call_address_sp64): Likewise.
36182         (*call_address<P:mode>): ...this.
36183         (*call_symbolic_sp32): Merge into...
36184         (*call_symbolic_sp64): Likewise.
36185         (*call_symbolic<P:mode>): ...this.
36186         (call_value): Remove constraint and add predicate.
36187         (*call_value_address_sp32): Merge into...
36188         (*call_value_address_sp64): Likewise.
36189         (*call_value_address<P:mode>): ...this.
36190         (*call_value_symbolic_sp32): Merge into...
36191         (*call_value_symbolic_sp64): Likewise.
36192         (*call_value_symbolic<P:mode>): ...this.
36193         (*sibcall_symbolic_sp32): Merge into...
36194         (*sibcall_symbolic_sp64): Likewise.
36195         (*sibcall_symbolic<P:mode>): ...this.
36196         (sibcall_value): Remove constraint and add predicate.
36197         (*sibcall_value_symbolic_sp32): Merge into...
36198         (*sibcall_value_symbolic_sp64): Likewise.
36199         (*sibcall_value_symbolic<P:mode>): ...this.
36200         (window_save): Minor tweak.
36201         (*branch_sp32): Merge into...
36202         (*branch_sp64): Likewise.
36203         (*branch<P:mode>): ...this.
36205 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
36206             James Clarke  <jrtc27@jrtc27.com>
36208         PR target/84010
36209         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
36210         consistently in TLS address generation and adjust code to the renaming
36211         of patterns.  Mark calls to __tls_get_addr as const.
36212         * config/sparc/sparc.md (tgd_hi22): Turn into...
36213         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
36214         (tgd_lo10): Turn into...
36215         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
36216         (tgd_add32): Merge into...
36217         (tgd_add64): Likewise.
36218         (tgd_add<P:mode>): ...this and use Pmode throughout.
36219         (tldm_hi22): Turn into...
36220         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
36221         (tldm_lo10): Turn into...
36222         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
36223         (tldm_add32): Merge into...
36224         (tldm_add64): Likewise.
36225         (tldm_add<P:mode>): ...this and use Pmode throughout.
36226         (tldm_call32): Merge into...
36227         (tldm_call64): Likewise.
36228         (tldm_call<P:mode>): ...this and use Pmode throughout.
36229         (tldo_hix22): Turn into...
36230         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
36231         (tldo_lox10): Turn into...
36232         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
36233         (tldo_add32): Merge into...
36234         (tldo_add64): Likewise.
36235         (tldo_add<P:mode>): ...this and use Pmode throughout.
36236         (tie_hi22): Turn into...
36237         (tie_hi22<P:mode>): ...this and use Pmode throughout.
36238         (tie_lo10): Turn into...
36239         (tie_lo10<P:mode>): ...this and use Pmode throughout.
36240         (tie_ld64): Use DImode throughout.
36241         (tie_add32): Merge into...
36242         (tie_add64): Likewise.
36243         (tie_add<P:mode>): ...this and use Pmode throughout.
36244         (tle_hix22_sp32): Merge into...
36245         (tle_hix22_sp64): Likewise.
36246         (tle_hix22<P:mode>): ...this and use Pmode throughout.
36247         (tle_lox22_sp32): Merge into...
36248         (tle_lox22_sp64): Likewise.
36249         (tle_lox22<P:mode>): ...this and use Pmode throughout.
36250         (*tldo_ldub_sp32): Merge into...
36251         (*tldo_ldub_sp64): Likewise.
36252         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
36253         (*tldo_ldub1_sp32): Merge into...
36254         (*tldo_ldub1_sp64): Likewise.
36255         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
36256         (*tldo_ldub2_sp32): Merge into...
36257         (*tldo_ldub2_sp64): Likewise.
36258         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
36259         (*tldo_ldsb1_sp32): Merge into...
36260         (*tldo_ldsb1_sp64): Likewise.
36261         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
36262         (*tldo_ldsb2_sp32): Merge into...
36263         (*tldo_ldsb2_sp64): Likewise.
36264         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
36265         (*tldo_ldub3_sp64): Use DImode throughout.
36266         (*tldo_ldsb3_sp64): Likewise.
36267         (*tldo_lduh_sp32): Merge into...
36268         (*tldo_lduh_sp64): Likewise.
36269         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
36270         (*tldo_lduh1_sp32): Merge into...
36271         (*tldo_lduh1_sp64): Likewise.
36272         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
36273         (*tldo_ldsh1_sp32): Merge into...
36274         (*tldo_ldsh1_sp64): Likewise.
36275         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
36276         (*tldo_lduh2_sp64): Use DImode throughout.
36277         (*tldo_ldsh2_sp64): Likewise.
36278         (*tldo_lduw_sp32): Merge into...
36279         (*tldo_lduw_sp64): Likewise.
36280         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
36281         (*tldo_lduw1_sp64): Use DImode throughout.
36282         (*tldo_ldsw1_sp64): Likewise.
36283         (*tldo_ldx_sp64): Likewise.
36284         (*tldo_stb_sp32): Merge into...
36285         (*tldo_stb_sp64): Likewise.
36286         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
36287         (*tldo_sth_sp32): Merge into...
36288         (*tldo_sth_sp64): Likewise.
36289         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
36290         (*tldo_stw_sp32): Merge into...
36291         (*tldo_stw_sp64): Likewise.
36292         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
36293         (*tldo_stx_sp64): Use DImode throughout.
36295 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36297         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
36298         check configure option to set BTI and Return Address Signing.
36299         * configure.ac: Add --enable-standard-branch-protection and
36300         --disable-standard-branch-protection.
36301         * configure: Regenerated.
36302         * doc/install.texi: Document the same.
36304 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36305             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36307         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
36308         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
36309         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
36310         if bti is enabled.
36311         * config/aarch64/aarch64-bti-insert.c: New file.
36312         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
36313         pass.
36314         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
36315         new bti pass.
36316         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
36317         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
36318         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
36319         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
36321 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36323         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
36324         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
36325         Disable bti for -mbranch-protection=none.
36326         (aarch64_handle_standard_branch_protection): Enable bti for
36327         -mbranch-protection=standard.
36328         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
36329         -mbranch-protection.
36330         (aarch64_bti_enabled): Check if bti is enabled.
36331         * config/aarch64/aarch64.opt: Declare target variable.
36332         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
36334 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36336         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
36337         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
36338         (aarch64_expand_epilogue): Likewise.
36339         (aarch64_output_mi_thunk): Likewise.
36340         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
36341         TAILCALL_ADDR_REGS to x16 and x17.
36342         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
36344 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36346         * config/aarch64/aarch64-option-extensions.def: Define
36347         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
36348         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
36349         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
36350         (AARCH64_FL_PREDRES): New.
36351         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
36352         AARCH64_FL_PREDRES by default.
36353         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
36355 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
36357         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
36358         ARMv8.5-A.
36359         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
36360         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
36361         * doc/invoke.texi: Document ARMv8.5-A.
36363 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
36365         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
36366         (xorsign<mode>3): Likewise.
36368 2019-01-09  Jelinek  <jakub@redhat.com>
36370         PR middle-end/88758
36371         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
36372         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
36374         PR rtl-optimization/88331
36375         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
36376         not currently_expanding_to_rtl.
36378 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
36380         * doc/invoke.texi (-Os): Remove trailing spaces.
36381         (-finline-functions): Remove reference to -O2.
36383 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
36385         PR rtl-optimization/79593
36386         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
36388         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
36389         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
36391 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36393         PR bootstrap/88721
36394         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
36395         to -1 on entry.
36397         PR debug/88723
36398         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
36399         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
36401 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
36403         PR target/88717
36404         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
36405         ix86_avx_u128_mode_entry.
36407 2019-01-08  Martin Liska  <mliska@suse.cz>
36409         PR tree-optimization/88753
36410         * tree-switch-conversion.c (switch_conversion::build_one_array):
36411         Come up with local variable constructor.  Convert first to
36412         type of constructor values.
36414 2019-01-08  Richard Biener  <rguenther@suse.de>
36416         PR tree-optimization/86554
36417         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
36418         rpo_avail): Move earlier.
36419         (visit_nary_op): When value-numbering to expressions
36420         with different overflow behavior make sure there's an
36421         available expression on the path.
36423 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
36425         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
36426         aarch64_parse_branch_protection,
36427         struct aarch64_branch_protect_type,
36428         aarch64_handle_no_branch_protection,
36429         aarch64_handle_standard_branch_protection,
36430         aarch64_validate_mbranch_protection,
36431         aarch64_handle_pac_ret_protection,
36432         aarch64_handle_attr_branch_protection,
36433         accepted_branch_protection_string,
36434         aarch64_pac_ret_subtypes,
36435         aarch64_branch_protect_types,
36436         aarch64_handle_pac_ret_leaf): Define.
36437         (aarch64_override_options_after_change_1, aarch64_override_options):
36438         Add check for accepted_branch_protection_string.
36439         (aarch64_option_save): Save accepted_branch_protection_string.
36440         (aarch64_option_restore): Save accepted_branch_protection_string.
36441         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
36442         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
36443         msign-return-address.
36444         * doc/invoke.texi: Add mbranch-protection.
36446 2019-01-08  Alan Modra  <amodra@gmail.com>
36448         PR target/88614
36449         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
36450         Delete "unknownp" parameter.  Adjust callers.  Handle
36451         CONST_INT, PLUS, MINUS, and MULT.
36452         (attr_value_aligned): Renamed from or_attr_value.
36453         (min_attr_value): Return INT_MIN for unhandled rtl case..
36454         (min_fn): ..and translate to INT_MAX here.
36455         (write_length_unit_log): Modify to cope without "unknown".
36456         (write_attr_value): Handle IF_THEN_ELSE.
36458 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36460         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
36461         optimization for masked stores.
36463 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36465         PR middle-end/88567
36466         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
36467         output vector directly to duplicate_and_interleave instead of
36468         going through a temporary.  Postpone insertion of ctor_seq to
36469         the end of the loop.
36471 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
36473         PR target/86891
36474         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
36475         unsigned_p.  Handle signed and unsigned overflow correction as
36476         required.
36477         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
36478         prototype.
36479         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
36480         for operand 2.
36481         (add<mode>3_compareV_imm): Make this callable for expanding.
36482         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
36483         aarch64_plus_operand for operand 2.
36484         (subv<GPI:mode>_insn): New insn pattern.
36485         (subv<GPI:mode>_imm): Likewise.
36486         (negv<GPI:mode>3): New expand pattern.
36487         (negv<GPI:mode>_insn): New insn pattern.
36488         (negv<GPI:mode>_cmp_only): Likewise.
36489         (cmpv<GPI:mode>_insn): Likewise.
36490         (subvti4): Use register_operand for operand 1.  Update call to
36491         aarch64_expand_subvti.
36492         (usubvti4): Likewise.
36493         (negvti3): New expand pattern.
36494         (negdi_carryout): New insn pattern.
36495         (negvdi_carryinV): New insn pattern.
36496         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
36497         version the named version.
36498         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
36499         operands.
36500         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
36501         patterns.
36502         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
36503         patterns.
36504         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
36505         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
36506         (sub<mode>3_carryinCV): Delete.
36507         (sub<GPI:mode>3_carryinV): New expand pattern.
36508         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
36510 2019-01-07  Richard Biener  <rguenther@suse.de>
36512         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
36513         of tree_operand_hash.
36515 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36517         PR tree-optimization/88598
36518         * tree.h (single_nonzero_element): Declare.
36519         * tree.c (single_nonzero_element): New function.
36520         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
36521         if I is the only nonzero element of CST.
36523 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36525         PR tree-optimization/88598
36526         * tree.h (initializer_each_zero_or_onep): Declare.
36527         * tree.c (initializer_each_zero_or_onep): New function.
36528         (signed_or_unsigned_type_for): Handle float types too.
36529         (unsigned_type_for, signed_type_for): Update comments accordingly.
36530         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
36531         x & { 0 or -1, 0 or -1, ... }.
36533 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
36535         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
36536         with x86_64-pc-linux-gnu.
36538 2019-01-07  Tom de Vries  <tdevries@suse.de>
36540         PR target/85486
36541         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
36542         function.
36543         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
36544         routines.
36546 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
36548         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
36549         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
36550         TARGET_AVX512F as condition.
36552         PR debug/88723
36553         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
36554         const_not_ok_for_debug_p target hook.
36555         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
36556         on UNSPEC and subexpressions thereof if all subexpressions of the
36557         UNSPEC are CONSTANT_P.
36559         PR tree-optimization/88676
36560         * tree-ssa-phiopt.c (two_value_replacement): New function.
36561         (tree_ssa_phiopt_worker): Call it.
36563         PR sanitizer/88619
36564         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
36565         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
36567         PR c++/85052
36568         * tree-vect-generic.c: Include insn-config.h and recog.h.
36569         (expand_vector_piecewise): Add defaulted ret_type argument,
36570         if non-NULL, use that in preference to type for the result type.
36571         (expand_vector_parallel): Formatting fix.
36572         (do_vec_conversion, do_vec_narrowing_conversion,
36573         expand_vector_conversion): New functions.
36574         (expand_vector_operations_1): Call expand_vector_conversion
36575         for VEC_CONVERT ifn calls.
36576         * internal-fn.def (VEC_CONVERT): New internal function.
36577         * internal-fn.c (expand_VEC_CONVERT): New function.
36578         * fold-const-call.c (fold_const_vec_convert): New function.
36579         (fold_const_call): Use it for CFN_VEC_CONVERT.
36580         * doc/extend.texi (__builtin_convertvector): Document.
36582 2019-01-07  Tom de Vries  <tdevries@suse.de>
36584         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
36585         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
36586         vector_red_partition, vector_red_sym): New global variables.
36587         (nvptx_option_override): Initialize vector_red_sym.
36588         (nvptx_declare_function_name): Restore red_partition register.
36589         (nvptx_file_end): Emit code to declare the vector reduction variables.
36590         (nvptx_output_red_partition): New function.
36591         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
36592         large vector reductions.
36593         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
36594         (nvptx_init_builtins): Add VECTOR_ADDR.
36595         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
36596         Handle nvptx_expand_shared_addr.
36597         (nvptx_get_shared_red_addr): Add vector argument and handle large
36598         vectors.
36599         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
36600         large vectors.
36601         (nvptx_goacc_reduction_init): Likewise.
36602         (nvptx_goacc_reduction_fini): Likewise.
36603         (nvptx_goacc_reduction_teardown): Likewise.
36604         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
36605         init,fini,teardown}.
36606         (nvptx_init_axis_predicate): Initialize vector_red_partition.
36607         (nvptx_set_current_function): Init vector_red_partition.
36608         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
36609         (nvptx_red_partition): New insn.
36610         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
36612 2019-01-07  Tom de Vries  <tdevries@suse.de>
36614         PR target/85381
36615         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
36616         empty loops.
36618 2019-01-07  Tom de Vries  <tdevries@suse.de>
36620         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
36621         (nvptx_option_override): Init oacc_bcast_partition.
36622         (nvptx_init_oacc_workers): New function.
36623         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
36624         (nvptx_needs_shared_bcast): New function.
36625         (nvptx_find_par): Generalize to enable vectors to use shared-memory
36626         to propagate state.
36627         (nvptx_shared_propagate): Initialize vector bcast partition and
36628         synchronization state.
36629         (nvptx_single): Generalize to enable vectors to use shared-memory
36630         to propagate state.
36631         (nvptx_process_pars): Likewise.
36632         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
36633         * config/nvptx/nvptx.h (struct machine_function): Add
36634         bcast_partition and sync_bar members.
36636 2019-01-07  Tom de Vries  <tdevries@suse.de>
36638         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
36639         (nvptx_apply_dim_limits): New function.
36640         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
36641         PTX_WARP_SIZE.
36643 2019-01-07  Tom de Vries  <tdevries@suse.de>
36645         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
36646         as late as possible.
36648 2019-01-07  Tom de Vries  <tdevries@suse.de>
36650         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
36651         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
36652         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
36653         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
36654         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
36656 2019-01-07  Tom de Vries  <tdevries@suse.de>
36658         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
36660 2019-01-07  Tom de Vries  <tdevries@suse.de>
36662         * omp-offload.c (oacc_get_min_dim): New function.
36663         * omp-offload.h (oacc_get_min_dim): Declare.
36665 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
36667         PR target/88521
36668         * config/i386/i386.c (function_value_ms_64): Return small sturct in
36669         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
36671 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36673         PR tree-opt/86020
36674         Revert:
36675         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
36677         * ipa-inline.c (edge_badness): Use inlined_time instead of
36678         inline_summaries->get.
36680 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36682         * opts.c (enable_fdo_optimizations): Enable
36683         version-loops-for-strides, loop-interchange, unrol-and-jam
36684         and tree-loop-distribution.
36685         * invoke.texi: Document newly enabled options.
36687 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36689         * doc/invoke.texi (max-inline-insns-small): New parameters.
36690         * ipa-inline.c (want_early_inline_function_p): simplify.
36691         (want_inline_small_function_p): Fix pasto from previous patch;
36692         use max-inline-insns-small bound.
36693         * params.def (max-inline-insns-small): New param.
36694         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
36695         variables correctly.
36697 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36699         * doc/invoke.texi: Document max-inline-insns-size,
36700         uninlined-function-insns, uninlined-function-time,
36701         uninlined-thunk-insns and uninlined-thunk-time.
36702         * params.def: Add max-inline-insns-size,
36703         uninlined-function-insns, uninlined-function-time,
36704         uninlined-thunk-insns and uninlined-thunk-time.
36705         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
36706         new parameters.
36707         * ipa-inline.c (can_inline_edge_by_limits_p,
36708         want_inline_small_function_p): Use new parameters.
36710 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
36712         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
36714 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
36716         PR middle-end/82564
36717         PR target/88620
36718         * expr.c (expand_assignment): For calls returning VLA structures
36719         if to_rtx is not a MEM, force it into a stack temporary.
36721         PR debug/88635
36722         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
36723         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
36724         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
36725         subexpressions of both operands.
36726         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
36727         subrtxes are CONSTANT_P.
36728         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
36729         2018-11-09 changes.
36731 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
36733         * params.def (hot-bb-count-ws-permille): Set to 990.
36735 2019-01-04  Martin Sebor  <msebor@redhat.com>
36737         PR c/88546
36738         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
36739         leaf.
36741 2019-01-04  Martin Sebor  <msebor@redhat.com>
36743         PR c/88363
36744         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
36746 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36748         * gdbinit.in: Turn off pagination for the skip commands, restore
36749         it to previous state afterwards.
36751 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
36753         PR target/88594
36754         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
36755         of GET_MODE (opN) as modes of the libcall arguments.
36757 2019-01-04  Jan Beulich  <jbeulich@suse.com>
36759         * config/i386/sse.md
36760         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
36761         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
36762         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36763         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36764         avx512f_vmcmp<mode>3<round_saeonly_name>,
36765         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
36766         avx512f_maskcmp<mode>3,
36767         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36768         <avx512>_cvt<ssemodesuffix>2mask<mode>,
36769         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36770         *<avx512>_cvtmask2<ssemodesuffix><mode>,
36771         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36772         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36773         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36774         <avx512>_gt<mode>3<mask_scalar_merge_name>,
36775         <avx512>_testm<mode>3<mask_scalar_merge_name>,
36776         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
36777         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
36778         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
36779         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
36780         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
36781         avx512cd_maskb_vec_dup<mode>,
36782         avx512cd_maskw_vec_dup<mode>,
36783         avx512dq_fpclass<mode><mask_scalar_merge_name>,
36784         avx512dq_vmfpclass<mode>,
36785         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
36786         instead of =Yk.
36788 2019-01-03  Martin Sebor  <msebor@redhat.com>
36790         PR tree-optimization/88659
36791         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
36793 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
36795         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
36796         unaligned vsx and avoid lxvd2x/stxvd2x.
36797         (gen_lvx_v4si_move): New function.
36799 2019-01-03  Tom de Vries  <tdevries@suse.de>
36801         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
36802         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
36803         function.
36804         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
36806 2019-01-03  Tom de Vries  <tdevries@suse.de>
36808         * config/nvptx/nvptx.c (struct offload_attrs): New.
36809         (populate_offload_attrs): New function.  Factor mask extraction out of
36810         nvptx_reorg.  Add extraction of dimensions.
36811         (nvptx_reorg): Use populate_offload_attrs.
36813 2019-01-03  Tom de Vries  <tdevries@suse.de>
36815         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36816         cases for oacc_min_dims_p and routine_p.  Add asserts for
36817         oacc_default_dims_p and offload_region_p.
36819 2019-01-03  Tom de Vries  <tdevries@suse.de>
36821         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36822         factored out of ...
36823         (nvptx_goacc_validate_dims): ... here.
36825 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36827         PR tree-optimization/85574
36828         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36829         structure.
36830         (struct ssa_equip_hash_traits): Declare.
36831         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36833 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
36835         PR debug/88644
36836         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36837         change it to qualified_type.
36839 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
36841         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36842         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36844 2019-01-02  Martin Sebor  <msebor@redhat.com>
36845             Jeff Law  <law@redhat.com>
36847         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36848         (get_range_strlen_tree): Update appropriately.
36849         (get_range_strlen)
36850         * gimple-fold.h (get_range_strlen): Drop unused last argument.
36852         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36853         rather than set_range_info.
36854         * tree-ssa-strlen.c (set_strlen_range): Extracted from
36855         maybe_set_strlen_range.  Handle potentially boundary crossing
36856         cases more conservatively.
36857         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36858         Call set_strlen_range.
36859         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36861         PR middle-end/88663
36862         * gimple-fold.c (get_range_strlen): Update prototype to no longer
36863         need the flexp argument.
36864         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
36865         from calls to get_range_strlen.  Update comments.  Just update
36866         VAL for an unterminated const char array and let the reset of the
36867         code handle it normally.  No longer try to set *flexp.  Adjust
36868         return value.
36869         (get_range_strlen): Update for the new get_range_strlen API.
36870         (get_maxval_strlen): Similarly.
36871         (gimple_fold_builtin_strlen): Handle update meaning of return value
36872         from get_range_strlen.
36873         * gimple-ssa-sprintf.c (get_string_length): Update for the new
36874         get_range_strlen API.
36876 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
36878         PR lto/88130
36879         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36880         false at WPA time when body was removed.
36882 2019-01-02  Martin Liska  <mliska@suse.cz>
36884         PR tree-optimization/88650
36885         * predict.c (set_even_probabilities): Calculate probability
36886         remainer only when really used.
36888 2019-01-02  Richard Biener  <rguenther@suse.de>
36890         PR middle-end/88651
36891         * tree-data-ref.c (analyze_subscript_affine_affine): Use
36892         widest_ints when mangling max_stmt_execution results.
36894 2019-01-02  Richard Biener  <rguenther@suse.de>
36896         PR tree-optimization/88621
36897         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36898         bitfields when canoncalizing.
36900 2019-01-02  Richard Biener  <rguenther@suse.de>
36902         PR target/87545
36903         * config/i386/x86-tune-costs.h (intel_cost): Adjust
36904         cost of cheap SSE instruction.
36906 2019-01-02  Richard Biener  <rguenther@suse.de>
36908         PR ipa/85574
36909         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36910         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36911         function.
36912         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36913         set after UIDs before splitting them.
36915 2019-01-01  Martin Sebor  <msebor@redhat.com>
36916             Jeff Law  <law@redhat.com>
36918         * gimple-fold.c (get_range_strlen_tree): Record if the computed
36919         length is optimistic.  If it is, then arrange to compute the
36920         conservative length as well.
36922         * gimple-fold.h (get_range_strlen): Update prototype.
36923         * builtins.c (check_access): Update call to get_range_strlen to use
36924         c_strlen_data pointer.   Change various variable accesses to instead
36925         pull data from the c_strlen_data structure.
36926         (check_strncat_sizes, expand_builtin_strncat): Likewise.
36927         * calls.c (maybe_warn_nonstring_arg): Likewise.
36928         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
36929         minimum length if maximum lengh is unknown.
36930         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
36931         that used c_strlen, it's no longer needed.  Restructure slightly.
36932         (format_string): Set unlikely range appropriately.
36933         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
36934         formatting issues.
36935         (get_range_strlen): Accept c_strlen_data pointer for external
36936         call sites as well.  Pass through to call to internal get_range_strlen.
36937         Adjust minlen, maxlen and maxbound as needed.
36938         (get_maxval_strlen): Update comments.
36939         (gimple_fold_builtin_strlen): Update call to get_range_strlen
36940         to use c_strlen_data pointer.  Change variable accesses to instead
36941         use c_strlen_data data members.
36943         * gimple-fold.c (get_range_strlen): Update prototype.
36944         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
36945         local variables.  Use pdata to return information to caller.
36946         Update calls to get_range_strlen.  Update pdata->maxbound.
36947         (get_range_strlen -- static version): Similarly.
36948         (get_range_strlen -- extern version): Update for internal
36949         get_range_strlen API change.  Convert to external data format.
36950         (get_maxval_strlen): Similarly.
36952 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
36954         * coverage.c (get_coverage_counts): Use current_function_decl.
36955         * profile.c (read_thunk_profile): New function.
36956         (branch_prob): Add THUNK parameter.
36957         * tree-profile.c (tree_profiling): Handle thunks.
36958         * value-prof.c (init_node_map): Handle thunks.
36959         * value-prof.h (branch_prob): Upate prototype.
36960         (read_thunk_profile): Declare.
36962 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
36964         Update copyright years.
36966         * gcc.c (process_command): Update copyright notice dates.
36967         * gcov-dump.c (print_version): Ditto.
36968         * gcov.c (print_version): Ditto.
36969         * gcov-tool.c (print_version): Ditto.
36970         * gengtype.c (create_file): Ditto.
36971         * doc/cpp.texi: Bump @copying's copyright year.
36972         * doc/cppinternals.texi: Ditto.
36973         * doc/gcc.texi: Ditto.
36974         * doc/gccint.texi: Ditto.
36975         * doc/gcov.texi: Ditto.
36976         * doc/install.texi: Ditto.
36977         * doc/invoke.texi: Ditto.
36979 Copyright (C) 2019 Free Software Foundation, Inc.
36981 Copying and distribution of this file, with or without modification,
36982 are permitted in any medium without royalty provided the copyright
36983 notice and this notice are preserved.